171 lines
7.3 KiB
C#
171 lines
7.3 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 tranquilty2EAddon : BaseAddon
|
|
{
|
|
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
|
{4551, -2, 2, 7}, {4551, -2, 0, 7}, {4551, -2, -2, 7}// 15 16 17
|
|
, {4551, -2, -4, 7}, {4550, -2, -5, 9}, {4550, -2, -3, 9}// 18 19 20
|
|
, {4550, -2, -1, 9}, {4550, -2, 1, 9}, {4550, -2, 3, 9}// 21 22 23
|
|
, {13567, -1, 1, 1}, {13567, -1, 0, 1}, {13443, 0, -1, 0}// 24 25 26
|
|
, {13443, 0, 0, 0}, {13443, 0, 1, 0}, {13443, 1, -1, 0}// 27 28 29
|
|
, {13443, 1, 0, 0}, {13443, 1, 1, 0}, {13443, -1, -1, 0}// 30 31 32
|
|
, {13443, -1, 0, 0}, {13443, -1, 1, 0}, {13567, 0, 0, 12}// 33 34 35
|
|
, {4551, -2, 4, 7}, {4550, -2, 5, 9}// 69 70
|
|
};
|
|
|
|
|
|
|
|
public override BaseAddonDeed Deed
|
|
{
|
|
get
|
|
{
|
|
return new tranquilty2EAddonDeed();
|
|
}
|
|
}
|
|
|
|
[ Constructable ]
|
|
public tranquilty2EAddon()
|
|
{
|
|
|
|
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, 1006, -2, -5, 0, 1153, -1, "", 1);// 1
|
|
AddComplexComponent( (BaseAddon) this, 1006, -2, -4, 0, 1153, -1, "", 1);// 2
|
|
AddComplexComponent( (BaseAddon) this, 1006, -2, -3, 0, 1153, -1, "", 1);// 3
|
|
AddComplexComponent( (BaseAddon) this, 1006, -2, -2, 0, 1153, -1, "", 1);// 4
|
|
AddComplexComponent( (BaseAddon) this, 1006, -2, -1, 0, 1153, -1, "", 1);// 5
|
|
AddComplexComponent( (BaseAddon) this, 1006, -2, 0, 0, 1153, -1, "", 1);// 6
|
|
AddComplexComponent( (BaseAddon) this, 1006, -2, 1, 0, 1153, -1, "", 1);// 7
|
|
AddComplexComponent( (BaseAddon) this, 1006, -2, 2, 0, 1153, -1, "", 1);// 8
|
|
AddComplexComponent( (BaseAddon) this, 1006, -2, 3, 0, 1153, -1, "", 1);// 9
|
|
AddComplexComponent( (BaseAddon) this, 1006, -2, 3, 2, 1153, -1, "", 1);// 10
|
|
AddComplexComponent( (BaseAddon) this, 1006, -2, 1, 2, 1153, -1, "", 1);// 11
|
|
AddComplexComponent( (BaseAddon) this, 1006, -2, -1, 2, 1153, -1, "", 1);// 12
|
|
AddComplexComponent( (BaseAddon) this, 1006, -2, -3, 2, 1153, -1, "", 1);// 13
|
|
AddComplexComponent( (BaseAddon) this, 1006, -2, -5, 2, 1153, -1, "", 1);// 14
|
|
AddComplexComponent( (BaseAddon) this, 925, -1, 1, 0, 1153, -1, "", 1);// 36
|
|
AddComplexComponent( (BaseAddon) this, 925, 0, 1, 0, 1153, -1, "", 1);// 37
|
|
AddComplexComponent( (BaseAddon) this, 925, -1, -2, 0, 1153, -1, "", 1);// 38
|
|
AddComplexComponent( (BaseAddon) this, 925, 0, -2, 0, 1153, -1, "", 1);// 39
|
|
AddComplexComponent( (BaseAddon) this, 925, 1, -2, 0, 1153, -1, "", 1);// 40
|
|
AddComplexComponent( (BaseAddon) this, 926, 1, -1, 0, 1153, -1, "", 1);// 41
|
|
AddComplexComponent( (BaseAddon) this, 926, 1, 0, 0, 1153, -1, "", 1);// 42
|
|
AddComplexComponent( (BaseAddon) this, 924, 1, 1, 0, 1153, -1, "", 1);// 43
|
|
AddComplexComponent( (BaseAddon) this, 2914, -1, -3, 0, 2533, -1, "", 1);// 44
|
|
AddComplexComponent( (BaseAddon) this, 2915, -1, 3, 0, 2533, -1, "", 1);// 45
|
|
AddComplexComponent( (BaseAddon) this, 2915, -1, -5, 0, 2533, -1, "", 1);// 46
|
|
AddComplexComponent( (BaseAddon) this, 3244, 2, -1, 1, 2283, -1, "", 1);// 47
|
|
AddComplexComponent( (BaseAddon) this, 3244, 2, 0, 1, 2283, -1, "", 1);// 48
|
|
AddComplexComponent( (BaseAddon) this, 3244, 2, 1, 1, 2283, -1, "", 1);// 49
|
|
AddComplexComponent( (BaseAddon) this, 3245, -1, 2, 1, 2283, -1, "", 1);// 50
|
|
AddComplexComponent( (BaseAddon) this, 3245, 0, 2, 1, 2283, -1, "", 1);// 51
|
|
AddComplexComponent( (BaseAddon) this, 3245, 1, 2, 1, 2283, -1, "", 1);// 52
|
|
AddComplexComponent( (BaseAddon) this, 3245, -1, -1, 6, 2283, -1, "", 1);// 53
|
|
AddComplexComponent( (BaseAddon) this, 3245, 0, -1, 6, 2283, -1, "", 1);// 54
|
|
AddComplexComponent( (BaseAddon) this, 3245, 1, -1, 5, 2283, -1, "", 1);// 55
|
|
AddComplexComponent( (BaseAddon) this, 2916, -1, -4, 0, 2533, -1, "", 1);// 56
|
|
AddComplexComponent( (BaseAddon) this, 9036, -2, 3, 10, 2441, -1, "", 1);// 57
|
|
AddComplexComponent( (BaseAddon) this, 9036, -2, -5, 10, 2441, -1, "", 1);// 58
|
|
AddComplexComponent( (BaseAddon) this, 9036, -2, -3, 10, 2441, -1, "", 1);// 59
|
|
AddComplexComponent( (BaseAddon) this, 9036, -2, -1, 10, 2442, -1, "", 1);// 60
|
|
AddComplexComponent( (BaseAddon) this, 9036, -2, 1, 10, 2442, -1, "", 1);// 61
|
|
AddComplexComponent( (BaseAddon) this, 6811, -2, 0, 10, 2896, -1, "flowers", 1);// 62
|
|
AddComplexComponent( (BaseAddon) this, 6811, -2, 2, 10, 2324, -1, "flowers", 1);// 63
|
|
AddComplexComponent( (BaseAddon) this, 6811, -2, -2, 10, 2324, -1, "flowers", 1);// 64
|
|
AddComplexComponent( (BaseAddon) this, 6811, -2, -4, 10, 2241, -1, "flowers", 1);// 65
|
|
AddComplexComponent( (BaseAddon) this, 1006, -2, 4, 0, 1153, -1, "", 1);// 66
|
|
AddComplexComponent( (BaseAddon) this, 1006, -2, 5, 0, 1153, -1, "", 1);// 67
|
|
AddComplexComponent( (BaseAddon) this, 1006, -2, 5, 2, 1153, -1, "", 1);// 68
|
|
AddComplexComponent( (BaseAddon) this, 2914, -1, 5, 0, 2533, -1, "", 1);// 71
|
|
AddComplexComponent( (BaseAddon) this, 2916, -1, 4, 0, 2533, -1, "", 1);// 72
|
|
AddComplexComponent( (BaseAddon) this, 9036, -2, 5, 10, 2441, -1, "", 1);// 73
|
|
AddComplexComponent( (BaseAddon) this, 6811, -2, 4, 10, 2241, -1, "flowers", 1);// 74
|
|
|
|
}
|
|
|
|
public tranquilty2EAddon( 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 tranquilty2EAddonDeed : BaseAddonDeed
|
|
{
|
|
public override BaseAddon Addon
|
|
{
|
|
get
|
|
{
|
|
return new tranquilty2EAddon();
|
|
}
|
|
}
|
|
|
|
[Constructable]
|
|
public tranquilty2EAddonDeed()
|
|
{
|
|
Name = "tranquilty2E";
|
|
}
|
|
|
|
public tranquilty2EAddonDeed( 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();
|
|
}
|
|
}
|
|
} |