Jump to content

Question

7 answers to this question

Recommended Posts

  • 0
Posted

File mou gia na kaneis  ayto to pragma thelei  java code...

mipws 3ereis pio einai to java code h an 8a mporouses na m to peis?

Euxaristw pados pou apadises

  • 0
Posted

8a h8ela na  ftia3w ena npc pou na poulaei itemes ++  gia diafora items,

den 3erw pws na 3ekinisw.

An mporei  kapios na me help 8a tou hmoun ebgomon

Euxaristw

 

Java code 8es to exw psaksi k egw 8eli java code epeza kai se server p to ixe afto kai m ixe pi o admin oti ine ka8ara java o server itan o l2pride
  • 0
Posted

Java code 8es to exw psaksi k egw 8eli java code epeza kai se server p to ixe afto kai m ixe pi o admin oti ine ka8ara java o server itan o l2pride

 

To code pou 8a mporousa na to vro to xriazomai...

  • 0
Posted

oriste File mou

 

Index: /trunk/L2C_TestGameserver/java/com/l2jserver/gameserver/network/serverpackets/MultiSellList.java

===================================================================

--- /trunk/L2C_TestGameserver/java/com/l2jserver/gameserver/network/serverpackets/MultiSellList.java (revision 24)

+++ /trunk/L2C_TestGameserver/java/com/l2jserver/gameserver/network/serverpackets/MultiSellList.java (revision 71)

@@ -119,5 +119,5 @@

                else

                {

-                   writeH(0x00); // enchant level

+                   writeH(ing.getEnchantLevel()); // enchant level

                    writeD(0x00); // augment id

                    writeD(0x00); // mana

@@ -154,5 +154,5 @@

                else

                {

-                   writeH(0x00); // enchant level

+                   writeH(ing.getEnchantLevel()); // enchant level

                    writeD(0x00); // augment id

                    writeD(0x00); // mana

Index: /trunk/L2C_TestGameserver/java/com/l2jserver/gameserver/model/multisell/PreparedEntry.java

===================================================================

--- /trunk/L2C_TestGameserver/java/com/l2jserver/gameserver/model/multisell/PreparedEntry.java (revision 24)

+++ /trunk/L2C_TestGameserver/java/com/l2jserver/gameserver/model/multisell/PreparedEntry.java (revision 71)

@@ -72,5 +72,5 @@

        adenaAmount += _taxAmount; // do not forget tax

        if (adenaAmount > 0)

-           _ingredients.add(new Ingredient(ADENA_ID, adenaAmount, false, false));

+           _ingredients.add(new Ingredient(ADENA_ID, adenaAmount,0, false, false));

        

        // now copy products

Index: /trunk/L2C_TestGameserver/java/com/l2jserver/gameserver/model/multisell/Ingredient.java

===================================================================

--- /trunk/L2C_TestGameserver/java/com/l2jserver/gameserver/model/multisell/Ingredient.java (revision 24)

+++ /trunk/L2C_TestGameserver/java/com/l2jserver/gameserver/model/multisell/Ingredient.java (revision 71)

@@ -30,4 +30,5 @@

    private int _itemId;

    private long _itemCount;

+    private int _EnchantmentLevel;

    private boolean _isTaxIngredient, _maintainIngredient;

    

@@ -35,8 +36,9 @@

    private ItemInfo _itemInfo = null;

    

-   public Ingredient(int itemId, long itemCount, boolean isTaxIngredient, boolean maintainIngredient)

+   public Ingredient(int itemId, long itemCount,int EnchantmentLevel, boolean isTaxIngredient, boolean maintainIngredient)

    {

        _itemId = itemId;

        _itemCount = itemCount;

+       _EnchantmentLevel = EnchantmentLevel;

        _isTaxIngredient = isTaxIngredient;

        _maintainIngredient = maintainIngredient;

@@ -80,5 +82,5 @@

    public final int getEnchantLevel()

    {

-       return _itemInfo != null ? _itemInfo.getEnchantLevel() : 0;

+            return _itemInfo == null?_EnchantmentLevel:_itemInfo.getEnchantLevel();

    }

    

Index: /trunk/L2C_TestGameserver/java/com/l2jserver/gameserver/datatables/MultiSell.java

===================================================================

--- /trunk/L2C_TestGameserver/java/com/l2jserver/gameserver/datatables/MultiSell.java (revision 52)

+++ /trunk/L2C_TestGameserver/java/com/l2jserver/gameserver/datatables/MultiSell.java (revision 71)

@@ -270,4 +270,8 @@

            if ("ingredient".equalsIgnoreCase(n.getNodeName()))

            {

+               int enchantmentLevel = 0;

+               if (n.getAttributes().getNamedItem("enchantmentLevel") != null)

+               enchantmentLevel = Integer.parseInt(n.getAttributes().getNamedItem("enchantmentLevel").getNodeValue());

+               

                int id = Integer.parseInt(n.getAttributes().getNamedItem("id").getNodeValue());

                long count = Long.parseLong(n.getAttributes().getNamedItem("count").getNodeValue());

@@ -286,12 +290,16 @@

                    mantainIngredient = false;

                

-               entry.addIngredient(new Ingredient(id, count, isTaxIngredient, mantainIngredient));

+               entry.addIngredient(new Ingredient(id, count, enchantmentLevel, isTaxIngredient, mantainIngredient));

            }

            else if ("production".equalsIgnoreCase(n.getNodeName()))

            {

+               int enchantmentLevel = 0;

+               if (n.getAttributes().getNamedItem("enchantmentLevel") != null)

+               enchantmentLevel = Integer.parseInt(n.getAttributes().getNamedItem("enchantmentLevel").getNodeValue());

+               

                int id = Integer.parseInt(n.getAttributes().getNamedItem("id").getNodeValue());

                long count = Long.parseLong(n.getAttributes().getNamedItem("count").getNodeValue());

                

-               entry.addProduct(new Ingredient(id, count, false, false));

+               entry.addProduct(new Ingredient(id, count, enchantmentLevel, false, false));

            }

        }


 

<?xml version='1.0' encoding='utf-8'?>



<!-- © 2011 by Sirpaypi -->



<list maintainEnchantment="true">



  <!-- Moirai Necklace -->

  <item id="1">

  <ingredient id="50000" count="120"/>

  <production id="15725" count="1" enchantmentLevel="16"/>

  </item>



</list>

 

l2jserver Share

 

Guest
This topic is now closed to further replies.


  • Posts

    • Hello everyone, we are one of the top gaming currency stores. We work exclusively with top projects. If you are interested in anything like Adena, Coins, Equip, write to us Discord - pchelacoin Telegram - https://t.me/ipchelacoin BOHPTS, KETRAWARS, EURO-PVP, L2REBORN, E-GLOBAL, LA2DREAM TOP PRICE !!!!!!!
    • L2Elixir – Patch 4 Is Live!   We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.    ⚙️ General Enabled Class Change service (same class type only) ALT + B → Services → Character Development Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!    🎒 Items Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior) Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item) Added Dualsword Craft Stamp into Milestone Exchange list    🧙 Skills Fixed Banish Undead lethal chance Hot Springs Malaria and similar effects now level up faster while being attacked
    • thats new SEO level tricks you know nothing of noob - bottom line: exposed.
    • Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc. That's his mail address evgesha.nrnr@gmail.com , stay away!   @Atom @Celestine
  • 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