示例#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 IceBlueDonationBox()
		{
			Weight = 1.0;
			Hue = 1154;
			Item item = null;
			Name = "Defiance Iceblue Member Box";

			PlaceItemIn( 16, 60, (item = new SkillBall( 25 )) );
			item.Hue = 5;
			PlaceItemIn( 28, 60, (item = new SkillBall( 25 )) );
			item.Hue = 5;
			PlaceItemIn( 41, 58, (item = new SevenGMSkillBall()) );
                        item.Hue = 1161;
                        PlaceItemIn( 53, 58, (item = new StatsBall()) );
                        item.Hue = 1161;

			PlaceItemIn( 16, 81, (item = new HoodedShroudOfShadows()) );
			item.Hue = 1154;
			item.Name = "Iceblue Shroud of Shadows";
                        item.LootType = LootType.Blessed;

			BaseContainer cont;
			PlaceItemIn( 58, 57, (cont = new Backpack()) );
			cont.Hue = 1154;
			cont.Name = "an iceblue backpack";

			cont.PlaceItemIn( 44, 65, new SulfurousAsh(10000) );
			cont.PlaceItemIn( 77, 65, new Nightshade(10000) );
			cont.PlaceItemIn( 110, 65, new SpidersSilk(10000) );
			cont.PlaceItemIn( 143, 65, new Garlic(10000) );

			cont.PlaceItemIn( 44, 128, new Ginseng(10000) );
			cont.PlaceItemIn( 77, 128, new Bloodmoss(10000) );
			cont.PlaceItemIn( 110, 128, new BlackPearl(10000) );
			cont.PlaceItemIn( 143, 128, new MandrakeRoot(10000) );

			PlaceItemIn( 90, 58, (item = new AncientCoat()) );
			item.Hue = 1154;
			item.Name = "Iceblue Ancient Coat";
                        item.LootType = LootType.Blessed;

		        PlaceItemIn( 74, 64, (item = new WizardGlasses()) );
                        item.Hue = Utility.RandomList(1154);
			PlaceItemIn( 103, 58, (item = new Sandals()) );
			item.Hue = Utility.RandomList(1154);
                        item.Name = "Polar Sandals";
			item.LootType = LootType.Blessed;

			PlaceItemIn( 122, 53, new SpecialDonateDye() );
			PlaceItemIn( 133, 53, new SpecialDonateDyeBeard() );

			PlaceItemIn( 156, 55, (item = new EtherealLongManeHorse()) );
			item.Hue = 1154;

			PlaceItemIn( 34, 83, (item = new HolyDeedofBlessing()) );
			item.Hue = 1154;
	                PlaceItemIn( 43, 83, (item = new CursedClothingBlessDeed()) );
			item.Hue = 1154;
			PlaceItemIn( 58, 83, (item = new SpecialHairRestylingDeed()) );
			item.Hue = 1154;
			PlaceItemIn( 73, 83, (item = new SmallBrickHouseDeed()) );
			item.Hue = 1154;
			PlaceItemIn( 88, 83, (item = new NameChangeDeed()) );
			item.Hue = 1154;
			PlaceItemIn( 103, 83, (item = new AntiBlessDeed()) );
			item.Hue = 1154;
			PlaceItemIn( 118, 83, (item = new BankCheck(100000)) );
			item.Hue = 1154;
			PlaceItemIn(130, 83, (item = new MembershipTicket()));
			item.Hue = 1154;
			((MembershipTicket)item).MemberShipTime = TimeSpan.FromDays(730);
		}
示例#3
0
        public DarkRedDonationBox()
        {
            Weight = 1.0;
            Hue    = 1645;
            Item item = null;

            Name = "Defiance Dark Red Member Box";

            PlaceItemIn(16, 60, (item = new SkillBall(25)));
            item.Hue = 5;
            PlaceItemIn(28, 60, (item = new SkillBall(25)));
            item.Hue = 5;
            PlaceItemIn(41, 58, (item = new SevenGMSkillBall()));
            item.Hue = 1161;
            PlaceItemIn(53, 58, (item = new StatsBall()));
            item.Hue = 1161;

            PlaceItemIn(16, 81, (item = new HoodedShroudOfShadows()));
            item.Hue      = 1645;
            item.Name     = "Dark Red Shroud of Shadows";
            item.LootType = LootType.Blessed;

            BaseContainer cont;

            PlaceItemIn(58, 57, (cont = new Backpack()));
            cont.Hue  = 1645;
            cont.Name = "a dark red backpack";

            cont.PlaceItemIn(44, 65, new SulfurousAsh(10000));
            cont.PlaceItemIn(77, 65, new Nightshade(10000));
            cont.PlaceItemIn(110, 65, new SpidersSilk(10000));
            cont.PlaceItemIn(143, 65, new Garlic(10000));

            cont.PlaceItemIn(44, 128, new Ginseng(10000));
            cont.PlaceItemIn(77, 128, new Bloodmoss(10000));
            cont.PlaceItemIn(110, 128, new BlackPearl(10000));
            cont.PlaceItemIn(143, 128, new MandrakeRoot(10000));

            PlaceItemIn(90, 58, (item = new AncientCoat()));
            item.Hue      = 1645;
            item.Name     = "Dark Red Ancient Coat";
            item.LootType = LootType.Blessed;

            PlaceItemIn(74, 64, (item = new WizardGlasses()));
            item.Hue = Utility.RandomList(1645);
            PlaceItemIn(103, 58, (item = new Sandals()));
            item.Hue      = Utility.RandomList(1645);
            item.Name     = "Polar Sandals";
            item.LootType = LootType.Blessed;

            PlaceItemIn(122, 53, new SpecialDonateHairDye());
            PlaceItemIn(133, 53, new SpecialDonateBeardDye());

            PlaceItemIn(156, 55, (item = new EtherealLongManeHorse()));
            item.Hue = 1645;

            PlaceItemIn(34, 83, (item = new HolyDeedofBlessing()));
            item.Hue = 1645;
            PlaceItemIn(43, 83, (item = new CursedClothingBlessDeed()));
            item.Hue = 1645;
            PlaceItemIn(58, 83, (item = new SpecialHairRestylingDeed()));
            item.Hue = 1645;
            PlaceItemIn(73, 83, (item = new SmallBrickHouseDeed()));
            item.Hue = 1645;
            PlaceItemIn(88, 83, (item = new NameChangeDeed()));
            item.Hue = 1645;
            PlaceItemIn(103, 83, (item = new AntiBlessDeed()));
            item.Hue = 1645;
            PlaceItemIn(118, 83, (item = new BankCheck(100000)));
            item.Hue = 1645;
            PlaceItemIn(130, 83, (item = new MembershipTicket()));
            item.Hue = 1645;
            ((MembershipTicket)item).MemberShipTime = TimeSpan.FromDays(730);
        }
			public InternalGump( Mobile from, SpecialHairRestylingDeed deed ) : base( 50, 50 )
			{
				m_From = from;
				m_Deed = deed;

				from.CloseGump( typeof( InternalGump ) );

				AddBackground( 100, 10, 400, 385, 0xA28 );

                AddHtml(100, 25, 400, 35, "<CENTER>SPECIAL HAIRSTYLE SELECTION MENU</CENTER>", false, false);
				AddButton( 175, 340, 0xFA5, 0xFA7, 0x0, GumpButtonType.Reply, 0 ); // CANCEL

                AddHtmlLocalized(210, 342, 90, 35, 1011012, false, false);//CANCEL
                //First Col
                AddBackground( 220, 60, 50, 50, 0xA3C );
				AddBackground( 220, 115, 50, 50, 0xA3C );
				AddBackground( 220, 170, 50, 50, 0xA3C );
				if (from.Female)
				{
					AddBackground(220, 225, 50, 50, 0xA3C);
				}
				else
				{
					AddBackground(220, 280, 50, 50, 0xA3C);
				}

                //Second Col
                AddBackground( 425, 60, 50, 50, 0xA3C );
				AddBackground( 425, 115, 50, 50, 0xA3C );
				AddBackground( 425, 170, 50, 50, 0xA3C );
				AddBackground( 425, 225, 50, 50, 0xA3C );
				AddBackground( 425, 280, 50, 50, 0xA3C );


                AddHtml(150, 75, 80, 35,  "Long Feather", false, false);
                AddHtml(150, 130, 80, 35, "Short Elf" , false, false);
                AddHtml(150, 185, 80, 35, "Mullet" , false, false);
				if (from.Female)
				{
					AddHtml(150, 240, 80, 35, "Flower", false, false);

				}
				else
				{
					AddHtml(150, 295, 80, 35, "Long Elf 2", false, false);
				}

                AddHtml(355, 75, 80, 35,  "Long Elf", false, false);
                AddHtml(355, 130, 80, 35, "Big Knob", false, false);
                AddHtml(355, 185, 80, 35, "Big Braid", false, false);
                AddHtml(355, 240, 80, 35, "Spiked", false, false);
                AddHtml(355, 295, 80, 35, "Buns", false, false);

                //First Col
                AddImage(153, 15, 60917);//LongFeatherHair
                AddImage(153, 70, 60918);//ShortElfHair
                AddImage(153, 125, 60919);//Mullet
				if (from.Female)
				{
					AddImage(153, 180, 60890);//FlowerHair
				}
				else
				{
					AddImage(153, 240, 60891);//LongElfTwoHair
				}
                //Second Col
                AddImage(358, 15, 50891);//LongElfHair
                AddImage(358, 70, 60892);//LongBigKnobHair
                AddImage(358, 120, 60893);//LongBigBraidHair
                AddImage(362, 185, 60895);//SpikedHair
                AddImage(358, 240, 60712);//BunsHair

                //First Col
				AddButton( 118, 73, 0xFA5, 0xFA7,  1, GumpButtonType.Reply, 0 );
				AddButton( 118, 128, 0xFA5, 0xFA7, 2, GumpButtonType.Reply, 0 );
				AddButton( 118, 183, 0xFA5, 0xFA7, 3, GumpButtonType.Reply, 0 );
				if (from.Female)
				{
					AddButton(118, 238, 0xFA5, 0xFA7, 4, GumpButtonType.Reply, 0);
				}
				else
				{
					AddButton(118, 292, 0xFA5, 0xFA7, 5, GumpButtonType.Reply, 0);
				}

                //Second Col
                AddButton( 323, 73, 0xFA5, 0xFA7,  6, GumpButtonType.Reply, 0 );
				AddButton( 323, 128, 0xFA5, 0xFA7, 7, GumpButtonType.Reply, 0 );
				AddButton( 323, 183, 0xFA5, 0xFA7, 8, GumpButtonType.Reply, 0 );
				AddButton( 323, 238, 0xFA5, 0xFA7, 9, GumpButtonType.Reply, 0 );
				AddButton( 323, 292, 0xFA5, 0xFA7, 10, GumpButtonType.Reply, 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 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 );
				}
			}
            public InternalGump(Mobile from, SpecialHairRestylingDeed deed) : base(50, 50)
            {
                m_From = from;
                m_Deed = deed;

                from.CloseGump(typeof(InternalGump));

                AddBackground(100, 10, 400, 385, 0xA28);

                AddHtml(100, 25, 400, 35, "<CENTER>SPECIAL HAIRSTYLE SELECTION MENU</CENTER>", false, false);
                AddButton(175, 340, 0xFA5, 0xFA7, 0x0, GumpButtonType.Reply, 0); // CANCEL

                AddHtmlLocalized(210, 342, 90, 35, 1011012, false, false);       //CANCEL
                //First Col
                AddBackground(220, 60, 50, 50, 0xA3C);
                AddBackground(220, 115, 50, 50, 0xA3C);
                AddBackground(220, 170, 50, 50, 0xA3C);
                if (from.Female)
                {
                    AddBackground(220, 225, 50, 50, 0xA3C);
                }

                //Second Col
                AddBackground(425, 60, 50, 50, 0xA3C);
                AddBackground(425, 115, 50, 50, 0xA3C);
                AddBackground(425, 170, 50, 50, 0xA3C);
                AddBackground(425, 225, 50, 50, 0xA3C);
                AddBackground(425, 280, 50, 50, 0xA3C);


                AddHtml(150, 75, 80, 35, "Long Feather", false, false);
                AddHtml(150, 130, 80, 35, "Short Elf", false, false);
                AddHtml(150, 185, 80, 35, "Mullet", false, false);
                if (from.Female)
                {
                    AddHtml(150, 240, 80, 35, "Flower", false, false);
                }

                AddHtml(355, 75, 80, 35, "Long Elf", false, false);
                AddHtml(355, 130, 80, 35, "Big Knob", false, false);
                AddHtml(355, 185, 80, 35, "Big Braid", false, false);
                AddHtml(355, 240, 80, 35, "Spiked", false, false);
                AddHtml(355, 295, 80, 35, "Buns", false, false);

                //First Col
                AddImage(153, 15, 60917);  //LongFeatherHair
                AddImage(153, 70, 60918);  //ShortElfHair
                AddImage(153, 125, 60919); //Mullet
                if (from.Female)
                {
                    AddImage(153, 180, 60890);                    //FlowerHair
                }
                //Second Col
                AddImage(358, 15, 50891);  //LongElfHair
                AddImage(358, 70, 60892);  //LongBigKnobHair
                AddImage(358, 120, 60893); //LongBigBraidHair
                AddImage(362, 185, 60895); //SpikedHair
                AddImage(358, 240, 60712); //BunsHair

                //First Col
                AddButton(118, 73, 0xFA5, 0xFA7, 1, GumpButtonType.Reply, 0);
                AddButton(118, 128, 0xFA5, 0xFA7, 2, GumpButtonType.Reply, 0);
                AddButton(118, 183, 0xFA5, 0xFA7, 3, GumpButtonType.Reply, 0);
                AddButton(118, from.Female ? 238 : 292, 0xFA5, 0xFA7, 4, GumpButtonType.Reply, 0);

                //Second Col
                AddButton(323, 73, 0xFA5, 0xFA7, 5, GumpButtonType.Reply, 0);
                AddButton(323, 128, 0xFA5, 0xFA7, 6, GumpButtonType.Reply, 0);
                AddButton(323, 183, 0xFA5, 0xFA7, 7, GumpButtonType.Reply, 0);
                AddButton(323, 238, 0xFA5, 0xFA7, 8, GumpButtonType.Reply, 0);
                AddButton(323, 292, 0xFA5, 0xFA7, 9, GumpButtonType.Reply, 0);
            }