• 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!

Crystal Arrow.. need help!!

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:

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
 
setCombatFormula(combat, COMBAT_FORMULA_SKILL, -4.5, -300, -5.3, -605)

Try setCombatFormula(combat, COMBAT_FORMULA_SKILL, 4.5, -300, 5.3, -605)
 
Back
Top