/// <summary> /// Requests the start of a new auction /// </summary> /// <param name="m">The mobile requesting the auction</param> public static void AuctionRequest( Mobile mobile ) { if ( CanAuction( mobile ) ) { mobile.SendMessage( AuctionConfig.MessageHue, AuctionSystem.ST[ 191 ] ); mobile.CloseAllGumps(); mobile.Target = new AuctionTarget( new AuctionTargetCallback( OnNewAuctionTarget ), -1, false ); } else { mobile.SendMessage( AuctionConfig.MessageHue, AuctionSystem.ST[ 192 ], AuctionSystem.MaxAuctions ); mobile.SendGump( new AuctionGump( mobile ) ); } }
/// <summary> /// Requests the start of a new auction /// </summary> /// <param name="m">The mobile requesting the auction</param> public static void AuctionRequest( Mobile mobile ) { if ( CanAuction( mobile ) ) { mobile.SendMessage( AuctionConfig.MessageHue, AuctionSystem.ST[ 191 ] ); mobile.CloseAllGumps(); if (mobile.AccessLevel >= AccessLevel.Counselor) Joeku.ToolbarHelper.SendToolbar(mobile); // mobile.CloseGump(typeof(AuctionGump)); // mobile.CloseGump(typeof(AuctionNoticeGump)); // mobile.CloseGump(typeof(AuctionControlGump)); // mobile.CloseGump(typeof(AuctionMessageGump)); // mobile.CloseGump(typeof(AuctionSortGump)); // mobile.CloseGump(typeof(MyAuctionGump)); // mobile.CloseGump(typeof(AuctionDeliveryGump)); // mobile.CloseGump(typeof(AuctionAdminGump)); // mobile.CloseGump(typeof(CreatureDeliveryGump)); // mobile.CloseGump(typeof(DeleteAuctionGump)); // mobile.CloseGump(typeof(AuctionViewGump)); // mobile.CloseGump(typeof(NewAuctionGump)); // mobile.CloseGump(typeof(AuctionSearchGump)); // mobile.CloseGump(typeof(AuctionListing)); mobile.Target = new AuctionTarget( new AuctionTargetCallback( OnNewAuctionTarget ), -1, false ); } else { mobile.SendMessage( AuctionConfig.MessageHue, AuctionSystem.ST[ 192 ], AuctionSystem.MaxAuctions ); mobile.SendGump( new AuctionGump( mobile ) ); } }