lucas mazzotti
New Member
- Joined
- Jul 10, 2014
- Messages
- 9
- Reaction score
- 1
hello guys, can someone help me with converting formula spells? heres the spell:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 9, 9, 14, 17)
local area = createCombatArea(AREA_CIRCLE3X3)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
all i wanna do is changing setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 9, 9, 14, 17)
for formula min, max
like this:
local min = -((level/5)+(maglevel*10))
local max = -((level/5)+(maglevel*20))
if you ask why, i have an ot and making some balancing stuff, its atual version but with old style damages, and lets say i have some trouble with that kind of formulas, anyways, thanks a lot
@up
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 9, 9, 14, 17)
local area = createCombatArea(AREA_CIRCLE3X3)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
all i wanna do is changing setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 9, 9, 14, 17)
for formula min, max
like this:
local min = -((level/5)+(maglevel*10))
local max = -((level/5)+(maglevel*20))
if you ask why, i have an ot and making some balancing stuff, its atual version but with old style damages, and lets say i have some trouble with that kind of formulas, anyways, thanks a lot
@up
Last edited by a moderator: