Example #1
0
        public LenseGump(CodexWisdom codex, int status) : base(25, 25)
        {
            m_CodexWisdom = codex;

            this.Closable   = true;
            this.Disposable = true;
            this.Dragable   = true;
            this.Resizable  = false;

            AddPage(0);
            AddImage(1, 0, 154);
            AddImage(300, 0, 154);
            AddImage(2, 2, 163);
            AddImage(302, 2, 163);
            AddImage(159, 2, 163);
            AddImage(167, 235, 130);
            AddImage(8, 64, 128);
            AddImage(451, 230, 143);
            AddItem(11, 14, 2076);

            string phrase = "You will need the Concave and Convex Lenses to read the Codex.";

            if (status > 0)
            {
                phrase = "This can only be studied within the Chamber of the Codex.";
            }

            AddHtml(77, 9, 509, 22, @"<BODY><BASEFONT Color=White><BIG>" + phrase + "</BIG></BASEFONT></BODY>", (bool)false, (bool)false);

            AddItem(490, 216, 4643);
            AddItem(546, 216, 4643);

            if (m_CodexWisdom.HasConcaveLense > 0)
            {
                AddHtml(77, 40, 509, 43, @"<BODY><BASEFONT Color=#FCFF00><BIG>You have the Concave Lense.</BIG></BASEFONT></BODY>", (bool)false, (bool)false);
                AddItem(485, 213, 1517);
            }
            else
            {
                AddHtml(77, 40, 509, 43, @"<BODY><BASEFONT Color=#FCFF00><BIG>Naxatilor " + Server.Items.VortexCube.GargoyleLocation("Naxatilor") + "</BIG></BASEFONT></BODY>", (bool)false, (bool)false);
            }
            if (m_CodexWisdom.HasConvexLense > 0)
            {
                AddHtml(77, 90, 509, 43, @"<BODY><BASEFONT Color=#FFA200><BIG>You have the Convex Lense.</BIG></BASEFONT></BODY>", (bool)false, (bool)false);
                AddItem(541, 213, 1518);
            }
            else
            {
                AddHtml(77, 90, 509, 43, @"<BODY><BASEFONT Color=#FFA200><BIG>Lor-wis-lem " + Server.Items.VortexCube.GargoyleLocation("Lor-wis-lem") + "</BIG></BASEFONT></BODY>", (bool)false, (bool)false);
            }
        }
Example #2
0
        public static void UpdateCodex(CodexWisdom book)
        {
            if (book.SkillFirst > 0)
            {
                book.SkillBonuses.SetValues(0, GetCodexSkill(book.SkillFirst), 100);
            }
            else
            {
                book.SkillBonuses.SetValues(0, SkillName.Alchemy, 0);
            }
            if (book.SkillSecond > 0)
            {
                book.SkillBonuses.SetValues(1, GetCodexSkill(book.SkillSecond), 100);
            }
            else
            {
                book.SkillBonuses.SetValues(1, SkillName.Alchemy, 0);
            }

            book.InvalidateProperties();
        }
Example #3
0
        public CodexGump(CodexWisdom codex) : base(25, 25)
        {
            m_CodexWisdom = codex;

            this.Closable   = true;
            this.Disposable = true;
            this.Dragable   = true;
            this.Resizable  = false;

            AddPage(0);
            AddImage(0, 0, 153);
            AddImage(300, 0, 153);
            AddImage(600, 0, 153);
            AddImage(900, 0, 153);
            AddImage(0, 300, 153);
            AddImage(300, 300, 153);
            AddImage(600, 300, 153);
            AddImage(900, 300, 153);
            AddImage(2, 2, 129);
            AddImage(300, 2, 129);
            AddImage(600, 2, 129);
            AddImage(898, 2, 129);
            AddImage(2, 298, 129);
            AddImage(300, 298, 129);
            AddImage(600, 298, 129);
            AddImage(898, 298, 129);
            AddImage(0, 600, 153);
            AddImage(300, 600, 153);
            AddImage(600, 600, 153);
            AddImage(900, 600, 153);
            AddImage(2, 598, 129);
            AddImage(300, 598, 129);
            AddImage(600, 598, 129);
            AddImage(898, 598, 129);
            AddImage(6, 7, 145);
            AddImage(8, 664, 128);
            AddImage(962, 8, 138);
            AddImage(9, 333, 137);
            AddImage(853, 419, 144);
            AddImage(773, 399, 129);
            AddImage(52, 516, 156);
            AddImage(1052, 549, 156);
            AddImage(662, 47, 132);
            AddImage(410, 835, 130);
            AddImage(548, 794, 134);
            AddImage(784, 863, 140);
            AddImage(868, 654, 147);
            AddImage(754, 865, 159);
            AddImage(368, 47, 132);
            AddImage(212, 47, 132);
            AddImage(170, 8, 139);
            AddImage(166, 7, 156);
            AddImage(204, 9, 156);
            AddImage(184, 9, 156);

            string title = "CHOOSE TWO SKILLS TO STUDY";

            if (m_CodexWisdom.SkillFirst > 0 && m_CodexWisdom.SkillSecond > 0)
            {
                title = "CHOOSE A SKILL TO FORGET SO YOU CAN LEARN A DIFFERENT ONE";
            }
            else if (m_CodexWisdom.SkillFirst == 0 && m_CodexWisdom.SkillSecond > 0)
            {
                title = "CHOOSE ONE SKILL TO STUDY OR ONE TO FORGET SO YOU CAN LEARN A DIFFERENT ONE";
            }
            else if (m_CodexWisdom.SkillFirst > 0 && m_CodexWisdom.SkillSecond == 0)
            {
                title = "CHOOSE ONE SKILL TO STUDY OR ONE TO FORGET SO YOU CAN LEARN A DIFFERENT ONE";
            }

            AddHtml(175, 86, 900, 21, @"<BODY><BASEFONT Color=White><BIG>" + title + "</BIG></BASEFONT></BODY>", (bool)false, (bool)false);
            AddHtml(175, 118, 900, 21, @"<BODY><BIG><BASEFONT Color=#FFA200>If you change your skills and leave the chamber, the lenses will vanish and you may need to find others.</BASEFONT><BIG></BODY>", (bool)false, (bool)false);

            int Skill1 = m_CodexWisdom.SkillFirst;
            int Skill2 = m_CodexWisdom.SkillSecond;

            int    x     = 100;
            int    z     = 140;
            int    y     = 115;
            int    b     = 3609;
            int    i     = 1;
            string color = "#FCFF00";

            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Alchemy</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Anatomy</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Animal Lore</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Animal Taming</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Archery</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Arms Lore</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Begging</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Blacksmithing</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Bushido</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Camping</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Carpentry</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Cartography</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Chivalry</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Cooking</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Detect Hidden</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;

            x = 350;
            z = 390;
            y = 115;
            b = 3609;

            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Discordance</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Eval Intelligence</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Fencing</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Fishing</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Fletching</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Focus</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Forensics</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Healing</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Herding</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Hiding</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Inscription</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Item ID</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Lockpicking</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Lumberjacking</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Mace Fighting</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;

            x = 600;
            z = 640;
            y = 115;
            b = 3609;

            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Magery</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Resist Spells</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Meditation</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Mining</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Musicianship</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Necromancy</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Ninjitsu</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Parrying</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Peacemaking</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Poisoning</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Provocation</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Remove Trap</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Snooping</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Spirit Speak</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Stealing</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;

            x = 850;
            z = 890;
            y = 115;
            b = 3609;

            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Stealth</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Swordsmanship</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Tactics</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Tailoring</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Taste ID</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Tinkering</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Tracking</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Veterinary</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;
            if (Skill1 == i || Skill2 == i)
            {
                b = 4018; color = "#FFA200";
            }
            else
            {
                b = 3609; color = "#FCFF00";
            } y = y + 40;
            AddButton(x, y, b, b, i, GumpButtonType.Reply, 0);
            AddHtml(z, y, 150, 21, @"<BODY><BASEFONT Color=" + color + "><BIG>Wrestling</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i++;

            AddImage(900, 492, 50344);
            AddItem(1018, 621, 4643);
            AddItem(1018, 731, 4643);
            AddItem(1013, 618, 1517);
            AddItem(1013, 728, 1518);
        }