Jump to content
  • 0

increasing inventory capacity


Question

Posted (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

image_2023-04-28_184404427.png

Edited by AinsLord

1 answer to this question

Recommended Posts

  • 0
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...