• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Advanced Teleport: X sqm Send Y vocation to Z sqm ;D

GeKirAh

Banned User
Joined
Feb 14, 2009
Messages
163
Reaction score
0
Location
Brazil !!!
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:
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
talkactions/talkactions.xml
Code:
Code:
<talkaction words="password" script="teleport.lua" />
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:
Code:
if getPlayerVocation(cid) == 0 then
And add this at the end of you script.
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.
 
Ah no bug, just forgot to copy the last end
thanks :>
hmm

[05/03/2009 21:10:07] Lua Script Error: [TalkAction Interface]
[05/03/2009 21:10:07] data/talkactions/scripts/teleport.lua:eek:nSay

[05/03/2009 21:10:07] data/talkactions/scripts/teleport.lua:9: attempt to index global 'item' (a nil value)
[05/03/2009 21:10:07] stack traceback:
[05/03/2009 21:10:07] data/talkactions/scripts/teleport.lua:9: in function <data/talkactions/scripts/teleport.lua:8>
 
Last edited:
Maybe you dont configured the vocations? :p
I getted it with other forum, But all comments told it work!
 
Back
Top