alectrona94
Member
so ive tried to set the distance formulas for bows etc and it never worked, at the moment im using the magic one in the distance weapons and of course the distance fighting doesnt increase, so what if i wanted to set a skill formula based on level and distance fighting and the magic one for wands ml and levels? here's what im currently using i know its a mess.
0.4 TFS
0.4 TFS
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 0)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 33)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -8300, 0, -10000)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end