Jump to content

Recommended Posts

Posted

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 -
 

Posted

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)

  • 3 weeks later...
Posted

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
Posted

Lol, you should check your code...

LS_STACKABLE should take LSStackable, BOG_STACKABLE should take BOGStackable and not vice versa... :lol:

  • 3 weeks later...
Posted

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..

Posted

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.

  • 3 months later...
  • 2 weeks later...
Posted (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 by s0k1n
Guest
This topic is now closed to further replies.


  • Posts

    • Lol good joke.   If I'd be the one contacting yo then I'd say at least 50% in advance because you can basically just fuck off when things doesn't go your way, and then you as a developer just wasted days or even weeks of time with development.
    • "Just make your own game!" sounds simple until you’ve tried it. I did, with Epic Dragon World and learned the hard way that "open source" often means "free labor for resellers." The MIT license became a buffet for people to grab code, rebrand it and ghost the project. Even basic collaboration collapsed because everyone wanted their vision, not *a* vision. NCSoft’s lawyers aren’t theoretical. They’re a sword of Damocles. Even if you rebuild a client from scratch, if it feels like Lineage 2, they’ll come knocking. Ask the Chrono Trigger fangame corpses how that goes. MMOs are hospice care. The genre’s on life support, kept alive by whales and nostalgia. Look at Throne and Liberty, NCSoft’s own "successor" to L2, flopping harder than a 2004 PKer in ToI. Classic reboots (WoW, L2) are bandaids, not resurrections. This is the hobby. Optimizing old systems, reverse-engineering spaghetti code and preserving janky mechanics is the fun part. Monetizing it turns it into customer service hell. No thanks. Community? What community? The L2 scene is 90% resellers, 10% players who’ll quit the second they don’t get +16 on day one. Both asking how to install Java and why running the uncompiled server does not work.
    • Dear players, Open beta test for C3 begins today at 19:00 server time (GMT +2). 💰 All participants who find bugs during OBT will be rewarded with Coin of Luck (CoL): - 1 CoL for each staticmesh issue found — e.g., walking through textures, etc., - 2 CoL or more for server-side issues, depending on their severity., We strongly recommend reviewing the quest list - when switching to Chronicle 3, the total number of quests should match the number shown in the upper right corner of the window and correspond to the quest count from Chronicle 2. To log into the game, use the same data you use to access the Airin server. 📌 Download client: Google Drive
    • 🔥 Sale Alert! 🔥 Twitter Accounts with 50 Followers — now on SALE! Looking to launch a project or warm up your account base fast? We’ve got starter Twitter accounts with ~50 followers at a sweet price. 💰 Limited-time offer – while stock lasts! ✅ Organic-Looking ✅ Clean & Safe ✅ Perfect for boosting credibility 📦 Instant delivery
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock