From 81dc66ad6238e55ec68b630913b87d3828d9b904 Mon Sep 17 00:00:00 2001
From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com>
Date: Sun, 24 Jul 2016 11:24:47 +0000
Subject: [PATCH] Quest Orbis' Witch (10317). Contributed by gigilo1968.
---
.../data/scripts/quests/MissingQuests.txt | 211 ++++++++++++++++++
.../quests/Q10317_OrbisWitch/32892-01.html | 4 +
.../quests/Q10317_OrbisWitch/32892-02.html | 4 +
.../quests/Q10317_OrbisWitch/32946-01.htm | 4 +
.../quests/Q10317_OrbisWitch/32946-02.html | 4 +
.../quests/Q10317_OrbisWitch/32946-03.html | 5 +
.../quests/Q10317_OrbisWitch/32946-04.html | 5 +
.../quests/Q10317_OrbisWitch/32946-05.htm | 5 +
.../quests/Q10317_OrbisWitch/32946-06.htm | 3 +
.../quests/Q10317_OrbisWitch/32946-07.html | 3 +
.../quests/Q10317_OrbisWitch/32946-08.html | 4 +
.../quests/Q10317_OrbisWitch/32946-09.html | 3 +
.../Q10317_OrbisWitch/Q10317_OrbisWitch.java | 122 ++++++++++
.../scripts/quests/QuestMasterHandler.java | 2 +
.../dist/game/data/stats/npcs/32800-32899.xml | 2 +-
15 files changed, 380 insertions(+), 1 deletion(-)
create mode 100644 trunk/dist/game/data/scripts/quests/MissingQuests.txt
create mode 100644 trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32892-01.html
create mode 100644 trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32892-02.html
create mode 100644 trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-01.htm
create mode 100644 trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-02.html
create mode 100644 trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-03.html
create mode 100644 trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-04.html
create mode 100644 trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-05.htm
create mode 100644 trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-06.htm
create mode 100644 trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-07.html
create mode 100644 trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-08.html
create mode 100644 trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-09.html
create mode 100644 trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/Q10317_OrbisWitch.java
diff --git a/trunk/dist/game/data/scripts/quests/MissingQuests.txt b/trunk/dist/game/data/scripts/quests/MissingQuests.txt
new file mode 100644
index 0000000000..02098a63db
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/MissingQuests.txt
@@ -0,0 +1,211 @@
+144 Pailaka - Injured Dragon
+149 Primal Mother, Istina
+150 Extreme Challenge: Primal Mother Resurrected
+180 Infernal Flames Burning in Crystal Prison
+181 Devils Strike Back, Advent of Balok
+245 Come to Me
+336 Coins of Magic
+337 Audience with the Land Dragon
+353 Power of Darkness
+386 Stolen Dignity
+459 The Villain of the Underground Mine, Teredor
+460 Precious Research Material
+462 Stuffed Ancient Heroes
+465 We Are Friends
+466 Placing My Small Power
+468 Be Lost in the Mysterious Scent
+469 Suspicious Gardener
+471 Breaking through the Emerald Square
+472 Challenge, Steam Corridor
+473 In the Coral Garden
+480 Another Legacy of Cruma Tower
+482 Recertification of Value
+483 Intended Tactic
+491 In Nomine Patris
+492 Tomb Raiders
+504 Competition for the Bandit Stronghold
+505 Blood Offering
+512 Blade Under Foot
+551 Olympiad Starter
+620 Four Goblets
+655 A Grand Plan for Taming Wild Beasts
+665 Great Pirate Zaken's Treasure
+666 Leona Blackbird's Treasure
+667 Queen Beora's Legacy
+668 The Gladiator's Treasure
+669 High Priest's Treasure
+670 Turek Orc's Treasure
+726 Light within the Darkness
+727 Hope within the Darkness
+750 Seven Flowers
+751 Liberating the Spirits
+752 Uncover the Secret
+753 Reacting to a Crisis
+754 Assisting the Rebel Forces
+755 In Need of Petras
+756 Top Quality Petra
+758 The Fallen King's Men
+759 The Dwarven Nightmare Continues
+764 Weakening the Varka Silenos Forces
+765 Weakening the Ketra Orc Forces
+767 Banishing Evil
+768 Terror of Town
+769 The Truth Concealed in Beauty
+770 Maintaining the Field Business
+771 Partaking in the Purification Campaign
+772 Purifying Souls
+775 Retrieving the Chaos Fragment
+776 Slay Dark Lord Ekimus
+777 Slay Dark Lord Tiat
+778 Operation Roaring Flame
+779 Utilize the Darkness - Seed of Destruction
+780 Utilize the Darkness - Seed of Infinity
+781 Utilize the Darkness - Seed of Annihilation
+782 Utilize the Darkness - Seed of Hellfire
+783 Vestige of the Magic Power
+785 A Suspicious Ingredient
+787 The Role of a Watcher
+789 Waiting for Pa'agrio
+790 Obtaining Ferin's Trust
+816 Plans to Repair the Stronghold
+817 Black Atelia Research
+823 Disappeared Race, New Fairy
+824 Attack the Command Post
+826 In Search of the Secret Weapon
+827 Einhasad's Order
+828 Eva's Blessing
+829 Maphr's Salvation
+830 The Way of the Giant's Pawn
+831 Sayha's Scheme
+833 Devil's Treasure, Tauti
+834 Against Dragonclaw
+835 Pitiable Melisa
+943 Filling the Energy of Destruction
+10295 Seven Signs, Solina's Tomb
+10296 Seven Signs, One Who Seeks the Power of the Seal
+10303 Crossroads between Light and Darkness
+10304 For the Forgotten Heroes
+10307 The Corrupted Leader: His Truth
+10310 Twisted Creation Tree
+10311 Peaceful Days are Over
+10312 Abandoned God's Creature
+10315 To the Prison of Darkness
+10316 Undecaying Memory of the Past
+10318 Decaying Darkness
+10351 Owner of Hall
+10352 Legacy of Cruma Tower
+10353 Certification of Value
+10354 Resurrected Owner of Hall
+10357 Altar of Blood that Awakens Destruction
+10370 Menacing Times
+10371 Grasp Thy Power
+10372 Purgatory Volvere
+10374 That Place Succubus
+10375 Succubus Disciples
+10376 Bloody Good Time
+10377 The Invaded Execution Grounds
+10378 Weeding Work
+10379 An Uninvited Guest
+10380 The Executioner's Execution
+10382 Day of Liberation
+10383 Fergason's Offer
+10384 An Audience With Tauti
+10388 Conspiracy Behind Doors
+10389 The Voice of Authority
+10415 Kekropus' Letter: With Wisdom (7/9)
+10422 Assassination of the Varka Silenos Chief
+10424 Kekropus' Letter: Belos' Whereabouts (8/9)
+10425 The Ketra Orc Supporters
+10426 Assassination of the Ketra Orc Commander
+10427 Assassination of the Ketra Orc Chief
+10430 Kekropus' Letter: Tracking the Evil (9/9)
+10431 The Seal of Punishment: Den of Evil
+10432 Chasing Varangka
+10433 Kekropus' Letter: Regarding a Seal (9/9)
+10434 The Seal of Punishment: Sel Mahum Training Grounds
+10435 Chasing Keltron
+10436 Kekropus' Letter: The Seal of Punishment (9/9)
+10437 The Seal of Punishment: Plains of the Lizardmen
+10438 Chasing Loygen
+10439 Kekropus' Letter: The Origins of a Rumor (9/9)
+10440 The Seal of Punishment: The Fields
+10441 Chasing Meccadan
+10443 The Annihilated Plains - 2
+10444 The Origin of Monsters
+10446 Hit and Run
+10447 Timing is Everything
+10452 Is it Edible?
+10453 Stopping the Wind Dragon
+10456 Operation: Rescue
+10457 Kefensis' Illusion
+10458 To the Desert Quarry
+10459 A Sick Ambition
+10462 Temper a Rusting Blade
+10465 Soul Frost Sword
+10506 Diana's Request
+10703 Bottle of Istina's Soul
+10704 Bottle of Octavis' Soul
+10705 Bottle of Tauti's Soul
+10712 The Minstrel's Song, Part 1
+10713 The Hero's Journey: Bloody Swampland
+10714 The Hero's Journey: Seed of Annihilation
+10715 The Hero's Journey: Harnak Underground Ruins
+10716 The Hero's Journey: Kartia's Labyrinth
+10717 The Minstrel's Song, Part 2
+10718 The Hero's Journey: Fairy Settlement
+10720 The Minstrel's Song, Part 3
+10721 The Hero's Journey: Prison of Darkness
+10722 The Hero's Journey: Fortuna
+10723 The Minstrel's Song, Part 4
+10724 The Hero's Journey: Isle of Souls
+10725 The Hero's Journey: Nornil's Cave
+10726 The Minstrel's Song, Part 5
+10727 The Hero's Journey: Seal of Shilen
+10728 The Hero's Journey: Cemetary
+10729 The Hero's Journey: Guillotine Fortress
+10730 The Hero's Journey: Orbis Temple
+10731 The Minstrel's Song, Part 6
+10747 The Hero's Journey: Pagan Temple
+10748 Mysterious Suggestion - 1
+10749 Mysterious Suggestion - 2
+10753 Winds of Fate: Choices
+10766 A New Craft
+10767 A Whole New Level of Alchemy
+10790 A Mercenary Helper
+10791 The Man of Mystery
+10794 Investigate the Forest
+10796 The Eye that Defied the Gods
+10797 Crossing Fate
+10801 The Dimensional Warp, Part 1
+10802 The Dimensional Warp, Part 2
+10803 The Dimensional Warp, Part 3
+10804 The Dimensional Warp, Part 4
+10805 The Dimensional Warp, Part 5
+10806 The Dimensional Warp, Part 6
+10807 The Dimensional Warp, Part 7
+10809 The Hero's Journey: Blazing Swamp
+10817 Exalted, One Who Overcomes the Limit
+10818 Confronting a Giant Monster
+10819 For Honor
+10820 Relationships Befitting of the Status
+10821 Helping Others
+10823 Exalted, One Who Shatters the Limit
+10824 Confronting the Greatest Danger
+10825 For Victory
+10826 Luck Befitting of the Status
+10827 Step Up to Lead
+10829 In Search of the Cause
+10830 The Lost Garden of Spirits
+10831 Unbelievable Sight
+10832 Energy of Sadness and Anger
+10833 Put the Queen of Spirits to Sleep
+10836 Disappeared Clan Member
+10837 Looking for the Blackbird Clan Member
+10838 The Reason For Not Being Able to Get Out
+10839 Blackbird's Name Value
+10840 Time to Recover
+10841 Deep Inside Atelia Fortress
+10843 Anomaly in the Enchanted Valley
+10844 Bloody Battle - Seizing Supplies
+10845 Bloody Battle - Rescue the Smiths
+10846 Bloody Battle - Meeting the Commander
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32892-01.html b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32892-01.html
new file mode 100644
index 0000000000..1cfcd72e46
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32892-01.html
@@ -0,0 +1,4 @@
+
Divine Messenger Lydia:
+I've been watching from afar. You arrival here was a simple question of when, not if.
+
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32892-02.html b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32892-02.html
new file mode 100644
index 0000000000..db7428bc43
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32892-02.html
@@ -0,0 +1,4 @@
+Divine Messenger Lydia:
+You ask, even after seeing with your own two eyes? Hmm.
+Well then, I will tell you, but only once you've committed yourself to helping our cause. This place needs you, child. No other will do.
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-01.htm b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-01.htm
new file mode 100644
index 0000000000..17414d26c7
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-01.htm
@@ -0,0 +1,4 @@
+Opera:
+What? Are you going to bring up that nonsense again?
+
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-02.html b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-02.html
new file mode 100644
index 0000000000..e7b6ab6f51
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-02.html
@@ -0,0 +1,4 @@
+Opera:
+You're still going on about that? Silly! Spezion is a traitor and Octavis saved the day! Octavis is the hero! You're suspicious? With such clear historical facts? I understand suspicion and curiosity, but you're so skeptical!
+
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-03.html b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-03.html
new file mode 100644
index 0000000000..9f5fb2a237
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-03.html
@@ -0,0 +1,5 @@
+Opera:
+If you're really that curious, go visit Orbis Hall. That's where Octavis is. Once you meet the hero and talk to all those who stand behind him, you'll think differently.
+But, Don't ask me to take you there. That's totally NOT going to happen... I have a play date!
+
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-04.html b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-04.html
new file mode 100644
index 0000000000..2f55ddda7e
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-04.html
@@ -0,0 +1,5 @@
+Opera:
+No I'm not! I'm a famous cat warrior! I AM! I just have a play date. I can't just cancel... and, I'm not feeling well.... I'm not scared!
+The cats do go to Orbis Hall, sometimes. I've even been there, but not for a while.
+
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-05.htm b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-05.htm
new file mode 100644
index 0000000000..b266d4f3fc
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-05.htm
@@ -0,0 +1,5 @@
+Opera:
+I don't know much, but when you get to Orbis Hall, go visit the medium, God's Messenger Lydia. She's been there since, umm, forever! Go meet the hero Octavis, ask around town. But when you're done, if you're still suspicious, visit Lydia.
+That's all I can tell you. Now go satisfy your curiosity!
+
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-06.htm b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-06.htm
new file mode 100644
index 0000000000..3f1a06ab35
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-06.htm
@@ -0,0 +1,3 @@
+Opera:
+Try going to Orbis Temple. But be careful, don't die of curiosity.
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-07.html b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-07.html
new file mode 100644
index 0000000000..edbac70ad8
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-07.html
@@ -0,0 +1,3 @@
+Opera:
+Are you scared? When you go to Orbis Temple there is a medium named Divine Messenger Lydia. She's very wise. Talk to her.
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-08.html b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-08.html
new file mode 100644
index 0000000000..d4bfcfa0b2
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-08.html
@@ -0,0 +1,4 @@
+Opera:
+I'm sorry, not time to play now. I've got to return to town now!
+(This quest is already done)
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-09.html b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-09.html
new file mode 100644
index 0000000000..fde9581b9f
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/32946-09.html
@@ -0,0 +1,3 @@
+Opera: Are you afraid?
+(Only characters with level 95 or above, who have completed the Unrotting Memory of the Past quest, can take this quest.)
+
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/Q10317_OrbisWitch.java b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/Q10317_OrbisWitch.java
new file mode 100644
index 0000000000..ccf96c977a
--- /dev/null
+++ b/trunk/dist/game/data/scripts/quests/Q10317_OrbisWitch/Q10317_OrbisWitch.java
@@ -0,0 +1,122 @@
+/*
+ * This file is part of the L2J Mobius project.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+package quests.Q10317_OrbisWitch;
+
+import com.l2jmobius.gameserver.model.actor.L2Npc;
+import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jmobius.gameserver.model.quest.Quest;
+import com.l2jmobius.gameserver.model.quest.QuestState;
+
+/**
+ * Orbis' Witch (10317)
+ * @URL https://l2wiki.com/Orbis%27_Witch
+ * @author Gigi
+ */
+public final class Q10317_OrbisWitch extends Quest
+{
+ // NPCs
+ private static final int OPERA = 32946;
+ private static final int LYDIA = 32892;
+ // Misc
+ private static final int MIN_LEVEL = 95;
+
+ public Q10317_OrbisWitch()
+ {
+ super(10317);
+ addStartNpc(OPERA);
+ addTalkId(OPERA, LYDIA);
+
+ addCondMinLevel(MIN_LEVEL, "32946-09.html");
+ // addCondCompletedQuest(Q10316_UndecayingMemoryOfThePast.class.getSimpleName(), "32946-09.html");
+ }
+
+ @Override
+ public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
+ {
+ String htmltext = null;
+ final QuestState qs = getQuestState(player, false);
+ if (qs == null)
+ {
+ return htmltext;
+ }
+
+ switch (event)
+ {
+ case "32946-02.html":
+ case "32946-03.html":
+ case "32946-04.html":
+ case "32946-05.htm":
+ {
+ htmltext = event;
+ break;
+ }
+ case "32946-06.htm":
+ {
+ qs.startQuest();
+ htmltext = event;
+ break;
+ }
+ case "32892-02.html":
+ {
+ giveAdena(player, 506760, false);
+ addExpAndSp(player, 7412805, 1779);
+ qs.exitQuest(false, true);
+ htmltext = event;
+ break;
+ }
+ }
+ return htmltext;
+ }
+
+ @Override
+ public String onTalk(L2Npc npc, L2PcInstance player)
+ {
+ final QuestState qs = getQuestState(player, true);
+ String htmltext = getNoQuestMsg(player);
+ if (qs == null)
+ {
+ return htmltext;
+ }
+ switch (npc.getId())
+ {
+ case OPERA:
+ {
+ if (qs.isCreated())
+ {
+ htmltext = "32946-01.htm";
+ }
+ else if (qs.isCond(1))
+ {
+ htmltext = "32946-07.html";
+ }
+ else if (qs.isCompleted())
+ {
+ htmltext = "32946-08.html";
+ }
+ break;
+ }
+ case LYDIA:
+ {
+ if (qs.isCond(1))
+ {
+ htmltext = "32892-01.html";
+ }
+ }
+ }
+ return htmltext;
+ }
+}
\ No newline at end of file
diff --git a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java
index 33217805c4..fb02642074 100644
--- a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java
+++ b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java
@@ -193,6 +193,7 @@ import quests.Q10301_ShadowOfTerrorBlackishRedFog.Q10301_ShadowOfTerrorBlackishR
import quests.Q10302_UnsettlingShadowAndRumors.Q10302_UnsettlingShadowAndRumors;
import quests.Q10305_UnstoppableFutileEfforts.Q10305_UnstoppableFutileEfforts;
import quests.Q10306_TheCorruptedLeader.Q10306_TheCorruptedLeader;
+import quests.Q10317_OrbisWitch.Q10317_OrbisWitch;
import quests.Q10320_LetsGoToTheCentralSquare.Q10320_LetsGoToTheCentralSquare;
import quests.Q10321_QualificationsOfTheSeeker.Q10321_QualificationsOfTheSeeker;
import quests.Q10322_SearchingForTheMysteriousPower.Q10322_SearchingForTheMysteriousPower;
@@ -517,6 +518,7 @@ public class QuestMasterHandler
Q10302_UnsettlingShadowAndRumors.class,
Q10305_UnstoppableFutileEfforts.class,
Q10306_TheCorruptedLeader.class,
+ Q10317_OrbisWitch.class,
Q10320_LetsGoToTheCentralSquare.class,
Q10321_QualificationsOfTheSeeker.class,
Q10322_SearchingForTheMysteriousPower.class,
diff --git a/trunk/dist/game/data/stats/npcs/32800-32899.xml b/trunk/dist/game/data/stats/npcs/32800-32899.xml
index dd3347f038..b733a8929b 100644
--- a/trunk/dist/game/data/stats/npcs/32800-32899.xml
+++ b/trunk/dist/game/data/stats/npcs/32800-32899.xml
@@ -2580,7 +2580,7 @@
-
+