Hi, I have a small problem
when using the Manarune, appears in number added to the player how much mana.
I want is that only appears the effect and not the numbers of purple
so:
Here is the script I use
when using the Manarune, appears in number added to the player how much mana.
I want is that only appears the effect and not the numbers of purple
so:
Here is the script I use
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_STUN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
function onGetFormulaValues(cid, level, maglevel)
min = 1800
max = 2000
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Code:
<rune name="Rune" id="xxxx" aggressive="0" charges="1" needtarget="1" lvl="15" maglv="15" exhaustion="1000" enabled="1" allowfaruse="1" event="script" value="rune.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="5"/>
<vocation id="6"/>
</rune>