143 lines
5.1 KiB
C#
143 lines
5.1 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 WhiteRoseSeatAddon : BaseAddon
|
|
{
|
|
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
|
{3312, -2, 2, 0}, {7950, -1, 2, 18}, {7953, 0, 2, 18}// 7 9 12
|
|
, {7954, -1, 2, 18}, {7952, -2, 2, 18}, {3308, 1, 2, 0}// 16 17 19
|
|
, {7954, 1, 0, 19}, {3312, 1, 2, 0}, {7949, 1, 0, 19}// 20 21 29
|
|
, {7951, 2, 2, 30}, {7952, 1, -1, 19}, {3308, 3, 1, 21}// 31 33 37
|
|
};
|
|
|
|
|
|
|
|
public override BaseAddonDeed Deed
|
|
{
|
|
get
|
|
{
|
|
return new WhiteRoseSeatAddonDeed();
|
|
}
|
|
}
|
|
|
|
[ Constructable ]
|
|
public WhiteRoseSeatAddon()
|
|
{
|
|
|
|
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, 2861, 0, 2, 0, 1153, -1, "", 1);// 1
|
|
AddComplexComponent( (BaseAddon) this, 2861, -1, 2, 0, 1153, -1, "", 1);// 2
|
|
AddComplexComponent( (BaseAddon) this, 2878, -1, 2, 12, 1153, -1, "", 1);// 3
|
|
AddComplexComponent( (BaseAddon) this, 2861, -2, 2, 0, 1153, -1, "", 1);// 4
|
|
AddComplexComponent( (BaseAddon) this, 2878, -2, 2, 12, 1153, -1, "", 1);// 5
|
|
AddComplexComponent( (BaseAddon) this, 2878, 0, 2, 12, 1153, -1, "", 1);// 6
|
|
AddComplexComponent( (BaseAddon) this, 3195, -2, 2, 18, 34, -1, "", 1);// 8
|
|
AddComplexComponent( (BaseAddon) this, 3196, -1, 2, 18, 34, -1, "", 1);// 10
|
|
AddComplexComponent( (BaseAddon) this, 10342, 0, 2, 0, 1153, -1, "", 1);// 11
|
|
AddComplexComponent( (BaseAddon) this, 10342, -3, 2, 0, 1153, -1, "", 1);// 13
|
|
AddComplexComponent( (BaseAddon) this, 3195, 0, 2, 18, 34, -1, "", 1);// 14
|
|
AddComplexComponent( (BaseAddon) this, 3195, -2, 3, 14, 34, -1, "", 1);// 15
|
|
AddComplexComponent( (BaseAddon) this, 2860, 1, 0, 0, 1153, -1, "", 1);// 18
|
|
AddComplexComponent( (BaseAddon) this, 2878, 1, -1, 13, 1153, -1, "", 1);// 22
|
|
AddComplexComponent( (BaseAddon) this, 2878, 1, 0, 13, 1153, -1, "", 1);// 23
|
|
AddComplexComponent( (BaseAddon) this, 2878, 2, 2, 24, 1153, -1, "", 1);// 24
|
|
AddComplexComponent( (BaseAddon) this, 3196, 2, -1, 15, 34, -1, "", 1);// 25
|
|
AddComplexComponent( (BaseAddon) this, 3196, 1, 3, 16, 34, -1, "", 1);// 26
|
|
AddComplexComponent( (BaseAddon) this, 3196, 1, 2, 17, 34, -1, "", 1);// 27
|
|
AddComplexComponent( (BaseAddon) this, 3196, 1, 0, 19, 34, -1, "", 1);// 28
|
|
AddComplexComponent( (BaseAddon) this, 3195, 1, 2, 8, 34, -1, "", 1);// 30
|
|
AddComplexComponent( (BaseAddon) this, 3196, 2, 2, 30, 34, -1, "", 1);// 32
|
|
AddComplexComponent( (BaseAddon) this, 3195, 1, -1, 19, 34, -1, "", 1);// 34
|
|
AddComplexComponent( (BaseAddon) this, 10338, 1, 1, 0, 1153, -1, "", 1);// 35
|
|
AddComplexComponent( (BaseAddon) this, 2860, 1, -1, 0, 1153, -1, "", 1);// 36
|
|
AddComplexComponent( (BaseAddon) this, 2860, 1, 1, 0, 1153, -1, "", 1);// 38
|
|
AddComplexComponent( (BaseAddon) this, 10338, 1, -2, 0, 1153, -1, "", 1);// 39
|
|
|
|
}
|
|
|
|
public WhiteRoseSeatAddon( 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 WhiteRoseSeatAddonDeed : BaseAddonDeed
|
|
{
|
|
public override BaseAddon Addon
|
|
{
|
|
get
|
|
{
|
|
return new WhiteRoseSeatAddon();
|
|
}
|
|
}
|
|
|
|
[Constructable]
|
|
public WhiteRoseSeatAddonDeed()
|
|
{
|
|
Name = "WhiteRoseSeat";
|
|
}
|
|
|
|
public WhiteRoseSeatAddonDeed( 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();
|
|
}
|
|
}
|
|
} |