public SurvivalPack()
		{
			Weight = 1.0;
			Hue = 1871;
			Item item = null;
			Name = "a survival pack";


			PlaceItemIn( 60, 131, (item = new SkillBall( 10 )) );
			item.Hue = 1871;
                        item.Name = "a +10 SkillBall - Works on skills 90.0 and below";

			PlaceItemIn( 110, 103, (item = new SkillBall( 50 )) );
			item.Hue = 1871;
                        item.Name = "a +50 SkillBall - Works on skills 50.0 and below";

			PlaceItemIn( 46, 65, (item = new SkillBall( 25 )) );
			item.Hue = 1871;
			item.Name = "a +25 SkillBall - Works on skills 75.0 and below";

			BaseContainer cont;
			PlaceItemIn( 131, 121, (cont = new Bag()) );
			cont.Hue = 2413;

			cont.PlaceItemIn( 29, 39, new SulfurousAsh(5000) );
			cont.PlaceItemIn( 29, 64, new Nightshade(5000) );
			cont.PlaceItemIn( 29, 89, new SpidersSilk(5000) );

			cont.PlaceItemIn( 60, 64, new Garlic(5000) );
			cont.PlaceItemIn( 60, 89, new Ginseng(5000) );

			cont.PlaceItemIn( 88, 39, new Bloodmoss(5000) );
			cont.PlaceItemIn( 88, 64, new BlackPearl(5000) );
			cont.PlaceItemIn( 88, 89, new MandrakeRoot(5000) );
		}
Example #2
0
        public IncreaseSkillsGump(PlayerMobile mobile, SkillBall ball, double[] values, int page) : this(mobile, ball, false, page)
        {
            int zz = Core.TOL? 58: Core.ML? 55: Core.SE? 54: Core.AOS? 52: 49;

            for (int x = 0; x < zz; x++)
            {
                m_StartValue[x] = values[x];
            }
        }
Example #3
0
        public BudgetDonationBox()
        {
            Weight = 1.0;
            Hue    = 1109;
            Item item = null;

            Name = "Defiance Budget Box";

            PlaceItemIn(16, 60, (item = new SkillBall(25)));
            item.Hue = 38;

            PlaceItemIn(18, 80, (item = new HoodedShroudOfShadows()));
            item.LootType = LootType.Blessed;

            BaseContainer cont;

            PlaceItemIn(64, 50, (cont = new Backpack()));
            cont.Hue  = 0;
            cont.Name = "a backpack";

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

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

            PlaceItemIn(93, 60, new SpecialDonateHairDye());

            PlaceItemIn(50, 80, new ClothingBlessDeed());
            PlaceItemIn(60, 80, new GuildDeed());
            PlaceItemIn(70, 80, new SmallBrickHouseDeed());
            PlaceItemIn(80, 80, new NameChangeDeed());

            PlaceItemIn(90, 80, (item = new MembershipTicket()));
            ((MembershipTicket)item).MemberShipTime = TimeSpan.FromDays(180);

            PlaceItemIn(110, 50, new BankCheck(100000));
        }
        public SurvivalPack()
        {
            Weight = 1.0;
            Hue    = 1871;
            Item item = null;

            Name = "a survival pack";


            PlaceItemIn(60, 131, (item = new SkillBall(10)));
            item.Hue  = 1871;
            item.Name = "a +10 SkillBall - Works on skills 90.0 and below";

            PlaceItemIn(110, 103, (item = new SkillBall(50)));
            item.Hue  = 1871;
            item.Name = "a +50 SkillBall - Works on skills 50.0 and below";

            PlaceItemIn(46, 65, (item = new SkillBall(25)));
            item.Hue  = 1871;
            item.Name = "a +25 SkillBall - Works on skills 75.0 and below";

            BaseContainer cont;

            PlaceItemIn(131, 121, (cont = new Bag()));
            cont.Hue = 2413;

            cont.PlaceItemIn(29, 39, new SulfurousAsh(5000));
            cont.PlaceItemIn(29, 64, new Nightshade(5000));
            cont.PlaceItemIn(29, 89, new SpidersSilk(5000));

            cont.PlaceItemIn(60, 64, new Garlic(5000));
            cont.PlaceItemIn(60, 89, new Ginseng(5000));

            cont.PlaceItemIn(88, 39, new Bloodmoss(5000));
            cont.PlaceItemIn(88, 64, new BlackPearl(5000));
            cont.PlaceItemIn(88, 89, new MandrakeRoot(5000));
        }
		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);
		}
Example #6
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 static void CreateReward(EventRewardInfo info, Mobile m)
        {
            if (m == null)
                return;

            Item item = null;
            switch (info.IncrID)
            {
                case 0: item = new MagicSewingKit(1); break;
                case 1:
                    string str = "PottedCactus";
                    int randint = Utility.Random(6);
                    if (randint > 0)
                        str = str + randint.ToString();

                    Type type = ScriptCompiler.FindTypeByName(str);
                    item = (Item)Activator.CreateInstance(type);
                    item.Weight = 100;
                    break;
                case 2:
                    if (Utility.RandomBool())
                        item = new PottedTree();
                    else
                        item = new PottedTree1();
                    break;
                case 3:
                    switch (Utility.Random(3))
                    {
                        case 0: item = new PottedPlant(); break;
                        case 1: item = new PottedPlant1(); break;
                        case 2: item = new PottedPlant2(); break;
                    }
                    break;
                case 4: item = new SpecialHairDye(); break;
                case 5: item = new SpecialBeardDye(); break;
                case 6: item = new TempHorseEthereal(50);
                        item.Hue = Utility.Random(795, 7);
                        break;
                case 7: item = new FireworksWand(99); break;
                case 8: item = new LayeredSashDeed(); break;
                case 9: item = new SkillBall(1); break;
                case 10: item = new SkillBall(5); break;
                case 11: item = new SkillBall(10); break;
                case 12: item = new SkillBall(25); break;
                case 13: item = new SkillBall(50); break;
                case 14: item = new PersonalisationDeed(); break;
                case 15: item = new CrystalPedestalAddonDeed(); break;
                case 16: item = new FountainStoneAddonDeed(); break;
                case 17: item = new FountainSandstoneAddonDeed(); break;
                case 18: item = new SquirrelStatueEastDeed(); break;
                case 19: item = new SquirrelStatueSouthDeed(); break;
                case 20: item = new ArcanistStatueEastDeed(); break;
                case 21: item = new ArcanistStatueSouthDeed(); break;
                case 22: item = new WarriorStatueEastDeed(); break;
                case 23: item = new WarriorStatueSouthDeed(); break;
                case 24: item = new TempRobe(31);
                        ((BaseClothing)item).Attributes.RegenHits = 3;
                        break;
                case 25: item = new TempCloak(31);
                        ((BaseClothing)item).Attributes.RegenHits = 3;
                        break;
                case 26: item = new CampfireDeed(); break;
                case 27: item = new FireDeed(); break;
                case 28: item = new SoulstoneFragment();
                        ((SoulstoneFragment)item).Account = m.Account.Username;
                        break;
                case 29: item = new NameChangeDeed(); break;
                case 30: item = new SexChangeDeed(); break;
                case 31: item = new KillResetDeedAOS(); break;
                case 32: item = new PetBondingDeed(); break;
                case 33: item = new WarHorseBondingDeed(); break;
                case 34: item = new AntiBlessDeed(); break;
                case 35: item = new WhisperingRose(m.Name); break;
                case 36: item = new WeddingDeed(); break;
                case 37: item = new KillBook();
                        ((KillBook)item).BookOwner = m;
                        break;
            }

            if (item != null)
            {
                m.AddToBackpack(item);
                m.SendMessage("The reward item has been placed into your backpack, have fun!");
            }
            else
            {
                m.SendMessage("That item is not available. Please report the bug at the site that will open in your browser.");
                m.LaunchBrowser( "http://bug.casiopia.net/" );
                m.AddToBackpack( new CopperBar(info.Price) );
            }
        }
Example #8
0
		public SkillBallGump ( Mobile from, Mobile target, SkillBall ball ) : base ( 20, 30 )
		{
			m_SkillBall = ball;
			m_Target = target;

			AddPage ( 0 );
			AddBackground( 0, 0, 260, 351, 5054 );

			AddImageTiled( 10, 10, 240, 23, 0x52 );
			AddImageTiled( 11, 11, 238, 21, 0xBBC );

			AddLabel( 45, 11, 0, "Select a skill to raise" );

			AddPage( 1 );

			int page = 1;
			int index = 0;

			Skills skills = m_Target.Skills;
			SkillName[] allowedskills = m_SkillBall.GetAllowedSkills();

			for ( int i = 0; i < allowedskills.Length; ++i )
			{
				if ( index >= FieldsPerPage )
				{
					AddButton( 231, 13, 0x15E1, 0x15E5, 0, GumpButtonType.Page, page + 1 );

					++page;
					index = 0;

					AddPage( page );

					AddButton( 213, 13, 0x15E3, 0x15E7, 0, GumpButtonType.Page, page - 1 );
				}

				Skill skill = skills[allowedskills[i]];

				if ( (!m_SkillBall.NewbieBall || skill.Base == 0) && (skill.Base + m_SkillBall.SkillBonus) <= skill.Cap && skill.Lock == SkillLock.Up )
				{
					AddImageTiled( 10, 32 + (index * 22), 240, 23, 0x52 );
					AddImageTiled( 11, 33 + (index * 22), 238, 21, 0xBBC );

					AddLabelCropped( 13, 33 + (index * 22), 150, 21, 0, skill.Name );
					AddImageTiled( 180, 34 + (index * 22), 50, 19, 0x52 );
					AddImageTiled( 181, 35 + (index * 22), 48, 17, 0xBBC );
					AddLabelCropped( 182, 35 + (index * 22), 234, 21, 0, skill.Base.ToString( "F1" ) );

					AddButton( 231, 35 + (index * 22), 0x15E1, 0x15E5, i + 1, GumpButtonType.Reply, 0 );

					++index;
				}
			}
		}
		public SkillBallGump ( Mobile from, SkillBall skb ) : base ( 20, 30 )
		{
			m_skb = skb;
			
			AddPage ( 0 );
			AddBackground( 0, 0, 260, 351, 5054 );
			
			AddImageTiled( 10, 10, 240, 23, 0x52 );
			AddImageTiled( 11, 11, 238, 21, 0xBBC );
			
			AddLabel( 65, 11, 0, "Skills you can raise" );
			
			AddPage( 1 );
			
			int page = 1;
			int index = 0;
			
			Skills skills = from.Skills;
			
			int number;
			if ( Core.AOS )
				number = 0;
			else
				number = 3;
			
			for ( int i = 0; i < ( skills.Length - number ); ++i ) 
			{
				if ( index >= FieldsPerPage ) 
				{
					AddButton( 231, 13, 0x15E1, 0x15E5, 0, GumpButtonType.Page, page + 1 );
					 
					++page;
					index = 0;
					 
					AddPage( page );
					 
					AddButton( 213, 13, 0x15E3, 0x15E7, 0, GumpButtonType.Page, page - 1 );
				}
			  
				Skill skill = skills[i];
			  
				if ( (skill.Base < 50 )) //Shows skills lower then 50
				{	 
					AddImageTiled( 10, 32 + (index * 22), 240, 23, 0x52 );
					AddImageTiled( 11, 33 + (index * 22), 238, 21, 0xBBC );
					 
					AddLabelCropped( 13, 33 + (index * 22), 150, 21, 0, skill.Name );
					AddImageTiled( 180, 34 + (index * 22), 50, 19, 0x52 );
					AddImageTiled( 181, 35 + (index * 22), 48, 17, 0xBBC );
					AddLabelCropped( 182, 35 + (index * 22), 234, 21, 0, skill.Base.ToString( "F1" ) );
					 
					if ( from.AccessLevel >= AccessLevel.Player )
						AddButton( 231, 35 + (index * 22), 0x15E1, 0x15E5, i + 1, GumpButtonType.Reply, 0 );
					else
						AddImage( 231, 35 + (index * 22), 0x2622 );
					 
					++index;
				}
			}
		}
        private static void HandOut_OnCommand(CommandEventArgs e)
        {
            Mobile sender = e.Mobile;
            int args = e.Arguments.Length;
            if (args == 8) // Edit by Silver, used to be 7
            {
                int count = 0;

                int amount = 0;
                int bonus = 0;
                int tempdays = 0;
                int max = 100; // Added by Silver
                bool newplayer = false;
                bool accountbound = false;
                bool characterbound = false;
                bool unlimited = false;
                try
                {
                    amount = Convert.ToInt32(e.Arguments[0]);
                    bonus = Convert.ToInt32(e.Arguments[1]);
                    tempdays = Convert.ToInt32(e.Arguments[2]);
                    max = Convert.ToInt32(e.Arguments[3]); // Added by Silver
                    unlimited = Convert.ToBoolean(e.Arguments[4]);
                    newplayer = Convert.ToBoolean(e.Arguments[5]);
                    characterbound = Convert.ToBoolean(e.Arguments[6]);
                    accountbound = Convert.ToBoolean(e.Arguments[7]);
                }
                catch
                {
                    sender.SendMessage("That command is not formatted correctly, the command consists of Command [int amount] [int bonus] [int tempdays] [bool unlimited] [bool newbs] [bool characterbound] [bool accountbound].");
                    return;
                }
                DateTime now = DateTime.Now;
                foreach (NetState ns in NetState.Instances)
                {
                    Mobile m = ns.Mobile;

                    if (m == null || m.AccessLevel > AccessLevel.Player)
                        continue;

                    Account account = (Account)m.Account;
                    TimeSpan createdspan = now - m.CreationTime;

                    bool newbie = createdspan < TimeSpan.FromDays( 1.0 ) && ( ( now - account.Created ) < TimeSpan.FromDays( 1.0 ) || account.Length == 1 );

                    if ( !newplayer || newbie )
                    {
                        for ( int i = 0; i < amount; i++ )
                        {
                            SkillBall ball = new SkillBall( bonus, max, !unlimited, tempdays ); // Silver: max instead of 100
                            if ( accountbound )
                                ball.OwnerAccount = account.Username;
                            if ( characterbound )
                                ball.OwnerPlayer = m;

                            if ( newplayer )
                            {
                                ball.LootType = LootType.Newbied;
                                ball.MaxCap = max;
                            }

                            m.AddToBackpack( ball ); // Added by Silver, was lacking
                        }

                        if ( newbie )
                        {
                            m.AddToBackpack( new NewPlayerStatsBall( m ) );
                            m.SendMessage( 0x482, "Welcome to Defiance AOS, we are very glad you are attending our new player's join day. A skill ball and a stat ball have been placed into your backpack.");
                        }
                        else
                            m.SendMessage( 0x482, "Thank you for supporting our shard. As a token of gratitude a skill ball has been placed into your backpack." );
                        count++;
                    }
                }
                sender.SendMessage(count + " Players have received skill balls.");
            }
            else
                sender.SendMessage("That command is not formatted correctly - ex: [sbhandout [int amount] [int bonus] [int tempdays] [int max] [bool unlimited] [bool newbs] [bool characterbound] [bool accountbound].");
        }
Example #11
0
        public IncreaseSkillsGump(PlayerMobile mobile, SkillBall ball, bool first, int page)
            : base(50, 50)
        {
            m_Page   = page;
            m_Ball   = ball;
            m_Points = m_Ball.Points;
            m_Mobile = mobile;

            if (first)
            {
                int zz = Core.SA ? 58 : Core.ML ? 55 : Core.SE ? 54 : Core.AOS ? 52 : 49;
                m_StartValue = new double[zz];
                m_Page       = 0;
                for (int x = 0; x < zz; x++)
                {
                    m_StartValue[x] = m_Mobile.Skills[x].Base;
                }
            }

            int maxPage = Core.AOS ? 5 : 4;

            m_Mobile.CloseGump(typeof(IncreaseSkillsGump));

            AddPage(0);

            AddBackground(0, 0, 476, 440, 0x13BE);

            AddLabel(10, 7, 2100, "Choose Skills");

            if (m_Page > 0)
            {
                AddButton(275, 7, 250, 251, 2, GumpButtonType.Reply, 0); // Prev Page
            }

            if (m_Page < maxPage)
            {
                AddButton(275, 395, 252, 253, 3, GumpButtonType.Reply, 0); // Next Page
            }

            AddLabel(160, 7, 2100, "Points Left: " + m_Points.ToString());

            //			We only need this "if" condition if we want to make them use it all up right now.
            //			if ( m_Points == 0 )
            //			{
            AddButton(305, 335, 0xFB7, 0xFB9, 1, GumpButtonType.Reply, 0); // OK button
            //			}

            AddImage(170, -10, 0x58A);

            m_StartPos = m_Page * 10;
            int z = 0;
            int max;

            if (m_Page == maxPage)
            {
                max = Core.SA ? 8 : Core.ML ? 5 : Core.SE ? 4 : Core.AOS ? 2 : 9;
            }
            else
            {
                max = 10;
            }

            for (int i = m_StartPos; i < m_StartPos + max; i++)
            {
                int y = 20 + (30 * (++z));

                m_Skill = m_Mobile.Skills[i];

                AddLabel(10, y, 2124, m_Skill.Name.ToString());

                AddLabel(170, y, 2100, m_Skill.Base.ToString());

                if (CanLowerSkill(m_Skill, i, 1))
                {
                    AddButton(220, y, 0x1519, 0x1519, 1000 + i, GumpButtonType.Reply, 0); // Decrease
                }
                if (CanRaiseSkill(m_Skill, i, 1))
                {
                    AddButton(240, y, 0x151A, 0x151A, 2000 + i, GumpButtonType.Reply, 0); // Increase
                }
                if (CanLowerSkill(m_Skill, i, 5))
                {
                    AddButton(200, y - 2, 2229, 2229, 3000 + i, GumpButtonType.Reply, 0); // Decrease by 5
                }
                if (CanRaiseSkill(m_Skill, i, 5))
                {
                    AddButton(256, y - 2, 2229, 2229, 4000 + i, GumpButtonType.Reply, 0); // Increase by 5
                }
            }
        }