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

TFS 1.2 Some commands request

S

Shadow_

Guest
Hello,
I'am using tfs 1.2 client 10.95 and i want some old talkactions for 8.60 0.3.6 like :
!aol
!level
!commands ( tried many scripts but all of them show the player the staff commands ex: (/i) )
!cast commands
/war commands
/promote , /demote ( promoting player group id and account type )
i mean if he is player promote to tutor if i used the same command promote to game master and if i used it again promote to god ( like in 8.60 0.3.6 )
!info ( which shows max mana and max health )

Thanks.
 
Last edited by a moderator:
For aol use:


Lua:
local price_aol = 50000

function onSay(player, words, param)
   
    if player:removeMoney(price_aol) then
        player:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
        player:addItem(2173, 1)   
    else
        player:getPosition():sendMagicEffect(CONST_ME_POFF)
        player:sendCancelMessage("You dont have enought money.")
    end
   
end

For commands use (you need to edit them):

Lua:
function onSay(player, words, param)
    if player:getExhaustion(1000) <= 0 then
        player:setExhaustion(1000, 2)
        player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Player commands:" .. "\n"
            .. "!buyhouse" .. "\n"
            .. "!leavehouse" .. "\n"
            .. "!cast on" .. "\n"
            .. "!cast off" .. "\n"
            .. "!serverinfo" .. "\n"
            .. "!online" .. "\n"
            .. "!deathlist" .. "\n"
            .. "!kills" .. "\n"
            .. "!saveme" .. "\n"
            .. "!changesex" .. "\n"
            .. "!uptime" .. "\n"
            .. "!buypremium" .. "\n"
            .. "!spells")
        return false
    else
        player:sendTextMessage(MESSAGE_STATUS_SMALL, 'You\'re exhausted for: '..player:getExhaustion(1000)..' seconds.')
    end
end
 
For aol use:


Lua:
local price_aol = 50000

function onSay(player, words, param)
  
    if player:removeMoney(price_aol) then
        player:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
        player:addItem(2173, 1)  
    else
        player:getPosition():sendMagicEffect(CONST_ME_POFF)
        player:sendCancelMessage("You dont have enought money.")
    end
  
end

For commands use (you need to edit them):

Lua:
function onSay(player, words, param)
    if player:getExhaustion(1000) <= 0 then
        player:setExhaustion(1000, 2)
        player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Player commands:" .. "\n"
            .. "!buyhouse" .. "\n"
            .. "!leavehouse" .. "\n"
            .. "!cast on" .. "\n"
            .. "!cast off" .. "\n"
            .. "!serverinfo" .. "\n"
            .. "!online" .. "\n"
            .. "!deathlist" .. "\n"
            .. "!kills" .. "\n"
            .. "!saveme" .. "\n"
            .. "!changesex" .. "\n"
            .. "!uptime" .. "\n"
            .. "!buypremium" .. "\n"
            .. "!spells")
        return false
    else
        player:sendTextMessage(MESSAGE_STATUS_SMALL, 'You\'re exhausted for: '..player:getExhaustion(1000)..' seconds.')
    end
end
thank you worked do you idea about the rest?
 
Back
Top