• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[REQUEST]Donator arrow can only be used with Donator bow

exique

Natala-ot.com
Joined
Sep 28, 2008
Messages
1,673
Reaction score
25
Location
Sweden
I've seen this on many servers..

Like donator arrow can only be used with donator bow..
Some knows how to make? ^^

Reputation for anyone that helps, [OFC] :thumbup:
 
LUA:
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

...data/weapons/weapons.xml
LUA:
<distance id="ID_OF_DONATOR_ARROW" event="script" value="SCRIPT_NAME.lua"/>
 
Doesn't work :(

My donator arrow:

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

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