I want make a new formula attack wand to make others system...
Someone could help me? Whats i made worng?
weapons.xml
weapons/wands.lua
items.xml
Someone could help me? Whats i made worng?
weapons.xml
Code:
<wand id="2190" mana="2" type="energy" event="function" value="wands.lua"> <!-- Wand of Vortex -->
<vocation id="1"/>
</wand>
weapons/wands.lua
Code:
function onGetFormulaValues(cid, level, skill, attack, factor)
min = (attack * 5.0) * -1
max = (attack * 8.0) * -1
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
items.xml
Code:
<item id="2190" article="a" name="wand of vortex">
<attribute key="description" value="Surges of energy rush through the tip of this wand." />
<attribute key="weight" value="1900" />
<attribute key="weaponType" value="wand" />
<attribute key="shootType" value="energy" />
<attribute key="range" value="3" />
<attribute key="attack" value="1"/>
</item>