#W# InnExitDoor and go locations.

This commit is contained in:
WarrentyExpired 2026-08-23 15:22:22 -04:00
parent 66c963c885
commit aa8e3e15d8
5 changed files with 170 additions and 257 deletions

View file

@ -201,6 +201,11 @@ namespace Server.Mobiles
private List<Mobile> m_AllFollowers;
private List<Mobile> m_RecentlyReported;
// -- Inn Room Start
private Point3D m_LastInnLocation;
private Map m_LastInnMap;
// -- Inn Room End
#region Getters & Setters
public List<Mobile> RecentlyReported
@ -374,6 +379,22 @@ namespace Server.Mobiles
set { CandyCane.SetToothAche( this, value ); }
}
// -- Inn Room Start
[CommandProperty(AccessLevel.GameMaster)]
public Point3D LastInnLocation
{
get { return m_LastInnLocation; }
set { m_LastInnLocation = value; }
}
[CommandProperty(AccessLevel.GameMaster)]
public Map LastInnMap
{
get { return m_LastInnMap; }
set { m_LastInnMap = value; }
}
// -- Inn Room End
#endregion
#region PlayerFlags
@ -3358,6 +3379,12 @@ namespace Server.Mobiles
switch ( version )
{
case 30:
{
m_LastInnLocation = reader.ReadPoint3D();
m_LastInnMap = reader.ReadMap();
goto case 29;
}
case 29:
{
if (reader.ReadBool())
@ -3667,7 +3694,12 @@ namespace Server.Mobiles
base.Serialize( writer );
writer.Write( (int) 29 ); // version
writer.Write( (int) 30 ); // version
// -- Inn Room Start
writer.Write(m_LastInnLocation);
writer.Write(m_LastInnMap);
// -- Inn Room End
if (m_StuckMenuUses != null)
{
@ -5175,4 +5207,4 @@ namespace Server.Mobiles
m_AutoStabled.Clear();
}
}
}
}