boni
New Member
- Joined
- Jan 3, 2010
- Messages
- 25
- Reaction score
- 0
Hello
I have post this problem already in another Thread but i have not gad a answer also here again:
I have made a skrip for my crystal arrow but always when i shoot the monster get no dmg i hit the monster with the arrow and maby every 20th hit the arrow make 300dmg ... i have look in weapons.xml and items.xml but i think there is not the problem
i use The Forgotten Server 0.3.6pl1
here my skript:
and in weapons.xml
hope for a answer
mfg
I have post this problem already in another Thread but i have not gad a answer also here again:
I have made a skrip for my crystal arrow but always when i shoot the monster get no dmg i hit the monster with the arrow and maby every 20th hit the arrow make 300dmg ... i have look in weapons.xml and items.xml but i think there is not the problem
i use The Forgotten Server 0.3.6pl1
here my skript:
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, -4.5, -300, -5.3, -605)
local area = createCombatArea( { {0, 1, 0}, {1, 3, 1}, {0, 1, 0} } )
setCombatArea(combat, area)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
and in weapons.xml
PHP:
<distance id="2352" level="100" range="7" enabled="1" exhaustion="0" hitchance="100" ammo="removecount" script="crystal arrow.lua">
<vocation name="Paladin"/>
<vocation name="Royal Paladin"/>
</distance>
hope for a answer
mfg