Hello!
I'm trying to get a manarune in my server that you can use spells with at the same time (like manafluid but it's a rune).
Here is the script. I hope someone can help me
Thanks in advance.
This is the manarune .lua!
This is in spells.xml
I'm trying to get a manarune in my server that you can use spells with at the same time (like manafluid but it's a rune).
Here is the script. I hope someone can help me
Thanks in advance.
This is the manarune .lua!
Code:
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, math.random(100, 200))
doPlayerSay(cid, "Aaaah...", 1)
return doCombat(cid, combat, var)
end
This is in spells.xml
Code:
<rune name="Manarune" id="2284" aggressive="0" charges="2" needtarget="1" maglv="0" exhaustion="1" enabled="1" allowfaruse="1" script="manarune.lua"></rune>