ziggy46802
Active Member
- Joined
- Aug 19, 2012
- Messages
- 418
- Reaction score
- 27
Here is the wand in weapons.xml
And I did delete the club weapon 2453 down at the bottom of the script
Here is the script for the wand
When I use it, it just does no damage at all, how do I fix this?
Code:
<wand id="2453" level="80" mana="10" type="energy" function="script" script="spritewand.lua">
<vocation name="Druid"/>
<vocation name="Elder Druid" showInDescription="0"/>
<vocation name="Sorcerer"/>
<vocation name="Master Sorcerer" showInDescription="0"/>
</wand>
And I did delete the club weapon 2453 down at the bottom of the script
Here is the script for the wand
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 0)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_LARGEROCK)
function onGetFormulaValues(cid, level, maglevel)
local min = (((level/20)+(maglevel*.9)))
local max = (((level/10)+(maglevel*1.2)))
return -min, -max
end
function onUseWeapon(cid, var)
if not doCombat(cid, combat, var) then
return false
end
end
When I use it, it just does no damage at all, how do I fix this?