• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

My movement script not working +Help

mikeware

New Member
Joined
Jul 17, 2007
Messages
338
Reaction score
0
Location
Brazil
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:
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
 
master-m said:
Maby the switch isnt giving the actionid?


there's no switch, u step in the tile with actionid 500 and the script should teleport, ill test remove the local but dont think it'll work,,
thanks anyway

19kevva93 said:
remove local...

Did that, still don't working :(
 
Last edited by a moderator:
Back
Top