• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Show manarune healing action?

Grizarly

New Member
Joined
Nov 12, 2017
Messages
59
Reaction score
0
idk how it is called but i hope someone understand me , is there any way to show the healing action like , when i use manarune,or uh etc, it shows above the chr +10 the number of the healing that it gives me
 
I think you can add this line after the action that adds a health:

LUA:
--TFS 0.3.X
doCreatureSay(cid, amountOfHP, TALKTYPE_ORANGE_1)

or

LUA:
--TFS 1.X
player:say(amountOfHP, TALKTYPE_MONSTER_SAY)
 
bump! i have the same problem on Mistic Spirit 0.2.
The config.lua thing is not the solve. Ive added lines
showHealingDamage = "yes"
showHealingDamageForMonsters = "yes"
to the config. Before was not even there.

This is the script which i am using on runes:

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onGetFormulaValues(cid, level, maglevel)
min = (level * 2 + maglevel * 15)
max = (level * 3 + maglevel * 15)
if min < 250 then
min = 250
end
return min, max
end


setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
return doCombat(cid, combat, var)

end

Maybe the solve is to add something at the end like "doCreatureSay..." ? Any ideas?
 
dont have the rune script right now , but just need how is it works
what distro/server are you using?
Makes it easier to help you ^^

if you have the script ready im sure people would find a solution rather quick.

The solution @lokolokio mentioned is 100% a valid way to make this effect.
 
Its hard to define for me. Its an old TFS 0.3 probably? Mystic Spirit 0.2 thats what i think.
Im not downloading that 😅

Is The Rune you sent a healing Rune or a Rune suposed to be used against players to attack them?

Im asking since you are using:
LUA:
COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)

Im not very familiar with tfs 0.3 nor Mistic Spirit 0.2
 
Last edited:
i used that because it works. There was many other versions of this script. Its combination of few others which i find on otland.
The oryginal one was diffrent but it doesnt work so ive change to this one.
Post automatically merged:

Im not downloading that 😅

Is The Rune you sent a healing Rune or a Rune suposed to be used against players to attack them?

Im asking since you are using:
LUA:
COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)

Im not very familiar with tfs 0.3 nor Mistic Spirit 0.2
i know MANADRAIN is weird but it works. MANADRAIN will deal damage only if the value is negative like -1000 (below 0). But if its above 0 it heals mana. the only thing i still need is what line i need to add to show healing amount above player head and where to put it in my script. Any ideas? HELP please? :D
Post automatically merged:

Ok... this is the line which i need to edit. Need to change "Manarune" to something that will show the real amount of gained mana.

doCreatureSay(cid,"Manarune",19)

Ideas?
 
Last edited:
I know that my style of coding is old, but, try this...


LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function manarune(cid, level, maglevel)
    local min = (level * 2 + maglevel * 15)
    local max = (level * 3 + maglevel * 15)
    if min < 250 then
        min = 250
    end
    local mana = math.random(min, max)

    if(doTargetCombatMana(0, cid, mana, mana, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
        return FALSE
    end
    return doCreatureSay(cid, mana, TALKTYPE_ORANGE_1)
end

function onCastSpell(cid, var)
    return doCombat(cid, combat, var) and manarune(cid, level, maglevel)
end

bump! i have the same problem on Mistic Spirit 0.2.
The config.lua thing is not the solve. Ive added lines
showHealingDamage = "yes"
showHealingDamageForMonsters = "yes"
to the config. Before was not even there.

This is the script which i am using on runes:

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onGetFormulaValues(cid, level, maglevel)
min = (level * 2 + maglevel * 15)
max = (level * 3 + maglevel * 15)
if min < 250 then
min = 250
end
return min, max
end


setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
return doCombat(cid, combat, var)

end

Maybe the solve is to add something at the end like "doCreatureSay..." ? Any ideas?
 
Back
Top