Jump to content

legendkill

Inactive Member
  • Posts

    2
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by legendkill

  1. On 4/5/2020 at 4:08 PM, HUNgarocel1 said:

    Hi Dev! :)

     

    I have a little bug or something..

    So i trade another player, and marking his item, not mine.

    Img: YI8gbab.jpg

     

    Please help for me
    Best regards

     

     

    The bug is from PythonNetworkStreamPhaseGame.cpp in Binary.

     

    Search for :

     

                    int iSlotIndex = exchange_packet.arg2.cell;
                    CPythonExchange::Instance().SetItemToTarget(iSlotIndex, exchange_packet.arg1, (BYTE) exchange_packet.arg3);
                    for (int i = 0; i < ITEM_SOCKET_SLOT_MAX_NUM; ++i)
                        CPythonExchange::Instance().SetItemMetinSocketToTarget(iSlotIndex, i, exchange_packet.alValues);
                    for (int j = 0; j < ITEM_ATTRIBUTE_SLOT_MAX_NUM; ++j)
                        CPythonExchange::Instance().SetItemAttributeToTarget(iSlotIndex, j, exchange_packet.aAttr[j].bType, exchange_packet.aAttr[j].sValue);

     

    And remove: 

    #ifdef WJ_ENABLE_TRADABLE_ICON

    ...

    #endif

     

     

     

    Then, above you should see:

     

            case EXCHANGE_SUBHEADER_GC_ITEM_ADD:
                if (exchange_packet.is_me)

     

     

    Add under  this function:

     

                        CPythonExchange::Instance().SetItemAttributeToSelf(iSlotIndex, j, exchange_packet.aAttr[j].bType, exchange_packet.aAttr[j].sValue);

     

     

    the function you removed  previously. :) 

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.