Advertisement
SilentLtu

kartia

May 15th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P L2J_Mobius_4.0_GrandCrusade
  3. Index: dist/game/data/scripts/instances/KartiasLabyrinth/KartiasLabyrinth.java
  4. ===================================================================
  5. --- dist/game/data/scripts/instances/KartiasLabyrinth/KartiasLabyrinth.java (revision 4097)
  6. +++ dist/game/data/scripts/instances/KartiasLabyrinth/KartiasLabyrinth.java (working copy)
  7. @@ -408,7 +408,7 @@
  8. instance.openCloseDoor(instance.getTemplateParameters().getInt("thirdDoorId"), true);
  9. instance.setStatus(3); // Used for notify helper's AI
  10. }
  11. - else if (param.getBoolean("CONTINUE_AFTER_KILL", false) && instance.getAliveNpcs(MONSTERS).isEmpty())
  12. + else if (param.getBoolean("CONTINUE_AFTER_KILL", false) && instance.getAliveNpcs(MINI_BOSSES).isEmpty())
  13. {
  14. param.set("CONTINUE_AFTER_KILL", false);
  15. getTimers().addTimer("CALL_PROGRESS", 5000, n -> manageProgressInInstance(instance));
  16. @@ -635,7 +635,7 @@
  17. moveMonsters(instance.spawnGroup("ROOM1_STAGE1_WAVE3"));
  18. param.set("WAVE", 1);
  19. param.set("STAGE", 2);
  20. - param.set("CONTINUE_AFTER_KILL", true);
  21. + getTimers().addTimer("CALL_PROGRESS", 8000, n -> manageProgressInInstance(instance));
  22. break;
  23. }
  24. }
  25. @@ -667,7 +667,7 @@
  26. moveMonsters(instance.spawnGroup("ROOM1_STAGE2_WAVE3"));
  27. param.set("WAVE", 1);
  28. param.set("STAGE", 3);
  29. - param.set("CONTINUE_AFTER_KILL", true);
  30. + getTimers().addTimer("CALL_PROGRESS", 8000, n -> manageProgressInInstance(instance));
  31. break;
  32. }
  33. }
  34. @@ -719,7 +719,7 @@
  35. param.set("STAGE", 4);
  36. param.set("WAVE", 1);
  37. }
  38. - param.set("CONTINUE_AFTER_KILL", true);
  39. + getTimers().addTimer("CALL_PROGRESS", 8000, n -> manageProgressInInstance(instance));
  40. break;
  41. }
  42. case 4:
  43. @@ -762,7 +762,7 @@
  44. moveMonsters(instance.spawnGroup("ROOM1_STAGE4_WAVE3"));
  45. param.set("WAVE", 1);
  46. param.set("STAGE", 5);
  47. - param.set("CONTINUE_AFTER_KILL", true);
  48. + getTimers().addTimer("CALL_PROGRESS", 8000, n -> manageProgressInInstance(instance));
  49. break;
  50. }
  51. }
  52. @@ -829,7 +829,7 @@
  53. showOnScreenMsg(instance, NpcStringId.STAGE_S1, ExShowScreenMessage.TOP_CENTER, 5000, true, Integer.toString(stage));
  54. moveMonsters(instance.spawnGroup("ROOM3_STAGE1_WAVE1"));
  55. param.set("STAGE", 2);
  56. - param.set("CONTINUE_AFTER_KILL", true);
  57. + getTimers().addTimer("CALL_PROGRESS", 36000, n -> manageProgressInInstance(instance));
  58.  
  59. final Location survivorLoc = instance.getTemplateParameters().getLocation("middlePointRoom3");
  60. final int survivorCount = param.getInt("SURVIVOR_COUNT");
  61. @@ -845,7 +845,7 @@
  62. showOnScreenMsg(instance, NpcStringId.STAGE_S1, ExShowScreenMessage.TOP_CENTER, 5000, true, Integer.toString(stage));
  63. moveMonsters(instance.spawnGroup("ROOM3_STAGE2_WAVE1"));
  64. param.set("STAGE", 3);
  65. - param.set("CONTINUE_AFTER_KILL", true);
  66. + getTimers().addTimer("CALL_PROGRESS", 36000, n -> manageProgressInInstance(instance));
  67. break;
  68. }
  69. case 3:
  70. @@ -868,7 +868,7 @@
  71. else
  72. {
  73. param.set("STAGE", 4);
  74. - param.set("CONTINUE_AFTER_KILL", true);
  75. + getTimers().addTimer("CALL_PROGRESS", 36000, n -> manageProgressInInstance(instance));
  76. }
  77. break;
  78. }
  79. @@ -877,7 +877,7 @@
  80. showOnScreenMsg(instance, NpcStringId.STAGE_S1, ExShowScreenMessage.TOP_CENTER, 5000, true, Integer.toString(stage));
  81. moveMonsters(instance.spawnGroup("ROOM3_STAGE4_WAVE1"));
  82. param.set("STAGE", 5);
  83. - param.set("CONTINUE_AFTER_KILL", true);
  84. + getTimers().addTimer("CALL_PROGRESS", 36000, n -> manageProgressInInstance(instance));
  85. break;
  86. }
  87. case 5:
  88. @@ -930,7 +930,7 @@
  89. final L2Npc npc = (L2Npc) event.getSeer();
  90. final Instance world = npc.getInstanceWorld();
  91.  
  92. - if ((world != null) && (creature.isPlayer() || creature.getInstanceType().isType(InstanceType.FriendlyNpcInstance)) && npc.isScriptValue(0))
  93. + if ((world != null) && (creature.isPlayer() || creature.getInstanceType().isType(InstanceType.FriendlyNpcInstance)) && npc.isScriptValue(1))
  94. {
  95. final double distance = npc.calculateDistance(creature, false, false);
  96. if ((distance < 450) && !CommonUtil.contains(PRISONERS, creature.getId()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement