Files
abysmal-isle/Scripts/Scripts-master/Addons/DragonboatrideAddon.cs
Unstable Kitsune b918192e4e Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
2023-11-28 23:20:26 -05:00

126 lines
3.7 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 DragonboatrideAddon : BaseAddon
{
private static int[,] m_AddOnSimpleComponents = new int[,] {
{16040, 1, 2, 0}, {16039, -1, 2, 0}, {16038, 1, 1, 0}// 2 3 4
, {16037, -1, 1, 0}, {16036, 1, 0, 0}, {16035, -1, 0, 0}// 5 6 7
, {16032, 1, -1, 0}, {16031, -1, -1, 0}, {16030, 1, -2, 0}// 8 9 10
, {16029, -1, -2, 0}, {16056, 0, -4, 0}, {15941, 0, -4, 0}// 11 12 13
, {16028, 1, -3, 0}, {16027, -1, -3, 0}, {16044, 0, 2, 0}// 14 15 16
, {16044, 0, -2, 0}, {16044, 0, -1, 0}, {16045, 0, 1, 0}// 17 18 19
, {16046, 0, -3, 0}, {16048, 0, 0, 0}, {2919, -1, 0, 3}// 20 21 26
, {2919, 0, 0, 3}, {2919, 1, 0, 3}, {15944, 0, 4, 0}// 27 28 29
, {16053, 1, 3, 0}, {16054, -1, 3, 0}, {16057, 0, 3, 0}// 30 31 32
};
public override BaseAddonDeed Deed
{
get
{
return new DragonboatrideAddonDeed();
}
}
[ Constructable ]
public DragonboatrideAddon()
{
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, 2172, -2, 0, 0, 2953, -1, "", 1);// 1
AddComplexComponent( (BaseAddon) this, 9269, 1, 0, 3, 2659, -1, "", 1);// 22
AddComplexComponent( (BaseAddon) this, 9269, 0, 0, 3, 2659, -1, "", 1);// 23
AddComplexComponent( (BaseAddon) this, 9269, -1, 0, 3, 2659, -1, "", 1);// 24
AddComplexComponent( (BaseAddon) this, 2170, 2, 0, 0, 2953, -1, "", 1);// 25
}
public DragonboatrideAddon( 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 DragonboatrideAddonDeed : BaseAddonDeed
{
public override BaseAddon Addon
{
get
{
return new DragonboatrideAddon();
}
}
[Constructable]
public DragonboatrideAddonDeed()
{
Name = "Dragonboatride";
}
public DragonboatrideAddonDeed( 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();
}
}
}