Haha.. quite simple? Okey.. how to do it then?
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ARROW)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0)
function onUseWeapon(cid, var)
local donator_bow = xxxx
if getPlayerWeapon(cid).itemid == donator_bow then
return doCombat(cid, combat, var)
else
return FALSE
end
end
<distance id="ID_OF_DONATOR_ARROW" event="script" value="SCRIPT_NAME.lua"/>
<item id="2352" article="a" name="donator arrow">
<attribute key="description" value="It can only be used with donator bow."></attribute>
<attribute key="weight" value="90"></attribute>
<attribute key="slotType" value="ammo"></attribute>
<attribute key="attack" value="100"></attribute>
<attribute key="hitChance" value="100"></attribute>
<attribute key="weaponType" value="ammunition"></attribute>
<attribute key="ammoType" value="arrow"></attribute>
<attribute key="shootType" value="burstarrow"></attribute>
<attribute key="ammoAction" value="removecount"></attribute>
</item>
<item id="8858" article="a" name="donator bow">
<attribute key="weight" value="4400"></attribute>
<attribute key="slotType" value="two-handed"></attribute>
<attribute key="weaponType" value="distance"></attribute>
<attribute key="ammoType" value="arrow"></attribute>
<attribute key="range" value="7"></attribute>
<attribute key="attack" value="50"></attribute>
</item>