Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
46
Scripts/Items/Internal/UnderworldTele.cs
Normal file
46
Scripts/Items/Internal/UnderworldTele.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user