/**********************************************************
RunUO 2.0 AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by 
Filepath: scripts\_custom\engines\ML Peerless + misc areas\Jormundgand\Quest Giver\SoldierQuestGump.cs
Lines of code: 144
***********************************************************/


//////////////////////////
/// Created by Rosey1  ///  
/// thought up by Aeric///
///                    ///
//////////////////////////


using System;
using Server;
using Server.ContextMenus;
using Server.Accounting;
using Server.Gumps;
using Server.Items;
using Server.Menus;
using Server.Menus.Questions;
using Server.Mobiles;
using Server.Network;
using Server.Prompts;
using Server.Regions;
using Server.Misc;
using System.Collections;

namespace Server.Gumps
{
	public class SoldierQuestGump : Gump
	{
		public SoldierQuestGump( Mobile m): base( 0, 0 )
		{
			this.Closable=false;
			this.Disposable=true;
			this.Dragable=true;
			this.Resizable=false;
			this.AddPage(0);
			this.AddBackground(126, 131, 398, 389, 9270);
			this.AddAlphaRegion(130, 132, 391, 389);
			this.AddImage(110, 460, 10464);
			this.AddImage(536, 214, 9265);
			this.AddImage(507, 460, 10464);
			this.AddImage(507, 408, 10464);
			this.AddImage(110, 193, 10464);
			this.AddImage(110, 247, 10464);
			this.AddImage(110, 301, 10464);
			this.AddImage(110, 354, 10464);
			this.AddImage(110, 408, 10464);
			this.AddImage(110, 139, 10464);
			this.AddImage(93, 197, 9263);
			this.AddImage(59, 124, 10421);
			this.AddImage(88, 110, 10420);
			this.AddImage(107, 246, 10411);
			this.AddImage(43, 399, 10402);
			this.AddImage(93, 513, 10103);
			this.AddImage(109, 513, 10100);
			this.AddImage(234, 513, 10100);
			this.AddImage(218, 513, 10100);
			this.AddImage(202, 513, 10100);
			this.AddImage(124, 513, 10100);
			this.AddImage(172, 513, 10100);
			this.AddImage(156, 513, 10100);
			this.AddImage(140, 513, 10100);
			this.AddImage(188, 513, 10100);
			this.AddImage(234, 513, 10100);
			this.AddImage(234, 513, 10100);
			this.AddImage(249, 513, 10100);
			this.AddImage(264, 513, 10100);
			this.AddImage(218, 513, 10100);
			this.AddImage(308, 513, 10100);
			this.AddImage(172, 513, 10100);
			this.AddImage(292, 513, 10100);
			this.AddImage(188, 513, 10100);
			this.AddImage(277, 513, 10100);
			this.AddImage(339, 513, 10100);
			this.AddImage(324, 513, 10100);
			this.AddImage(415, 513, 10100);
			this.AddImage(399, 513, 10100);
			this.AddImage(354, 513, 10100);
			this.AddImage(368, 123, 10100);
			this.AddImage(385, 513, 10100);
			this.AddImage(445, 513, 10100);
			this.AddImage(430, 513, 10100);
			this.AddImage(521, 513, 10100);
			this.AddImage(505, 513, 10100);
			this.AddImage(460, 513, 10100);
			this.AddImage(476, 513, 10100);
			this.AddImage(491, 513, 10100);
			this.AddImage(156, 123, 10100);
			this.AddImage(140, 123, 10100);
			this.AddImage(232, 123, 10100);
			this.AddImage(216, 123, 10100);
			this.AddImage(171, 123, 10100);
			this.AddImage(187, 123, 10100);
			this.AddImage(202, 123, 10100);
			this.AddImage(339, 513, 10100);
			this.AddImage(324, 513, 10100);
			this.AddImage(415, 513, 10100);
			this.AddImage(399, 513, 10100);
			this.AddImage(353, 123, 10100);
			this.AddImage(369, 513, 10100);
			this.AddImage(385, 513, 10100);
			this.AddImage(263, 123, 10100);
			this.AddImage(248, 123, 10100);
			this.AddImage(339, 123, 10100);
			this.AddImage(323, 123, 10100);
			this.AddImage(278, 123, 10100);
			this.AddImage(294, 123, 10100);
			this.AddImage(309, 123, 10100);
			this.AddImage(398, 123, 10100);
			this.AddImage(383, 123, 10100);
			this.AddImage(474, 123, 10100);
			this.AddImage(458, 123, 10100);
			this.AddImage(413, 123, 10100);
			this.AddImage(429, 123, 10100);
			this.AddImage(444, 123, 10100);
			this.AddImage(505, 123, 10100);
			this.AddImage(489, 123, 10100);
			this.AddImage(521, 123, 10100);
			this.AddImage(507, 193, 10464);
			this.AddImage(507, 139, 10464);
			this.AddImage(507, 354, 10464);
			this.AddImage(507, 299, 10464);
			this.AddImage(507, 247, 10464);
			this.AddImage(523, 254, 10411);
			this.AddImage(532, 130, 10431);
			this.AddImage(500, 112, 10430);
			this.AddImage(535, 513, 10105);
			this.AddImage(520, 417, 10412);
			this.AddLabel(250, 151, 1153, @"Submersia Palace Ruins"); //282
			this.AddButton(226, 469, 247, 248, 0, GumpButtonType.Reply, 0);
			this.AddButton(351, 469, 241, 242,  1, GumpButtonType.Reply, 0);
			this.AddHtml( 157, 181, 345, 279, "The submersian soldier staggers towards you. Tired and wounded, your presence seems to fill his eyes with a sign of hope.<br><br><i>You have come to help us? Only those who carry that necklace can breathe down here. That means my messenger made it to you.</i><br><br>The soldier stops for a moment to apply a bandage to his bleeding wounds. He continues:<br><br><i>Our palace was attacked and destroyed. We were not prepared for such a fearsome battle. The culprit, Jormundgand, burst through our palace and slaughtered all within it. Few escaped with their lives. I sent a messenger to call for help on the surface world.</i><br><br>The soldier takes another breath, and bowing his head, continues once more:<br><Br><i>Jormundgand is a sea serpent who used to reside in the castle. We keep sea serpents as protectors. We honor them greatly for their services. When jormundgand came to us as a baby, we noticed that he possessed great strength. We had great hopes for him to become one of our strongest protectors. However, as he grew, he became evil and his skin turned from blue to red. Seeing this as an omen, the king banished Jormundgand from the castle to the darkest parts of the sea. Jormundgand felt betrayed and formed an army of his own to destroy us for banishing him.</i><br><br><i>I fear the king is dead. I know Jormundgand would personally take vengeance against him. I pray that Queen Ramia managed to escape with the rest of the survivors. I beg you to help us destroy Jormundgand for what he has done to us. It will not be an easy task, he has powerful minions. The door to the throne room has been sealed shut and locked with 6 keys. I believe he has entrusted these keys to his most powerful minions:</i><br><br><i>Dolphinus: The renegade dolphin</i><br><i>Leviath: The powerful leviathan</i><br><i>Queen Lamia: The devious lamia</i><br><i>Charybdis: The powerful whirlwind</i><br><i>Scylla: The fearsome sea monster</i><br><br><i>The last key he might have entrusted to one of his lesser minions. Please won't you help us to destroy Jormundgand?", false, true);
		}

		public override void OnResponse( NetState state, RelayInfo info )
		{
			Mobile from = state.Mobile;

			switch( info.ButtonID )
			{
				case 0:
				{
					from.SendMessage( "Take this key, it will unlock the main doors of the palace. Good luck" );
					from.CloseGump( typeof( SoldierQuestGump ) );
					from.AddToBackpack(new PalaceKey());
					break;
				}
				case 1:
				{
					from.SendMessage( "Please! You must help us!" );
					from.CloseGump( typeof( SoldierQuestGump ) );
					break;
				}
			}
		}
	}
}