Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
49
Scripts/Items/Containers/HeartShapedBox.cs
Normal file
49
Scripts/Items/Containers/HeartShapedBox.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Flipable(0x49CC, 0x49D0)]
|
||||
public class HeartShapedBox : Container
|
||||
{
|
||||
public override int LabelNumber { get { return 1097762; } } // heart shaped box
|
||||
|
||||
[Constructable]
|
||||
public HeartShapedBox()
|
||||
: base(0x49CC)
|
||||
{
|
||||
Weight = 1.0;
|
||||
GumpID = 0x120;
|
||||
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
for (int j = 0; j < 4; j++)
|
||||
{
|
||||
PlaceItemIn(new ValentineChocolate(), 60 + (10 * i), 35 + (j * 13));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void PlaceItemIn(Item item, int x, int y)
|
||||
{
|
||||
AddItem(item);
|
||||
item.Location = new Point3D(x, y, 0);
|
||||
}
|
||||
|
||||
public HeartShapedBox(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write((int)0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user