Jump to content
  • 0
Sign in to follow this  
TheKingDino

Defining MAX_ITEMID beyond USHRT_MAX

Question

Posted (edited)

Must we use the macro constant of USHRT_MAX or is LONG_MAX an option? Has anyone messed with this? I simply ask because a lot of new item IDs are unfortunately beyond the 61k limit. They are unnecessarily so, but I'm trying to keep them aligned with the IDs I find on Divine Pride.

 

///Maximum allowed Item ID (range: 1 ~ 65,534)
#define MAX_ITEMID USHRT_MAX

Located in map/itemdb.hpp

Edited by TheKingDino
  • Upvote 1

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

going to find out
image.png.52700d63f38a21404942b074973c0615.png

^ no errors pogU

image.png.400f033dc309f7137678271a47be021f.png

^ it do let me create a item 310126
image.png.53e97f89d53123774fb7d68a7273fe47.png
 

i created the same script of ygg and it works but i cant make show on client tho

Share this post


Link to post
Share on other sites
  • 0

nevermore it works LMAO

image.png.0e60f8ed60cb9982aa29f7ea8a42ec6f.png

  • Upvote 1

Share this post


Link to post
Share on other sites
  • 0

Awesome. If this works then why are we sticking to the 61k limitation when 6 digit Item IDs have been out for quite a while now?

I'm confused.

Share this post


Link to post
Share on other sites
  • 0

i have no idea...

@Aleos ?

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)

If any developers or people with more knowledge know the answer to this. It'd be very appreciated!

I've currently made this change to my personal server. It runs just fine and I'm able to add 6-digit IDs now. I will let anyone know if I run into any issues.

Edited by TheKingDino

Share this post


Link to post
Share on other sites
  • 0

emulator doesnt support it or somewhere doesnt

packets doent support it

etc...

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.