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

Action Extra health and mana script for TFS 1.3

Marko999x

999x era
Premium User
Joined
Dec 14, 2017
Messages
2,749
Solutions
80
Reaction score
1,887
Location
Germany
I know its a simple script but I would like to release it maybe some highexp fans needs it :D
This script is made for TFS 1.3

Health Script ( You need to be level 100.000 atleast to use it but you can change it as you want )
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    if player:getLevel() <= 10000 then
        player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'you are not over 10.000 yet.')
        player:getPosition():sendMagicEffect(3)
        return true
    end

    if player:getStorageValue(55055) == -1 then
        player:setStorageValue(55055, 1)
        player:setMaxHealth(player:getMaxHealth() + 100000)
        player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You have now 100.000 more health!.')
        player:getPosition():sendMagicEffect(50)
        item:remove()
    else
        player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You alredy got your extra health.')
        player:getPosition():sendMagicEffect(3)
    end

    return true
end

Mana Script ( You need to be level 100.000 atleast to use it but you can change it as you want )
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    if player:getLevel() <= 10000 then
        player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'you are not over 10.000 yet.')
        player:getPosition():sendMagicEffect(3)
        return true
    end

    if player:getStorageValue(55056) == -1 then
        player:setStorageValue(55056, 1)
        player:setMaxMana(player:getMaxMana() + 100000)
        player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You have now 100.000 more mana!.')
        player:getPosition():sendMagicEffect(50)
        item:remove()
    else
        player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You alredy got your extra mana.')
        player:getPosition():sendMagicEffect(3)
    end

    return true
end

Let me know if theres a better way to script it :p trying to learn it good as possible
Have fun
 
Last edited:
Back
Top