Lucrăm la îmbunătățirea site-ului! Este posibil ca unele module să nu funcționeze corect!
4 mesaje

Autor subiect

  • Mesaje: 43
  • Reacții: 89
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • Discord: [Vezi ID]
  • 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

    📢 Resurse Metin2 Premium!

    Zeci de resurse Metin2 Premium - exclusive și 100% funcționale începând cu 15.99€!.

    Vezi resursele Cumpără premium
    Premium
    Premium
    Anunț

    Autor subiect

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

    Medalii

    Does anyone have this special inventory on martysama 5.8 and could you please share me the char_item.cpp ?

    Autor subiect

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

    Medalii

    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
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.



    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
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    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
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    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
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    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
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    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
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.



    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
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.

    Autor subiect

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

    Medalii

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


    in def SelectEmptySlot and def SelectItemSlot


    search:

    Conținut: Ascuns
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.


    change like this:

    Conținut: Ascuns
    Motiv: Trebuie să reacționezi la mesaj pentru a vedea conținutul.
    Moved from Support to Probleme rezolvate on 10 Mar 2025, 06:11 by ZuZuR

    📢 Resurse Metin2 Premium!

    Zeci de resurse Metin2 Premium - exclusive și 100% funcționale începând cu 15.99€!.

    Vezi resursele Cumpără premium
    Premium
    Premium
    Anunț
    Scrie răspuns

    Creează-ți un cont sau autentifică-te pentru a participa la discuție

    Trebuie să fii membru pentru a răspunde

    Creează-ți un cont

    Înregistrează-te și alătură-te comunității noastre

    Membrii pot crea subiecte noi și pot descărca resurse Metin2 Gratuit!


    Te poți înregistra rapid utilizând contul tău de Discord sau Github

    Înregistrare

    Autentifică-te

    • Subiecte similare

      • de ZuZuR » » în Sisteme Metin2
        1
        Răspunsuri
        675
        Vizualizări
        de Snus
      • de ZuZuR » » în Serverfiles Resurse
        3
        Răspunsuri
        865
        Vizualizări
        de ZuZuR
      • de TekatOo » » în Probleme rezolvate
        2
        Răspunsuri
        457
        Vizualizări
        de GreposX
      • de Dragos » » în FIX-uri
        0
        Răspunsuri
        427
        Vizualizări
        de Dragos
      • de 3lteror » » în Arhivă probleme
        0
        Răspunsuri
        263
        Vizualizări
        de 3lteror

    Înapoi la “Probleme rezolvate”

    Informații

    Utilizatori ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator