Ejemplo n.º 1
0
        public void OnForensicEval(Mobile m)
        {
            if (!m.Player)
            {
                return;
            }

            var quest = QuestHelper.GetQuest <GoingGumshoeQuest2>((PlayerMobile)m);

            if (quest != null)
            {
                m.PrivateOverheadMessage(MessageType.Regular, 0x47E, 1158571, m.NetState); // *You examine the headstone...*
                m.SendLocalizedMessage(1158562, null, 0x23);                               // The damage to the epitaph seems deliberate.  Using your training from Inspector Jasper you have found a hidden message among the scratches. You recreate the original epitaph in your mind's eye...

                m.SendSound(quest.UpdateSound);

                var gump = new Gump(50, 50);

                gump.AddImage(0, 0, 0x66);
                gump.AddHtmlLocalized(47, 60, 146, 160, GumpLocalization, false, false);

                m.SendGump(gump);

                SetPrerequisite(quest);
            }
            else
            {
                m.PrivateOverheadMessage(MessageType.Regular, 0x47E, 1158563, m.NetState); // *It appears to be a normal, yet oddly damaged, headstone. The epitaph is illegible..*
            }
        }
Ejemplo n.º 2
0
        public override void OnDoubleClick(Mobile from)
        {
            Gump g = new Gump(100, 100);

            g.AddBackground(0, 0, 454, 400, 0x24A4);
            g.AddItem(75, 120, ItemID, Hue);
            g.AddHtmlLocalized(177, 50, 250, 18, 1114513, "#1159025", 0x3442, false, false); // <DIV ALIGN=CENTER>~1_TOKEN~</DIV>
            g.AddHtmlLocalized(177, 77, 250, 36, 1114513, "#1159026", 0x3442, false, false); // <DIV ALIGN=CENTER>~1_TOKEN~</DIV>
            g.AddHtmlLocalized(177, 122, 250, 228, 1159027, 0xC63, true, true);              // The item appears to be the jagged fragment of a larger piece.  While you cannot quite discern the origins or purpose of such a piece, it is no doubt fascinating.  The color shimmers with a strange brilliance that you feel you have seen before, yet cannot quite place.  Whatever created this fragment did so with awesome force.


            from.SendGump(g);

            from.PrivateOverheadMessage(MessageType.Regular, 0x47E, 1157722, "its origin", from.NetState); // *Your proficiency in ~1_SKILL~ reveals more about the item*
            from.SendSound(from.Female ? 0x30B : 0x41A);
        }
Ejemplo n.º 3
0
        public override void OnDoubleClick(Mobile m)
        {
            if (m is PlayerMobile && m.InRange(GetWorldLocation(), 3))
            {
                var gump = new Gump(100, 100);
                gump.AddImage(0, 0, 0x761C);
                gump.AddImage(95, 40, 0x69E);
                gump.AddHtmlLocalized(115, 200, 350, 400, 1158516, "#1158516", 0x1, false, true);

                /*The study of Britannian astronomy dates back to the appearances of strangers from offwordly realms. When it was learned that
                 * Sosaria exists within a much larger universe, curiosity tilted our heads upwards towards the sky. Before long skilled tinkers
                 * granted the ability to see objects at great distance became a reality - enter the telescope. While the most impressive example
                 * of these contraptions is the one located in Moonglow at 43o 52'N, 122o 4'W, where I have chosen to spend my time deep in
                 * research, recent developments in miniaturization have brought the size of these instruments within the grasp of the casual
                 * observer.<br><br>Using a telescope may appear quite simple, but one would be naive to think there is no more beyond haphazardly
                 * pointing towards the sky to make observations!<br><br>The best viewing hours are during the night between the hours of 5pm
                 * and 4am. Any standard clock is an essential tool in mapping the night sky!<br><br>While there are a variety of objects in the
                 * night sky to observe if one points their telescope at the object as it traverses space, the real search is for constellations
                 * - a unique collection of several stars.<br><br>Constellations appear at various periods during the night. Constellations can
                 * be seen during the early evening (5pm-8pm), late at night (9pm-11pm), midnight (12am), or the middle of the night (1am-4am).
                 * After 4am daylight will drown out any attempt at making meaningful observations.<br><br>Constellations can be observed in
                 * these time periods based on their location in the night sky. Britannian astronomers have adopted a coordinate system that
                 * uses right ascension (RA) and declination (DEC) to pinpoint a constellation's location during night time periods.<br><br>RA
                 * can be measured from 0-24 and DEC can be measured from 0-90. Current Telescopes are capable of resolving increments of 1 hour
                 * of RA and 0.2 degrees of DEC.<br><br>When a time period has been selected and the RA and DEC have been set one need only
                 * initiate a switch conveniently located in the viewfinder, to check that section of the sky! Should you be lucky enough to
                 * see a constellation a standard mapmaking pen can be used to create a star chart. As the potential discoverer of a new
                 * constellation you have the opportunity to name and submit your discovery to the Britannian Astronomical Society, of whom
                 * this author is primary registrar, for documentation.<br><br>Happy skywatching!*/

                m.SendGump(gump);
            }
        }
Ejemplo n.º 4
0
        public override void OnDoubleClick(Mobile from)
        {
            if (from.InRange(Location, 1))
            {
                if (FellowshipMedallion.IsDressed(from))
                {
                    Gump g = new Gump(100, 100);
                    g.AddImage(0, 0, 0x761C);
                    g.AddHtmlLocalized(115, 30, 350, 600, 1159311, "#1159311", 0x1, false,
                                       true); // My inner voice guided me but has fallen silent...and to that end I have failed my purpose. We set sail for Iver's Rounding West of Skara Brae...I fear the end has come though, we are far off course and provisions are low and the weather has turned. The Love I had is my only Truth now. All that is left is Courage. When will my inner voice return?

                    from.SendGump(g);
                    from.PlaySound(1664);
                }
                else
                {
                    from.PrivateOverheadMessage(MessageType.Regular, 0x47E, 1159310,
                                                from.NetState); // * You attempt to read the journal but the characters are jumbled in your field of vision. Now your head hurts. *
                }
            }
            else
            {
                from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1019045); // I can't reach that.
            }
        }
Ejemplo n.º 5
0
        public override void WriteToGump(Gump g, ref int y)
        {
            m_Objective.WriteToGump(g, ref y);
            y -= 16;

            if (m_Objective.ShowDetailed)
            {
                base.WriteToGump(g, ref y);

                g.AddHtmlLocalized(103, y, 120, 16, 3000087, 0x15F90, false, false); // Total
                g.AddLabel(223, y, 0x481, GetCurrentTotal().ToString());
                y += 16;

                g.AddHtmlLocalized(103, y, 120, 16, 1074782, 0x15F90, false, false); // Return to
                g.AddLabel(223, y, 0x481, QuesterNameAttribute.GetQuesterNameFor(Instance.QuesterType));
                y += 16;
            }
        }
Ejemplo n.º 6
0
        public override void OnDoubleClick(Mobile m)
        {
            if (IsChildOf(m.Backpack))
            {
                Gump g = new Gump(150, 150);
                g.AddImage(0, 0, 30236);
                g.AddHtmlLocalized(110, 30, 350, 630, Content, false, false);

                m.SendGump(g);
            }
        }
Ejemplo n.º 7
0
        public override void OnDoubleClick(Mobile m)
        {
            if (IsChildOf(m.Backpack))
            {
                Gump g = new Gump(100, 50);
                g.AddImage(0, 0, 30236);
                g.AddHtmlLocalized(115, 35, 350, 600, 1156723, 1, false, true);

                m.SendGump(g);
            }
        }
        public override void WriteToGump(Gump g, ref int y)
        {
            m_Objective.WriteToGump(g, ref y);

            base.WriteToGump(g, ref y);

            if (IsCompleted())
            {
                g.AddHtmlLocalized(113, y, 312, 20, 1055121, 0xFFFFFF, false, false); // Complete
                y += 16;
            }
        }
Ejemplo n.º 9
0
        public override void OnDoubleClick(Mobile from)
        {
            Gump g = new Gump(25, 25);

            g.AddBackground(0, 0, 404, 325, 9380);
            g.AddHtmlLocalized(40, 50, 324, 225, 1151735, false, false);

            /*You unfurl the parchment, it appears to be a handwritten note*<br><br>Taking up delivery of goods fer
             * the crown are ya? Well...maybe yer interested in a bit of something fer yerself?  Look fer me in Felucca...
             * the taverns of Ocllo, Nujelm, & Serpent's Hold if ye want to fence yer goods.<br><br>-A Friend*/

            from.SendGump(g);
        }
Ejemplo n.º 10
0
        public override void WriteToGump(Gump g, ref int y)
        {
            string amount = DesiredAmount.ToString();

            g.AddHtmlLocalized(98, y, 312, 16, 1072204, 0x15F90); // Slay
            g.AddLabel(133, y, 0x481, amount);

            if (Name.Number > 0)
            {
                g.AddHtmlLocalized(133 + amount.Length * 15, y, 190, 18, Name.Number, 0x77BF);
            }
            else if (Name.String != null)
            {
                g.AddLabel(133 + amount.Length * 15, y, 0x481, Name.String);
            }

            y += 16;

            #region Location

            if (Area != null)
            {
                g.AddHtmlLocalized(103, y, 312, 20, 1018327, 0x15F90); // Location

                if (Area.Name.Number > 0)
                {
                    g.AddHtmlLocalized(223, y, 312, 20, Area.Name.Number, 0xFFFFFF);
                }
                else if (Area.Name.String != null)
                {
                    g.AddLabel(223, y, 0x481, Area.Name.String);
                }

                y += 16;
            }

            #endregion
        }
Ejemplo n.º 11
0
        public override void WriteToGump(Gump g, ref int y)
        {
            string amount = Amount.ToString();

            g.AddHtmlLocalized(98, y, 312, 16, 1072207, 0x15F90); // Deliver
            g.AddLabel(143, y, 0x481, amount);

            if (Name.Number > 0)
            {
                g.AddHtmlLocalized(143 + amount.Length * 15, y, 190, 18, Name.Number, 0x77BF);
                g.AddItem(350, y, CollectObjective.LabelToItemID(Name.Number));
            }
            else if (Name.String != null)
            {
                g.AddLabel(143 + amount.Length * 15, y, 0x481, Name.String);
            }

            y += 32;

            g.AddHtmlLocalized(103, y, 120, 16, 1072379, 0x15F90); // Deliver to
            g.AddLabel(223, y, 0x481, QuesterNameAttribute.GetQuesterNameFor(Destination));

            y += 16;
        }
        public override void WriteToGump(Gump g, ref int y)
        {
            int    skillLabel = AosSkillBonuses.GetLabel(m_Skill);
            string args;

            if (m_ThresholdFixed % 10 == 0)
            {
                args = String.Format("#{0}\t{1}", skillLabel, m_ThresholdFixed / 10); // as seen on OSI
            }
            else
            {
                args = String.Format("#{0}\t{1:0.0}", skillLabel, (double)m_ThresholdFixed / 10); // for non-integer skill levels
            }
            g.AddHtmlLocalized(98, y, 312, 16, 1077485, args, 0x15F90, false, false);             // Increase ~1_SKILL~ to ~2_VALUE~
            y += 16;
        }
Ejemplo n.º 13
0
 public override void OnComponentUsed(AddonComponent comp, Mobile from)
 {
     if (comp.ItemID == 0x0FF4)
     {
         if (!from.InRange(comp.GetWorldLocation(), 2))
         {
             from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1019045); // I can't reach that.
         }
         else
         {
             Gump g = new Gump(35, 70);
             g.AddImage(0, 0, 500);
             g.AddHtmlLocalized(40, 17, 150, 220, 1055141, false, false);
             from.SendGump(g);
         }
     }
 }
Ejemplo n.º 14
0
        public override void OnDoubleClick(Mobile from)
        {
            if (from.InRange(Location, 3))
            {
                if (FellowshipMedallion.IsDressed(from))
                {
                    Gump g = new Gump(100, 100);
                    g.AddBackground(0, 0, 570, 295, 0x2454);
                    g.AddImage(0, 0, 0x9CD6);
                    g.AddHtmlLocalized(335, 24, 223, 261, 1159381, 0xC63, false, true); // *squeak squeak* Have you come to play the instruments? *squeak squeak* I bet you are as good as Iolo! “Practice! Practice!” he would say, “Practice your musical scales!” *squeak squeak* My fingers were too tiny for the lute, but I could sing! Do Re Mi Fa So La Ti Do! *squeak squeak*  <br><br>Long ago, I was supposed to perform at the wedding of Shamino and Princess Beatrix. Ready to go at noon on the nose I would have been, but that was before...everything. *frowns* Sometimes I still visit Castle Sallé Dacil through a secret door in Ilshenar. Even though the castle has seen better days, I am still reminded of the Pure Love Princess Beatrix had for Shamino! *squeak squeak*

                    from.SendGump(g);
                    from.PlaySound(1664);
                }
                else
                {
                    PrivateOverheadMessage(MessageType.Regular, 0x47E, 1159380, from.NetState); // * You attempt to understand the spirit but your connection to them is weak... *
                }
            }
        }
Ejemplo n.º 15
0
        public override void OnDoubleClick(Mobile from)
        {
            if (from.InRange(Location, 3))
            {
                if (FellowshipMedallion.IsDressed(from))
                {
                    Gump g = new Gump(100, 100);
                    g.AddBackground(0, 0, 570, 295, 0x2454);
                    g.AddImage(0, 0, 0x9D3D);
                    g.AddHtmlLocalized(335, 24, 223, 261, 1159379, 0xC63, false, true); // Tis true, I am unlike the spirits you will see roaming nearby - the Well of Souls has allowed me a more robust form between the plane of reality and the ethereal void. Tis no matter though, I return to Britannia only to remember my beloved Beatrix. My how beautiful my Beatrix was... We were to be wed you know! <br><br>What a wedding it would have been! Castle Sallé Dacil was decorated in full regalia and the ceremony was to begin promptly at noon. Elegantly carved swans, a feast set for a king, and a generous gift from our Forgotten King - a magnificent sandalwood box! <br><br>Alas, none of that happened. I was rushed off to the war against Mondain in service of our Forgotten King. <br><br>Ah, I remember my first meeting with him well, I nearly chopped off my own leg from the shock!  Offworld travelers were a rarity then, those would be crowned king even more so!  Little about him was ordinary, right up to his coronation - tis no small feat to assemble such a crowd at midnight! It was very important to pay attention to the clocks so we wouldn't miss the spectacle, but many were in attendance to rejoice in the occasion despite the late hour.<br><br>Time is a funny thing - and my time in the ethereal plane has allowed me to see what would have been. *gestures to the glowing Well* I am afraid in this age of uncertainty, travel to the ethereal void via the Well of Souls is most perilous. Only those bearing the blessing of the Forgotten King will be able to pass. <br><br>And pass you must, for the Time Lord, Hawkwind, has been bound there by dark magics, and only a mortal being, virtuous and true, will be able to free him!  Even bound, time is a fickle thing and the influence of its agent no doubt still at hand. Your quest on this timeline is the one true way forward...<br><br>Thank you for listening to me reminisce. It is especially nice to remember my beloved Beatrix. *smiles*<br>

                    from.SendGump(g);
                    from.PlaySound(1664);
                }
                else
                {
                    PrivateOverheadMessage(MessageType.Regular, 0x47E, 1159380,
                                           from.NetState); // * You attempt to understand the spirit but your connection to them is weak... *
                }
            }
        }
Ejemplo n.º 16
0
        public override void OnDoubleClick(Mobile from)
        {
            if (from.InRange(Location, 3))
            {
                if (FellowshipMedallion.IsDressed(from))
                {
                    Gump g = new Gump(100, 100);
                    g.AddBackground(0, 0, 570, 295, 0x2454);
                    g.AddImage(0, 0, 0x6D2);
                    g.AddHtmlLocalized(335, 24, 223, 261, GumpCliloc, 0xC63, false, true);

                    from.SendGump(g);
                    from.PlaySound(1664);
                }
                else
                {
                    PrivateOverheadMessage(MessageType.Regular, 0x47E, 1159380,
                                           from.NetState); // * You attempt to understand the spirit but your connection to them is weak... *
                }
            }
        }
Ejemplo n.º 17
0
        public void OnForensicEval(Mobile m)
        {
            if (!m.Player)
            {
                return;
            }

            var quest = QuestHelper.GetQuest <GoingGumshoeQuest2>((PlayerMobile)m);

            if (quest != null)
            {
                if (HasFoundClue(quest))
                {
                    m.SendLocalizedMessage(1158613); // You have already documented this clue.
                }
                else
                {
                    m.PrivateOverheadMessage(MessageType.Regular, 0x47E, 1157722, "Forensics", m.NetState); // *Your proficiency in ~1_SKILL~ reveals more about the item*
                    m.SendLocalizedMessage(1158612, null, 0x23);                                            // You have identified a clue! This item seems pertinent to the investigation!

                    m.SendSound(quest.UpdateSound);

                    var gump = new Gump(50, 50);
                    gump.AddBackground(0, 0, 500, 500, 9380);

                    gump.AddItem(84, 130, ItemID, Hue);
                    gump.AddHtml(167, 50, 310, 20, "<center><basefont color=#B22222>a dust pile</center>", false, false);
                    gump.AddHtmlLocalized(167, 70, 310, 380, 1158617, true, false);

                    m.SendGump(gump);

                    /*The dust seems to have have settled in a distinct pattern around whatever once was placed at this location.
                     * Whatever it was, it was certainly small enough to be taken away in a hurry.*/

                    SetFoundClue(quest);
                }
            }
        }
Ejemplo n.º 18
0
 public static void WriteTimeRemaining(Gump g, ref int y, TimeSpan timeRemaining)
 {
     g.AddHtmlLocalized(103, y, 120, 16, 1062379, 0x15F90); // Est. time remaining:
     g.AddLabel(223, y, 0x481, timeRemaining.TotalSeconds.ToString("F0"));
     y += 16;
 }