131 lines
4.0 KiB
C#
131 lines
4.0 KiB
C#
|
|
////////////////////////////////////////
|
|
// //
|
|
// Generated by CEO's YAAAG - V1.2 //
|
|
// (Yet Another Arya Addon Generator) //
|
|
// //
|
|
////////////////////////////////////////
|
|
using System;
|
|
using Server;
|
|
using Server.Items;
|
|
|
|
namespace Server.Items
|
|
{
|
|
public class LeprechaunPotofGoldAddon : BaseAddon
|
|
{
|
|
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
|
{5340, -1, 0, 0}, {5341, 0, -1, 0}, {3823, 0, 0, 16}// 2 3 7
|
|
, {3823, 0, -1, 8}, {3823, -1, 0, 9}, {3823, -1, 0, 5}// 8 9 10
|
|
, {3823, 0, 0, 12}, {3823, 0, -1, 5}, {3823, 0, 0, 7}// 11 12 13
|
|
, {3823, 1, 0, 13}, {3823, 0, 1, 13}, {3823, 1, 1, 14}// 14 15 16
|
|
, {3823, 0, 1, 10}, {3823, 1, 0, 9}, {3823, 0, 2, 23}// 17 18 21
|
|
, {3823, 0, 2, 18}, {3823, -1, 2, 4}, {3823, 1, 2, 10}// 22 23 24
|
|
, {3823, 0, 2, 8}, {3823, -1, 2, 0}, {3823, 0, 2, 4}// 25 26 27
|
|
, {3823, 1, 2, 6}, {3823, 0, 3, 18}, {3823, 2, 0, 22}// 28 29 31
|
|
, {3823, 2, 0, 18}, {3823, 3, 0, 18}, {3823, 2, -1, 4}// 32 33 34
|
|
, {3823, 2, 1, 10}, {3823, 2, 0, 8}, {3823, 2, 2, 15}// 35 36 37
|
|
, {3823, 2, 2, 11}, {3823, 2, 1, 6}, {3823, 2, 0, 4}// 38 39 40
|
|
, {3823, 2, -1, 0}// 41
|
|
};
|
|
|
|
|
|
|
|
public override BaseAddonDeed Deed
|
|
{
|
|
get
|
|
{
|
|
return new LeprechaunPotofGoldAddonDeed();
|
|
}
|
|
}
|
|
|
|
[ Constructable ]
|
|
public LeprechaunPotofGoldAddon()
|
|
{
|
|
|
|
for (int i = 0; i < m_AddOnSimpleComponents.Length / 4; i++)
|
|
AddComponent( new AddonComponent( m_AddOnSimpleComponents[i,0] ), m_AddOnSimpleComponents[i,1], m_AddOnSimpleComponents[i,2], m_AddOnSimpleComponents[i,3] );
|
|
|
|
|
|
AddComplexComponent( (BaseAddon) this, 5339, -1, -1, 0, 1372, -1, "", 1);// 1
|
|
AddComplexComponent( (BaseAddon) this, 5342, -2, 0, 0, 1372, -1, "", 1);// 4
|
|
AddComplexComponent( (BaseAddon) this, 5343, 0, -2, 0, 1372, -1, "", 1);// 5
|
|
AddComplexComponent( (BaseAddon) this, 5337, 0, 0, 0, 1372, -1, "", 1);// 6
|
|
AddComplexComponent( (BaseAddon) this, 5335, 1, 1, 0, 1372, -1, "", 1);// 19
|
|
AddComplexComponent( (BaseAddon) this, 5336, 0, 2, 0, 1372, -1, "", 1);// 20
|
|
AddComplexComponent( (BaseAddon) this, 5338, 2, 0, 0, 1372, -1, "", 1);// 30
|
|
|
|
}
|
|
|
|
public LeprechaunPotofGoldAddon( Serial serial ) : base( serial )
|
|
{
|
|
}
|
|
|
|
private static void AddComplexComponent(BaseAddon addon, int item, int xoffset, int yoffset, int zoffset, int hue, int lightsource)
|
|
{
|
|
AddComplexComponent(addon, item, xoffset, yoffset, zoffset, hue, lightsource, null, 1);
|
|
}
|
|
|
|
private static void AddComplexComponent(BaseAddon addon, int item, int xoffset, int yoffset, int zoffset, int hue, int lightsource, string name, int amount)
|
|
{
|
|
AddonComponent ac;
|
|
ac = new AddonComponent(item);
|
|
if (name != null && name.Length > 0)
|
|
ac.Name = name;
|
|
if (hue != 0)
|
|
ac.Hue = hue;
|
|
if (amount > 1)
|
|
{
|
|
ac.Stackable = true;
|
|
ac.Amount = amount;
|
|
}
|
|
if (lightsource != -1)
|
|
ac.Light = (LightType) lightsource;
|
|
addon.AddComponent(ac, xoffset, yoffset, zoffset);
|
|
}
|
|
|
|
public override void Serialize( GenericWriter writer )
|
|
{
|
|
base.Serialize( writer );
|
|
writer.Write( 0 ); // Version
|
|
}
|
|
|
|
public override void Deserialize( GenericReader reader )
|
|
{
|
|
base.Deserialize( reader );
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
|
|
public class LeprechaunPotofGoldAddonDeed : BaseAddonDeed
|
|
{
|
|
public override BaseAddon Addon
|
|
{
|
|
get
|
|
{
|
|
return new LeprechaunPotofGoldAddon();
|
|
}
|
|
}
|
|
|
|
[Constructable]
|
|
public LeprechaunPotofGoldAddonDeed()
|
|
{
|
|
Name = "LeprechaunPotofGold";
|
|
}
|
|
|
|
public LeprechaunPotofGoldAddonDeed( Serial serial ) : base( serial )
|
|
{
|
|
}
|
|
|
|
public override void Serialize( GenericWriter writer )
|
|
{
|
|
base.Serialize( writer );
|
|
writer.Write( 0 ); // Version
|
|
}
|
|
|
|
public override void Deserialize( GenericReader reader )
|
|
{
|
|
base.Deserialize( reader );
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
} |