I am trying to do a script which when the player walk in certain tile he is teleported, but is not working =/
What could be?
What could be?
PHP:
function onStepIn(cid, item, pos)
teleport = {x=1211, y=1233, z=7}
teleport1 = {x =1212, y =1215, z=7}
if isPlayer(cid) == 1 and item.actionid == 5820 then
doSendMagicEffect(teleport,10)
doTeleportThing(cid,teleport)
elseif isPlayer(cid) == 1 and item.actionid == 5821 then
doSendMagicEffect(teleport,10)
doTeleportThing(cid,teleport1)
end
end