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

"mage staff"

rilleman

New Member
Joined
Feb 14, 2010
Messages
269
Reaction score
0
Hello!

im asking for a script or w/e its called to make a mage staff?

(I want a staff to shoot 100 - 350 + energy damage per sek)

I really need this script!

Thanks!
 
Try this:
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -100, 0, -350)

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

Weapons.xml:
Code:
<wand id="2453" range="7" lvl="1" mana="10" enabled="1" exhaustion="1000" script="Energy wand.lua">
<vocation id="5"/>
		<vocation id="6" showInDescription="1"/>
Rep ++ If helped:thumbup:
 
Try this:
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -100, 0, -350)

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

Weapons.xml:
Code:
<wand id="2453" range="7" lvl="1" mana="10" enabled="1" exhaustion="1000" script="Energy wand.lua">
<vocation id="5"/>
		<vocation id="6" showInDescription="1"/>
Rep ++ If helped:thumbup:


THANKS! just one problem; the range is not working, tried to delite it and paste it again,change it and so on.. still no clue what to do (You are repped) :)
 
Weapons.xml
Code:
	<wand id="8920" min="100" max="350" type="energy" event="function" value="default"> <!-- Mage Staff -->
		<vocation id="1"/>
	</wand>
items.xml
Code:
	<item id="XXXX" article="a" name="mage staff">
		<attribute key="weight" value="2900" />
		<attribute key="weaponType" value="wand" />
		<attribute key="shootType" value="energy" />
		<attribute key="range" value="X" />
	</item>

The X need to be changed with your range/item id.
 
Back
Top