153 lines
5.4 KiB
C#
153 lines
5.4 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 DarkYardAddon : BaseAddon
|
|
{
|
|
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
|
{476, -4, -5, 3}, {479, -5, -3, 3}, {476, -2, -5, 3}// 1 2 3
|
|
, {474, -5, -5, 13}, {474, -5, -5, 0}, {477, -1, -5, 3}// 4 5 7
|
|
, {478, -5, -4, 3}, {479, -5, 1, 3}, {477, -3, -5, 3}// 8 10 11
|
|
, {489, -4, -5, 0}, {489, -3, -5, 0}, {490, -5, 1, 0}// 12 13 14
|
|
, {490, -5, 0, 0}, {490, -5, -1, 0}, {490, -5, -2, 0}// 15 16 17
|
|
, {490, -5, -3, 0}, {490, -5, -4, 0}, {478, -5, -2, 3}// 18 19 20
|
|
, {479, -5, -1, 3}, {478, -5, 0, 3}, {489, -2, -5, 0}// 21 24 25
|
|
, {4632, -1, -4, 0}, {479, -5, 3, 3}, {466, -3, 5, 0}// 27 28 29
|
|
, {477, -3, 5, 3}, {478, -5, 2, 3}, {479, -5, 5, 3}// 30 32 33
|
|
, {489, -4, 5, 0}, {490, -5, 5, 0}, {476, -4, 5, 3}// 34 35 36
|
|
, {490, -5, 4, 0}, {490, -5, 3, 0}, {489, -3, 5, 0}// 37 38 39
|
|
, {490, -5, 2, 0}, {478, -5, 4, 3}, {474, -5, 5, 13}// 40 41 43
|
|
, {474, -3, 5, 15}, {476, 2, -5, 3}, {479, 5, 1, 3}// 44 45 46
|
|
, {477, 5, -5, 3}, {476, 0, -5, 3}, {477, 3, -5, 3}// 47 48 49
|
|
, {479, 5, -3, 3}, {476, 4, -5, 3}, {489, 2, -5, 0}// 50 51 52
|
|
, {478, 5, 0, 3}, {489, 0, -5, 0}, {489, 3, -5, 0}// 53 54 57
|
|
, {478, 5, -4, 3}, {489, 5, -5, 0}, {474, 5, -5, 13}// 58 60 61
|
|
, {479, 5, -1, 3}, {478, 5, -2, 3}, {489, 1, -5, 0}// 62 63 64
|
|
, {490, 5, -3, 0}, {490, 5, -4, 0}, {477, 1, -5, 3}// 65 66 67
|
|
, {490, 5, 1, 0}, {490, 5, 0, 0}, {490, 5, -1, 0}// 68 69 70
|
|
, {490, 5, -2, 0}, {489, 4, -5, 0}, {4632, 1, -4, 0}// 71 72 74
|
|
, {2869, 0, -4, 0}, {478, 5, 4, 3}, {474, 5, 5, 14}// 75 78 79
|
|
, {478, 5, 2, 3}, {479, 5, 3, 3}, {489, 5, 5, 0}// 80 81 82
|
|
, {489, 4, 5, 0}, {476, 4, 5, 3}, {475, 5, 5, 3}// 83 84 85
|
|
, {491, 3, 5, 0}, {490, 5, 5, 0}, {490, 5, 4, 0}// 86 87 88
|
|
, {490, 5, 3, 0}, {490, 5, 2, 0}, {474, 3, 5, 0}// 89 90 92
|
|
, {474, 3, 5, 8}, {474, 3, 5, 12}// 93 94
|
|
};
|
|
|
|
|
|
|
|
public override BaseAddonDeed Deed
|
|
{
|
|
get
|
|
{
|
|
return new DarkYardAddonDeed();
|
|
}
|
|
}
|
|
|
|
[ Constructable ]
|
|
public DarkYardAddon()
|
|
{
|
|
|
|
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, 489, -1, -5, 0, 2856, -1, "", 1);// 6
|
|
AddComplexComponent( (BaseAddon) this, 14678, -5, 0, 0, 0, 1, "", 1);// 9
|
|
AddComplexComponent( (BaseAddon) this, 14678, -5, -4, 0, 0, 1, "", 1);// 22
|
|
AddComplexComponent( (BaseAddon) this, 491, -5, -5, 0, 2856, -1, "", 1);// 23
|
|
AddComplexComponent( (BaseAddon) this, 14662, -4, -5, 0, 0, 1, "", 1);// 26
|
|
AddComplexComponent( (BaseAddon) this, 14678, -5, 4, 0, 0, 1, "", 1);// 31
|
|
AddComplexComponent( (BaseAddon) this, 14662, -4, 5, 0, 0, 1, "", 1);// 42
|
|
AddComplexComponent( (BaseAddon) this, 14662, 4, -5, 0, 0, 1, "", 1);// 55
|
|
AddComplexComponent( (BaseAddon) this, 14662, 0, -5, 0, 0, 1, "", 1);// 56
|
|
AddComplexComponent( (BaseAddon) this, 14678, 5, -4, 0, 0, 1, "", 1);// 59
|
|
AddComplexComponent( (BaseAddon) this, 14678, 5, 0, 0, 0, 1, "", 1);// 73
|
|
AddComplexComponent( (BaseAddon) this, 6230, 0, -4, 8, 0, 1, "", 1);// 76
|
|
AddComplexComponent( (BaseAddon) this, 14678, 5, 4, 0, 0, 1, "", 1);// 77
|
|
AddComplexComponent( (BaseAddon) this, 14662, 4, 5, 0, 0, 1, "", 1);// 91
|
|
|
|
}
|
|
|
|
public DarkYardAddon( 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 DarkYardAddonDeed : BaseAddonDeed
|
|
{
|
|
public override BaseAddon Addon
|
|
{
|
|
get
|
|
{
|
|
return new DarkYardAddon();
|
|
}
|
|
}
|
|
|
|
[Constructable]
|
|
public DarkYardAddonDeed()
|
|
{
|
|
Name = "DarkYard";
|
|
}
|
|
|
|
public DarkYardAddonDeed( 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();
|
|
}
|
|
}
|
|
} |