• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS-1.5-Downgrades - Market System

A change needs to be made to correctly send items to DepotChest

house.cpp

C++:
        if (DepotLocker* depotLocker = player->getDepotLocker(townId)) {
            g_game.internalMoveItem(item->getParent(), depotLocker, INDEX_WHEREEVER, item, item->getItemCount(), nullptr, FLAG_NOLIMIT);
to

C++:
        if (DepotChest* depotChest = player->getDepotChest(townId, true)) {
            g_game.internalMoveItem(item->getParent(), depotChest, INDEX_WHEREEVER, item, item->getItemCount(), nullptr, FLAG_NOLIMIT);
 
Excuse my ignorance, but you told us to change our Client modules, but how do we add the items to market?
 
Last edited:
Excuse my ignorance, but you told us to change our Client modules, but how do we add the items to market?
In the objectbuilder there is a "market" option, and in the item editor there is a "ware id" option.
 
I applied all the changes you suggested, my market started to appear inside the depot, and when I click it, it even opens in the client, but it doesn't work, the items don't appear with the sprite, just an empty box, in this case in my image there are only 2 because I added only 2 items in the item editor and in the object builder to test.

1751917303570.webp
In my client I get an error:
ERROR: ProtocolGame parse message exception (20 bytes, 6 unread, last opcode is 0x00 (0), prev opcode is 0xF6 (246)): unhandled opcode 0
Packet has been saved to packet.log, you can use it to find what was wrong. (Protocol: 772)
 
I applied all the changes you suggested, my market started to appear inside the depot, and when I click it, it even opens in the client, but it doesn't work, the items don't appear with the sprite, just an empty box, in this case in my image there are only 2 because I added only 2 items in the item editor and in the object builder to test.

View attachment 93549
In my client I get an error:
Have you made the necessary changes to otclient?
 
Back
Top