Configuration for making items depositable.
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Custom Depositable Items
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Make all items depositable for private warehouse.
|
||||||
|
# Default: False
|
||||||
|
CustomDepositableEnabled = True
|
||||||
|
|
||||||
|
# Include quest items.
|
||||||
|
# Default: False
|
||||||
|
DepositableQuestItems = False
|
||||||
@@ -116,6 +116,7 @@ public class Config
|
|||||||
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
||||||
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
||||||
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
||||||
|
private static final String CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE = "./config/Custom/CustomDepositableItems.ini";
|
||||||
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
||||||
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
||||||
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
||||||
@@ -1210,6 +1211,8 @@ public class Config
|
|||||||
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
||||||
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
||||||
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_ENABLED;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_QUEST_ITEMS;
|
||||||
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
||||||
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
||||||
public static boolean DELEVEL_MANAGER_ENABLED;
|
public static boolean DELEVEL_MANAGER_ENABLED;
|
||||||
@@ -3133,6 +3136,12 @@ public class Config
|
|||||||
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load CustomDepositableItems config file (if exists)
|
||||||
|
final PropertiesParser CustomDepositableItems = new PropertiesParser(CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE);
|
||||||
|
|
||||||
|
CUSTOM_DEPOSITABLE_ENABLED = CustomDepositableItems.getBoolean("CustomDepositableEnabled", false);
|
||||||
|
CUSTOM_DEPOSITABLE_QUEST_ITEMS = CustomDepositableItems.getBoolean("DepositableQuestItems", false);
|
||||||
|
|
||||||
// Load CustomMailManager config file (if exists)
|
// Load CustomMailManager config file (if exists)
|
||||||
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
||||||
|
|
||||||
|
|||||||
@@ -205,10 +205,19 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
_dropable = set.getBoolean("is_dropable", true);
|
_dropable = set.getBoolean("is_dropable", true);
|
||||||
_destroyable = set.getBoolean("is_destroyable", true);
|
_destroyable = set.getBoolean("is_destroyable", true);
|
||||||
_tradeable = set.getBoolean("is_tradable", true);
|
_tradeable = set.getBoolean("is_tradable", true);
|
||||||
_depositable = set.getBoolean("is_depositable", true);
|
|
||||||
|
_questItem = set.getBoolean("is_questitem", false);
|
||||||
|
if (Config.CUSTOM_DEPOSITABLE_ENABLED)
|
||||||
|
{
|
||||||
|
_depositable = _questItem ? Config.CUSTOM_DEPOSITABLE_QUEST_ITEMS : true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_depositable = set.getBoolean("is_depositable", true);
|
||||||
|
}
|
||||||
|
|
||||||
_elementable = set.getBoolean("element_enabled", false);
|
_elementable = set.getBoolean("element_enabled", false);
|
||||||
_enchantable = set.getInt("enchant_enabled", 0);
|
_enchantable = set.getInt("enchant_enabled", 0);
|
||||||
_questItem = set.getBoolean("is_questitem", false);
|
|
||||||
_freightable = set.getBoolean("is_freightable", false);
|
_freightable = set.getBoolean("is_freightable", false);
|
||||||
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
||||||
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
||||||
|
|||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Custom Depositable Items
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Make all items depositable for private warehouse.
|
||||||
|
# Default: False
|
||||||
|
CustomDepositableEnabled = True
|
||||||
|
|
||||||
|
# Include quest items.
|
||||||
|
# Default: False
|
||||||
|
DepositableQuestItems = False
|
||||||
@@ -117,6 +117,7 @@ public class Config
|
|||||||
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
||||||
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
||||||
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
||||||
|
private static final String CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE = "./config/Custom/CustomDepositableItems.ini";
|
||||||
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
||||||
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
||||||
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
||||||
@@ -1218,6 +1219,8 @@ public class Config
|
|||||||
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
||||||
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
||||||
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_ENABLED;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_QUEST_ITEMS;
|
||||||
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
||||||
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
||||||
public static boolean DELEVEL_MANAGER_ENABLED;
|
public static boolean DELEVEL_MANAGER_ENABLED;
|
||||||
@@ -3151,6 +3154,12 @@ public class Config
|
|||||||
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load CustomDepositableItems config file (if exists)
|
||||||
|
final PropertiesParser CustomDepositableItems = new PropertiesParser(CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE);
|
||||||
|
|
||||||
|
CUSTOM_DEPOSITABLE_ENABLED = CustomDepositableItems.getBoolean("CustomDepositableEnabled", false);
|
||||||
|
CUSTOM_DEPOSITABLE_QUEST_ITEMS = CustomDepositableItems.getBoolean("DepositableQuestItems", false);
|
||||||
|
|
||||||
// Load CustomMailManager config file (if exists)
|
// Load CustomMailManager config file (if exists)
|
||||||
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
||||||
|
|
||||||
|
|||||||
@@ -205,10 +205,19 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
_dropable = set.getBoolean("is_dropable", true);
|
_dropable = set.getBoolean("is_dropable", true);
|
||||||
_destroyable = set.getBoolean("is_destroyable", true);
|
_destroyable = set.getBoolean("is_destroyable", true);
|
||||||
_tradeable = set.getBoolean("is_tradable", true);
|
_tradeable = set.getBoolean("is_tradable", true);
|
||||||
_depositable = set.getBoolean("is_depositable", true);
|
|
||||||
|
_questItem = set.getBoolean("is_questitem", false);
|
||||||
|
if (Config.CUSTOM_DEPOSITABLE_ENABLED)
|
||||||
|
{
|
||||||
|
_depositable = _questItem ? Config.CUSTOM_DEPOSITABLE_QUEST_ITEMS : true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_depositable = set.getBoolean("is_depositable", true);
|
||||||
|
}
|
||||||
|
|
||||||
_elementable = set.getBoolean("element_enabled", false);
|
_elementable = set.getBoolean("element_enabled", false);
|
||||||
_enchantable = set.getInt("enchant_enabled", 0);
|
_enchantable = set.getInt("enchant_enabled", 0);
|
||||||
_questItem = set.getBoolean("is_questitem", false);
|
|
||||||
_freightable = set.getBoolean("is_freightable", false);
|
_freightable = set.getBoolean("is_freightable", false);
|
||||||
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
||||||
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Custom Depositable Items
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Make all items depositable for private warehouse.
|
||||||
|
# Default: False
|
||||||
|
CustomDepositableEnabled = True
|
||||||
|
|
||||||
|
# Include quest items.
|
||||||
|
# Default: False
|
||||||
|
DepositableQuestItems = False
|
||||||
@@ -117,6 +117,7 @@ public class Config
|
|||||||
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
||||||
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
||||||
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
||||||
|
private static final String CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE = "./config/Custom/CustomDepositableItems.ini";
|
||||||
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
||||||
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
||||||
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
||||||
@@ -1231,6 +1232,8 @@ public class Config
|
|||||||
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
||||||
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
||||||
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_ENABLED;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_QUEST_ITEMS;
|
||||||
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
||||||
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
||||||
public static boolean DELEVEL_MANAGER_ENABLED;
|
public static boolean DELEVEL_MANAGER_ENABLED;
|
||||||
@@ -3175,6 +3178,12 @@ public class Config
|
|||||||
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load CustomDepositableItems config file (if exists)
|
||||||
|
final PropertiesParser CustomDepositableItems = new PropertiesParser(CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE);
|
||||||
|
|
||||||
|
CUSTOM_DEPOSITABLE_ENABLED = CustomDepositableItems.getBoolean("CustomDepositableEnabled", false);
|
||||||
|
CUSTOM_DEPOSITABLE_QUEST_ITEMS = CustomDepositableItems.getBoolean("DepositableQuestItems", false);
|
||||||
|
|
||||||
// Load CustomMailManager config file (if exists)
|
// Load CustomMailManager config file (if exists)
|
||||||
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
||||||
|
|
||||||
|
|||||||
@@ -205,10 +205,19 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
_dropable = set.getBoolean("is_dropable", true);
|
_dropable = set.getBoolean("is_dropable", true);
|
||||||
_destroyable = set.getBoolean("is_destroyable", true);
|
_destroyable = set.getBoolean("is_destroyable", true);
|
||||||
_tradeable = set.getBoolean("is_tradable", true);
|
_tradeable = set.getBoolean("is_tradable", true);
|
||||||
_depositable = set.getBoolean("is_depositable", true);
|
|
||||||
|
_questItem = set.getBoolean("is_questitem", false);
|
||||||
|
if (Config.CUSTOM_DEPOSITABLE_ENABLED)
|
||||||
|
{
|
||||||
|
_depositable = _questItem ? Config.CUSTOM_DEPOSITABLE_QUEST_ITEMS : true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_depositable = set.getBoolean("is_depositable", true);
|
||||||
|
}
|
||||||
|
|
||||||
_elementable = set.getBoolean("element_enabled", false);
|
_elementable = set.getBoolean("element_enabled", false);
|
||||||
_enchantable = set.getInt("enchant_enabled", 0);
|
_enchantable = set.getInt("enchant_enabled", 0);
|
||||||
_questItem = set.getBoolean("is_questitem", false);
|
|
||||||
_freightable = set.getBoolean("is_freightable", false);
|
_freightable = set.getBoolean("is_freightable", false);
|
||||||
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
||||||
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
||||||
|
|||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Custom Depositable Items
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Make all items depositable for private warehouse.
|
||||||
|
# Default: False
|
||||||
|
CustomDepositableEnabled = True
|
||||||
|
|
||||||
|
# Include quest items.
|
||||||
|
# Default: False
|
||||||
|
DepositableQuestItems = False
|
||||||
@@ -117,6 +117,7 @@ public class Config
|
|||||||
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
||||||
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
||||||
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
||||||
|
private static final String CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE = "./config/Custom/CustomDepositableItems.ini";
|
||||||
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
||||||
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
||||||
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
||||||
@@ -1218,6 +1219,8 @@ public class Config
|
|||||||
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
||||||
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
||||||
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_ENABLED;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_QUEST_ITEMS;
|
||||||
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
||||||
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
||||||
public static boolean DELEVEL_MANAGER_ENABLED;
|
public static boolean DELEVEL_MANAGER_ENABLED;
|
||||||
@@ -3149,6 +3152,12 @@ public class Config
|
|||||||
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load CustomDepositableItems config file (if exists)
|
||||||
|
final PropertiesParser CustomDepositableItems = new PropertiesParser(CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE);
|
||||||
|
|
||||||
|
CUSTOM_DEPOSITABLE_ENABLED = CustomDepositableItems.getBoolean("CustomDepositableEnabled", false);
|
||||||
|
CUSTOM_DEPOSITABLE_QUEST_ITEMS = CustomDepositableItems.getBoolean("DepositableQuestItems", false);
|
||||||
|
|
||||||
// Load CustomMailManager config file (if exists)
|
// Load CustomMailManager config file (if exists)
|
||||||
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
||||||
|
|
||||||
|
|||||||
@@ -205,10 +205,19 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
_dropable = set.getBoolean("is_dropable", true);
|
_dropable = set.getBoolean("is_dropable", true);
|
||||||
_destroyable = set.getBoolean("is_destroyable", true);
|
_destroyable = set.getBoolean("is_destroyable", true);
|
||||||
_tradeable = set.getBoolean("is_tradable", true);
|
_tradeable = set.getBoolean("is_tradable", true);
|
||||||
_depositable = set.getBoolean("is_depositable", true);
|
|
||||||
|
_questItem = set.getBoolean("is_questitem", false);
|
||||||
|
if (Config.CUSTOM_DEPOSITABLE_ENABLED)
|
||||||
|
{
|
||||||
|
_depositable = _questItem ? Config.CUSTOM_DEPOSITABLE_QUEST_ITEMS : true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_depositable = set.getBoolean("is_depositable", true);
|
||||||
|
}
|
||||||
|
|
||||||
_elementable = set.getBoolean("element_enabled", false);
|
_elementable = set.getBoolean("element_enabled", false);
|
||||||
_enchantable = set.getInt("enchant_enabled", 0);
|
_enchantable = set.getInt("enchant_enabled", 0);
|
||||||
_questItem = set.getBoolean("is_questitem", false);
|
|
||||||
_freightable = set.getBoolean("is_freightable", false);
|
_freightable = set.getBoolean("is_freightable", false);
|
||||||
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
||||||
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Custom Depositable Items
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Make all items depositable for private warehouse.
|
||||||
|
# Default: False
|
||||||
|
CustomDepositableEnabled = True
|
||||||
|
|
||||||
|
# Include quest items.
|
||||||
|
# Default: False
|
||||||
|
DepositableQuestItems = False
|
||||||
@@ -118,6 +118,7 @@ public class Config
|
|||||||
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
||||||
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
||||||
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
||||||
|
private static final String CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE = "./config/Custom/CustomDepositableItems.ini";
|
||||||
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
||||||
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
||||||
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
||||||
@@ -1213,6 +1214,8 @@ public class Config
|
|||||||
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
||||||
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
||||||
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_ENABLED;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_QUEST_ITEMS;
|
||||||
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
||||||
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
||||||
public static boolean DELEVEL_MANAGER_ENABLED;
|
public static boolean DELEVEL_MANAGER_ENABLED;
|
||||||
@@ -3151,6 +3154,12 @@ public class Config
|
|||||||
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load CustomDepositableItems config file (if exists)
|
||||||
|
final PropertiesParser CustomDepositableItems = new PropertiesParser(CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE);
|
||||||
|
|
||||||
|
CUSTOM_DEPOSITABLE_ENABLED = CustomDepositableItems.getBoolean("CustomDepositableEnabled", false);
|
||||||
|
CUSTOM_DEPOSITABLE_QUEST_ITEMS = CustomDepositableItems.getBoolean("DepositableQuestItems", false);
|
||||||
|
|
||||||
// Load CustomMailManager config file (if exists)
|
// Load CustomMailManager config file (if exists)
|
||||||
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
||||||
|
|
||||||
|
|||||||
@@ -206,10 +206,19 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
_dropable = set.getBoolean("is_dropable", true);
|
_dropable = set.getBoolean("is_dropable", true);
|
||||||
_destroyable = set.getBoolean("is_destroyable", true);
|
_destroyable = set.getBoolean("is_destroyable", true);
|
||||||
_tradeable = set.getBoolean("is_tradable", true);
|
_tradeable = set.getBoolean("is_tradable", true);
|
||||||
_depositable = set.getBoolean("is_depositable", true);
|
|
||||||
|
_questItem = set.getBoolean("is_questitem", false);
|
||||||
|
if (Config.CUSTOM_DEPOSITABLE_ENABLED)
|
||||||
|
{
|
||||||
|
_depositable = _questItem ? Config.CUSTOM_DEPOSITABLE_QUEST_ITEMS : true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_depositable = set.getBoolean("is_depositable", true);
|
||||||
|
}
|
||||||
|
|
||||||
_elementable = set.getBoolean("element_enabled", false);
|
_elementable = set.getBoolean("element_enabled", false);
|
||||||
_enchantable = set.getInt("enchant_enabled", 0);
|
_enchantable = set.getInt("enchant_enabled", 0);
|
||||||
_questItem = set.getBoolean("is_questitem", false);
|
|
||||||
_freightable = set.getBoolean("is_freightable", false);
|
_freightable = set.getBoolean("is_freightable", false);
|
||||||
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
||||||
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Custom Depositable Items
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Make all items depositable for private warehouse.
|
||||||
|
# Default: False
|
||||||
|
CustomDepositableEnabled = True
|
||||||
|
|
||||||
|
# Include quest items.
|
||||||
|
# Default: False
|
||||||
|
DepositableQuestItems = False
|
||||||
@@ -118,6 +118,7 @@ public class Config
|
|||||||
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
||||||
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
||||||
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
||||||
|
private static final String CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE = "./config/Custom/CustomDepositableItems.ini";
|
||||||
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
||||||
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
||||||
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
||||||
@@ -1213,6 +1214,8 @@ public class Config
|
|||||||
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
||||||
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
||||||
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_ENABLED;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_QUEST_ITEMS;
|
||||||
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
||||||
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
||||||
public static boolean DELEVEL_MANAGER_ENABLED;
|
public static boolean DELEVEL_MANAGER_ENABLED;
|
||||||
@@ -3151,6 +3154,12 @@ public class Config
|
|||||||
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load CustomDepositableItems config file (if exists)
|
||||||
|
final PropertiesParser CustomDepositableItems = new PropertiesParser(CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE);
|
||||||
|
|
||||||
|
CUSTOM_DEPOSITABLE_ENABLED = CustomDepositableItems.getBoolean("CustomDepositableEnabled", false);
|
||||||
|
CUSTOM_DEPOSITABLE_QUEST_ITEMS = CustomDepositableItems.getBoolean("DepositableQuestItems", false);
|
||||||
|
|
||||||
// Load CustomMailManager config file (if exists)
|
// Load CustomMailManager config file (if exists)
|
||||||
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
||||||
|
|
||||||
|
|||||||
@@ -210,10 +210,19 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
_dropable = set.getBoolean("is_dropable", true);
|
_dropable = set.getBoolean("is_dropable", true);
|
||||||
_destroyable = set.getBoolean("is_destroyable", true);
|
_destroyable = set.getBoolean("is_destroyable", true);
|
||||||
_tradeable = set.getBoolean("is_tradable", true);
|
_tradeable = set.getBoolean("is_tradable", true);
|
||||||
_depositable = set.getBoolean("is_depositable", true);
|
|
||||||
|
_questItem = set.getBoolean("is_questitem", false);
|
||||||
|
if (Config.CUSTOM_DEPOSITABLE_ENABLED)
|
||||||
|
{
|
||||||
|
_depositable = _questItem ? Config.CUSTOM_DEPOSITABLE_QUEST_ITEMS : true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_depositable = set.getBoolean("is_depositable", true);
|
||||||
|
}
|
||||||
|
|
||||||
_elementable = set.getBoolean("element_enabled", false);
|
_elementable = set.getBoolean("element_enabled", false);
|
||||||
_enchantable = set.getInt("enchant_enabled", 0);
|
_enchantable = set.getInt("enchant_enabled", 0);
|
||||||
_questItem = set.getBoolean("is_questitem", false);
|
|
||||||
_freightable = set.getBoolean("is_freightable", false);
|
_freightable = set.getBoolean("is_freightable", false);
|
||||||
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
||||||
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Custom Depositable Items
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Make all items depositable for private warehouse.
|
||||||
|
# Default: False
|
||||||
|
CustomDepositableEnabled = True
|
||||||
|
|
||||||
|
# Include quest items.
|
||||||
|
# Default: False
|
||||||
|
DepositableQuestItems = False
|
||||||
@@ -118,6 +118,7 @@ public class Config
|
|||||||
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
||||||
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
||||||
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
||||||
|
private static final String CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE = "./config/Custom/CustomDepositableItems.ini";
|
||||||
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
||||||
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
||||||
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
||||||
@@ -1235,6 +1236,8 @@ public class Config
|
|||||||
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
||||||
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
||||||
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_ENABLED;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_QUEST_ITEMS;
|
||||||
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
||||||
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
||||||
public static boolean DELEVEL_MANAGER_ENABLED;
|
public static boolean DELEVEL_MANAGER_ENABLED;
|
||||||
@@ -3194,6 +3197,12 @@ public class Config
|
|||||||
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load CustomDepositableItems config file (if exists)
|
||||||
|
final PropertiesParser CustomDepositableItems = new PropertiesParser(CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE);
|
||||||
|
|
||||||
|
CUSTOM_DEPOSITABLE_ENABLED = CustomDepositableItems.getBoolean("CustomDepositableEnabled", false);
|
||||||
|
CUSTOM_DEPOSITABLE_QUEST_ITEMS = CustomDepositableItems.getBoolean("DepositableQuestItems", false);
|
||||||
|
|
||||||
// Load CustomMailManager config file (if exists)
|
// Load CustomMailManager config file (if exists)
|
||||||
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
||||||
|
|
||||||
|
|||||||
@@ -210,10 +210,19 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
_dropable = set.getBoolean("is_dropable", true);
|
_dropable = set.getBoolean("is_dropable", true);
|
||||||
_destroyable = set.getBoolean("is_destroyable", true);
|
_destroyable = set.getBoolean("is_destroyable", true);
|
||||||
_tradeable = set.getBoolean("is_tradable", true);
|
_tradeable = set.getBoolean("is_tradable", true);
|
||||||
_depositable = set.getBoolean("is_depositable", true);
|
|
||||||
|
_questItem = set.getBoolean("is_questitem", false);
|
||||||
|
if (Config.CUSTOM_DEPOSITABLE_ENABLED)
|
||||||
|
{
|
||||||
|
_depositable = _questItem ? Config.CUSTOM_DEPOSITABLE_QUEST_ITEMS : true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_depositable = set.getBoolean("is_depositable", true);
|
||||||
|
}
|
||||||
|
|
||||||
_elementable = set.getBoolean("element_enabled", false);
|
_elementable = set.getBoolean("element_enabled", false);
|
||||||
_enchantable = set.getInt("enchant_enabled", 0);
|
_enchantable = set.getInt("enchant_enabled", 0);
|
||||||
_questItem = set.getBoolean("is_questitem", false);
|
|
||||||
_freightable = set.getBoolean("is_freightable", false);
|
_freightable = set.getBoolean("is_freightable", false);
|
||||||
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
||||||
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
||||||
|
|||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Custom Depositable Items
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Make all items depositable for private warehouse.
|
||||||
|
# Default: False
|
||||||
|
CustomDepositableEnabled = True
|
||||||
|
|
||||||
|
# Include quest items.
|
||||||
|
# Default: False
|
||||||
|
DepositableQuestItems = False
|
||||||
@@ -119,6 +119,7 @@ public class Config
|
|||||||
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
||||||
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
||||||
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
||||||
|
private static final String CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE = "./config/Custom/CustomDepositableItems.ini";
|
||||||
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
||||||
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
||||||
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
||||||
@@ -1241,6 +1242,8 @@ public class Config
|
|||||||
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
||||||
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
||||||
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_ENABLED;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_QUEST_ITEMS;
|
||||||
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
||||||
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
||||||
public static boolean DELEVEL_MANAGER_ENABLED;
|
public static boolean DELEVEL_MANAGER_ENABLED;
|
||||||
@@ -3209,6 +3212,12 @@ public class Config
|
|||||||
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load CustomDepositableItems config file (if exists)
|
||||||
|
final PropertiesParser CustomDepositableItems = new PropertiesParser(CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE);
|
||||||
|
|
||||||
|
CUSTOM_DEPOSITABLE_ENABLED = CustomDepositableItems.getBoolean("CustomDepositableEnabled", false);
|
||||||
|
CUSTOM_DEPOSITABLE_QUEST_ITEMS = CustomDepositableItems.getBoolean("DepositableQuestItems", false);
|
||||||
|
|
||||||
// Load CustomMailManager config file (if exists)
|
// Load CustomMailManager config file (if exists)
|
||||||
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
||||||
|
|
||||||
|
|||||||
@@ -210,10 +210,19 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
_dropable = set.getBoolean("is_dropable", true);
|
_dropable = set.getBoolean("is_dropable", true);
|
||||||
_destroyable = set.getBoolean("is_destroyable", true);
|
_destroyable = set.getBoolean("is_destroyable", true);
|
||||||
_tradeable = set.getBoolean("is_tradable", true);
|
_tradeable = set.getBoolean("is_tradable", true);
|
||||||
_depositable = set.getBoolean("is_depositable", true);
|
|
||||||
|
_questItem = set.getBoolean("is_questitem", false);
|
||||||
|
if (Config.CUSTOM_DEPOSITABLE_ENABLED)
|
||||||
|
{
|
||||||
|
_depositable = _questItem ? Config.CUSTOM_DEPOSITABLE_QUEST_ITEMS : true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_depositable = set.getBoolean("is_depositable", true);
|
||||||
|
}
|
||||||
|
|
||||||
_elementable = set.getBoolean("element_enabled", false);
|
_elementable = set.getBoolean("element_enabled", false);
|
||||||
_enchantable = set.getInt("enchant_enabled", 0);
|
_enchantable = set.getInt("enchant_enabled", 0);
|
||||||
_questItem = set.getBoolean("is_questitem", false);
|
|
||||||
_freightable = set.getBoolean("is_freightable", false);
|
_freightable = set.getBoolean("is_freightable", false);
|
||||||
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
||||||
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
||||||
|
|||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Custom Depositable Items
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Make all items depositable for private warehouse.
|
||||||
|
# Default: False
|
||||||
|
CustomDepositableEnabled = True
|
||||||
|
|
||||||
|
# Include quest items.
|
||||||
|
# Default: False
|
||||||
|
DepositableQuestItems = False
|
||||||
@@ -117,6 +117,7 @@ public class Config
|
|||||||
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
||||||
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
||||||
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
||||||
|
private static final String CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE = "./config/Custom/CustomDepositableItems.ini";
|
||||||
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
||||||
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
||||||
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
||||||
@@ -1154,6 +1155,8 @@ public class Config
|
|||||||
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
||||||
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
||||||
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_ENABLED;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_QUEST_ITEMS;
|
||||||
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
||||||
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
||||||
public static boolean DELEVEL_MANAGER_ENABLED;
|
public static boolean DELEVEL_MANAGER_ENABLED;
|
||||||
@@ -3011,6 +3014,12 @@ public class Config
|
|||||||
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load CustomDepositableItems config file (if exists)
|
||||||
|
final PropertiesParser CustomDepositableItems = new PropertiesParser(CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE);
|
||||||
|
|
||||||
|
CUSTOM_DEPOSITABLE_ENABLED = CustomDepositableItems.getBoolean("CustomDepositableEnabled", false);
|
||||||
|
CUSTOM_DEPOSITABLE_QUEST_ITEMS = CustomDepositableItems.getBoolean("DepositableQuestItems", false);
|
||||||
|
|
||||||
// Load CustomMailManager config file (if exists)
|
// Load CustomMailManager config file (if exists)
|
||||||
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
||||||
|
|
||||||
|
|||||||
@@ -205,10 +205,19 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
_dropable = set.getBoolean("is_dropable", true);
|
_dropable = set.getBoolean("is_dropable", true);
|
||||||
_destroyable = set.getBoolean("is_destroyable", true);
|
_destroyable = set.getBoolean("is_destroyable", true);
|
||||||
_tradeable = set.getBoolean("is_tradable", true);
|
_tradeable = set.getBoolean("is_tradable", true);
|
||||||
_depositable = set.getBoolean("is_depositable", true);
|
|
||||||
|
_questItem = set.getBoolean("is_questitem", false);
|
||||||
|
if (Config.CUSTOM_DEPOSITABLE_ENABLED)
|
||||||
|
{
|
||||||
|
_depositable = _questItem ? Config.CUSTOM_DEPOSITABLE_QUEST_ITEMS : true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_depositable = set.getBoolean("is_depositable", true);
|
||||||
|
}
|
||||||
|
|
||||||
_elementable = set.getBoolean("element_enabled", false);
|
_elementable = set.getBoolean("element_enabled", false);
|
||||||
_enchantable = set.getInt("enchant_enabled", 0);
|
_enchantable = set.getInt("enchant_enabled", 0);
|
||||||
_questItem = set.getBoolean("is_questitem", false);
|
|
||||||
_freightable = set.getBoolean("is_freightable", false);
|
_freightable = set.getBoolean("is_freightable", false);
|
||||||
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
||||||
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
||||||
|
|||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Custom Depositable Items
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Make all items depositable for private warehouse.
|
||||||
|
# Default: False
|
||||||
|
CustomDepositableEnabled = True
|
||||||
|
|
||||||
|
# Include quest items.
|
||||||
|
# Default: False
|
||||||
|
DepositableQuestItems = False
|
||||||
@@ -117,6 +117,7 @@ public class Config
|
|||||||
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
||||||
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
||||||
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
||||||
|
private static final String CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE = "./config/Custom/CustomDepositableItems.ini";
|
||||||
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
||||||
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
||||||
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
||||||
@@ -1158,6 +1159,8 @@ public class Config
|
|||||||
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
||||||
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
||||||
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_ENABLED;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_QUEST_ITEMS;
|
||||||
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
||||||
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
||||||
public static boolean DELEVEL_MANAGER_ENABLED;
|
public static boolean DELEVEL_MANAGER_ENABLED;
|
||||||
@@ -3018,6 +3021,12 @@ public class Config
|
|||||||
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load CustomDepositableItems config file (if exists)
|
||||||
|
final PropertiesParser CustomDepositableItems = new PropertiesParser(CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE);
|
||||||
|
|
||||||
|
CUSTOM_DEPOSITABLE_ENABLED = CustomDepositableItems.getBoolean("CustomDepositableEnabled", false);
|
||||||
|
CUSTOM_DEPOSITABLE_QUEST_ITEMS = CustomDepositableItems.getBoolean("DepositableQuestItems", false);
|
||||||
|
|
||||||
// Load CustomMailManager config file (if exists)
|
// Load CustomMailManager config file (if exists)
|
||||||
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
||||||
|
|
||||||
|
|||||||
@@ -205,10 +205,19 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
_dropable = set.getBoolean("is_dropable", true);
|
_dropable = set.getBoolean("is_dropable", true);
|
||||||
_destroyable = set.getBoolean("is_destroyable", true);
|
_destroyable = set.getBoolean("is_destroyable", true);
|
||||||
_tradeable = set.getBoolean("is_tradable", true);
|
_tradeable = set.getBoolean("is_tradable", true);
|
||||||
_depositable = set.getBoolean("is_depositable", true);
|
|
||||||
|
_questItem = set.getBoolean("is_questitem", false);
|
||||||
|
if (Config.CUSTOM_DEPOSITABLE_ENABLED)
|
||||||
|
{
|
||||||
|
_depositable = _questItem ? Config.CUSTOM_DEPOSITABLE_QUEST_ITEMS : true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_depositable = set.getBoolean("is_depositable", true);
|
||||||
|
}
|
||||||
|
|
||||||
_elementable = set.getBoolean("element_enabled", false);
|
_elementable = set.getBoolean("element_enabled", false);
|
||||||
_enchantable = set.getInt("enchant_enabled", 0);
|
_enchantable = set.getInt("enchant_enabled", 0);
|
||||||
_questItem = set.getBoolean("is_questitem", false);
|
|
||||||
_freightable = set.getBoolean("is_freightable", false);
|
_freightable = set.getBoolean("is_freightable", false);
|
||||||
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
||||||
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
||||||
|
|||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Custom Depositable Items
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Make all items depositable for private warehouse.
|
||||||
|
# Default: False
|
||||||
|
CustomDepositableEnabled = True
|
||||||
|
|
||||||
|
# Include quest items.
|
||||||
|
# Default: False
|
||||||
|
DepositableQuestItems = False
|
||||||
@@ -117,6 +117,7 @@ public class Config
|
|||||||
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
||||||
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
||||||
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
||||||
|
private static final String CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE = "./config/Custom/CustomDepositableItems.ini";
|
||||||
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
||||||
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
||||||
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
||||||
@@ -1158,6 +1159,8 @@ public class Config
|
|||||||
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
||||||
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
||||||
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_ENABLED;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_QUEST_ITEMS;
|
||||||
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
||||||
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
||||||
public static boolean DELEVEL_MANAGER_ENABLED;
|
public static boolean DELEVEL_MANAGER_ENABLED;
|
||||||
@@ -3018,6 +3021,12 @@ public class Config
|
|||||||
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load CustomDepositableItems config file (if exists)
|
||||||
|
final PropertiesParser CustomDepositableItems = new PropertiesParser(CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE);
|
||||||
|
|
||||||
|
CUSTOM_DEPOSITABLE_ENABLED = CustomDepositableItems.getBoolean("CustomDepositableEnabled", false);
|
||||||
|
CUSTOM_DEPOSITABLE_QUEST_ITEMS = CustomDepositableItems.getBoolean("DepositableQuestItems", false);
|
||||||
|
|
||||||
// Load CustomMailManager config file (if exists)
|
// Load CustomMailManager config file (if exists)
|
||||||
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
||||||
|
|
||||||
|
|||||||
+11
-2
@@ -206,10 +206,19 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
_dropable = set.getBoolean("is_dropable", true);
|
_dropable = set.getBoolean("is_dropable", true);
|
||||||
_destroyable = set.getBoolean("is_destroyable", true);
|
_destroyable = set.getBoolean("is_destroyable", true);
|
||||||
_tradeable = set.getBoolean("is_tradable", true);
|
_tradeable = set.getBoolean("is_tradable", true);
|
||||||
_depositable = set.getBoolean("is_depositable", true);
|
|
||||||
|
_questItem = set.getBoolean("is_questitem", false);
|
||||||
|
if (Config.CUSTOM_DEPOSITABLE_ENABLED)
|
||||||
|
{
|
||||||
|
_depositable = _questItem ? Config.CUSTOM_DEPOSITABLE_QUEST_ITEMS : true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_depositable = set.getBoolean("is_depositable", true);
|
||||||
|
}
|
||||||
|
|
||||||
_elementable = set.getBoolean("element_enabled", false);
|
_elementable = set.getBoolean("element_enabled", false);
|
||||||
_enchantable = set.getInt("enchant_enabled", 0);
|
_enchantable = set.getInt("enchant_enabled", 0);
|
||||||
_questItem = set.getBoolean("is_questitem", false);
|
|
||||||
_freightable = set.getBoolean("is_freightable", false);
|
_freightable = set.getBoolean("is_freightable", false);
|
||||||
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
||||||
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
||||||
|
|||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Custom Depositable Items
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Make all items depositable for private warehouse.
|
||||||
|
# Default: False
|
||||||
|
CustomDepositableEnabled = True
|
||||||
|
|
||||||
|
# Include quest items.
|
||||||
|
# Default: False
|
||||||
|
DepositableQuestItems = False
|
||||||
@@ -117,6 +117,7 @@ public class Config
|
|||||||
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
||||||
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
||||||
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
||||||
|
private static final String CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE = "./config/Custom/CustomDepositableItems.ini";
|
||||||
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
||||||
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
||||||
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
||||||
@@ -1158,6 +1159,8 @@ public class Config
|
|||||||
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
||||||
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
||||||
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_ENABLED;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_QUEST_ITEMS;
|
||||||
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
||||||
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
||||||
public static boolean DELEVEL_MANAGER_ENABLED;
|
public static boolean DELEVEL_MANAGER_ENABLED;
|
||||||
@@ -3018,6 +3021,12 @@ public class Config
|
|||||||
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load CustomDepositableItems config file (if exists)
|
||||||
|
final PropertiesParser CustomDepositableItems = new PropertiesParser(CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE);
|
||||||
|
|
||||||
|
CUSTOM_DEPOSITABLE_ENABLED = CustomDepositableItems.getBoolean("CustomDepositableEnabled", false);
|
||||||
|
CUSTOM_DEPOSITABLE_QUEST_ITEMS = CustomDepositableItems.getBoolean("DepositableQuestItems", false);
|
||||||
|
|
||||||
// Load CustomMailManager config file (if exists)
|
// Load CustomMailManager config file (if exists)
|
||||||
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
||||||
|
|
||||||
|
|||||||
+11
-2
@@ -208,10 +208,19 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
_dropable = set.getBoolean("is_dropable", true);
|
_dropable = set.getBoolean("is_dropable", true);
|
||||||
_destroyable = set.getBoolean("is_destroyable", true);
|
_destroyable = set.getBoolean("is_destroyable", true);
|
||||||
_tradeable = set.getBoolean("is_tradable", true);
|
_tradeable = set.getBoolean("is_tradable", true);
|
||||||
_depositable = set.getBoolean("is_depositable", true);
|
|
||||||
|
_questItem = set.getBoolean("is_questitem", false);
|
||||||
|
if (Config.CUSTOM_DEPOSITABLE_ENABLED)
|
||||||
|
{
|
||||||
|
_depositable = _questItem ? Config.CUSTOM_DEPOSITABLE_QUEST_ITEMS : true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_depositable = set.getBoolean("is_depositable", true);
|
||||||
|
}
|
||||||
|
|
||||||
_elementable = set.getBoolean("element_enabled", false);
|
_elementable = set.getBoolean("element_enabled", false);
|
||||||
_enchantable = set.getInt("enchant_enabled", 0);
|
_enchantable = set.getInt("enchant_enabled", 0);
|
||||||
_questItem = set.getBoolean("is_questitem", false);
|
|
||||||
_freightable = set.getBoolean("is_freightable", false);
|
_freightable = set.getBoolean("is_freightable", false);
|
||||||
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
||||||
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
||||||
|
|||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Custom Depositable Items
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Make all items depositable for private warehouse.
|
||||||
|
# Default: False
|
||||||
|
CustomDepositableEnabled = True
|
||||||
|
|
||||||
|
# Include quest items.
|
||||||
|
# Default: False
|
||||||
|
DepositableQuestItems = False
|
||||||
@@ -117,6 +117,7 @@ public class Config
|
|||||||
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
||||||
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
||||||
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
||||||
|
private static final String CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE = "./config/Custom/CustomDepositableItems.ini";
|
||||||
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
||||||
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
||||||
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
||||||
@@ -1163,6 +1164,8 @@ public class Config
|
|||||||
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
||||||
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
||||||
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_ENABLED;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_QUEST_ITEMS;
|
||||||
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
||||||
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
||||||
public static boolean DELEVEL_MANAGER_ENABLED;
|
public static boolean DELEVEL_MANAGER_ENABLED;
|
||||||
@@ -3026,6 +3029,12 @@ public class Config
|
|||||||
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load CustomDepositableItems config file (if exists)
|
||||||
|
final PropertiesParser CustomDepositableItems = new PropertiesParser(CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE);
|
||||||
|
|
||||||
|
CUSTOM_DEPOSITABLE_ENABLED = CustomDepositableItems.getBoolean("CustomDepositableEnabled", false);
|
||||||
|
CUSTOM_DEPOSITABLE_QUEST_ITEMS = CustomDepositableItems.getBoolean("DepositableQuestItems", false);
|
||||||
|
|
||||||
// Load CustomMailManager config file (if exists)
|
// Load CustomMailManager config file (if exists)
|
||||||
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
||||||
|
|
||||||
|
|||||||
+11
-2
@@ -208,10 +208,19 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
_dropable = set.getBoolean("is_dropable", true);
|
_dropable = set.getBoolean("is_dropable", true);
|
||||||
_destroyable = set.getBoolean("is_destroyable", true);
|
_destroyable = set.getBoolean("is_destroyable", true);
|
||||||
_tradeable = set.getBoolean("is_tradable", true);
|
_tradeable = set.getBoolean("is_tradable", true);
|
||||||
_depositable = set.getBoolean("is_depositable", true);
|
|
||||||
|
_questItem = set.getBoolean("is_questitem", false);
|
||||||
|
if (Config.CUSTOM_DEPOSITABLE_ENABLED)
|
||||||
|
{
|
||||||
|
_depositable = _questItem ? Config.CUSTOM_DEPOSITABLE_QUEST_ITEMS : true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_depositable = set.getBoolean("is_depositable", true);
|
||||||
|
}
|
||||||
|
|
||||||
_elementable = set.getBoolean("element_enabled", false);
|
_elementable = set.getBoolean("element_enabled", false);
|
||||||
_enchantable = set.getInt("enchant_enabled", 0);
|
_enchantable = set.getInt("enchant_enabled", 0);
|
||||||
_questItem = set.getBoolean("is_questitem", false);
|
|
||||||
_freightable = set.getBoolean("is_freightable", false);
|
_freightable = set.getBoolean("is_freightable", false);
|
||||||
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
||||||
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
||||||
|
|||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Custom Depositable Items
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Make all items depositable for private warehouse.
|
||||||
|
# Default: False
|
||||||
|
CustomDepositableEnabled = True
|
||||||
|
|
||||||
|
# Include quest items.
|
||||||
|
# Default: False
|
||||||
|
DepositableQuestItems = False
|
||||||
@@ -118,6 +118,7 @@ public class Config
|
|||||||
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
||||||
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
||||||
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
||||||
|
private static final String CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE = "./config/Custom/CustomDepositableItems.ini";
|
||||||
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
||||||
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
||||||
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
||||||
@@ -1167,6 +1168,8 @@ public class Config
|
|||||||
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
||||||
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
||||||
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_ENABLED;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_QUEST_ITEMS;
|
||||||
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
||||||
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
||||||
public static boolean DELEVEL_MANAGER_ENABLED;
|
public static boolean DELEVEL_MANAGER_ENABLED;
|
||||||
@@ -3037,6 +3040,12 @@ public class Config
|
|||||||
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load CustomDepositableItems config file (if exists)
|
||||||
|
final PropertiesParser CustomDepositableItems = new PropertiesParser(CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE);
|
||||||
|
|
||||||
|
CUSTOM_DEPOSITABLE_ENABLED = CustomDepositableItems.getBoolean("CustomDepositableEnabled", false);
|
||||||
|
CUSTOM_DEPOSITABLE_QUEST_ITEMS = CustomDepositableItems.getBoolean("DepositableQuestItems", false);
|
||||||
|
|
||||||
// Load CustomMailManager config file (if exists)
|
// Load CustomMailManager config file (if exists)
|
||||||
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
||||||
|
|
||||||
|
|||||||
+11
-2
@@ -208,10 +208,19 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
_dropable = set.getBoolean("is_dropable", true);
|
_dropable = set.getBoolean("is_dropable", true);
|
||||||
_destroyable = set.getBoolean("is_destroyable", true);
|
_destroyable = set.getBoolean("is_destroyable", true);
|
||||||
_tradeable = set.getBoolean("is_tradable", true);
|
_tradeable = set.getBoolean("is_tradable", true);
|
||||||
_depositable = set.getBoolean("is_depositable", true);
|
|
||||||
|
_questItem = set.getBoolean("is_questitem", false);
|
||||||
|
if (Config.CUSTOM_DEPOSITABLE_ENABLED)
|
||||||
|
{
|
||||||
|
_depositable = _questItem ? Config.CUSTOM_DEPOSITABLE_QUEST_ITEMS : true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_depositable = set.getBoolean("is_depositable", true);
|
||||||
|
}
|
||||||
|
|
||||||
_elementable = set.getBoolean("element_enabled", false);
|
_elementable = set.getBoolean("element_enabled", false);
|
||||||
_enchantable = set.getInt("enchant_enabled", 0);
|
_enchantable = set.getInt("enchant_enabled", 0);
|
||||||
_questItem = set.getBoolean("is_questitem", false);
|
|
||||||
_freightable = set.getBoolean("is_freightable", false);
|
_freightable = set.getBoolean("is_freightable", false);
|
||||||
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
||||||
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
||||||
|
|||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Custom Depositable Items
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Make all items depositable for private warehouse.
|
||||||
|
# Default: False
|
||||||
|
CustomDepositableEnabled = True
|
||||||
|
|
||||||
|
# Include quest items.
|
||||||
|
# Default: False
|
||||||
|
DepositableQuestItems = False
|
||||||
@@ -118,6 +118,7 @@ public class Config
|
|||||||
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
private static final String CUSTOM_CHAT_MODERATION_CONFIG_FILE = "./config/Custom/ChatModeration.ini";
|
||||||
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
private static final String CUSTOM_CLASS_BALANCE_CONFIG_FILE = "./config/Custom/ClassBalance.ini";
|
||||||
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
private static final String CUSTOM_COMMUNITY_BOARD_CONFIG_FILE = "./config/Custom/CommunityBoard.ini";
|
||||||
|
private static final String CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE = "./config/Custom/CustomDepositableItems.ini";
|
||||||
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/Custom/CustomMailManager.ini";
|
||||||
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
private static final String CUSTOM_DELEVEL_MANAGER_CONFIG_FILE = "./config/Custom/DelevelManager.ini";
|
||||||
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
private static final String CUSTOM_DUALBOX_CHECK_CONFIG_FILE = "./config/Custom/DualboxCheck.ini";
|
||||||
@@ -1172,6 +1173,8 @@ public class Config
|
|||||||
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
public static int COMMUNITY_PREMIUM_PRICE_PER_DAY;
|
||||||
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
public static List<Integer> COMMUNITY_AVAILABLE_BUFFS;
|
||||||
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
public static Map<String, Location> COMMUNITY_AVAILABLE_TELEPORTS;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_ENABLED;
|
||||||
|
public static boolean CUSTOM_DEPOSITABLE_QUEST_ITEMS;
|
||||||
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
public static boolean CUSTOM_MAIL_MANAGER_ENABLED;
|
||||||
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
public static int CUSTOM_MAIL_MANAGER_DELAY;
|
||||||
public static boolean DELEVEL_MANAGER_ENABLED;
|
public static boolean DELEVEL_MANAGER_ENABLED;
|
||||||
@@ -3044,6 +3047,12 @@ public class Config
|
|||||||
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
COMMUNITY_AVAILABLE_TELEPORTS.put(splitInfo[0], new Location(Integer.parseInt(splitInfo[1]), Integer.parseInt(splitInfo[2]), Integer.parseInt(splitInfo[3])));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load CustomDepositableItems config file (if exists)
|
||||||
|
final PropertiesParser CustomDepositableItems = new PropertiesParser(CUSTOM_CUSTOM_DEPOSITABLE_ITEMS_CONFIG_FILE);
|
||||||
|
|
||||||
|
CUSTOM_DEPOSITABLE_ENABLED = CustomDepositableItems.getBoolean("CustomDepositableEnabled", false);
|
||||||
|
CUSTOM_DEPOSITABLE_QUEST_ITEMS = CustomDepositableItems.getBoolean("DepositableQuestItems", false);
|
||||||
|
|
||||||
// Load CustomMailManager config file (if exists)
|
// Load CustomMailManager config file (if exists)
|
||||||
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
final PropertiesParser CustomMailManager = new PropertiesParser(CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE);
|
||||||
|
|
||||||
|
|||||||
@@ -205,10 +205,19 @@ public abstract class Item extends ListenersContainer implements IIdentifiable
|
|||||||
_dropable = set.getBoolean("is_dropable", true);
|
_dropable = set.getBoolean("is_dropable", true);
|
||||||
_destroyable = set.getBoolean("is_destroyable", true);
|
_destroyable = set.getBoolean("is_destroyable", true);
|
||||||
_tradeable = set.getBoolean("is_tradable", true);
|
_tradeable = set.getBoolean("is_tradable", true);
|
||||||
_depositable = set.getBoolean("is_depositable", true);
|
|
||||||
|
_questItem = set.getBoolean("is_questitem", false);
|
||||||
|
if (Config.CUSTOM_DEPOSITABLE_ENABLED)
|
||||||
|
{
|
||||||
|
_depositable = _questItem ? Config.CUSTOM_DEPOSITABLE_QUEST_ITEMS : true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_depositable = set.getBoolean("is_depositable", true);
|
||||||
|
}
|
||||||
|
|
||||||
_elementable = set.getBoolean("element_enabled", false);
|
_elementable = set.getBoolean("element_enabled", false);
|
||||||
_enchantable = set.getInt("enchant_enabled", 0);
|
_enchantable = set.getInt("enchant_enabled", 0);
|
||||||
_questItem = set.getBoolean("is_questitem", false);
|
|
||||||
_freightable = set.getBoolean("is_freightable", false);
|
_freightable = set.getBoolean("is_freightable", false);
|
||||||
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
_allowSelfResurrection = set.getBoolean("allow_self_resurrection", false);
|
||||||
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
_isOlyRestricted = set.getBoolean("is_oly_restricted", false);
|
||||||
|
|||||||
Reference in New Issue
Block a user