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/PrettyGardenAddon.cs
Normal file
154
Scripts/Scripts-master/Addons2/PrettyGardenAddon.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 PrettyGardenAddon : BaseAddon
|
||||
{
|
||||
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
||||
{554, -2, 2, 1}, {554, -2, -2, 0}, {555, -2, -1, 0}// 5 6 7
|
||||
, {555, -2, 0, 0}, {555, -2, 1, 0}, {555, -2, 2, 0}// 8 9 10
|
||||
, {12789, -2, -1, 0}, {12789, -2, 0, 0}, {12789, -2, 1, 0}// 11 12 13
|
||||
, {12789, -2, 2, 0}, {3311, -2, -1, 0}, {3311, -2, 0, 0}// 14 15 16
|
||||
, {3311, -2, 1, 0}, {3311, -2, 2, 0}, {3273, -2, 3, 0}// 17 18 28
|
||||
, {1321, -1, -1, 0}, {1321, -1, 0, 0}, {1321, -1, 1, 0}// 29 30 31
|
||||
, {1321, -1, 2, 0}, {1321, 2, -1, 0}, {1321, 2, 0, 0}// 32 33 34
|
||||
, {1321, 2, 1, 0}, {1321, 2, 2, 0}, {1319, 0, -1, 0}// 35 36 37
|
||||
, {1319, 1, -1, 0}, {1319, 0, 2, 0}, {1319, 1, 2, 0}// 38 39 40
|
||||
, {12791, 0, 3, 0}, {12791, 1, 3, 0}, {12791, 2, 3, 0}// 41 42 43
|
||||
, {12791, 0, -2, 0}, {12791, 1, -2, 0}, {12791, 2, -2, 0}// 44 45 46
|
||||
, {12791, 3, -2, 0}, {12791, 3, -1, 0}, {12791, 3, 0, 0}// 47 48 49
|
||||
, {12791, 3, 1, 0}, {12791, 3, 2, 0}, {12791, 3, 3, 0}// 50 51 52
|
||||
, {2451, 1, -3, 0}, {7680, -1, 2, 0}, {7680, 2, -1, 0}// 53 54 55
|
||||
, {7680, 2, 1, 0}, {7680, 1, 2, 0}, {7680, 0, -1, 0}// 56 57 58
|
||||
, {7680, -1, 0, 0}, {6479, 2, 2, 0}, {6369, 3, 2, 0}// 59 62 68
|
||||
, {6377, 3, 1, 0}, {6367, 3, 0, 0}, {6373, 3, -1, 0}// 69 70 71
|
||||
, {3203, 0, -2, 0}, {3223, 3, -2, 0}, {6811, 1, -2, 0}// 72 73 74
|
||||
, {3204, 2, -2, 0}, {3149, 1, 1, 3}, {3897, 0, -1, 0}// 75 76 78
|
||||
, {3498, -1, -3, 0}, {3496, -1, -3, 0}, {2452, -1, -2, 0}// 79 80 81
|
||||
, {2452, 0, -3, 0}, {6868, -1, -3, 24}, {3143, -2, 3, 11}// 82 83 84
|
||||
};
|
||||
|
||||
|
||||
|
||||
public override BaseAddonDeed Deed
|
||||
{
|
||||
get
|
||||
{
|
||||
return new PrettyGardenAddonDeed();
|
||||
}
|
||||
}
|
||||
|
||||
[ Constructable ]
|
||||
public PrettyGardenAddon()
|
||||
{
|
||||
|
||||
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, 10012, -3, -1, 0, 1150, -1, "", 1);// 1
|
||||
AddComplexComponent( (BaseAddon) this, 10012, -3, 0, 0, 1150, -1, "", 1);// 2
|
||||
AddComplexComponent( (BaseAddon) this, 10012, -3, 1, 0, 1150, -1, "", 1);// 3
|
||||
AddComplexComponent( (BaseAddon) this, 10012, -3, 2, 0, 1150, -1, "", 1);// 4
|
||||
AddComplexComponent( (BaseAddon) this, 3195, -2, 0, 14, 2267, -1, "Hyrbrid Rose", 1);// 19
|
||||
AddComplexComponent( (BaseAddon) this, 3195, -2, 1, 23, 2491, -1, "Hyrbrid Rose", 1);// 20
|
||||
AddComplexComponent( (BaseAddon) this, 3195, -2, 2, 10, 2659, -1, "Hyrbrid Rose", 1);// 21
|
||||
AddComplexComponent( (BaseAddon) this, 3195, -2, 3, 23, 2576, -1, "Hyrbrid Rose", 1);// 22
|
||||
AddComplexComponent( (BaseAddon) this, 3184, -2, 2, 19, 2252, -1, "Hyrbrid Rose", 1);// 23
|
||||
AddComplexComponent( (BaseAddon) this, 3184, -2, 1, 22, 2741, -1, "Hyrbrid Rose", 1);// 24
|
||||
AddComplexComponent( (BaseAddon) this, 3184, -2, 0, 12, 2790, -1, "Hyrbrid Rose", 1);// 25
|
||||
AddComplexComponent( (BaseAddon) this, 3184, -2, -1, 20, 2277, -1, "Hyrbrid Rose", 1);// 26
|
||||
AddComplexComponent( (BaseAddon) this, 3195, -2, 1, 14, 2241, -1, "Hyrbrid Rose", 1);// 27
|
||||
AddComplexComponent( (BaseAddon) this, 3580, 0, 2, 0, 2320, -1, "Pruning Shears", 1);// 60
|
||||
AddComplexComponent( (BaseAddon) this, 5070, -1, 1, 0, 0, -1, "Gardening Gloves", 1);// 61
|
||||
AddComplexComponent( (BaseAddon) this, 3248, 0, 3, 0, 0, -1, "Thyme", 1);// 63
|
||||
AddComplexComponent( (BaseAddon) this, 3271, 1, 3, 0, 0, -1, "Dill Weed", 1);// 64
|
||||
AddComplexComponent( (BaseAddon) this, 3332, 2, 3, 0, 0, -1, "Parsley", 1);// 65
|
||||
AddComplexComponent( (BaseAddon) this, 3220, 3, 3, 0, 0, -1, "Oregano", 1);// 66
|
||||
AddComplexComponent( (BaseAddon) this, 3254, 0, 3, 0, 0, -1, "Thyme", 1);// 67
|
||||
AddComplexComponent( (BaseAddon) this, 7866, 1, -1, 1, 0, -1, "Gardening Tools", 1);// 77
|
||||
|
||||
}
|
||||
|
||||
public PrettyGardenAddon( 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 PrettyGardenAddonDeed : BaseAddonDeed
|
||||
{
|
||||
public override BaseAddon Addon
|
||||
{
|
||||
get
|
||||
{
|
||||
return new PrettyGardenAddon();
|
||||
}
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public PrettyGardenAddonDeed()
|
||||
{
|
||||
Name = "PrettyGarden";
|
||||
}
|
||||
|
||||
public PrettyGardenAddonDeed( 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