• 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 i can read items.otb to compare client-id for autoloot?

lucas123

New Member
Joined
Jun 6, 2010
Messages
85
Reaction score
4
i will make auto-loot system, (with server-sided too) but i need to add itens in autoloot via ot-client

how i can convert server-itemid to client-itemid or read items.otb to compare sprites-id? thanks
 
In the server this information is already loaded, items should have a clientid property you can access.

If you don't know how to get this information, in the protocol section of the server, it has to send client id's of sprites, so you should be able to pick a function where items are sent to see how its accessed.
 
If you have an item object you should be able to call the methods getClientId() or getServerId():
Lua:
local item -- assume the item object is called item
print(string.format("ServerId: %d, ClientId: %d", item:getServerId(), item:getClientId()))
 
Back
Top