Action Extra health and mana script for TFS 1.3

Levi999x

AoT
Joined
Dec 14, 2017
Messages
1,490
Solutions
20
Reaction score
745
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:
Top