137 lines
4.4 KiB
C#
137 lines
4.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 RedRugSmAddon : BaseAddon
|
|
{
|
|
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
|
{2791, -3, 2, 0}, {2795, -1, 0, 0}, {2795, 2, 1, 0}// 1 2 3
|
|
, {2795, -2, 1, 0}, {2794, 1, 3, 0}, {2792, -1, -3, 0}// 4 5 6
|
|
, {2795, 1, 0, 0}, {2795, -2, -1, 0}, {2792, 1, -3, 0}// 7 8 9
|
|
, {2790, 3, -3, 0}, {2794, -2, 3, 0}, {2795, -1, -2, 0}// 10 11 12
|
|
, {2794, 0, 3, 0}, {2795, 0, -1, 0}, {2795, -1, 2, 0}// 13 14 15
|
|
, {2791, -3, 0, 0}, {2792, 0, -3, 0}, {2794, -1, 3, 0}// 16 17 18
|
|
, {2793, 3, -2, 0}, {2794, 2, 3, 0}, {2793, 3, 1, 0}// 19 20 22
|
|
, {2795, 2, -1, 0}, {2793, 3, -1, 0}, {2787, 3, 3, 0}// 24 25 26
|
|
, {2793, 3, 0, 0}, {2795, 1, -2, 0}, {2792, 2, -3, 0}// 27 29 31
|
|
, {2791, -3, 1, 0}, {2793, 3, 2, 0}, {2795, 0, 1, 0}// 32 33 35
|
|
, {2795, 1, 2, 0}, {2788, -3, -3, 0}, {2791, -3, -1, 0}// 36 37 38
|
|
, {2792, -2, -3, 0}, {2791, -3, -2, 0}, {2789, -3, 3, 0}// 39 41 44
|
|
};
|
|
|
|
|
|
|
|
public override BaseAddonDeed Deed
|
|
{
|
|
get
|
|
{
|
|
return new RedRugSmAddonDeed();
|
|
}
|
|
}
|
|
|
|
[ Constructable ]
|
|
public RedRugSmAddon()
|
|
{
|
|
|
|
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, 2758, -1, 1, 0, 42, -1, "", 1);// 21
|
|
AddComplexComponent( (BaseAddon) this, 2758, 2, 2, 0, 42, -1, "", 1);// 23
|
|
AddComplexComponent( (BaseAddon) this, 2758, -1, -1, 0, 42, -1, "", 1);// 28
|
|
AddComplexComponent( (BaseAddon) this, 2758, 1, -1, 0, 42, -1, "", 1);// 30
|
|
AddComplexComponent( (BaseAddon) this, 2758, 0, 0, 0, 42, -1, "", 1);// 34
|
|
AddComplexComponent( (BaseAddon) this, 2758, -2, -2, 0, 42, -1, "", 1);// 40
|
|
AddComplexComponent( (BaseAddon) this, 2758, 0, 2, 0, 42, -1, "", 1);// 42
|
|
AddComplexComponent( (BaseAddon) this, 2758, 2, 0, 0, 42, -1, "", 1);// 43
|
|
AddComplexComponent( (BaseAddon) this, 2758, -2, 0, 0, 42, -1, "", 1);// 45
|
|
AddComplexComponent( (BaseAddon) this, 2758, 0, -2, 0, 42, -1, "", 1);// 46
|
|
AddComplexComponent( (BaseAddon) this, 2758, 1, 1, 0, 42, -1, "", 1);// 47
|
|
AddComplexComponent( (BaseAddon) this, 2758, -2, 2, 0, 42, -1, "", 1);// 48
|
|
AddComplexComponent( (BaseAddon) this, 2758, 2, -2, 0, 42, -1, "", 1);// 49
|
|
|
|
}
|
|
|
|
public RedRugSmAddon( 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 RedRugSmAddonDeed : BaseAddonDeed
|
|
{
|
|
public override BaseAddon Addon
|
|
{
|
|
get
|
|
{
|
|
return new RedRugSmAddon();
|
|
}
|
|
}
|
|
|
|
[Constructable]
|
|
public RedRugSmAddonDeed()
|
|
{
|
|
Name = "RedRugSm";
|
|
}
|
|
|
|
public RedRugSmAddonDeed( 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();
|
|
}
|
|
}
|
|
} |