using Server.Gumps; using Server.Mobiles; namespace Server.Engines.Quests.Necro { public class ScrollOfAbraxus : QuestItem { [Constructible] public ScrollOfAbraxus() : base(0x227B) { Weight = 1.0; } public ScrollOfAbraxus(Serial serial) : base(serial) { } public override int LabelNumber => 1028827; // Scroll of Abraxus public override bool CanDrop(PlayerMobile player) { return !(player.Quest is DarkTidesQuest); //return !( qs.IsObjectiveInProgress( typeof( RetrieveAbraxusScrollObjective ) ) || qs.IsObjectiveInProgress( typeof( ReadAbraxusScrollObjective ) ) ); } public override void OnAdded(IEntity parent) { base.OnAdded(parent); if (RootParent is PlayerMobile pm) { QuestSystem qs = pm.Quest; if (qs is DarkTidesQuest) { QuestObjective obj = qs.FindObjective(); if (obj?.Completed == false) obj.Complete(); } } } public override void OnDoubleClick(Mobile from) { if (IsChildOf(from.Backpack)) { from.SendGump(new ScrollOfAbraxusGump()); if (from is PlayerMobile pm) { QuestSystem qs = pm.Quest; if (qs is DarkTidesQuest) { QuestObjective obj = qs.FindObjective(); if (obj?.Completed == false) obj.Complete(); } } } else { from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it. } } public override void Serialize(GenericWriter writer) { base.Serialize(writer); writer.Write(0); // version } public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); } } public class ScrollOfAbraxusGump : Gump { public ScrollOfAbraxusGump() : base(150, 50) { AddPage(0); AddImage(0, 0, 1228); AddImage(340, 255, 9005); /* Security at the Crystal Cave

* * We have taken great measuresto ensure the safety of the * Scroll of Calling, which we have so valiantly taken from * the Necromancer Maabus during the battle of the wood * nearly 200 years ago.

* * The scroll must never fall into the hands of the * Necromancers again, lest they use it to summon the ancient * daemon Kronus. The scroll of calling is a necessity in the * series of dark rites the Necromancers must perform to once again * re-awaken Kronus.

* * Should Kronus ever rise again, the days of the Paladins, and * indeed humanity as we know it will be numbered.

* * For this reason, we have posted the honorable Horus, former * General of the Northern Legions to guard the entrance of the * Crystal Cave where we keep the Scroll of Calling. Horus was * infused with magical life from the tree Urywen during his last * battle. The power gave him eternal life, but it also, * unfortunately, took his eye sight.

* * Since Horus cannot see those he admits to the Crystal Cave, * he will only allow those that know the secret password to enter. * Speak the following word to Horus and he shall grant you passage * to the Crystal Cave:

* * Urywen

* * Do not speak this password anywhere except when seeking passage * into the Crystal Cave, as our adversaries are lurking in the * shadows � they are everywhere.

Go with the light, friend.

* * - Frater Melkeer */ AddHtmlLocalized(25, 36, 350, 210, 1060116, 1, false, true); } } }