135 lines
4.3 KiB
C#
135 lines
4.3 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 ChaosTempleEntryAddon : BaseAddon
|
|
{
|
|
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
|
{7416, -2, 0, 0}, {7417, -2, -1, 0}, {7418, -1, -1, 0}// 1 2 3
|
|
, {7419, -1, -2, 0}, {7420, 0, -2, 0}, {7421, 1, -2, 0}// 4 5 6
|
|
, {7422, 2, -2, 0}, {7423, 3, -2, 0}, {7424, 3, -1, 0}// 7 8 9
|
|
, {7425, 3, 0, 0}, {7433, -1, 0, 0}, {7434, 0, -1, 0}// 10 11 12
|
|
, {7435, 1, -1, 0}, {7436, 2, -1, 0}, {7437, 2, 0, 0}// 13 14 15
|
|
, {7442, 1, 0, 0}, {7441, 0, 0, 0}, {7409, 2, 3, 0}// 16 17 22
|
|
, {7410, 1, 3, 0}, {7411, 0, 3, 0}, {7412, -1, 3, 0}// 23 24 25
|
|
, {7413, -2, 3, 0}, {7414, -2, 2, 0}, {7415, -2, 1, 0}// 26 27 28
|
|
, {7426, 3, 1, 0}, {7427, 3, 2, 0}, {7428, 2, 2, 0}// 29 30 31
|
|
, {7429, 1, 2, 0}, {7430, 0, 2, 0}, {7431, -1, 2, 0}// 32 33 34
|
|
, {7432, -1, 1, 0}, {7438, 2, 1, 0}, {7440, 0, 1, 0}// 35 36 37
|
|
, {7439, 1, 1, 0}// 38
|
|
};
|
|
|
|
|
|
|
|
public override BaseAddonDeed Deed
|
|
{
|
|
get
|
|
{
|
|
return new ChaosTempleEntryAddonDeed();
|
|
}
|
|
}
|
|
|
|
[ Constructable ]
|
|
public ChaosTempleEntryAddon()
|
|
{
|
|
|
|
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, 4966, 3, -1, 2, 2852, -1, "", 1);// 18
|
|
AddComplexComponent( (BaseAddon) this, 4971, 0, -2, 0, 2852, -1, "", 1);// 19
|
|
AddComplexComponent( (BaseAddon) this, 5172, 3, -1, 4, 1891, 10, "", 1);// 20
|
|
AddComplexComponent( (BaseAddon) this, 5168, 0, -2, 4, 1891, 10, "", 1);// 21
|
|
AddComplexComponent( (BaseAddon) this, 4965, -2, 1, 3, 2852, -1, "", 1);// 39
|
|
AddComplexComponent( (BaseAddon) this, 4968, 2, 2, 0, 2852, -1, "", 1);// 40
|
|
AddComplexComponent( (BaseAddon) this, 6011, -1, 3, 0, 2852, -1, "", 1);// 41
|
|
AddComplexComponent( (BaseAddon) this, 5164, -1, 3, 2, 1891, 10, "", 1);// 42
|
|
AddComplexComponent( (BaseAddon) this, 5168, 2, 2, 5, 1891, 10, "", 1);// 43
|
|
AddComplexComponent( (BaseAddon) this, 5172, -2, 1, 7, 1891, 10, "", 1);// 44
|
|
AddComplexComponent( (BaseAddon) this, 14089, 1, 1, 7, 0, 10, "", 1);// 45
|
|
|
|
}
|
|
|
|
public ChaosTempleEntryAddon( 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 ChaosTempleEntryAddonDeed : BaseAddonDeed
|
|
{
|
|
public override BaseAddon Addon
|
|
{
|
|
get
|
|
{
|
|
return new ChaosTempleEntryAddon();
|
|
}
|
|
}
|
|
|
|
[Constructable]
|
|
public ChaosTempleEntryAddonDeed()
|
|
{
|
|
Name = "ChaosTempleEntry";
|
|
}
|
|
|
|
public ChaosTempleEntryAddonDeed( 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();
|
|
}
|
|
}
|
|
} |