Apoccalypse
New Member
- Joined
- Apr 15, 2017
- Messages
- 114
- Solutions
- 2
- Reaction score
- 4
I have a problem with my manarune exhaustion and actually of lack of it.
Here is a script:
Anyone have idea why other runes have exhaustion and only this one have not?
Here is a script:
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 12)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
function onCastSpell(cid, var)
doCombat(cid, combat, var)
maglevel = getPlayerMagLevel(cid)
lvl = getPlayerLevel(cid)
local youv = getPlayerVocation(cid)
if youv == 1 or youv == 2 or youv == 5 or youv == 6 or youv == 9 or youv == 10 then
local minmana = (400+(maglvl*3)+(lvl*2))--- Min of mana can heal
local maxmana = (800+(maglvl*3)+(lvl*2))---- Max of mana can heal
local random = math.random(minmana, maxmana)
doPlayerAddMana(cid, random)
doSendAnimatedText(getPlayerPosition(cid), random, 23)
doSendMagicEffect(getThingPos(cid),28 )
doSendMagicEffect(getThingPos(cid),12 )
end
return true
end
<rune name="Manarune" id="2283" allowfaruse="1" charges="1" lvl="100" maglv="4" exhaustion="1000" aggressive="0" needtarget="1" blocktype="solid" script="New/Manarune.lua"/>
Anyone have idea why other runes have exhaustion and only this one have not?
Last edited: