Hi again,
This is my complete weapon script:
items.xml
wapons.xml
crystal_arrow.lua
i want to add a normal damage and critical damage !
if the weapon do a critical damage it musst do higher damage ( i will set it for my self, just insert XXX in lua)
and area fields like this...
and i want to edit the shootTyp and ammoTyp on the critical damage.
can sone one help me ?

This is my complete weapon script:
items.xml
Code:
<item id="2352" article="a" name="crystal arrow">
<attribute key="description" value="This arrow seems not suitable for the use with ordinary bows. It seems to be rotting rapidly."/>
<attribute key="weight" value="90"/>
<attribute key="slotType" value="ammo"/>
<attribute key="attack" value="112"/>
<attribute key="hitChance" value="90"/>
<attribute key="weaponType" value="ammunition"/>
<attribute key="ammoType" value="arrow"/>
<attribute key="shootType" value="shiverarrow"/>
</item>
wapons.xml
Code:
<distance id="2352" event="script" value="crystal_arrow.lua"/>
crystal_arrow.lua
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SHIVERARROW)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 5000)
setConditionParam(condition, CONDITION_PARAM_SPEED, -500)
setCombatCondition(combat, condition)
function onUseWeapon(cid, var)
doCombat(cid, combat, var)
end
i want to add a normal damage and critical damage !
if the weapon do a critical damage it musst do higher damage ( i will set it for my self, just insert XXX in lua)
and area fields like this...
Code:
local arr = {
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 1, 3, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0}
}
and i want to edit the shootTyp and ammoTyp on the critical damage.
can sone one help me ?