- Removed the complete IP listing when clearing an account's address list in AdminGump. (Due to client limitations for very long lists.)

- Fixed an LOS bug resulting from revision 865 changes, causing items near ceilings to be out of sight.
- Trailing whitespace removal for character statue scripts.
This commit is contained in:
eos 2012-04-29 00:13:41 +00:00
parent d197020a58
commit 96725e7ea8
6 changed files with 86 additions and 95 deletions

View file

@ -5,11 +5,11 @@ using Server.Targets;
using Server.Engines.VeteranRewards;
namespace Server.Items
{
{
public class CharacterStatueMaker : Item, IRewardItem
{
public override int LabelNumber{ get{ return 1076173; } } // Character Statue Maker
private bool m_IsRewardItem;
private StatueType m_Type;
@ -26,26 +26,26 @@ namespace Server.Items
get{ return m_Type; }
set{ m_Type = value; InvalidateHue(); }
}
public CharacterStatueMaker( StatueType type ) : base( 0x32F0 )
{
m_Type = type;
InvalidateHue();
LootType = LootType.Blessed;
Weight = 5.0;
}
public CharacterStatueMaker( Serial serial ) : base( serial )
{
}
}
public override void OnDoubleClick( Mobile from )
{
if ( m_IsRewardItem && !RewardSystem.CheckIsUsableBy( from, this, new object[] { m_Type } ) )
return;
if ( IsChildOf( from.Backpack ) )
{
if ( !from.IsBodyMod )
@ -59,13 +59,13 @@ namespace Server.Items
else
from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
}
public override void GetProperties( ObjectPropertyList list )
{
base.GetProperties( list );
if ( m_IsRewardItem )
list.Add( 1076222 ); // 6th Year Veteran Reward
list.Add( 1076222 ); // 6th Year Veteran Reward
}
public override void Serialize( GenericWriter writer )
@ -73,7 +73,7 @@ namespace Server.Items
base.Serialize( writer );
writer.WriteEncodedInt( (int) 0 ); // version
writer.Write( (bool) m_IsRewardItem );
writer.Write( (int) m_Type );
}
@ -87,23 +87,23 @@ namespace Server.Items
m_IsRewardItem = reader.ReadBool();
m_Type = (StatueType) reader.ReadInt();
}
public void InvalidateHue()
{
Hue = 0xB8F + (int) m_Type * 4;
}
}
public class MarbleStatueMaker : CharacterStatueMaker
{
[Constructable]
public MarbleStatueMaker() : base( StatueType.Marble )
{
}
public MarbleStatueMaker( Serial serial ) : base( serial )
{
}
}
public override void Serialize( GenericWriter writer )
{
@ -119,17 +119,17 @@ namespace Server.Items
int version = reader.ReadEncodedInt();
}
}
public class JadeStatueMaker : CharacterStatueMaker
{
[Constructable]
public JadeStatueMaker() : base( StatueType.Jade )
{
}
public JadeStatueMaker( Serial serial ) : base( serial )
{
}
}
public override void Serialize( GenericWriter writer )
{
@ -145,17 +145,17 @@ namespace Server.Items
int version = reader.ReadEncodedInt();
}
}
public class BronzeStatueMaker : CharacterStatueMaker
{
[Constructable]
public BronzeStatueMaker() : base( StatueType.Bronze )
{
}
public BronzeStatueMaker( Serial serial ) : base( serial )
{
}
}
public override void Serialize( GenericWriter writer )
{