CostyKiller

Fix for quests 10514 and 10515

Nov 25th, 2020
379
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Index: dist/game/data/scripts/quests/Q10514_NewPathToGlory/30070-00.html
  2. ===================================================================
  3. --- dist/game/data/scripts/quests/Q10514_NewPathToGlory/30070-00.html   (revision 7830)
  4. +++ dist/game/data/scripts/quests/Q10514_NewPathToGlory/30070-00.html   (working copy)
  5. @@ -1,4 +1,4 @@
  6.  <html><body>High Priest Sylvain:<br>
  7.  You are not ready to be called by me. Come back when you are ready.<br>
  8. -(The Exalted, Reaching Another Level quest is in progress and level 103+ and Lionel Hunter Mission List - 4 should be in the inventory.)
  9. -</body></html>
  10. \ No newline at end of file
  11. +(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>
  12. +who have selected the alternative way from Lionel first.)
  13. \ No newline at end of file
  14. Index: dist/game/data/scripts/quests/Q10514_NewPathToGlory/Q10514_NewPathToGlory.java
  15. ===================================================================
  16. --- dist/game/data/scripts/quests/Q10514_NewPathToGlory/Q10514_NewPathToGlory.java  (revision 7830)
  17. +++ dist/game/data/scripts/quests/Q10514_NewPathToGlory/Q10514_NewPathToGlory.java  (working copy)
  18. @@ -160,19 +160,20 @@
  19.     @Override
  20.     public String onTalk(Npc npc, PlayerInstance player)
  21.     {
  22. +       final QuestState qs = getQuestState(player, true);
  23. +       final QuestState mainQs = player.getQuestState("Q10873_ExaltedReachingAnotherLevel");
  24.         String htmltext = getNoQuestMsg(player);
  25. -       final QuestState qs = getQuestState(player, true);
  26.         switch (qs.getState())
  27.         {
  28.             case State.CREATED:
  29.             {
  30. -               if (hasItem(player, LIONEL_HUNTERS_LIST_PART_4))
  31. +               if (hasItem(player, LIONEL_HUNTERS_LIST_PART_4) && mainQs.isMemoState(2))
  32.                 {
  33.                     htmltext = "30070-01.htm";
  34.                 }
  35.                 else
  36.                 {
  37. -                   htmltext = "30070-00.htm";
  38. +                   htmltext = "30070-00.html";
  39.                 }
  40.                 break;
  41.             }
  42. Index: dist/game/data/scripts/quests/Q10515_NewWayForPride/30657-00.html
  43. ===================================================================
  44. --- dist/game/data/scripts/quests/Q10515_NewWayForPride/30657-00.html   (revision 7830)
  45. +++ dist/game/data/scripts/quests/Q10515_NewWayForPride/30657-00.html   (working copy)
  46. @@ -1,4 +1,5 @@
  47.  <html><body>Cardinal Seresin:<br>
  48.  I do not believe our paths are meant to cross here. Perhaps later down the road.<br>
  49. -(Only characters above Lv. 104 and The Exalted, Guide to Power quest should be in progress..)
  50. +(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>
  51. +who have selected the alternative way from Lionel first.)
  52.  </body></html>
  53. \ No newline at end of file
  54. Index: dist/game/data/scripts/quests/Q10515_NewWayForPride/Q10515_NewWayForPride.java
  55. ===================================================================
  56. --- dist/game/data/scripts/quests/Q10515_NewWayForPride/Q10515_NewWayForPride.java  (revision 7830)
  57. +++ dist/game/data/scripts/quests/Q10515_NewWayForPride/Q10515_NewWayForPride.java  (working copy)
  58. @@ -167,12 +167,13 @@
  59.     public String onTalk(Npc npc, PlayerInstance player)
  60.     {
  61.         final QuestState qs = getQuestState(player, true);
  62. +       final QuestState mainQs = player.getQuestState("Q10879_ExaltedGuideToPower");
  63.         String htmltext = getNoQuestMsg(player);
  64.         switch (qs.getState())
  65.         {
  66.             case State.CREATED:
  67.             {
  68. -               if ((npc.getId() == CARDINAL_SERESIN) && (hasItem(player, LIONEL_HUNTERS_LIST_PART_5)))
  69. +               if ((npc.getId() == CARDINAL_SERESIN) && (hasItem(player, LIONEL_HUNTERS_LIST_PART_5)) && mainQs.isMemoState(2))
  70.                 {
  71.                     htmltext = "30657-01.htm";
  72.                 }
  73.  
RAW Paste Data