Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
127
Scripts/Scripts-master/Addons/holidayfireplaceAddon.cs
Normal file
127
Scripts/Scripts-master/Addons/holidayfireplaceAddon.cs
Normal file
@@ -0,0 +1,127 @@
|
||||
|
||||
////////////////////////////////////////
|
||||
// //
|
||||
// Generated by CEO's YAAAG - V1.2 //
|
||||
// (Yet Another Arya Addon Generator) //
|
||||
// //
|
||||
////////////////////////////////////////
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class holidayfireplaceAddon : BaseAddon
|
||||
{
|
||||
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
||||
{28, 1, -2, 0}, {28, 0, -2, 0}, {28, 2, -2, 0}// 1 2 3
|
||||
, {29, -2, -2, 0}, {28, -1, -2, 0}, {7765, 1, 1, 0}// 4 5 6
|
||||
, {7768, 0, 3, 0}, {11232, 0, 0, 2}, {13001, 2, -1, 0}// 8 9 10
|
||||
, {27, 2, -1, 0}, {9008, 2, 0, 5}, {11227, 0, 0, 5}// 11 12 13
|
||||
, {7134, 0, -1, 0}, {9009, -1, 0, 3}, {37, 1, -1, 11}// 15 16 17
|
||||
, {37, 0, -1, 11}, {11230, 1, 0, 2}, {13001, -1, -1, 0}// 18 19 21
|
||||
, {11225, 1, 0, 7}, {13001, 1, -1, 0}, {11231, 1, 0, 2}// 23 24 25
|
||||
, {11229, 0, 0, 2}, {27, -2, -1, 0}, {7766, 0, 1, 0}// 26 27 28
|
||||
, {7767, 0, 2, 0}, {7770, -1, 2, 0}, {7763, 1, 3, 0}// 29 30 32
|
||||
, {7769, -1, 3, 0}, {7764, 1, 2, 0}, {7771, -1, 1, 0}// 33 34 35
|
||||
};
|
||||
|
||||
|
||||
|
||||
public override BaseAddonDeed Deed
|
||||
{
|
||||
get
|
||||
{
|
||||
return new holidayfireplaceAddonDeed();
|
||||
}
|
||||
}
|
||||
|
||||
[ Constructable ]
|
||||
public holidayfireplaceAddon()
|
||||
{
|
||||
|
||||
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, 3249, 0, 0, 16, 0, -1, "Garland", 1);// 7
|
||||
AddComplexComponent( (BaseAddon) this, 10672, -1, -1, 0, 0, 1, "", 1);// 14
|
||||
AddComplexComponent( (BaseAddon) this, 10672, 2, -1, 0, 0, 1, "", 1);// 20
|
||||
AddComplexComponent( (BaseAddon) this, 3249, 1, 0, 16, 0, -1, "Garland", 1);// 22
|
||||
AddComplexComponent( (BaseAddon) this, 6571, 0, -1, 4, 0, 29, "", 1);// 31
|
||||
|
||||
}
|
||||
|
||||
public holidayfireplaceAddon( 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 holidayfireplaceAddonDeed : BaseAddonDeed
|
||||
{
|
||||
public override BaseAddon Addon
|
||||
{
|
||||
get
|
||||
{
|
||||
return new holidayfireplaceAddon();
|
||||
}
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public holidayfireplaceAddonDeed()
|
||||
{
|
||||
Name = "holidayfireplace";
|
||||
}
|
||||
|
||||
public holidayfireplaceAddonDeed( 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