mirror of
https://github.com/ServUO/ServUO
synced 2026-08-11 20:23:04 -04:00
- 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.
46 lines
1 KiB
C#
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();
|
|
}
|
|
}
|
|
}
|