• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

A little question about item class in open tibia.

Mock

Mock the bear (MTB)
Joined
Jul 29, 2008
Messages
619
Reaction score
109
Location
Brazil
Do anyonw know why when you move a item his UID changes?
Not the UID related the uid you set on the map yes the item.uid
 
I think its because the item is deleted onmove and a new one is created, I had the problem when I wanted to make uids work for stackables.

int32_t itemIndex = fromCylinder->__getIndexOfThing(item);
fromCylinder->__removeThing(item, m);
bool isCompleteRemoval = item->isRemoved();
 
Back
Top