baskplaya120
New Member
- Joined
- Aug 19, 2008
- Messages
- 16
- Reaction score
- 0
Ok guys im having some problems with this. I have check this script and things like 100 times and the wand will shoot but it doesnt do any damage all it does is makes sparks like its hitting but its being blocked by its armor (which is impossible its doing death damage) hopefully someone can tell me what i did wrong... im using the latest version of tfs thanks in advance, here are the scripts
items.xml
weapons.xml
and sprite_wand.lua
items.xml
<item id="2453" article="an" name="arcane staff">
<attribute key="weight" value="4000"/>
<attribute key="weaponType" value="wand"/>
<attribute key="shootType" value="death"/>
<attribute key="range" value="10"/>
</item>
weapons.xml
<wand id="2453" lvl="100" mana="0" min="200" max="400" type="death" exhaustion="0"
script="sprite_wand.lua">
<vocation name="sorcerer"/>
<vocation name="Master Sorcerer"/>
<vocation name="Druid"/>
<vocation name="Elder Druid"/>
</wand>
and sprite_wand.lua
someone please tell me what is wrong.local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_MORTAREA)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1.3, -200, 1.9, -400)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end