how i can read items.otb to compare client-id for autoloot?

lucas123

New Member
Joined
Jun 6, 2010
Messages
85
Best answers
0
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
 

Quintinon

New Member
Joined
Aug 10, 2007
Messages
29
Best answers
0
Reaction score
0
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.
 

Summ

(\/)(;,,;)(\/) Y not?
Staff member
Global Moderator
Joined
Oct 15, 2008
Messages
4,160
Best answers
9
Reaction score
1,010
Location
Germany :O
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()))
 
Top