AncientAngelus
New Member
- Joined
- Dec 13, 2009
- Messages
- 25
- Reaction score
- 3
Hello! can someone help me on my script for a wand that when it damages something instead of the effect or the impact of the fire that looks like a fire field, instead it shows musical notes? I have this script that I got from the example.lua from the data/weapons folder.
This is the code and I've been trying to add this combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA) from the burst arrow but instead of explosion area to use CONST_ME_SOUND_GREEN for example or SOUND_RED or whichever musical effect. But when I added it to the script the wand either does not damage or doesn't attack.
Can someone help me with that please and thank you? My tfs is 1.4.2
This is the code and I've been trying to add this combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA) from the burst arrow but instead of explosion area to use CONST_ME_SOUND_GREEN for example or SOUND_RED or whichever musical effect. But when I added it to the script the wand either does not damage or doesn't attack.
Can someone help me with that please and thank you? My tfs is 1.4.2
Lua:
local wand = Weapon(WEAPON_WAND)
wand:id(2070)
wand:damage(8, 18)
wand:element("fire")
wand:level(7)
wand:mana(2)
wand:vocation("sorcerer", true, true)
wand:register()