Advertisement
CostyKiller

Fix for Mystic Tavern script.

Mar 22nd, 2020
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.17 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P L2J_Mobius_6.0_Fafurion
  3. Index: dist/game/data/scripts/instances/MysticTavern/MysticTavern.java
  4. ===================================================================
  5. --- dist/game/data/scripts/instances/MysticTavern/MysticTavern.java (revision 7027)
  6. +++ dist/game/data/scripts/instances/MysticTavern/MysticTavern.java (working copy)
  7. @@ -70,6 +70,7 @@
  8.     // Misc
  9.     private static final int MINIMUM_PLAYER_LEVEL = 99;
  10.     private static final int MINIMUM_PARTY_MEMBERS = 5;
  11. +   private static int rndInst = 0;
  12.     private static Npc _lollia;
  13.     private static Npc _hanna;
  14.     private static Npc _brodien;
  15. @@ -158,7 +159,7 @@
  16.                     {
  17.                         return "34200-not-available.html";
  18.                     }
  19. -                   npc.setScriptValue(getRandom(availableInstances.size()));
  20. +                   rndInst = getRandomEntry(availableInstances);
  21.                     startQuestTimer("npcRoute", 3000, npc, player);
  22.                 }
  23.                 break;
  24. @@ -326,7 +327,7 @@
  25.             }
  26.             case "enter_instance":
  27.             {
  28. -               switch (npc.getScriptValue())
  29. +               switch (rndInst)
  30.                 {
  31.                     case INSTANCE_FREYA:
  32.                     {
  33. @@ -344,7 +345,6 @@
  34.                     // break;
  35.                     // }
  36.                 }
  37. -               npc.setScriptValue(0);
  38.                 break;
  39.             }
  40.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement