177 lines
7.7 KiB
C#
177 lines
7.7 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 countrykitchen2Addon : BaseAddon
|
|
{
|
|
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
|
{5643, 4, 1, 15}, {1801, 1, 2, 0}, {2519, 0, 2, 7}// 4 5 9
|
|
, {4100, -3, 1, 14}, {2539, 4, 2, 15}, {1801, 0, 1, 0}// 10 11 14
|
|
, {2479, 0, 1, 6}, {2540, 4, -1, 15}, {5921, 4, -1, 2}// 19 27 29
|
|
, {7711, 1, 1, 6}, {5924, 0, 2, 10}, {4323, 4, 2, 2}// 32 37 38
|
|
, {2444, -2, -2, 6}, {2528, 0, -2, 8}, {2451, 4, 1, 2}// 39 42 43
|
|
, {5625, 4, 0, 2}, {6274, 4, -2, 15}, {2519, 0, 2, 8}// 46 47 52
|
|
, {1801, 0, 2, 0}, {5375, -3, -1, 6}, {3706, -3, -2, 15}// 54 55 58
|
|
, {8094, -2, 2, 11}, {2519, 0, 2, 6}, {2450, 1, 2, 6}// 59 61 62
|
|
, {4155, -1, -2, 5}, {4163, -3, 0, 6}, {2430, 1, 2, 7}// 66 67 69
|
|
, {2530, 1, -2, 8}, {1801, 1, 1, 0}, {5634, -3, 2, 6}// 73 74 75
|
|
, {4611, -3, -1, 0}// 76
|
|
};
|
|
|
|
|
|
|
|
public override BaseAddonDeed Deed
|
|
{
|
|
get
|
|
{
|
|
return new countrykitchen2AddonDeed();
|
|
}
|
|
}
|
|
|
|
[ Constructable ]
|
|
public countrykitchen2Addon()
|
|
{
|
|
|
|
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, 1997, 4, 0, 14, 2785, -1, "", 1);// 1
|
|
AddComplexComponent( (BaseAddon) this, 10331, 2, -2, 9, 2779, -1, "cabinet", 1);// 2
|
|
AddComplexComponent( (BaseAddon) this, 5688, -2, 1, 1, 1173, -1, "Towel", 1);// 3
|
|
AddComplexComponent( (BaseAddon) this, 10332, -3, 0, 9, 2779, -1, "cabinet", 1);// 6
|
|
AddComplexComponent( (BaseAddon) this, 4158, 4, 0, 15, 2785, -1, "", 1);// 7
|
|
AddComplexComponent( (BaseAddon) this, 1801, -3, -2, 5, 2624, -1, "", 1);// 8
|
|
AddComplexComponent( (BaseAddon) this, 5629, -3, 1, 8, 1154, -1, "", 1);// 12
|
|
AddComplexComponent( (BaseAddon) this, 1997, 4, -1, 14, 2785, -1, "", 1);// 13
|
|
AddComplexComponent( (BaseAddon) this, 2886, 4, 3, 15, 2283, -1, "", 1);// 15
|
|
AddComplexComponent( (BaseAddon) this, 1294, 1, 1, 6, 2779, -1, "", 1);// 16
|
|
AddComplexComponent( (BaseAddon) this, 1997, 4, 0, 1, 2785, -1, "", 1);// 17
|
|
AddComplexComponent( (BaseAddon) this, 1801, 4, -2, 5, 2624, -1, "", 1);// 18
|
|
AddComplexComponent( (BaseAddon) this, 272, -3, -1, 0, 2779, -1, "", 1);// 20
|
|
AddComplexComponent( (BaseAddon) this, 271, 2, -2, 0, 2779, -1, "", 1);// 21
|
|
AddComplexComponent( (BaseAddon) this, 1801, 4, 3, 5, 2624, -1, "", 1);// 22
|
|
AddComplexComponent( (BaseAddon) this, 1801, -3, -2, 0, 2624, -1, "", 1);// 23
|
|
AddComplexComponent( (BaseAddon) this, 271, -1, -2, 0, 2779, -1, "", 1);// 24
|
|
AddComplexComponent( (BaseAddon) this, 6587, 1, -2, 7, 0, 1, "burner", 1);// 25
|
|
AddComplexComponent( (BaseAddon) this, 11526, -3, 3, 0, 2785, -1, "Refridgerator", 1);// 26
|
|
AddComplexComponent( (BaseAddon) this, 1294, 0, 1, 6, 2779, -1, "", 1);// 28
|
|
AddComplexComponent( (BaseAddon) this, 272, -3, 0, 0, 2779, -1, "", 1);// 30
|
|
AddComplexComponent( (BaseAddon) this, 1997, 4, 1, 1, 2785, -1, "", 1);// 31
|
|
AddComplexComponent( (BaseAddon) this, 6587, 0, -2, 7, 0, 1, "burner", 1);// 33
|
|
AddComplexComponent( (BaseAddon) this, 272, -3, 1, 0, 2779, -1, "", 1);// 34
|
|
AddComplexComponent( (BaseAddon) this, 10331, 3, -2, 9, 2779, -1, "cabinet", 1);// 35
|
|
AddComplexComponent( (BaseAddon) this, 272, -3, 2, 0, 2779, -1, "", 1);// 36
|
|
AddComplexComponent( (BaseAddon) this, 1997, 4, -1, 1, 2785, -1, "", 1);// 40
|
|
AddComplexComponent( (BaseAddon) this, 1801, 4, 3, 0, 2624, -1, "", 1);// 41
|
|
AddComplexComponent( (BaseAddon) this, 24, 0, -2, 0, 1, -1, "oven", 1);// 44
|
|
AddComplexComponent( (BaseAddon) this, 1997, 4, 2, 14, 2785, -1, "", 1);// 45
|
|
AddComplexComponent( (BaseAddon) this, 1801, 4, -2, 0, 2624, -1, "", 1);// 48
|
|
AddComplexComponent( (BaseAddon) this, 1801, 4, -2, 10, 2624, -1, "", 1);// 49
|
|
AddComplexComponent( (BaseAddon) this, 1294, 1, 2, 6, 2779, -1, "", 1);// 50
|
|
AddComplexComponent( (BaseAddon) this, 24, 1, -2, 0, 1, -1, "oven", 1);// 51
|
|
AddComplexComponent( (BaseAddon) this, 1294, 0, 2, 6, 2779, -1, "", 1);// 53
|
|
AddComplexComponent( (BaseAddon) this, 271, -2, -2, 0, 2779, -1, "", 1);// 56
|
|
AddComplexComponent( (BaseAddon) this, 1997, 4, 1, 14, 2785, -1, "", 1);// 57
|
|
AddComplexComponent( (BaseAddon) this, 1801, -3, -2, 10, 2624, -1, "", 1);// 60
|
|
AddComplexComponent( (BaseAddon) this, 10331, -2, -2, 9, 2779, -1, "cabinet", 1);// 63
|
|
AddComplexComponent( (BaseAddon) this, 10332, -3, -1, 9, 2779, -1, "cabinet", 1);// 64
|
|
AddComplexComponent( (BaseAddon) this, 10332, -3, 2, 9, 2779, -1, "cabinet", 1);// 65
|
|
AddComplexComponent( (BaseAddon) this, 1997, 4, 2, 1, 2785, -1, "", 1);// 68
|
|
AddComplexComponent( (BaseAddon) this, 1801, 4, 3, 10, 2624, -1, "", 1);// 70
|
|
AddComplexComponent( (BaseAddon) this, 268, -4, 1, 4, 2779, -1, "", 1);// 71
|
|
AddComplexComponent( (BaseAddon) this, 10331, -1, -2, 9, 2779, -1, "cabinet", 1);// 72
|
|
AddComplexComponent( (BaseAddon) this, 4611, -3, -1, 0, 2785, -1, "", 1);// 77
|
|
AddComplexComponent( (BaseAddon) this, 4611, -3, 0, 0, 2785, -1, "", 1);// 78
|
|
AddComplexComponent( (BaseAddon) this, 4611, -3, 1, 0, 2785, -1, "", 1);// 79
|
|
AddComplexComponent( (BaseAddon) this, 4611, -3, 2, 0, 2785, -1, "", 1);// 80
|
|
AddComplexComponent( (BaseAddon) this, 4614, -2, -2, 0, 2785, -1, "", 1);// 81
|
|
AddComplexComponent( (BaseAddon) this, 4614, -1, -2, 0, 2785, -1, "", 1);// 82
|
|
AddComplexComponent( (BaseAddon) this, 4614, 2, -2, 0, 2785, -1, "", 1);// 83
|
|
AddComplexComponent( (BaseAddon) this, 7616, 0, -2, 0, 2785, -1, "", 1);// 84
|
|
AddComplexComponent( (BaseAddon) this, 7616, 1, -2, 0, 2785, -1, "", 1);// 85
|
|
|
|
}
|
|
|
|
public countrykitchen2Addon( 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 countrykitchen2AddonDeed : BaseAddonDeed
|
|
{
|
|
public override BaseAddon Addon
|
|
{
|
|
get
|
|
{
|
|
return new countrykitchen2Addon();
|
|
}
|
|
}
|
|
|
|
[Constructable]
|
|
public countrykitchen2AddonDeed()
|
|
{
|
|
Name = "countrykitchen2";
|
|
}
|
|
|
|
public countrykitchen2AddonDeed( 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();
|
|
}
|
|
}
|
|
} |