Пример #1
0
        public StatsBallGump(StatsBall skillball, Mobile from)
            : base(20, 30)
        {
            m_From = from;
            m_StatsBall = skillball;

            constructGump();
        }
Пример #2
0
		public SevenGMBag()
		{
			Weight = 1.0;
			Hue = 1154;
			Item item = null;
			Name = "Grandmasters Bag";

			PlaceItemIn( 16, 51, (item = new StatsBall()) );
                        PlaceItemIn( 16, 60, (item = new SevenGMSkillBall()) );

		}
Пример #3
0
        public StatsBallGump(StatsBall skillball, Mobile from, int str, int dex, int intel, string status, int statusOffset)
            : base(20, 30)
        {
            m_From = from;
            m_StatsBall = skillball;

            m_str = str;
            m_dex = dex;
            m_int = intel;

            m_status = status;
            m_statusOffset = statusOffset;

            constructGump();
        }
        public SetStatGump(Mobile from, StatsBall ball, int statToChange, int str, int dex, int intel)
            : base(20, 30)
        {
            m_From = from;
            m_StatsBall = ball;

            m_stat = statToChange;
            m_str = str;
            m_dex = dex;
            m_int = intel;

            AddBackground(0, 0, 90, 60, 5054);

            AddImageTiled(10, 10, 72, 22, 0x52);
            AddImageTiled(11, 11, 70, 20, 0xBBC);
            AddTextEntry(11, 11, 70, 20, 0, 0, "0");
            AddButton(15, 35, 0xFB7, 0xFB8, 1, GumpButtonType.Reply, 0);
            AddButton(50, 35, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0);
        }
		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);
		}
			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 SpecialHairDye(); /*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 DarkGreenDonationBox()
        {
            Weight = 1.0;
            Hue    = 1267;
            Item item = null;

            Name = "Defiance Dark Green 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      = 1267;
            item.Name     = "Dark Green Shroud of Shadows";
            item.LootType = LootType.Blessed;

            BaseContainer cont;

            PlaceItemIn(58, 57, (cont = new Backpack()));
            cont.Hue  = 1267;
            cont.Name = "a dark green 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      = 1267;
            item.Name     = "Dark Green Ancient Coat";
            item.LootType = LootType.Blessed;

            PlaceItemIn(74, 64, (item = new WizardGlasses()));
            item.Hue = Utility.RandomList(1267);
            PlaceItemIn(103, 58, (item = new Sandals()));
            item.Hue      = Utility.RandomList(1267);
            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 = 1267;

            PlaceItemIn(34, 83, (item = new HolyDeedofBlessing()));
            item.Hue = 1267;
            PlaceItemIn(43, 83, (item = new CursedClothingBlessDeed()));
            item.Hue = 1267;
            PlaceItemIn(58, 83, (item = new SpecialHairRestylingDeed()));
            item.Hue = 1267;
            PlaceItemIn(73, 83, (item = new SmallBrickHouseDeed()));
            item.Hue = 1267;
            PlaceItemIn(88, 83, (item = new NameChangeDeed()));
            item.Hue = 1267;
            PlaceItemIn(103, 83, (item = new AntiBlessDeed()));
            item.Hue = 1267;
            PlaceItemIn(118, 83, (item = new BankCheck(100000)));
            item.Hue = 1267;
            PlaceItemIn(130, 83, (item = new MembershipTicket()));
            item.Hue = 1267;
            ((MembershipTicket)item).MemberShipTime = TimeSpan.FromDays(730);
        }