sabodden
Member
- Joined
- Sep 27, 2019
- Messages
- 138
- Reaction score
- 18
There are two exausteds, to attack and to heal
You can use a SD and a exura together
But for this rune, only, i want to make different
I would like to this rune use heal exausted
So u could use sd together to this attack rune
But couldn't use this rune and exura or exura gran...
Is it possible?
You can use a SD and a exura together
But for this rune, only, i want to make different
I would like to this rune use heal exausted
So u could use sd together to this attack rune
But couldn't use this rune and exura or exura gran...
Is it possible?
Code:
<rune name="Holy Missile" id="2295" allowfaruse="1" charges="5" maglv="4" exhaustion="2000" needtarget="1" blocktype="solid" event="script" value="attack/holy missile.lua">
<vocation id="3"/>
<vocation id="7" showInDescription="0"/>
</rune>
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_HOLY)
function onGetFormulaValues(cid, level, maglevel)
if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 5 or getPlayerVocation(cid) == 6 then
min = ( (((maglevel) * 4) * 0.5 ) + (20)) * -1
max = ( (((maglevel) * 4) * 1.0 ) + (20)) * -1
return min, max
elseif getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then
min = ( (((maglevel) * 3) * 0.5 ) + (20)) * -1
max = ( (((maglevel) * 3) * 1.0 ) + (20)) * -1
return min, max
elseif getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 then
min = ( (((maglevel) * 3) * 0.5 ) + (20)) * -1
max = ( (((maglevel) * 3) * 1.0 ) + (20)) * -1
return min, max
end
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end