Files
abysmal-isle/Scripts/Scripts-master/Addons/holidaytableNSAddon.cs
Unstable Kitsune b918192e4e Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
2023-11-28 23:20:26 -05:00

162 lines
6.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 holidaytableNSAddon : 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 64 65
, {2950, 1, 1, 0}, {2950, 1, 2, 0}, {2950, 1, 3, 0}// 66 67 68
, {2950, 1, 4, 0}, {2492, 1, 1, 11}, {5628, 1, 2, 11}// 69 70 71
, {5634, 1, -1, 10}, {2523, 2, 3, 6}, {2523, 2, 1, 6}// 72 76 77
, {2523, 2, -1, 6}, {2523, 1, 5, 14}, {2523, -1, 1, 4}// 78 79 80
, {2523, -1, 3, 4}, {2523, -1, -1, 4}, {2493, -1, 3, 4}// 81 82 83
, {2493, -1, 1, 4}, {2493, -1, -1, 4}, {2516, 1, 5, 14}// 84 85 86
, {2517, 2, 3, 6}, {2517, 2, 1, 6}, {2517, 2, -1, 6}// 87 88 89
, {4095, 2, 4, 8}, {4095, 2, 2, 6}, {4095, 2, 0, 6}// 90 91 92
, {4097, 0, 0, 9}, {4097, 0, 2, 9}, {4097, 1, 5, 22}// 93 94 95
, {4098, 1, 4, 9}, {2537, 2, 4, 6}// 96 97
};
public override BaseAddonDeed Deed
{
get
{
return new holidaytableNSAddonDeed();
}
}
[ Constructable ]
public holidaytableNSAddon()
{
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, 2901, 3, 3, 0, 33, -1, "", 1);// 51
AddComplexComponent( (BaseAddon) this, 2901, 3, -1, 0, 33, -1, "", 1);// 52
AddComplexComponent( (BaseAddon) this, 2901, 3, 1, 0, 33, -1, "", 1);// 53
AddComplexComponent( (BaseAddon) this, 2898, -2, 3, 0, 33, -1, "", 1);// 54
AddComplexComponent( (BaseAddon) this, 2898, -2, 1, 0, 33, -1, "", 1);// 55
AddComplexComponent( (BaseAddon) this, 2898, -2, -1, 0, 33, -1, "", 1);// 56
AddComplexComponent( (BaseAddon) this, 2750, -1, 3, 4, 33, -1, "placemat", 1);// 57
AddComplexComponent( (BaseAddon) this, 2750, -1, 1, 4, 33, -1, "placemat", 1);// 58
AddComplexComponent( (BaseAddon) this, 2750, -1, -1, 4, 33, -1, "placemat", 1);// 59
AddComplexComponent( (BaseAddon) this, 2750, 2, 3, 6, 33, -1, "placemat", 1);// 60
AddComplexComponent( (BaseAddon) this, 2750, 2, 1, 6, 33, -1, "placemat", 1);// 61
AddComplexComponent( (BaseAddon) this, 2750, 2, -1, 6, 33, -1, "placemat", 1);// 62
AddComplexComponent( (BaseAddon) this, 2750, 1, 5, 14, 33, -1, "placemat", 1);// 63
AddComplexComponent( (BaseAddon) this, 6869, 1, 3, 11, 2212, -1, "Greenery", 1);// 73
AddComplexComponent( (BaseAddon) this, 2485, 1, 3, 11, 37, -1, "Holly Berries", 1);// 74
AddComplexComponent( (BaseAddon) this, 5168, 1, 3, 15, 2698, 1, "", 1);// 75
}
public holidaytableNSAddon( 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 holidaytableNSAddonDeed : BaseAddonDeed
{
public override BaseAddon Addon
{
get
{
return new holidaytableNSAddon();
}
}
[Constructable]
public holidaytableNSAddonDeed()
{
Name = "holidaytableNS";
}
public holidaytableNSAddonDeed( 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();
}
}
}