162 lines
6.5 KiB
C#
162 lines
6.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 sleepforeverAddon : BaseAddon
|
|
{
|
|
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
|
{4306, 3, -3, 0}, {4311, 1, 2, 3}, {4650, 1, 2, 1}// 1 5 8
|
|
, {3794, -1, 0, 0}, {7206, 1, 1, 0}, {4653, 2, 1, 3}// 12 21 22
|
|
, {4651, 0, 1, 3}, {7203, 1, 2, 0}, {3811, 1, -1, 0}// 26 32 34
|
|
, {5701, 2, 0, 0}, {7040, -1, -1, 0}, {7205, 0, 1, 0}// 37 42 45
|
|
, {7202, 2, 2, 0}, {7204, 0, 2, 0}, {3791, -1, 3, 0}// 47 49 50
|
|
, {4654, 0, 0, 0}, {7207, 2, 1, 0}, {3814, -2, 1, 0}// 52 54 59
|
|
};
|
|
|
|
|
|
|
|
public override BaseAddonDeed Deed
|
|
{
|
|
get
|
|
{
|
|
return new sleepforeverAddonDeed();
|
|
}
|
|
}
|
|
|
|
[ Constructable ]
|
|
public sleepforeverAddon()
|
|
{
|
|
|
|
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, 2760, 0, -1, 0, 298, -1, "", 1);// 2
|
|
AddComplexComponent( (BaseAddon) this, 2792, 0, -2, 0, 298, -1, "", 1);// 3
|
|
AddComplexComponent( (BaseAddon) this, 2793, 3, -1, 0, 298, -1, "", 1);// 4
|
|
AddComplexComponent( (BaseAddon) this, 2791, -2, 3, 0, 298, -1, "", 1);// 6
|
|
AddComplexComponent( (BaseAddon) this, 2795, 2, 2, 0, 298, -1, "", 1);// 7
|
|
AddComplexComponent( (BaseAddon) this, 2795, -1, 3, 0, 298, -1, "", 1);// 9
|
|
AddComplexComponent( (BaseAddon) this, 2794, 1, 4, 0, 298, -1, "", 1);// 10
|
|
AddComplexComponent( (BaseAddon) this, 2794, 0, 4, 0, 298, -1, "", 1);// 11
|
|
AddComplexComponent( (BaseAddon) this, 2787, 3, 4, 0, 298, -1, "", 1);// 13
|
|
AddComplexComponent( (BaseAddon) this, 2795, 0, 2, 0, 298, -1, "", 1);// 14
|
|
AddComplexComponent( (BaseAddon) this, 2795, 1, 1, 0, 298, -1, "", 1);// 15
|
|
AddComplexComponent( (BaseAddon) this, 2795, 2, 0, 0, 298, -1, "", 1);// 16
|
|
AddComplexComponent( (BaseAddon) this, 2795, -1, 1, 0, 298, -1, "", 1);// 17
|
|
AddComplexComponent( (BaseAddon) this, 2760, 0, 3, 0, 298, -1, "", 1);// 18
|
|
AddComplexComponent( (BaseAddon) this, 2791, -2, 0, 0, 298, -1, "", 1);// 19
|
|
AddComplexComponent( (BaseAddon) this, 2791, -2, 2, 0, 298, -1, "", 1);// 20
|
|
AddComplexComponent( (BaseAddon) this, 2760, 0, 1, 0, 298, -1, "", 1);// 23
|
|
AddComplexComponent( (BaseAddon) this, 2792, -1, -2, 0, 298, -1, "", 1);// 24
|
|
AddComplexComponent( (BaseAddon) this, 2791, -2, 1, 0, 298, -1, "", 1);// 25
|
|
AddComplexComponent( (BaseAddon) this, 2792, 1, -2, 0, 298, -1, "", 1);// 27
|
|
AddComplexComponent( (BaseAddon) this, 2760, 2, 1, 0, 298, -1, "", 1);// 28
|
|
AddComplexComponent( (BaseAddon) this, 2794, -1, 4, 0, 298, -1, "", 1);// 29
|
|
AddComplexComponent( (BaseAddon) this, 2792, 2, -2, 0, 298, -1, "", 1);// 30
|
|
AddComplexComponent( (BaseAddon) this, 2795, -1, -1, 0, 298, -1, "", 1);// 31
|
|
AddComplexComponent( (BaseAddon) this, 2760, -1, 2, 0, 298, -1, "", 1);// 33
|
|
AddComplexComponent( (BaseAddon) this, 2849, 2, -1, 0, 233, -1, "", 1);// 35
|
|
AddComplexComponent( (BaseAddon) this, 2849, -1, -1, 0, 233, -1, "", 1);// 36
|
|
AddComplexComponent( (BaseAddon) this, 2793, 3, 0, 0, 298, -1, "", 1);// 38
|
|
AddComplexComponent( (BaseAddon) this, 2795, 1, -1, 0, 298, -1, "", 1);// 39
|
|
AddComplexComponent( (BaseAddon) this, 2793, 3, 2, 0, 298, -1, "", 1);// 40
|
|
AddComplexComponent( (BaseAddon) this, 2793, 3, 3, 0, 298, -1, "", 1);// 41
|
|
AddComplexComponent( (BaseAddon) this, 2760, 1, 0, 0, 298, -1, "", 1);// 43
|
|
AddComplexComponent( (BaseAddon) this, 2760, 2, -1, 0, 298, -1, "", 1);// 44
|
|
AddComplexComponent( (BaseAddon) this, 2795, 0, 0, 0, 298, -1, "", 1);// 46
|
|
AddComplexComponent( (BaseAddon) this, 2795, 1, 3, 0, 298, -1, "", 1);// 48
|
|
AddComplexComponent( (BaseAddon) this, 2793, 3, 1, 0, 298, -1, "", 1);// 51
|
|
AddComplexComponent( (BaseAddon) this, 2760, 1, 2, 0, 298, -1, "", 1);// 53
|
|
AddComplexComponent( (BaseAddon) this, 2790, 3, -2, 0, 298, -1, "", 1);// 55
|
|
AddComplexComponent( (BaseAddon) this, 2791, -2, -1, 0, 298, -1, "", 1);// 56
|
|
AddComplexComponent( (BaseAddon) this, 2760, 2, 3, 0, 298, -1, "", 1);// 57
|
|
AddComplexComponent( (BaseAddon) this, 2760, -1, 0, 0, 298, -1, "", 1);// 58
|
|
AddComplexComponent( (BaseAddon) this, 2789, -2, 4, 0, 298, -1, "", 1);// 60
|
|
AddComplexComponent( (BaseAddon) this, 2794, 2, 4, 0, 298, -1, "", 1);// 61
|
|
AddComplexComponent( (BaseAddon) this, 2788, -2, -2, 0, 298, -1, "", 1);// 62
|
|
|
|
}
|
|
|
|
public sleepforeverAddon( 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 sleepforeverAddonDeed : BaseAddonDeed
|
|
{
|
|
public override BaseAddon Addon
|
|
{
|
|
get
|
|
{
|
|
return new sleepforeverAddon();
|
|
}
|
|
}
|
|
|
|
[Constructable]
|
|
public sleepforeverAddonDeed()
|
|
{
|
|
Name = "sleepforever";
|
|
}
|
|
|
|
public sleepforeverAddonDeed( 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();
|
|
}
|
|
}
|
|
} |