- Ore bought from faction ore vendors is no longer randomly sized.
- Ore is no longer a deedable commodity. - Added StaffOnly condition to ConditionTeleporter. - Account/IAccount now compares greater than null. - General BaseOre cleanup. - Fixed BaseOre smelting bug where any ore over 30k would be discarded. - Added a 2 tile range check to FishingPole OnDoubleClick. - Removed redundant checks from BaseAxe OnDoubleClick. - General SkillCheck cleanup. - Fixed a typo in SkillMod. - Added CommandProperty to Mobile NetState. - Implemented IComparable for NetState.
This commit is contained in:
parent
24eca5c9c8
commit
3f4a2c4dc8
10 changed files with 148 additions and 123 deletions
|
|
@ -909,7 +909,8 @@ namespace Server.Items
|
|||
DenyPackContents = 0x04,
|
||||
DenyHolding = 0x08,
|
||||
DenyEquipment = 0x10,
|
||||
DenyTransformed = 0x20
|
||||
DenyTransformed = 0x20,
|
||||
StaffOnly = 0x40
|
||||
}
|
||||
|
||||
private ConditionFlag m_Flags;
|
||||
|
|
@ -956,11 +957,21 @@ namespace Server.Items
|
|||
set{ SetFlag( ConditionFlag.DenyTransformed, value ); InvalidateProperties(); }
|
||||
}
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public bool StaffOnly
|
||||
{
|
||||
get{ return GetFlag( ConditionFlag.StaffOnly ); }
|
||||
set{ SetFlag( ConditionFlag.StaffOnly, value ); InvalidateProperties(); }
|
||||
}
|
||||
|
||||
public override bool CanTeleport( Mobile m )
|
||||
{
|
||||
if ( !base.CanTeleport( m ) )
|
||||
return false;
|
||||
|
||||
if ( GetFlag( ConditionFlag.StaffOnly ) && m.AccessLevel < AccessLevel.Counselor )
|
||||
return false;
|
||||
|
||||
if ( GetFlag( ConditionFlag.DenyMounted ) && m.Mounted )
|
||||
{
|
||||
m.SendLocalizedMessage( 1077252 ); // You must dismount before proceeding.
|
||||
|
|
@ -1048,6 +1059,9 @@ namespace Server.Items
|
|||
if ( GetFlag( ConditionFlag.DenyTransformed ) )
|
||||
props.Append( "<BR>Deny Transformed" );
|
||||
|
||||
if ( GetFlag( ConditionFlag.StaffOnly ) )
|
||||
props.Append( "<BR>Staff Only" );
|
||||
|
||||
if ( props.Length != 0 )
|
||||
{
|
||||
props.Remove( 0, 4 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue