Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
64
Scripts/Services/Revamped Dungeons/WrongDungeon/Region.cs
Normal file
64
Scripts/Services/Revamped Dungeons/WrongDungeon/Region.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using Server;
|
||||
using System.Collections.Generic;
|
||||
using Server.Mobiles;
|
||||
using Server.Regions;
|
||||
using System.Xml;
|
||||
using Server.Network;
|
||||
using System;
|
||||
|
||||
namespace Server.Engines.Blackthorn
|
||||
{
|
||||
public class WrongLevel3 : DungeonRegion
|
||||
{
|
||||
private List<Mobile> DeathList = new List<Mobile>();
|
||||
|
||||
public WrongLevel3(XmlElement xml, Map map, Region parent)
|
||||
: base(xml, map, parent)
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnDeath(Mobile m)
|
||||
{
|
||||
if (m is PlayerMobile)
|
||||
{
|
||||
m.MoveToWorld(new Point3D(5703, 639, 0), this.Map);
|
||||
|
||||
if (!DeathList.Contains(m))
|
||||
{
|
||||
m.Resurrect();
|
||||
DeathList.Add(m);
|
||||
}
|
||||
else
|
||||
{
|
||||
DeathList.Remove(m);
|
||||
}
|
||||
|
||||
Timer.DelayCall(TimeSpan.FromSeconds(2), () => m.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1152076)); // You are captured by the jailor and returned to your cell.
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnExit(Mobile m)
|
||||
{
|
||||
if (m is PlayerMobile)
|
||||
{
|
||||
if (DeathList.Contains(m))
|
||||
DeathList.Remove(m);
|
||||
}
|
||||
|
||||
base.OnExit(m);
|
||||
}
|
||||
}
|
||||
|
||||
public class WrongJail : DungeonRegion
|
||||
{
|
||||
public WrongJail(XmlElement xml, Map map, Region parent)
|
||||
: base(xml, map, parent)
|
||||
{
|
||||
}
|
||||
|
||||
public override bool AllowHarmful(Mobile from, IDamageable target)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user