Jump to content
  • 0

Change Max Items in Inventory


Kater

Question


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.20
  • Content Count:  175
  • Reputation:   2
  • Joined:  04/03/24
  • Last Seen:  

Hi guys, could you help me change the maximum number of items in the inventory?
I made the change in the src and it didn't work, I wanted to validate if it's correct.

Also, is there any change in the client, because I tried to edit in nemo and it's not accepting it.

2018-09-19aRagexe

image.png.2f034a79a89645521ec9f89d08772fdb.png

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  896
  • Reputation:   248
  • Joined:  01/30/13
  • Last Seen:  

mmo.h

#ifndef INVENTORY_BASE_SIZE
	#define INVENTORY_BASE_SIZE 100 // 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

Be aware that this number shouldn't exceed 480.

No idea on what's needed client-sided.

Link to comment
Share on other sites

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.

×
×
  • Create New...