<movevent event="StepIn" itemid="0000" script="script.lua"/>
function onStepIn(cid, item, frompos, item2, topos)
NewPOS = {x=000, y=000, z=7}
if item.actionid == 0000 then
doPlayerSendTextMessage(cid,22,"Hah!! Tped!!")
doTeleportThing(cid,NewPos)
doSendMagicEffect(NewPos,12)
return 1
end
end
Movements/Movements.xml
PHP:<movevent event="StepIn" itemid="0000" script="script.lua"/>
Movements/scripts/"tp.lua?"
PHP:function onStepIn(cid, item, frompos, item2, topos) NewPOS = {x=000, y=000, z=7} if item.actionid == 0000 then doPlayerSendTextMessage(cid,22,"Hah!! Tped!!") doTeleportThing(cid,NewPos) doSendMagicEffect(NewPos,12) return 1 end end
hope it helped you
Edit:
Item."actionid" --The action id of the item
Item."uid" --The unique id of the item
"item." --The item you use/step on
************
item.Actionid
item.uid
function onStepIn(cid, item, frompos, item2, topos)
NewPOS = {x=000, y=000, z=7}
if item.actionid == 0000 then
doPlayerSendTextMessage(cid,22,"Hah!! Tped!!")
doTeleportThing(cid,NewPos)
doSendMagicEffect(NewPos,12)
return 1
end
end
local NewPOS = {x=000, y=000, z=7}
function onStepIn(cid, item, frompos, item2, topos)
if item.actionid == 0000 then
doPlayerSendTextMessage(cid,22,"Hah!! Tped!!")
doTeleportThing(cid,NewPos)
doSendMagicEffect(NewPos,12)
return 1
end
end