170 lines
7.2 KiB
C#
170 lines
7.2 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 LargeKitchenWEAddon : BaseAddon
|
|
{
|
|
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
|
{1824, -3, -3, 0}, {4104, -2, -3, 5}, {4100, -2, -3, 11}// 4 12 13
|
|
, {7979, -3, 0, 6}, {2541, -3, 0, 7}, {2416, -3, 0, 13}// 14 15 16
|
|
, {7979, -3, 1, 6}, {14133, -3, 1, 9}, {2545, -3, 1, 7}// 29 30 31
|
|
, {4323, -2, 4, 13}, {4157, -2, 4, 15}, {2529, -2, 4, 7}// 32 33 34
|
|
, {2590, -2, 4, 0}, {11599, 0, 0, 5}, {5111, 1, 0, 5}// 35 44 45
|
|
, {3778, 1, 0, 7}, {6870, 0, 1, 5}, {8068, 1, 1, 5}// 46 61 62
|
|
, {8065, 1, 1, 5}, {2450, -1, 4, 13}, {7711, -1, 4, 16}// 63 64 65
|
|
, {5624, 1, 4, 14}, {5624, 1, 4, 15}, {2528, -1, 4, 7}// 67 68 69
|
|
, {2431, 0, 4, 7}, {2541, 1, 4, 6}, {2519, 1, 4, 0}// 70 71 72
|
|
, {2519, 1, 4, 1}, {2519, 1, 4, 2}, {2519, 1, 4, 3}// 73 74 75
|
|
, {6274, 0, 4, 0}, {4166, -1, 4, 0}, {3137, 3, 4, 0}// 76 77 79
|
|
, {3135, 3, 4, 0}// 80
|
|
};
|
|
|
|
|
|
|
|
public override BaseAddonDeed Deed
|
|
{
|
|
get
|
|
{
|
|
return new LargeKitchenWEAddonDeed();
|
|
}
|
|
}
|
|
|
|
[ Constructable ]
|
|
public LargeKitchenWEAddon()
|
|
{
|
|
|
|
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, 1824, -3, 0, 0, 1355, -1, "", 1);// 1
|
|
AddComplexComponent( (BaseAddon) this, 1824, -3, -1, 0, 1355, -1, "", 1);// 2
|
|
AddComplexComponent( (BaseAddon) this, 1824, -3, -2, 0, 1355, -1, "", 1);// 3
|
|
AddComplexComponent( (BaseAddon) this, 1824, -3, -3, 5, 1355, -1, "", 1);// 5
|
|
AddComplexComponent( (BaseAddon) this, 1824, -3, -3, 10, 1355, -1, "", 1);// 6
|
|
AddComplexComponent( (BaseAddon) this, 1824, -3, -3, 15, 1355, -1, "", 1);// 7
|
|
AddComplexComponent( (BaseAddon) this, 1824, -2, -3, 0, 1355, -1, "", 1);// 8
|
|
AddComplexComponent( (BaseAddon) this, 10331, -2, -3, 13, 1355, -1, "Cupboard", 1);// 9
|
|
AddComplexComponent( (BaseAddon) this, 10332, -3, -2, 13, 1355, -1, "Cupboard", 1);// 10
|
|
AddComplexComponent( (BaseAddon) this, 10332, -3, -1, 13, 1355, -1, "Cupboard", 1);// 11
|
|
AddComplexComponent( (BaseAddon) this, 1824, -3, 3, 0, 1355, -1, "", 1);// 17
|
|
AddComplexComponent( (BaseAddon) this, 1824, -3, 2, 0, 1355, -1, "", 1);// 18
|
|
AddComplexComponent( (BaseAddon) this, 1824, -3, 1, 0, 1355, -1, "", 1);// 19
|
|
AddComplexComponent( (BaseAddon) this, 10332, -3, 2, 13, 1355, -1, "Cupboard", 1);// 20
|
|
AddComplexComponent( (BaseAddon) this, 10332, -3, 3, 13, 1355, -1, "Cupboard", 1);// 21
|
|
AddComplexComponent( (BaseAddon) this, 1824, -3, 4, 0, 1355, -1, "", 1);// 22
|
|
AddComplexComponent( (BaseAddon) this, 1824, -3, 4, 5, 1355, -1, "", 1);// 23
|
|
AddComplexComponent( (BaseAddon) this, 1824, -3, 4, 10, 1355, -1, "", 1);// 24
|
|
AddComplexComponent( (BaseAddon) this, 1824, -3, 4, 15, 1355, -1, "", 1);// 25
|
|
AddComplexComponent( (BaseAddon) this, 1225, -2, 4, 8, 1355, -1, "", 1);// 26
|
|
AddComplexComponent( (BaseAddon) this, 1225, -2, 4, 14, 1355, -1, "", 1);// 27
|
|
AddComplexComponent( (BaseAddon) this, 1225, -2, 4, 0, 1355, -1, "", 1);// 28
|
|
AddComplexComponent( (BaseAddon) this, 1824, -1, -3, 0, 1355, -1, "", 1);// 36
|
|
AddComplexComponent( (BaseAddon) this, 1824, 0, -3, 0, 1355, -1, "", 1);// 37
|
|
AddComplexComponent( (BaseAddon) this, 1824, 0, 0, 0, 1355, -1, "", 1);// 38
|
|
AddComplexComponent( (BaseAddon) this, 1824, 1, 0, 0, 1355, -1, "", 1);// 39
|
|
AddComplexComponent( (BaseAddon) this, 10331, -1, -3, 13, 1355, -1, "Cupboard", 1);// 40
|
|
AddComplexComponent( (BaseAddon) this, 10331, 0, -3, 13, 1355, -1, "Cupboard", 1);// 41
|
|
AddComplexComponent( (BaseAddon) this, 11525, 1, -3, 0, 1355, -1, "Cold Storage", 1);// 42
|
|
AddComplexComponent( (BaseAddon) this, 5623, -1, -2, 2, 0, -1, "Dishtowel", 1);// 43
|
|
AddComplexComponent( (BaseAddon) this, 1824, 1, 1, 0, 1355, -1, "", 1);// 47
|
|
AddComplexComponent( (BaseAddon) this, 1824, 0, 1, 0, 1355, -1, "", 1);// 48
|
|
AddComplexComponent( (BaseAddon) this, 1824, 2, 4, 0, 1355, -1, "", 1);// 49
|
|
AddComplexComponent( (BaseAddon) this, 1824, 2, 4, 5, 1355, -1, "", 1);// 50
|
|
AddComplexComponent( (BaseAddon) this, 1824, 2, 4, 10, 1355, -1, "", 1);// 51
|
|
AddComplexComponent( (BaseAddon) this, 1225, -1, 4, 8, 1355, -1, "", 1);// 52
|
|
AddComplexComponent( (BaseAddon) this, 1225, 0, 4, 8, 1355, -1, "", 1);// 53
|
|
AddComplexComponent( (BaseAddon) this, 1225, 1, 4, 8, 1355, -1, "", 1);// 54
|
|
AddComplexComponent( (BaseAddon) this, 1225, -1, 4, 14, 1355, -1, "", 1);// 55
|
|
AddComplexComponent( (BaseAddon) this, 1225, 0, 4, 14, 1355, -1, "", 1);// 56
|
|
AddComplexComponent( (BaseAddon) this, 1225, 1, 4, 14, 1355, -1, "", 1);// 57
|
|
AddComplexComponent( (BaseAddon) this, 1225, -1, 4, 0, 1355, -1, "", 1);// 58
|
|
AddComplexComponent( (BaseAddon) this, 1225, 0, 4, 0, 1355, -1, "", 1);// 59
|
|
AddComplexComponent( (BaseAddon) this, 1225, 1, 4, 0, 1355, -1, "", 1);// 60
|
|
AddComplexComponent( (BaseAddon) this, 2430, 0, 4, 13, 0, -1, "", 2);// 66
|
|
AddComplexComponent( (BaseAddon) this, 3130, 3, 4, 0, 1503, -1, "", 1);// 78
|
|
|
|
}
|
|
|
|
public LargeKitchenWEAddon( 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 LargeKitchenWEAddonDeed : BaseAddonDeed
|
|
{
|
|
public override BaseAddon Addon
|
|
{
|
|
get
|
|
{
|
|
return new LargeKitchenWEAddon();
|
|
}
|
|
}
|
|
|
|
[Constructable]
|
|
public LargeKitchenWEAddonDeed()
|
|
{
|
|
Name = "LargeKitchenWE";
|
|
}
|
|
|
|
public LargeKitchenWEAddonDeed( 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();
|
|
}
|
|
}
|
|
} |