Hello im trying to configurate my poi scripts but im totally newbie in this and i dont know what's wrong.
I put this in movements.xml
than in Pitsofinferno
And on map at the ground when you have to step in to be teleport i put unique id.
And here is problem. When i step in on this ground nothing happen ;/ Anyone can help?
I put this in movements.xml
Code:
<movevent event="StepIn" uniqueid="10201" script="PitsOfInferno/MagicWallEntrance.lua" />
<movevent event="StepIn" uniqueid="10202" script="PitsOfInferno/MagicWallExit.lua" />
than in Pitsofinferno
Code:
function onStepIn(cid, item, frompos, item2, topos)
local playerPosition = getPlayerPosition(cid)
local newPosition = {x=1517, y=1442, z=9}
if item.uid == 10201 then
getThingfromPos(playerPosition)
doSendMagicEffect(playerPosition, 2)
doTeleportThing(cid, newPosition)
doSendMagicEffect(newPosition, 10)
end
return true
end
And on map at the ground when you have to step in to be teleport i put unique id.
And here is problem. When i step in on this ground nothing happen ;/ Anyone can help?