scraw Posted March 23, 2020 Posted March 23, 2020 (edited) On 3/18/2016 at 11:28 PM, DrenepiaWorld said: Since i saw that a lot of people looking for this code cause the one that it's already shared here is not working since don't have the client side files as well. Anyway. Core Side: ### Eclipse Workspace Patch 1.0 #P L2jFrozen_GameServer Index: 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("LSStackable", "False")); + BOG_STACKABLE = Boolean.parseBoolean(L2JFrozenSettings.getProperty("BOGStackable", "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 gemstones Index: 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 i copy the code into l2frozen-core.java and edit it as u did .but still after i use a lifestone(55) or bog(55) all of them 55 both dissappeared .i have also edit ls in navicat to be stackable Edited March 23, 2020 by scraw
scraw Posted March 23, 2020 Posted March 23, 2020 On 3/18/2016 at 11:42 PM, SQL Developer said: Thanks for that mate is a ondate guide with client and core edits isnt work for me.. in-game i have 100 ls like ~> lifestone (100) but when i use 1 for augment all of them dissappeared!
Gazlynns Posted August 19, 2020 Posted August 19, 2020 I have a problem with stackable BOG. With 1 bog i can enchant all skills, and bog does not disappear. Help.
expll0 Posted August 19, 2020 Posted August 19, 2020 if you addapt code, last thing to do is change ls lines in system etcitemgrp
Gazlynns Posted August 19, 2020 Posted August 19, 2020 4 minutes ago, expll0 said: if you addapt code, last thing to do is change ls lines in system etcitemgrp with ls and scrolls ok, but with bog no. etcitemgrp and navicate already edited.
Gazlynns Posted August 19, 2020 Posted August 19, 2020 (edited) Not working your'fix' in private message for etcitemgrp Edited August 19, 2020 by Gazlynns
Gazlynns Posted August 20, 2020 Posted August 20, 2020 Fixed. if (Config.BOG_STACKABLE) player.destroyItem("Consume", spbId, 1, trainer, true); else player.destroyItem("Consume", spb, trainer, true); Change to >>>>> if (Config.BOG_STACKABLE) player.destroyItem("Consume", spb.getObjectId(), 1, trainer, true); else player.destroyItem("Consume", spb, trainer, true); 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now