Jump to content
  • 0

Tradable Augmented Items


Question

8 answers to this question

Recommended Posts

  • 0
Posted
8 hours ago, KejbL said:

need edit client side >>> interface.

 

 

Can someone give me more info? which file do i have to edit in interface and which in source? 

  • 0
Posted
24 minutes ago, Eleven said:

 

Can someone give me more info? which file do i have to edit in interface and which in source? 

If you read the replies on the topic he posted for you there's all the info you need to do that.

  • 0
Posted

I managed to do it so i can see augments in trade in my inventory (TradeStart). at the rest packets im not able to do it. Also i think i need to add something in Tradelist. Im using aCis 401 and im still newbie so any help will be very helpfull. 

  • 0
Posted

Guys can someone guide me on this? this is the packet Tradestart and its working perfect:

 

package net.sf.l2j.gameserver.network.serverpackets;

import net.sf.l2j.gameserver.model.actor.Player;
import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
import net.sf.l2j.gameserver.model.item.kind.Item;
import net.sf.l2j.gameserver.model.trade.TradeList;

public class TradeStart extends L2GameServerPacket
{
    private final ItemInstance[] _items;
    private final TradeList _tradeList;
    
    public TradeStart(Player player)
    {
        _items = player.getInventory().getAvailableItems(true, false, false);
        _tradeList = player.getActiveTradeList();
    }
    
    @Override
    protected final void writeImpl()
    {
        if (_tradeList == null || _tradeList.getPartner() == null)
            return;
        
        writeC(0x1E);
        writeD(_tradeList.getPartner().getObjectId());
        writeH(_items.length);
        
        for (ItemInstance temp : _items)
        {
            final Item item = temp.getItem();
            
            writeH(item.getType1());
            writeD(temp.getObjectId());
            writeD(temp.getItemId());
            writeD(temp.getCount());
            writeH(item.getType2());
            int _augorg = 0;
            int _aug = 0;
            int _aug2 = 0;
            int _aug3 = 0;
            if (temp.isAugmented()) 
            {
                _augorg = temp.getAugmentation().getId();    
                _aug = _augorg>>16;
                _aug2 = _aug;
                _aug3 = _augorg-(_aug<<16);
            }                
                writeH(_aug2);
                writeD(item.getBodyPart());
                writeH(temp.getEnchantLevel());
                writeH(0x00);
                writeH(_aug3);
        }
    }
}

 

How can i do the same on TradeOwnAdd ? Check how it is bellow:

 

package net.sf.l2j.gameserver.network.serverpackets;

import net.sf.l2j.gameserver.model.trade.TradeItem;

public class TradeOwnAdd extends L2GameServerPacket
{
    private final TradeItem _item;
    
    public TradeOwnAdd(TradeItem item)
    {
        _item = item;
    }
    
    @Override
    protected final void writeImpl()
    {
        writeC(0x20);
        
        writeH(1); // item count
        
        writeH(_item.getItem().getType1());
        writeD(_item.getObjectId());
        writeD(_item.getItem().getItemId());
        writeD(_item.getCount());
        writeH(_item.getItem().getType2());
        writeH(0x00); // ?
        
        writeD(_item.getItem().getBodyPart());
        writeH(_item.getEnchant());
        writeH(0x00); // ?
        writeH(0x00);
    }
}

Guest
This topic is now closed to further replies.


  • Posts

    • Good luck with your project!
    • Hola Fissban , che queria preguntarte algo estoy tratando de hacer que el testserver ande pro que cuando logeo y voy a elejir el servidor no aparece y he estado con la ia incluso buscando que puede ser pero no e logrado decifrarlo me darias una mano o alguien ?  
    • The Return of L2Elixir – A Legacy Reborn in 2025 Read more features: https://l2elixir.org/features/ It’s time to relive the magic. Many of you remember L2Elixir, first launched in 2008 – a server that brought players together, created friendships, rivalries, and unforgettable memories. For two+ incredible years, until its closure in 2010, Elixir was more than just a server… it was home. In 2018, a fake project borrowed the name and damaged that legacy, but the true memories of L2Elixir never died. Today, in 2025, we are proud to announce that a new dedicated team has taken up the mantle to bring L2Elixir back to life – with respect for the past and a fresh vision for the future.   What to Expect We’re not here to be “just another server.” Our mission is to bring back nostalgia with innovation, offering a unique progression experience: Interlude-Like start, capturing that classic old-school feeling. A natural evolution into Gracia Final. Followed by Gracia Epilogue, keeping the journey alive without losing balance. This is not a copy-paste server – it’s a carefully crafted world designed to honor the spirit of Lineage II while introducing fresh ideas to keep the gameplay alive and rewarding. Why L2Elixir? A balanced environment where community comes first. A project built with passion, not profit. A server that values longevity, fairness, and nostalgia.   📅 Launch Date & Details Closed Beta: Online. Open Beta & Rewards: November 15 & 21:00 UTC +2 Launch: November 28 & 21:00 UTC +2   🔗 Join the Community Be part of history once again. Follow our Discord, join the discussion, and prepare to step back into the world where legends were made.   https://l2elixir.org/ https://discord.gg/5ydPHvhbxs L2Elixir 2025 – Honoring the Past. Building the Future.
    • 10-24-2025 - OUR TOPIC IS RELEVANT! CONTACT US BY THE CONTACTS BELOW
    • Can someone decompile in classes this LineageSkilleffect.u ? I am willing to pay if needed,  protocol god any. https://wormhole.app/BEj0pr#osVXtnL9Q-AmmVmxOcEZfw found, ty
  • 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