bpm91
Well-Known Member
hello, I have a small problem, when playing the item in the position in movements the item should be teleported when falling on top of that position but it doesn't happen, because my script is version 0.4 can someone help me convert to 1.5?
<movevent event="AddItem" pos="32701,31637,6" script="pisodemona.lua"/>
<movevent event="AddItem" pos="32701,31637,6" script="pisodemona.lua"/>
Lua:
local positionTo = {x=32817, y=31600, z=9} -- Position para onde o item vai ser mandado
function onAddItem(item, tile, pos)
if not isInArray(item_exceptions, item.itemid) then
doTeleportThing(item.uid, positionTo)
doSendMagicEffect(pos, 10)
end
return true
end