Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
124
Scripts/Scripts-master/Addons2/SacrificeShrineAddon.cs
Normal file
124
Scripts/Scripts-master/Addons2/SacrificeShrineAddon.cs
Normal file
@@ -0,0 +1,124 @@
|
||||
|
||||
////////////////////////////////////////
|
||||
// //
|
||||
// Generated by CEO's YAAAG - V1.2 //
|
||||
// (Yet Another Arya Addon Generator) //
|
||||
// //
|
||||
////////////////////////////////////////
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class SacrificeShrineAddon : BaseAddon
|
||||
{
|
||||
private static int[,] m_AddOnSimpleComponents = new int[,] {
|
||||
{5390, 0, 0, 0}, {5391, 0, 1, 0}, {5392, 1, 1, 0}// 1 2 3
|
||||
, {5393, 1, 0, 0}, {4, 0, -1, 0}, {5, 1, -1, 0}// 4 5 6
|
||||
, {2888, 1, 2, 0}, {3237, -1, 0, 0}, {3237, 2, 0, 0}// 13 14 15
|
||||
, {3148, -1, 0, 3}, {3148, 2, 0, 3}, {3203, -1, 1, 0}// 16 17 19
|
||||
, {3203, 2, 1, 0}// 20
|
||||
};
|
||||
|
||||
|
||||
|
||||
public override BaseAddonDeed Deed
|
||||
{
|
||||
get
|
||||
{
|
||||
return new SacrificeShrineAddonDeed();
|
||||
}
|
||||
}
|
||||
|
||||
[ Constructable ]
|
||||
public SacrificeShrineAddon()
|
||||
{
|
||||
|
||||
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, 3878, 1, 0, 0, 1174, -1, "Tears of Sacrifice", 1);// 7
|
||||
AddComplexComponent( (BaseAddon) this, 3878, 1, 0, 5, 1174, -1, "Tears of Sacrifice", 1);// 8
|
||||
AddComplexComponent( (BaseAddon) this, 3878, 1, 0, 10, 1174, -1, "Tears of Sacrifice", 1);// 9
|
||||
AddComplexComponent( (BaseAddon) this, 3878, 1, 0, 16, 1174, -1, "Tears of Sacrifice", 1);// 10
|
||||
AddComplexComponent( (BaseAddon) this, 9654, 0, -1, 16, 0, -1, "Angel of Sacrifice", 1);// 11
|
||||
AddComplexComponent( (BaseAddon) this, 6377, 1, 2, 4, 0, -1, "Rose of Sacrifice", 1);// 12
|
||||
AddComplexComponent( (BaseAddon) this, 9587, 1, 1, 5, 2939, -1, "Dagger of Sacrifice", 1);// 18
|
||||
|
||||
}
|
||||
|
||||
public SacrificeShrineAddon( 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 SacrificeShrineAddonDeed : BaseAddonDeed
|
||||
{
|
||||
public override BaseAddon Addon
|
||||
{
|
||||
get
|
||||
{
|
||||
return new SacrificeShrineAddon();
|
||||
}
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public SacrificeShrineAddonDeed()
|
||||
{
|
||||
Name = "SacrificeShrine";
|
||||
}
|
||||
|
||||
public SacrificeShrineAddonDeed( 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