Hello, I'm back with the problem related to selling to NPCs.
To explain again, I added special inventory on the K key, it works perfectly and i can sell items to NPC, then I extended the item stack from 200 to 2000 and that works perfectly but now I can't sell to NPCs anymore, when I try to sell to NPCs something disconnects me from the server at the login page.
Initially I thought it was from the client but I was wrong, it seems the problem is from the server side.
After other tests I tend to believe that the problem is coming from input_main.cpp more precisely from the function int CInputMain::Shop(LPCHARACTER ch, const char * data, size_t uiBytes)
In this file I modified as follows:
I've tried different adaptations for SHOP_SUBHEADER_CG_SELL2: but none of them work.
In one case I have to sell an item several times to be disconnected.
In another case, as soon as I sell an item I'm disconnected.
In another case, it doesn't disconnect me at all, but I can't sell anything either, basically nothing happens...
I've tried to get this piece of code from another serverfile but I haven't found anything that works so far...
This is case SHOP_SUBHEADER_CG_SELL2: after I add specila inventory and the FIX to be able to sell items to NPC:
This is case SHOP_SUBHEADER_CG_SELL2: after I add extended stack items and in installation tutorial it's ask me to change it as follow:
And finally this is my result when i try to merge them:
None of them works.
NOTE: Serverfile is TMP4 if needed.