#W# Spawn: Fairwinds is now spawned. Added new GreetingInnRegion.

This commit is contained in:
WarrentyExpired 2026-10-12 11:14:06 -04:00
parent d8db393d1a
commit 13d13ca979
10 changed files with 954 additions and 303 deletions

View file

@ -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;

View 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);
}
}
}
}

View file

@ -67,5 +67,6 @@ public static class RegionJsonRegistration
RegionJsonSerializer.Register<MountlessTownRegion>();
RegionJsonSerializer.Register<GreetingOverworldSpawnRegion>();
RegionJsonSerializer.Register<NewbieDungeonRegion>();
RegionJsonSerializer.Register<GreetingInnRegion>();
}
}