LordHogFred
Knight
This system is a replica of the level item system written by dracana.
I take no credit for any of the inner workings of the system, nor for the idea of the system.
For information on the system please see the original thread: HERE.
This modification also requires that you are using the Xml Spawner which can be found: HERE.
I have modified the system to work via Xml Attachments instead of requiring items to be specifically defined as level items. If the XmlLevelItem attachment is added to any item it will start acting like a level item.
The uploaded archive contains the XmlLevelItem attachment and the original system scripts modified to work with the xml attachment.
For the system to work correctly the following changes to BaseWeapons.cs, BaseArmor.cs, BaseClothing.cs and BaseJewel.cs are needed.
At the top of each of the scripts add:
In each of the scripts find:
Above it add:
Hopefully this will make using and distributing level items much easier.
Enjoy
I take no credit for any of the inner workings of the system, nor for the idea of the system.
For information on the system please see the original thread: HERE.
This modification also requires that you are using the Xml Spawner which can be found: HERE.
I have modified the system to work via Xml Attachments instead of requiring items to be specifically defined as level items. If the XmlLevelItem attachment is added to any item it will start acting like a level item.
The uploaded archive contains the XmlLevelItem attachment and the original system scripts modified to work with the xml attachment.
For the system to work correctly the following changes to BaseWeapons.cs, BaseArmor.cs, BaseClothing.cs and BaseJewel.cs are needed.
At the top of each of the scripts add:
Code:
using Server.Engines.XmlSpawner2;
In each of the scripts find:
Code:
[CommandProperty( AccessLevel.GameMaster )]
public int MaxHitPoints
{
get{ return m_MaxHitPoints; }
set{ m_MaxHitPoints = value; InvalidateProperties(); }
}
Above it add:
Code:
public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
{
base.GetContextMenuEntries(from, list);
XmlLevelItem levitem = XmlAttach.FindAttachment(this, typeof(XmlLevelItem)) as XmlLevelItem;
if (levitem != null)
{
list.Add(new LevelInfoEntry(from, this, AttributeCategory.Melee));
}
}
Hopefully this will make using and distributing level items much easier.
Enjoy