• 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!

Solved Best way to convert client spriteId to server item id ?

G4BB3R

New Member
Joined
Jul 23, 2010
Messages
80
Reaction score
4
Hello :D

I would like to know if actually there is a function to convert in the server sided itemId:
iterating through the .otb file and checking if the item has the same spriteId, than return the correct item id :)

Example:
Gold Coin Sprite Id: 3031
Gold Coin Server Id: 2148

Any help is welcome
Thanks again

- - - Updated - - -

My Friend solved it to me

Code:
Item::items.getItemIdByClientId(spriteId);
 
Last edited:
Hello :D

I would like to know if actually there is a function to convert in the server sided itemId:
iterating through the .otb file and checking if the item has the same spriteId, than return the correct item id :)

Example:


Any help is welcome
Thanks again

- - - Updated - - -

My Friend solved it to me

Code:
Item::items.getItemIdByClientId(spriteId);
How should I use that code?
 
Back
Top