163 lines
6.5 KiB
C#
163 lines
6.5 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 holidaytable2Addon : BaseAddon
|
|
{
|
|
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
|
{2947, 2, -4, 0}, {2951, 2, -3, 0}, {2951, 2, -2, 0}// 1 2 3
|
|
, {2950, 0, -4, 0}, {2950, 0, -3, 0}, {2950, 0, -2, 0}// 4 5 6
|
|
, {2950, -1, -4, 0}, {2950, -1, -3, 0}, {2950, -1, -2, 0}// 7 8 9
|
|
, {2950, 1, -4, 0}, {2950, 1, -3, 0}, {2950, 1, -2, 0}// 16 17 18
|
|
, {2449, 2, -4, 6}, {2523, 2, -3, 6}, {2523, 1, -3, 13}// 19 23 24
|
|
, {2523, -1, -3, 4}, {2493, -1, -3, 4}, {2494, 1, -3, 13}// 25 26 27
|
|
, {2517, 2, -3, 6}, {4095, 2, -2, 6}, {4095, 2, -2, 14}// 28 29 30
|
|
, {4097, 0, -2, 9}, {2948, 2, 4, 0}, {2951, 2, -1, 0}// 31 33 34
|
|
, {2951, 2, 0, 0}, {2951, 2, 1, 0}, {2951, 2, 2, 0}// 35 36 37
|
|
, {2951, 2, 3, 0}, {2950, 0, -1, 0}, {2950, 0, 0, 0}// 38 39 40
|
|
, {2950, 0, 1, 0}, {2950, 0, 2, 0}, {2950, 0, 3, 0}// 41 42 43
|
|
, {2950, 0, 4, 0}, {2949, -1, 4, 0}, {2950, -1, -1, 0}// 44 45 46
|
|
, {2950, -1, 0, 0}, {2950, -1, 1, 0}, {2950, -1, 2, 0}// 47 48 49
|
|
, {2950, -1, 3, 0}, {2950, 1, -1, 0}, {2950, 1, 0, 0}// 50 65 66
|
|
, {2950, 1, 1, 0}, {2950, 1, 2, 0}, {2950, 1, 3, 0}// 67 68 69
|
|
, {2950, 1, 4, 0}, {2492, 1, 1, 11}, {5628, 1, 2, 11}// 70 71 72
|
|
, {5634, 1, -1, 10}, {2523, 2, 3, 6}, {2523, 2, 1, 6}// 73 77 78
|
|
, {2523, 2, -1, 6}, {2523, 1, 5, 14}, {2523, -1, 1, 4}// 79 80 81
|
|
, {2523, -1, 3, 4}, {2523, -1, -1, 4}, {2493, -1, 3, 4}// 82 83 84
|
|
, {2493, -1, 1, 4}, {2493, -1, -1, 4}, {2516, 1, 5, 14}// 85 86 87
|
|
, {2517, 2, 3, 6}, {2517, 2, 1, 6}, {2517, 2, -1, 6}// 88 89 90
|
|
, {4095, 2, 4, 8}, {4095, 2, 2, 6}, {4095, 2, 0, 6}// 91 92 93
|
|
, {4097, 0, 0, 9}, {4097, 0, 2, 9}, {4097, 1, 5, 22}// 94 95 96
|
|
, {4098, 1, 4, 9}, {2537, 2, 4, 6}// 97 98
|
|
};
|
|
|
|
|
|
|
|
public override BaseAddonDeed Deed
|
|
{
|
|
get
|
|
{
|
|
return new holidaytable2AddonDeed();
|
|
}
|
|
}
|
|
|
|
[ Constructable ]
|
|
public holidaytable2Addon()
|
|
{
|
|
|
|
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, 2901, 3, -3, 0, 33, -1, "", 1);// 10
|
|
AddComplexComponent( (BaseAddon) this, 2898, -2, -3, 0, 33, -1, "", 1);// 11
|
|
AddComplexComponent( (BaseAddon) this, 2899, 1, -5, 0, 33, -1, "", 1);// 12
|
|
AddComplexComponent( (BaseAddon) this, 2750, -1, -3, 4, 33, -1, "placemat", 1);// 13
|
|
AddComplexComponent( (BaseAddon) this, 2750, 1, -3, 13, 33, -1, "placemat", 1);// 14
|
|
AddComplexComponent( (BaseAddon) this, 2750, 2, -3, 6, 33, -1, "placemat", 1);// 15
|
|
AddComplexComponent( (BaseAddon) this, 6869, 1, -2, 9, 2212, -1, "Greenery", 1);// 20
|
|
AddComplexComponent( (BaseAddon) this, 2485, 1, -2, 9, 37, -1, "Holly Berries", 1);// 21
|
|
AddComplexComponent( (BaseAddon) this, 5168, 1, -2, 13, 2698, 1, "", 1);// 22
|
|
AddComplexComponent( (BaseAddon) this, 8088, 2, -4, 7, 33, -1, "", 1);// 32
|
|
AddComplexComponent( (BaseAddon) this, 2900, 1, 6, 0, 33, -1, "", 1);// 51
|
|
AddComplexComponent( (BaseAddon) this, 2901, 3, 3, 0, 33, -1, "", 1);// 52
|
|
AddComplexComponent( (BaseAddon) this, 2901, 3, -1, 0, 33, -1, "", 1);// 53
|
|
AddComplexComponent( (BaseAddon) this, 2901, 3, 1, 0, 33, -1, "", 1);// 54
|
|
AddComplexComponent( (BaseAddon) this, 2898, -2, 3, 0, 33, -1, "", 1);// 55
|
|
AddComplexComponent( (BaseAddon) this, 2898, -2, 1, 0, 33, -1, "", 1);// 56
|
|
AddComplexComponent( (BaseAddon) this, 2898, -2, -1, 0, 33, -1, "", 1);// 57
|
|
AddComplexComponent( (BaseAddon) this, 2750, -1, 3, 4, 33, -1, "placemat", 1);// 58
|
|
AddComplexComponent( (BaseAddon) this, 2750, -1, 1, 4, 33, -1, "placemat", 1);// 59
|
|
AddComplexComponent( (BaseAddon) this, 2750, -1, -1, 4, 33, -1, "placemat", 1);// 60
|
|
AddComplexComponent( (BaseAddon) this, 2750, 2, 3, 6, 33, -1, "placemat", 1);// 61
|
|
AddComplexComponent( (BaseAddon) this, 2750, 2, 1, 6, 33, -1, "placemat", 1);// 62
|
|
AddComplexComponent( (BaseAddon) this, 2750, 2, -1, 6, 33, -1, "placemat", 1);// 63
|
|
AddComplexComponent( (BaseAddon) this, 2750, 1, 5, 14, 33, -1, "placemat", 1);// 64
|
|
AddComplexComponent( (BaseAddon) this, 6869, 1, 3, 11, 2212, -1, "Greenery", 1);// 74
|
|
AddComplexComponent( (BaseAddon) this, 2485, 1, 3, 11, 37, -1, "Holly Berries", 1);// 75
|
|
AddComplexComponent( (BaseAddon) this, 5168, 1, 3, 15, 2698, 1, "", 1);// 76
|
|
|
|
}
|
|
|
|
public holidaytable2Addon( 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 holidaytable2AddonDeed : BaseAddonDeed
|
|
{
|
|
public override BaseAddon Addon
|
|
{
|
|
get
|
|
{
|
|
return new holidaytable2Addon();
|
|
}
|
|
}
|
|
|
|
[Constructable]
|
|
public holidaytable2AddonDeed()
|
|
{
|
|
Name = "holidaytable2";
|
|
}
|
|
|
|
public holidaytable2AddonDeed( 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();
|
|
}
|
|
}
|
|
} |