Hi, im using a script for a crystal arrow on tfs 0.3.6 and the problem is, when I use it there is a lot of miss, can someone tell me how to make this arrow have like 0 miss ? will appreciate
and weapons.xml
<distance id="2352" range="6" enabled="1" exhaustion="0" script="crystal arrow.lua"><vocation id="3"/><vocation id="7"/></distance>
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT,
CONST_ANI_SHIVERARROW)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -600, 0, -1000)
local condition = createConditionObject(CONDITION_ENERGY)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 4)
addDamageCondition(condition, 10, 750, -200)
setCombatCondition(combat, condition)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
and weapons.xml
<distance id="2352" range="6" enabled="1" exhaustion="0" script="crystal arrow.lua"><vocation id="3"/><vocation id="7"/></distance>
Last edited: