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

Manarune script tfs 1.2

Og1999

New Member
Joined
Apr 1, 2015
Messages
34
Reaction score
1
Hello guys!

I've been looking around for a manarune script for tfs 1.2. I have found some scripts but it does not show how much the rune is healing. All help is appreciated! :)
 
Code:
local exhaust = Condition(CONDITION_EXHAUST_HEAL)
exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 900))

function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey)
    if itemEx.itemid ~= 1 or itemEx.type ~= THING_TYPE_PLAYER then
        return true
    end

    --[[
    if player:getCondition(CONDITION_EXHAUST_HEAL) then
        player:sendTextMessage(MESSAGE_STATUS_SMALL, Game.getReturnMessage(RETURNVALUE_YOUAREEXHAUSTED))
        return true
    end
    ]]

    local level, mlevel = player:getLevel(), player:getMagicLevel()
    local min, max = (level * 5) + (mlevel * 3) - 50, (level * 6) + (mlevel * 4)

    if not doTargetCombatMana(0, player, min, max, CONST_ME_MAGIC_BLUE) then
        return false
    end

    --player:addCondition(exhaust)
    player:say("Aaaah...", TALKTYPE_MONSTER_SAY)
    Item(item.uid):remove(1)
    return true
end
 
player:sendTextMessage(type, text[, position, primaryValue = 0, primaryColor = TEXTCOLOR_NONE[, secondaryValue = 0, secondaryColor = TEXTCOLOR_NONE]])
use values/colors
 
player:sendTextMessage(type, text[, position, primaryValue = 0, primaryColor = TEXTCOLOR_NONE[, secondaryValue = 0, secondaryColor = TEXTCOLOR_NONE]])
use values/colors
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 900))

function onUse(cid, item, fromPosition, itemEx, toPosition)
local level = getPlayerLevel(cid)
local mlevel = getPlayerMagLevel(cid)
local mana_minimum = (level * 5) + (mlevel * 3) - 50
local mana_maximum = (level * 6) + (mlevel * 4)
local mana_add = math.random(mana_minimum, mana_maximum)

doPlayerAddMana(cid, mana_add)
doSendMagicEffect(getThingPos(cid), CONST_ME_ICEATTACK)
doSendMagicEffect(getThingPos(cid), 40)
doCreatureSay(itemEx.uid, "Donate Mr", TALKTYPE_ORANGE_1)
return TRUE
end

Could you please put it in my script so it works? :p
 
Back
Top