170 lines
7.3 KiB
C#
170 lines
7.3 KiB
C#
|
|
////////////////////////////////////////
|
|
// //
|
|
// Generated by CEO's YAAAG - Ver 2 //
|
|
// (Yet Another Arya Addon Generator) //
|
|
// Modified by Hammerhand for //
|
|
// SA & High Seas content //
|
|
// //
|
|
////////////////////////////////////////
|
|
using System;
|
|
using Server;
|
|
using Server.Items;
|
|
|
|
namespace TanKitchenSet
|
|
{
|
|
public class TanKitchenSetAddon : BaseAddon
|
|
{
|
|
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
|
{2534, 2, 0, 24}, {2585, 2, 0, 22}, {18320, 2, 1, 16}// 11 12 58
|
|
};
|
|
|
|
|
|
|
|
public override BaseAddonDeed Deed
|
|
{
|
|
get
|
|
{
|
|
return new TanKitchenSetAddonDeed();
|
|
}
|
|
}
|
|
|
|
[ Constructable ]
|
|
public TanKitchenSetAddon()
|
|
{
|
|
|
|
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, 0, 17, 1804, -1, "", 1);// 1
|
|
AddComplexComponent( (BaseAddon) this, 1801, -2, 0, 17, 1804, -1, "", 1);// 2
|
|
AddComplexComponent( (BaseAddon) this, 1801, -1, 0, 17, 1804, -1, "", 1);// 3
|
|
AddComplexComponent( (BaseAddon) this, 1801, 0, 0, 17, 1804, -1, "", 1);// 4
|
|
AddComplexComponent( (BaseAddon) this, 4323, 1, 0, 20, 1153, -1, "Sink", 1);// 5
|
|
AddComplexComponent( (BaseAddon) this, 3625, 2, 0, 25, 0, -1, "Dawn", 1);// 6
|
|
AddComplexComponent( (BaseAddon) this, 3607, 1, 0, 27, 55, -1, "sponge", 1);// 7
|
|
AddComplexComponent( (BaseAddon) this, 9231, 2, 1, 11, 1150, -1, "door", 1);// 8
|
|
AddComplexComponent( (BaseAddon) this, 9231, 1, 1, 11, 1150, -1, "door", 1);// 9
|
|
AddComplexComponent( (BaseAddon) this, 4100, 1, 0, 25, 0, -1, "faucet", 1);// 10
|
|
AddComplexComponent( (BaseAddon) this, 677, 2, -1, 23, 1150, -1, "", 1);// 13
|
|
AddComplexComponent( (BaseAddon) this, 677, 1, -1, 23, 1150, -1, "", 1);// 14
|
|
AddComplexComponent( (BaseAddon) this, 676, 2, -1, 16, 1150, -1, "", 1);// 15
|
|
AddComplexComponent( (BaseAddon) this, 1801, 2, 0, 16, 1150, -1, "Sink", 1);// 16
|
|
AddComplexComponent( (BaseAddon) this, 1801, 1, 0, 16, 1150, -1, "Sink", 1);// 17
|
|
AddComplexComponent( (BaseAddon) this, 1801, 1, 0, 18, 1150, -1, "Sink", 1);// 18
|
|
AddComplexComponent( (BaseAddon) this, 1801, 2, 0, 18, 1150, -1, "Sink", 1);// 19
|
|
AddComplexComponent( (BaseAddon) this, 1801, 3, 0, 17, 1804, -1, "", 1);// 20
|
|
AddComplexComponent( (BaseAddon) this, 1801, 4, 0, 17, 1804, -1, "", 1);// 21
|
|
AddComplexComponent( (BaseAddon) this, 1179, -5, 0, 10, 1150, -1, "Refrigerator", 1);// 22
|
|
AddComplexComponent( (BaseAddon) this, 1801, -5, 0, 5, 1150, -1, "Refrigerator", 1);// 23
|
|
AddComplexComponent( (BaseAddon) this, 1801, -5, 0, 11, 1150, -1, "Refrigerator", 1);// 24
|
|
AddComplexComponent( (BaseAddon) this, 1801, -5, 0, 0, 1150, -1, "Refrigerator", 1);// 25
|
|
AddComplexComponent( (BaseAddon) this, 7833, -4, 1, 11, 962, -1, "Refrigerator", 1);// 26
|
|
AddComplexComponent( (BaseAddon) this, 7833, -4, 1, 17, 962, -1, "Refrigerator", 1);// 27
|
|
AddComplexComponent( (BaseAddon) this, 1801, 5, 0, 17, 1153, -1, "", 1);// 28
|
|
AddComplexComponent( (BaseAddon) this, 1801, 5, 0, 22, 1153, -1, "", 1);// 29
|
|
AddComplexComponent( (BaseAddon) this, 1801, 5, 0, 28, 1153, -1, "", 1);// 30
|
|
AddComplexComponent( (BaseAddon) this, 2760, 5, 0, 27, 962, -1, "", 1);// 31
|
|
AddComplexComponent( (BaseAddon) this, 4177, 5, 1, 31, 962, -1, "", 1);// 32
|
|
AddComplexComponent( (BaseAddon) this, 4177, 5, 1, 23, 962, -1, "", 1);// 33
|
|
AddComplexComponent( (BaseAddon) this, 9230, -3, 1, 15, 1, -1, "door", 1);// 34
|
|
AddComplexComponent( (BaseAddon) this, 7027, -4, 1, 25, 962, -1, "Burner", 1);// 35
|
|
AddComplexComponent( (BaseAddon) this, 678, -5, 1, 25, 1150, -1, "Oven", 1);// 36
|
|
AddComplexComponent( (BaseAddon) this, 1801, -4, 1, 20, 1150, -1, "Oven", 1);// 37
|
|
AddComplexComponent( (BaseAddon) this, 1801, -4, 1, 15, 1150, -1, "Oven", 1);// 38
|
|
AddComplexComponent( (BaseAddon) this, 4234, -4, 2, 32, 962, -1, "dial", 1);// 39
|
|
AddComplexComponent( (BaseAddon) this, 9230, -3, 2, 15, 1, -1, "door", 1);// 40
|
|
AddComplexComponent( (BaseAddon) this, 7027, -4, 2, 25, 962, -1, "Burner", 1);// 41
|
|
AddComplexComponent( (BaseAddon) this, 676, -5, 2, 15, 1150, -1, "Oven", 1);// 42
|
|
AddComplexComponent( (BaseAddon) this, 678, -5, 2, 25, 1150, -1, "Oven", 1);// 43
|
|
AddComplexComponent( (BaseAddon) this, 1801, -4, 2, 20, 1150, -1, "Oven", 1);// 44
|
|
AddComplexComponent( (BaseAddon) this, 1801, -4, 2, 15, 1150, -1, "Oven", 1);// 45
|
|
AddComplexComponent( (BaseAddon) this, 1282, -3, 0, 22, 1804, -1, "", 1);// 46
|
|
AddComplexComponent( (BaseAddon) this, 1282, -2, 0, 22, 1804, -1, "", 1);// 47
|
|
AddComplexComponent( (BaseAddon) this, 1282, -1, 0, 22, 1804, -1, "", 1);// 48
|
|
AddComplexComponent( (BaseAddon) this, 1282, 0, 0, 22, 1804, -1, "", 1);// 49
|
|
AddComplexComponent( (BaseAddon) this, 1282, 3, 0, 22, 1804, -1, "", 1);// 50
|
|
AddComplexComponent( (BaseAddon) this, 1282, 4, 0, 22, 1804, -1, "", 1);// 51
|
|
AddComplexComponent( (BaseAddon) this, 2604, -3, 0, 24, 1804, -1, "", 1);// 52
|
|
AddComplexComponent( (BaseAddon) this, 2604, -2, 0, 25, 1804, -1, "", 1);// 53
|
|
AddComplexComponent( (BaseAddon) this, 2604, -1, 0, 26, 1804, -1, "", 1);// 54
|
|
AddComplexComponent( (BaseAddon) this, 2604, 0, 0, 27, 1804, -1, "", 1);// 55
|
|
AddComplexComponent( (BaseAddon) this, 2604, 3, 0, 25, 1804, -1, "", 1);// 56
|
|
AddComplexComponent( (BaseAddon) this, 2604, 4, 0, 26, 1804, -1, "", 1);// 57
|
|
|
|
}
|
|
|
|
public TanKitchenSetAddon( 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 TanKitchenSetAddonDeed : BaseAddonDeed
|
|
{
|
|
public override BaseAddon Addon
|
|
{
|
|
get
|
|
{
|
|
return new TanKitchenSetAddon();
|
|
}
|
|
}
|
|
|
|
[Constructable]
|
|
public TanKitchenSetAddonDeed()
|
|
{
|
|
Name = "TanKitchenSet";
|
|
}
|
|
|
|
public TanKitchenSetAddonDeed( 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();
|
|
}
|
|
}
|
|
} |