• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Sprite wand

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
<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
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
someone please tell me what is wrong.
 
.XML, the item.
Code:
	<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
Code:
	<wand id="2453" level="100" mana="0" min="200" max="400" type="death" function="default">
		<vocation name="Sorcerer"/>
		<vocation name="Master Sorcerer"/>
		<vocation name="Druid"/>
		<vocation name="Elder Druid"/>
	</wand>

You wont need the LUA if this works properly.
 
Last edited:
Back
Top