• 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!

Tp Script

ya :p gona trythx any way bro

will i searched but all i have find is scroll tp , and i need When player click or use on wall he got Tp With Magic effect and text ... Help ?
 
Last edited by a moderator:
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local tp {x=XXX, y=YYY, z=ZZZ}

doTeleportThing(cid, tp)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_YELLOW)
doPlayerSendTextMessage(cid, 19, "This text pwn") 
end
Can't be more simple..
 
thx bro Rep+ But i need other script Tp send magic effect and Text

Use this \/

Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local tp {x=XXX, y=YYY, z=ZZZ}

doTeleportThing(cid, tp)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_YELLOW)
doPlayerSendTextMessage(cid, 19, "This text pwn") 
end
Can't be more simple..

Just change the "local tp {x=XXX, y=YYY, z=ZZZ}"
and "doPlayerSendTextMessage(cid, 19, "This text pwn")"
Just simply add your own text here ------------/\
and the position on local tp...
 
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local tp {x = 100, y = 200, z = 7}
       if item.actionid == 9531 then
           doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POOF)
           doTeleportThing(cid, tp)
           doSendMagicEffect(tp, CONST_ME_FIREWORK_YELLOW)
           doSendAnimatedText(tp, "It Pwns!", 180)
       end
return true
end
 
Thx all i gived for all rep :)

Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local tp {x = 100, y = 200, z = 7}
       if item.actionid == 9531 then
           doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POOF)
           doTeleportThing(cid, tp)
           doSendMagicEffect(tp, CONST_ME_FIREWORK_YELLOW)
           doSendAnimatedText(tp, "It Pwns!", 180)
       end
return true
end
what is the globalevents.xml code
 
Last edited by a moderator:
what is the globalevents.xml code

This is an action script put it in data/actions/scripts
then the actions.xml part here
Code:
<action actionid="9531" script="tp.lua"/>
then place the actionid in the certain tile u want from the map editor and it should work fine
 
This is an action script put it in data/actions/scripts
then the actions.xml part here
Code:
<action actionid="9531" script="tp.lua"/>
then place the actionid in the certain tile u want from the map editor and it should work fine

Don't forget to use TABS!!!
 
Thread moved to the proper section. Please use the
edit.gif
button instead of posting two posts in a row.
 
Back
Top