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

tfs 1.3 onAddItem

kimokimo

Kimo
Joined
Jan 25, 2011
Messages
821
Solutions
6
Reaction score
156
GitHub
karimadnan
I'm still testing stuff with tfs 1.3 and i got stuck on this function

function onAddItem(moveItem, tileItem, position)

did they remove cid from the function? if yes how do i return the creature moving or adding the item?
 
Just use Player:onMoveItem located in data/events/player.lua. The player object is referenced by the self keyword, for example: print(self:getName())
 
Back
Top