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

Alchemist Wand (weapons.xml)

god arcanus

Arcanus
Joined
Jul 13, 2009
Messages
14
Reaction score
2
Well this is a wand or rod according to your level magic attacks, so first let's add items.xml and edit a wand in this case the crystal wand.

PHP:
	<item id="2184" article="a" name="crystal wand">
		<attribute key="description" value="This mort wand radiates huge ammount of dark." />
		<attribute key="weight" value="2800"/>
		<attribute key="weaponType" value="wand" />
		<attribute key="shootType" value="energy" />
		<attribute key="range" value="5" />
	</item>

After that we headed to weapons.xml and add this.

PHP:
	<!-- Alchemist wand -->
	<wand id="2184" level="50" mana="5" event="script" value="alchemist.lua"> <!-- alchemist wand -->
		<vocation id="1"/>
		<vocation id="2"/>
		<vocation id="5" showInDescription="0"/>
		<vocation id="6" showInDescription="0"/>
	</wand>

Then we put the script in Weapons. Let them keep it as alchemist.lua

PHP:
local combat = createCombatObject()
	setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
	setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
	setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_PURPLEENERGY)
	setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGYBALL)
	setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1.4, 0, 1.6, 0)

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

If you want you can edit the formula to attack more.

Well that would be thanks
please reputation.

:thumbup:
 
Last edited:
Back
Top