E
Evil Puncker
Guest
Hello, I'm breaking my head to get this to work but no success, currently I have tried the following:
What I need is, the script is a OnMoveItem event that needs to do the following:
but right now my script prevents it to move anywhere, thanks in advance
Lua:
local tile2 = Tile(toPosition)
if tile2 and not tile2:hasFlag(TILESTATE_HOUSE) and item:getAttribute("wrapid") then
self:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
return false
end
What I need is, the script is a OnMoveItem event that needs to do the following:
- if the moved item have the getAttribute("wrapid") it will only be possible to move to backpack or the character house floor
- if you try to move it out of the house it should return 'not possible'
but right now my script prevents it to move anywhere, thanks in advance