public override void OnDoubleClick(Mobile from) { Target t; if (from.AccessLevel >= AccessLevel.GameMaster) { base.OnDoubleClick(from); } if (Count > 0) { t = new RingUnlockTarget(this); from.SendMessage("What do you wish to unlock?"); from.Target = t; } else { from.SendMessage("The keyring contains no keys"); } }
public override void OnDoubleClick(Mobile from) { if (!this.IsChildOf(from.Backpack)) { from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it. return; } Target t; if (Count > 0) { t = new RingUnlockTarget(this); from.SendLocalizedMessage(501680); // What do you want to unlock? from.Target = t; } else { from.SendMessage("The keyring contains no keys"); } }
public override void OnDoubleClick( Mobile from ) { Target t; if( from.AccessLevel >= AccessLevel.GameMaster ) { base.OnDoubleClick(from); } if ( Count > 0 ) { t = new RingUnlockTarget( this ); from.SendMessage( "What do you wish to unlock?" ); from.Target = t; } else { from.SendMessage("The keyring contains no keys"); } }