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

    • Hello, after changing the motherboard and installing all the drivers, my game no longer starts. What should I do? Is there any framework missing? Error
    • Dear friends, we would like to present the new products we have recently added to our store. Available for purchase right now: ➡ Instagram Aged Meta-Verified Account with Active Blue Checkmark | Subscription already paid for 1 month in advance + account is ID-verified | Price from: $69 ➡ Example: https://www.instagram.com/rizkyaryaanugraha7/ ➡ Facebook Aged Meta-Verified Account with Active Blue Checkmark | Subscription already paid for 1 month in advance + account is ID-verified | Price from: $69 ➡ Example: https://www.facebook.com/profile.php?id=61556579278469 Key features: ➡ All accounts range from 2010 to 2023 (Instagram accounts usually up to 2020) ➡ Accounts come with full access to email (Rambler, Firstmail, Gmail), login, and password ➡ Facebook accounts also come with active Cookies (in JSON format) ➡ It is prohibited to change the nickname or avatar after purchase — otherwise, you risk losing the blue checkmark. It cannot be restored. We create accounts to order in any quantity within 24 hours (usually verification is faster). We can also verify your personal account with a blue badge (price and conditions discussed separately). Please contact us via the details below. Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp: 79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n ➡ Discord: socnet_support ➡ Discord Server: https://discord.gg/y9AStFFsrh ➡ ✉ Email: solomonbog@socnet.store You can also use these contacts to: — get consultation for bulk purchases — establish a partnership (current partners: https://socnet.bgng.io/partners ) — become our supplier Our online store assortment includes: ➡ Accounts: Telegram, Facebook, Reddit, Twitter (X), Instagram, YouTube, TikTok, Discord, VK, LinkedIn, GitHub, Snapchat, Gmail, email accounts (Outlook, Firstmail, Rambler, Onet, Gazeta, GMX, Yahoo, Proton, Web.de), Google Voice, Google Ads ➡ Premium subscriptions: Telegram Premium, Twitter Premium X, YouTube Premium, Spotify Premium, Netflix Premium, Discord Nitro, ChatGPT Plus/PRO, XBOX Game Pass ➡ Additional services: Telegram Stars, proxies (IPv4, IPv6, ISP, Mobile), VPN (Outline, WireGuard, others), VDS/RDP servers Promo code: AUGUST2025 (10% Discount) Payment: bank cards · cryptocurrency · other popular methods How to buy: ➡ Online Store: Click ➡ Telegram Bot: Click Other services: ➡ SMM Panel: Click - promotion for your social media accounts. Use our SMM Panel to boost: Facebook, Instagram, Telegram, Spotify, Soundcloud, YouTube, Reddit, Threads, Kick, Discord, LinkedIn, Likee, VK, Twitch, Kwai, Website traffic, TikTok, Trust Pilot, Apple Music, Tripadvisor, Snapchat, and other digital platforms. Get $1 for your first SMM Panel trial: Just create a ticket with the subject “Get Trial Bonus” on our website (Support) Loyal customers get additional discounts and promo codes! SocNet — digital goods and premium subscriptions store  
    • Dear friends, we would like to present the new products we have recently added to our store. Available for purchase right now: ➡ Instagram Aged Meta-Verified Account with Active Blue Checkmark | Subscription already paid for 1 month in advance + account is ID-verified | Price from: $69 ➡ Example: https://www.instagram.com/rizkyaryaanugraha7/ ➡ Facebook Aged Meta-Verified Account with Active Blue Checkmark | Subscription already paid for 1 month in advance + account is ID-verified | Price from: $69 ➡ Example: https://www.facebook.com/profile.php?id=61556579278469 Key features: ➡ All accounts range from 2010 to 2023 (Instagram accounts usually up to 2020) ➡ Accounts come with full access to email (Rambler, Firstmail, Gmail), login, and password ➡ Facebook accounts also come with active Cookies (in JSON format) ➡ It is prohibited to change the nickname or avatar after purchase — otherwise, you risk losing the blue checkmark. It cannot be restored. We create accounts to order in any quantity within 24 hours (usually verification is faster). We can also verify your personal account with a blue badge (price and conditions discussed separately). Please contact us via the details below. Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp: 79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n ➡ Discord: socnet_support ➡ Discord Server: https://discord.gg/y9AStFFsrh ➡ ✉ Email: solomonbog@socnet.store You can also use these contacts to: — get consultation for bulk purchases — establish a partnership (current partners: https://socnet.bgng.io/partners ) — become our supplier Our online store assortment includes: ➡ Accounts: Telegram, Facebook, Reddit, Twitter (X), Instagram, YouTube, TikTok, Discord, VK, LinkedIn, GitHub, Snapchat, Gmail, email accounts (Outlook, Firstmail, Rambler, Onet, Gazeta, GMX, Yahoo, Proton, Web.de), Google Voice, Google Ads ➡ Premium subscriptions: Telegram Premium, Twitter Premium X, YouTube Premium, Spotify Premium, Netflix Premium, Discord Nitro, ChatGPT Plus/PRO, XBOX Game Pass ➡ Additional services: Telegram Stars, proxies (IPv4, IPv6, ISP, Mobile), VPN (Outline, WireGuard, others), VDS/RDP servers Promo code: AUGUST2025 (10% Discount) Payment: bank cards · cryptocurrency · other popular methods How to buy: ➡ Online Store: Click ➡ Telegram Bot: Click Other services: ➡ SMM Panel: Click - promotion for your social media accounts. Use our SMM Panel to boost: Facebook, Instagram, Telegram, Spotify, Soundcloud, YouTube, Reddit, Threads, Kick, Discord, LinkedIn, Likee, VK, Twitch, Kwai, Website traffic, TikTok, Trust Pilot, Apple Music, Tripadvisor, Snapchat, and other digital platforms. Get $1 for your first SMM Panel trial: Just create a ticket with the subject “Get Trial Bonus” on our website (Support) Loyal customers get additional discounts and promo codes! SocNet — digital goods and premium subscriptions store
  • 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