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

Need 'script' (item)

mahant

Banned User
Joined
May 15, 2010
Messages
111
Reaction score
1
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

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:
Back
Top