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

Solved help to make a Crystal Arrow.

jason93

New Member
Joined
Oct 18, 2012
Messages
68
Reaction score
2
Location
Sweden
Hey ive started a new otserver and i want to fix my Crystal arrow.
first off i can't use it, i want to use it with bow but it dont work.

then how should i do so it work and when i shoot at monster it will give an ice damage + ordinary damage+ freeze the monster so its like frozen or paralyzed?

Please help Rep+++!
 
You need to configure it at items.xml, add some attributes well..

XML:
<attribute key="attack" value="70"/>
<attribute key="weaponType" value="ammunition"/>
<attribute key="ammoType" value="arrow"/>
<attribute key="ammoAction" value="removecount"/>
<attribute key="shootType" value="shiverarrow"/>
<attribute key="elementIce" value="30"/>

You should only edit the Ice and Physical damage. To paralyze creatures, you should add a new lua weapons file or something like this:

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SHIVERARROW)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
setConditionFormula(condition, -0.9, 0, -0.9, 0)
setCombatCondition(combat, condition)

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

And just add it to weapons.xml
 
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SHIVERARROW)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0)
 
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
setConditionFormula(condition, -0.9, 0, -0.9, 0)
setCombatCondition(combat, condition)
 
function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end

Sorry, I forgot that line, it must be working now.
 
Back
Top