Initial commit
This commit is contained in:
@@ -0,0 +1,131 @@
|
||||
|
||||
////////////////////////////////////////
|
||||
// //
|
||||
// Generated by CEO's YAAAG - Ver 2 //
|
||||
// (Yet Another Arya Addon Generator) //
|
||||
// Modified by Hammerhand for //
|
||||
// SA & High Seas content //
|
||||
// //
|
||||
////////////////////////////////////////
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class WineBarrelRackEAddon : BaseAddon
|
||||
{
|
||||
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
||||
{2451, 0, 2, 5}, {2488, 0, 2, 11}, {2860, 0, -1, 21}// 1 2 3
|
||||
, {2860, 0, 0, 21}, {2860, 0, 1, 21}, {2860, 0, -1, 5}// 4 5 6
|
||||
, {2879, 0, 2, 12}, {2449, 0, 2, 11}, {6467, 0, 2, 15}// 7 8 9
|
||||
, {2879, 0, 2, 6}, {2860, 0, 1, 5}, {2860, 0, -1, 13}// 10 11 12
|
||||
, {2879, 0, 2, 18}, {2860, 0, 0, 13}, {2860, 0, 1, 13}// 13 14 15
|
||||
, {2877, 0, 2, 0}, {2860, 0, 0, 5}, {2879, 0, -2, 6}// 16 17 27
|
||||
, {6467, 0, -2, 15}, {6467, 0, -2, 4}, {2466, 0, -2, 11}// 28 29 30
|
||||
, {2879, 0, -2, 12}, {2879, 0, -2, 18}, {2877, 0, -2, 0}// 31 32 33
|
||||
};
|
||||
|
||||
|
||||
|
||||
public override BaseAddonDeed Deed
|
||||
{
|
||||
get
|
||||
{
|
||||
return new WineBarrelRackEAddonDeed();
|
||||
}
|
||||
}
|
||||
|
||||
[ Constructable ]
|
||||
public WineBarrelRackEAddon()
|
||||
{
|
||||
|
||||
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, 40503, 0, 1, 18, 0, -1, "Ale Keg", 1);// 18
|
||||
AddComplexComponent( (BaseAddon) this, 40503, 0, 1, 10, 0, -1, "Ale Keg", 1);// 19
|
||||
AddComplexComponent( (BaseAddon) this, 40503, 0, 0, 18, 0, -1, "Ale Keg", 1);// 20
|
||||
AddComplexComponent( (BaseAddon) this, 40503, 0, 0, 10, 0, -1, "Ale Keg", 1);// 21
|
||||
AddComplexComponent( (BaseAddon) this, 40503, 0, -1, 18, 0, -1, "Ale Keg", 1);// 22
|
||||
AddComplexComponent( (BaseAddon) this, 40503, 0, -1, 10, 0, -1, "Ale Keg", 1);// 23
|
||||
AddComplexComponent( (BaseAddon) this, 40503, 0, -1, 2, 0, -1, "Ale Keg", 1);// 24
|
||||
AddComplexComponent( (BaseAddon) this, 40503, 0, 0, 2, 0, -1, "Ale Keg", 1);// 25
|
||||
AddComplexComponent( (BaseAddon) this, 40503, 0, 1, 2, 0, -1, "Ale Keg", 1);// 26
|
||||
|
||||
}
|
||||
|
||||
public WineBarrelRackEAddon( 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 WineBarrelRackEAddonDeed : BaseAddonDeed
|
||||
{
|
||||
public override BaseAddon Addon
|
||||
{
|
||||
get
|
||||
{
|
||||
return new WineBarrelRackEAddon();
|
||||
}
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public WineBarrelRackEAddonDeed()
|
||||
{
|
||||
Name = "WineBarrelRackE";
|
||||
}
|
||||
|
||||
public WineBarrelRackEAddonDeed( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user