Increasce itemid > 35k

ρixєℓ

New member
Messages
65
Points
0
Age
30
Location
Brazil, Brasília.
Github
PixelBr
Emulator
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?

 
Hey,

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

You will find this line:

///Maximum allowed Item ID (range: 1 ~ 65,534)
#define MAX_ITEMID USHRT_MAX
This should solve your Question :)

 
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.

 
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.

 
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:

#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
},
 

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

 
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

 
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

 
Last edited by a moderator:
Back
Top