Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
154
Scripts/Scripts-master/Addons2/PicnicAreaAddon.cs
Normal file
154
Scripts/Scripts-master/Addons2/PicnicAreaAddon.cs
Normal file
@@ -0,0 +1,154 @@
|
||||
|
||||
////////////////////////////////////////
|
||||
// //
|
||||
// Generated by CEO's YAAAG - V1.2 //
|
||||
// (Yet Another Arya Addon Generator) //
|
||||
// //
|
||||
////////////////////////////////////////
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class PicnicAreaAddon : BaseAddon
|
||||
{
|
||||
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
||||
{4804, -1, -1, 0}, {4805, 0, -2, 0}, {4806, 1, -3, 0}// 1 2 3
|
||||
, {4795, -1, -1, 0}, {4796, 0, -2, 0}, {4797, 1, -3, 0}// 4 5 6
|
||||
, {9037, -1, -1, 5}, {4800, -5, 3, 0}, {4801, -4, 2, 0}// 10 11 12
|
||||
, {4802, -3, 1, 0}, {4803, -2, 0, 0}, {4791, -5, 3, 0}// 13 14 15
|
||||
, {4792, -4, 2, 0}, {4793, -3, 1, 0}, {4794, -2, 0, 0}// 16 17 18
|
||||
, {4798, -7, 5, 0}, {4799, -6, 4, 0}, {4790, -6, 4, 0}// 19 20 21
|
||||
, {2495, 0, 1, 0}, {2483, 0, 1, 0}, {2503, 0, 0, 0}// 31 32 33
|
||||
, {3211, -3, 4, 0}, {3212, -2, 4, 0}, {3214, -5, 3, 0}// 34 35 36
|
||||
, {9036, -4, 2, 10}, {9036, -2, 1, 10}, {3263, -2, 2, 0}// 37 38 39
|
||||
, {3149, -3, 5, 0}, {3149, -1, 0, 0}, {3149, -5, 3, 0}// 40 41 42
|
||||
, {3149, 0, 5, 0}, {4807, 2, -4, 0}, {3212, 3, -3, 0}// 43 48 49
|
||||
, {3211, 2, -3, 0}, {3214, 7, -1, 0}, {3262, 4, -2, 0}// 50 51 52
|
||||
, {3149, 2, -2, 0}, {3149, 7, -1, 0}, {3149, 4, -2, 0}// 53 54 55
|
||||
, {2519, 2, 0, 0}, {2519, 2, 0, 1}, {2430, 3, 2, 1}// 64 65 68
|
||||
, {2428, 3, 2, 2}, {2450, 3, 2, 0}, {3263, 3, 5, 0}// 69 70 71
|
||||
, {3149, 5, 5, 0}, {3149, 3, 5, 0}, {3149, 5, 1, 0}// 72 73 74
|
||||
};
|
||||
|
||||
|
||||
|
||||
public override BaseAddonDeed Deed
|
||||
{
|
||||
get
|
||||
{
|
||||
return new PicnicAreaAddonDeed();
|
||||
}
|
||||
}
|
||||
|
||||
[ Constructable ]
|
||||
public PicnicAreaAddon()
|
||||
{
|
||||
|
||||
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, 2017, -1, -3, 4, 0, -1, "Rope", 1);// 7
|
||||
AddComplexComponent( (BaseAddon) this, 2017, 0, -3, 5, 0, -1, "Rope", 1);// 8
|
||||
AddComplexComponent( (BaseAddon) this, 2932, -1, -3, 0, 0, -1, "Swing", 1);// 9
|
||||
AddComplexComponent( (BaseAddon) this, 4248, 0, 0, 0, 1153, -1, "Picnic Blanket", 1);// 22
|
||||
AddComplexComponent( (BaseAddon) this, 4248, 0, 1, 0, 33, -1, "Picnic Blanket", 1);// 23
|
||||
AddComplexComponent( (BaseAddon) this, 4248, 0, 2, 0, 1153, -1, "Picnic Blanket", 1);// 24
|
||||
AddComplexComponent( (BaseAddon) this, 4248, 0, 3, 0, 33, -1, "Picnic Blanket", 1);// 25
|
||||
AddComplexComponent( (BaseAddon) this, 4248, 1, 0, 0, 33, -1, "Picnic Blanket", 1);// 26
|
||||
AddComplexComponent( (BaseAddon) this, 4248, 1, 1, 0, 1153, -1, "Picnic Blanket", 1);// 27
|
||||
AddComplexComponent( (BaseAddon) this, 4248, 1, 2, 0, 33, -1, "Picnic Blanket", 1);// 28
|
||||
AddComplexComponent( (BaseAddon) this, 4248, 1, 3, 0, 1153, -1, "Picnic Blanket", 1);// 29
|
||||
AddComplexComponent( (BaseAddon) this, 9433, 1, 0, 0, 0, -1, "Picnic Basket", 1);// 30
|
||||
AddComplexComponent( (BaseAddon) this, 3863, -5, 4, 0, 1, -1, "Ants", 2);// 44
|
||||
AddComplexComponent( (BaseAddon) this, 8755, -5, 3, 0, 0, -1, "Anthill", 1);// 45
|
||||
AddComplexComponent( (BaseAddon) this, 3863, -4, 3, 0, 1, -1, "Ants", 2);// 46
|
||||
AddComplexComponent( (BaseAddon) this, 3863, -3, 2, 0, 1, -1, "Ants", 2);// 47
|
||||
AddComplexComponent( (BaseAddon) this, 4248, 2, 0, 0, 1153, -1, "Picnic Blanket", 1);// 56
|
||||
AddComplexComponent( (BaseAddon) this, 4248, 2, 1, 0, 33, -1, "Picnic Blanket", 1);// 57
|
||||
AddComplexComponent( (BaseAddon) this, 4248, 2, 2, 0, 1153, -1, "Picnic Blanket", 1);// 58
|
||||
AddComplexComponent( (BaseAddon) this, 4248, 2, 3, 0, 33, -1, "Picnic Blanket", 1);// 59
|
||||
AddComplexComponent( (BaseAddon) this, 4248, 3, 0, 0, 33, -1, "Picnic Blanket", 1);// 60
|
||||
AddComplexComponent( (BaseAddon) this, 4248, 3, 1, 0, 1153, -1, "Picnic Blanket", 1);// 61
|
||||
AddComplexComponent( (BaseAddon) this, 4248, 3, 2, 0, 33, -1, "Picnic Blanket", 1);// 62
|
||||
AddComplexComponent( (BaseAddon) this, 4248, 3, 3, 0, 1153, -1, "Picnic Blanket", 1);// 63
|
||||
AddComplexComponent( (BaseAddon) this, 5373, 3, 0, 0, 0, -1, "Silverware", 1);// 66
|
||||
AddComplexComponent( (BaseAddon) this, 2444, 3, 1, 0, 0, -1, "", 2);// 67
|
||||
|
||||
}
|
||||
|
||||
public PicnicAreaAddon( 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 PicnicAreaAddonDeed : BaseAddonDeed
|
||||
{
|
||||
public override BaseAddon Addon
|
||||
{
|
||||
get
|
||||
{
|
||||
return new PicnicAreaAddon();
|
||||
}
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public PicnicAreaAddonDeed()
|
||||
{
|
||||
Name = "PicnicArea";
|
||||
}
|
||||
|
||||
public PicnicAreaAddonDeed( 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