• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

a lot of miss on arrow

MrDamiano

New Member
Joined
Feb 3, 2013
Messages
14
Reaction score
0
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

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:
Back
Top