Advertisement
Sarada-L2

Boss Zone No Quest Acis 372

Oct 28th, 2021
535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. diff --git a/config/npcs.properties b/config/npcs.properties
  2. index 9c99a9f..eb05813 100644
  3. --- a/config/npcs.properties
  4. +++ b/config/npcs.properties
  5. @@ -221,6 +221,11 @@
  6. # Random interval. Value is hour.
  7. ZakenRandomSpawn = 20
  8.  
  9. +# ------------------------------------------------------------
  10. +# Teleport boss no quest?
  11. +# ------------------------------------------------------------
  12. +AllowDirectTeleportToBossRoom = False
  13. +
  14. #=============================================================
  15. # IA
  16. #=============================================================
  17. diff --git a/java/net/sf/l2j/Config.java b/java/net/sf/l2j/Config.java
  18. index 91fc0f1..9fc0e96 100644
  19. --- a/java/net/sf/l2j/Config.java
  20. +++ b/java/net/sf/l2j/Config.java
  21. @@ -338,6 +338,8 @@
  22. public static int RANDOM_SPAWN_TIME_VALAKAS;
  23. public static int WAIT_TIME_VALAKAS;
  24.  
  25. + public static boolean ALLOW_DIRECT_TP_TO_BOSS_ROOM;
  26. +
  27. public static int SPAWN_INTERVAL_ZAKEN;
  28. public static int RANDOM_SPAWN_TIME_ZAKEN;
  29.  
  30. @@ -1059,6 +1061,7 @@
  31. MAX_NPC_ANIMATION = npcs.getProperty("MaxNPCAnimation", 40);
  32. MIN_MONSTER_ANIMATION = npcs.getProperty("MinMonsterAnimation", 10);
  33. MAX_MONSTER_ANIMATION = npcs.getProperty("MaxMonsterAnimation", 40);
  34. + ALLOW_DIRECT_TP_TO_BOSS_ROOM = npcs.getProperty("AllowDirectTeleportToBossRoom", false);
  35. }
  36.  
  37. /**
  38. diff --git a/java/net/sf/l2j/gameserver/model/zone/type/L2BossZone.java b/java/net/sf/l2j/gameserver/model/zone/type/L2BossZone.java
  39. index ca1e6e4..986c26c 100644
  40. --- a/java/net/sf/l2j/gameserver/model/zone/type/L2BossZone.java
  41. +++ b/java/net/sf/l2j/gameserver/model/zone/type/L2BossZone.java
  42. @@ -9,6 +9,7 @@
  43. import java.util.concurrent.CopyOnWriteArrayList;
  44. import java.util.logging.Level;
  45.  
  46. +import net.sf.l2j.Config;
  47. import net.sf.l2j.L2DatabaseFactory;
  48. import net.sf.l2j.gameserver.data.xml.MapRegionData.TeleportType;
  49. import net.sf.l2j.gameserver.model.actor.Attackable;
  50. @@ -89,7 +90,7 @@
  51. player.setInsideZone(ZoneId.NO_SUMMON_FRIEND, true);
  52.  
  53. // Skip other checks for GM.
  54. - if (player.isGM())
  55. + if (player.isGM() || Config.ALLOW_DIRECT_TP_TO_BOSS_ROOM)
  56. return;
  57.  
  58. // Get player object id.
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement