Jump to content

Tradeable Augmented Items For Acis. Part 2


Recommended Posts

18 hours ago, arm4729 said:

Hey thank you for sharing your TradeWnd.uc !! I have tryed and got same results with blank space after <Augment Effects> , but i have changed

 

    itemInfo.RefineryOp2 = itemInfo.Blessed;
    itemInfo.RefineryOp1 = itemInfo.Damaged;

 

to

    itemInfo.RefineryOp2 = itemInfo.Damaged;
    itemInfo.RefineryOp1 = itemInfo.Blessed;

 

 

 

and managed to get it work but only showing ++ stats and not show what passive skill / active skill item has , this is getting weird 😃

 

unknown.png

Where is this text Maximum HP +80 comming from ? is some editable .dat file ?

 

You also need to change this packets, so you can see item augment when you add it to the trade

TradeOwnAdd
TradeItemUpdate
TradeOtherAdd


i have same issue with interface, but for some augments i can see skill for some other i cant

Безимени-1.png

Link to comment
Share on other sites

18 minutes ago, FeeLings said:

 

You also need to change this packets, so you can see item augment when you add it to the trade

TradeOwnAdd
TradeItemUpdate
TradeOtherAdd


i have same issue with interface, but for some augments i can see skill for some other i cant

Безимени-1.png

 

I see client side you found in me server interface 😄

You almost figure out how it work 😄 

Ok this is last part what u need:

download.png.b4fde3f866d766ff1e1411d5b3e1db11.png

Link to comment
Share on other sites

15 hours ago, wongerlt said:

 

I see client side you found in me server interface 😄

You almost figure out how it work 😄 

Ok this is last part what u need:

download.png.b4fde3f866d766ff1e1411d5b3e1db11.png

unknown.png

2+2=4 quick maths

Finally victory !!! Thank you sir , you are pure genius ! don't understand that maths you did there with the bits move left move right (16>>) , this was impossible without your tips.. thx 

will try to do same for private store sell next 😄

unknown.png?width=383&height=633

Edited by arm4729
Link to comment
Share on other sites

9 hours ago, arm4729 said:

unknown.png

2+2=4 quick maths

Finally victory !!! Thank you sir , you are pure genius ! don't understand that maths you did there with the bits move left move right (16>>) , this was impossible without your tips.. thx 

will try to do same for private store sell next 😄

unknown.png?width=383&height=633

 

yes for private store must work i think, there are 2 unused vars.

download.png

30 minutes ago, wongerlt said:

 

yes for private store must work i think, there are 2 unused vars.

download.png

first 0x00 - blessed, second 0x00 - damaged.

  • Thanks 1
Link to comment
Share on other sites

On 2/11/2022 at 9:15 PM, arm4729 said:

unknown.png

2+2=4 quick maths

Finally victory !!! Thank you sir , you are pure genius ! don't understand that maths you did there with the bits move left move right (16>>) , this was impossible without your tips.. thx 

will try to do same for private store sell next 😄

unknown.png?width=383&height=633

which package did you change?

Link to comment
Share on other sites

5 hours ago, Williams said:

which package did you change?

PrivateStoreListSell / PrivateStoreManageListSell / TradeItem / 

 

Does anyone know how to edit an already custom interface.u ? , and with edit i mean adding 2 lines to TradeWnd / PrivateStoreWnd ? Can someone decompile please this https://www.mediafire.com/file/fv9pnnp0v76m9ac/interface.u/file interface.u into .uc files ?

Edited by arm4729
Link to comment
Share on other sites

32 minutes ago, arm4729 said:

PrivateStoreListSell / PrivateStoreManageListSell / TradeItem

 

Does anyone know how to edit an already custom interface.u ? , and with edit i mean adding 2 lines to TradeWnd / PrivateStoreWnd ? Can someone decompile please this https://www.mediafire.com/file/fv9pnnp0v76m9ac/interface.u/file interface.u into .uc files ?

 

 

M4CMY8s.png 

TradeStart needs to be implemented too.

Link to comment
Share on other sites

3 hours ago, Williams said:

 

 

M4CMY8s.png 

TradeStart needs to be implemented too.

public class TradeStart extends L2GameServerPacket
{
    private final Player _activeChar;
    private final ItemInstance[] _itemList;

    
    public TradeStart(Player player)
    {

        _activeChar = player;
        _itemList = player.getInventory().getAvailableItems(true, false);
    }
    
    @Override
    protected final void writeImpl()
    {
        if (_activeChar.getActiveTradeList() == null || _activeChar.getActiveTradeList().getPartner() == null)
            return;
        
        writeC(0x1E);
        writeD(_activeChar.getActiveTradeList().getPartner().getObjectId());
        writeH(_itemList.length);
        
        for (ItemInstance temp : _itemList)
        {
            if (temp == null || temp.getItem() == null)
                continue;
            
            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().getAugmentationId();    
                _aug = _augorg>>16;
                _aug2 = _aug;
                _aug3 = _augorg-(_aug<<16);
            }

            
            if (temp.isAugmented())
                writeH(_aug2);
            if (temp.isAugmented() == false)
            writeH(0x00);
            writeD(item.getBodyPart());
            writeH(temp.getEnchantLevel());
            writeH(0x00);
            if (temp.isAugmented())
            writeH(_aug3);
            if (temp.isAugmented() == false)
            writeH(0x00);

             
        }
    }
}

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • 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