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

    • Dear friends, right now we are holding a grand competition with a prize fund of more than $ 1000 in our stores https://socnet.store , telegram store: https://socnet.shop and SMM panel: https://socnet.pro There are more than 50 prize places in our competition, each lucky person can take one of the places. Important condition: you must make a purchase at any time before June 1, 2025. The more purchases you make - the more chances you have to win the main prize in the community of $ 300! ➡ Our Online Shop: socnet.store  ➡ Our SMM-Boosting Panel: socnet.pro  ➡ Telegram Shop Bot: socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: 79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • Dear friends, right now we are holding a grand competition with a prize fund of more than $ 1000 in our stores https://socnet.store , telegram store: https://socnet.shop and SMM panel: https://socnet.pro There are more than 50 prize places in our competition, each lucky person can take one of the places. Important condition: you must make a purchase at any time before June 1, 2025. The more purchases you make - the more chances you have to win the main prize in the community of $ 300! ➡ Our Online Shop: socnet.store  ➡ Our SMM-Boosting Panel: socnet.pro  ➡ Telegram Shop Bot: socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: 79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • REBORN ETERNAL IL x10 WTS  1gb 8e (a lot in stock) DR set +6 180e Frintezza+6 200e Zaken+6 200e AQ+6 200e You must go first or Pufa middleman service
    • There's many reasons why it would be more NO than YES : Using NCSoft assets is a death wish, they can lawyer any LU3/Unity if they wanted, since it's a plain steal of intellectual property. It's an hobby, as you said it, and it's not specially about money. Money is a way to filter idiots/resellers, nothing more. It's really about trying to replicate old content and optimize it which I find it fun. I just align with the basic idea than an emulator emulates. When you launch Project64 and SuperMario 64, you don't expect to get something more than 120 stars and Bowser boss in the end - which should have been L2J project to begin with Even if I played a lot with TESCS from Morrowind, back in time, it's not enough to handle current engines, and I'm too lazy to learn Unity/Unreal Engine. Moreover, it would mean buying assets. While doing it alone would be a fail, coupling to L2J / L2 community would still be shitty (since the majority is RU/BR) ; people is only about fame/glory/reselling shit on back of others. Opening to others, the project would be leaked day 1, rebranded and resold. MMO genre is basically dead, and that's not a reboot of any game (l2/wow classic :D) which will turn the tide. Regarding L2 or an remastered version of it, you can obviously blatantly copy-cat it (as Propnight did for Dead by daylight).   All frenchies aren't supposed to do Expedition 33 :).
    • 190euro until last month, don't miss it.
  • 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