boni
New Member
- Joined
- Jan 3, 2010
- Messages
- 25
- Reaction score
- 0
I have make a Crystalarrow who shoot an ice area but the most time when i shoot the monster not get damage
here script:
In weapons:
I hope someone can help me.
here script:
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 41)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SHIVERARROW)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, -6.5, -300, -5.3, -605)
local area = createCombatArea( { {0, 1, 0}, {1, 3, 1}, {0, 1, 0} } )
setCombatArea(combat, area)
function onUseWeapon(cid, var, item)
quebrar = 1
return doCombat(cid, combat, var)
end
In weapons:
PHP:
<distance id="2352" level="100" range="7" enabled="1" exhaustion="0" hitchance="80" ammo="removecount" script="crystal arrow.lua">
<vocation name="Paladin"/>
<vocation name="Royal Paladin"/>
</distance>
I hope someone can help me.