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

122 lines
3.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 IrishGardenAddon : BaseAddon
{
private static int[,] m_AddOnSimpleComponents = new int[,] {
{3221, 0, -3, 0}, {3221, 0, 1, 0}, {4594, 0, 0, 0}// 1 2 3
, {4595, 0, -2, 0}, {5029, 0, -2, 6}, {2868, 1, -2, 0}// 4 6 7
};
public override BaseAddonDeed Deed
{
get
{
return new IrishGardenAddonDeed();
}
}
[ Constructable ]
public IrishGardenAddon()
{
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, 7712, 0, -1, 8, 0, -1, "History of Ireland", 1);// 5
AddComplexComponent( (BaseAddon) this, 2463, 1, -2, 10, 2247, -1, "Irish Whiskey", 1);// 8
AddComplexComponent( (BaseAddon) this, 2458, 1, -2, 5, 2716, -1, "Shotglass", 1);// 9
AddComplexComponent( (BaseAddon) this, 3264, 1, 1, 0, 1372, -1, "Shamrocks", 1);// 10
AddComplexComponent( (BaseAddon) this, 3214, 0, 1, 0, 0, -1, "Thistle Flowers", 1);// 11
AddComplexComponent( (BaseAddon) this, 3214, 1, 2, 0, 0, -1, "Thistle Flowers", 1);// 12
AddComplexComponent( (BaseAddon) this, 3204, 0, 3, 6, 2802, -1, "Golden Snap Dragons", 1);// 13
AddComplexComponent( (BaseAddon) this, 3205, 1, 2, 4, 1372, -1, "Four Leaf Clover", 1);// 14
}
public IrishGardenAddon( 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 IrishGardenAddonDeed : BaseAddonDeed
{
public override BaseAddon Addon
{
get
{
return new IrishGardenAddon();
}
}
[Constructable]
public IrishGardenAddonDeed()
{
Name = "IrishGarden";
}
public IrishGardenAddonDeed( 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();
}
}
}