Wusse
Member
- Joined
- Oct 3, 2023
- Messages
- 62
- Solutions
- 1
- Reaction score
- 16
Hey!
Using TFS 1.4.2 10.98
i came across this thread (Lua - Block item throw to specified tile (https://otland.net/threads/block-item-throw-to-specified-tile.277995/#post-2672662))
and im trying to use the second example Sarah mentions.
this is how my script looks like:
this is my events.xml:
gyazo.com
ive tried it but it doesnt seem to work for me and i dont really understand why, if someone could shed some light into this problem id appreciate it!
GIF showing the problem:
gyazo.com
Using TFS 1.4.2 10.98
i came across this thread (Lua - Block item throw to specified tile (https://otland.net/threads/block-item-throw-to-specified-tile.277995/#post-2672662))
and im trying to use the second example Sarah mentions.
this is how my script looks like:
LUA:
local ids = {9999}
local ec = EventCallback
function ec.onMoveItem(player, item, count, fromPosition, toPosition, fromCylinder, toCylinder)
local tile = Tile(toPosition)
if tile then
for _, i in pairs(tile:getItems()) do
if i:getActionId() == ids then
return false
end
end
end
return true
end
ec:register(-1)
this is my events.xml:

Gyazo
ive tried it but it doesnt seem to work for me and i dont really understand why, if someone could shed some light into this problem id appreciate it!
GIF showing the problem:
