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

Wand Advancing

Ward_214

Pro PvP
Joined
Dec 11, 2008
Messages
297
Reaction score
0
I wanted to fix some wands/rods to were whenever you gain magic level and level they would hit more(Like Sudden Death Runes)

Ive tried for a while now and just cant seem to fix it correctly, can someone help?
 
in weapon.xml add this
LUA:
	<wand id="2433" mana="100" event="script" value="wand.lua">
		<vocation id="1"/>
		<vocation id="5" showInDescription="0"/>
	</wand>
in weapons/script add this
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_EFFECT, CONST_ME_HITAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGYBALL)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -3, -0, -3.2, -0)

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





dont forget to rep :P
 
Back
Top