Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
44
Scripts/Regions/TwistedWealdDesert.cs
Normal file
44
Scripts/Regions/TwistedWealdDesert.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Xml;
|
||||
using Server.Network;
|
||||
using Server.Spells;
|
||||
using Server.Spells.Ninjitsu;
|
||||
|
||||
namespace Server.Regions
|
||||
{
|
||||
public class TwistedWealdDesert : MondainRegion
|
||||
{
|
||||
public TwistedWealdDesert(XmlElement xml, Map map, Region parent)
|
||||
: base(xml, map, parent)
|
||||
{
|
||||
}
|
||||
|
||||
public static void Initialize()
|
||||
{
|
||||
EventSink.Login += new LoginEventHandler(Desert_OnLogin);
|
||||
}
|
||||
|
||||
public override void OnEnter(Mobile m)
|
||||
{
|
||||
if (m.NetState != null &&
|
||||
!TransformationSpellHelper.UnderTransformation(m, typeof(AnimalForm)) &&
|
||||
m.AccessLevel < AccessLevel.GameMaster)
|
||||
m.SendSpeedControl(SpeedControlType.WalkSpeed);
|
||||
}
|
||||
|
||||
public override void OnExit(Mobile m)
|
||||
{
|
||||
if (m.NetState != null &&
|
||||
!TransformationSpellHelper.UnderTransformation(m, typeof(AnimalForm)) &&
|
||||
(Core.SA || !TransformationSpellHelper.UnderTransformation(m, typeof(Server.Spells.Spellweaving.ReaperFormSpell))))
|
||||
m.SendSpeedControl(SpeedControlType.Disable);
|
||||
}
|
||||
|
||||
private static void Desert_OnLogin(LoginEventArgs e)
|
||||
{
|
||||
Mobile m = e.Mobile;
|
||||
|
||||
if (m.Region.IsPartOf<TwistedWealdDesert>() && m.AccessLevel < AccessLevel.GameMaster)
|
||||
m.SendSpeedControl(SpeedControlType.WalkSpeed);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user