Files
abysmal-isle/Scripts/Items/Quest/TripartiteKey.cs
Unstable Kitsune b918192e4e Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
2023-11-28 23:20:26 -05:00

62 lines
1.5 KiB
C#

using System;
using Server.Mobiles;
namespace Server.Items
{
public class TripartiteKey : Item
{
[Constructable]
public TripartiteKey()
: base(0x1012)
{
this.Weight = 1.0;
this.Hue = 1123;
this.Movable = false;
}
public TripartiteKey(Serial serial)
: base(serial)
{
}
public override int LabelNumber
{
get
{
return 1111649;
}
}//Tripartite Key
public override void OnDoubleClick(Mobile from)
{
PlayerMobile pm = from as PlayerMobile;
if (!this.IsChildOf(from.Backpack))
{
from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
}
else if (pm.AbyssEntry)
{
pm.SendMessage("You have completed a Sacred quest already!");
this.Delete();
}
else
{
pm.AbyssEntry = true;
pm.SendMessage("You have completed the Sacred quest and now have entry to the Underworld");
this.Delete();
}
}
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();
}
}
}