Files
abysmal-isle/Scripts/Scripts-master/Addons/holidaytableAddon.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

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