Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/config/npcs.properties b/config/npcs.properties
- index 9c99a9f..eb05813 100644
- --- a/config/npcs.properties
- +++ b/config/npcs.properties
- @@ -221,6 +221,11 @@
- # Random interval. Value is hour.
- ZakenRandomSpawn = 20
- +# ------------------------------------------------------------
- +# Teleport boss no quest?
- +# ------------------------------------------------------------
- +AllowDirectTeleportToBossRoom = False
- +
- #=============================================================
- # IA
- #=============================================================
- diff --git a/java/net/sf/l2j/Config.java b/java/net/sf/l2j/Config.java
- index 91fc0f1..9fc0e96 100644
- --- a/java/net/sf/l2j/Config.java
- +++ b/java/net/sf/l2j/Config.java
- @@ -338,6 +338,8 @@
- public static int RANDOM_SPAWN_TIME_VALAKAS;
- public static int WAIT_TIME_VALAKAS;
- + public static boolean ALLOW_DIRECT_TP_TO_BOSS_ROOM;
- +
- public static int SPAWN_INTERVAL_ZAKEN;
- public static int RANDOM_SPAWN_TIME_ZAKEN;
- @@ -1059,6 +1061,7 @@
- MAX_NPC_ANIMATION = npcs.getProperty("MaxNPCAnimation", 40);
- MIN_MONSTER_ANIMATION = npcs.getProperty("MinMonsterAnimation", 10);
- MAX_MONSTER_ANIMATION = npcs.getProperty("MaxMonsterAnimation", 40);
- + ALLOW_DIRECT_TP_TO_BOSS_ROOM = npcs.getProperty("AllowDirectTeleportToBossRoom", false);
- }
- /**
- diff --git a/java/net/sf/l2j/gameserver/model/zone/type/L2BossZone.java b/java/net/sf/l2j/gameserver/model/zone/type/L2BossZone.java
- index ca1e6e4..986c26c 100644
- --- a/java/net/sf/l2j/gameserver/model/zone/type/L2BossZone.java
- +++ b/java/net/sf/l2j/gameserver/model/zone/type/L2BossZone.java
- @@ -9,6 +9,7 @@
- import java.util.concurrent.CopyOnWriteArrayList;
- import java.util.logging.Level;
- +import net.sf.l2j.Config;
- import net.sf.l2j.L2DatabaseFactory;
- import net.sf.l2j.gameserver.data.xml.MapRegionData.TeleportType;
- import net.sf.l2j.gameserver.model.actor.Attackable;
- @@ -89,7 +90,7 @@
- player.setInsideZone(ZoneId.NO_SUMMON_FRIEND, true);
- // Skip other checks for GM.
- - if (player.isGM())
- + if (player.isGM() || Config.ALLOW_DIRECT_TP_TO_BOSS_ROOM)
- return;
- // Get player object id.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement