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

Backer

New Member
Joined
May 18, 2010
Messages
83
Reaction score
3
Location
okey
Srry for my bad english, if you can understand me i hope you help me.. thx

I need a wand that when attack, attack as pie
 
Weapons.xml
XML:
	<wand id="2184" level="50" mana="15" event="script" value="piewand.lua"> <!-- Pie Wand -->
		<vocation id="1"/>
	</wand>

Piewand.lua
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 51)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 41)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.5, -30, -1.5, -50)

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

And don't forget to make the item as a wand in items.xml
 
Back
Top Bottom