Hey guys i've got a pro mana rune but when i heals, the amount of healing doesnt change because of what your mana level is, It heals 1500 all the time, even if you're lvl 1 or lvl 900. I want it to heal because of what Magic level you have. Here is the lua
Quote:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) ---- what the color of the effect. you can do like RED/BLUE
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
function onCastSpell(cid, var)
doPlayerAddMana(cid, 1500) ---- how much it heal .
return doCombat(cid, combat, var)
end
|
and here it is in the spells.xml
Quote:
|
<rune name="Pro Mana Rune" id="2284" allowfaruse="1" charges="5" lvl="100" exhaustion="800" maglv="15" aggressive="0" needtarget="1" blocktype="solid" script="promanarune.lua"/
|
So please help me people, How do I do

Explain detailed and please with an example. Thank you.