172 lines
7.3 KiB
C#
172 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 kidtownpoolslideAddon : BaseAddon
|
|
{
|
|
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
|
{1981, -4, 0, 20}, {1981, -4, -3, 20}, {1981, 1, 1, 20}// 4 5 6
|
|
, {1981, -3, -2, 20}, {1981, -3, -1, 20}, {1981, -3, 0, 20}// 7 8 9
|
|
, {1981, -3, 1, 20}, {1981, -3, 2, 20}, {1981, -4, -2, 20}// 10 11 12
|
|
, {1981, -4, -1, 20}, {1981, 1, 0, 20}, {1981, -2, -2, 20}// 13 14 15
|
|
, {1981, -2, -1, 20}, {1981, -2, 0, 20}, {1981, -2, 1, 20}// 16 17 18
|
|
, {1981, -2, 2, 20}, {1981, -4, 2, 20}, {1981, -4, 1, 20}// 19 20 21
|
|
, {1981, 1, -1, 20}, {1981, -1, -2, 20}, {1981, -1, -1, 20}// 22 23 24
|
|
, {1981, -1, 0, 20}, {1981, -1, 1, 20}, {1981, -1, 2, 20}// 25 26 27
|
|
, {1981, -3, -3, 20}, {1981, 1, -2, 20}, {1981, 1, 2, 20}// 28 29 30
|
|
, {1981, 0, -2, 20}, {1981, 0, -1, 20}, {1981, 0, 0, 20}// 31 32 33
|
|
, {1981, 0, 1, 20}, {1981, 0, 2, 20}, {1981, -3, -4, 20}// 34 35 36
|
|
, {1981, -4, -4, 20}, {1981, -2, -4, 20}, {1981, -2, -3, 20}// 37 38 39
|
|
, {1981, -1, -4, 20}, {1981, -1, -3, 20}, {1981, 0, -4, 20}// 40 41 42
|
|
, {1981, 0, -3, 20}, {1981, 1, -4, 20}, {1981, 1, -3, 20}// 43 44 45
|
|
, {1008, 2, -2, 15}, {1008, 2, -1, 15}, {1008, 5, -2, 0}// 46 47 84
|
|
, {1008, 5, -1, 0}, {1008, 4, -1, 5}, {1008, 4, -2, 5}// 85 86 87
|
|
, {1008, 3, -1, 10}, {1008, 3, -2, 10}// 88 89
|
|
};
|
|
|
|
|
|
|
|
public override BaseAddonDeed Deed
|
|
{
|
|
get
|
|
{
|
|
return new kidtownpoolslideAddonDeed();
|
|
}
|
|
}
|
|
|
|
[ Constructable ]
|
|
public kidtownpoolslideAddon()
|
|
{
|
|
|
|
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, 147, -4, 2, 0, 2434, -1, "", 1);// 1
|
|
AddComplexComponent( (BaseAddon) this, 147, -4, -4, 0, 2434, -1, "", 1);// 2
|
|
AddComplexComponent( (BaseAddon) this, 147, 1, -4, 3, 2434, -1, "", 1);// 3
|
|
AddComplexComponent( (BaseAddon) this, 4045, -4, 4, 15, 1153, -1, "", 1);// 48
|
|
AddComplexComponent( (BaseAddon) this, 4045, -3, 4, 16, 1153, -1, "", 1);// 49
|
|
AddComplexComponent( (BaseAddon) this, 4045, 0, 4, 15, 1153, -1, "", 1);// 50
|
|
AddComplexComponent( (BaseAddon) this, 4045, 1, 4, 16, 1153, -1, "", 1);// 51
|
|
AddComplexComponent( (BaseAddon) this, 2177, -3, -4, 22, 2434, -1, "", 1);// 52
|
|
AddComplexComponent( (BaseAddon) this, 2177, -2, -4, 22, 2434, -1, "", 1);// 53
|
|
AddComplexComponent( (BaseAddon) this, 2177, -1, -4, 22, 2434, -1, "", 1);// 54
|
|
AddComplexComponent( (BaseAddon) this, 2177, 0, -4, 22, 2434, -1, "", 1);// 55
|
|
AddComplexComponent( (BaseAddon) this, 2177, 1, -4, 22, 2434, -1, "", 1);// 56
|
|
AddComplexComponent( (BaseAddon) this, 2177, -4, -4, 22, 2434, -1, "", 1);// 57
|
|
AddComplexComponent( (BaseAddon) this, 2183, -4, -4, 22, 2434, -1, "", 1);// 58
|
|
AddComplexComponent( (BaseAddon) this, 2183, -4, -3, 22, 2434, -1, "", 1);// 59
|
|
AddComplexComponent( (BaseAddon) this, 2183, -4, -2, 22, 2434, -1, "", 1);// 60
|
|
AddComplexComponent( (BaseAddon) this, 2183, -4, -1, 22, 2434, -1, "", 1);// 61
|
|
AddComplexComponent( (BaseAddon) this, 2183, -4, 0, 22, 2434, -1, "", 1);// 62
|
|
AddComplexComponent( (BaseAddon) this, 2183, -4, 1, 22, 2434, -1, "", 1);// 63
|
|
AddComplexComponent( (BaseAddon) this, 2183, -4, 2, 22, 2434, -1, "", 1);// 64
|
|
AddComplexComponent( (BaseAddon) this, 2233, -5, -5, 20, 2434, -1, "", 1);// 65
|
|
AddComplexComponent( (BaseAddon) this, 2171, -2, 3, 15, 1153, -1, "", 1);// 66
|
|
AddComplexComponent( (BaseAddon) this, 2171, -1, 3, 15, 1153, -1, "", 1);// 67
|
|
AddComplexComponent( (BaseAddon) this, 2171, -2, 5, 5, 1153, -1, "", 1);// 68
|
|
AddComplexComponent( (BaseAddon) this, 2171, -1, 4, 10, 1153, -1, "", 1);// 69
|
|
AddComplexComponent( (BaseAddon) this, 2171, -2, 4, 10, 1153, -1, "", 1);// 70
|
|
AddComplexComponent( (BaseAddon) this, 2171, -1, 5, 5, 1153, -1, "", 1);// 71
|
|
AddComplexComponent( (BaseAddon) this, 2182, 1, 0, 22, 2434, -1, "", 1);// 72
|
|
AddComplexComponent( (BaseAddon) this, 2182, 1, 1, 22, 2434, -1, "", 1);// 73
|
|
AddComplexComponent( (BaseAddon) this, 2182, 1, 2, 22, 2434, -1, "", 1);// 74
|
|
AddComplexComponent( (BaseAddon) this, 2177, -4, 3, 22, 2434, -1, "", 1);// 75
|
|
AddComplexComponent( (BaseAddon) this, 2177, 1, 3, 22, 2434, -1, "", 1);// 76
|
|
AddComplexComponent( (BaseAddon) this, 2171, -2, 6, 0, 1153, -1, "", 1);// 77
|
|
AddComplexComponent( (BaseAddon) this, 2171, -1, 6, 0, 1153, -1, "", 1);// 78
|
|
AddComplexComponent( (BaseAddon) this, 147, 1, 2, 0, 2434, -1, "", 1);// 79
|
|
AddComplexComponent( (BaseAddon) this, 2182, 1, -4, 22, 2434, -1, "", 1);// 80
|
|
AddComplexComponent( (BaseAddon) this, 2182, 1, -3, 22, 2434, -1, "", 1);// 81
|
|
AddComplexComponent( (BaseAddon) this, 2177, -3, 3, 22, 2434, -1, "", 1);// 82
|
|
AddComplexComponent( (BaseAddon) this, 2177, 0, 3, 22, 2434, -1, "", 1);// 83
|
|
AddComplexComponent( (BaseAddon) this, 4051, 3, 1, 12, 1153, -1, "", 1);// 90
|
|
AddComplexComponent( (BaseAddon) this, 4051, 3, 0, 14, 1153, -1, "", 1);// 91
|
|
AddComplexComponent( (BaseAddon) this, 4051, 3, -3, 13, 1153, -1, "", 1);// 92
|
|
AddComplexComponent( (BaseAddon) this, 4051, 3, -4, 12, 1153, -1, "", 1);// 93
|
|
|
|
}
|
|
|
|
public kidtownpoolslideAddon( 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 kidtownpoolslideAddonDeed : BaseAddonDeed
|
|
{
|
|
public override BaseAddon Addon
|
|
{
|
|
get
|
|
{
|
|
return new kidtownpoolslideAddon();
|
|
}
|
|
}
|
|
|
|
[Constructable]
|
|
public kidtownpoolslideAddonDeed()
|
|
{
|
|
Name = "kidtownpoolslide";
|
|
}
|
|
|
|
public kidtownpoolslideAddonDeed( 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();
|
|
}
|
|
}
|
|
} |