Well, I made a script that when i use a switch, a tile will get a specific actionid.
then I made a script with some help to teleport when I walk in the tile.
here's the movement script:
and here is the movements.xml:
Im not teleporting, whats wrong?
thanks
then I made a script with some help to teleport when I walk in the tile.
here's the movement script:
PHP:
function onStepIn(cid,item,pos)
if item.actionid == 500 then
local newpos = {x=353,y=107,z=8}
doTeleportThing(cid, newpos)
end
end
and here is the movements.xml:
PHP:
<movement event="StepIn" actionid="500" script="tileteleport.lua" />
<movement event="StepOut" actionid="500" script="tileteleport.lua" />
Im not teleporting, whats wrong?
thanks