144 lines
5.4 KiB
C#
144 lines
5.4 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 HopesMemorialAddon : BaseAddon
|
|
{
|
|
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
|
{9966, -4, 0, 0}, {9968, -4, 0, 0}, {9966, -3, -2, 0}// 1 2 3
|
|
, {9968, -3, -2, 0}, {9966, -2, -3, 0}, {9968, -2, -3, 0}// 4 5 6
|
|
, {9966, 0, -3, 0}, {9968, 0, -3, 0}, {9966, 1, -3, 0}// 7 8 9
|
|
, {9968, 1, -3, 0}, {9966, 3, -2, 0}, {9968, 3, -2, 0}// 10 11 12
|
|
, {9966, 4, 0, 0}, {9968, 4, 0, 0}, {3207, 2, 1, 0}// 13 14 29
|
|
, {3207, -2, 1, 0}, {3207, 0, 3, 0}, {3146, -1, 2, 0}// 30 31 40
|
|
, {3146, 1, 2, 0}, {3312, 2, 1, 0}// 41 42
|
|
};
|
|
|
|
|
|
|
|
public override BaseAddonDeed Deed
|
|
{
|
|
get
|
|
{
|
|
return new HopesMemorialAddonDeed();
|
|
}
|
|
}
|
|
|
|
[ Constructable ]
|
|
public HopesMemorialAddon()
|
|
{
|
|
|
|
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, 10079, 1, 1, 0, 115, -1, "", 1);// 15
|
|
AddComplexComponent( (BaseAddon) this, 10079, -2, 1, 0, 115, -1, "", 1);// 16
|
|
AddComplexComponent( (BaseAddon) this, 9154, 0, 2, 20, 115, -1, "", 1);// 17
|
|
AddComplexComponent( (BaseAddon) this, 9154, 1, 2, 20, 115, -1, "", 1);// 18
|
|
AddComplexComponent( (BaseAddon) this, 9160, 0, 1, 20, 115, -1, "", 1);// 19
|
|
AddComplexComponent( (BaseAddon) this, 9160, 1, 1, 20, 115, -1, "", 1);// 20
|
|
AddComplexComponent( (BaseAddon) this, 9162, 2, 2, 20, 115, -1, "", 1);// 21
|
|
AddComplexComponent( (BaseAddon) this, 9164, -1, 2, 20, 115, -1, "", 1);// 22
|
|
AddComplexComponent( (BaseAddon) this, 9166, 2, 1, 20, 115, -1, "", 1);// 23
|
|
AddComplexComponent( (BaseAddon) this, 9168, -1, 1, 20, 115, -1, "ceramic roof", 1);// 24
|
|
AddComplexComponent( (BaseAddon) this, 4476, 0, 1, 0, 2923, -1, "Hope, Even though you are gone, your beauty is all around us. I will love you always, Daddy", 1);// 25
|
|
AddComplexComponent( (BaseAddon) this, 9654, 0, 2, 5, 0, -1, "A Hand Blown Tinkerbell Figurine Specially for Hope", 1);// 26
|
|
AddComplexComponent( (BaseAddon) this, 9035, 1, 2, 0, 0, -1, "A Rose Hand-Picked For Hope", 1);// 27
|
|
AddComplexComponent( (BaseAddon) this, 9035, -1, 2, 0, 0, -1, "A Rose Hand-Picked For Hope", 1);// 28
|
|
AddComplexComponent( (BaseAddon) this, 3146, 2, 1, 23, 0, -1, "Pixie Dust", 1);// 32
|
|
AddComplexComponent( (BaseAddon) this, 3146, 1, 1, 23, 0, -1, "Pixie Dust", 1);// 33
|
|
AddComplexComponent( (BaseAddon) this, 3146, 0, 1, 23, 0, -1, "Pixie Dust", 1);// 34
|
|
AddComplexComponent( (BaseAddon) this, 3146, -1, 1, 23, 0, -1, "Pixie Dust", 1);// 35
|
|
AddComplexComponent( (BaseAddon) this, 3146, -1, 2, 23, 0, -1, "Pixie Dust", 1);// 36
|
|
AddComplexComponent( (BaseAddon) this, 3146, 0, 2, 23, 0, -1, "Pixie Dust", 1);// 37
|
|
AddComplexComponent( (BaseAddon) this, 3146, 1, 2, 23, 0, -1, "Pixie Dust", 1);// 38
|
|
AddComplexComponent( (BaseAddon) this, 3146, 2, 2, 23, 0, -1, "Pixie Dust", 1);// 39
|
|
AddComplexComponent( (BaseAddon) this, 3196, 2, 1, 19, 2576, -1, "Hope's Rose", 1);// 43
|
|
AddComplexComponent( (BaseAddon) this, 3196, 2, 1, 9, 2576, -1, "Hope's Rose", 1);// 44
|
|
AddComplexComponent( (BaseAddon) this, 3195, 2, 2, 16, 2576, -1, "Hope's Rose", 1);// 45
|
|
|
|
}
|
|
|
|
public HopesMemorialAddon( 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 HopesMemorialAddonDeed : BaseAddonDeed
|
|
{
|
|
public override BaseAddon Addon
|
|
{
|
|
get
|
|
{
|
|
return new HopesMemorialAddon();
|
|
}
|
|
}
|
|
|
|
[Constructable]
|
|
public HopesMemorialAddonDeed()
|
|
{
|
|
Name = "HopesMemorial";
|
|
}
|
|
|
|
public HopesMemorialAddonDeed( 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();
|
|
}
|
|
}
|
|
} |