137 lines
4.6 KiB
C#
137 lines
4.6 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 SandstoneBBQSouthAddon : BaseAddon
|
|
{
|
|
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
|
{1900, -3, 0, 0}, {1900, -2, 0, 0}, {1900, -1, 0, 0}// 1 2 3
|
|
, {1900, 0, 0, 0}, {1900, -3, 0, 3}, {1900, -2, 0, 4}// 4 5 6
|
|
, {1900, -1, 0, 6}, {1900, 0, 0, 6}, {1900, -3, 1, 0}// 7 8 9
|
|
, {1900, -2, 1, 0}, {1900, -1, 1, 0}, {1900, 0, 1, 0}// 10 11 12
|
|
, {1900, -3, 1, 2}, {1900, 0, 1, 2}, {2450, -3, 1, 7}// 13 14 20
|
|
, {2518, -3, 0, 8}, {5110, -3, 1, 8}, {3779, -3, 1, 8}// 21 27 28
|
|
, {1900, 1, 0, 0}, {1900, 2, 0, 0}, {1900, 1, 0, 4}// 29 30 31
|
|
, {1900, 2, 0, 3}, {1900, 1, 1, 0}, {1900, 2, 1, 0}// 32 33 34
|
|
, {1900, 2, 1, 2}, {2420, 1, 1, 5}, {4329, 2, 1, 7}// 35 38 42
|
|
, {7135, 3, 1, 0}// 43
|
|
};
|
|
|
|
|
|
|
|
public override BaseAddonDeed Deed
|
|
{
|
|
get
|
|
{
|
|
return new SandstoneBBQSouthAddonDeed();
|
|
}
|
|
}
|
|
|
|
[ Constructable ]
|
|
public SandstoneBBQSouthAddon()
|
|
{
|
|
|
|
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, 4846, -2, 1, 5, 0, 10, "Flames", 1);// 15
|
|
AddComplexComponent( (BaseAddon) this, 4846, -1, 1, 5, 0, 10, "Flames", 1);// 16
|
|
AddComplexComponent( (BaseAddon) this, 3530, -2, 1, 5, 1, -1, "Grill", 1);// 17
|
|
AddComplexComponent( (BaseAddon) this, 3530, -1, 1, 5, 1, -1, "Grill", 1);// 18
|
|
AddComplexComponent( (BaseAddon) this, 6467, 0, 1, 4, 0, -1, "Spices", 1);// 19
|
|
AddComplexComponent( (BaseAddon) this, 7704, -2, 1, 5, 0, -1, "Blackend Redfish", 1);// 22
|
|
AddComplexComponent( (BaseAddon) this, 7704, -1, 1, 5, 0, -1, "Grilled Salmon", 1);// 23
|
|
AddComplexComponent( (BaseAddon) this, 5628, -2, 0, 9, 0, -1, "Jalepeno Peppers", 1);// 24
|
|
AddComplexComponent( (BaseAddon) this, 5634, -1, 0, 11, 0, -1, "Onions", 1);// 25
|
|
AddComplexComponent( (BaseAddon) this, 2503, 0, 0, 11, 0, -1, "Tabasco Sauce", 1);// 26
|
|
AddComplexComponent( (BaseAddon) this, 4846, 1, 1, 5, 0, 10, "Flames", 1);// 36
|
|
AddComplexComponent( (BaseAddon) this, 3530, 1, 1, 5, 1, -1, "Grill", 1);// 37
|
|
AddComplexComponent( (BaseAddon) this, 2416, 1, 1, 13, 0, -1, "Gumbo", 1);// 39
|
|
AddComplexComponent( (BaseAddon) this, 5625, 1, 0, 9, 0, -1, "Barbeque Dry Rub", 1);// 40
|
|
AddComplexComponent( (BaseAddon) this, 5636, 2, 0, 8, 0, -1, "Bowl of Hickory Chips", 1);// 41
|
|
|
|
}
|
|
|
|
public SandstoneBBQSouthAddon( 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 SandstoneBBQSouthAddonDeed : BaseAddonDeed
|
|
{
|
|
public override BaseAddon Addon
|
|
{
|
|
get
|
|
{
|
|
return new SandstoneBBQSouthAddon();
|
|
}
|
|
}
|
|
|
|
[Constructable]
|
|
public SandstoneBBQSouthAddonDeed()
|
|
{
|
|
Name = "SandstoneBBQSouth";
|
|
}
|
|
|
|
public SandstoneBBQSouthAddonDeed( 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();
|
|
}
|
|
}
|
|
} |