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

Not Work..

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:

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.
 
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>
?

Btw, wrong board.
 
I have added this but it still make teh same
i shoot 20 times and damage the monster one time . :(
 
Code:
<distance id="2352" level="100" range="7" enabled="1" exhaustion="0" hitchance="500" ammo="removecount" script="crystal arrow.lua">
    <vocation name="Paladin"/>
    <vocation name="Royal Paladin"/>
    </distance>

Try that one..
 
its the same i shoot about 20 time or more an deal on time dmg to the monster
I think the problem is in the script.
And sometimes it says CRITICAl but i have not deal damage
 
Last edited:
I think you need a line like this: event="script" or somethin like that like on other weapons which use scripts ;p
 
Back
Top