Fix for Quests 10514 and 10515 starting without main quest condition.

Contributed by CostyKiller.
This commit is contained in:
MobiusDevelopment 2020-11-26 07:13:47 +00:00
parent 874ecad539
commit 2595454ce0
4 changed files with 10 additions and 7 deletions

View File

@ -1,4 +1,4 @@
<html><body>High Priest Sylvain:<br>
You are not ready to be called by me. Come back when you are ready.<br>
(The Exalted, Reaching Another Level quest is in progress and level 103+ and Lionel Hunter Mission List - 4 should be in the inventory.)
</body></html>
(Only characters above Lv. 103 who have The Exalted, Reaching Another Level quest in progress, Lionel Hunter Mission List - 4 in the inventory, and<br>
who have selected the alternative way from Lionel first.)

View File

@ -160,19 +160,20 @@ public class Q10514_NewPathToGlory extends Quest
@Override
public String onTalk(Npc npc, PlayerInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState qs = getQuestState(player, true);
final QuestState mainQs = player.getQuestState("Q10873_ExaltedReachingAnotherLevel");
String htmltext = getNoQuestMsg(player);
switch (qs.getState())
{
case State.CREATED:
{
if (hasItem(player, LIONEL_HUNTERS_LIST_PART_4))
if (hasItem(player, LIONEL_HUNTERS_LIST_PART_4) && mainQs.isMemoState(2))
{
htmltext = "30070-01.htm";
}
else
{
htmltext = "30070-00.htm";
htmltext = "30070-00.html";
}
break;
}

View File

@ -1,4 +1,5 @@
<html><body>Cardinal Seresin:<br>
I do not believe our paths are meant to cross here. Perhaps later down the road.<br>
(Only characters above Lv. 104 and The Exalted, Guide to Power quest should be in progress..)
(Only characters above Lv. 104 who have The Exalted, Guide to Power quest in progress, Lionel Hunter Mission List - 5 in the inventory, and<br>
who have selected the alternative way from Lionel first.)
</body></html>

View File

@ -167,12 +167,13 @@ public class Q10515_NewWayForPride extends Quest
public String onTalk(Npc npc, PlayerInstance player)
{
final QuestState qs = getQuestState(player, true);
final QuestState mainQs = player.getQuestState("Q10879_ExaltedGuideToPower");
String htmltext = getNoQuestMsg(player);
switch (qs.getState())
{
case State.CREATED:
{
if ((npc.getId() == CARDINAL_SERESIN) && (hasItem(player, LIONEL_HUNTERS_LIST_PART_5)))
if ((npc.getId() == CARDINAL_SERESIN) && (hasItem(player, LIONEL_HUNTERS_LIST_PART_5)) && mainQs.isMemoState(2))
{
htmltext = "30657-01.htm";
}