emirhanHCL 1
emirhanHCL
farkmt2official 1
farkmt2official
mannaxxx 1
mannaxxx
kralhakan2009 1
kralhakan2009
Vahsi Uzman 1
Vahsi Uzman
Best Studio 1
Best Studio
TuZaKK 1
TuZaKK
Mt2Hizmet 1
Mt2Hizmet
Agora Metin2 1
Agora Metin2
Bvural41 1
Bvural41
Hikaye Ekle

[C++ / PYTHON] 120 SLOT MARKET

Türkiye'de ilk Mobil & PC Aynı Anda Metin2 Oyna. Triarchonline kalıcı ve uzun ömürlü yapısı ile 24 Temmuz'da açılıyor. | 1-99 Mobil Metin2 Triarch HEMEN TIKLA!

120 Slot çok değil mi ya :) 64 slot gayet tatlı bence.
 
Merhaba arkadaşlar, forumda araştırma yapmıştım 80 Slot olanı vardı fakat 120 olanını görememiştim. Kodları alıp 120 Slota uyarladım. İsteyenler aynı şekilde ekleyebilir. Kodlar sorunsuz ve Server Files'a eklenmiştir.

.:KANIT:.

dv6XNr.png


GAME SOURCE
[CODE title="common/length.h = Aç"] ARAT: SHOP_HOST_ITEM_MAX_NUM = 40
DEĞİŞTİR: SHOP_HOST_ITEM_MAX_NUM = 120

[/CODE]

[CODE title="Aynı Dosya"]ARAT: SHOP_PRICELIST_MAX_NUM = 40
DEĞİŞTİR: SHOP_PRICELIST_MAX_NUM = 120[/CODE]

[CODE title="game/shop.cpp = Aç"]ARAT: m_pGrid = M2_NEW CGrid(5, 9)
DEĞİŞTİR: m_pGrid = M2_NEW CGrid(15, 9)

[/CODE]

[CODE title="game/shop_manager.cpp = Aç"]ARAT: m_pGrid = M2_NEW CGrid(5, 9)
DEĞİŞTİR: m_pGrid = M2_NEW CGrid(15, 9)

[/CODE]

CLIENT SOURCE
[CODE title="UserInterface/Packet.h Aç "]ARAT: SHOP_HOST_ITEM_MAX_NUM = 40
DEĞİŞTİR: SHOP_HOST_ITEM_MAX_NUM = 120

[/CODE]

PACK
uiScript'den, shopdialog.py dosyasını açın. Aşağıdaki kod bloğunu gerekli yerden değiştirin.
Kod:
window = {
    "name" : "ShopDialog",

    "x" : SCREEN_WIDTH - 400,
    "y" : 27,

    "style" : ("movable", "float",),

    "width" : 184 + 320,
    "height" : 328,

    "children" :
    (
        {
            "name" : "board",
            "type" : "board",
            "style" : ("attach",),

            "x" : 0,
            "y" : 0,

            "width" : 184 + 320,
            "height" : 328,

            "children" :
            (
                ## Title
                {
                    "name" : "TitleBar",
                    "type" : "titlebar",
                    "style" : ("attach",),

                    "x" : 8,
                    "y" : 8,

                    "width" : 184 + 305,
                    "color" : "gray",

                    "children" :
                    (
                        { "name":"TitleName", "type":"text", "x":84 + 160, "y":4, "text":uiScriptLocale.SHOP_TITLE, "text_horizontal_align":"center" },
                    ),
                },

                ## Item Slot
                {
                    "name" : "ItemSlot",
                    "type" : "grid_table",

                    "x" : 12,
                    "y" : 34,

                    "start_index" : 0,
                    "x_count" : 15,
                    "y_count" : 8,
                    "x_step" : 32,
                    "y_step" : 32,

                    "image" : "d:/ymir work/ui/public/Slot_Base.sub",
                },

                ## Buy
                {
                    "name" : "BuyButton",
                    "type" : "toggle_button",

                    "x" : 21,
                    "y" : 295,

                    "width" : 61,
                    "height" : 21,

                    "text" : uiScriptLocale.SHOP_BUY,

                    "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
                    "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
                    "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
                },

                ## Sell
                {
                    "name" : "SellButton",
                    "type" : "toggle_button",

                    "x" : 104 + 320,
                    "y" : 295,

                    "width" : 61,
                    "height" : 21,

                    "text" : uiScriptLocale.SHOP_SELL,

                    "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
                    "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
                    "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
                },

                ## Close
                {
                    "name" : "CloseButton",
                    "type" : "button",

                    "x" : 50,
                    "y" : 295,

                    "horizontal_align" : "center",

                    "text" : uiScriptLocale.PRIVATE_SHOP_CLOSE_BUTTON,

                    "default_image" : "d:/ymir work/ui/public/large_button_01.sub",
                    "over_image" : "d:/ymir work/ui/public/large_button_02.sub",
                    "down_image" : "d:/ymir work/ui/public/large_button_03.sub",
                },
Paylaşım için teşekkürler.
 
Merhaba arkadaşlar, forumda araştırma yapmıştım 80 Slot olanı vardı fakat 120 olanını görememiştim. Kodları alıp 120 Slota uyarladım. İsteyenler aynı şekilde ekleyebilir. Kodlar sorunsuz ve Server Files'a eklenmiştir.

.:KANIT:.

dv6XNr.png


GAME SOURCE
[CODE title="common/length.h = Aç"] ARAT: SHOP_HOST_ITEM_MAX_NUM = 40
DEĞİŞTİR: SHOP_HOST_ITEM_MAX_NUM = 120

[/CODE]

[CODE title="Aynı Dosya"]ARAT: SHOP_PRICELIST_MAX_NUM = 40
DEĞİŞTİR: SHOP_PRICELIST_MAX_NUM = 120[/CODE]

[CODE title="game/shop.cpp = Aç"]ARAT: m_pGrid = M2_NEW CGrid(5, 9)
DEĞİŞTİR: m_pGrid = M2_NEW CGrid(15, 9)

[/CODE]

[CODE title="game/shop_manager.cpp = Aç"]ARAT: m_pGrid = M2_NEW CGrid(5, 9)
DEĞİŞTİR: m_pGrid = M2_NEW CGrid(15, 9)

[/CODE]

CLIENT SOURCE
[CODE title="UserInterface/Packet.h Aç "]ARAT: SHOP_HOST_ITEM_MAX_NUM = 40
DEĞİŞTİR: SHOP_HOST_ITEM_MAX_NUM = 120

[/CODE]

PACK
uiScript'den, shopdialog.py dosyasını açın. Aşağıdaki kod bloğunu gerekli yerden değiştirin.
Kod:
window = {
    "name" : "ShopDialog",

    "x" : SCREEN_WIDTH - 400,
    "y" : 27,

    "style" : ("movable", "float",),

    "width" : 184 + 320,
    "height" : 328,

    "children" :
    (
        {
            "name" : "board",
            "type" : "board",
            "style" : ("attach",),

            "x" : 0,
            "y" : 0,

            "width" : 184 + 320,
            "height" : 328,

            "children" :
            (
                ## Title
                {
                    "name" : "TitleBar",
                    "type" : "titlebar",
                    "style" : ("attach",),

                    "x" : 8,
                    "y" : 8,

                    "width" : 184 + 305,
                    "color" : "gray",

                    "children" :
                    (
                        { "name":"TitleName", "type":"text", "x":84 + 160, "y":4, "text":uiScriptLocale.SHOP_TITLE, "text_horizontal_align":"center" },
                    ),
                },

                ## Item Slot
                {
                    "name" : "ItemSlot",
                    "type" : "grid_table",

                    "x" : 12,
                    "y" : 34,

                    "start_index" : 0,
                    "x_count" : 15,
                    "y_count" : 8,
                    "x_step" : 32,
                    "y_step" : 32,

                    "image" : "d:/ymir work/ui/public/Slot_Base.sub",
                },

                ## Buy
                {
                    "name" : "BuyButton",
                    "type" : "toggle_button",

                    "x" : 21,
                    "y" : 295,

                    "width" : 61,
                    "height" : 21,

                    "text" : uiScriptLocale.SHOP_BUY,

                    "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
                    "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
                    "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
                },

                ## Sell
                {
                    "name" : "SellButton",
                    "type" : "toggle_button",

                    "x" : 104 + 320,
                    "y" : 295,

                    "width" : 61,
                    "height" : 21,

                    "text" : uiScriptLocale.SHOP_SELL,

                    "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
                    "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
                    "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
                },

                ## Close
                {
                    "name" : "CloseButton",
                    "type" : "button",

                    "x" : 50,
                    "y" : 295,

                    "horizontal_align" : "center",

                    "text" : uiScriptLocale.PRIVATE_SHOP_CLOSE_BUTTON,

                    "default_image" : "d:/ymir work/ui/public/large_button_01.sub",
                    "over_image" : "d:/ymir work/ui/public/large_button_02.sub",
                    "down_image" : "d:/ymir work/ui/public/large_button_03.sub",
                },
Teşekkürler
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst