예제 #1
0
            public override void OnResponse(NetState sender, RelayInfo info)
            {
                if (m_Ticket.Deleted || m_From == null || m_From.Backpack == null || !m_Ticket.IsChildOf(sender.Mobile.Backpack))
                {
                    return;
                }

                //int number = 0;

                Item item = null;

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

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

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

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

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

                case 6: item = new EvoSpiderEvoEgg(); /*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);
                }
            }
            public override void OnResponse(NetState sender, RelayInfo info)
            {
                if (m_Ticket == null || m_Ticket.Deleted || m_From == null || !m_Ticket.IsChildOf(m_From.Backpack))
                {
                    return;
                }

                Item item = null;

                switch (info.ButtonID)
                {
                default:
                case 0: return;

                case 1: item = new StatsBall(); break;

                case 2: item = new PromotionalToken(); break;

                case 3: item = new EtherealBeetle(); break;

                case 4: item = new SkinToneDeed(); break;

                case 5: item = new EvoSpiderEvoEgg(); break;
                }

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

				//int number = 0;

				Item item = null;

				switch ( info.ButtonID )
				{
					case 1: item = new StatsBall(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 2: break; // item = new BloodPentagramPart(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 3: item = new PromotionalToken(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 4: item = new EtherealBeetle(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 5: item = new SkinToneDeed(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 6: item = new EvoSpiderEvoEgg(); /*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 );

				}
			}