*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:
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
📢 Resurse Metin2 Premium!
Zeci de resurse Metin2 Premium - exclusive și 100% funcționale începând cu 15.99€!.
Vezi resursele Cumpără premium
Premium
Anunț
Does anyone have this special inventory on martysama 5.8 and could you please share me the char_item.cpp ?
Selling to NPCs fixed using newsellpacket... here are the exact instructions.
Serverside:
1) Open input_main.cpp
2.1) Search(CTRL+F) this:
2.2) Replace that whole case with this:
3) Save and close it, now open shop_manager.h
3.1) And replace this:
3.2) With this:
4) Save it and close it.
4.1) Next step; open shop_manager.cpp and search this function:
4.2) Replace the parameters/arguments only with this:
4.3) Search this line:
4.4) And replace it with this:
4.5-Choosable
4.5.1) Replace this:
4.5.2) With this(as I said, this is choosable, not important change):
5) Save and close the file, now you are ready to build your game.
Clientside-BIN:
1) Open PythonNetworkStream.h
1.1) Search this:
1.2) Replace it with this:
2) Save it, close it. Open PythonNetworkStreamPhaseGameItem.cpp
2.1) Search this function:
2.2) Replace the whole function with this:
3) Save and close. Open PythonNetworkStreamModule.cpp
3.1) Search this function:
3.2) And replace it with this:
Serverside:
1) Open input_main.cpp
2.1) Search(CTRL+F) this:
Code:
case SHOP_SUBHEADER_CG_SELL2: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);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.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):
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);2) Save it, close it. Open PythonNetworkStreamPhaseGameItem.cpp
2.1) Search this function:
Code:
bool CPythonNetworkStream::SendShopSellPacketNew(BYTE bySlot, BYTE byCount)3) Save and close. Open PythonNetworkStreamModule.cpp
3.1) Search this function:
Code:
PyObject* netSendShopSellPacketNew(PyObject* poSelf, PyObject* poArgs)Ultima oară modificat 09 Mar 2025, 23:50 de către GreposX, modificat 1 dată în total.
I fixed the dragging from normal inventory to special inventory this way...
in def SelectEmptySlot and def SelectItemSlot
search:
change like this:
in def SelectEmptySlot and def SelectItemSlot
search:
change like this:
🔥 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!
Roboțelu'
Anunț
-
Subiecte similare
-
5Răspunsuri187Vizualizăride Hound
-
de ZuZuR » » în Sisteme Metin21Răspunsuri857Vizualizăride Snus
-
3Răspunsuri1100Vizualizăride ZuZuR
-
2Răspunsuri571Vizualizăride GreposX
-
de Hound » » în Arhivă probleme1Răspunsuri105Vizualizăride Uriel
-
Informații
Utilizatori ce navighează pe acest forum: Niciun utilizator înregistrat și 2 vizitatori
Discord ID copiat:



