bumxd 16 Posted February 22, 2015 Share Posted February 22, 2015 #request Link to comment Share on other sites More sharing options...
Morphe 159 Posted February 22, 2015 Share Posted February 22, 2015 lenght.h 40 to 80 shop.cpp 5,9 to 10,9 Link to comment Share on other sites More sharing options...
jma96 1 Posted February 22, 2015 Share Posted February 22, 2015 You need change python in client too. Link to comment Share on other sites More sharing options...
bumxd 16 Posted February 22, 2015 Author Share Posted February 22, 2015 # Link to comment Share on other sites More sharing options...
SamuR 183 Posted February 23, 2015 Share Posted February 23, 2015 (edited) If you still need that I can make you a small tutorial. Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal - To know how to hide one's ability is great skill. - Link to comment Share on other sites More sharing options...
Benhero 23 Posted February 23, 2015 Share Posted February 23, 2015 please make a tutorial thanks Link to comment Share on other sites More sharing options...
Former Staff Shisui 490 Posted February 23, 2015 Former Staff Share Posted February 23, 2015 packet.h SHOP_HOST_ITEM_MAX_NUM = 40, to SHOP_HOST_ITEM_MAX_NUM = 80,src/Server/common/length.h SHOP_HOST_ITEM_MAX_NUM = 40, SHOP_PRICELIST_MAX_NUM = 40, to SHOP_HOST_ITEM_MAX_NUM = 80, SHOP_PRICELIST_MAX_NUM = 80,src/Server/game/shop.cpp m_pGrid = M2_NEW CGrid(5, 9); to m_pGrid = M2_NEW CGrid(10, 9);shopdialog.py import uiScriptLocale window = { "name" : "ShopDialog", "x" : SCREEN_WIDTH - 400, "y" : 10, "style" : ("movable", "float",), "width" : 184 + 160, "height" : 328, "children" : ( { "name" : "board", "type" : "board", "style" : ("attach",), "x" : 0, "y" : 0, "width" : 184 + 160, "height" : 328, "children" : ( ## Title { "name" : "TitleBar", "type" : "titlebar", "style" : ("attach",), "x" : 8, "y" : 8, "width" : 169 + 160, "color" : "gray", "children" : ( { "name":"TitleName", "type":"text", "x":84+80, "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" : 10, "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 + 160, "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" : 0, "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", }, ), }, ), } by @Endymion & .py by @Theodor 1 Link to comment Share on other sites More sharing options...
Premium Ocelot2606 140 Posted February 23, 2015 Premium Share Posted February 23, 2015 packet.h SHOP_HOST_ITEM_MAX_NUM = 40, to SHOP_HOST_ITEM_MAX_NUM = 80, src/Server/common/length.h SHOP_HOST_ITEM_MAX_NUM = 40, SHOP_PRICELIST_MAX_NUM = 40, to SHOP_HOST_ITEM_MAX_NUM = 80, SHOP_PRICELIST_MAX_NUM = 80, src/Server/game/shop.cpp m_pGrid = M2_NEW CGrid(5, 9); to m_pGrid = M2_NEW CGrid(10, 9); shopdialog.py import uiScriptLocale window = { "name" : "ShopDialog", "x" : SCREEN_WIDTH - 400, "y" : 10, "style" : ("movable", "float",), "width" : 184 + 160, "height" : 328, "children" : ( { "name" : "board", "type" : "board", "style" : ("attach",), "x" : 0, "y" : 0, "width" : 184 + 160, "height" : 328, "children" : ( ## Title { "name" : "TitleBar", "type" : "titlebar", "style" : ("attach",), "x" : 8, "y" : 8, "width" : 169 + 160, "color" : "gray", "children" : ( { "name":"TitleName", "type":"text", "x":84+80, "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" : 10, "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 + 160, "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" : 0, "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", }, ), }, ), } by @Endymion & .py by @Theodor I swear that doenst work so you get bugs and cant buy any items from slots 46+ Link to comment Share on other sites More sharing options...
Former Staff Shisui 490 Posted February 23, 2015 Former Staff Share Posted February 23, 2015 packet.h SHOP_HOST_ITEM_MAX_NUM = 40, to SHOP_HOST_ITEM_MAX_NUM = 80, src/Server/common/length.h SHOP_HOST_ITEM_MAX_NUM = 40, SHOP_PRICELIST_MAX_NUM = 40, to SHOP_HOST_ITEM_MAX_NUM = 80, SHOP_PRICELIST_MAX_NUM = 80, src/Server/game/shop.cpp m_pGrid = M2_NEW CGrid(5, 9); to m_pGrid = M2_NEW CGrid(10, 9); shopdialog.py import uiScriptLocale window = { "name" : "ShopDialog", "x" : SCREEN_WIDTH - 400, "y" : 10, "style" : ("movable", "float",), "width" : 184 + 160, "height" : 328, "children" : ( { "name" : "board", "type" : "board", "style" : ("attach",), "x" : 0, "y" : 0, "width" : 184 + 160, "height" : 328, "children" : ( ## Title { "name" : "TitleBar", "type" : "titlebar", "style" : ("attach",), "x" : 8, "y" : 8, "width" : 169 + 160, "color" : "gray", "children" : ( { "name":"TitleName", "type":"text", "x":84+80, "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" : 10, "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 + 160, "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" : 0, "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", }, ), }, ), } by @Endymion & .py by @Theodor I swear that doenst work so you get bugs and cant buy any items from slots 46+ I've done it by myself... Link to comment Share on other sites More sharing options...
SamuR 183 Posted February 23, 2015 Share Posted February 23, 2015 I've done it by myself... This is right, I have just explained it better. - To know how to hide one's ability is great skill. - Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now