Jump to content
  • 0
Sign in to follow this  
ρixєℓ

Increasce itemid > 35k

Question

Hello guys, I have an item base from another instruction set to save the converter, however, I have to set the number from 40000 to 45000, how to set the emulator to read this ID number?

Share this post


Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Hey,

If you Check the file /src/map/itemdb.hpp

 

You will find this line:

Quote

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


This should solve your Question :)

Share this post


Link to post
Share on other sites
  • 0
26 minutes ago, Zarbony said:

Hey,

If you Check the file /src/map/itemdb.hpp

 

You will find this line:


This should solve your Question :)

rAthena? Don's work..

Share this post


Link to post
Share on other sites
  • 0

Hmm i dont know that u use rAthena.

At the moment i switch my Active Server from rAthena to Herc.

 

And for me the Converter works fine, surely with Items above 40k IDs.

My Server got about 978 Item IDs above 40k.

Share this post


Link to post
Share on other sites
  • 0
2 minutes ago, Zarbony said:

Hmm i dont know that u use rAthena.

At the moment i switch my Active Server from rAthena to Herc.

 

And for me the Converter works fine, surely with Items above 40k IDs.

My Server got about 978 Item IDs above 40k.


I use herc, but this solution you sent to rathena, I tested here on current herc and it didn't work.

Share this post


Link to post
Share on other sites
  • 0

Oh sorry, i used the wrong Server :D

This is because my Server is in the Switching process :X

So here is what i have in my itemdb.h:

Quote

#ifndef MAX_ITEMDB
#define MAX_ITEMDB 0xFFFF
#endif

#ifndef MAX_ITEM_ID
#if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
#define MAX_ITEM_ID 0x20000
#else
#define MAX_ITEM_ID 0xFFFF
#endif
#endif

 

Line 72-78:

#if MAX_ITEM_ID < MAX_ITEMDB
#error "MAX_ITEM_ID must be bigger or same with MAX_ITEMDB"
#endif
#if MAX_ITEM_ID > 0xFFFF && PACKETVER_MAIN_NUM < 20181121 && PACKETVER_RE_NUM < 20180704 && PACKETVER_ZERO_NUM < 20181114
#error "For clients before 20181121 Main and 20180704 RE and 20181114 zero, MAX_ITEM_ID must be smaller than 0x10000"
#endif

 

And here one of my Converted Items from rAthena to herc:

{
    Id:40000
    AegisName: "Purple_Gift"
    Name: "Purple Gift"
    Type: 3
    Sell: 5000000
    Weight: 1000
    ShowDropEffect: true
    DropEffectMode: 4
},
 


 

 

Share this post


Link to post
Share on other sites
  • 0
22 minutes ago, Zarbony said:

Oh sorry, i used the wrong Server :D

This is because my Server is in the Switching process :X

So here is what i have in my itemdb.h:

 

Strange, mine is the same and yet it doesn't work.

Share this post


Link to post
Share on other sites
  • 0

client should support big ids too. if it not, 64k id will not works for client. And will show errors or wrong sprites

Share this post


Link to post
Share on other sites
  • 0
2 minutes ago, 4144 said:

O cliente também deve suportar grandes ids. se não, o 64k id não funcionará para o cliente. E vai mostrar erros ou sprites errados

Yes, I used the same client on another emulator and it worked normally.

Share this post


Link to post
Share on other sites
  • 0

then you doing something wrong.

Also you can use new clients with id limit up to 2147483648. In config by default it set to 131072

Share this post


Link to post
Share on other sites
  • 0
26 minutes ago, 4144 said:

then you doing something wrong.

Also you can use new clients with id limit up to 2147483648. In config by default it set to 131072

I changed the ID of an item to 28000 and it worked normally, client I use is 2014-10-22, problem of changing the ID of all is that there are more than 500 items.

@EDIT

 

Sorry guys, was using Sprite: as opposed to Vision:

 

now it worked normally

Edited by ρixєℓ

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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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