Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
67
Scripts/Items/Quest/RedKey1.cs
Normal file
67
Scripts/Items/Quest/RedKey1.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
using System;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class RedKey1 : AbyssKey
|
||||
{
|
||||
[Constructable]
|
||||
public RedKey1()
|
||||
: base(0x1012)
|
||||
{
|
||||
this.Weight = 1.0;
|
||||
this.Hue = 0x8F; // TODO check
|
||||
this.LootType = LootType.Blessed;
|
||||
this.Movable = false;
|
||||
}
|
||||
|
||||
public RedKey1(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override int LabelNumber
|
||||
{
|
||||
get
|
||||
{
|
||||
return 1111647;
|
||||
}
|
||||
}
|
||||
public override int Lifespan
|
||||
{
|
||||
get
|
||||
{
|
||||
return 21600;
|
||||
}
|
||||
}
|
||||
public override void OnDoubleClick(Mobile m)
|
||||
{
|
||||
Item a = m.Backpack.FindItemByType(typeof(YellowKey1));
|
||||
if (a != null)
|
||||
{
|
||||
Item b = m.Backpack.FindItemByType(typeof(BlueKey1));
|
||||
if (b != null)
|
||||
{
|
||||
m.AddToBackpack(new TripartiteKey());
|
||||
a.Delete();
|
||||
b.Delete();
|
||||
this.Delete();
|
||||
m.SendLocalizedMessage(1111649);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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