DieMaQ 2 Posted February 7, 2015 Share Posted February 7, 2015 (edited) Hey, How To Raise Shops Slots Like This Thanks Edited August 31, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
ScreamMyName 100 Posted February 7, 2015 Share Posted February 7, 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 3 Link to comment Share on other sites More sharing options...
DieMaQ 2 Posted February 7, 2015 Author Share Posted February 7, 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 Thanks A lot but there is no SHOP_HOST_ITEM_MAX_NUM = 40, in packet.h Link to comment Share on other sites More sharing options...
pbuzz 31 Posted February 7, 2015 Share Posted February 7, 2015 Thanks A lot but there is no SHOP_HOST_ITEM_MAX_NUM = 40, in packet.h "packet.h" in client source (UserInterface) Link to comment Share on other sites More sharing options...
DieMaQ 2 Posted February 7, 2015 Author Share Posted February 7, 2015 Thanks A lot but there is no SHOP_HOST_ITEM_MAX_NUM = 40, in packet.h "packet.h" in client source (UserInterface) Found It Thnx Link to comment Share on other sites More sharing options...
DieMaQ 2 Posted February 7, 2015 Author Share Posted February 7, 2015 The Proplem is That I Have It On My Source And I Want to Remove it How?? Please Help Link to comment Share on other sites More sharing options...
tmoitoi 26 Posted February 8, 2015 Share Posted February 8, 2015 You change 80 to 40 and other things like it ^^ Link to comment Share on other sites More sharing options...
ScreamMyName 100 Posted February 8, 2015 Share Posted February 8, 2015 yeah just do everything backwards + don't forget about shopdialog.py. Link to comment Share on other sites More sharing options...
DieMaQ 2 Posted February 8, 2015 Author Share Posted February 8, 2015 I Get This Error SYSERR: Feb 8 21:58:04.848197 :: Boot: shop table size error SYSERR: Feb 8 21:58:04.848411 :: SpawnEventHelper: cannot get map base position 1 SYSERR: Feb 8 21:58:04.848419 :: SpawnEventHelper: cannot get map base position 3 SYSERR: Feb 8 21:58:04.848428 :: SpawnEventHelper: cannot get map base position 21 SYSERR: Feb 8 21:58:04.848435 :: SpawnEventHelper: cannot get map base position 23 SYSERR: Feb 8 21:58:04.848444 :: SpawnEventHelper: cannot get map base position 41 SYSERR: Feb 8 21:58:04.848451 :: SpawnEventHelper: cannot get map base position 43 SYSERR: Feb 8 21:58:05.112621 :: pid_deinit: End of pid Please Help Link to comment Share on other sites More sharing options...
The Naid 119 Posted February 8, 2015 Share Posted February 8, 2015 I Get This Error SYSERR: Feb 8 21:58:04.848197 :: Boot: shop table size error SYSERR: Feb 8 21:58:04.848411 :: SpawnEventHelper: cannot get map base position 1 SYSERR: Feb 8 21:58:04.848419 :: SpawnEventHelper: cannot get map base position 3 SYSERR: Feb 8 21:58:04.848428 :: SpawnEventHelper: cannot get map base position 21 SYSERR: Feb 8 21:58:04.848435 :: SpawnEventHelper: cannot get map base position 23 SYSERR: Feb 8 21:58:04.848444 :: SpawnEventHelper: cannot get map base position 41 SYSERR: Feb 8 21:58:04.848451 :: SpawnEventHelper: cannot get map base position 43 SYSERR: Feb 8 21:58:05.112621 :: pid_deinit: End of pid Please Help You don't compile DB. 1 Link to comment Share on other sites More sharing options...
emoemolizu 1 Posted February 6, 2017 Share Posted February 6, 2017 SYSERR: Feb 6 16:28:11 :: Boot: shop table size error SYSERR: Feb 6 16:28:11 :: pid_deinit: End of pid Link to comment Share on other sites More sharing options...
Honorable Member pollux 812 Posted March 18, 2017 Honorable Member Share Posted March 18, 2017 If you would read the whole topic you would know the solution.... 1 Link to comment Share on other sites More sharing options...
emoemolizu 1 Posted March 21, 2017 Share Posted March 21, 2017 On 06.02.2017 at 16:49, emoemolizu said: SYSERR: Feb 6 16:28:11 :: Boot: shop table size error SYSERR: Feb 6 16:28:11 :: pid_deinit: End of pid up 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