#W# Reworking Inn rooms.
This commit is contained in:
parent
7104f56ebf
commit
66eafd3451
15 changed files with 918 additions and 576 deletions
|
|
@ -201,6 +201,11 @@ namespace Server.Mobiles
|
|||
private List<Mobile> m_AllFollowers;
|
||||
private List<Mobile> m_RecentlyReported;
|
||||
|
||||
// --- Start Inn Room
|
||||
private Point3D m_LastInnLocation;
|
||||
private Map m_LastInnMap;
|
||||
// -- End Inn Room
|
||||
|
||||
#region Getters & Setters
|
||||
|
||||
public List<Mobile> RecentlyReported
|
||||
|
|
@ -473,6 +478,22 @@ namespace Server.Mobiles
|
|||
get{ return GetFlag( PlayerFlag.RefuseTrades ); }
|
||||
set{ SetFlag( PlayerFlag.RefuseTrades, value ); }
|
||||
}
|
||||
|
||||
// -- Start Inn Room
|
||||
[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; }
|
||||
}
|
||||
// -- End Inn Room
|
||||
#endregion
|
||||
|
||||
#region Auto Arrow Recovery
|
||||
|
|
@ -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
|
||||
|
||||
// -- Start Inn Room
|
||||
writer.Write( m_LastInnLocation );
|
||||
writer.Write( m_LastInnMap );
|
||||
// -- End Inn Room
|
||||
|
||||
if (m_StuckMenuUses != null)
|
||||
{
|
||||
|
|
@ -5175,4 +5207,4 @@ namespace Server.Mobiles
|
|||
m_AutoStabled.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue