AinsLord Posted April 28, 2023 Group: Members Topic Count: 261 Topics Per Day: 0.08 Content Count: 758 Reputation: 20 Joined: 11/21/15 Last Seen: April 6 Share Posted April 28, 2023 (edited) so i tried to increase the inventory capacity i did diff like 200 cap it shows however it stills carry 100/100 items doesnt exceed to or reach even 101 ive checked src file i dunno what to edit there can i anyone help me? PS: this is the mmo.hpp #if PACKETVER_MAIN_NUM >= 20190522 || PACKETVER_RE_NUM >= 20190508 || PACKETVER_ZERO_NUM >= 20190605 #define MAX_HOTKEYS_DB ((MAX_HOTKEYS) * 2) #else #define MAX_HOTKEYS_DB MAX_HOTKEYS #endif #define MAX_MAP_PER_SERVER 1500 /// Maximum amount of maps available on a server #ifndef INVENTORY_BASE_SIZE #define INVENTORY_BASE_SIZE 150 // Amount of inventory slots each player has #endif #ifndef INVENTORY_EXPANSION_SIZE #if PACKETVER_MAIN_NUM >= 20181031 || PACKETVER_RE_NUM >= 20181031 || PACKETVER_ZERO_NUM >= 20181114 #define INVENTORY_EXPANSION_SIZE 100 // Amount of additional inventory slots a player can have #else #define INVENTORY_EXPANSION_SIZE 0 #endif #endif #ifndef MAX_INVENTORY #define MAX_INVENTORY ( INVENTORY_BASE_SIZE + INVENTORY_EXPANSION_SIZE ) // Maximum items in player inventory (in total) #else #if MAX_INVENTORY < ( INVENTORY_BASE_SIZE + INVENTORY_EXPANSION_SIZE ) #error Your custom MAX_INVENTORY define is too low #endif #endif i tried 150 still cant thanks Edited April 28, 2023 by AinsLord Quote Link to comment Share on other sites More sharing options...
0 alexhu Posted June 4, 2023 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 1 Reputation: 0 Joined: 04/03/23 Last Seen: June 29, 2023 Share Posted June 4, 2023 i'm sure you already found the answer despite at such late reply. if that's not the case... here it is: you may set INVENTORY_BASE_SIZE to 150 then re-compile. It works, it's just the inventory display wrong because of hard-coded client site. you can patch client and set the maximum inventory base on your mmo.hpp setting. please beware that the total of MAX_INVENTORY never go exceed at around 250 due to the 'packet size'? else your server would freezed out of existent. Quote Link to comment Share on other sites More sharing options...
Question
AinsLord
so i tried to increase the inventory capacity
i did diff like 200 cap it shows however
it stills carry 100/100 items doesnt exceed to
or reach even 101 ive checked src file
i dunno what to edit there
can i anyone help me?
PS:
this is the mmo.hpp
i tried 150 still cant
thanks
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.