Where do I change how much mana I get when using a rune then?![]()
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_SLEEP)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
function onCastSpell(cid, var)
doPlayerAddMana(cid,math.random(2700,3200))
doCreatureSay(cid,"Ahh, Vip manarune rocks!",19)
return doCombat(cid, combat, var)
end
Ah ty. And how do I make so the rune doesnt dissapear after use?
<rune name="VIP mana rune" id="2299" aggressive="0" charges="0" lvl="9" maglv="3" mana="100" soul="0" exhaustion="1000" prem="1" enabled="1" allowfaruse="1" script="healing/Donated Manarune.lua"></rune>
I tried, but I had to spred more reputation to others before giving to you again![]()