#W# Spawn: Fairwinds is now spawned. Added new GreetingInnRegion.
This commit is contained in:
parent
d8db393d1a
commit
13d13ca979
10 changed files with 954 additions and 303 deletions
|
|
@ -108,6 +108,7 @@ namespace Server.Gumps
|
|||
case 1: InvokeCommand("TelGen", from); break;
|
||||
case 2: InvokeCommand("Decorate", from); break;
|
||||
case 3:
|
||||
InvokeCommand("WipeWildMobs", from);
|
||||
InvokeCommand("IS Data/Spawns/Overworld/**.json", from);
|
||||
InvokeCommand("IS Data/Spawns/Underworld/**.json", from);
|
||||
break;
|
||||
|
|
|
|||
45
Projects/UOContent/Regions/Custom/GreetingInnRegion.cs
Normal file
45
Projects/UOContent/Regions/Custom/GreetingInnRegion.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
using Server;
|
||||
using Server.Mobiles;
|
||||
using Server.Custom;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
namespace Server.Regions
|
||||
{
|
||||
public class GreetingInnRegion : TownRegion
|
||||
{
|
||||
public GreetingInnRegion(string name, Map map, int priority, params Rectangle3D[] area)
|
||||
: base(name, map, priority, area)
|
||||
{
|
||||
}
|
||||
public override bool MountsAllowed => false;
|
||||
public override TimeSpan GetLogoutDelay(Mobile m)
|
||||
{
|
||||
return TimeSpan.Zero;
|
||||
}
|
||||
public override void OnEnter(Mobile m)
|
||||
{
|
||||
base.OnEnter(m);
|
||||
if (m.Player)
|
||||
{
|
||||
m.SendMessage($"Welcome to <BASEFONT COLOR='#FFD700'>{this.Name}</BASEFONT>.");
|
||||
}
|
||||
if (m is PlayerMobile player )
|
||||
{
|
||||
if ( player.Mounted )
|
||||
{
|
||||
Server.Custom.AutoStable.StoreMount(player);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnExit(Mobile m)
|
||||
{
|
||||
base.OnExit(m);
|
||||
if ( m is PlayerMobile player )
|
||||
{
|
||||
Server.Custom.AutoStable.RestoreMount(player);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -67,5 +67,6 @@ public static class RegionJsonRegistration
|
|||
RegionJsonSerializer.Register<MountlessTownRegion>();
|
||||
RegionJsonSerializer.Register<GreetingOverworldSpawnRegion>();
|
||||
RegionJsonSerializer.Register<NewbieDungeonRegion>();
|
||||
RegionJsonSerializer.Register<GreetingInnRegion>();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue