gmstrikker
Well-Known Member
- Joined
- Jul 30, 2014
- Messages
- 458
- Solutions
- 1
- Reaction score
- 50
I wanted to add two things in my magic! How do I?
1 Time BUFF to be able to use an example again, I used this spell now, you can only use it later in 600 seconds
2 Take the time to get out the magic, you use it there opens a count of 3 seconds after it hits the target, that for several power combo!
Thank you!
1 Time BUFF to be able to use an example again, I used this spell now, you can only use it later in 600 seconds
2 Take the time to get out the magic, you use it there opens a count of 3 seconds after it hits the target, that for several power combo!
Thank you!
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
function onGetFormulaValues(cid, level, maglevel)
min = (level * 1 + maglevel * 4) * 0.8
max = (level * 1 + maglevel * 4) * 1.0
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
doCastingTimeSpell(cid, combat, var, 1500)
return true
end