Hey,
I am looking for script like:
When you use Elvish Bow, it waste first MANA POINTS, and if victim has not Mana Points left, it hits his Life Points. It doesn't matter what ammunition, but it cares if it is Elvish Bow
Can anyone make it?
Btw, if it would helps - items.xml
Or if it is easier to make with Ammunition, not Item - let's make
Burst arrow script, maybe that helps
I am looking for script like:
When you use Elvish Bow, it waste first MANA POINTS, and if victim has not Mana Points left, it hits his Life Points. It doesn't matter what ammunition, but it cares if it is Elvish Bow
Can anyone make it?
Btw, if it would helps - items.xml
Code:
<item id="7438" article="a" name="elvish bow">
<attribute key="weight" value="3100"/>
<attribute key="slotType" value="two-handed"/>
<attribute key="weaponType" value="distance"/>
<attribute key="ammoType" value="arrow"/>
<attribute key="range" value="6"/>
<attribute key="hitChance" value="5"/>
</item>
Or if it is easier to make with Ammunition, not Item - let's make
Burst arrow script, maybe that helps
Code:
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_EFFECT, CONST_ME_FIREAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_BURSTARROW)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0)
local area = createCombatArea({
{1, 1, 1},
{1, 3, 1},
{1, 1, 1}
})
setCombatArea(combat, area)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
Last edited: