Disable Tutorial config.
This commit is contained in:
parent
88b1fc057d
commit
b234222668
4
trunk/dist/game/config/Character.ini
vendored
4
trunk/dist/game/config/Character.ini
vendored
@ -744,6 +744,10 @@ PartyXpCutoffGaps = 0,9;10,14;15,99
|
||||
# Default: 100;30;0
|
||||
PartyXpCutoffGapPercent = 100;30;0
|
||||
|
||||
# Disable tutorial quests.
|
||||
# Default: False
|
||||
DisableTutorial = False
|
||||
|
||||
# Expertise penalty
|
||||
# If disabled, player will not receive penalty for equip higher grade items
|
||||
# Default: True
|
||||
|
@ -16,6 +16,7 @@
|
||||
*/
|
||||
package quests;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.enums.HtmlActionScope;
|
||||
import com.l2jmobius.gameserver.enums.QuestSound;
|
||||
import com.l2jmobius.gameserver.enums.Race;
|
||||
@ -200,6 +201,11 @@ public abstract class LetterQuest extends Quest
|
||||
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
|
||||
public void OnPlayerLevelChanged(OnPlayerLevelChanged event)
|
||||
{
|
||||
if (Config.DISABLE_TUTORIAL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final L2PcInstance player = event.getActiveChar();
|
||||
final QuestState st = getQuestState(player, false);
|
||||
|
||||
@ -215,6 +221,11 @@ public abstract class LetterQuest extends Quest
|
||||
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
|
||||
public void OnPlayerLogin(OnPlayerLogin event)
|
||||
{
|
||||
if (Config.DISABLE_TUTORIAL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final L2PcInstance player = event.getActiveChar();
|
||||
final QuestState st = getQuestState(player, false);
|
||||
|
||||
|
@ -743,6 +743,11 @@ public final class Q10331_StartOfFate extends Quest
|
||||
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
|
||||
public void OnPlayerLevelChanged(OnPlayerLevelChanged event)
|
||||
{
|
||||
if (Config.DISABLE_TUTORIAL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final L2PcInstance player = event.getActiveChar();
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
final int oldLevel = event.getOldLevel();
|
||||
@ -758,6 +763,11 @@ public final class Q10331_StartOfFate extends Quest
|
||||
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
|
||||
public void OnPlayerLogin(OnPlayerLogin event)
|
||||
{
|
||||
if (Config.DISABLE_TUTORIAL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final L2PcInstance player = event.getActiveChar();
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
|
||||
|
@ -494,6 +494,11 @@ public final class Q10360_CertificationOfFate extends Quest
|
||||
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
|
||||
public void OnPlayerLevelChanged(OnPlayerLevelChanged event)
|
||||
{
|
||||
if (Config.DISABLE_TUTORIAL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final L2PcInstance player = event.getActiveChar();
|
||||
final int oldLevel = event.getOldLevel();
|
||||
final int newLevel = event.getNewLevel();
|
||||
@ -509,6 +514,11 @@ public final class Q10360_CertificationOfFate extends Quest
|
||||
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
|
||||
public void OnPlayerLogin(OnPlayerLogin event)
|
||||
{
|
||||
if (Config.DISABLE_TUTORIAL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final L2PcInstance player = event.getActiveChar();
|
||||
|
||||
if ((player.getLevel() >= MIN_LEVEL) && (player.getRace() != Race.ERTHEIA) && (player.isInCategory(CategoryType.SECOND_CLASS_GROUP)))
|
||||
|
@ -19,6 +19,7 @@ package quests.Q10751_WindsOfFateEncounters;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.enums.CategoryType;
|
||||
import com.l2jmobius.gameserver.enums.HtmlActionScope;
|
||||
import com.l2jmobius.gameserver.enums.Race;
|
||||
@ -478,6 +479,11 @@ public final class Q10751_WindsOfFateEncounters extends Quest
|
||||
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
|
||||
public void OnPlayerLevelChanged(OnPlayerLevelChanged event)
|
||||
{
|
||||
if (Config.DISABLE_TUTORIAL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final L2PcInstance player = event.getActiveChar();
|
||||
final QuestState st = getQuestState(player, false);
|
||||
final int oldLevel = event.getOldLevel();
|
||||
@ -494,6 +500,11 @@ public final class Q10751_WindsOfFateEncounters extends Quest
|
||||
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
|
||||
public void OnPlayerLogin(OnPlayerLogin event)
|
||||
{
|
||||
if (Config.DISABLE_TUTORIAL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final L2PcInstance player = event.getActiveChar();
|
||||
final QuestState st = getQuestState(player, false);
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
*/
|
||||
package quests.Q10752_WindsOfFateAPromise;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.enums.CategoryType;
|
||||
import com.l2jmobius.gameserver.enums.HtmlActionScope;
|
||||
import com.l2jmobius.gameserver.enums.Race;
|
||||
@ -517,6 +518,11 @@ public final class Q10752_WindsOfFateAPromise extends Quest
|
||||
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
|
||||
public void OnPlayerLevelChanged(OnPlayerLevelChanged event)
|
||||
{
|
||||
if (Config.DISABLE_TUTORIAL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final L2PcInstance player = event.getActiveChar();
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
final int oldLevel = event.getOldLevel();
|
||||
@ -540,6 +546,11 @@ public final class Q10752_WindsOfFateAPromise extends Quest
|
||||
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
|
||||
public void OnPlayerLogin(OnPlayerLogin event)
|
||||
{
|
||||
if (Config.DISABLE_TUTORIAL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final L2PcInstance player = event.getActiveChar();
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
*/
|
||||
package quests;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.commons.util.CommonUtil;
|
||||
import com.l2jmobius.gameserver.enums.CategoryType;
|
||||
import com.l2jmobius.gameserver.enums.Race;
|
||||
@ -326,6 +327,11 @@ public abstract class ThirdClassTransferQuest extends Quest
|
||||
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
|
||||
public void OnPlayerLevelChanged(OnPlayerLevelChanged event)
|
||||
{
|
||||
if (Config.DISABLE_TUTORIAL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final L2PcInstance player = event.getActiveChar();
|
||||
final int oldLevel = event.getOldLevel();
|
||||
final int newLevel = event.getNewLevel();
|
||||
@ -340,6 +346,11 @@ public abstract class ThirdClassTransferQuest extends Quest
|
||||
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
|
||||
public void OnPlayerLogin(OnPlayerLogin event)
|
||||
{
|
||||
if (Config.DISABLE_TUTORIAL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final L2PcInstance player = event.getActiveChar();
|
||||
|
||||
if ((player.getLevel() >= _minLevel) && (player.getRace() == _race) && (player.isInCategory(CategoryType.THIRD_CLASS_GROUP)))
|
||||
|
@ -250,6 +250,7 @@ public final class Config
|
||||
public static int PARTY_XP_CUTOFF_LEVEL;
|
||||
public static int[][] PARTY_XP_CUTOFF_GAPS;
|
||||
public static int[] PARTY_XP_CUTOFF_GAP_PERCENTS;
|
||||
public static boolean DISABLE_TUTORIAL;
|
||||
public static boolean EXPERTISE_PENALTY;
|
||||
public static boolean STORE_RECIPE_SHOPLIST;
|
||||
public static boolean STORE_UI_SETTINGS;
|
||||
@ -1540,6 +1541,7 @@ public final class Config
|
||||
{
|
||||
PARTY_XP_CUTOFF_GAP_PERCENTS[i] = Integer.parseInt(percents[i]);
|
||||
}
|
||||
DISABLE_TUTORIAL = Character.getBoolean("DisableTutorial", false);
|
||||
EXPERTISE_PENALTY = Character.getBoolean("ExpertisePenalty", true);
|
||||
STORE_RECIPE_SHOPLIST = Character.getBoolean("StoreRecipeShopList", false);
|
||||
STORE_UI_SETTINGS = Character.getBoolean("StoreCharUiSettings", true);
|
||||
|
Loading…
Reference in New Issue
Block a user