I want to return false if an item is trying to be thrown onto a table containing an item with actionid XXXX.
What i tried, in data/events/player @onMoveItem:
But as expected getActionId will return nil.. I tried a couple other alternatives but nothing will succeed.
What i tried, in data/events/player @onMoveItem:
Lua:
local unplace = getThingfromPos({x=toPosition.x,y=toPosition.y,z=toPosition.z,stackpos=2})
if unplace:getActionId() == 9999 then
return false
end
But as expected getActionId will return nil.. I tried a couple other alternatives but nothing will succeed.