ceanki Posted February 25, 2016 Share Posted February 25, 2016 (edited) who can tell me why not consume book`s ? i put this code for make stackable book and not work ... :( ### Eclipse Workspace Patch 1.0#P L2jFrozen_GameServerIndex: head-src/com/l2jfrozen/Config.java===================================================================--- head-src/com/l2jfrozen/Config.java (revision 938)+++ head-src/com/l2jfrozen/Config.java (working copy)@@ -2343,6 +2343,8 @@ public static int MONSTER_RETURN_DELAY; public static boolean SCROLL_STACKABLE;+ public static boolean LS_STACKABLE;+ public static boolean BOG_STACKABLE; public static boolean ALLOW_VERSION_COMMAND; public static boolean ALLOW_CHAR_KILL_PROTECT;@@ -2469,6 +2471,8 @@ ALT_PLAYER_PROTECTION_LEVEL = Integer.parseInt(L2JFrozenSettings.getProperty("AltPlayerProtectionLevel", "0")); MONSTER_RETURN_DELAY = Integer.parseInt(L2JFrozenSettings.getProperty("MonsterReturnDelay", "0")); SCROLL_STACKABLE = Boolean.parseBoolean(L2JFrozenSettings.getProperty("ScrollStackable", "False"));+ LS_STACKABLE = Boolean.parseBoolean(L2JFrozenSettings.getProperty("BOGStackable", "False"));+ BOG_STACKABLE = Boolean.parseBoolean(L2JFrozenSettings.getProperty("LSStackable", "False")); ALLOW_CHAR_KILL_PROTECT = Boolean.parseBoolean(L2JFrozenSettings.getProperty("AllowLowLvlProtect", "False")); CLAN_LEADER_COLOR_ENABLED = Boolean.parseBoolean(L2JFrozenSettings.getProperty("ClanLeaderNameColorEnabled", "true")); CLAN_LEADER_COLORED = Integer.parseInt(L2JFrozenSettings.getProperty("ClanLeaderColored", "1"));Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestRefine.java===================================================================--- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestRefine.java (revision 938)+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestRefine.java (working copy)@@ -246,7 +246,12 @@ } // consume the life stone- if(!player.destroyItem("RequestRefine", refinerItem, null, false))+ if (Config.LS_STACKABLE)+ {+ if(!player.destroyItem("RequestRefine", refinerItem.getObjectId(), 1, null, false))+ return false;+ }+ else if(!player.destroyItem("RequestRefine", refinerItem, null, false)) return false; // consume the gemstonesIndex: config/functions/l2jfrozen.properties===================================================================--- config/functions/l2jfrozen.properties (revision 938)+++ config/functions/l2jfrozen.properties (working copy)@@ -188,6 +188,8 @@ # Scroll is Stackable? (default = false) ScrollStackable = false+LSStackable = false+BOGStackable = false # ------------------------------------------- # Clan Leader Color Config -Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestExEnchantSkill.java===================================================================--- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestExEnchantSkill.java (revision 938)+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestExEnchantSkill.java (working copy)@@ -135,7 +135,10 @@ return; } // ok- player.destroyItem("Consume", spb, trainer, true);+ if (Config.BOG_STACKABLE)+ player.destroyItem("Consume", spbId, 1, trainer, true);+ else+ player.destroyItem("Consume", spb, trainer, true); } } else Edited February 25, 2016 by ceanki Quote Link to comment Share on other sites More sharing options...
0 Reborn12 Posted February 25, 2016 Share Posted February 25, 2016 (edited) I cant See nothink There :P Edited February 25, 2016 by Reborn12 Quote Link to comment Share on other sites More sharing options...
Question
ceanki
who can tell me why not consume book`s ? i put this code for make stackable book and not work ... :(
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.