#W# Lots of region work. Also got the [map command to populate on discovery.
This commit is contained in:
parent
5e66f00c8c
commit
926cc4e0f3
3 changed files with 192 additions and 124 deletions
|
|
@ -29,7 +29,7 @@ namespace Server.Regions
|
|||
|
||||
private string m_RuneName;
|
||||
private bool m_NoLogoutDelay;
|
||||
|
||||
private int m_MapID;
|
||||
private SpawnEntry[] m_Spawns;
|
||||
private SpawnZLevel m_SpawnZLevel;
|
||||
private bool m_ExcludeFromParentSpawns;
|
||||
|
|
@ -135,6 +135,11 @@ namespace Server.Regions
|
|||
Effects.SendLocationEffect( m.Location, m.Map, 0x35B2, 16 );
|
||||
m.Delete();
|
||||
}
|
||||
if ( m is PlayerMobile && m_MapID > 0 )
|
||||
{
|
||||
Server.Misc.MapFunctions.AddLocations( m, m_MapID );
|
||||
m.SendMessage( "You have discovered a new location!" );
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnExit( Mobile m )
|
||||
|
|
@ -516,7 +521,14 @@ namespace Server.Regions
|
|||
{
|
||||
ReadString( xml["rune"], "name", ref m_RuneName, false );
|
||||
|
||||
bool logoutDelayActive = true;
|
||||
string mapIdString = xml.GetAttribute( "mapId" );
|
||||
if ( !String.IsNullOrEmpty( mapIdString ) )
|
||||
{
|
||||
try { m_MapID = XmlConvert.ToInt32( mapIdString ); }
|
||||
catch {}
|
||||
}
|
||||
|
||||
bool logoutDelayActive = true;
|
||||
ReadBoolean( xml["logoutDelay"], "active", ref logoutDelayActive, false );
|
||||
m_NoLogoutDelay = !logoutDelayActive;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue