ρixєℓ 21 Posted July 25, 2019 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? Quote Share this post Link to post Share on other sites
0 Zarbony 1 Posted July 25, 2019 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 Quote Share this post Link to post Share on other sites
0 ρixєℓ 21 Posted July 26, 2019 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.. Quote Share this post Link to post Share on other sites
0 Zarbony 1 Posted July 26, 2019 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. Quote Share this post Link to post Share on other sites
0 ρixєℓ 21 Posted July 26, 2019 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. Quote Share this post Link to post Share on other sites
0 Zarbony 1 Posted July 26, 2019 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: 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 }, Quote Share this post Link to post Share on other sites
0 ρixєℓ 21 Posted July 26, 2019 22 minutes ago, Zarbony said: 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: Strange, mine is the same and yet it doesn't work. Quote Share this post Link to post Share on other sites
0 4144 366 Posted July 26, 2019 client should support big ids too. if it not, 64k id will not works for client. And will show errors or wrong sprites Quote Share this post Link to post Share on other sites
0 ρixєℓ 21 Posted July 26, 2019 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. Quote Share this post Link to post Share on other sites
0 4144 366 Posted July 26, 2019 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 Quote Share this post Link to post Share on other sites
0 ρixєℓ 21 Posted July 26, 2019 (edited) 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 July 26, 2019 by ρixєℓ Quote Share this post Link to post Share on other sites
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