Files
abysmal-isle/Scripts/Scripts-master/Addons2/RestingPlaceAddon.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

164 lines
6.4 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 RestingPlaceAddon : BaseAddon
{
private static int[,] m_AddOnSimpleComponents = new int[,] {
{3253, -4, -2, 0}, {9325, -3, 4, 0}, {9328, -3, 3, 0}// 1 7 8
, {7716, -4, 2, 0}, {2503, 3, -4, 3}, {6047, 0, -4, 0}// 10 13 14
, {7717, -2, -4, 0}, {3250, 1, -3, 0}, {6052, -2, -2, 0}// 15 16 17
, {6053, 1, -4, 0}, {3211, 5, -2, 1}, {3212, 5, -3, 1}// 19 20 22
, {3706, 3, -4, 0}, {3254, 3, -3, 1}, {6051, -2, 0, 0}// 23 24 25
, {6066, 5, -3, 0}, {6060, -1, -3, 0}, {6048, 3, -3, 0}// 26 27 28
, {3210, -1, -4, 0}, {6054, -1, -4, 0}, {6047, 2, -3, 0}// 29 30 31
, {3254, 5, 0, 1}, {3253, 5, -2, 1}, {6045, 5, -1, 0}// 32 33 34
, {2444, 4, -4, 0}, {3210, -1, -4, 0}, {6046, 5, -2, 0}// 35 36 37
, {9326, -1, -2, 1}, {13450, 1, -1, 1}, {6051, -2, -1, 0}// 38 39 40
, {7713, 2, -5, 2}, {6046, 5, 0, 0}, {3204, 0, -4, 0}// 41 42 43
, {6047, 4, -3, 0}, {3248, 4, -5, 0}, {6054, -2, -3, 0}// 44 45 47
, {6057, 1, -3, 0}, {6040, 0, -3, 0}, {6040, -1, -2, 0}// 48 49 50
, {6040, -1, -1, 0}, {6040, -1, 0, 0}, {6040, 0, -2, 0}// 51 52 53
, {6040, 0, -1, 0}, {6040, 0, 0, 0}, {6040, 1, -2, 0}// 54 55 56
, {6040, 1, -1, 0}, {6040, 1, 0, 0}, {6040, 2, -2, 0}// 57 58 59
, {6040, 2, -1, 0}, {6040, 2, 0, 0}, {6040, 3, -2, 0}// 60 61 62
, {6040, 3, -1, 0}, {6040, 3, 0, 0}, {6040, 4, -2, 0}// 63 64 65
, {6040, 4, -1, 0}, {6040, 4, 0, 0}, {6049, 1, 4, 0}// 66 67 68
, {3247, 4, 5, 0}, {6046, 5, 3, 0}, {3520, -1, 5, 0}// 69 70 73
, {13452, 3, 2, 1}, {9325, 4, 5, 1}, {3257, 0, 4, 1}// 74 75 77
, {3252, -2, 6, 0}, {3248, -2, 1, 0}, {3212, 5, 3, 1}// 78 79 80
, {3251, 5, 4, 1}, {9324, -1, 3, 1}, {6049, -1, 4, 0}// 81 82 83
, {6049, 3, 4, 0}, {3517, 0, 2, 2}, {6051, -2, 3, 0}// 84 85 86
, {3335, -1, 1, 1}, {6050, 0, 4, 0}, {6045, 5, 1, 0}// 87 88 89
, {3338, -1, 1, 2}, {6049, 4, 4, 0}, {5367, -2, 4, 0}// 90 91 93
, {2508, -2, 5, 0}, {6064, -2, 4, 0}, {6055, 5, 4, 0}// 94 96 97
, {6049, 2, 4, 0}, {6052, -2, 1, 0}, {6045, 5, 2, 0}// 98 100 101
, {6051, -2, 2, 0}, {6040, -1, 1, 0}, {6040, -1, 2, 0}// 102 103 104
, {6040, -1, 3, 0}, {6040, 0, 1, 0}, {6040, 0, 2, 0}// 105 106 107
, {6040, 0, 3, 0}, {6040, 1, 1, 0}, {6040, 1, 2, 0}// 108 109 110
, {6040, 1, 3, 0}, {6040, 2, 1, 0}, {6040, 2, 2, 0}// 111 112 113
, {6040, 2, 3, 0}, {6040, 3, 1, 0}, {6040, 3, 2, 0}// 114 115 116
, {6040, 3, 3, 0}, {6040, 4, 1, 0}, {6040, 4, 2, 0}// 117 118 119
, {6040, 4, 3, 0}// 120
};
public override BaseAddonDeed Deed
{
get
{
return new RestingPlaceAddonDeed();
}
}
[ Constructable ]
public RestingPlaceAddon()
{
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, 5035, -4, 0, 2, 2980, -1, "a tassle pillow", 1);// 2
AddComplexComponent( (BaseAddon) this, 2860, -4, 0, 0, 2956, -1, "", 1);// 3
AddComplexComponent( (BaseAddon) this, 6421, -3, -1, 2, 2980, -1, "Fancy Pillow", 1);// 4
AddComplexComponent( (BaseAddon) this, 2860, -4, -1, 0, 2956, -1, "", 1);// 5
AddComplexComponent( (BaseAddon) this, 5038, -3, -1, 0, 1170, -1, "a floor pillow", 1);// 6
AddComplexComponent( (BaseAddon) this, 2860, -4, 1, 0, 2956, -1, "", 1);// 9
AddComplexComponent( (BaseAddon) this, 5037, -3, 1, 0, 2976, -1, "a floor pillow", 1);// 11
AddComplexComponent( (BaseAddon) this, 5036, -3, 1, 2, 1172, -1, "Dark Tassled Pillow", 1);// 12
AddComplexComponent( (BaseAddon) this, 2861, 2, -5, 0, 2956, -1, "", 1);// 18
AddComplexComponent( (BaseAddon) this, 2861, 3, -5, 0, 2956, -1, "", 1);// 21
AddComplexComponent( (BaseAddon) this, 2861, 1, -5, 0, 2956, -1, "", 1);// 46
AddComplexComponent( (BaseAddon) this, 3530, 1, 5, 0, 2208, -1, "", 1);// 71
AddComplexComponent( (BaseAddon) this, 15112, -1, 5, 2, 0, -1, "Fish", 1);// 72
AddComplexComponent( (BaseAddon) this, 3542, 0, 6, 0, 86, -1, "", 1);// 76
AddComplexComponent( (BaseAddon) this, 15114, -2, 6, 2, 0, -1, "Stripped Fish", 1);// 92
AddComplexComponent( (BaseAddon) this, 3542, 2, 5, 0, 86, -1, "", 1);// 95
AddComplexComponent( (BaseAddon) this, 3520, -2, 5, 0, 0, -1, "Bluefish Rod", 1);// 99
}
public RestingPlaceAddon( 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 RestingPlaceAddonDeed : BaseAddonDeed
{
public override BaseAddon Addon
{
get
{
return new RestingPlaceAddon();
}
}
[Constructable]
public RestingPlaceAddonDeed()
{
Name = "RestingPlace";
}
public RestingPlaceAddonDeed( 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();
}
}
}