DisableTutorial config now works for all tutorial quests.

This commit is contained in:
MobiusDev
2016-02-07 10:26:29 +00:00
parent 42860c9dbd
commit 5e2a401875
15 changed files with 102 additions and 43 deletions

View File

@@ -16,6 +16,7 @@
*/
package quests.Q10390_KekropusLetter;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.ai.CtrlIntention;
import com.l2jmobius.gameserver.cache.HtmCache;
import com.l2jmobius.gameserver.enums.Race;
@@ -293,6 +294,10 @@ public class Q10390_KekropusLetter extends Quest implements IBypassHandler
@RegisterType(ListenerRegisterType.GLOBAL)
public void OnPlayerLevelChanged(OnPlayerLevelChanged event)
{
if (Config.DISABLE_TUTORIAL)
{
return;
}
final L2PcInstance player = event.getActiveChar();
if ((player.getLevel() >= MIN_LEVEL) && (player.getLevel() <= MAX_LEVEL) && (player.getRace() != Race.ERTHEIA))
{