CODE |
public override bool AllowBenificial( Mobile from, Mobile target ) { if ( from.AccessLevel == AccessLevel.Player ) from.SendMessage( "You may not do that in jail." ); |
CODE |
public override bool CheckAllowedToPage( Mobile from, Mobile target ) { if ( from.AccessLevel == AccessLevel.Player ) from.SendMessage( "You may not do that in jail." ); |
QUOTE |
public static bool CheckAllowedToPage( Mobile from ) { PlayerMobile pm = from as PlayerMobile; if ( pm == null ) return true; if(Region.Find( pm.Location, pm.Map) is Jail) return false; if ( pm.DesignContext != null ) { from.SendLocalizedMessage( 500182 ); // You cannot request help while customizing a house or transferring a character. return false; } else if ( pm.PagingSquelched ) { from.SendMessage( "You cannot request help, sorry." ); return false; } return true; } |