Full Version : XmlSpawner2 version 3.08 released
xmlspawner >>XMLSpawner - Releases & Updates >>XmlSpawner2 version 3.08 released
<< Prev | Next >>
ArteGordon- 03-19-2006
Updated to version 3.08
from the changelog
New to version 3.08
updated 3/19/06
- minor cosmetic changes to the questholder and quest log gumps. Shifted the next/previous page buttons and eliminated double listings of quests held in xmlquestbooks in the quest log gump. Increased the spacing between objective descriptions and eliminated slight clipping of quest titles that extend across two lines in the questholder gump.
- slight change to the calculation used to randomly distribute spawns within the spawning area. (thanks to LowCastle for pointing this out) The previous calculation was not inclusive of the lower and rightmost bounds so the width and height of the spawning area would end up 1 tile smaller than expected.
- fixed a problem with extremely long entry strings in the [xmledit gump causing client crashes. (thanks to Galfaroth for pointing this out)
- fixed a problem with the GETVAR keyword not returning a value when used in XmlDialogs. (Thanks to Connor for pointing this out).
- fixed a parsing problem with the MOB,name[,type] keyword that did not allow the optional type argument to be omitted. (Thanks to Lordbill for pointing this out).
- added support for specifying cliloc numbers instead of strings in gump titles and main text. (thanks to Connor for the suggestion)
GUMP, #cliloc,gumpnumber/#cliloc
the way it works is that if you specify a string that starts with a # in the title or main text then it will parse it as a cliloc number instead of a regular string. This lets you make use of existing cliloc strings in your quest gumps.
- fixed a crash that could be caused by attachments that had methods that themselves added attachments.
- added the new XmlWeaponAbility attachment that allows mobs to be given special attacks on the fly. (thanks to Dave1969 for the suggestion)
You can add special attacks to a spawned mob with a spawn entry like
orc/ATTACH/xmlweaponability,BleedAttack
or manually add it to any mob with
[addatt xmlweaponability BleedAttack
and then target the mob.
Note, the attack name is case sensitive and can be any of
ArmorIgnore
BleedAttack
ConcussionBlow
CrushingBlow
Disarm
Dismount
DoubleStrike
InfectiousStrike
MortalStrike
MovingShot
ParalyzingBlow
ShadowStrike
WhirlwindAttack
which are the special weapon abilities defined in WeaponAbility.cs
You will also need to make this modification to basecreature.cs (or your custom mob script if you only want it to apply to certain mobs).
around line 290 change this

CODE
public virtual WeaponAbility GetWeaponAbility() { return null; }

to this

CODE
public virtual WeaponAbility GetWeaponAbility() { // ARTEGORDONMOD // allow creatures special attack ability to be specified by the xmlweaponability attachment //return null;
XmlWeaponAbility a = (XmlWeaponAbility)XmlAttach.FindAttachment(this, typeof(XmlWeaponAbility));
if (a != null)
{
return a.WeaponAbility;
}
else
{
return null;
}
}

and make sure that you have this at the beginning of the script

CODE
using Server.Engines.XmlSpawner2;

- added support for specifying attachments to be added to components in multi.txt files that are loaded with the MULTIADDON keyword. This feature is used by the new XmlSiege system.
Each entry now accepts one or more optional attachment specifications separated by semi-colons
itemid x y z visible [hue] ; attachmenttype[,args]
These attachments will be attached to the components automatically when they are read from the multi file.