How would I make a manarune that acts like a potion, exhaust-wise? So you can use spells while using the rune.
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
function onCastSpell(cid, var)
doPlayerAddMana(cid, 1150)
doCreatureSay(cid, "Manarune", TALKTYPE_MONSTER)
return doCombat(cid, combat, var)
end
XML:
<rune name="Mana Rune" id="2309" allowfaruse="1" charges="1" lvl="1" maglv="1" exhaustion="0" aggressive="0" needtarget="1" blocktype="solid" event="script" value="healing/manarunedonate.lua"/>