I am making a foundation for the ultimate cure to make a life / rune mana!
Within this code above, I wanted to add when using the rune, it cures all the life and all the mana of the character.
Help-me?
Lua:
attackType = ATTACK_NONE
animationEffect = NM_ANI_NONE
hitEffect = NM_ME_NONE
damageEffect = NM_ME_MAGIC_POISEN
animationColor = GREEN
offensive = false
drawblood = false
BlessedUltimateObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
function onCast(cid, creaturePos, level, maglv, var)
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
return doTargetMagic(cid, centerpos, BlessedUltimateObject:ordered())
end
XML:
<rune name="Blessed Ultimate" id="2274" charges="1" maglv="0" mana="0" enabled="1"></rune>
Within this code above, I wanted to add when using the rune, it cures all the life and all the mana of the character.
Help-me?