Jump to content
  • 0

Question

Posted

If I do not mind, I'd like to ask if you can help me with anything. It's about Encahnt Items in Gm shop. How i can edit Multisell to make that?

i appreciate any help...thanks. And please...do explained. Thanks again

1 answer to this question

Recommended Posts

  • 0
Posted (edited)

ti ennoeis?prepei na perasis code sto server sou

 

 

 

1.Index: /trunk/Gameserver/java/com/l2jserver/gameserver/network/serverpackets/MultiSellList.java
2.===================================================================
3.--- /trunk/Gameserver/java/com/l2jserver/gameserver/network/serverpackets/MultiSellList.java (revision 24)
4.+++ /trunk/Gameserver/java/com/l2jserver/gameserver/network/serverpackets/MultiSellList.java (revision 71)
5.@@ -119,5 +119,5 @@
6.                else
7.                {
8.-                   writeH(0x00); // enchant level
9.+                   writeH(ing.getEnchantLevel()); // enchant level
10.                    writeD(0x00); // augment id
11.                    writeD(0x00); // mana
12.@@ -154,5 +154,5 @@
13.                else
14.                {
15.-                   writeH(0x00); // enchant level
16.+                   writeH(ing.getEnchantLevel()); // enchant level
17.                    writeD(0x00); // augment id
18.                    writeD(0x00); // mana
19.Index: /trunk/Gameserver/java/com/l2jserver/gameserver/model/multisell/PreparedEntry.java
20.===================================================================
21.--- /trunk/Gameserver/java/com/l2jserver/gameserver/model/multisell/PreparedEntry.java (revision 24)
22.+++ /trunk/Gameserver/java/com/l2jserver/gameserver/model/multisell/PreparedEntry.java (revision 71)
23.@@ -72,5 +72,5 @@
24.        adenaAmount += _taxAmount; // do not forget tax
25.        if (adenaAmount > 0)
26.-           _ingredients.add(new Ingredient(ADENA_ID, adenaAmount, false, false));
27.+           _ingredients.add(new Ingredient(ADENA_ID, adenaAmount,0, false, false));
28.        
29.        // now copy products
30.Index: /trunk/Gameserver/java/com/l2jserver/gameserver/model/multisell/Ingredient.java
31.===================================================================
32.--- /trunk/Gameserver/java/com/l2jserver/gameserver/model/multisell/Ingredient.java (revision 24)
33.+++ /trunk/Gameserver/java/com/l2jserver/gameserver/model/multisell/Ingredient.java (revision 71)
34.@@ -30,4 +30,5 @@
35.    private int _itemId;
36.    private long _itemCount;
37.+    private int _EnchantmentLevel;
38.    private boolean _isTaxIngredient, _maintainIngredient;
39.    
40.@@ -35,8 +36,9 @@
41.    private ItemInfo _itemInfo = null;
42.    
43.-   public Ingredient(int itemId, long itemCount, boolean isTaxIngredient, boolean maintainIngredient)
44.+   public Ingredient(int itemId, long itemCount,int EnchantmentLevel, boolean isTaxIngredient, boolean maintainIngredient)
45.    {
46.        _itemId = itemId;
47.        _itemCount = itemCount;
48.+       _EnchantmentLevel = EnchantmentLevel;
49.        _isTaxIngredient = isTaxIngredient;
50.        _maintainIngredient = maintainIngredient;
51.@@ -80,5 +82,5 @@
52.    public final int getEnchantLevel()
53.    {
54.-       return _itemInfo != null ? _itemInfo.getEnchantLevel() : 0;
55.+            return _itemInfo == null?_EnchantmentLevel:_itemInfo.getEnchantLevel();
56.    }
57.    
58.Index: /trunk/Gameserver/java/com/l2jserver/gameserver/datatables/MultiSell.java
59.===================================================================
60.--- /trunk/Gameserver/java/com/l2jserver/gameserver/datatables/MultiSell.java (revision 52)
61.+++ /trunk/Gameserver/java/com/l2jserver/gameserver/datatables/MultiSell.java (revision 71)
62.@@ -270,4 +270,8 @@
63.            if ("ingredient".equalsIgnoreCase(n.getNodeName()))
64.            {
65.+               int enchantmentLevel = 0;
66.+               if (n.getAttributes().getNamedItem("enchantmentLevel") != null)
67.+               enchantmentLevel = Integer.parseInt(n.getAttributes().getNamedItem("enchantmentLevel").getNodeValue());
68.+               
69.                int id = Integer.parseInt(n.getAttributes().getNamedItem("id").getNodeValue());
70.                long count = Long.parseLong(n.getAttributes().getNamedItem("count").getNodeValue());
71.@@ -286,12 +290,16 @@
72.                    mantainIngredient = false;
73.                
74.-               entry.addIngredient(new Ingredient(id, count, isTaxIngredient, mantainIngredient));
75.+               entry.addIngredient(new Ingredient(id, count, enchantmentLevel, isTaxIngredient, mantainIngredient));
76.            }
77.            else if ("production".equalsIgnoreCase(n.getNodeName()))
78.            {
79.+               int enchantmentLevel = 0;
80.+               if (n.getAttributes().getNamedItem("enchantmentLevel") != null)
81.+               enchantmentLevel = Integer.parseInt(n.getAttributes().getNamedItem("enchantmentLevel").getNodeValue());
82.+               
83.                int id = Integer.parseInt(n.getAttributes().getNamedItem("id").getNodeValue());
84.                long count = Long.parseLong(n.getAttributes().getNamedItem("count").getNodeValue());
85.                
86.-               entry.addProduct(new Ingredient(id, count, false, false));
87.+               entry.addProduct(new Ingredient(id, count, enchantmentLevel, false, false));
88.            }
89.        }
90.

 

 

1.<?xml version='1.0' encoding='utf-8'?>
2.
3.
4.<list maintainEnchantment="true">
5.
6.  
7.  <item id="1">
8.  <ingredient id="57" count="10"/>
9.  <production id="7874" count="1" enchantmentLevel="16"/>
10.  </item>
11.
12.</list>

Edited by AlexHack

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Grand Opening: April 11, 2026 Website: https://l2strive.com Discord: https://discord.gg/SsUARZpbkG   🛡️ Server Rates Strive is a High Five Mid-PvP/Craft Server  Experience (XP): x15 Skill Points (SP): x15 Adena: x10 Drop: x15 Spoil: x3 Safe Enchant: +3 Max Enchant: +16 ⚔️ Enhanced Boss Jewelry     ⚔️ Making Bosses Useful Again Let’s be real: usually, Core, Orfen, and Baylor are just placeholder bosses that nobody cares about. We’ve overhauled their jewelry to make them legit end-game gear. We’ve turned these into high-value targets for PvP—if you want these massive percentage boosts, you’re going to have to fight for them.   ⚔️ Enhanced Boss Jewelry   💍 Improved Ring of Core Base Stats: M.Def 48 | HP +445 | MP +21 Offensive: P. Atk +12% | M. Atk +12% Critical: Physical Critical Rate +14 | Magic Critical Rate +2 Utility: Skill Reuse Delay -10% | MP Consumption -5% 🛡️ Improved Earring of Orfen Base Stats: M.Def 71 | MP +31 Defensive: P. Def +15% | M. Def +15% Recovery: Vampiric Rage +4% | Healing Received +6% Resistances: Bleed / Poison / Root / Sleep +20% (Chance & Resistance) 💎 Baylor's Earring Base Stats: M.Def 71 | MP +31 Speed: Atk. Spd +5% | Casting Spd +5% Combat: MP Regeneration +5% Resistances: Stun / Paralyze +30% (Chance & Resistance) 🚀 Core Features Full & Enchanted Buffs: Enjoy 6-hour durations on all standard and enchanted buffs. Premium Buffs: Premium users benefit from extended 9-hour buff durations. 100% Free AutoFarm: Built-in system for seamless progression while away from your PC. Custom Shop: Professional and intuitive UI for all essential equipment and consumables. NPC Buffer: Full scheme support to get you battle-ready instantly. Stability: Dedicated high-performance hardware with professional Anti-DDoS protection.  
    • Hello,   im looking for c4 client developer that can fix some issues, missing icons etc. if you are l2off developer then even better.   its easy ones, fix few skill icons, item icon, easy money if someone has time. I guess its lack of files in my patch, but might be smth other   contact with me on discord: endART_#6190 @DumanisT @SkyLord @XManton @Fr3DBr @mjst @Sighed any ideas who could help me XD
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..