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

Commands !t 1 / !town

Joined
Apr 10, 2012
Messages
74
Reaction score
0
hi any one have script !t 1 or !town like when u write this commands you tp to the other temple , and you can only use in pz area. <_< .
 
Last edited:
Try this not sure if it works but post errors
i know it can be shorter but iam new :p
Lua:
local config = { 
    1 = {x = x, y = y, z = z}, 
    2 = {x = x, y = y, z = z},
    3 = {x = x, y = y, z = z} 
} 

function onSay(cid, words, param, channel) 

    param = param:lower() 

if hasCondition(cid, CONDITION_INFIGHT) == TRUE then 
    doPlayerSendCancel(cid, "You may not teleport while in combat.") 
    return true 
end 
        if param == '1' then 
            if doTeleportThing(cid, config.1, true) then 
                doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT) 
            end 
        elseif param == '2' then 
            if doTeleportThing(cid, config.2, true) then 
                doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT) 
            end 
        elseif param == '3' then 
            if doTeleportThing(cid, config.3, true) then 
                doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT) 
            end 
        else 
            doPlayerSendCancel(cid, "There is no such place.") 
            return true 
        end 
     
    return true 
end

Lua:
	<talkaction words="!t" event="script" value="t.lua"/>
 
Last edited:
i have it in my war project but i won't give it to anyone sorry

Lol just leave otland. You're so retarded hahah. Not even a hard script to make and you dont wanna give someone it and post on this thread just to be a dick. Wtf has the otland community come to..
 
Lol just leave otland. You're so retarded hahah. Not even a hard script to make and you dont wanna give someone it and post on this thread just to be a dick. Wtf has the otland community come to..

heh ello is just noob, he wrote talkaction !t and he think is god hahaha he is just noob ;p
 
in the Spells Folder,Create a New Notepad Text.(And Name It Citytp)
local function doTeleport(cid, count)
if not isPlayer(cid) then
return true
end
doSendAnimatedText(getThingPos(cid), 5 - count..'s', COLOR_ORANGE)
doSendMagicEffect(getThingPos(cid), CONST_ME_YELLOW_RINGS)
if count == 5 then
return doCreatureSetNoMove(cid, false) and doTeleportThing(cid, {x=1000,y=1000,z=7}) and doCreatureSay(cid, 'You have been teleported to temple Asshole', TALKTYPE_ORANGE_1, false, cid)
else
addEvent(doTeleport, 1000, cid, count + 1)
end
return true
end

function onCastSpell(cid, var)
if getCreatureSkullType(cid) > SKULL_GREEN or isPlayerPzLocked(cid) or getCreatureCondition(cid, CONDITION_INFIGHT) then
doPlayerSendCancel(cid, 'You cannot use this spell while you got pz mark on, nor if you are skulled.')
else
return doCreatureSetNoMove(cid, true) and doTeleport(cid, 0)
end
end

And Put This in Spell.Lua

<instant name="City Teleport" words="exana home" lvl="6" mana="0" aggressive="0" selftarget="1" exhaustion="5000" needlearn="0" event="script" value="citytp.lua">
<vocation id="1-15"/>
</instant>
 
Back
Top