krithion2424
New Member
- Joined
- Apr 20, 2008
- Messages
- 73
- Reaction score
- 2
Hi ive tried all the sprite wand scripts out there and none of them work. Everytime i make the sprite wand i use the arcane staff id, but change it to weapon type wand. Then when i try to use it in game it makes no effect at all, except a weapon block on the creature i shoot it at. No shooting animation and no damage on the creature. Just a "poof" of cloud.
My Sprite.lua is :
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 38)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -233, 0, -284)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
My weapons.xml is :
<wand id="2453" range="6" lvl="60" mana="15" enabled="1" exhaustion="0" script="sprite.lua"><vocation id="1"/><vocation id="2"/><vocation id="5"/><vocation id="6"/></wand>
Items.xml is :
<item id="2453" article="an" name="staff of spirits">
<attribute key="description" value="The souls inside provide this staff of death with powers."/>
<attribute key="weight" value="4000"/>
<attribute key="weaponType" value="wand"/>
<attribute key="range" value="6"/>
</item>
Can someone help me out on how to get this wand to work? It would be greatly appriciated. Thank you.
My Sprite.lua is :
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 38)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -233, 0, -284)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
My weapons.xml is :
<wand id="2453" range="6" lvl="60" mana="15" enabled="1" exhaustion="0" script="sprite.lua"><vocation id="1"/><vocation id="2"/><vocation id="5"/><vocation id="6"/></wand>
Items.xml is :
<item id="2453" article="an" name="staff of spirits">
<attribute key="description" value="The souls inside provide this staff of death with powers."/>
<attribute key="weight" value="4000"/>
<attribute key="weaponType" value="wand"/>
<attribute key="range" value="6"/>
</item>
Can someone help me out on how to get this wand to work? It would be greatly appriciated. Thank you.