Full Version : Need Help With Cast
xmlspawner >>Q&A >>Need Help With Cast
<< Prev | Next >>
wizardc25- 02-06-2007
Hi
I have done the following to a creature and like it to cast lightning can some one help me plz because i cant get it to work i get a error on cast . This is what i have done.
Ettin/Name/Ice Giant/Hue/1152/ATTACH/xmlweaponability,ArmorIgnore/Cast,Lightning/
ArteGordon- 02-06-2007
If you want to add a lightning attack to a mob, use the XmlLightning attachment.
Ettin/Name/Ice Giant/Hue/1152/ATTACH/xmlweaponability,ArmorIgnore/ATTACH/xmllightning,10
the xmllightning attachment can take damage, refractory, and expiration args.
public XmlLightning(int damage)
public XmlLightning(int damage, double refractory)
public XmlLightning(int damage, double refractory, double expiresin)
where the refractory time is in seconds, and the expiration is in minutes.

QUOTE
XmlFire, XmlLightning - when attached to a weapon, it will apply additional fire/lightning damage on weapon hits. When attached to an object in the world it will apply damage when a player comes in range of the object. The amount of damage, minimum interval between activations, and how long the attachment will last (expiration) can be specified.

it doesnt mention it in the description, but it can also be attached to mobiles

QUOTE
// when attached to a weapon, only that weapon will do additional damage // when attached to a mobile, any weapon the mobile wields will do additional damage

This will cause them to cast lightning when they land melee attacks. If you wanted them to cast lightning using mage ai, then you could change their AI to AI_mage and use the mod in this thread to limit their casts to lightning
http://xmlspawner.15.forumer.com/index.php?showtopic=501
wizardc25- 02-06-2007
Hi Art
I thank you for the promt and helpfull reply
There is however anouther problem that i have by UNequiping NPC's i dont know why but i cant Dont laugh Unequip the skirt they wearing. Btw is there a global cmd tha will unequip all.
Again i thank You for the speedy reply.
Vladimir- 02-07-2007
Check the layer of the skirt (use [get layer and target the skirt)
then in your spawn entry UNEQUIP,skirtlayername
ArteGordon- 02-07-2007
you might also be interested in this thread
http://xmlspawner.15.forumer.com/index.php?showtopic=435