Here is My manarune
ot\data\spells
data\spells\scripts
ot\data\spells
PHP:
<rune name="Manarune" id="2280" charges="1" mana="1" maglv="0" exhaustion="0" blocktype="solid" allowfaruse="1" script="manarune.lua"/>
data\spells\scripts
PHP:
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, 1000) ---- how much it heal .
return doCombat(cid, combat, var)
end