• 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
818
Solutions
6
Reaction score
143
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?
 

Infernum

Senator
Joined
Feb 14, 2015
Messages
5,629
Solutions
559
Reaction score
3,830
Just use Player:onMoveItem located in data/events/player.lua. The player object is referenced by the self keyword, for example: print(self:getName())
 
Top