Created a configuration file for game assistants.
This commit is contained in:
parent
95e4a18754
commit
50318680c3
@ -1,42 +0,0 @@
|
|||||||
# ---------------------------------------------------------------------------
|
|
||||||
# PC Cafe (PC Bang) System
|
|
||||||
# ---------------------------------------------------------------------------
|
|
||||||
# PC CAFE POINTS ID = -100
|
|
||||||
|
|
||||||
# PC Cafe Enabled.
|
|
||||||
PcCafeEnabled = False
|
|
||||||
|
|
||||||
# Allow only players with a Premium account.
|
|
||||||
PcCafeOnlyPremium = False
|
|
||||||
|
|
||||||
# Max points that player may have.
|
|
||||||
# Limited by int limit.
|
|
||||||
MaxPcCafePoints = 200000
|
|
||||||
|
|
||||||
# PC Bang point rate.
|
|
||||||
# Acquisition formula equals (exp * 0.0001 * AcquisitionPointsRate)
|
|
||||||
# e.g. with 1.0 it's 10000 exp = 1 PC Bang point
|
|
||||||
# 2.0 - 10000 exp = 2 PC Bang points
|
|
||||||
# 0.5 - 5000 exp = 1 PC Bang point
|
|
||||||
AcquisitionPointsRate = 1.0
|
|
||||||
|
|
||||||
# Use random points rewarding.
|
|
||||||
# If enabled points will be random from points/2 to points.
|
|
||||||
AcquisitionPointsRandom = False
|
|
||||||
|
|
||||||
# Creates a chance to aquire double points.
|
|
||||||
DoublingAcquisitionPoints = True
|
|
||||||
|
|
||||||
# Double points chance.
|
|
||||||
# Used when DoublingAcquisitionPoints is enabled.
|
|
||||||
# Default 1 (%)
|
|
||||||
DoublingAcquisitionPointsChance = 1
|
|
||||||
|
|
||||||
# Reward low exp kills
|
|
||||||
# Acquire points if player gains exp and aquire formula equals 0.
|
|
||||||
RewardLowExpKills = True
|
|
||||||
|
|
||||||
# Chance for low exp kills
|
|
||||||
# Used when RewardLowExpKills is enabled.
|
|
||||||
# Default 50 (%)
|
|
||||||
RewardLowExpKillsChance = 50
|
|
58
L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/config/GameAssistant.ini
vendored
Normal file
58
L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/config/GameAssistant.ini
vendored
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# PC Cafe (PC Bang)
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Must add to l2.ini [Localize] section UsePCBangPoint=true
|
||||||
|
# PC CAFE POINTS ID = -100
|
||||||
|
|
||||||
|
# PC Cafe Enabled.
|
||||||
|
PcCafeEnabled = False
|
||||||
|
|
||||||
|
# Allow only players with a Premium account.
|
||||||
|
PcCafeOnlyPremium = False
|
||||||
|
|
||||||
|
# Max points that player may have.
|
||||||
|
# Limited by int limit.
|
||||||
|
MaxPcCafePoints = 200000
|
||||||
|
|
||||||
|
# PC Bang point rate.
|
||||||
|
# Acquisition formula equals (exp * 0.0001 * AcquisitionPointsRate)
|
||||||
|
# e.g. with 1.0 it's 10000 exp = 1 PC Bang point
|
||||||
|
# 2.0 - 10000 exp = 2 PC Bang points
|
||||||
|
# 0.5 - 5000 exp = 1 PC Bang point
|
||||||
|
AcquisitionPointsRate = 1.0
|
||||||
|
|
||||||
|
# Use random points rewarding.
|
||||||
|
# If enabled points will be random from points/2 to points.
|
||||||
|
AcquisitionPointsRandom = False
|
||||||
|
|
||||||
|
# Creates a chance to aquire double points.
|
||||||
|
DoublingAcquisitionPoints = True
|
||||||
|
|
||||||
|
# Double points chance.
|
||||||
|
# Used when DoublingAcquisitionPoints is enabled.
|
||||||
|
# Default 1 (%)
|
||||||
|
DoublingAcquisitionPointsChance = 1
|
||||||
|
|
||||||
|
# Reward low exp kills
|
||||||
|
# Acquire points if player gains exp and aquire formula equals 0.
|
||||||
|
RewardLowExpKills = True
|
||||||
|
|
||||||
|
# Chance for low exp kills
|
||||||
|
# Used when RewardLowExpKills is enabled.
|
||||||
|
# Default 50 (%)
|
||||||
|
RewardLowExpKillsChance = 50
|
||||||
|
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Game Assistant (Dimensional Merchant)
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Enable Game Assistant functions.
|
||||||
|
GameAssistantEnabled = True
|
||||||
|
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Einhasad Store
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Must add to l2.ini [Localize] section UseEinhasad=true
|
||||||
|
# Enable Einhasad Store functions.
|
||||||
|
EinhasadStoreEnabled = False
|
@ -96,6 +96,7 @@ public class Config
|
|||||||
private static final String CHARACTER_CONFIG_FILE = "./config/Character.ini";
|
private static final String CHARACTER_CONFIG_FILE = "./config/Character.ini";
|
||||||
private static final String FEATURE_CONFIG_FILE = "./config/Feature.ini";
|
private static final String FEATURE_CONFIG_FILE = "./config/Feature.ini";
|
||||||
private static final String FLOOD_PROTECTOR_CONFIG_FILE = "./config/FloodProtector.ini";
|
private static final String FLOOD_PROTECTOR_CONFIG_FILE = "./config/FloodProtector.ini";
|
||||||
|
private static final String GAME_ASSISTANT_CONFIG_FILE = "./config/GameAssistant.ini";
|
||||||
private static final String GENERAL_CONFIG_FILE = "./config/General.ini";
|
private static final String GENERAL_CONFIG_FILE = "./config/General.ini";
|
||||||
private static final String GRACIASEEDS_CONFIG_FILE = "./config/GraciaSeeds.ini";
|
private static final String GRACIASEEDS_CONFIG_FILE = "./config/GraciaSeeds.ini";
|
||||||
private static final String GRANDBOSS_CONFIG_FILE = "./config/GrandBoss.ini";
|
private static final String GRANDBOSS_CONFIG_FILE = "./config/GrandBoss.ini";
|
||||||
@ -133,7 +134,6 @@ public class Config
|
|||||||
private static final String CUSTOM_NPC_STAT_MULTIPLIERS_CONFIG_FILE = "./config/Custom/NpcStatMultipliers.ini";
|
private static final String CUSTOM_NPC_STAT_MULTIPLIERS_CONFIG_FILE = "./config/Custom/NpcStatMultipliers.ini";
|
||||||
private static final String CUSTOM_OFFLINE_TRADE_CONFIG_FILE = "./config/Custom/OfflineTrade.ini";
|
private static final String CUSTOM_OFFLINE_TRADE_CONFIG_FILE = "./config/Custom/OfflineTrade.ini";
|
||||||
private static final String CUSTOM_PASSWORD_CHANGE_CONFIG_FILE = "./config/Custom/PasswordChange.ini";
|
private static final String CUSTOM_PASSWORD_CHANGE_CONFIG_FILE = "./config/Custom/PasswordChange.ini";
|
||||||
private static final String CUSTOM_PC_CAFE_CONFIG_FILE = "./config/Custom/PcCafe.ini";
|
|
||||||
private static final String CUSTOM_PREMIUM_SYSTEM_CONFIG_FILE = "./config/Custom/PremiumSystem.ini";
|
private static final String CUSTOM_PREMIUM_SYSTEM_CONFIG_FILE = "./config/Custom/PremiumSystem.ini";
|
||||||
private static final String CUSTOM_PRIVATE_STORE_RANGE_CONFIG_FILE = "./config/Custom/PrivateStoreRange.ini";
|
private static final String CUSTOM_PRIVATE_STORE_RANGE_CONFIG_FILE = "./config/Custom/PrivateStoreRange.ini";
|
||||||
private static final String CUSTOM_PVP_ANNOUNCE_CONFIG_FILE = "./config/Custom/PvpAnnounce.ini";
|
private static final String CUSTOM_PVP_ANNOUNCE_CONFIG_FILE = "./config/Custom/PvpAnnounce.ini";
|
||||||
@ -850,6 +850,17 @@ public class Config
|
|||||||
public static int TRAINING_CAMP_MAX_LEVEL;
|
public static int TRAINING_CAMP_MAX_LEVEL;
|
||||||
public static double TRAINING_CAMP_EXP_MULTIPLIER;
|
public static double TRAINING_CAMP_EXP_MULTIPLIER;
|
||||||
public static double TRAINING_CAMP_SP_MULTIPLIER;
|
public static double TRAINING_CAMP_SP_MULTIPLIER;
|
||||||
|
public static boolean PC_CAFE_ENABLED;
|
||||||
|
public static boolean PC_CAFE_ONLY_PREMIUM;
|
||||||
|
public static int PC_CAFE_MAX_POINTS;
|
||||||
|
public static boolean PC_CAFE_ENABLE_DOUBLE_POINTS;
|
||||||
|
public static int PC_CAFE_DOUBLE_POINTS_CHANCE;
|
||||||
|
public static double PC_CAFE_POINT_RATE;
|
||||||
|
public static boolean PC_CAFE_RANDOM_POINT;
|
||||||
|
public static boolean PC_CAFE_REWARD_LOW_EXP_KILLS;
|
||||||
|
public static int PC_CAFE_LOW_EXP_KILLS_CHANCE;
|
||||||
|
public static boolean GAME_ASSISTANT_ENABLED;
|
||||||
|
public static boolean EINHASAD_STORE_ENABLED;
|
||||||
public static boolean SHOW_LICENCE;
|
public static boolean SHOW_LICENCE;
|
||||||
public static boolean SHOW_PI_AGREEMENT;
|
public static boolean SHOW_PI_AGREEMENT;
|
||||||
public static boolean ACCEPT_NEW_GAMESERVER;
|
public static boolean ACCEPT_NEW_GAMESERVER;
|
||||||
@ -1320,15 +1331,6 @@ public class Config
|
|||||||
public static boolean PREMIUM_HENNA_SLOT_ENABLED_FOR_ALL;
|
public static boolean PREMIUM_HENNA_SLOT_ENABLED_FOR_ALL;
|
||||||
public static boolean PREMIUM_HENNA_SLOT_ALL_DYES;
|
public static boolean PREMIUM_HENNA_SLOT_ALL_DYES;
|
||||||
public static boolean PREMIUM_ONLY_FISHING;
|
public static boolean PREMIUM_ONLY_FISHING;
|
||||||
public static boolean PC_CAFE_ENABLED;
|
|
||||||
public static boolean PC_CAFE_ONLY_PREMIUM;
|
|
||||||
public static int PC_CAFE_MAX_POINTS;
|
|
||||||
public static boolean PC_CAFE_ENABLE_DOUBLE_POINTS;
|
|
||||||
public static int PC_CAFE_DOUBLE_POINTS_CHANCE;
|
|
||||||
public static double PC_CAFE_POINT_RATE;
|
|
||||||
public static boolean PC_CAFE_RANDOM_POINT;
|
|
||||||
public static boolean PC_CAFE_REWARD_LOW_EXP_KILLS;
|
|
||||||
public static int PC_CAFE_LOW_EXP_KILLS_CHANCE;
|
|
||||||
public static boolean SELLBUFF_ENABLED;
|
public static boolean SELLBUFF_ENABLED;
|
||||||
public static int SELLBUFF_MP_MULTIPLER;
|
public static int SELLBUFF_MP_MULTIPLER;
|
||||||
public static int SELLBUFF_PAYMENT_ID;
|
public static int SELLBUFF_PAYMENT_ID;
|
||||||
@ -2019,6 +2021,40 @@ public class Config
|
|||||||
TRAINING_CAMP_EXP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampExpMultiplier", 1.0);
|
TRAINING_CAMP_EXP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampExpMultiplier", 1.0);
|
||||||
TRAINING_CAMP_SP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampSpMultiplier", 1.0);
|
TRAINING_CAMP_SP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampSpMultiplier", 1.0);
|
||||||
|
|
||||||
|
// Load GameAssistant config file (if exists)
|
||||||
|
final PropertiesParser GameAssistant = new PropertiesParser(GAME_ASSISTANT_CONFIG_FILE);
|
||||||
|
PC_CAFE_ENABLED = GameAssistant.getBoolean("PcCafeEnabled", false);
|
||||||
|
PC_CAFE_ONLY_PREMIUM = GameAssistant.getBoolean("PcCafeOnlyPremium", false);
|
||||||
|
PC_CAFE_MAX_POINTS = GameAssistant.getInt("MaxPcCafePoints", 200000);
|
||||||
|
if (PC_CAFE_MAX_POINTS < 0)
|
||||||
|
{
|
||||||
|
PC_CAFE_MAX_POINTS = 0;
|
||||||
|
}
|
||||||
|
PC_CAFE_ENABLE_DOUBLE_POINTS = GameAssistant.getBoolean("DoublingAcquisitionPoints", false);
|
||||||
|
PC_CAFE_DOUBLE_POINTS_CHANCE = GameAssistant.getInt("DoublingAcquisitionPointsChance", 1);
|
||||||
|
if ((PC_CAFE_DOUBLE_POINTS_CHANCE < 0) || (PC_CAFE_DOUBLE_POINTS_CHANCE > 100))
|
||||||
|
{
|
||||||
|
PC_CAFE_DOUBLE_POINTS_CHANCE = 1;
|
||||||
|
}
|
||||||
|
PC_CAFE_POINT_RATE = GameAssistant.getDouble("AcquisitionPointsRate", 1.0);
|
||||||
|
PC_CAFE_RANDOM_POINT = GameAssistant.getBoolean("AcquisitionPointsRandom", false);
|
||||||
|
if (PC_CAFE_POINT_RATE < 0)
|
||||||
|
{
|
||||||
|
PC_CAFE_POINT_RATE = 1;
|
||||||
|
}
|
||||||
|
PC_CAFE_REWARD_LOW_EXP_KILLS = GameAssistant.getBoolean("RewardLowExpKills", true);
|
||||||
|
PC_CAFE_LOW_EXP_KILLS_CHANCE = GameAssistant.getInt("RewardLowExpKillsChance", 50);
|
||||||
|
if (PC_CAFE_LOW_EXP_KILLS_CHANCE < 0)
|
||||||
|
{
|
||||||
|
PC_CAFE_LOW_EXP_KILLS_CHANCE = 0;
|
||||||
|
}
|
||||||
|
if (PC_CAFE_LOW_EXP_KILLS_CHANCE > 100)
|
||||||
|
{
|
||||||
|
PC_CAFE_LOW_EXP_KILLS_CHANCE = 100;
|
||||||
|
}
|
||||||
|
GAME_ASSISTANT_ENABLED = GameAssistant.getBoolean("GameAssistantEnabled", false);
|
||||||
|
EINHASAD_STORE_ENABLED = GameAssistant.getBoolean("EinhasadStoreEnabled", false);
|
||||||
|
|
||||||
// Load General config file (if exists)
|
// Load General config file (if exists)
|
||||||
final PropertiesParser General = new PropertiesParser(GENERAL_CONFIG_FILE);
|
final PropertiesParser General = new PropertiesParser(GENERAL_CONFIG_FILE);
|
||||||
DEFAULT_ACCESS_LEVEL = General.getInt("DefaultAccessLevel", 0);
|
DEFAULT_ACCESS_LEVEL = General.getInt("DefaultAccessLevel", 0);
|
||||||
@ -3389,38 +3425,6 @@ public class Config
|
|||||||
final PropertiesParser PasswordChange = new PropertiesParser(CUSTOM_PASSWORD_CHANGE_CONFIG_FILE);
|
final PropertiesParser PasswordChange = new PropertiesParser(CUSTOM_PASSWORD_CHANGE_CONFIG_FILE);
|
||||||
ALLOW_CHANGE_PASSWORD = PasswordChange.getBoolean("AllowChangePassword", false);
|
ALLOW_CHANGE_PASSWORD = PasswordChange.getBoolean("AllowChangePassword", false);
|
||||||
|
|
||||||
// Load PcCafe config file (if exists)
|
|
||||||
final PropertiesParser PcCafe = new PropertiesParser(CUSTOM_PC_CAFE_CONFIG_FILE);
|
|
||||||
PC_CAFE_ENABLED = PcCafe.getBoolean("PcCafeEnabled", false);
|
|
||||||
PC_CAFE_ONLY_PREMIUM = PcCafe.getBoolean("PcCafeOnlyPremium", false);
|
|
||||||
PC_CAFE_MAX_POINTS = PcCafe.getInt("MaxPcCafePoints", 200000);
|
|
||||||
if (PC_CAFE_MAX_POINTS < 0)
|
|
||||||
{
|
|
||||||
PC_CAFE_MAX_POINTS = 0;
|
|
||||||
}
|
|
||||||
PC_CAFE_ENABLE_DOUBLE_POINTS = PcCafe.getBoolean("DoublingAcquisitionPoints", false);
|
|
||||||
PC_CAFE_DOUBLE_POINTS_CHANCE = PcCafe.getInt("DoublingAcquisitionPointsChance", 1);
|
|
||||||
if ((PC_CAFE_DOUBLE_POINTS_CHANCE < 0) || (PC_CAFE_DOUBLE_POINTS_CHANCE > 100))
|
|
||||||
{
|
|
||||||
PC_CAFE_DOUBLE_POINTS_CHANCE = 1;
|
|
||||||
}
|
|
||||||
PC_CAFE_POINT_RATE = PcCafe.getDouble("AcquisitionPointsRate", 1.0);
|
|
||||||
PC_CAFE_RANDOM_POINT = PcCafe.getBoolean("AcquisitionPointsRandom", false);
|
|
||||||
if (PC_CAFE_POINT_RATE < 0)
|
|
||||||
{
|
|
||||||
PC_CAFE_POINT_RATE = 1;
|
|
||||||
}
|
|
||||||
PC_CAFE_REWARD_LOW_EXP_KILLS = PcCafe.getBoolean("RewardLowExpKills", true);
|
|
||||||
PC_CAFE_LOW_EXP_KILLS_CHANCE = PcCafe.getInt("RewardLowExpKillsChance", 50);
|
|
||||||
if (PC_CAFE_LOW_EXP_KILLS_CHANCE < 0)
|
|
||||||
{
|
|
||||||
PC_CAFE_LOW_EXP_KILLS_CHANCE = 0;
|
|
||||||
}
|
|
||||||
if (PC_CAFE_LOW_EXP_KILLS_CHANCE > 100)
|
|
||||||
{
|
|
||||||
PC_CAFE_LOW_EXP_KILLS_CHANCE = 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Load PremiumSystem config file (if exists)
|
// Load PremiumSystem config file (if exists)
|
||||||
final PropertiesParser PremiumSystem = new PropertiesParser(CUSTOM_PREMIUM_SYSTEM_CONFIG_FILE);
|
final PropertiesParser PremiumSystem = new PropertiesParser(CUSTOM_PREMIUM_SYSTEM_CONFIG_FILE);
|
||||||
PREMIUM_SYSTEM_ENABLED = PremiumSystem.getBoolean("EnablePremiumSystem", false);
|
PREMIUM_SYSTEM_ENABLED = PremiumSystem.getBoolean("EnablePremiumSystem", false);
|
||||||
|
@ -61,12 +61,18 @@ public class ExOpenHtml implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
case 5:
|
case 5:
|
||||||
{
|
{
|
||||||
client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/GameAssistant/32478.html")));
|
if (Config.GAME_ASSISTANT_ENABLED)
|
||||||
|
{
|
||||||
|
client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/GameAssistant/32478.html")));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 7:
|
case 7:
|
||||||
{
|
{
|
||||||
client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/EinhasadStore/34487.html")));
|
if (Config.EINHASAD_STORE_ENABLED)
|
||||||
|
{
|
||||||
|
client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/EinhasadStore/34487.html")));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
@ -1,42 +0,0 @@
|
|||||||
# ---------------------------------------------------------------------------
|
|
||||||
# PC Cafe (PC Bang) System
|
|
||||||
# ---------------------------------------------------------------------------
|
|
||||||
# PC CAFE POINTS ID = -100
|
|
||||||
|
|
||||||
# PC Cafe Enabled.
|
|
||||||
PcCafeEnabled = False
|
|
||||||
|
|
||||||
# Allow only players with a Premium account.
|
|
||||||
PcCafeOnlyPremium = False
|
|
||||||
|
|
||||||
# Max points that player may have.
|
|
||||||
# Limited by int limit.
|
|
||||||
MaxPcCafePoints = 200000
|
|
||||||
|
|
||||||
# PC Bang point rate.
|
|
||||||
# Acquisition formula equals (exp * 0.0001 * AcquisitionPointsRate)
|
|
||||||
# e.g. with 1.0 it's 10000 exp = 1 PC Bang point
|
|
||||||
# 2.0 - 10000 exp = 2 PC Bang points
|
|
||||||
# 0.5 - 5000 exp = 1 PC Bang point
|
|
||||||
AcquisitionPointsRate = 1.0
|
|
||||||
|
|
||||||
# Use random points rewarding.
|
|
||||||
# If enabled points will be random from points/2 to points.
|
|
||||||
AcquisitionPointsRandom = False
|
|
||||||
|
|
||||||
# Creates a chance to aquire double points.
|
|
||||||
DoublingAcquisitionPoints = True
|
|
||||||
|
|
||||||
# Double points chance.
|
|
||||||
# Used when DoublingAcquisitionPoints is enabled.
|
|
||||||
# Default 1 (%)
|
|
||||||
DoublingAcquisitionPointsChance = 1
|
|
||||||
|
|
||||||
# Reward low exp kills
|
|
||||||
# Acquire points if player gains exp and aquire formula equals 0.
|
|
||||||
RewardLowExpKills = True
|
|
||||||
|
|
||||||
# Chance for low exp kills
|
|
||||||
# Used when RewardLowExpKills is enabled.
|
|
||||||
# Default 50 (%)
|
|
||||||
RewardLowExpKillsChance = 50
|
|
58
L2J_Mobius_10.0_MasterClass/dist/game/config/GameAssistant.ini
vendored
Normal file
58
L2J_Mobius_10.0_MasterClass/dist/game/config/GameAssistant.ini
vendored
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# PC Cafe (PC Bang)
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Must add to l2.ini [Localize] section UsePCBangPoint=true
|
||||||
|
# PC CAFE POINTS ID = -100
|
||||||
|
|
||||||
|
# PC Cafe Enabled.
|
||||||
|
PcCafeEnabled = False
|
||||||
|
|
||||||
|
# Allow only players with a Premium account.
|
||||||
|
PcCafeOnlyPremium = False
|
||||||
|
|
||||||
|
# Max points that player may have.
|
||||||
|
# Limited by int limit.
|
||||||
|
MaxPcCafePoints = 200000
|
||||||
|
|
||||||
|
# PC Bang point rate.
|
||||||
|
# Acquisition formula equals (exp * 0.0001 * AcquisitionPointsRate)
|
||||||
|
# e.g. with 1.0 it's 10000 exp = 1 PC Bang point
|
||||||
|
# 2.0 - 10000 exp = 2 PC Bang points
|
||||||
|
# 0.5 - 5000 exp = 1 PC Bang point
|
||||||
|
AcquisitionPointsRate = 1.0
|
||||||
|
|
||||||
|
# Use random points rewarding.
|
||||||
|
# If enabled points will be random from points/2 to points.
|
||||||
|
AcquisitionPointsRandom = False
|
||||||
|
|
||||||
|
# Creates a chance to aquire double points.
|
||||||
|
DoublingAcquisitionPoints = True
|
||||||
|
|
||||||
|
# Double points chance.
|
||||||
|
# Used when DoublingAcquisitionPoints is enabled.
|
||||||
|
# Default 1 (%)
|
||||||
|
DoublingAcquisitionPointsChance = 1
|
||||||
|
|
||||||
|
# Reward low exp kills
|
||||||
|
# Acquire points if player gains exp and aquire formula equals 0.
|
||||||
|
RewardLowExpKills = True
|
||||||
|
|
||||||
|
# Chance for low exp kills
|
||||||
|
# Used when RewardLowExpKills is enabled.
|
||||||
|
# Default 50 (%)
|
||||||
|
RewardLowExpKillsChance = 50
|
||||||
|
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Game Assistant (Dimensional Merchant)
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Enable Game Assistant functions.
|
||||||
|
GameAssistantEnabled = True
|
||||||
|
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Einhasad Store
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Must add to l2.ini [Localize] section UseEinhasad=true
|
||||||
|
# Enable Einhasad Store functions.
|
||||||
|
EinhasadStoreEnabled = False
|
@ -96,6 +96,7 @@ public class Config
|
|||||||
private static final String CHARACTER_CONFIG_FILE = "./config/Character.ini";
|
private static final String CHARACTER_CONFIG_FILE = "./config/Character.ini";
|
||||||
private static final String FEATURE_CONFIG_FILE = "./config/Feature.ini";
|
private static final String FEATURE_CONFIG_FILE = "./config/Feature.ini";
|
||||||
private static final String FLOOD_PROTECTOR_CONFIG_FILE = "./config/FloodProtector.ini";
|
private static final String FLOOD_PROTECTOR_CONFIG_FILE = "./config/FloodProtector.ini";
|
||||||
|
private static final String GAME_ASSISTANT_CONFIG_FILE = "./config/GameAssistant.ini";
|
||||||
private static final String GENERAL_CONFIG_FILE = "./config/General.ini";
|
private static final String GENERAL_CONFIG_FILE = "./config/General.ini";
|
||||||
private static final String GRACIASEEDS_CONFIG_FILE = "./config/GraciaSeeds.ini";
|
private static final String GRACIASEEDS_CONFIG_FILE = "./config/GraciaSeeds.ini";
|
||||||
private static final String GRANDBOSS_CONFIG_FILE = "./config/GrandBoss.ini";
|
private static final String GRANDBOSS_CONFIG_FILE = "./config/GrandBoss.ini";
|
||||||
@ -133,7 +134,6 @@ public class Config
|
|||||||
private static final String CUSTOM_NPC_STAT_MULTIPLIERS_CONFIG_FILE = "./config/Custom/NpcStatMultipliers.ini";
|
private static final String CUSTOM_NPC_STAT_MULTIPLIERS_CONFIG_FILE = "./config/Custom/NpcStatMultipliers.ini";
|
||||||
private static final String CUSTOM_OFFLINE_TRADE_CONFIG_FILE = "./config/Custom/OfflineTrade.ini";
|
private static final String CUSTOM_OFFLINE_TRADE_CONFIG_FILE = "./config/Custom/OfflineTrade.ini";
|
||||||
private static final String CUSTOM_PASSWORD_CHANGE_CONFIG_FILE = "./config/Custom/PasswordChange.ini";
|
private static final String CUSTOM_PASSWORD_CHANGE_CONFIG_FILE = "./config/Custom/PasswordChange.ini";
|
||||||
private static final String CUSTOM_PC_CAFE_CONFIG_FILE = "./config/Custom/PcCafe.ini";
|
|
||||||
private static final String CUSTOM_PREMIUM_SYSTEM_CONFIG_FILE = "./config/Custom/PremiumSystem.ini";
|
private static final String CUSTOM_PREMIUM_SYSTEM_CONFIG_FILE = "./config/Custom/PremiumSystem.ini";
|
||||||
private static final String CUSTOM_PRIVATE_STORE_RANGE_CONFIG_FILE = "./config/Custom/PrivateStoreRange.ini";
|
private static final String CUSTOM_PRIVATE_STORE_RANGE_CONFIG_FILE = "./config/Custom/PrivateStoreRange.ini";
|
||||||
private static final String CUSTOM_PVP_ANNOUNCE_CONFIG_FILE = "./config/Custom/PvpAnnounce.ini";
|
private static final String CUSTOM_PVP_ANNOUNCE_CONFIG_FILE = "./config/Custom/PvpAnnounce.ini";
|
||||||
@ -850,6 +850,17 @@ public class Config
|
|||||||
public static int TRAINING_CAMP_MAX_LEVEL;
|
public static int TRAINING_CAMP_MAX_LEVEL;
|
||||||
public static double TRAINING_CAMP_EXP_MULTIPLIER;
|
public static double TRAINING_CAMP_EXP_MULTIPLIER;
|
||||||
public static double TRAINING_CAMP_SP_MULTIPLIER;
|
public static double TRAINING_CAMP_SP_MULTIPLIER;
|
||||||
|
public static boolean PC_CAFE_ENABLED;
|
||||||
|
public static boolean PC_CAFE_ONLY_PREMIUM;
|
||||||
|
public static int PC_CAFE_MAX_POINTS;
|
||||||
|
public static boolean PC_CAFE_ENABLE_DOUBLE_POINTS;
|
||||||
|
public static int PC_CAFE_DOUBLE_POINTS_CHANCE;
|
||||||
|
public static double PC_CAFE_POINT_RATE;
|
||||||
|
public static boolean PC_CAFE_RANDOM_POINT;
|
||||||
|
public static boolean PC_CAFE_REWARD_LOW_EXP_KILLS;
|
||||||
|
public static int PC_CAFE_LOW_EXP_KILLS_CHANCE;
|
||||||
|
public static boolean GAME_ASSISTANT_ENABLED;
|
||||||
|
public static boolean EINHASAD_STORE_ENABLED;
|
||||||
public static boolean SHOW_LICENCE;
|
public static boolean SHOW_LICENCE;
|
||||||
public static boolean SHOW_PI_AGREEMENT;
|
public static boolean SHOW_PI_AGREEMENT;
|
||||||
public static boolean ACCEPT_NEW_GAMESERVER;
|
public static boolean ACCEPT_NEW_GAMESERVER;
|
||||||
@ -1320,15 +1331,6 @@ public class Config
|
|||||||
public static boolean PREMIUM_HENNA_SLOT_ENABLED_FOR_ALL;
|
public static boolean PREMIUM_HENNA_SLOT_ENABLED_FOR_ALL;
|
||||||
public static boolean PREMIUM_HENNA_SLOT_ALL_DYES;
|
public static boolean PREMIUM_HENNA_SLOT_ALL_DYES;
|
||||||
public static boolean PREMIUM_ONLY_FISHING;
|
public static boolean PREMIUM_ONLY_FISHING;
|
||||||
public static boolean PC_CAFE_ENABLED;
|
|
||||||
public static boolean PC_CAFE_ONLY_PREMIUM;
|
|
||||||
public static int PC_CAFE_MAX_POINTS;
|
|
||||||
public static boolean PC_CAFE_ENABLE_DOUBLE_POINTS;
|
|
||||||
public static int PC_CAFE_DOUBLE_POINTS_CHANCE;
|
|
||||||
public static double PC_CAFE_POINT_RATE;
|
|
||||||
public static boolean PC_CAFE_RANDOM_POINT;
|
|
||||||
public static boolean PC_CAFE_REWARD_LOW_EXP_KILLS;
|
|
||||||
public static int PC_CAFE_LOW_EXP_KILLS_CHANCE;
|
|
||||||
public static boolean SELLBUFF_ENABLED;
|
public static boolean SELLBUFF_ENABLED;
|
||||||
public static int SELLBUFF_MP_MULTIPLER;
|
public static int SELLBUFF_MP_MULTIPLER;
|
||||||
public static int SELLBUFF_PAYMENT_ID;
|
public static int SELLBUFF_PAYMENT_ID;
|
||||||
@ -2019,6 +2021,40 @@ public class Config
|
|||||||
TRAINING_CAMP_EXP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampExpMultiplier", 1.0);
|
TRAINING_CAMP_EXP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampExpMultiplier", 1.0);
|
||||||
TRAINING_CAMP_SP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampSpMultiplier", 1.0);
|
TRAINING_CAMP_SP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampSpMultiplier", 1.0);
|
||||||
|
|
||||||
|
// Load GameAssistant config file (if exists)
|
||||||
|
final PropertiesParser GameAssistant = new PropertiesParser(GAME_ASSISTANT_CONFIG_FILE);
|
||||||
|
PC_CAFE_ENABLED = GameAssistant.getBoolean("PcCafeEnabled", false);
|
||||||
|
PC_CAFE_ONLY_PREMIUM = GameAssistant.getBoolean("PcCafeOnlyPremium", false);
|
||||||
|
PC_CAFE_MAX_POINTS = GameAssistant.getInt("MaxPcCafePoints", 200000);
|
||||||
|
if (PC_CAFE_MAX_POINTS < 0)
|
||||||
|
{
|
||||||
|
PC_CAFE_MAX_POINTS = 0;
|
||||||
|
}
|
||||||
|
PC_CAFE_ENABLE_DOUBLE_POINTS = GameAssistant.getBoolean("DoublingAcquisitionPoints", false);
|
||||||
|
PC_CAFE_DOUBLE_POINTS_CHANCE = GameAssistant.getInt("DoublingAcquisitionPointsChance", 1);
|
||||||
|
if ((PC_CAFE_DOUBLE_POINTS_CHANCE < 0) || (PC_CAFE_DOUBLE_POINTS_CHANCE > 100))
|
||||||
|
{
|
||||||
|
PC_CAFE_DOUBLE_POINTS_CHANCE = 1;
|
||||||
|
}
|
||||||
|
PC_CAFE_POINT_RATE = GameAssistant.getDouble("AcquisitionPointsRate", 1.0);
|
||||||
|
PC_CAFE_RANDOM_POINT = GameAssistant.getBoolean("AcquisitionPointsRandom", false);
|
||||||
|
if (PC_CAFE_POINT_RATE < 0)
|
||||||
|
{
|
||||||
|
PC_CAFE_POINT_RATE = 1;
|
||||||
|
}
|
||||||
|
PC_CAFE_REWARD_LOW_EXP_KILLS = GameAssistant.getBoolean("RewardLowExpKills", true);
|
||||||
|
PC_CAFE_LOW_EXP_KILLS_CHANCE = GameAssistant.getInt("RewardLowExpKillsChance", 50);
|
||||||
|
if (PC_CAFE_LOW_EXP_KILLS_CHANCE < 0)
|
||||||
|
{
|
||||||
|
PC_CAFE_LOW_EXP_KILLS_CHANCE = 0;
|
||||||
|
}
|
||||||
|
if (PC_CAFE_LOW_EXP_KILLS_CHANCE > 100)
|
||||||
|
{
|
||||||
|
PC_CAFE_LOW_EXP_KILLS_CHANCE = 100;
|
||||||
|
}
|
||||||
|
GAME_ASSISTANT_ENABLED = GameAssistant.getBoolean("GameAssistantEnabled", false);
|
||||||
|
EINHASAD_STORE_ENABLED = GameAssistant.getBoolean("EinhasadStoreEnabled", false);
|
||||||
|
|
||||||
// Load General config file (if exists)
|
// Load General config file (if exists)
|
||||||
final PropertiesParser General = new PropertiesParser(GENERAL_CONFIG_FILE);
|
final PropertiesParser General = new PropertiesParser(GENERAL_CONFIG_FILE);
|
||||||
DEFAULT_ACCESS_LEVEL = General.getInt("DefaultAccessLevel", 0);
|
DEFAULT_ACCESS_LEVEL = General.getInt("DefaultAccessLevel", 0);
|
||||||
@ -3389,38 +3425,6 @@ public class Config
|
|||||||
final PropertiesParser PasswordChange = new PropertiesParser(CUSTOM_PASSWORD_CHANGE_CONFIG_FILE);
|
final PropertiesParser PasswordChange = new PropertiesParser(CUSTOM_PASSWORD_CHANGE_CONFIG_FILE);
|
||||||
ALLOW_CHANGE_PASSWORD = PasswordChange.getBoolean("AllowChangePassword", false);
|
ALLOW_CHANGE_PASSWORD = PasswordChange.getBoolean("AllowChangePassword", false);
|
||||||
|
|
||||||
// Load PcCafe config file (if exists)
|
|
||||||
final PropertiesParser PcCafe = new PropertiesParser(CUSTOM_PC_CAFE_CONFIG_FILE);
|
|
||||||
PC_CAFE_ENABLED = PcCafe.getBoolean("PcCafeEnabled", false);
|
|
||||||
PC_CAFE_ONLY_PREMIUM = PcCafe.getBoolean("PcCafeOnlyPremium", false);
|
|
||||||
PC_CAFE_MAX_POINTS = PcCafe.getInt("MaxPcCafePoints", 200000);
|
|
||||||
if (PC_CAFE_MAX_POINTS < 0)
|
|
||||||
{
|
|
||||||
PC_CAFE_MAX_POINTS = 0;
|
|
||||||
}
|
|
||||||
PC_CAFE_ENABLE_DOUBLE_POINTS = PcCafe.getBoolean("DoublingAcquisitionPoints", false);
|
|
||||||
PC_CAFE_DOUBLE_POINTS_CHANCE = PcCafe.getInt("DoublingAcquisitionPointsChance", 1);
|
|
||||||
if ((PC_CAFE_DOUBLE_POINTS_CHANCE < 0) || (PC_CAFE_DOUBLE_POINTS_CHANCE > 100))
|
|
||||||
{
|
|
||||||
PC_CAFE_DOUBLE_POINTS_CHANCE = 1;
|
|
||||||
}
|
|
||||||
PC_CAFE_POINT_RATE = PcCafe.getDouble("AcquisitionPointsRate", 1.0);
|
|
||||||
PC_CAFE_RANDOM_POINT = PcCafe.getBoolean("AcquisitionPointsRandom", false);
|
|
||||||
if (PC_CAFE_POINT_RATE < 0)
|
|
||||||
{
|
|
||||||
PC_CAFE_POINT_RATE = 1;
|
|
||||||
}
|
|
||||||
PC_CAFE_REWARD_LOW_EXP_KILLS = PcCafe.getBoolean("RewardLowExpKills", true);
|
|
||||||
PC_CAFE_LOW_EXP_KILLS_CHANCE = PcCafe.getInt("RewardLowExpKillsChance", 50);
|
|
||||||
if (PC_CAFE_LOW_EXP_KILLS_CHANCE < 0)
|
|
||||||
{
|
|
||||||
PC_CAFE_LOW_EXP_KILLS_CHANCE = 0;
|
|
||||||
}
|
|
||||||
if (PC_CAFE_LOW_EXP_KILLS_CHANCE > 100)
|
|
||||||
{
|
|
||||||
PC_CAFE_LOW_EXP_KILLS_CHANCE = 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Load PremiumSystem config file (if exists)
|
// Load PremiumSystem config file (if exists)
|
||||||
final PropertiesParser PremiumSystem = new PropertiesParser(CUSTOM_PREMIUM_SYSTEM_CONFIG_FILE);
|
final PropertiesParser PremiumSystem = new PropertiesParser(CUSTOM_PREMIUM_SYSTEM_CONFIG_FILE);
|
||||||
PREMIUM_SYSTEM_ENABLED = PremiumSystem.getBoolean("EnablePremiumSystem", false);
|
PREMIUM_SYSTEM_ENABLED = PremiumSystem.getBoolean("EnablePremiumSystem", false);
|
||||||
|
@ -61,12 +61,18 @@ public class ExOpenHtml implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
case 5:
|
case 5:
|
||||||
{
|
{
|
||||||
client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/GameAssistant/32478.html")));
|
if (Config.GAME_ASSISTANT_ENABLED)
|
||||||
|
{
|
||||||
|
client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/GameAssistant/32478.html")));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 7:
|
case 7:
|
||||||
{
|
{
|
||||||
client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/EinhasadStore/34487.html")));
|
if (Config.EINHASAD_STORE_ENABLED)
|
||||||
|
{
|
||||||
|
client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/EinhasadStore/34487.html")));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# PC Cafe (PC Bang) System
|
# PC Cafe (PC Bang)
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# PC CAFE POINTS ID = -100
|
# PC CAFE POINTS ID = -100
|
||||||
|
|
||||||
@ -43,3 +43,10 @@ RewardLowExpKills = True
|
|||||||
# Used when RewardLowExpKills is enabled.
|
# Used when RewardLowExpKills is enabled.
|
||||||
# Default 50 (%)
|
# Default 50 (%)
|
||||||
RewardLowExpKillsChance = 50
|
RewardLowExpKillsChance = 50
|
||||||
|
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Game Assistant (Dimensional Merchant)
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Enable Game Assistant functions.
|
||||||
|
GameAssistantEnabled = True
|
@ -95,6 +95,7 @@ public class Config
|
|||||||
private static final String CHARACTER_CONFIG_FILE = "./config/Character.ini";
|
private static final String CHARACTER_CONFIG_FILE = "./config/Character.ini";
|
||||||
private static final String FEATURE_CONFIG_FILE = "./config/Feature.ini";
|
private static final String FEATURE_CONFIG_FILE = "./config/Feature.ini";
|
||||||
private static final String FLOOD_PROTECTOR_CONFIG_FILE = "./config/FloodProtector.ini";
|
private static final String FLOOD_PROTECTOR_CONFIG_FILE = "./config/FloodProtector.ini";
|
||||||
|
private static final String GAME_ASSISTANT_CONFIG_FILE = "./config/GameAssistant.ini";
|
||||||
private static final String GENERAL_CONFIG_FILE = "./config/General.ini";
|
private static final String GENERAL_CONFIG_FILE = "./config/General.ini";
|
||||||
private static final String GRACIASEEDS_CONFIG_FILE = "./config/GraciaSeeds.ini";
|
private static final String GRACIASEEDS_CONFIG_FILE = "./config/GraciaSeeds.ini";
|
||||||
private static final String GRANDBOSS_CONFIG_FILE = "./config/GrandBoss.ini";
|
private static final String GRANDBOSS_CONFIG_FILE = "./config/GrandBoss.ini";
|
||||||
@ -132,7 +133,6 @@ public class Config
|
|||||||
private static final String CUSTOM_NPC_STAT_MULTIPLIERS_CONFIG_FILE = "./config/Custom/NpcStatMultipliers.ini";
|
private static final String CUSTOM_NPC_STAT_MULTIPLIERS_CONFIG_FILE = "./config/Custom/NpcStatMultipliers.ini";
|
||||||
private static final String CUSTOM_OFFLINE_TRADE_CONFIG_FILE = "./config/Custom/OfflineTrade.ini";
|
private static final String CUSTOM_OFFLINE_TRADE_CONFIG_FILE = "./config/Custom/OfflineTrade.ini";
|
||||||
private static final String CUSTOM_PASSWORD_CHANGE_CONFIG_FILE = "./config/Custom/PasswordChange.ini";
|
private static final String CUSTOM_PASSWORD_CHANGE_CONFIG_FILE = "./config/Custom/PasswordChange.ini";
|
||||||
private static final String CUSTOM_PC_CAFE_CONFIG_FILE = "./config/Custom/PcCafe.ini";
|
|
||||||
private static final String CUSTOM_VIP_CONFIG_FILE = "./config/Custom/VipSystem.ini";
|
private static final String CUSTOM_VIP_CONFIG_FILE = "./config/Custom/VipSystem.ini";
|
||||||
private static final String CUSTOM_PREMIUM_SYSTEM_CONFIG_FILE = "./config/Custom/PremiumSystem.ini";
|
private static final String CUSTOM_PREMIUM_SYSTEM_CONFIG_FILE = "./config/Custom/PremiumSystem.ini";
|
||||||
private static final String CUSTOM_PRIVATE_STORE_RANGE_CONFIG_FILE = "./config/Custom/PrivateStoreRange.ini";
|
private static final String CUSTOM_PRIVATE_STORE_RANGE_CONFIG_FILE = "./config/Custom/PrivateStoreRange.ini";
|
||||||
@ -860,6 +860,7 @@ public class Config
|
|||||||
public static int TRAINING_CAMP_MAX_LEVEL;
|
public static int TRAINING_CAMP_MAX_LEVEL;
|
||||||
public static double TRAINING_CAMP_EXP_MULTIPLIER;
|
public static double TRAINING_CAMP_EXP_MULTIPLIER;
|
||||||
public static double TRAINING_CAMP_SP_MULTIPLIER;
|
public static double TRAINING_CAMP_SP_MULTIPLIER;
|
||||||
|
public static boolean GAME_ASSISTANT_ENABLED;
|
||||||
public static boolean SHOW_LICENCE;
|
public static boolean SHOW_LICENCE;
|
||||||
public static boolean SHOW_PI_AGREEMENT;
|
public static boolean SHOW_PI_AGREEMENT;
|
||||||
public static boolean ACCEPT_NEW_GAMESERVER;
|
public static boolean ACCEPT_NEW_GAMESERVER;
|
||||||
@ -1935,6 +1936,40 @@ public class Config
|
|||||||
TRAINING_CAMP_EXP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampExpMultiplier", 1.0);
|
TRAINING_CAMP_EXP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampExpMultiplier", 1.0);
|
||||||
TRAINING_CAMP_SP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampSpMultiplier", 1.0);
|
TRAINING_CAMP_SP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampSpMultiplier", 1.0);
|
||||||
|
|
||||||
|
// Load GameAssistant config file (if exists)
|
||||||
|
final PropertiesParser GameAssistant = new PropertiesParser(GAME_ASSISTANT_CONFIG_FILE);
|
||||||
|
PC_CAFE_ENABLED = GameAssistant.getBoolean("PcCafeEnabled", false);
|
||||||
|
PC_CAFE_ONLY_PREMIUM = GameAssistant.getBoolean("PcCafeOnlyPremium", false);
|
||||||
|
PC_CAFE_ONLY_VIP = GameAssistant.getBoolean("PcCafeOnlyVip", false);
|
||||||
|
PC_CAFE_MAX_POINTS = GameAssistant.getInt("MaxPcCafePoints", 200000);
|
||||||
|
if (PC_CAFE_MAX_POINTS < 0)
|
||||||
|
{
|
||||||
|
PC_CAFE_MAX_POINTS = 0;
|
||||||
|
}
|
||||||
|
PC_CAFE_ENABLE_DOUBLE_POINTS = GameAssistant.getBoolean("DoublingAcquisitionPoints", false);
|
||||||
|
PC_CAFE_DOUBLE_POINTS_CHANCE = GameAssistant.getInt("DoublingAcquisitionPointsChance", 1);
|
||||||
|
if ((PC_CAFE_DOUBLE_POINTS_CHANCE < 0) || (PC_CAFE_DOUBLE_POINTS_CHANCE > 100))
|
||||||
|
{
|
||||||
|
PC_CAFE_DOUBLE_POINTS_CHANCE = 1;
|
||||||
|
}
|
||||||
|
PC_CAFE_POINT_RATE = GameAssistant.getDouble("AcquisitionPointsRate", 1.0);
|
||||||
|
PC_CAFE_RANDOM_POINT = GameAssistant.getBoolean("AcquisitionPointsRandom", false);
|
||||||
|
if (PC_CAFE_POINT_RATE < 0)
|
||||||
|
{
|
||||||
|
PC_CAFE_POINT_RATE = 1;
|
||||||
|
}
|
||||||
|
PC_CAFE_REWARD_LOW_EXP_KILLS = GameAssistant.getBoolean("RewardLowExpKills", true);
|
||||||
|
PC_CAFE_LOW_EXP_KILLS_CHANCE = GameAssistant.getInt("RewardLowExpKillsChance", 50);
|
||||||
|
if (PC_CAFE_LOW_EXP_KILLS_CHANCE < 0)
|
||||||
|
{
|
||||||
|
PC_CAFE_LOW_EXP_KILLS_CHANCE = 0;
|
||||||
|
}
|
||||||
|
if (PC_CAFE_LOW_EXP_KILLS_CHANCE > 100)
|
||||||
|
{
|
||||||
|
PC_CAFE_LOW_EXP_KILLS_CHANCE = 100;
|
||||||
|
}
|
||||||
|
GAME_ASSISTANT_ENABLED = GameAssistant.getBoolean("GameAssistantEnabled", false);
|
||||||
|
|
||||||
// Load General config file (if exists)
|
// Load General config file (if exists)
|
||||||
final PropertiesParser General = new PropertiesParser(GENERAL_CONFIG_FILE);
|
final PropertiesParser General = new PropertiesParser(GENERAL_CONFIG_FILE);
|
||||||
DEFAULT_ACCESS_LEVEL = General.getInt("DefaultAccessLevel", 0);
|
DEFAULT_ACCESS_LEVEL = General.getInt("DefaultAccessLevel", 0);
|
||||||
@ -3254,39 +3289,6 @@ public class Config
|
|||||||
final PropertiesParser PasswordChange = new PropertiesParser(CUSTOM_PASSWORD_CHANGE_CONFIG_FILE);
|
final PropertiesParser PasswordChange = new PropertiesParser(CUSTOM_PASSWORD_CHANGE_CONFIG_FILE);
|
||||||
ALLOW_CHANGE_PASSWORD = PasswordChange.getBoolean("AllowChangePassword", false);
|
ALLOW_CHANGE_PASSWORD = PasswordChange.getBoolean("AllowChangePassword", false);
|
||||||
|
|
||||||
// Load PcCafe config file (if exists)
|
|
||||||
final PropertiesParser PcCafe = new PropertiesParser(CUSTOM_PC_CAFE_CONFIG_FILE);
|
|
||||||
PC_CAFE_ENABLED = PcCafe.getBoolean("PcCafeEnabled", false);
|
|
||||||
PC_CAFE_ONLY_PREMIUM = PcCafe.getBoolean("PcCafeOnlyPremium", false);
|
|
||||||
PC_CAFE_ONLY_VIP = PcCafe.getBoolean("PcCafeOnlyVip", false);
|
|
||||||
PC_CAFE_MAX_POINTS = PcCafe.getInt("MaxPcCafePoints", 200000);
|
|
||||||
if (PC_CAFE_MAX_POINTS < 0)
|
|
||||||
{
|
|
||||||
PC_CAFE_MAX_POINTS = 0;
|
|
||||||
}
|
|
||||||
PC_CAFE_ENABLE_DOUBLE_POINTS = PcCafe.getBoolean("DoublingAcquisitionPoints", false);
|
|
||||||
PC_CAFE_DOUBLE_POINTS_CHANCE = PcCafe.getInt("DoublingAcquisitionPointsChance", 1);
|
|
||||||
if ((PC_CAFE_DOUBLE_POINTS_CHANCE < 0) || (PC_CAFE_DOUBLE_POINTS_CHANCE > 100))
|
|
||||||
{
|
|
||||||
PC_CAFE_DOUBLE_POINTS_CHANCE = 1;
|
|
||||||
}
|
|
||||||
PC_CAFE_POINT_RATE = PcCafe.getDouble("AcquisitionPointsRate", 1.0);
|
|
||||||
PC_CAFE_RANDOM_POINT = PcCafe.getBoolean("AcquisitionPointsRandom", false);
|
|
||||||
if (PC_CAFE_POINT_RATE < 0)
|
|
||||||
{
|
|
||||||
PC_CAFE_POINT_RATE = 1;
|
|
||||||
}
|
|
||||||
PC_CAFE_REWARD_LOW_EXP_KILLS = PcCafe.getBoolean("RewardLowExpKills", true);
|
|
||||||
PC_CAFE_LOW_EXP_KILLS_CHANCE = PcCafe.getInt("RewardLowExpKillsChance", 50);
|
|
||||||
if (PC_CAFE_LOW_EXP_KILLS_CHANCE < 0)
|
|
||||||
{
|
|
||||||
PC_CAFE_LOW_EXP_KILLS_CHANCE = 0;
|
|
||||||
}
|
|
||||||
if (PC_CAFE_LOW_EXP_KILLS_CHANCE > 100)
|
|
||||||
{
|
|
||||||
PC_CAFE_LOW_EXP_KILLS_CHANCE = 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
final PropertiesParser vipSystem = new PropertiesParser(CUSTOM_VIP_CONFIG_FILE);
|
final PropertiesParser vipSystem = new PropertiesParser(CUSTOM_VIP_CONFIG_FILE);
|
||||||
VIP_SYSTEM_ENABLED = vipSystem.getBoolean("VipEnabled", false);
|
VIP_SYSTEM_ENABLED = vipSystem.getBoolean("VipEnabled", false);
|
||||||
if (VIP_SYSTEM_ENABLED)
|
if (VIP_SYSTEM_ENABLED)
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.network.clientpackets;
|
package org.l2jmobius.gameserver.network.clientpackets;
|
||||||
|
|
||||||
|
import org.l2jmobius.Config;
|
||||||
import org.l2jmobius.commons.network.PacketReader;
|
import org.l2jmobius.commons.network.PacketReader;
|
||||||
import org.l2jmobius.gameserver.cache.HtmCache;
|
import org.l2jmobius.gameserver.cache.HtmCache;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
@ -27,10 +28,12 @@ import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
|
|||||||
*/
|
*/
|
||||||
public class ExOpenHtml implements IClientIncomingPacket
|
public class ExOpenHtml implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
|
private int _type;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean read(GameClient client, PacketReader packet)
|
public boolean read(GameClient client, PacketReader packet)
|
||||||
{
|
{
|
||||||
packet.readC(); // html scope?
|
_type = packet.readC();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,10 +46,33 @@ public class ExOpenHtml implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME:
|
switch (_type)
|
||||||
// client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/DimensionalMerchant/32478.html")));
|
{
|
||||||
final NpcHtmlMessage html = new NpcHtmlMessage();
|
case 1:
|
||||||
html.setHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/DimensionalMerchant/32478.html"));
|
{
|
||||||
player.sendPacket(html);
|
if (Config.PC_CAFE_ENABLED)
|
||||||
|
{
|
||||||
|
final NpcHtmlMessage html = new NpcHtmlMessage();
|
||||||
|
html.setFile(player, "data/html/pccafe.htm");
|
||||||
|
player.sendPacket(html);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 5:
|
||||||
|
{
|
||||||
|
if (Config.GAME_ASSISTANT_ENABLED)
|
||||||
|
{
|
||||||
|
final NpcHtmlMessage html = new NpcHtmlMessage();
|
||||||
|
html.setHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/DimensionalMerchant/32478.html"));
|
||||||
|
player.sendPacket(html);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
LOGGER.warning("Unknown ExOpenHtml type (" + _type + ")");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# PC Cafe (PC Bang) System
|
# PC Cafe (PC Bang)
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# PC CAFE POINTS ID = -100
|
# PC CAFE POINTS ID = -100
|
||||||
|
|
||||||
@ -43,3 +43,10 @@ RewardLowExpKills = True
|
|||||||
# Used when RewardLowExpKills is enabled.
|
# Used when RewardLowExpKills is enabled.
|
||||||
# Default 50 (%)
|
# Default 50 (%)
|
||||||
RewardLowExpKillsChance = 50
|
RewardLowExpKillsChance = 50
|
||||||
|
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Game Assistant (Dimensional Merchant)
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Enable Game Assistant functions.
|
||||||
|
GameAssistantEnabled = True
|
@ -95,6 +95,7 @@ public class Config
|
|||||||
private static final String CHARACTER_CONFIG_FILE = "./config/Character.ini";
|
private static final String CHARACTER_CONFIG_FILE = "./config/Character.ini";
|
||||||
private static final String FEATURE_CONFIG_FILE = "./config/Feature.ini";
|
private static final String FEATURE_CONFIG_FILE = "./config/Feature.ini";
|
||||||
private static final String FLOOD_PROTECTOR_CONFIG_FILE = "./config/FloodProtector.ini";
|
private static final String FLOOD_PROTECTOR_CONFIG_FILE = "./config/FloodProtector.ini";
|
||||||
|
private static final String GAME_ASSISTANT_CONFIG_FILE = "./config/GameAssistant.ini";
|
||||||
private static final String GENERAL_CONFIG_FILE = "./config/General.ini";
|
private static final String GENERAL_CONFIG_FILE = "./config/General.ini";
|
||||||
private static final String GRACIASEEDS_CONFIG_FILE = "./config/GraciaSeeds.ini";
|
private static final String GRACIASEEDS_CONFIG_FILE = "./config/GraciaSeeds.ini";
|
||||||
private static final String GRANDBOSS_CONFIG_FILE = "./config/GrandBoss.ini";
|
private static final String GRANDBOSS_CONFIG_FILE = "./config/GrandBoss.ini";
|
||||||
@ -134,7 +135,6 @@ public class Config
|
|||||||
private static final String CUSTOM_NPC_STAT_MULTIPLIERS_CONFIG_FILE = "./config/Custom/NpcStatMultipliers.ini";
|
private static final String CUSTOM_NPC_STAT_MULTIPLIERS_CONFIG_FILE = "./config/Custom/NpcStatMultipliers.ini";
|
||||||
private static final String CUSTOM_OFFLINE_TRADE_CONFIG_FILE = "./config/Custom/OfflineTrade.ini";
|
private static final String CUSTOM_OFFLINE_TRADE_CONFIG_FILE = "./config/Custom/OfflineTrade.ini";
|
||||||
private static final String CUSTOM_PASSWORD_CHANGE_CONFIG_FILE = "./config/Custom/PasswordChange.ini";
|
private static final String CUSTOM_PASSWORD_CHANGE_CONFIG_FILE = "./config/Custom/PasswordChange.ini";
|
||||||
private static final String CUSTOM_PC_CAFE_CONFIG_FILE = "./config/Custom/PcCafe.ini";
|
|
||||||
private static final String CUSTOM_VIP_CONFIG_FILE = "./config/Custom/VipSystem.ini";
|
private static final String CUSTOM_VIP_CONFIG_FILE = "./config/Custom/VipSystem.ini";
|
||||||
private static final String CUSTOM_PREMIUM_SYSTEM_CONFIG_FILE = "./config/Custom/PremiumSystem.ini";
|
private static final String CUSTOM_PREMIUM_SYSTEM_CONFIG_FILE = "./config/Custom/PremiumSystem.ini";
|
||||||
private static final String CUSTOM_PRIVATE_STORE_RANGE_CONFIG_FILE = "./config/Custom/PrivateStoreRange.ini";
|
private static final String CUSTOM_PRIVATE_STORE_RANGE_CONFIG_FILE = "./config/Custom/PrivateStoreRange.ini";
|
||||||
@ -871,6 +871,7 @@ public class Config
|
|||||||
public static int TRAINING_CAMP_MAX_LEVEL;
|
public static int TRAINING_CAMP_MAX_LEVEL;
|
||||||
public static double TRAINING_CAMP_EXP_MULTIPLIER;
|
public static double TRAINING_CAMP_EXP_MULTIPLIER;
|
||||||
public static double TRAINING_CAMP_SP_MULTIPLIER;
|
public static double TRAINING_CAMP_SP_MULTIPLIER;
|
||||||
|
public static boolean GAME_ASSISTANT_ENABLED;
|
||||||
public static boolean SHOW_LICENCE;
|
public static boolean SHOW_LICENCE;
|
||||||
public static boolean SHOW_PI_AGREEMENT;
|
public static boolean SHOW_PI_AGREEMENT;
|
||||||
public static boolean ACCEPT_NEW_GAMESERVER;
|
public static boolean ACCEPT_NEW_GAMESERVER;
|
||||||
@ -1970,6 +1971,40 @@ public class Config
|
|||||||
TRAINING_CAMP_EXP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampExpMultiplier", 1.0);
|
TRAINING_CAMP_EXP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampExpMultiplier", 1.0);
|
||||||
TRAINING_CAMP_SP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampSpMultiplier", 1.0);
|
TRAINING_CAMP_SP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampSpMultiplier", 1.0);
|
||||||
|
|
||||||
|
// Load GameAssistant config file (if exists)
|
||||||
|
final PropertiesParser GameAssistant = new PropertiesParser(GAME_ASSISTANT_CONFIG_FILE);
|
||||||
|
PC_CAFE_ENABLED = GameAssistant.getBoolean("PcCafeEnabled", false);
|
||||||
|
PC_CAFE_ONLY_PREMIUM = GameAssistant.getBoolean("PcCafeOnlyPremium", false);
|
||||||
|
PC_CAFE_ONLY_VIP = GameAssistant.getBoolean("PcCafeOnlyVip", false);
|
||||||
|
PC_CAFE_MAX_POINTS = GameAssistant.getInt("MaxPcCafePoints", 200000);
|
||||||
|
if (PC_CAFE_MAX_POINTS < 0)
|
||||||
|
{
|
||||||
|
PC_CAFE_MAX_POINTS = 0;
|
||||||
|
}
|
||||||
|
PC_CAFE_ENABLE_DOUBLE_POINTS = GameAssistant.getBoolean("DoublingAcquisitionPoints", false);
|
||||||
|
PC_CAFE_DOUBLE_POINTS_CHANCE = GameAssistant.getInt("DoublingAcquisitionPointsChance", 1);
|
||||||
|
if ((PC_CAFE_DOUBLE_POINTS_CHANCE < 0) || (PC_CAFE_DOUBLE_POINTS_CHANCE > 100))
|
||||||
|
{
|
||||||
|
PC_CAFE_DOUBLE_POINTS_CHANCE = 1;
|
||||||
|
}
|
||||||
|
PC_CAFE_POINT_RATE = GameAssistant.getDouble("AcquisitionPointsRate", 1.0);
|
||||||
|
PC_CAFE_RANDOM_POINT = GameAssistant.getBoolean("AcquisitionPointsRandom", false);
|
||||||
|
if (PC_CAFE_POINT_RATE < 0)
|
||||||
|
{
|
||||||
|
PC_CAFE_POINT_RATE = 1;
|
||||||
|
}
|
||||||
|
PC_CAFE_REWARD_LOW_EXP_KILLS = GameAssistant.getBoolean("RewardLowExpKills", true);
|
||||||
|
PC_CAFE_LOW_EXP_KILLS_CHANCE = GameAssistant.getInt("RewardLowExpKillsChance", 50);
|
||||||
|
if (PC_CAFE_LOW_EXP_KILLS_CHANCE < 0)
|
||||||
|
{
|
||||||
|
PC_CAFE_LOW_EXP_KILLS_CHANCE = 0;
|
||||||
|
}
|
||||||
|
if (PC_CAFE_LOW_EXP_KILLS_CHANCE > 100)
|
||||||
|
{
|
||||||
|
PC_CAFE_LOW_EXP_KILLS_CHANCE = 100;
|
||||||
|
}
|
||||||
|
GAME_ASSISTANT_ENABLED = GameAssistant.getBoolean("GameAssistantEnabled", false);
|
||||||
|
|
||||||
// Load General config file (if exists)
|
// Load General config file (if exists)
|
||||||
final PropertiesParser General = new PropertiesParser(GENERAL_CONFIG_FILE);
|
final PropertiesParser General = new PropertiesParser(GENERAL_CONFIG_FILE);
|
||||||
DEFAULT_ACCESS_LEVEL = General.getInt("DefaultAccessLevel", 0);
|
DEFAULT_ACCESS_LEVEL = General.getInt("DefaultAccessLevel", 0);
|
||||||
@ -3303,39 +3338,6 @@ public class Config
|
|||||||
final PropertiesParser PasswordChange = new PropertiesParser(CUSTOM_PASSWORD_CHANGE_CONFIG_FILE);
|
final PropertiesParser PasswordChange = new PropertiesParser(CUSTOM_PASSWORD_CHANGE_CONFIG_FILE);
|
||||||
ALLOW_CHANGE_PASSWORD = PasswordChange.getBoolean("AllowChangePassword", false);
|
ALLOW_CHANGE_PASSWORD = PasswordChange.getBoolean("AllowChangePassword", false);
|
||||||
|
|
||||||
// Load PcCafe config file (if exists)
|
|
||||||
final PropertiesParser PcCafe = new PropertiesParser(CUSTOM_PC_CAFE_CONFIG_FILE);
|
|
||||||
PC_CAFE_ENABLED = PcCafe.getBoolean("PcCafeEnabled", false);
|
|
||||||
PC_CAFE_ONLY_PREMIUM = PcCafe.getBoolean("PcCafeOnlyPremium", false);
|
|
||||||
PC_CAFE_ONLY_VIP = PcCafe.getBoolean("PcCafeOnlyVip", false);
|
|
||||||
PC_CAFE_MAX_POINTS = PcCafe.getInt("MaxPcCafePoints", 200000);
|
|
||||||
if (PC_CAFE_MAX_POINTS < 0)
|
|
||||||
{
|
|
||||||
PC_CAFE_MAX_POINTS = 0;
|
|
||||||
}
|
|
||||||
PC_CAFE_ENABLE_DOUBLE_POINTS = PcCafe.getBoolean("DoublingAcquisitionPoints", false);
|
|
||||||
PC_CAFE_DOUBLE_POINTS_CHANCE = PcCafe.getInt("DoublingAcquisitionPointsChance", 1);
|
|
||||||
if ((PC_CAFE_DOUBLE_POINTS_CHANCE < 0) || (PC_CAFE_DOUBLE_POINTS_CHANCE > 100))
|
|
||||||
{
|
|
||||||
PC_CAFE_DOUBLE_POINTS_CHANCE = 1;
|
|
||||||
}
|
|
||||||
PC_CAFE_POINT_RATE = PcCafe.getDouble("AcquisitionPointsRate", 1.0);
|
|
||||||
PC_CAFE_RANDOM_POINT = PcCafe.getBoolean("AcquisitionPointsRandom", false);
|
|
||||||
if (PC_CAFE_POINT_RATE < 0)
|
|
||||||
{
|
|
||||||
PC_CAFE_POINT_RATE = 1;
|
|
||||||
}
|
|
||||||
PC_CAFE_REWARD_LOW_EXP_KILLS = PcCafe.getBoolean("RewardLowExpKills", true);
|
|
||||||
PC_CAFE_LOW_EXP_KILLS_CHANCE = PcCafe.getInt("RewardLowExpKillsChance", 50);
|
|
||||||
if (PC_CAFE_LOW_EXP_KILLS_CHANCE < 0)
|
|
||||||
{
|
|
||||||
PC_CAFE_LOW_EXP_KILLS_CHANCE = 0;
|
|
||||||
}
|
|
||||||
if (PC_CAFE_LOW_EXP_KILLS_CHANCE > 100)
|
|
||||||
{
|
|
||||||
PC_CAFE_LOW_EXP_KILLS_CHANCE = 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
final PropertiesParser vipSystem = new PropertiesParser(CUSTOM_VIP_CONFIG_FILE);
|
final PropertiesParser vipSystem = new PropertiesParser(CUSTOM_VIP_CONFIG_FILE);
|
||||||
VIP_SYSTEM_ENABLED = vipSystem.getBoolean("VipEnabled", false);
|
VIP_SYSTEM_ENABLED = vipSystem.getBoolean("VipEnabled", false);
|
||||||
if (VIP_SYSTEM_ENABLED)
|
if (VIP_SYSTEM_ENABLED)
|
||||||
|
@ -16,21 +16,25 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.network.clientpackets;
|
package org.l2jmobius.gameserver.network.clientpackets;
|
||||||
|
|
||||||
|
import org.l2jmobius.Config;
|
||||||
import org.l2jmobius.commons.network.PacketReader;
|
import org.l2jmobius.commons.network.PacketReader;
|
||||||
import org.l2jmobius.gameserver.cache.HtmCache;
|
import org.l2jmobius.gameserver.cache.HtmCache;
|
||||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||||
import org.l2jmobius.gameserver.network.GameClient;
|
import org.l2jmobius.gameserver.network.GameClient;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.ExPremiumManagerShowHtml;
|
import org.l2jmobius.gameserver.network.serverpackets.ExPremiumManagerShowHtml;
|
||||||
|
import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Mobius
|
* @author Mobius
|
||||||
*/
|
*/
|
||||||
public class ExOpenHtml implements IClientIncomingPacket
|
public class ExOpenHtml implements IClientIncomingPacket
|
||||||
{
|
{
|
||||||
|
private int _type;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean read(GameClient client, PacketReader packet)
|
public boolean read(GameClient client, PacketReader packet)
|
||||||
{
|
{
|
||||||
packet.readC(); // html scope?
|
_type = packet.readC();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,6 +47,31 @@ public class ExOpenHtml implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/GameAssistant/32478.html")));
|
switch (_type)
|
||||||
|
{
|
||||||
|
case 1:
|
||||||
|
{
|
||||||
|
if (Config.PC_CAFE_ENABLED)
|
||||||
|
{
|
||||||
|
final NpcHtmlMessage html = new NpcHtmlMessage();
|
||||||
|
html.setFile(player, "data/html/pccafe.htm");
|
||||||
|
player.sendPacket(html);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 5:
|
||||||
|
{
|
||||||
|
if (Config.GAME_ASSISTANT_ENABLED)
|
||||||
|
{
|
||||||
|
client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/GameAssistant/32478.html")));
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
LOGGER.warning("Unknown ExOpenHtml type (" + _type + ")");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# PC Cafe (PC Bang) System
|
# PC Cafe (PC Bang)
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# PC CAFE POINTS ID = -100
|
# PC CAFE POINTS ID = -100
|
||||||
|
|
||||||
@ -43,3 +43,10 @@ RewardLowExpKills = True
|
|||||||
# Used when RewardLowExpKills is enabled.
|
# Used when RewardLowExpKills is enabled.
|
||||||
# Default 50 (%)
|
# Default 50 (%)
|
||||||
RewardLowExpKillsChance = 50
|
RewardLowExpKillsChance = 50
|
||||||
|
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Game Assistant (Dimensional Merchant)
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Enable Game Assistant functions.
|
||||||
|
GameAssistantEnabled = True
|
@ -95,6 +95,7 @@ public class Config
|
|||||||
private static final String CHARACTER_CONFIG_FILE = "./config/Character.ini";
|
private static final String CHARACTER_CONFIG_FILE = "./config/Character.ini";
|
||||||
private static final String FEATURE_CONFIG_FILE = "./config/Feature.ini";
|
private static final String FEATURE_CONFIG_FILE = "./config/Feature.ini";
|
||||||
private static final String FLOOD_PROTECTOR_CONFIG_FILE = "./config/FloodProtector.ini";
|
private static final String FLOOD_PROTECTOR_CONFIG_FILE = "./config/FloodProtector.ini";
|
||||||
|
private static final String GAME_ASSISTANT_CONFIG_FILE = "./config/GameAssistant.ini";
|
||||||
private static final String GENERAL_CONFIG_FILE = "./config/General.ini";
|
private static final String GENERAL_CONFIG_FILE = "./config/General.ini";
|
||||||
private static final String GRACIASEEDS_CONFIG_FILE = "./config/GraciaSeeds.ini";
|
private static final String GRACIASEEDS_CONFIG_FILE = "./config/GraciaSeeds.ini";
|
||||||
private static final String GRANDBOSS_CONFIG_FILE = "./config/GrandBoss.ini";
|
private static final String GRANDBOSS_CONFIG_FILE = "./config/GrandBoss.ini";
|
||||||
@ -134,7 +135,6 @@ public class Config
|
|||||||
private static final String CUSTOM_NPC_STAT_MULTIPLIERS_CONFIG_FILE = "./config/Custom/NpcStatMultipliers.ini";
|
private static final String CUSTOM_NPC_STAT_MULTIPLIERS_CONFIG_FILE = "./config/Custom/NpcStatMultipliers.ini";
|
||||||
private static final String CUSTOM_OFFLINE_TRADE_CONFIG_FILE = "./config/Custom/OfflineTrade.ini";
|
private static final String CUSTOM_OFFLINE_TRADE_CONFIG_FILE = "./config/Custom/OfflineTrade.ini";
|
||||||
private static final String CUSTOM_PASSWORD_CHANGE_CONFIG_FILE = "./config/Custom/PasswordChange.ini";
|
private static final String CUSTOM_PASSWORD_CHANGE_CONFIG_FILE = "./config/Custom/PasswordChange.ini";
|
||||||
private static final String CUSTOM_PC_CAFE_CONFIG_FILE = "./config/Custom/PcCafe.ini";
|
|
||||||
private static final String CUSTOM_VIP_CONFIG_FILE = "./config/Custom/VipSystem.ini";
|
private static final String CUSTOM_VIP_CONFIG_FILE = "./config/Custom/VipSystem.ini";
|
||||||
private static final String CUSTOM_PREMIUM_SYSTEM_CONFIG_FILE = "./config/Custom/PremiumSystem.ini";
|
private static final String CUSTOM_PREMIUM_SYSTEM_CONFIG_FILE = "./config/Custom/PremiumSystem.ini";
|
||||||
private static final String CUSTOM_PRIVATE_STORE_RANGE_CONFIG_FILE = "./config/Custom/PrivateStoreRange.ini";
|
private static final String CUSTOM_PRIVATE_STORE_RANGE_CONFIG_FILE = "./config/Custom/PrivateStoreRange.ini";
|
||||||
@ -871,6 +871,7 @@ public class Config
|
|||||||
public static int TRAINING_CAMP_MAX_LEVEL;
|
public static int TRAINING_CAMP_MAX_LEVEL;
|
||||||
public static double TRAINING_CAMP_EXP_MULTIPLIER;
|
public static double TRAINING_CAMP_EXP_MULTIPLIER;
|
||||||
public static double TRAINING_CAMP_SP_MULTIPLIER;
|
public static double TRAINING_CAMP_SP_MULTIPLIER;
|
||||||
|
public static boolean GAME_ASSISTANT_ENABLED;
|
||||||
public static boolean SHOW_LICENCE;
|
public static boolean SHOW_LICENCE;
|
||||||
public static boolean SHOW_PI_AGREEMENT;
|
public static boolean SHOW_PI_AGREEMENT;
|
||||||
public static boolean ACCEPT_NEW_GAMESERVER;
|
public static boolean ACCEPT_NEW_GAMESERVER;
|
||||||
@ -1973,6 +1974,40 @@ public class Config
|
|||||||
TRAINING_CAMP_EXP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampExpMultiplier", 1.0);
|
TRAINING_CAMP_EXP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampExpMultiplier", 1.0);
|
||||||
TRAINING_CAMP_SP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampSpMultiplier", 1.0);
|
TRAINING_CAMP_SP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampSpMultiplier", 1.0);
|
||||||
|
|
||||||
|
// Load GameAssistant config file (if exists)
|
||||||
|
final PropertiesParser GameAssistant = new PropertiesParser(GAME_ASSISTANT_CONFIG_FILE);
|
||||||
|
PC_CAFE_ENABLED = GameAssistant.getBoolean("PcCafeEnabled", false);
|
||||||
|
PC_CAFE_ONLY_PREMIUM = GameAssistant.getBoolean("PcCafeOnlyPremium", false);
|
||||||
|
PC_CAFE_ONLY_VIP = GameAssistant.getBoolean("PcCafeOnlyVip", false);
|
||||||
|
PC_CAFE_MAX_POINTS = GameAssistant.getInt("MaxPcCafePoints", 200000);
|
||||||
|
if (PC_CAFE_MAX_POINTS < 0)
|
||||||
|
{
|
||||||
|
PC_CAFE_MAX_POINTS = 0;
|
||||||
|
}
|
||||||
|
PC_CAFE_ENABLE_DOUBLE_POINTS = GameAssistant.getBoolean("DoublingAcquisitionPoints", false);
|
||||||
|
PC_CAFE_DOUBLE_POINTS_CHANCE = GameAssistant.getInt("DoublingAcquisitionPointsChance", 1);
|
||||||
|
if ((PC_CAFE_DOUBLE_POINTS_CHANCE < 0) || (PC_CAFE_DOUBLE_POINTS_CHANCE > 100))
|
||||||
|
{
|
||||||
|
PC_CAFE_DOUBLE_POINTS_CHANCE = 1;
|
||||||
|
}
|
||||||
|
PC_CAFE_POINT_RATE = GameAssistant.getDouble("AcquisitionPointsRate", 1.0);
|
||||||
|
PC_CAFE_RANDOM_POINT = GameAssistant.getBoolean("AcquisitionPointsRandom", false);
|
||||||
|
if (PC_CAFE_POINT_RATE < 0)
|
||||||
|
{
|
||||||
|
PC_CAFE_POINT_RATE = 1;
|
||||||
|
}
|
||||||
|
PC_CAFE_REWARD_LOW_EXP_KILLS = GameAssistant.getBoolean("RewardLowExpKills", true);
|
||||||
|
PC_CAFE_LOW_EXP_KILLS_CHANCE = GameAssistant.getInt("RewardLowExpKillsChance", 50);
|
||||||
|
if (PC_CAFE_LOW_EXP_KILLS_CHANCE < 0)
|
||||||
|
{
|
||||||
|
PC_CAFE_LOW_EXP_KILLS_CHANCE = 0;
|
||||||
|
}
|
||||||
|
if (PC_CAFE_LOW_EXP_KILLS_CHANCE > 100)
|
||||||
|
{
|
||||||
|
PC_CAFE_LOW_EXP_KILLS_CHANCE = 100;
|
||||||
|
}
|
||||||
|
GAME_ASSISTANT_ENABLED = GameAssistant.getBoolean("GameAssistantEnabled", false);
|
||||||
|
|
||||||
// Load General config file (if exists)
|
// Load General config file (if exists)
|
||||||
final PropertiesParser General = new PropertiesParser(GENERAL_CONFIG_FILE);
|
final PropertiesParser General = new PropertiesParser(GENERAL_CONFIG_FILE);
|
||||||
DEFAULT_ACCESS_LEVEL = General.getInt("DefaultAccessLevel", 0);
|
DEFAULT_ACCESS_LEVEL = General.getInt("DefaultAccessLevel", 0);
|
||||||
@ -3309,39 +3344,6 @@ public class Config
|
|||||||
final PropertiesParser PasswordChange = new PropertiesParser(CUSTOM_PASSWORD_CHANGE_CONFIG_FILE);
|
final PropertiesParser PasswordChange = new PropertiesParser(CUSTOM_PASSWORD_CHANGE_CONFIG_FILE);
|
||||||
ALLOW_CHANGE_PASSWORD = PasswordChange.getBoolean("AllowChangePassword", false);
|
ALLOW_CHANGE_PASSWORD = PasswordChange.getBoolean("AllowChangePassword", false);
|
||||||
|
|
||||||
// Load PcCafe config file (if exists)
|
|
||||||
final PropertiesParser PcCafe = new PropertiesParser(CUSTOM_PC_CAFE_CONFIG_FILE);
|
|
||||||
PC_CAFE_ENABLED = PcCafe.getBoolean("PcCafeEnabled", false);
|
|
||||||
PC_CAFE_ONLY_PREMIUM = PcCafe.getBoolean("PcCafeOnlyPremium", false);
|
|
||||||
PC_CAFE_ONLY_VIP = PcCafe.getBoolean("PcCafeOnlyVip", false);
|
|
||||||
PC_CAFE_MAX_POINTS = PcCafe.getInt("MaxPcCafePoints", 200000);
|
|
||||||
if (PC_CAFE_MAX_POINTS < 0)
|
|
||||||
{
|
|
||||||
PC_CAFE_MAX_POINTS = 0;
|
|
||||||
}
|
|
||||||
PC_CAFE_ENABLE_DOUBLE_POINTS = PcCafe.getBoolean("DoublingAcquisitionPoints", false);
|
|
||||||
PC_CAFE_DOUBLE_POINTS_CHANCE = PcCafe.getInt("DoublingAcquisitionPointsChance", 1);
|
|
||||||
if ((PC_CAFE_DOUBLE_POINTS_CHANCE < 0) || (PC_CAFE_DOUBLE_POINTS_CHANCE > 100))
|
|
||||||
{
|
|
||||||
PC_CAFE_DOUBLE_POINTS_CHANCE = 1;
|
|
||||||
}
|
|
||||||
PC_CAFE_POINT_RATE = PcCafe.getDouble("AcquisitionPointsRate", 1.0);
|
|
||||||
PC_CAFE_RANDOM_POINT = PcCafe.getBoolean("AcquisitionPointsRandom", false);
|
|
||||||
if (PC_CAFE_POINT_RATE < 0)
|
|
||||||
{
|
|
||||||
PC_CAFE_POINT_RATE = 1;
|
|
||||||
}
|
|
||||||
PC_CAFE_REWARD_LOW_EXP_KILLS = PcCafe.getBoolean("RewardLowExpKills", true);
|
|
||||||
PC_CAFE_LOW_EXP_KILLS_CHANCE = PcCafe.getInt("RewardLowExpKillsChance", 50);
|
|
||||||
if (PC_CAFE_LOW_EXP_KILLS_CHANCE < 0)
|
|
||||||
{
|
|
||||||
PC_CAFE_LOW_EXP_KILLS_CHANCE = 0;
|
|
||||||
}
|
|
||||||
if (PC_CAFE_LOW_EXP_KILLS_CHANCE > 100)
|
|
||||||
{
|
|
||||||
PC_CAFE_LOW_EXP_KILLS_CHANCE = 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
final PropertiesParser vipSystem = new PropertiesParser(CUSTOM_VIP_CONFIG_FILE);
|
final PropertiesParser vipSystem = new PropertiesParser(CUSTOM_VIP_CONFIG_FILE);
|
||||||
VIP_SYSTEM_ENABLED = vipSystem.getBoolean("VipEnabled", false);
|
VIP_SYSTEM_ENABLED = vipSystem.getBoolean("VipEnabled", false);
|
||||||
if (VIP_SYSTEM_ENABLED)
|
if (VIP_SYSTEM_ENABLED)
|
||||||
|
@ -61,12 +61,18 @@ public class ExOpenHtml implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
case 5:
|
case 5:
|
||||||
{
|
{
|
||||||
client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/GameAssistant/32478.html")));
|
if (Config.GAME_ASSISTANT_ENABLED)
|
||||||
|
{
|
||||||
|
client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/GameAssistant/32478.html")));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// case 7:
|
// case 7:
|
||||||
// {
|
// {
|
||||||
|
// if (Config.EINHASAD_STORE_ENABLED)
|
||||||
|
// {
|
||||||
// client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/EinhasadStore/34487.html")));
|
// client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/EinhasadStore/34487.html")));
|
||||||
|
// }
|
||||||
// break;
|
// break;
|
||||||
// }
|
// }
|
||||||
default:
|
default:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# PC Cafe (PC Bang) System
|
# PC Cafe (PC Bang)
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# PC CAFE POINTS ID = -100
|
# PC CAFE POINTS ID = -100
|
||||||
|
|
||||||
@ -43,3 +43,10 @@ RewardLowExpKills = True
|
|||||||
# Used when RewardLowExpKills is enabled.
|
# Used when RewardLowExpKills is enabled.
|
||||||
# Default 50 (%)
|
# Default 50 (%)
|
||||||
RewardLowExpKillsChance = 50
|
RewardLowExpKillsChance = 50
|
||||||
|
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Game Assistant (Dimensional Merchant)
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Enable Game Assistant functions.
|
||||||
|
GameAssistantEnabled = True
|
@ -95,6 +95,7 @@ public class Config
|
|||||||
private static final String CHARACTER_CONFIG_FILE = "./config/Character.ini";
|
private static final String CHARACTER_CONFIG_FILE = "./config/Character.ini";
|
||||||
private static final String FEATURE_CONFIG_FILE = "./config/Feature.ini";
|
private static final String FEATURE_CONFIG_FILE = "./config/Feature.ini";
|
||||||
private static final String FLOOD_PROTECTOR_CONFIG_FILE = "./config/FloodProtector.ini";
|
private static final String FLOOD_PROTECTOR_CONFIG_FILE = "./config/FloodProtector.ini";
|
||||||
|
private static final String GAME_ASSISTANT_CONFIG_FILE = "./config/GameAssistant.ini";
|
||||||
private static final String GENERAL_CONFIG_FILE = "./config/General.ini";
|
private static final String GENERAL_CONFIG_FILE = "./config/General.ini";
|
||||||
private static final String GRACIASEEDS_CONFIG_FILE = "./config/GraciaSeeds.ini";
|
private static final String GRACIASEEDS_CONFIG_FILE = "./config/GraciaSeeds.ini";
|
||||||
private static final String GRANDBOSS_CONFIG_FILE = "./config/GrandBoss.ini";
|
private static final String GRANDBOSS_CONFIG_FILE = "./config/GrandBoss.ini";
|
||||||
@ -134,7 +135,6 @@ public class Config
|
|||||||
private static final String CUSTOM_NPC_STAT_MULTIPLIERS_CONFIG_FILE = "./config/Custom/NpcStatMultipliers.ini";
|
private static final String CUSTOM_NPC_STAT_MULTIPLIERS_CONFIG_FILE = "./config/Custom/NpcStatMultipliers.ini";
|
||||||
private static final String CUSTOM_OFFLINE_TRADE_CONFIG_FILE = "./config/Custom/OfflineTrade.ini";
|
private static final String CUSTOM_OFFLINE_TRADE_CONFIG_FILE = "./config/Custom/OfflineTrade.ini";
|
||||||
private static final String CUSTOM_PASSWORD_CHANGE_CONFIG_FILE = "./config/Custom/PasswordChange.ini";
|
private static final String CUSTOM_PASSWORD_CHANGE_CONFIG_FILE = "./config/Custom/PasswordChange.ini";
|
||||||
private static final String CUSTOM_PC_CAFE_CONFIG_FILE = "./config/Custom/PcCafe.ini";
|
|
||||||
private static final String CUSTOM_VIP_CONFIG_FILE = "./config/Custom/VipSystem.ini";
|
private static final String CUSTOM_VIP_CONFIG_FILE = "./config/Custom/VipSystem.ini";
|
||||||
private static final String CUSTOM_PREMIUM_SYSTEM_CONFIG_FILE = "./config/Custom/PremiumSystem.ini";
|
private static final String CUSTOM_PREMIUM_SYSTEM_CONFIG_FILE = "./config/Custom/PremiumSystem.ini";
|
||||||
private static final String CUSTOM_PRIVATE_STORE_RANGE_CONFIG_FILE = "./config/Custom/PrivateStoreRange.ini";
|
private static final String CUSTOM_PRIVATE_STORE_RANGE_CONFIG_FILE = "./config/Custom/PrivateStoreRange.ini";
|
||||||
@ -871,6 +871,7 @@ public class Config
|
|||||||
public static int TRAINING_CAMP_MAX_LEVEL;
|
public static int TRAINING_CAMP_MAX_LEVEL;
|
||||||
public static double TRAINING_CAMP_EXP_MULTIPLIER;
|
public static double TRAINING_CAMP_EXP_MULTIPLIER;
|
||||||
public static double TRAINING_CAMP_SP_MULTIPLIER;
|
public static double TRAINING_CAMP_SP_MULTIPLIER;
|
||||||
|
public static boolean GAME_ASSISTANT_ENABLED;
|
||||||
public static boolean SHOW_LICENCE;
|
public static boolean SHOW_LICENCE;
|
||||||
public static boolean SHOW_PI_AGREEMENT;
|
public static boolean SHOW_PI_AGREEMENT;
|
||||||
public static boolean ACCEPT_NEW_GAMESERVER;
|
public static boolean ACCEPT_NEW_GAMESERVER;
|
||||||
@ -1973,6 +1974,40 @@ public class Config
|
|||||||
TRAINING_CAMP_EXP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampExpMultiplier", 1.0);
|
TRAINING_CAMP_EXP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampExpMultiplier", 1.0);
|
||||||
TRAINING_CAMP_SP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampSpMultiplier", 1.0);
|
TRAINING_CAMP_SP_MULTIPLIER = trainingCampSettings.getDouble("TrainingCampSpMultiplier", 1.0);
|
||||||
|
|
||||||
|
// Load GameAssistant config file (if exists)
|
||||||
|
final PropertiesParser GameAssistant = new PropertiesParser(GAME_ASSISTANT_CONFIG_FILE);
|
||||||
|
PC_CAFE_ENABLED = GameAssistant.getBoolean("PcCafeEnabled", false);
|
||||||
|
PC_CAFE_ONLY_PREMIUM = GameAssistant.getBoolean("PcCafeOnlyPremium", false);
|
||||||
|
PC_CAFE_ONLY_VIP = GameAssistant.getBoolean("PcCafeOnlyVip", false);
|
||||||
|
PC_CAFE_MAX_POINTS = GameAssistant.getInt("MaxPcCafePoints", 200000);
|
||||||
|
if (PC_CAFE_MAX_POINTS < 0)
|
||||||
|
{
|
||||||
|
PC_CAFE_MAX_POINTS = 0;
|
||||||
|
}
|
||||||
|
PC_CAFE_ENABLE_DOUBLE_POINTS = GameAssistant.getBoolean("DoublingAcquisitionPoints", false);
|
||||||
|
PC_CAFE_DOUBLE_POINTS_CHANCE = GameAssistant.getInt("DoublingAcquisitionPointsChance", 1);
|
||||||
|
if ((PC_CAFE_DOUBLE_POINTS_CHANCE < 0) || (PC_CAFE_DOUBLE_POINTS_CHANCE > 100))
|
||||||
|
{
|
||||||
|
PC_CAFE_DOUBLE_POINTS_CHANCE = 1;
|
||||||
|
}
|
||||||
|
PC_CAFE_POINT_RATE = GameAssistant.getDouble("AcquisitionPointsRate", 1.0);
|
||||||
|
PC_CAFE_RANDOM_POINT = GameAssistant.getBoolean("AcquisitionPointsRandom", false);
|
||||||
|
if (PC_CAFE_POINT_RATE < 0)
|
||||||
|
{
|
||||||
|
PC_CAFE_POINT_RATE = 1;
|
||||||
|
}
|
||||||
|
PC_CAFE_REWARD_LOW_EXP_KILLS = GameAssistant.getBoolean("RewardLowExpKills", true);
|
||||||
|
PC_CAFE_LOW_EXP_KILLS_CHANCE = GameAssistant.getInt("RewardLowExpKillsChance", 50);
|
||||||
|
if (PC_CAFE_LOW_EXP_KILLS_CHANCE < 0)
|
||||||
|
{
|
||||||
|
PC_CAFE_LOW_EXP_KILLS_CHANCE = 0;
|
||||||
|
}
|
||||||
|
if (PC_CAFE_LOW_EXP_KILLS_CHANCE > 100)
|
||||||
|
{
|
||||||
|
PC_CAFE_LOW_EXP_KILLS_CHANCE = 100;
|
||||||
|
}
|
||||||
|
GAME_ASSISTANT_ENABLED = GameAssistant.getBoolean("GameAssistantEnabled", false);
|
||||||
|
|
||||||
// Load General config file (if exists)
|
// Load General config file (if exists)
|
||||||
final PropertiesParser General = new PropertiesParser(GENERAL_CONFIG_FILE);
|
final PropertiesParser General = new PropertiesParser(GENERAL_CONFIG_FILE);
|
||||||
DEFAULT_ACCESS_LEVEL = General.getInt("DefaultAccessLevel", 0);
|
DEFAULT_ACCESS_LEVEL = General.getInt("DefaultAccessLevel", 0);
|
||||||
@ -3309,39 +3344,6 @@ public class Config
|
|||||||
final PropertiesParser PasswordChange = new PropertiesParser(CUSTOM_PASSWORD_CHANGE_CONFIG_FILE);
|
final PropertiesParser PasswordChange = new PropertiesParser(CUSTOM_PASSWORD_CHANGE_CONFIG_FILE);
|
||||||
ALLOW_CHANGE_PASSWORD = PasswordChange.getBoolean("AllowChangePassword", false);
|
ALLOW_CHANGE_PASSWORD = PasswordChange.getBoolean("AllowChangePassword", false);
|
||||||
|
|
||||||
// Load PcCafe config file (if exists)
|
|
||||||
final PropertiesParser PcCafe = new PropertiesParser(CUSTOM_PC_CAFE_CONFIG_FILE);
|
|
||||||
PC_CAFE_ENABLED = PcCafe.getBoolean("PcCafeEnabled", false);
|
|
||||||
PC_CAFE_ONLY_PREMIUM = PcCafe.getBoolean("PcCafeOnlyPremium", false);
|
|
||||||
PC_CAFE_ONLY_VIP = PcCafe.getBoolean("PcCafeOnlyVip", false);
|
|
||||||
PC_CAFE_MAX_POINTS = PcCafe.getInt("MaxPcCafePoints", 200000);
|
|
||||||
if (PC_CAFE_MAX_POINTS < 0)
|
|
||||||
{
|
|
||||||
PC_CAFE_MAX_POINTS = 0;
|
|
||||||
}
|
|
||||||
PC_CAFE_ENABLE_DOUBLE_POINTS = PcCafe.getBoolean("DoublingAcquisitionPoints", false);
|
|
||||||
PC_CAFE_DOUBLE_POINTS_CHANCE = PcCafe.getInt("DoublingAcquisitionPointsChance", 1);
|
|
||||||
if ((PC_CAFE_DOUBLE_POINTS_CHANCE < 0) || (PC_CAFE_DOUBLE_POINTS_CHANCE > 100))
|
|
||||||
{
|
|
||||||
PC_CAFE_DOUBLE_POINTS_CHANCE = 1;
|
|
||||||
}
|
|
||||||
PC_CAFE_POINT_RATE = PcCafe.getDouble("AcquisitionPointsRate", 1.0);
|
|
||||||
PC_CAFE_RANDOM_POINT = PcCafe.getBoolean("AcquisitionPointsRandom", false);
|
|
||||||
if (PC_CAFE_POINT_RATE < 0)
|
|
||||||
{
|
|
||||||
PC_CAFE_POINT_RATE = 1;
|
|
||||||
}
|
|
||||||
PC_CAFE_REWARD_LOW_EXP_KILLS = PcCafe.getBoolean("RewardLowExpKills", true);
|
|
||||||
PC_CAFE_LOW_EXP_KILLS_CHANCE = PcCafe.getInt("RewardLowExpKillsChance", 50);
|
|
||||||
if (PC_CAFE_LOW_EXP_KILLS_CHANCE < 0)
|
|
||||||
{
|
|
||||||
PC_CAFE_LOW_EXP_KILLS_CHANCE = 0;
|
|
||||||
}
|
|
||||||
if (PC_CAFE_LOW_EXP_KILLS_CHANCE > 100)
|
|
||||||
{
|
|
||||||
PC_CAFE_LOW_EXP_KILLS_CHANCE = 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
final PropertiesParser vipSystem = new PropertiesParser(CUSTOM_VIP_CONFIG_FILE);
|
final PropertiesParser vipSystem = new PropertiesParser(CUSTOM_VIP_CONFIG_FILE);
|
||||||
VIP_SYSTEM_ENABLED = vipSystem.getBoolean("VipEnabled", false);
|
VIP_SYSTEM_ENABLED = vipSystem.getBoolean("VipEnabled", false);
|
||||||
if (VIP_SYSTEM_ENABLED)
|
if (VIP_SYSTEM_ENABLED)
|
||||||
|
@ -61,12 +61,18 @@ public class ExOpenHtml implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
case 5:
|
case 5:
|
||||||
{
|
{
|
||||||
client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/GameAssistant/32478.html")));
|
if (Config.GAME_ASSISTANT_ENABLED)
|
||||||
|
{
|
||||||
|
client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/GameAssistant/32478.html")));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// case 7:
|
// case 7:
|
||||||
// {
|
// {
|
||||||
|
// if (Config.EINHASAD_STORE_ENABLED)
|
||||||
|
// {
|
||||||
// client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/EinhasadStore/34487.html")));
|
// client.sendPacket(new ExPremiumManagerShowHtml(HtmCache.getInstance().getHtm(player, "data/scripts/ai/others/EinhasadStore/34487.html")));
|
||||||
|
// }
|
||||||
// break;
|
// break;
|
||||||
// }
|
// }
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user