Jump to content

Recommended Posts

Posted

Guys I need something for interlude server.Lifestones and Scrolls stuck in inventory.I try to find but I didn't find anything.

What you mean??

Posted

L2JFrozen got already option about scrolls stuckable, here is a code for ls and bogs as well

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

and also you will need client side edits

BoGs etcitemgrp

2	6622	0	0	2	5	0	dropitems.drop_sack_m00			dropitemstex.drop_sack_t00			icon.etc_codex_of_giant_i00					0	10	18	0	0	1		1		ItemSound.itemdrop_sack		2	0	0

LS etcitemgrp

2	8723	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_general_t00			icon.etc_mineral_general_i00					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8724	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_general_t00			icon.etc_mineral_general_i00					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8725	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_general_t00			icon.etc_mineral_general_i00					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8726	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_general_t00			icon.etc_mineral_general_i00					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8727	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_general_t00			icon.etc_mineral_general_i01					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8728	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_general_t00			icon.etc_mineral_general_i01					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8729	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_general_t00			icon.etc_mineral_general_i02					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8730	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_general_t00			icon.etc_mineral_general_i02					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8731	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_general_t00			icon.etc_mineral_general_i02					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8732	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_general_t00			icon.etc_mineral_general_i03					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8733	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_special_t00			icon.etc_mineral_special_i00					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8734	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_special_t00			icon.etc_mineral_special_i00					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8735	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_special_t00			icon.etc_mineral_special_i00					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8736	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_special_t00			icon.etc_mineral_special_i00					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8737	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_special_t00			icon.etc_mineral_special_i01					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8738	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_special_t00			icon.etc_mineral_special_i01					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8739	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_special_t00			icon.etc_mineral_special_i02					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8740	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_special_t00			icon.etc_mineral_special_i02					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8741	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_special_t00			icon.etc_mineral_special_i02					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8742	0	3	3	3	0	dropitems.drop_mineral_general_m00			dropitemstex.drop_mineral_special_t00			icon.etc_mineral_special_i03					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8743	0	3	3	3	0	dropitems.drop_mineral_rare_m00			dropitemstex.drop_mineral_rare_t00			icon.etc_mineral_rare_i00					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8744	0	3	3	3	0	dropitems.drop_mineral_rare_m00			dropitemstex.drop_mineral_rare_t00			icon.etc_mineral_rare_i00					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8745	0	3	3	3	0	dropitems.drop_mineral_rare_m00			dropitemstex.drop_mineral_rare_t00			icon.etc_mineral_rare_i00					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8746	0	3	3	3	0	dropitems.drop_mineral_rare_m00			dropitemstex.drop_mineral_rare_t00			icon.etc_mineral_rare_i00					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8747	0	3	3	3	0	dropitems.drop_mineral_rare_m00			dropitemstex.drop_mineral_rare_t00			icon.etc_mineral_rare_i01					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8748	0	3	3	3	0	dropitems.drop_mineral_rare_m00			dropitemstex.drop_mineral_rare_t00			icon.etc_mineral_rare_i01					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8749	0	3	3	3	0	dropitems.drop_mineral_rare_m00			dropitemstex.drop_mineral_rare_t00			icon.etc_mineral_rare_i02					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8750	0	3	3	3	0	dropitems.drop_mineral_rare_m00			dropitemstex.drop_mineral_rare_t00			icon.etc_mineral_rare_i02					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8751	0	3	3	3	0	dropitems.drop_mineral_rare_m00			dropitemstex.drop_mineral_rare_t00			icon.etc_mineral_rare_i02					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8752	0	3	3	3	0	dropitems.drop_mineral_rare_m00			dropitemstex.drop_mineral_rare_t00			icon.etc_mineral_rare_i03					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8753	0	3	3	3	0	dropitems.drop_mineral_unique_m00			dropitemstex.drop_mineral_unique_t00			icon.etc_mineral_unique_i00					0	2	53	0	1769984	1		1		ItemSound.itemdrop_mold		2	0	0
2	8754	0	3	3	3	0	dropitems.drop_mineral_unique_m00			dropitemstex.drop_mineral_unique_t00			icon.etc_mineral_unique_i00					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8755	0	3	3	3	0	dropitems.drop_mineral_unique_m00			dropitemstex.drop_mineral_unique_t00			icon.etc_mineral_unique_i00					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8756	0	3	3	3	0	dropitems.drop_mineral_unique_m00			dropitemstex.drop_mineral_unique_t00			icon.etc_mineral_unique_i00					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8757	0	3	3	3	0	dropitems.drop_mineral_unique_m00			dropitemstex.drop_mineral_unique_t00			icon.etc_mineral_unique_i01					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8758	0	3	3	3	0	dropitems.drop_mineral_unique_m00			dropitemstex.drop_mineral_unique_t00			icon.etc_mineral_unique_i01					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8759	0	3	3	3	0	dropitems.drop_mineral_unique_m00			dropitemstex.drop_mineral_unique_t00			icon.etc_mineral_unique_i02					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8760	0	3	3	3	0	dropitems.drop_mineral_unique_m00			dropitemstex.drop_mineral_unique_t00			icon.etc_mineral_unique_i02					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8761	0	3	3	3	0	dropitems.drop_mineral_unique_m00			dropitemstex.drop_mineral_unique_t00			icon.etc_mineral_unique_i02					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0
2	8762	0	3	3	3	0	dropitems.drop_mineral_unique_m00			dropitemstex.drop_mineral_unique_t00			icon.etc_mineral_unique_i03					0	2	53	0	0	1		1		ItemSound.itemdrop_mold		2	0	0

Scrolls etcitemgrp

2	729	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_weapon_i04					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	730	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_armor_i04					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	731	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_weapon_i01					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	1	0
2	732	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_armor_i01					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	1	0

2	947	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_weapon_i03					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	948	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_armor_i03					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	949	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_weapon_i01					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	950	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_armor_i01					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	951	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_weapon_i02					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	952	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_armor_i02					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	953	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_weapon_i01					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	954	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_armor_i01					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	955	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_weapon_i01					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	956	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_armor_i01					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	957	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_weapon_i01					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	958	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_armor_i01					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	959	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_weapon_i05					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	960	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_armor_i05					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	961	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_weapon_i01					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	962	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_scroll_of_enchant_armor_i01					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0

2	6569	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_blessed_scrl_of_ench_wp_a_i04					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	6570	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_blessed_scrl_of_ench_am_a_i04					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	6571	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_blessed_scrl_of_ench_wp_b_i03					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	6572	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_blessed_scrl_of_ench_am_b_i03					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	6573	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_blessed_scrl_of_ench_wp_c_i02					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	6574	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_blessed_scrl_of_ench_am_c_i02					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	6575	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_blessed_scrl_of_ench_wp_d_i01					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	6576	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_blessed_scrl_of_ench_am_d_i01					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	6577	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_blessed_scrl_of_ench_wp_s_i05					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0
2	6578	0	3	6	3	0	dropitems.drop_scroll_m00			dropitemstex.drop_scroll_t00			icon.etc_blessed_scrl_of_ench_am_s_i05					0	120	18	0	0	1		1		ItemSound.itemdrop_scroll		2	0	0

Posted

I mean that if I have 10 scrolls...I want to see in inventory 1 scroll and when I go my click on scroll to said Scrolls(10)

Actually, you need zero core edit.

 

Just client and data (in your case, database).

Posted (edited)

Make To all Your Scrolls Like It.....Add 'stackable', And Then Make Change On EtcitemGrp Like Psyancy have posted

 

Before:

 

('6572','Blessed Scroll: Enchant Armor (Grade B)','false','scroll','120','normal','none','-1','250000','0','true','true','true','true','C4Item','castle_guard')

 

Then:

('6572','Blessed Scroll: Enchant Armor (Grade B)','false','scroll','120','normal','stackable','none','-1','250000','0','true','true','true','true','C4Item','castle_guard')
Edited by Reborn12
Posted

With out compile? ;)

if you use acis you can add the isStackable=true property on xml

on frozen theres a config for it also you need to change the stacktype to stackable in db

 

here we go... another 3 day server LOL

Posted

if you use acis you can add the isStackable=true property on xml

on frozen theres a config for it also you need to change the stacktype to stackable in db

 

here we go... another 3 day server LOL

with a shared (and outdated i guess) precompiled pack ;p

Guest
This topic is now closed to further replies.
×
×
  • Create New...