Ok now that I have your attention We all know the spell berserk works kinda crap...since the script is:
This script bases the spell on the player's skills, so a level 5000 would hit the same as a level 70 if they ahve the same skills.
This script bases the spell on level+magic. So a level 1000 with crappy skills would hit WAY much more than a level 100 with extreme skills.
My question is, is it possible to base the spell on levelmagic AND skills?
Thanks for reading, I hope you can help me
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, -90, 0.7, -50)
local area = createCombatArea(AREA_SQUARE1X1)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
This script bases the spell on the player's skills, so a level 5000 would hit the same as a level 70 if they ahve the same skills.
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -90, -0.7, -50)
local area = createCombatArea(AREA_SQUARE1X1)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
This script bases the spell on level+magic. So a level 1000 with crappy skills would hit WAY much more than a level 100 with extreme skills.
My question is, is it possible to base the spell on levelmagic AND skills?
Thanks for reading, I hope you can help me