• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

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?
 
Yes, all changes and I even applied the changes you put in manually because the patch could not be applied to the main branch.
There was probably something in your branch that wasn't in the original.
Can u upload your branch? I can compare with my files using git.
 
Yes, all changes and I even applied the changes you put in manually because the patch could not be applied to the main branch.
There was probably something in your branch that wasn't in the original.
Can u upload your branch? I can compare with my files using git.

I have the same problem, I haven't solved it yet
 
I have the same problem, I haven't solved it yet
You'll have to debug to know what you're celebrating, because just saying it didn't work means there's no way to know what you've already done and what you haven't done.
Post automatically merged:

Did they add the market flag to the spr and also to the item.otbm?
When you open the item editor compiled with the market flag, you will already have this option in your item.otb
 
this is engine but you know meybe how can add market to tfs by nekiro? I have to much edit source;/
I don't think there's much difference from the codes enabled in version 7.72, if you download the patch and compare I think you can succeed.
 
I don't think there's much difference from the codes enabled in version 7.72, if you download the patch and compare I think you can succeed.
How much would you charge me to do this work on my Nekiro TFS 1.5 server version 8.00?

my discord: ninjaz7557
 
Hi otlanders,

After a long time looking for this system, I saw that it would not be available in the community, only people wanting to sell it and today, I will post it for free to the entire community.
What was done: The object builder source was edited to read the "market" in the .dat and the same was done for the Item Editor to read the item.otb, the programs are included in the download. There is also the commit (patch) made in the TFS-1.5-Downgrades-772 source.

Changes that must be made in OTClient
HTML:
https://github.com/OTAcademy/otclientv8/blob/a5650dbffd3e2ce34a8119720893fc161284ea48/modules/game_market/marketprotocol.lua#L43
to
LUA:
if g_game.getClientVersion() < 770 then

Add below this line
HTML:
https://github.com/OTAcademy/otclientv8/blob/a5650dbffd3e2ce34a8119720893fc161284ea48/modules/game_features/features.lua#L24
LUA:
g_game.enableFeature(GamePlayerMarket)

Here is the link to download the files
HTML:
https://drive.google.com/file/d/1V_2AKzTxR3yND2svjwrvjTyYMEnU1Dlr/view?usp=sharing

I would like to express my gratitude to @Gesior.pl who explained the steps I should take, and to @whiteblXK who helped me in the process of compiling the files.
hwo do i do if i use 860? what i must do
Post automatically merged:

Para salvar no 8.0.
can you upload for 860 with src pls?
 
hwo do i do if i use 860? what i must do
Post automatically merged:


can you upload for 860 with src pls?
You can grab the commit from version 7.72; there won't be much difference in the code.
 
Back
Top