local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT,
CONST_ME_ENERGYAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT,
CONST_ANI_ENERGYBALL)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.6, 0, -1.1, 0)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
<wand id="2453" range="6" lvl="8" mana="25" enabled="1" exhaustion="0" script="arcane.lua">
<vocation name="Sorcerer"/>
<vocation name="Druid"/>
</wand>
<item id="2182" article="a" name="snakebite rod">
<attribute key="weight" value="4300" />
<attribute key="weaponType" value="wand" />
<attribute key="shootType" value="holy" />
<attribute key="range" value="3" />
</item>
<wand id="XXXX" level="XX" mana="25" min="XXX" max="XXX" type="holy" event="function" value="default">
<vocation id="2"/>
</wand>
sorry for the double post...
forgot to say something.. that way it will still do depending on the ml... when it increase it will get the max.. if it is low it will just get the min but that is more controlable!