servuo/Scripts/Items/Internal/UnderworldTele.cs
Dan 3d4c04e051 Bug Fixes
- Fixes issue FermentationBarrel.cs
- Fixes issues with Fellowship Medallion
- Fixes issue where players could use the Primevil Lich champion spawn to get into the Abyss, without the quest.
2020-11-24 23:24:11 +03:00

46 lines
1 KiB
C#

using Server.Mobiles;
namespace Server.Items
{
public class UnderworldTele : Teleporter
{
[Constructable]
public UnderworldTele()
{
}
public UnderworldTele(Serial serial)
: base(serial)
{
}
public override bool OnMoveOver(Mobile m)
{
if (m is PlayerMobile)
{
PlayerMobile player = (PlayerMobile)m;
if (player.AbyssEntry)
{
return base.OnMoveOver(m);
}
player.SendLocalizedMessage(1112226); // Thou must be on a Sacred Quest to pass through.
}
return true;
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
reader.ReadInt();
}
}
}