BeginClose() public method

public BeginClose ( ) : void
return void
示例#1
0
		public override void OnResponse( NetState state, RelayInfo info )
		{
			Mobile from = state.Mobile;

			PageType type = (PageType)(-1);

			switch ( info.ButtonID )
			{
				case 0: // Close/Cancel
				{
					from.SendLocalizedMessage( 501235, "", 0x35 ); // Help request aborted.

					break;
				}
				case 1: // General question
				{
					type = PageType.Question;
					break;
				}
				case 2: // Stuck
				{
					if ( from.Region.IsPartOf( typeof( Server.Regions.Jail ) ) )
					{
						from.SendLocalizedMessage( 1114345, "", 0x35 ); // You'll need a better jailbreak plan than that!
					}
					else if ( from.CanUseStuckMenu() && from.Region.CanUseStuckMenu( from ) && !CheckCombat( from ) && !from.Frozen && !from.Criminal && from.Kills < 5 )
					{
						StuckMenu menu = new StuckMenu( from, from, true );

						menu.BeginClose();

						from.SendGump( menu );
					}
					else
					{
						type = PageType.Stuck;
					}

					break;
				}
				case 3: // Report bug or contact Origin
				{
					type = PageType.Bug;
					break;
				}
				case 4: // Game suggestion
				{
					type = PageType.Suggestion;
					break;
				}
				case 5: // Account management
				{
					type = PageType.Account;
					break;
				}
				case 6: // Other
				{
					type = PageType.Other;
					break;
				}
				case 7: // Harassment: verbal/exploit
				{
					type = PageType.VerbalHarassment;
					break;
				}
				case 8: // Harassment: physical
				{
					type = PageType.PhysicalHarassment;
					break;
				}
			}

			if ( type != (PageType)(-1) && PageQueue.CheckAllowedToPage( from ) )
				from.SendGump( new PagePromptGump( from, type ) );
		}
示例#2
0
        public override void OnResponse( NetState state, int index )
        {
            Mobile from = state.Mobile;

            PageType type = (PageType)(-1);
            switch ( index )
            {
                case 0:
                    from.LaunchBrowser( "http://www.uorebirth.com/" );
                    break;
                case 1:
                {
                    if ( from.Region is Server.Regions.Jail )
                    {
                        from.SendLocalizedMessage( 1041530, "", 0x35 ); // You'll need a better jailbreak plan then that!
                    }
                    else if ( from.CanUseStuckMenu() && from.Region.CanUseStuckMenu( from ) && !CheckCombat( from ) && !from.Frozen && !from.Criminal )
                    {
                        StuckMenu menu = new StuckMenu( from, from, true );
                        menu.BeginClose();
                        from.SendGump( menu );
                    }
                    else
                    {
                        type = PageType.Stuck;
                    }
                    break;
                }
                case 2:
                    type = PageType.Harassment;
                    break;
                case 3:
                    type = PageType.Bug;
                    break;
                case 4:
                    type = PageType.Other;
                    break;
            }

            if ( type != (PageType)(-1) && PageQueue.CheckAllowedToPage( from ) )
            {
                from.Prompt = new PagePrompt( type );
                from.SendAsciiMessage( "Enter a description of your problem, or press (Esc) to cancel:" );
            }
            //from.SendGump( new PagePromptGump( from, type ) );
        }
示例#3
0
		public override void OnResponse( NetState state, RelayInfo info )
		{
			Mobile from = state.Mobile;

			PageType type = (PageType)(-1);

			switch ( info.ButtonID )
			{
				case 0: // Close/Cancel
				{
					from.SendLocalizedMessage( 501235, "", 0x35 ); // Help request aborted.

					break;
				}
				case 1: // General question
				{
					type = PageType.Question;
					break;
				}
				case 2: // Stuck
				{
					BaseHouse house = BaseHouse.FindHouseAt( from );

					if ( house != null && house.IsAosRules )
					{
						from.Location = house.BanLocation;
					}
					else if ( from.Region.IsPartOf( typeof( Server.Regions.Jail ) ) )
					{
						from.SendLocalizedMessage( 1041530, "", 0x35 ); // You'll need a better jailbreak plan then that!
					}
					else if ( Factions.Sigil.ExistsOn( from ) )
					{
						from.SendLocalizedMessage( 1061632 ); // You can't do that while carrying the sigil.
					}
					else if ( from.CanUseStuckMenu() && from.Region.CanUseStuckMenu( from ) && !CheckCombat( from ) && !from.Frozen && !from.Criminal && (Core.AOS || from.Kills < 5) )
					{
						StuckMenu menu = new StuckMenu( from, from, true );

						menu.BeginClose();

						from.SendGump( menu );
					}
					else
					{
						type = PageType.Stuck;
					}

					break;
				}
				case 3: // Report bug or contact Origin
				{
					type = PageType.Bug;
					break;
				}
				case 4: // Game suggestion
				{
					type = PageType.Suggestion;
					break;
				}
				case 5: // Account management
				{
					type = PageType.Account;
					break;
				}
				case 6: // Other
				{
					type = PageType.Other;
					break;
				}
				case 7: // Harassment: verbal/exploit
				{
					type = PageType.VerbalHarassment;
					break;
				}
				case 8: // Harassment: physical
				{
					type = PageType.PhysicalHarassment;
					break;
				}
				case 9: // Young player transport
				{
					if ( IsYoung( from ) )
					{
						if ( from.Region.IsPartOf( typeof( Regions.Jail ) ) )
						{
							from.SendLocalizedMessage( 1041530, "", 0x35 ); // You'll need a better jailbreak plan then that!
						}
						else if ( from.Region.IsPartOf( "Haven Island" ) )
						{
							from.SendLocalizedMessage( 1041529 ); // You're already in Haven
						}
						else
						{
							from.MoveToWorld( new Point3D( 3503, 2574, 14 ), Map.Trammel );
						}
					}

					break;
				}
			}

			if ( type != (PageType)(-1) && PageQueue.CheckAllowedToPage( from ) )
				from.SendGump( new PagePromptGump( from, type ) );
		}
示例#4
0
        public override void OnResponse(NetState state, int index)
        {
            Mobile from = state.Mobile;

            PageType type = (PageType)(-1);

            switch (index)
            {
                /*case 0: // Close/Cancel
                    {
                        from.SendAsciiMessage("Help request unchanged.", 0x35); // Help request aborted.

                        break;
                    }*/
                case 0: // General question
                    {
                        type = PageType.Question;
                        break;
                    }
                case 1: // Stuck
                    {
                        BaseHouse house = BaseHouse.FindHouseAt(from);

                        if (house != null && house.IsAosRules)
                        {
                            from.Location = house.BanLocation;
                        }
                        else if (from.Region.IsPartOf(typeof(Server.Regions.Jail)))
                        {
                            from.SendLocalizedMessage(0x35,"You'll need a better jailbreak plan then that!"); // You'll need a better jailbreak plan then that!
                        }
                        else if (Factions.Sigil.ExistsOn(from))
                        {
                            from.SendLocalizedMessage(1061632); // You can't do that while carrying the sigil.
                        }
                        else if (from.CanUseStuckMenu() && from.Region.CanUseStuckMenu(from) && !CheckCombat(from) && !from.Frozen && !from.Criminal && (Core.AOS || from.Kills < 5))
                        {
                            StuckMenu menu = new StuckMenu(from, from, true);

                            menu.BeginClose();

                            from.SendGump(menu);
                        }
                        else
                        {
                            type = PageType.Stuck;
                        }

                        break;
                    }
                case 2: // Harassment: verbal/exploit
                    {
                        type = PageType.VerbalHarassment;
                        break;
                    }
                case 3: // Other
                    {
                        type = PageType.Other;
                        break;
                    }
            }

            if (type != (PageType)(-1) && PageQueue.CheckAllowedToPage(from))
            {
                from.SendAsciiMessage(0x35, "Please enter a brief description (up to 40 characters) of your problem:");
                from.Prompt = new HelpPrompt(from, type);
            }
                //from.SendGump(new PagePromptGump(from, type));
        }
示例#5
0
		public override void OnResponse(NetState state, RelayInfo info)
		{
			Mobile from = state.Mobile;

			var type = (PageType)(-1);

			switch (info.ButtonID)
			{
				case 0: // Close/Cancel
					{
						from.SendLocalizedMessage(501235, "", 0x35); // Help request aborted.

						break;
					}
				case 1: // General question
					{
						type = PageType.Question;
						break;
					}
				case 2: // Stuck
					{
						if (from is BaseCreature)
						{
							from.SendMessage("You can't use the help stuck menu if on anything but a player character!");
							return;
						}
                        if (from != null && from.Map == Map.ZombieLand)
                        {
                            from.SendMessage(54, "You cannot use the stuck option while in the zombie event.  Please log out of the event first.");
                            return;
                        }
						BaseHouse house = BaseHouse.FindHouseAt(from);

						if (house != null && house.IsAosRules && !from.Region.IsPartOf(typeof(SafeZone))) // Dueling
						{
							from.Location = house.BanLocation;
						}
						else if (from.Region.IsPartOf(typeof(Regions.Jail)))
						{
							from.SendLocalizedMessage(1114345, "", 0x35); // You'll need a better jailbreak plan than that!
						}
						else if (Sigil.ExistsOn(from))
						{
							from.SendLocalizedMessage(1061632); // You can't do that while carrying the sigil.
						}
						else if (from.CanUseStuckMenu() && from.Region.CanUseStuckMenu(from) && !CheckCombat(from) && !from.Frozen &&
								 !from.Criminal) // && (Core.AOS || from.Kills < Mobile.MurderCount) )
						{
							var menu = new StuckMenu(from, from, true);

							menu.BeginClose();

							from.SendGump(menu);
						}
						else
						{
							type = PageType.Stuck;
						}

						break;
					}
				case 3: // Report bug or contact UOFOREVER
					{
						type = PageType.Bug;
						break;
					}
				case 4: // Game suggestion
					{
						type = PageType.Suggestion;
						break;
					}
				case 5: // Account management
					{
						type = PageType.Account;
						break;
					}
				case 6: // Other
					{
						type = PageType.Other;
						break;
					}
				case 7: // Harassment: verbal/exploit
					{
						type = PageType.VerbalHarassment;
						break;
					}
				case 8: // Harassment: physical
					{
						type = PageType.PhysicalHarassment;
						break;
					}
				case 9: // Young player transport
					{
						if (IsYoung(from))
						{
							if (from.Region.IsPartOf(typeof(Regions.Jail)))
							{
								from.SendLocalizedMessage(1114345, "", 0x35);
								// You'll need a better jailbreak plan than that!
							}
							else if (from.Region.IsPartOf("Haven Island"))
							{
								from.SendLocalizedMessage(1041529); // You're already in Haven
							}
							else
							{
								from.MoveToWorld(new Point3D(3503, 2574, 14), Map.Felucca);
							}
						}

						break;
					}
			}

			if (type != (PageType)(-1) && PageQueue.CheckAllowedToPage(from))
			{
				from.SendGump(new PagePromptGump(from, type));
			}
		}
        public override void OnResponse(NetState state, RelayInfo info)
        {
            Mobile from = state.Mobile;

            PageType type = (PageType)(-1);

            switch ( info.ButtonID )
            {
                case 0: // Close/Cancel
                    {
                        from.SendLocalizedMessage(501235, "", 0x35); // Help request aborted.

                        break;
                    }
                case 1: // General question about Ultima Online
                    {
                        from.LaunchBrowser("http://www.uo.com");
                        break;
                    }
                case 2: // Stuck
                    {
                        var house = BaseHouse.FindHouseAt(from);

                        if (house != null && house.IsAosRules && !from.Region.IsPartOf(typeof(Engines.ConPVP.SafeZone))) // Dueling
                        {
                            from.Location = house.BanLocation;
                        }
                        else if (from.Region.IsPartOf(typeof(Regions.Jail)))
                        {
                            from.SendLocalizedMessage(1041530, "", 0x35); // You'll need a better jailbreak plan then that!
                        }
                        else if (Factions.Sigil.ExistsOn(from))
                        {
                            from.SendLocalizedMessage(1061632); // You can't do that while carrying the sigil.
                        }
                        else if (from.CanUseStuckMenu() && from.Region.CanUseStuckMenu(from) && !CheckCombat(from) && !from.Frozen && !from.Criminal)
                        {
                            StuckMenu menu = new StuckMenu(from, from, true);

                            menu.BeginClose();

                            from.SendGump(menu);
                        }
                        else
                        {
                            type = PageType.Stuck;
                        }

                        break;
                    }
                case 3: // Harassment: Verbal
                    {
                        type = PageType.VerbalHarassment;
                        break;
                    }
                case 4: // Other
                    {
                        type = PageType.Other;
                        break;
                    }
                case 5: // Visit the OWO web page
                    {
                        from.LaunchBrowser("http://www.uoguide.com/");
                        break;
                    }
                case 6: // Report a bug or contact Origin
                    {
                        from.LaunchBrowser("http://www.uo.com");
                        break;
                    }
                case 7: // Contact a Councelor
                    {
                        type = PageType.Question;
                        break;
                    }
                case 8: // Visit the Ultima Online web site
                    {
                        from.LaunchBrowser("http://www.uo.com");
                        break;
                    }
                case 10: // Young player transport
                    {
                        if (IsYoung(from))
                        {
                            if (from.Region.IsPartOf(typeof(Regions.Jail)))
                            {
                                from.SendLocalizedMessage(1041530, "", 0x35); // You'll need a better jailbreak plan then that!
                            }
                            else if (from.Region.Name == "Haven" || from.Region.Name == "New Haven")
                            {
                                from.SendLocalizedMessage(1041529); // You're already in Haven
                            }
                            else
                            {
                                if (from.Alive)
                                    from.MoveToWorld(new Point3D(3503, 2574, 14), Map.Trammel);
                                else
                                    from.MoveToWorld(new Point3D(3469, 2559, 36), Map.Trammel);
                            }
                        }

                        break;
                    }
                case 11: // Promotional Code
                    {
                        //if (PromotionalSystem.Enabled)
                        //{
                        //    from.SendGump(new PromotionalCodeGump());
                        //}
                        //else
                        //{
                            from.SendLocalizedMessage(1062904); // The promo code redemption system is currently unavailable. Please try again later.

                            from.SendLocalizedMessage(501235, "", 0x35); // Help request aborted.
                        //}

                        break;
                    }
                case 12: // Harassment: Physical
                    {
                        type = PageType.PhysicalHarassment;
                        break;
                    }
            }

            if (type != (PageType)(-1) && PageQueue.CheckAllowedToPage(from))
            {
                from.SendGump(new PagePromptGump(from, type));
            }
        }
        public override void OnResponse( NetState state, RelayInfo info )
        {
            Mobile from = state.Mobile;

            PageType type = (PageType)(-1);

            switch ( info.ButtonID )
            {
                case 0: // Close/Cancel
                {
                    from.SendLocalizedMessage( 501235, "", 0x35 ); // Help request aborted.

                    break;
                }
                case 1: // General question
                {
                    type = PageType.Question;
                    break;
                }
                case 2: // Stuck
                {
                    BaseHouse house = BaseHouse.FindHouseAt( from );

                    if ( house != null && house.IsAosRules )
                    {
                        from.Location = house.BanLocation;
                    }
                    else if ( from.Region.IsPartOf( typeof( Server.Regions.Jail ) ) )
                    {
                        from.SendLocalizedMessage( 1041530, "", 0x35 ); // You'll need a better jailbreak plan then that!
                    }
                    else if ( Factions.Sigil.ExistsOn( from ) )
                    {
                        from.SendLocalizedMessage( 1061632 ); // You can't do that while carrying the sigil.
                    }
                    else if ( from.CanUseStuckMenu() && from.Region.CanUseStuckMenu( from ) && !CheckCombat( from ) && !from.Frozen && !from.Criminal && (Core.AOS || from.Kills < 5) )
                    {
                        StuckMenu menu = new StuckMenu( from, from, true );

                        menu.BeginClose();

                        from.SendGump( menu );
                    }
                    else
                    {
                        type = PageType.Stuck;
                    }

                    break;
                }
                case 3: // Report bug
                {
                    from.LaunchBrowser( "http://bug.casiopia.net/" );
                    type = PageType.Bug;
                    break;
                }
                case 4: // Game suggestion
                {
                    from.LaunchBrowser( "http://www.defianceuo.com/forum/forumdisplay.php?f=232" );
                    type = PageType.Suggestion;
                    break;
                }
                case 5: // Account management
                {
                    from.LaunchBrowser( "http://accounts.defianceuo.com/pwchange.php" );
                    type = PageType.Account;
                    break;
                }
                case 6: // Other
                {
                    type = PageType.Other;
                    break;
                }
                case 7: // Harassment: verbal/exploit
                {
                    type = PageType.VerbalHarassment;
                    break;
                }
                case 8: // Harassment: physical
                {
                    type = PageType.PhysicalHarassment;
                    break;
                }
                case 9: // Young player transport
                {
                    if ( IsYoung( from ) )
                    {
                        if ( from.Region.IsPartOf( typeof( Regions.Jail ) ) )
                        {
                            from.SendLocalizedMessage( 1041530, "", 0x35 ); // You'll need a better jailbreak plan then that!
                        }
                        // *** Changed Code ***
                        else if ( from.Region.IsPartOf( "Britain" ) )
                        {
                            from.SendMessage("You're already in Britain");
                        }
                        else
                        {
                            from.MoveToWorld(new Point3D(1519, 1619, 10), Map.Felucca);
                        }
                        // *** ***
                    }
                    break;
                }
                case 10: // Dfi homepage
                {
                    from.LaunchBrowser( "http://www.defianceuo.com/main.php" );
                    break;
                }
                case 11: // Dfi forums
                {
                    from.LaunchBrowser( "http://www.defianceuo.com/forum/" );
                    break;
                }
                case 12: // Dfi wiki
                {
                    from.LaunchBrowser( "http://www.mydotdot.com/dfiwiki/index.php?title=Main_Page" );
                    break;
                }
                case 13: // Ultima Online Top 200
                {
                    from.LaunchBrowser( "http://www.gamesites200.com/ultimaonline/in.php?id=1298" );
                    break;
                }
            }

            if ( type != (PageType)(-1) && PageQueue.CheckAllowedToPage( from ) )
                from.SendGump( new PagePromptGump( from, type ) );
        }
示例#8
0
		public override void OnResponse( NetState state, RelayInfo info )
		{
			Mobile from = state.Mobile;

			PageType type = (PageType)(-1);

			switch ( info.ButtonID )
			{
				case 0: // Close/Cancel
				{
					from.SendLocalizedMessage( 501235, ""); // Help request aborted.

					break;
				}
				case 1: // General question
				{
					type = PageType.Question;
					break;
				}
				case 2: // Stuck
				{
					BaseHouse house = BaseHouse.FindHouseAt( from );

					if ( house != null && house.IsAosRules )
					{
						from.Location = house.BanLocation;
					}
					else if ( from.Region.IsPartOf( typeof( Jail ) ) )
					{
                        from.SendLocalizedMessage(1114345, "", 0x35); // You'll need a better jailbreak plan than that!
                    }
					else if ( Sigil.ExistsOn( from ) )
					{
						from.SendLocalizedMessage( 1061632 ); // You can't do that while carrying the sigil.
					}
					else if ( from.CanUseStuckMenu() && from.Region.CanUseStuckMenu( from ) )
					{
						StuckMenu menu = new StuckMenu( from, from, true );

						menu.BeginClose();

						from.SendGump( menu );
					}
					else
					{
						type = PageType.Stuck;
					}

					break;
				}
				case 3: // Report bug or contact Origin
				{
					type = PageType.Bug;
					break;
				}
				case 4: // Game suggestion
				{
					type = PageType.Suggestion;
					break;
				}
				case 5: // Account management
				{
					type = PageType.Account;
					break;
				}
				case 6: // Other
				{
					type = PageType.Other;
					break;
				}
				case 7: // Harassment: verbal/exploit
				{
					type = PageType.VerbalHarassment;
					break;
				}
				case 8: // Harassment: physical
				{
					type = PageType.PhysicalHarassment;
					break;
				}
				case 9: // Young player transport
				{
					if ( IsYoung( from ) )
					{
						if ( from.Region.IsPartOf( typeof( Jail ) ) )
						{
                            from.SendLocalizedMessage(1114345, "", 0x35); // You'll need a better jailbreak plan than that!
                        }
                        else if ( from.CanUseStuckMenu() && from.Region.CanUseStuckMenu( from ) )
                        {
                            from.MoveToWorld(new Point3D(1426, 1696, 0), Map.Felucca);
                            
                            if (from.IsInEvent)
                            {
                                from.IsInEvent = false;
                                from.SendAsciiMessage("You auto supply has been removed.");

                                SupplySystem.RemoveEventGear(from);
                            }
                        }
						else
						{
                            from.SendAsciiMessage("You cannot use the young player transport system from where you are");
						}
					}

					break;
				}
			}

			if ( type != (PageType)(-1) && PageQueue.CheckAllowedToPage( from ) )
				from.SendGump( new PagePromptGump( from, type ) );
		}