4 mesaje
  • Mesaje: 43
  • Reacții: 126
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    *Problemă/Întrebare:
    Hi friends, I have two problems with this special inventory...sursa-python/system-inventar-special-fu ... t1703.html Would anyone please know what it could be?
    No sysser, but I can't drag items into my spec inventory, but if I drop the item on the ground and pick it up, it jumps into my spec inventory. And then another problem, I can't sell at the shop from the spec inventory. Thanks in advance for the advice.

    *Resursă folosită (sistem/funcție/modificare):

    *Syserr:

    *Fișier(e) cu problema (link pastebin / code):

    *Poze / Video:

    Rezolvat de GreposX » 09 Mar 2025, 23:42

    🔥 Hai pe Discord! - Chat activ și support direct

    Te așteptăm și pe serverul de Discord - aici ne-am strâns toată comunitatea de Metin2 din România.

    Alătură-te acum!
    1300+ de membri activi!
    Robot Discord
    Roboțelu'
    Anunț
  • Mesaje: 43
  • Reacții: 126
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    Mesaj de GreposX »

    Does anyone have this special inventory on martysama 5.8 and could you please share me the char_item.cpp ?
  • Mesaje: 43
  • Reacții: 126
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    Mesaj de GreposX »

    Selling to NPCs fixed using newsellpacket... here are the exact instructions.

    Serverside:
    1) Open input_main.cpp

    2.1) Search(CTRL+F) this:
    Code:
    case SHOP_SUBHEADER_CG_SELL2:
    2.2) Replace that whole case with this:

    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.



    3) Save and close it, now open shop_manager.h

    3.1) And replace this:
    Code:
    void		Sell(LPCHARACTER ch, BYTE bCell, BYTE bCount = 0);
    3.2) With this:

    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.


    4) Save it and close it.

    4.1) Next step; open shop_manager.cpp and search this function:
    Code:
    void CShopManager::Sell(LPCHARACTER ch, BYTE bCell, BYTE bCount)
    4.2) Replace the parameters/arguments only with this:

    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.


    4.3) Search this line:
    Code:
    LPITEM item = ch->GetInventoryItem(bCell);

    4.4) And replace it with this:
    Code:
    [hide]LPITEM item = ch->GetItem(TItemPos(bType, wCell));[/hide]

    4.5-Choosable

    4.5.1) Replace this:
    Code:
    	if (IS_SET(item->GetAntiFlag(), ITEM_ANTIFLAG_SELL))
    		return;

    4.5.2) With this(as I said, this is choosable, not important change):

    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.


    5) Save and close the file, now you are ready to build your game.


    Clientside-BIN:

    1) Open PythonNetworkStream.h

    1.1) Search this:
    Code:
    bool SendShopSellPacketNew(BYTE bySlot, BYTE byCount);
    1.2) Replace it with this:

    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.


    2) Save it, close it. Open PythonNetworkStreamPhaseGameItem.cpp

    2.1) Search this function:
    Code:
    bool CPythonNetworkStream::SendShopSellPacketNew(BYTE bySlot, BYTE byCount)
    2.2) Replace the whole function with this:

    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.



    3) Save and close. Open PythonNetworkStreamModule.cpp

    3.1) Search this function:
    Code:
    PyObject* netSendShopSellPacketNew(PyObject* poSelf, PyObject* poArgs)
    3.2) And replace it with this:

    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.
  • Mesaje: 43
  • Reacții: 126
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    Mesaj de GreposX »

    I fixed the dragging from normal inventory to special inventory this way...


    in def SelectEmptySlot and def SelectItemSlot


    search:

    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.


    change like this:

    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.

    🔥 Hai pe Discord! - Chat activ și support direct

    Te așteptăm și pe serverul de Discord - aici ne-am strâns toată comunitatea de Metin2 din România.

    Alătură-te acum!
    1300+ de membri activi!
    Robot Discord
    Roboțelu'
    Anunț
    Închis

    Înapoi la “Probleme rezolvate”

    Informații

    Utilizatori ce navighează pe acest forum: Niciun utilizator înregistrat și 2 vizitatori

    Discord ID copiat: