Files
abysmal-isle/Scripts/Items/Internal/UnderworldTele.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

46 lines
1.0 KiB
C#

using System;
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);
}
else
player.SendLocalizedMessage(1077196); // You may not enter this area.
}
return true;
}
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();
}
}
}