I can't figure out the formula for spells that need to access skills or wahtaver. i looked at whirlwind throw but it doesnt work right
im trying to get it to hit a range but it always manages to hit a low number
heres my lua
im trying to get it to hit a range but it always manages to hit a low number
heres my lua
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WEAPONTYPE)
setCombatParam(combat, COMBAT_PARAM_USECHARGES, true)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 3.3, -120, 3.5, -90)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end