E
Evil Puncker
Guest
Using tfs 1.3, no errors on console, I can throw any item on the position but it doesn't move it out, the 'print' is never executed, wham am I missing?:
LUA:
local item_exceptions = {2152, 2160, 5792, 5793, 5794, 5795, 5796, 5797}
local antiTrasher = MoveEvent()
function onAddItem(moveitem, tileitem, position)
if not isInArray(item_exceptions, moveitem.itemid) then
print("executed")
moveitem:moveTo(moveitem.itemid, Position(1531,1152,7))
end
return true
end
antiTrasher:position(Position(1527,1152,7))
antiTrasher:type("additem")
antiTrasher:register()