Zardon 4 Posted April 16, 2014 Share Posted April 16, 2014 Hey guys, I want to increase the max count of inventory. I know that I actually can have only 255 so I need to edit the datatypes of some things. Now my question: Which files do I have to edit for more slots? Link to comment Share on other sites More sharing options...
Former Staff Shisui 490 Posted April 17, 2014 Former Staff Share Posted April 17, 2014 Maybe this? http://metin2dev.org/board/topic/791-metin2-4-inventory-page/ Link to comment Share on other sites More sharing options...
Yiv 321 Posted April 17, 2014 Share Posted April 17, 2014 He has an inventory like this but now the datatype of the slots isn't enough because the limit of BYTE (unsigned char) is 255. He has to increase it to use the last slots of belt window, but his problem is, he don't know every function which is using the cells so he has to change the datatypes there. Regards Link to comment Share on other sites More sharing options...
Former Staff .InyaProduction 1123 Posted April 17, 2014 Former Staff Share Posted April 17, 2014 He doesnt mean Inventor size. He means Stack size of items Link to comment Share on other sites More sharing options...
Zardon 4 Posted April 17, 2014 Author Share Posted April 17, 2014 No DaJuBi uis right i want to change the mac count of the inventory slots not items per stack. Link to comment Share on other sites More sharing options...
Yiv 321 Posted April 17, 2014 Share Posted April 17, 2014 No... He means size of inventory because you can only have 255 slots which is reached when you have 4 inventories so you can't use the last slots of belt window. Regards Link to comment Share on other sites More sharing options...
Denis 1474 Posted April 18, 2014 Share Posted April 18, 2014 Files that you have to edit is: common/length.h game/src/exchange.cpp game/src/char_item.cpp 2 Link to comment Share on other sites More sharing options...
Zardon 4 Posted April 20, 2014 Author Share Posted April 20, 2014 I've edited them so that every time the variable wCell the datatype word has. Do I have to edit something in the binary too? Link to comment Share on other sites More sharing options...
Yiv 321 Posted April 20, 2014 Share Posted April 20, 2014 Zardon you have to take a look at the binary. Just follow the procedure of receiving and sending packets where cells are used. Regards Link to comment Share on other sites More sharing options...
Denis 1474 Posted April 20, 2014 Share Posted April 20, 2014 In binary you need to change the const DWORD c_Inventory_Page_Count = 2; to const DWORD c_Inventory_Page_Count = 5; at the file UserInterface/GameType.h 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