president vankk
Web Developer & AuraOT Owner
- Joined
- Jul 10, 2009
- Messages
- 5,719
- Solutions
- 9
- Reaction score
- 339
Hi everyone, I was trying make something like you cannot move items that are under the items ids configured by using browsefield, but it isn't working, you still can move the items. Check the code:
Thanks
Code:
function Player:onBrowseField(position)
local tile = Tile(position)
if tile then
local topItem = tile:getTopTopItem()
if topItem and topItem:getId() == 8046 then
return false
elseif topItem and topItem:getId() == 1512 then
return false
elseif topItem and topItem:getId() == 1513 then
return false
end
end
return true
end
Thanks