• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

!t1, !t2, !t3 talkaction script

Mr Zool

New Member
Joined
Jul 5, 2012
Messages
216
Reaction score
2
I need a talkaction script.

Commands :
!t1, !t2, !t3, !t4, !t5, !t6

When pll write !t1 going to xyz
when pll write !t2 going to xyz
 
Code:
function onSay(cid, words, param)
    if (getCreatureCondition(cid, CONDITION_INFIGHT) == false) then
        if (tonumber(param) ~= nil and tonumber(param) > 0 and tonumber(param) < 8) then
            doTeleportThing(cid, getTownTemplePosition(param))
            return true
        else
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Bad parameter. E.g.: !town 1 (1-7)")
            return true
        end
    else
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You are in fight!!! Arrgg....")
    end
    return true
end

using town positions, better than xyz
 
Code:
function onSay(cid, words, param)
ppos = getPlayerPosition(cid)
position = { x = 1000, y = 1000, z =7 }
if (getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE) then
doTeleportThing(cid, position, TRUE)
else
doPlayerSendCancel(cid,"You can't teleport immediately after fight.")
doSendMagicEffect(ppos,2)
end
return 1
end
 
Back
Top