• 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.
 
Back
Top