142 lines
4.9 KiB
C#
142 lines
4.9 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 GwenseventwagonAddon : BaseAddon
|
|
{
|
|
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
|
{8655, 1, -5, 7}, {8655, 0, -5, 7}, {8655, 2, -5, 7}// 1 2 3
|
|
, {190, -1, -1, 8}, {190, -1, 1, 8}, {2938, 1, -4, 3}// 4 5 6
|
|
, {190, 2, 1, 8}, {2938, 2, -1, 3}, {6321, 2, -3, 0}// 7 8 9
|
|
, {2938, 1, 0, 3}, {2938, 0, -2, 3}, {2938, 2, -2, 3}// 10 12 13
|
|
, {2938, 1, -1, 3}, {190, 2, -3, 8}, {190, -1, -2, 8}// 14 15 16
|
|
, {2938, 2, 0, 3}, {191, 0, 0, 8}, {2938, 0, -1, 3}// 17 18 19
|
|
, {2938, 0, -4, 3}, {190, 2, -1, 8}, {8653, -1, -4, 8}// 20 21 22
|
|
, {2938, 1, 1, 3}, {2938, 2, 1, 3}, {2938, 2, -4, 3}// 24 26 27
|
|
, {190, -1, 0, 8}, {190, -1, -3, 8}, {2938, 0, -3, 3}// 28 29 30
|
|
, {2938, 1, -2, 3}, {2938, 0, 0, 3}, {189, 2, 0, 8}// 31 32 33
|
|
, {2938, 1, -3, 3}, {2938, 0, 1, 3}, {6321, 2, 0, 0}// 34 35 36
|
|
, {2938, 2, -3, 3}, {8653, 2, -4, 8}, {191, 1, 0, 8}// 37 38 39
|
|
, {190, 2, -2, 8}, {2862, 1, 1, 9}// 40 42
|
|
};
|
|
|
|
|
|
|
|
public override BaseAddonDeed Deed
|
|
{
|
|
get
|
|
{
|
|
return new GwenseventwagonAddonDeed();
|
|
}
|
|
}
|
|
|
|
[ Constructable ]
|
|
public GwenseventwagonAddon()
|
|
{
|
|
|
|
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, 16382, 0, 5, 3, 2785, -1, "Horse", 1);// 11
|
|
AddComplexComponent( (BaseAddon) this, 16382, 1, 5, 2, 2785, -1, "Horse", 1);// 23
|
|
AddComplexComponent( (BaseAddon) this, 16382, 0, 3, 1, 2785, -1, "Horse", 1);// 25
|
|
AddComplexComponent( (BaseAddon) this, 16382, 1, 3, 0, 2785, -1, "Horse", 1);// 41
|
|
AddComplexComponent( (BaseAddon) this, 5112, -1, 2, 1, 2642, -1, "Reins", 1);// 43
|
|
AddComplexComponent( (BaseAddon) this, 4050, 1, 5, 1, 2785, -1, "Reins", 1);// 44
|
|
AddComplexComponent( (BaseAddon) this, 4050, 2, 5, 0, 2785, -1, "Reins", 1);// 45
|
|
AddComplexComponent( (BaseAddon) this, 4050, 1, 3, 0, 2785, -1, "Reins", 1);// 46
|
|
AddComplexComponent( (BaseAddon) this, 4050, 2, 3, 0, 2785, -1, "Reins", 1);// 47
|
|
AddComplexComponent( (BaseAddon) this, 5112, 1, 3, 4, 2642, -1, "Reins", 1);// 48
|
|
AddComplexComponent( (BaseAddon) this, 5112, 0, 3, 2, 2642, -1, "Reins", 1);// 49
|
|
AddComplexComponent( (BaseAddon) this, 3520, 0, 1, 9, 2785, -1, "Whip", 1);// 50
|
|
AddComplexComponent( (BaseAddon) this, 5112, -1, 4, 2, 2642, -1, "Reins", 1);// 51
|
|
AddComplexComponent( (BaseAddon) this, 5112, 2, 5, 15, 2642, -1, "Reins", 1);// 52
|
|
AddComplexComponent( (BaseAddon) this, 5112, 0, 5, 3, 0, -1, "Reins", 1);// 53
|
|
AddComplexComponent( (BaseAddon) this, 5044, 1, 5, 6, 2642, -1, "Reins", 1);// 54
|
|
AddComplexComponent( (BaseAddon) this, 5044, -1, 5, 5, 2642, -1, "Reins", 1);// 55
|
|
|
|
}
|
|
|
|
public GwenseventwagonAddon( 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 GwenseventwagonAddonDeed : BaseAddonDeed
|
|
{
|
|
public override BaseAddon Addon
|
|
{
|
|
get
|
|
{
|
|
return new GwenseventwagonAddon();
|
|
}
|
|
}
|
|
|
|
[Constructable]
|
|
public GwenseventwagonAddonDeed()
|
|
{
|
|
Name = "Gwenseventwagon";
|
|
}
|
|
|
|
public GwenseventwagonAddonDeed( 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();
|
|
}
|
|
}
|
|
} |