CostyKiller

Few fixes for Q00933_TombRaiders

Mar 4th, 2021
959
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Index: dist/game/data/scripts/quests/Q00933_TombRaiders/32594-03.htm
  2. ===================================================================
  3. --- dist/game/data/scripts/quests/Q00933_TombRaiders/32594-03.htm   (revision 8382)
  4. +++ dist/game/data/scripts/quests/Q00933_TombRaiders/32594-03.htm   (working copy)
  5. @@ -1,4 +1,4 @@
  6. -<html><body>Search Team's Teleporter:<br>
  7. -You have completed all the tasks and passed the trial.<br>
  8. +<html><body>Leopard:<br>
  9. +Have you killed all the monsters?<br>
  10.  <Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00933_TombRaiders 32594-04.htm">"Yes, sure."</Button>
  11.  </body></html>
  12. \ No newline at end of file
  13. Index: dist/game/data/scripts/quests/Q00933_TombRaiders/32594-04.htm
  14. ===================================================================
  15. --- dist/game/data/scripts/quests/Q00933_TombRaiders/32594-04.htm   (revision 8382)
  16. +++ dist/game/data/scripts/quests/Q00933_TombRaiders/32594-04.htm   (working copy)
  17. @@ -1,3 +1,3 @@
  18. -<html><body>Search Team's Teleporter:<br>
  19. +<html><body>Leopard:<br>
  20.  Congratulations. You have completed all the tasks and passed the trial.
  21.  </body></html>
  22. \ No newline at end of file
  23. Index: dist/game/data/scripts/quests/Q00933_TombRaiders/32594-06.htm
  24. ===================================================================
  25. --- dist/game/data/scripts/quests/Q00933_TombRaiders/32594-06.htm   (revision 8382)
  26. +++ dist/game/data/scripts/quests/Q00933_TombRaiders/32594-06.htm   (working copy)
  27. @@ -1,4 +1,4 @@
  28. -<html><body>Search Team's Teleporter:<br>
  29. -Password Decoder Leopard from the Town of Goddard asks you to defeat the monsters who have conquered the Imperial Tomb. You need to defeat 150 monsters in total.<br>
  30. -To hunt: Tomb Guardian, Tomb Raider, Tomb Watcher, Tomb Soultaker, Tomb Patrol.
  31. +<html><body>Leopard:<br>
  32. +You did not finish your job, you have to defeat the monsters who have conquered the Imperial Tomb: <br>
  33. +Tomb Guardian, Tomb Raider, Tomb Watcher, Tomb Soultaker, Tomb Patrol.
  34.  </body></html>
  35. \ No newline at end of file
  36. Index: dist/game/data/scripts/quests/Q00933_TombRaiders/Q00933_TombRaiders.java
  37. ===================================================================
  38. --- dist/game/data/scripts/quests/Q00933_TombRaiders/Q00933_TombRaiders.java    (revision 8382)
  39. +++ dist/game/data/scripts/quests/Q00933_TombRaiders/Q00933_TombRaiders.java    (working copy)
  40. @@ -20,6 +20,7 @@
  41.  import java.util.Set;
  42.  
  43.  import org.l2jmobius.gameserver.enums.QuestSound;
  44. +import org.l2jmobius.gameserver.enums.QuestType;
  45.  import org.l2jmobius.gameserver.model.actor.Npc;
  46.  import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
  47.  import org.l2jmobius.gameserver.model.holders.NpcLogListHolder;
  48. @@ -64,7 +65,7 @@
  49.         final QuestState qs = getQuestState(player, false);
  50.         if (qs == null)
  51.         {
  52. -           return htmltext;
  53. +           return null;
  54.         }
  55.         switch (event)
  56.         {
  57. @@ -81,7 +82,7 @@
  58.                 {
  59.                     addExpAndSp(player, 20700253956096L, 1450359376);
  60.                     giveItems(player, BENUSTA_REWARD_BOX, 1);
  61. -                   qs.exitQuest(true, true);
  62. +                   qs.exitQuest(QuestType.DAILY, true);
  63.                     htmltext = event;
  64.                 }
  65.                 break;
  66. @@ -99,24 +100,41 @@
  67.         {
  68.             case State.CREATED:
  69.             {
  70. -               htmltext = "34552-01.htm";
  71. +               if (npc.getId() == SEARCH_TEAM_TELEPORTER)
  72. +               {
  73. +                   htmltext = "34552-01.htm";
  74. +               }
  75.                 break;
  76.             }
  77.             case State.STARTED:
  78.             {
  79. -               if (qs.isCond(2))
  80. +               if (npc.getId() == LEOPARD)
  81.                 {
  82. -                   htmltext = "32594-03.htm";
  83. +                   if (qs.isCond(2))
  84. +                   {
  85. +                       htmltext = "32594-03.htm";
  86. +                   }
  87. +                   else
  88. +                   {
  89. +                       htmltext = "32594-06.htm";
  90. +                   }
  91.                 }
  92. -               else
  93. -               {
  94. -                   htmltext = "32594-06.htm";
  95. -               }
  96.                 break;
  97.             }
  98.             case State.COMPLETED:
  99.             {
  100. -               htmltext = getAlreadyCompletedMsg(player);
  101. +               if (npc.getId() == SEARCH_TEAM_TELEPORTER)
  102. +               {
  103. +                   if (qs.isNowAvailable())
  104. +                   {
  105. +                       qs.setState(State.CREATED);
  106. +                       htmltext = "34552-01.htm";
  107. +                   }
  108. +                   else
  109. +                   {
  110. +                       htmltext = getAlreadyCompletedMsg(player, QuestType.DAILY);
  111. +                   }
  112. +               }
  113.                 break;
  114.             }
  115.         }
  116.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×