GeKirAh
Banned User
Basic Talkaction Teleport
Credits go to: Colandus (Base Code), Master Exploder (Help With Errors) & Me (Edits / Updating).
This script is pretty much basic you set a SQM a player stands on and the "password" they have to say if its correct there teleported to a new pos.
Update: Updated to work on 8.XX server's as requested. UNTESTED
- Please post any error's or bugs.
- Requests for addons for this accepted but please give time to respond.
- Please make sure you keep credits if you use this script.
talkactions/teleport.lua
Code:
talkactions/talkactions.xml
Code:
Plus if you want it so only a certain vocation can use that teleport add this under "function onSay(cid, param)" in teleport.lua:
Code:
And add this at the end of you script.
Code:
Vocation ID's:
Sorc
Druid
Pally
Knight
Master Sorc
Elder Druid
Royal Pally
Elite Knight
And No Vocation is 0.
This is before you say the words:
http://i21.photobucket.com/albums/b281/Avashra/pic1.jpg
And After:
http://i21.photobucket.com/albums/b281/Avashra/pic2.jpg
Credits~Avashra.
Credits go to: Colandus (Base Code), Master Exploder (Help With Errors) & Me (Edits / Updating).
This script is pretty much basic you set a SQM a player stands on and the "password" they have to say if its correct there teleported to a new pos.
Update: Updated to work on 8.XX server's as requested. UNTESTED
- Please post any error's or bugs.
- Requests for addons for this accepted but please give time to respond.
- Please make sure you keep credits if you use this script.
talkactions/teleport.lua
Code:
Code:
-- Made by Colandus, Master Exploder, Ramondo / Avashra.
-- Please keep credits here if you use this script.
-- Works for 8.xx servers.
local oldPos = {x=100,y=100,z=7}
local newPos = {x=100,y=100,z=7}
function onSay(cid, param)
if item.actionid == 10001 and getPlayerLevel(cid) >= 400 then
doSendMagicEffect(oldPos, 10)
doTeleportThing(cid,newPos)
doSendMagicEffect(newPos, 10)
end
return 1
end
Code:
Code:
<talkaction words="password" script="teleport.lua" />
Code:
Code:
if getPlayerVocation(cid) == 0 then
Code:
Code:
end
Vocation ID's:
Sorc
Druid
Pally
Knight
Master Sorc
Elder Druid
Royal Pally
Elite Knight
And No Vocation is 0.
This is before you say the words:
http://i21.photobucket.com/albums/b281/Avashra/pic1.jpg
And After:
http://i21.photobucket.com/albums/b281/Avashra/pic2.jpg
Credits~Avashra.