Monkey D. Luffy Posted December 14, 2014 Posted December 14, 2014 Hello guys this code is for Stackable Lifestone & Books for more space on Inventory (Nothing special i found this code and i share for help some people) Let's start ### Eclipse Workspace Patch 1.0 #P L2jFrozen_GameServer Index: head-src/com/l2jfrozen/Config.java =================================================================== --- head-src/com/l2jfrozen/Config.java (revision 1113) +++ head-src/com/l2jfrozen/Config.java (working copy) @@ -2392,6 +2392,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; @@ -2518,6 +2520,8 @@ ALT_PLAYER_PROTECTION_LEVEL = Integer.parseInt(L2JFrozenSettings.getProperty("AltPlayerProtectionLevel", "0")); MONSTER_RETURN_DELAY = Integer.parseInt(L2JFrozenSettings.getProperty("MonsterReturnDelay", "1200")); 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")); ### Eclipse Workspace Patch 1.0 #P L2jFrozen_GameServer Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestExEnchantSkill.java =================================================================== --- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestExEnchantSkill.java (revision 1113) +++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestExEnchantSkill.java (working copy) @@ -136,7 +136,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 ### Eclipse Workspace Patch 1.0 #P L2jFrozen_GameServer Index: config/functions/l2jfrozen.properties =================================================================== --- config/functions/l2jfrozen.properties (revision 1113) +++ config/functions/l2jfrozen.properties (working copy) @@ -187,8 +187,12 @@ # Default: 1200 MonsterReturnDelay = 1200 -# Scroll is Stackable? (default = false) +# ------------------------------------------- +# Stackable Items Config (default = false) +# ------------------------------------------- ScrollStackable = false +LSStackable = false +BOGStackable = false # ------------------------------------------- # Clan Leader Color Config -
StinkyMadness Posted December 15, 2014 Posted December 15, 2014 GJ Monkey D. Luffy But i think you have to post and ( Client Files )
Monkey D. Luffy Posted December 15, 2014 Author Posted December 15, 2014 GJ Monkey D. Luffy But i think you have to post and ( Client Files ) Hmmm i have not check...I check here and i not found..Anyway
Insane (⌐■_■) Posted December 16, 2014 Posted December 16, 2014 is this a true copy paste of the code from l2jfrozen forum ? :O and please .... watch what are you going to say .... because i have proves for what i am saying :)
Tessa Posted December 17, 2014 Posted December 17, 2014 is this a true copy paste of the code from l2jfrozen forum ? :o and please .... watch what are you going to say .... because i have proves for what i am saying :) I think he don't claim to be author of this code: (Nothing special i found this code and i share for help some people)
Monkey D. Luffy Posted December 17, 2014 Author Posted December 17, 2014 I think he don't claim to be author of this code: (Nothing special i found this code and i share for help some people) Yea thnks ;) I say " I found this code for help newbies"
Monkey D. Luffy Posted December 17, 2014 Author Posted December 17, 2014 omg such amazing code, wow, yeah, cool Come on my friend if you like deride you can ignore this code...
iSparky Posted January 6, 2015 Posted January 6, 2015 Maybe you forgot this: --- 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
Tessa Posted January 6, 2015 Posted January 6, 2015 Lol, you should check your code... LS_STACKABLE should take LSStackable, BOG_STACKABLE should take BOGStackable and not vice versa... :lol:
Nosti21 Posted January 28, 2015 Posted January 28, 2015 can anyone tell me if this works? and maybe want to edit and some client files??? can anyone add and the scrolls?? crystal blessed and normal?? its very helpfully..
HaddWik Posted January 30, 2015 Posted January 30, 2015 The code is wrong. I had a user that requested me to fix it because it was not consuming the BOGS. use destroyItemById instead destroyItem.
killer666 Posted May 9, 2015 Posted May 9, 2015 Every stackable item needs and Client side changes. #etcitem.grp
s0k1n Posted May 18, 2015 Posted May 18, 2015 (edited) I do it ! In the game the LS and the BOG are stackable (x2-3-4) ! But when you use it the item count for 1 ! Why? How can i fix it? OK I fix it! :) Edited May 18, 2015 by s0k1n
Recommended Posts