SamuR 183 Posted February 26, 2015 Share Posted February 26, 2015 Hello, I will explain how you can have 24 slots item in exchange/trade dialog. ServerSide Open your "game/exchange.cpp" in Source File and search: m_pGrid = M2_NEW CGrid(4,3); Replace with: m_pGrid = M2_NEW CGrid(6,4); Open "game/exchange.h" and search: EXCHANGE_ITEM_MAX_NUM = 12 Replace with: EXCHANGE_ITEM_MAX_NUM = 24 Now you can compile your Game File. ClientSide Open "UserInterface/PythonExchange.h" from your Binary Source files and search: EXCHANGE_ITEM_MAX_NUM = 12 Replace with: EXCHANGE_ITEM_MAX_NUM = 24 Now you can compile your Client Binary. Extract "pack/uiscript" from your Client and open "exchangedialog.py", replace all content with: Spoiler #ExchangeDialog.py ~ 24 Slot Item #Developed by Samuel import uiScriptLocale ROOT = "d:/ymir work/ui/game/" window = { "name" : "ExchangeDialog", "x" : 0, "y" : 0, "style" : ("movable", "float",), "width" : 400, "height" : 200, "children" : ( { "name" : "board", "type" : "board", "style" : ("attach",), "x" : 0, "y" : 0, "width" : 400, "height" : 200, "children" : ( ## Title { "name" : "TitleBar", "type" : "titlebar", "style" : ("attach",), "x" : 8, "y" : 8, "width" : 384, "color" : "gray", "children" : ( { "name":"TitleName", "type":"text", "x":192, "y":3, "text":uiScriptLocale.EXCHANGE_TITLE, "text_horizontal_align":"center" }, ), }, ## MiddleBar { "name" : "Middle_Bar", "type" : "image", "x" : 200, "y" : 31, "image" : ROOT + "windows/middlebar.sub", }, ## Owner { "name" : "Owner", "type" : "window", "x" : 200, "y" : 33, "width" : 200, "height" : 150, "children" : ( { "name" : "Owner_Slot", "type" : "grid_table", "start_index" : 0, "x" : 0, "y" : 0, "x_count" : 6, "y_count" : 4, "x_step" : 32, "y_step" : 32, "x_blank" : 0, "y_blank" : 0, "image" : "d:/ymir work/ui/public/slot_base.sub", }, { "name" : "Owner_Money", "type" : "button", "x" : 0, "y" : 136, #"image" : "d:/ymir work/ui/public/parameter_slot_02.sub", "default_image" : "d:/ymir work/ui/public/parameter_slot_02.sub", "over_image" : "d:/ymir work/ui/public/parameter_slot_02.sub", "down_image" : "d:/ymir work/ui/public/parameter_slot_02.sub", "children" : ( { "name" : "Owner_Money_Value", "type" : "text", "x" : 59, "y" : 2, "text" : "1234567", "text_horizontal_align" : "right", }, ), }, { "name" : "Owner_Accept_Light", "type" : "button", "x" : 62, "y" : 135, "default_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub", "over_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub", "down_image" : "d:/ymir work/ui/game/windows/accept_button_on.sub", }, { "name" : "Owner_Accept_Button", "type" : "toggle_button", "x" : 85, "y" : 135, "text" : uiScriptLocale.EXCHANGE_ACCEPT, "default_image" : "d:/ymir work/ui/public/small_button_01.sub", "over_image" : "d:/ymir work/ui/public/small_button_02.sub", "down_image" : "d:/ymir work/ui/public/small_button_03.sub", }, ), }, ## Target { "name" : "Target", "type" : "window", "x" : 10, "y" : 33, "width" : 200, "height" : 150, "children" : ( { "name" : "Target_Slot", "type" : "grid_table", "start_index" : 0, "x" : 0, "y" : 0, "x_count" : 6, "y_count" : 4, "x_step" : 32, "y_step" : 32, "x_blank" : 0, "y_blank" : 0, "image" : "d:/ymir work/ui/public/slot_base.sub", }, { "name" : "Target_Money", "type" : "image", "x" : 0, "y" : 135, "image" : "d:/ymir work/ui/public/parameter_slot_02.sub", "children" : ( { "name" : "Target_Money_Value", "type" : "text", "x" : 59, "y" : 2, "text" : "1234567", "text_horizontal_align" : "right", }, ), }, { "name" : "Target_Accept_Light", "type" : "button", "x" : 62, "y" : 135, "default_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub", "over_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub", "down_image" : "d:/ymir work/ui/game/windows/accept_button_on.sub", }, ), }, ), }, ), } ExchangeDialog.py ~ 24 Slot Item Now you can compress your UiScript. Good work, Bye. 5 2 20 - To know how to hide one's ability is great skill. - Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted February 27, 2015 Premium Share Posted February 27, 2015 Haha thanks, useful Link to comment Share on other sites More sharing options...
SamuR 183 Posted February 27, 2015 Author Share Posted February 27, 2015 Haha thanks, useful You are welcome 1 - To know how to hide one's ability is great skill. - Link to comment Share on other sites More sharing options...
Premium TAUMP 838 Posted February 27, 2015 Premium Share Posted February 27, 2015 Try slots Beltinventory Link to comment Share on other sites More sharing options...
garofolo 12 Posted February 27, 2015 Share Posted February 27, 2015 (edited) Hello friends come here to report a problem, Since exatamento follows the tutoring above. In the last line of negotiation can not add anything. Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
vagabond20 102 Posted February 27, 2015 Share Posted February 27, 2015 Thanks bro. useful Link to comment Share on other sites More sharing options...
Premium phayara 424 Posted February 28, 2015 Premium Share Posted February 28, 2015 Thank you SamuR. Link to comment Share on other sites More sharing options...
SamuR 183 Posted February 28, 2015 Author Share Posted February 28, 2015 Thanks bro. useful Thank you SamuR. You're welcome - To know how to hide one's ability is great skill. - Link to comment Share on other sites More sharing options...
garofolo 12 Posted February 28, 2015 Share Posted February 28, 2015 Hellpp? Link to comment Share on other sites More sharing options...
Former Staff Shisui 490 Posted February 28, 2015 Former Staff Share Posted February 28, 2015 Hellpp?You did something wrong.This works properly, as you see in his screen. Link to comment Share on other sites More sharing options...
garofolo 12 Posted February 28, 2015 Share Posted February 28, 2015 If you notice well in my pictures the last line of this empty negotiating box because I can not put anything out. This and my problem. Edit : Sorry person found my mistake. exchange.cpp m_pGrid = M2_NEW CGrid(6,3); to m_pGrid = M2_NEW CGrid(6,4); Link to comment Share on other sites More sharing options...
Former Staff flygun 304 Posted April 9, 2015 Former Staff Share Posted April 9, 2015 i tried this with 25 i wrote this in the server side m_pGrid = M2_NEW CGrid(5,5); EXCHANGE_ITEM_MAX_NUM = 25 i wrote this in client side EXCHANGE_ITEM_MAX_NUM = 25 and changed the script in uiscript but i can use only 12 slot ?? Link to comment Share on other sites More sharing options...
Adrian1428 31 Posted April 9, 2015 Share Posted April 9, 2015 i tried this with 25 i wrote this in the server side m_pGrid = M2_NEW CGrid(5,5); EXCHANGE_ITEM_MAX_NUM = 25 i wrote this in client side EXCHANGE_ITEM_MAX_NUM = 25 and changed the script in uiscript but i can use only 12 slot ?? increase height , widht in uiscript Link to comment Share on other sites More sharing options...
Former Staff flygun 304 Posted April 9, 2015 Former Staff Share Posted April 9, 2015 (edited) #solved ... the problem was from the freebsd ... Edited April 10, 2015 by flygun Link to comment Share on other sites More sharing options...
adi97ida 6 Posted May 7, 2015 Share Posted May 7, 2015 Hello, does anyone knows why the hell i can't put any item in the trade-box after doing this changes ?? Link to comment Share on other sites More sharing options...
Premium phayara 424 Posted May 7, 2015 Premium Share Posted May 7, 2015 Hello, does anyone knows why the hell i can't put any item in the trade-box after doing this changes ?? Syserr ? 1 Link to comment Share on other sites More sharing options...
adi97ida 6 Posted May 7, 2015 Share Posted May 7, 2015 Hello, does anyone knows why the hell i can't put any item in the trade-box after doing this changes ?? Syserr ? Solved ... it was a root file problem ... Link to comment Share on other sites More sharing options...
Recommended Posts