Quest Orbis' Witch (10317).

Contributed by gigilo1968.
This commit is contained in:
MobiusDev
2016-07-24 11:24:47 +00:00
parent 95f407ceab
commit 81dc66ad62
15 changed files with 380 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
<html><body>Divine Messenger Lydia:<br>
I've been watching from afar. You arrival here was a simple question of when, not if.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10317_OrbisWitch 32892-02.html">"What happened here?"</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Divine Messenger Lydia:<br>
You ask, even after seeing with your own two eyes? Hmm.<br>
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.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Opera:<br>
What? Are you going to bring up that nonsense again?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10317_OrbisWitch 32946-02.html">"What was the relationship between Octavis and Spezion?"</Button></body>
</html>

View File

@@ -0,0 +1,4 @@
<html><body>Opera:<br>
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!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10317_OrbisWitch 32946-03.html">"I just want to know the truth."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Opera:<br>
If you're really that curious, go visit <font color="LEVEL">Orbis Hall</font>. That's where Octavis is. Once you meet the hero and talk to all those who stand behind him, you'll think differently.<br>
But, Don't ask me to take you there. That's totally NOT going to happen... I have a play date!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10317_OrbisWitch 32946-04.html">"Scaredy cat! Are you afraid of something there?"</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Opera:<br>
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!<br>
The cats do go to Orbis Hall, sometimes. I've even been there, but not for a while.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10317_OrbisWitch 32946-05.htm">"Tell me about it."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Opera:<br>
I don't know much, but when you get to <font color="LEVEL">Orbis Hall</font>, go visit the medium, <font color="LEVEL">God's Messenger Lydia</font>. 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.<br>
That's all I can tell you. Now go satisfy your curiosity!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10317_OrbisWitch 32946-06.htm">"Going!"</Button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Opera:<br>
Try going to Orbis Temple. But be careful, don't die of curiosity.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Opera:<br>
Are you scared? When you go to <font color="LEVEL">Orbis Temple</font> there is a medium named <font color="LEVEL">Divine Messenger Lydia</font>. She's very wise. Talk to her.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Opera:<br>
I'm sorry, not time to play now. I've got to return to town now!<br>
(This quest is already done)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Opera:<br>Are you afraid?<br>
(Only characters with level 95 or above, who have completed the Unrotting Memory of the Past quest, can take this quest.)
</body></html>

View File

@@ -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 <http://www.gnu.org/licenses/>.
*/
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;
}
}