186 lines
8.5 KiB
C#
186 lines
8.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 drkwoodkitchenAddon : BaseAddon
|
|
{
|
|
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
|
{5634, -3, 2, 8}, {5375, -3, -1, 8}, {2450, 1, 2, 7}// 4 5 10
|
|
, {7979, 0, -2, 7}, {7711, 1, 1, 7}, {2547, 1, -1, 19}// 12 14 16
|
|
, {2444, -2, -2, 7}, {2519, 1, 3, 19}, {2530, 2, -1, 19}// 18 20 22
|
|
, {7979, 1, -2, 7}, {2477, -2, 2, 16}, {2519, 1, 3, 18}// 23 27 28
|
|
, {2521, 1, 2, 17}, {2430, 1, 2, 8}, {4159, 2, -2, 7}// 34 37 42
|
|
, {4161, -1, -2, 7}, {5924, 0, 2, 11}, {2519, 1, 3, 17}// 56 58 59
|
|
, {4163, -3, 0, 8}, {5644, 3, -2, 6}, {4555, -3, -2, 18}// 62 73 75
|
|
, {2517, 4, 0, 8}, {2523, 4, 0, 8}, {6274, 4, -2, 16}// 78 79 81
|
|
, {2523, 4, 2, 8}, {2523, 4, 1, 8}, {2517, 4, -1, 8}// 87 90 91
|
|
, {2523, 4, -1, 8}, {2517, 4, 2, 8}, {2517, 4, 1, 8}// 92 93 94
|
|
};
|
|
|
|
|
|
|
|
public override BaseAddonDeed Deed
|
|
{
|
|
get
|
|
{
|
|
return new drkwoodkitchenAddonDeed();
|
|
}
|
|
}
|
|
|
|
[ Constructable ]
|
|
public drkwoodkitchenAddon()
|
|
{
|
|
|
|
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, 1801, -3, -2, 5, 1736, -1, "", 1);// 1
|
|
AddComplexComponent( (BaseAddon) this, 1801, -3, -2, 10, 1736, -1, "", 1);// 2
|
|
AddComplexComponent( (BaseAddon) this, 1297, 1, 1, 7, 2641, -1, "", 1);// 3
|
|
AddComplexComponent( (BaseAddon) this, 1297, 0, 1, 7, 2641, -1, "", 1);// 6
|
|
AddComplexComponent( (BaseAddon) this, 1297, 0, 2, 7, 2641, -1, "", 1);// 7
|
|
AddComplexComponent( (BaseAddon) this, 1297, 1, 2, 7, 2641, -1, "", 1);// 8
|
|
AddComplexComponent( (BaseAddon) this, 1801, 0, 1, 1, 2462, -1, "", 1);// 9
|
|
AddComplexComponent( (BaseAddon) this, 1297, -2, -2, 6, 2641, -1, "", 1);// 11
|
|
AddComplexComponent( (BaseAddon) this, 272, -2, 3, 12, 1736, -1, "", 1);// 13
|
|
AddComplexComponent( (BaseAddon) this, 10332, -3, -1, 10, 1736, -1, "Cabinet", 1);// 15
|
|
AddComplexComponent( (BaseAddon) this, 1801, 0, -2, 2, 2333, -1, "", 1);// 17
|
|
AddComplexComponent( (BaseAddon) this, 10332, -3, 2, 10, 1736, -1, "Cabinet", 1);// 19
|
|
AddComplexComponent( (BaseAddon) this, 271, 0, -1, 11, 1736, -1, "", 1);// 21
|
|
AddComplexComponent( (BaseAddon) this, 10331, -2, -2, 10, 1736, -1, "Cabinet", 1);// 24
|
|
AddComplexComponent( (BaseAddon) this, 11526, -2, 4, 12, 1736, -1, "Fridgerator", 1);// 25
|
|
AddComplexComponent( (BaseAddon) this, 1801, -3, -2, 1, 2624, -1, "", 1);// 26
|
|
AddComplexComponent( (BaseAddon) this, 1801, 0, 2, 1, 1736, -1, "", 1);// 29
|
|
AddComplexComponent( (BaseAddon) this, 1801, 1, 1, 1, 1736, -1, "", 1);// 30
|
|
AddComplexComponent( (BaseAddon) this, 5622, -1, 2, 15, 0, -1, "Towel", 1);// 31
|
|
AddComplexComponent( (BaseAddon) this, 4100, -3, 1, 14, 2785, -1, "Faucet", 1);// 32
|
|
AddComplexComponent( (BaseAddon) this, 4609, -3, 0, 1, 2343, -1, "", 1);// 33
|
|
AddComplexComponent( (BaseAddon) this, 271, -1, -1, 11, 1736, -1, "", 1);// 35
|
|
AddComplexComponent( (BaseAddon) this, 3704, -3, 1, 10, 0, -1, "Sink", 1);// 36
|
|
AddComplexComponent( (BaseAddon) this, 10331, 2, -2, 12, 1736, -1, "Cabinet", 1);// 38
|
|
AddComplexComponent( (BaseAddon) this, 271, 3, -1, 11, 1736, -1, "", 1);// 39
|
|
AddComplexComponent( (BaseAddon) this, 1105, 1, -1, 13, 2361, -1, "", 1);// 40
|
|
AddComplexComponent( (BaseAddon) this, 10331, -1, -2, 10, 1736, -1, "Cabinet", 1);// 41
|
|
AddComplexComponent( (BaseAddon) this, 272, -2, 2, 12, 1736, -1, "", 1);// 43
|
|
AddComplexComponent( (BaseAddon) this, 272, -2, 1, 12, 1736, -1, "", 1);// 44
|
|
AddComplexComponent( (BaseAddon) this, 272, -2, 0, 12, 1736, -1, "", 1);// 45
|
|
AddComplexComponent( (BaseAddon) this, 4609, -3, 2, 1, 2394, -1, "", 1);// 46
|
|
AddComplexComponent( (BaseAddon) this, 4610, -3, 0, 1, 2394, -1, "", 1);// 47
|
|
AddComplexComponent( (BaseAddon) this, 4611, -3, 1, 1, 2394, -1, "", 1);// 48
|
|
AddComplexComponent( (BaseAddon) this, 4613, -2, -2, 0, 2641, -1, "", 1);// 49
|
|
AddComplexComponent( (BaseAddon) this, 4613, 2, -2, 0, 2641, -1, "", 1);// 50
|
|
AddComplexComponent( (BaseAddon) this, 4612, 3, -2, 0, 2641, -1, "", 1);// 51
|
|
AddComplexComponent( (BaseAddon) this, 4612, -1, -2, 0, 2641, -1, "", 1);// 52
|
|
AddComplexComponent( (BaseAddon) this, 4610, -3, -1, 1, 2343, -1, "", 1);// 53
|
|
AddComplexComponent( (BaseAddon) this, 1801, 1, 2, 1, 1736, -1, "", 1);// 54
|
|
AddComplexComponent( (BaseAddon) this, 1801, 1, -2, 2, 2333, -1, "", 1);// 55
|
|
AddComplexComponent( (BaseAddon) this, 10332, -3, 0, 10, 1736, -1, "Cabinet", 1);// 57
|
|
AddComplexComponent( (BaseAddon) this, 1105, 2, -1, 13, 2361, -1, "", 1);// 60
|
|
AddComplexComponent( (BaseAddon) this, 10331, 3, -2, 12, 1736, -1, "Cabinet", 1);// 61
|
|
AddComplexComponent( (BaseAddon) this, 678, -4, 1, 7, 1736, -1, "", 1);// 63
|
|
AddComplexComponent( (BaseAddon) this, 1297, -3, 1, 7, 2641, -1, "", 1);// 64
|
|
AddComplexComponent( (BaseAddon) this, 271, 3, -2, 1, 1736, -1, "", 1);// 65
|
|
AddComplexComponent( (BaseAddon) this, 1297, 2, -2, 6, 2641, -1, "", 1);// 66
|
|
AddComplexComponent( (BaseAddon) this, 1297, -3, 0, 7, 2641, -1, "", 1);// 67
|
|
AddComplexComponent( (BaseAddon) this, 1297, -1, -2, 6, 2641, -1, "", 1);// 68
|
|
AddComplexComponent( (BaseAddon) this, 1297, 3, -2, 6, 2641, -1, "", 1);// 69
|
|
AddComplexComponent( (BaseAddon) this, 674, 0, -3, 5, 1736, -1, "", 1);// 70
|
|
AddComplexComponent( (BaseAddon) this, 674, 1, -3, 5, 1736, -1, "", 1);// 71
|
|
AddComplexComponent( (BaseAddon) this, 1297, -3, -1, 7, 2641, -1, "", 1);// 72
|
|
AddComplexComponent( (BaseAddon) this, 1297, -3, 2, 7, 2641, -1, "", 1);// 74
|
|
AddComplexComponent( (BaseAddon) this, 1801, 4, 3, 3, 1736, -1, "", 1);// 76
|
|
AddComplexComponent( (BaseAddon) this, 4497, 4, 1, 1, 1736, -1, "", 1);// 77
|
|
AddComplexComponent( (BaseAddon) this, 2886, 4, 3, 13, 2953, -1, "", 1);// 80
|
|
AddComplexComponent( (BaseAddon) this, 1801, 4, -2, 11, 1736, -1, "", 1);// 82
|
|
AddComplexComponent( (BaseAddon) this, 1801, 4, -2, 6, 1736, -1, "", 1);// 83
|
|
AddComplexComponent( (BaseAddon) this, 1801, 4, -2, 1, 1736, -1, "", 1);// 84
|
|
AddComplexComponent( (BaseAddon) this, 1801, 4, 3, 8, 1736, -1, "", 1);// 85
|
|
AddComplexComponent( (BaseAddon) this, 4497, 4, -1, 1, 1736, -1, "", 1);// 86
|
|
AddComplexComponent( (BaseAddon) this, 4497, 4, 2, 1, 1736, -1, "", 1);// 88
|
|
AddComplexComponent( (BaseAddon) this, 4497, 4, 0, 1, 1736, -1, "", 1);// 89
|
|
|
|
}
|
|
|
|
public drkwoodkitchenAddon( 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 drkwoodkitchenAddonDeed : BaseAddonDeed
|
|
{
|
|
public override BaseAddon Addon
|
|
{
|
|
get
|
|
{
|
|
return new drkwoodkitchenAddon();
|
|
}
|
|
}
|
|
|
|
[Constructable]
|
|
public drkwoodkitchenAddonDeed()
|
|
{
|
|
Name = "drkwoodkitchen";
|
|
}
|
|
|
|
public drkwoodkitchenAddonDeed( 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();
|
|
}
|
|
}
|
|
} |