*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ț
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.
📢 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ț
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
Autentifică-te
-
Subiecte similare
-
de ZuZuR » » în Sisteme Metin21Răspunsuri675Vizualizăride Snus
-
3Răspunsuri865Vizualizăride ZuZuR
-
2Răspunsuri457Vizualizăride GreposX
-
0Răspunsuri427Vizualizăride Dragos
-
de 3lteror » » în Arhivă probleme0Răspunsuri263Vizualizăride 3lteror
-
Informații
Utilizatori ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator