Example #1
0
        public void CompleteMessage(Mobile from)
        {
            var html = new StringBuilder();

            html.AppendLine(
                "You have just received the "
                    .WrapUOHtmlColor(Color.DarkSeaGreen) + "ring of forgiveness".WrapUOHtmlColor(Color.Orange) + " & the ".WrapUOHtmlColor(Color.DarkSeaGreen) + "candle of forgiveness".WrapUOHtmlColor(Color.Orange) + ".".WrapUOHtmlColor(Color.DarkSeaGreen));
            html.AppendLine(
                "Currently, the ring of forgiveness allows for one teleportation while dead to a healer. This will work once per 12 hours. To activate the rings abilities, you must be dead and then type:\n"
                    .WrapUOHtmlColor(Color.DarkSeaGreen) );
            html.AppendLine(
                "I seek forgiveness\n"
                    .WrapUOHtmlColor(Color.Red));
            html.AppendLine(
                "This will teleport you to the Britain healers if you are blue or the Buccaneer's Den healers if you are red. Pets will accompany you when you are teleported. We have planned many other uses for the ring which will be implemented in the near future.\n"
                    .WrapUOHtmlColor(Color.DarkSeaGreen));
            html.AppendLine(
                "Currently, the candle has no special uses.".WrapUOHtmlColor(Color.DarkSeaGreen));
            var UI =
                new NewbieQuestGenericUI(from as PlayerMobile, null, null, null, "Candle and Ring of Forgiveness",
                    html.ToString()).
                    Send<NewbieQuestGenericUI>();
        }
Example #2
0
        public override void OnDoubleClick(Mobile from)
        {
            var player = from as PlayerMobile;

            if (player == null || player.NewbieQuestCompleted)
            {
                return;
            }

            if (ControlMaster == null)
            {
                var html = new StringBuilder();

                html.AppendLine(
                    "In life, I was a priestess of this crypt. I would tend the dead and help them on their final journey to the afterlife. All was peaceful here, until word got out that some of the dead were being intered with their belongings.\n"
                        .WrapUOHtmlColor(Color.DarkSeaGreen));
                html.AppendLine(
                    "This is when the "
                        .WrapUOHtmlColor(Color.DarkSeaGreen) + "tomb robbers".WrapUOHtmlColor(Color.Red) + " came.\n".WrapUOHtmlColor(Color.DarkSeaGreen));
                html.AppendLine(
                    "Where we stand now is the place of my...defilement...and resting place. They took my life for mere trinkets left for the dead.\n"
                        .WrapUOHtmlColor(Color.DarkSeaGreen));
                html.AppendLine(
                    "I was peaceful once, but I now crave "
                        .WrapUOHtmlColor(Color.DarkSeaGreen) +
                    "vengeance.\n".WrapUOHtmlColor(Color.Red));
                html.AppendLine(
                    "Give this to me and I will reward you dearly. Help me kill".WrapUOHtmlColor(Color.DarkSeaGreen) +
                    " 10 grave robbers".WrapUOHtmlColor(Color.Red) +
                    " and then guide me to my family's crypt so that I may rest.".WrapUOHtmlColor(Color.DarkSeaGreen));
                var UI =
                    new NewbieQuestGiverUI(from as PlayerMobile, null, null, null, "Quest Offer",
                        html.ToString(),
                        onAccept: x => { AcceptEscorter(from); }).
                        Send<SFQuestGiver>();
            }
            else if (ControlMaster == from && MobKills < 10)
            {
                var html = new StringBuilder();

                html.AppendLine(
                    "My quest for vengeance will be complete when we have killed "
                        .WrapUOHtmlColor(Color.DarkSeaGreen) + (10 - MobKills).ToString().WrapUOHtmlColor(Color.Red) +
                    " more grave robber(s).".WrapUOHtmlColor(Color.DarkSeaGreen));
                var UI =
                    new NewbieQuestGenericUI(from as PlayerMobile, null, null, null, "Quest Details",
                        html.ToString()).
                        Send<NewbieQuestGenericUI>();
            }
            else if (ControlMaster == from && MobKills >= 10)
            {
                Say("Please lead me back to my family's tomb.  It is located in the eastern end of the crypt.");
            }
        }