Added configs for Arcan Ritual.
This commit is contained in:
12
trunk/dist/game/config/General.properties
vendored
12
trunk/dist/game/config/General.properties
vendored
@@ -877,6 +877,18 @@ HBCEFairPlay = True
|
||||
# Default: False
|
||||
HellboundWithoutQuest = False
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Arcan Ritual setings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# If true, Arcan Ritual npcs spawn
|
||||
# Default: True
|
||||
ArcanRitual = True
|
||||
|
||||
# Arcan Ritual change interval (in minutes)
|
||||
# Default: 30
|
||||
ArcanRitualInterval = 30
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Bot Report Button settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
@@ -660,6 +660,8 @@ public final class Config
|
||||
public static int MIN_BLOCK_CHECKER_TEAM_MEMBERS;
|
||||
public static boolean HBCE_FAIR_PLAY;
|
||||
public static boolean HELLBOUND_WITHOUT_QUEST;
|
||||
public static boolean ARCAN_RITUAL;
|
||||
public static int ARCAN_RITUAL_INTERVAL;
|
||||
public static int PLAYER_MOVEMENT_BLOCK_TIME;
|
||||
public static int ABILITY_MAX_POINTS;
|
||||
public static long ABILITY_POINTS_RESET_ADENA;
|
||||
@@ -2027,6 +2029,9 @@ public final class Config
|
||||
HBCE_FAIR_PLAY = General.getBoolean("HBCEFairPlay", false);
|
||||
HELLBOUND_WITHOUT_QUEST = General.getBoolean("HellboundWithoutQuest", false);
|
||||
|
||||
ARCAN_RITUAL = General.getBoolean("ArcanRitual", true);
|
||||
ARCAN_RITUAL_INTERVAL = General.getInt("ArcanRitualInterval", 30);
|
||||
|
||||
NORMAL_ENCHANT_COST_MULTIPLIER = General.getInt("NormalEnchantCostMultipiler", 1);
|
||||
SAFE_ENCHANT_COST_MULTIPLIER = General.getInt("SafeEnchantCostMultipiler", 5);
|
||||
|
||||
|
@@ -1,11 +1,17 @@
|
||||
/*
|
||||
* This program is free software: you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License as published by the Free Software
|
||||
* Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
* Copyright (C) 2004-2015 L2J Server
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
* This file is part of L2J Server.
|
||||
*
|
||||
* L2J Server is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* L2J Server is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
@@ -14,6 +20,7 @@ package com.l2jserver.gameserver.instancemanager;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import com.l2jserver.Config;
|
||||
import com.l2jserver.gameserver.ThreadPoolManager;
|
||||
import com.l2jserver.gameserver.model.L2World;
|
||||
import com.l2jserver.gameserver.model.Location;
|
||||
@@ -35,7 +42,6 @@ public class ArcanRitualManager extends Quest
|
||||
{
|
||||
private static final int BLUE_TRIGGER = 262001;
|
||||
private static final int RED_TRIGGER = 262003;
|
||||
private static final long DELAY = 30 * 60 * 1000L; // 30min
|
||||
private static final Location ARCAN_TOWN_LOC = new Location(207096, 88696, -1129);
|
||||
// @formatter:off
|
||||
static final int[][] RITUAL_NPCS =
|
||||
@@ -150,7 +156,10 @@ public class ArcanRitualManager extends Quest
|
||||
}
|
||||
addEnterZoneId(arcanZone.getId());
|
||||
ritualStage = BLUE_TRIGGER;
|
||||
ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new ChangeStage(), DELAY, DELAY);
|
||||
if (Config.ARCAN_RITUAL)
|
||||
{
|
||||
ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new ChangeStage(), Config.ARCAN_RITUAL_INTERVAL, Config.ARCAN_RITUAL_INTERVAL);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user