- IPTable update when deleting accounts, so the creation IP address gets a new account spot.

- Added AdminGump option for removing account access IP addresses.
- Firebombs now cancel the target properly when exploding.
- Fixed item placement bug when creating firebombs.
- Added criminal check option to Teleporter.
- Fixed item placement bug when opening MIBs.
- Made SOS flipable.
- Opening an SOS will no longer close other SOS gumps.
- Corrected Leafblade to be a Fencing weapon.
- Meer mages no longer cast plagues on pets, only on players.
- Corrected skills typo in CorruptedSoul.
- Movement induced by angering a monster during taming will now respect movement timers.
- Teleporting into keep walls is no longer possible.
- Removed the ability to have line of sight under a house plot through house walls.
- Added the Frozen mobile flag, providing clients with information on when they are frozen. (The client then disallows movement.)
- Fix for character statue redeeding issues.
This commit is contained in:
eos 2012-04-22 04:10:06 +00:00
parent a3f8cb5fc6
commit c52504151b
18 changed files with 309 additions and 122 deletions

View file

@ -8,7 +8,7 @@ namespace Server.Items
{
public class Teleporter : Item
{
private bool m_Active, m_Creatures, m_CombatCheck;
private bool m_Active, m_Creatures, m_CombatCheck, m_CriminalCheck;
private Point3D m_PointDest;
private Map m_MapDest;
private bool m_SourceEffect;
@ -79,6 +79,13 @@ namespace Server.Items
set { m_CombatCheck = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public bool CriminalCheck
{
get { return m_CriminalCheck; }
set { m_CriminalCheck = value; InvalidateProperties(); }
}
public override int LabelNumber{ get{ return 1026095; } } // teleporter
[Constructable]
@ -103,6 +110,7 @@ namespace Server.Items
m_Creatures = creatures;
m_CombatCheck = false;
m_CriminalCheck = false;
}
public override void GetProperties( ObjectPropertyList list )
@ -183,7 +191,14 @@ namespace Server.Items
if ( m_Active )
{
if ( !m_Creatures && !m.Player )
{
return true;
}
else if ( m_CriminalCheck && m.Criminal )
{
m.SendLocalizedMessage( 1005561, "", 0x22 ); // Thou'rt a criminal and cannot escape so easily.
return true;
}
else if ( m_CombatCheck && SpellHelper.CheckCombat( m ) )
{
m.SendLocalizedMessage( 1005564, "", 0x22 ); // Wouldst thou flee during the heat of battle??
@ -205,8 +220,9 @@ namespace Server.Items
{
base.Serialize( writer );
writer.Write( (int) 3 ); // version
writer.Write( (int) 4 ); // version
writer.Write( (bool) m_CriminalCheck );
writer.Write( (bool) m_CombatCheck );
writer.Write( (bool) m_SourceEffect );
@ -229,6 +245,11 @@ namespace Server.Items
switch ( version )
{
case 4:
{
m_CriminalCheck = reader.ReadBool();
goto case 3;
}
case 3:
{
m_CombatCheck = reader.ReadBool();