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

How to change this advanced teleport script to not be used with atack symbal?

Code:
    local storage = 1900 ---Here Will save the save point, if you set it to 1900 make you sure you dont have use the storages 1900,1901 and 1902
    local naccess = 3 ---change it to the acces that you need to use the comand.
    function onSay(cid, words, param)
    
    if getCreatureCondition(cid, CONDITION_INFIGHT) == 0 then
        if getPlayerAccess(cid) >= naccess then
        newpos = {
        ["depot"] = {x=1029, y=996, z=7},
        ["enigma"] = {x=1000, y=1000, z=7}, 
        ["dragon"] = {x=980, y=1117, z=7}, 
        ["back"] = { x = getPlayerStorageValue(cid, storage), y = getPlayerStorageValue(cid, storage+1), z = getPlayerStorageValue(cid, storage+2)}} 
----------------------------------End Config--------------------------------------------------------------------------------
        npos = newpos[param]
        setPlayerStorageValue(cid, storage, getPlayerPosition(cid).x)
        setPlayerStorageValue(cid, storage+1, getPlayerPosition(cid).y)
        setPlayerStorageValue(cid, storage+2, getPlayerPosition(cid).z)
        doTeleportThing(cid, npos)
        doSendMagicEffect(npos, 10)
        end
    end
end
-----------------------By Nahruto--------------------------

I think that one will work ;)
 
dont work for me >_<
i think im doing something wrong but i follow all the insctructions :S
im using TFS 0.2.13 rev 1000 modified by gesior
when i try to use it with a normal player or my gm (acces 5) nothing happens :S
 
Last edited:
Did you change the 2 setting in the top of the script?
Code:
    local storage = 1900 ---Here Will save the save point, if you set it to 1900 make you sure you dont have use the storages 1900,1901 and 1902
    local naccess = 3 ---change it to the acces that you need to use the comand.
 
Back
Top