• 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 help..

Cameron123

New Member
Joined
Nov 27, 2011
Messages
8
Reaction score
0
Hello. I have a question about shiver arrow and how do i do to get Physical damage and not ice damage o.o...

Please answer!:)
 
Shiver arrow would normally be:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 11)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FLASHARROW)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.1, -1, -0.1, -1)

function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end

To do physical, it will be this:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 11)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FLASHARROW)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.1, -1, -0.1, -1)

function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end

That's in data/weapons/scripts
 
data/weapons

weapons.xml

add

Lua:
<distance id="7838" range="6" enabled="1" exhaustion="0" hitchance="80" script="shiver arrow.lua"></distance>
 
Add this in items.xml

Lua:
<item id="7839" article="a" name="shiver arrow" plural="shiver arrows">
		<attribute key="weight" value="70"/>
		<attribute key="slotType" value="ammo"/>
		<attribute key="attack" value="25"/>
		<attribute key="hitChance" value="90"/>
		<attribute key="weaponType" value="ammunition"/>
		<attribute key="ammoType" value="arrow"/>
		<attribute key="ammoAction" value="removecount"/>
		<attribute key="shootType" value="shiverarrow"/>
	</item>
 
Back
Top