• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How to get server's items id?

Togu

Advanced OT User
Joined
Jun 22, 2018
Messages
308
Solutions
1
Reaction score
178
Location
Brazil
Is there an easy way to do that?

OTClient's items id are different from tfs' items id.

Edit:
Only by loading 'items.otb' file, which translates 'client id' to 'server id'.
OTClient can do it. After loading '.dat' file you must execute in OTClient console:
Code:
g_things.loadOtb('data/things/1099/items.otb')
Then you can get item server id from 'Item':
Code:
local item = <SOME CODE TO GET Item>
print('client id: ', item:getId())
print('server id: ', item:getServerId())

Gonna try it and then I'll give feedback here haha
 
Last edited:
He used an items.otb file copy ínside otc folder and then took all the ids from there
items.otb seems a binary file such as the .dat or .spr. Thinking in this, there are any resource of its bytes structure that can help me write a reader for it and retrieve the IDs?
 
did anyone succeed? I've been trying for days to get the itemID from the server.
 
Why not to simply use TFS to deserialize items.otb? You can modify main() in such a way that, will load items.otb and after that You can simply iterate through all items and create map. This super easy task to do!
1620662725738.png
 
Back
Top