Пример #1
0
            public override void OnResponse(NetState sender, RelayInfo info)
            {
                if (m_Ticket == null || m_Ticket.Deleted || !m_Ticket.IsChildOf(sender.Mobile.Backpack))
                {
                    return;
                }

                //int number = 0;

                Item item  = null;
                Item item2 = null;

                switch (info.ButtonID)
                {
                case 1: item = new LimitedSevenGMSkillBall(); /*number = 1049368;*/ break;              // You have been rewarded for your dedication to Justice!.

                case 2: item = new EtherealCuSidhe(); /*number = 1049368;*/ break;                      // You have been rewarded for your dedication to Justice!.

                case 3: item = new SpecialHairRestylingDeed(); /*number = 1049368;*/ break;             // You have been rewarded for your dedication to Justice!.

                case 4: item = new BlackHairDye(); /*number = 1049368;*/ break;                         // You have been rewarded for your dedication to Justice!.

                case 5: item = new HoodedShroudOfShadows(); /*number = 1049368;*/ break;                // You have been rewarded for your dedication to Justice!.

                case 6: item = new DyeTub(); item2 = new Dyes(); /*number = 1049368;*/ break;           // You have been rewarded for your dedication to Justice!.
                }

                if (item != null)
                {
                    m_Ticket.Delete();

                    //m_From.SendLocalizedMessage( number );
                    m_From.AddToBackpack(item);

                    if (item2 != null)
                    {
                        m_From.AddToBackpack(item2);
                    }
                }
            }
			public override void OnResponse( NetState sender, RelayInfo info )
			{
				if ( m_Ticket == null || m_Ticket.Deleted || !m_Ticket.IsChildOf( sender.Mobile.Backpack ) )
					return;

				//int number = 0;

				Item item = null;
				Item item2 = null;

				switch ( info.ButtonID )
				{
					case 1: item = new LimitedSevenGMSkillBall(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 2: item = new EtherealWolfRider(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 3: item = new SpecialHairRestylingDeed(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 4: item = new BlackHairDye(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 5: item = new HoodedShroudOfShadows(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 6: item = new DyeTub(); item2 = new Dyes(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
				}

				if ( item != null )
				{
					m_Ticket.Delete();

					//m_From.SendLocalizedMessage( number );
					m_From.AddToBackpack( item );

					if ( item2 != null)
						m_From.AddToBackpack( item2 );
				}
			}