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

!Stats COMMAND 1.2

115820

Member
Joined
Feb 27, 2011
Messages
193
Solutions
1
Reaction score
5
Location
London, England
Hii,
I need a script, when i use command "!stats" show : Payer LEVEL and RESET (STORAGE 500); Player MAGICLEVEL; PlayerMANA/MAXMANA ; PlayerHealth/MAXHEALTH .

TFS 1.2
Ot : 10.99
 
Last edited:
Hii,
I need a script, when i use command "!stats" show : Payer LEVEL and RESET (STORAGE 500); Player MAGICLEVEL; PlayerMANA/MAXMANA ; PlayerHealth/MAXHEALTH .

TFS 1.2
Ot : 10.99
Lua:
local storage = { value = 500, reset = -1, set = "has already been reset"}

function onSay(player words, param)
    local data = {
        level = player:getLevel(),
        magic = player:getMagicLevel(),
        mana = {
            min = player:getMana(),
            max = player:getMaxMana()
        },
        health = {
            min = player:getHealth(),
            max = player:getMaxHealth()
        }
    }
    if player:getStorageValue(storage.value) ~= storage.reset  then
        player:setStorageValue(storage.value, storage.reset)
        storage.set = "has been reset"
    end
    player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE,
    "Player Level:"..(data.level)
    .." STORAGE ("..(storage.value)..") "..(storage.set)
    .." Player MAGICLEVEL:"..(data.magic)
    .." Player Mana:"..(data.mana.min).."/"..(data.mana.max)
    .." Player Health:"..(data.health.min).."/"..(data.health.max))

    return true
end
 
Back
Top