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

Lua onRemoveItem() TFS 0.3.6

Mummrik

Hey!
Joined
Oct 22, 2007
Messages
707
Solutions
28
Reaction score
126
Location
Sweden
The script work as it should, but i do get an error when i move the item on the map.
But if i move it to backpack or arrow slot i dont get the error.
Anyone know what might be the problem?

Error:
Code:
[Error - MoveEvent::executeAddRemItem] Call stack overflow.

Script:
Code:
function onRemoveItem(moveItem, tileItem, position, cid)
   if moveItem.itemid == 2057 then
     doTransformItem(moveItem.uid, 2042)
     doDecayItem(moveItem.uid)
   end
   return true
end
 
Back
Top