ρixєℓ
New member
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?
This should solve your Question///Maximum allowed Item ID (range: 1 ~ 65,534)
#define MAX_ITEMID USHRT_MAX
rAthena? Don's work..Hey,
If you Check the file /src/map/itemdb.hpp
You will find this line:
This should solve your Question![]()
I use herc, but this solution you sent to rathena, I tested here on current herc and it didn't work.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.
#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
},
Strange, mine is the same and yet it doesn't work.Oh sorry, i used the wrong Server![]()
This is because my Server is in the Switching process :X
So here is what i have in my itemdb.h:
Yes, I used the same client on another emulator and it worked normally.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
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.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
We use essential cookies to make this site work, and optional cookies to enhance your experience.