i refer to the CreatureEvent onMoveItem made by Mock, i tried with this code:
it doesn't work, what's the correct way?
thanks in advance
LUA:
function onMoveItem(moveItem, frompos, position, cid)
if( moveItem.itemid == 3232) then
if(frompos.x == 65535 and frompos.y >= 64 and frompos.y <= 79 and position.x ~= 65535) then
return false
elseif(frompos.x == 65535 and frompos.y <= 10 and position.x ~= 65535) then
return false
else
return true
end
end
return true
end
it doesn't work, what's the correct way?
thanks in advance
Last edited: