Skip to content

Instantly share code, notes, and snippets.

@St3eT
Last active December 15, 2015 21:29
Show Gist options
  • Save St3eT/5326286 to your computer and use it in GitHub Desktop.
Save St3eT/5326286 to your computer and use it in GitHub Desktop.
Hellbound without Q config
### Eclipse Workspace Patch 1.0
#P L2J_DataPack_BETA
Index: dist/game/data/scripts/ai/npc/Teleports/Warpgate/Warpgate.java
===================================================================
--- dist/game/data/scripts/ai/npc/Teleports/Warpgate/Warpgate.java (revision 9607)
+++ dist/game/data/scripts/ai/npc/Teleports/Warpgate/Warpgate.java (working copy)
@@ -22,6 +22,7 @@
import quests.Q00133_ThatsBloodyHot.Q00133_ThatsBloodyHot;
import ai.npc.AbstractNpcAI;
+import com.l2jserver.Config;
import com.l2jserver.gameserver.ThreadPoolManager;
import com.l2jserver.gameserver.instancemanager.HellboundManager;
import com.l2jserver.gameserver.model.PcCondOverride;
@@ -58,6 +59,11 @@
return false;
}
+ if (Config.HELLBOUND_WITHOUT_QUEST)
+ {
+ return true;
+ }
+
QuestState st;
if (!HellboundManager.getInstance().isLocked())
{
#P L2J_Server_BETA
Index: java/com/l2jserver/Config.java
===================================================================
--- java/com/l2jserver/Config.java (revision 5920)
+++ java/com/l2jserver/Config.java (working copy)
@@ -650,6 +650,7 @@
public static boolean ENABLE_BLOCK_CHECKER_EVENT;
public static int MIN_BLOCK_CHECKER_TEAM_MEMBERS;
public static boolean HBCE_FAIR_PLAY;
+ public static boolean HELLBOUND_WITHOUT_QUEST;
public static int PLAYER_MOVEMENT_BLOCK_TIME;
public static boolean CLEAR_CREST_CACHE;
public static int NORMAL_ENCHANT_COST_MULTIPLIER;
@@ -2155,6 +2156,7 @@
MIN_BLOCK_CHECKER_TEAM_MEMBERS = 6;
}
HBCE_FAIR_PLAY = Boolean.parseBoolean(General.getProperty("HBCEFairPlay", "false"));
+ HELLBOUND_WITHOUT_QUEST = Boolean.parseBoolean(General.getProperty("HellboundWithoutQuest", "false"));
CLEAR_CREST_CACHE = Boolean.parseBoolean(General.getProperty("ClearClanCache", "false"));
NORMAL_ENCHANT_COST_MULTIPLIER = Integer.parseInt(General.getProperty("NormalEnchantCostMultipiler", "1"));
Index: dist/game/config/General.properties
===================================================================
--- dist/game/config/General.properties (revision 5920)
+++ dist/game/config/General.properties (working copy)
@@ -933,6 +933,13 @@
HBCEFairPlay = True
# ---------------------------------------------------------------------------
+# Hellbound Settings
+# ---------------------------------------------------------------------------
+# If true, players can enter the Hellbound island without any quests
+# Default: False
+HellboundWithoutQuest = False
+
+# ---------------------------------------------------------------------------
# Developer Settings
# ---------------------------------------------------------------------------
# Do not touch these if you do not know what you are doing.
@jurchiks
Copy link

jurchiks commented Apr 6, 2013

This text would be better: "If true, players can enter the Hellbound island without any quests"

@St3eT
Copy link
Author

St3eT commented Apr 6, 2013

Updated, thanks jurchiks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment