• 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!

Market system tfs 1.5 - no show items

Bee King

Well-Known Member
Joined
May 9, 2024
Messages
128
Reaction score
56
Hello everyone...


I’m using nekiro 1.5 downgrade 8.0, I believe that’s the right name for it...


I managed to activate the market in the depot, it’s already compiled and apparently working...


I enabled it in actions.xml:

XML:
<!-- Market -->
<action itemid="9111" function="market" />


I used Object Builder and Item Editor to classify the item as "market". The shop window already appears in the client, but the items I classify as "market" don’t show up...


Has anyone here managed to get this working and could give me some guidance?


I’ve tried several times hahaha, this is the closest I’ve ever gotten and I think I’m almost there...
Here are some pictures of the progress:


1756431126233.webp
1756431459255.webp
1756431188256.webp
Post automatically merged:

Guys, I managed to do it thanks to @Mateus Robeerto

Following this guide, I wasn’t setting the wereID:

https://otland.net/threads/problem-after-adding-market-inbox.290928/post-2769732

 
Last edited:
Hello everyone...


I’m using nekiro 1.5 downgrade 8.0, I believe that’s the right name for it...


I managed to activate the market in the depot, it’s already compiled and apparently working...


I enabled it in actions.xml:

XML:
<!-- Market -->
<action itemid="9111" function="market" />


I used Object Builder and Item Editor to classify the item as "market". The shop window already appears in the client, but the items I classify as "market" don’t show up...


Has anyone here managed to get this working and could give me some guidance?


I’ve tried several times hahaha, this is the closest I’ve ever gotten and I think I’m almost there...
Here are some pictures of the progress:


View attachment 94494
View attachment 94497
View attachment 94496
Post automatically merged:

Guys, I managed to do it thanks to @Mateus Robeerto

Following this guide, I wasn’t setting the wereID:​

https://otland.net/threads/problem-after-adding-market-inbox.290928/post-2769732

you need to make many editions in the spr / dat fiels itself and items.xml and itemsb.otb to get the flag market or sellable and buyable something like that, is not that easy to get that system working for versions who does handle it at all
 
Everything is already working, my friend. Thank you.


you need to make many editions in the spr / dat fiels itself and items.xml and itemsb.otb to get the flag market or sellable and buyable something like that, is not that easy to get that system working for versions who does handle it at all
Post automatically merged:

I don’t know why or how… sometimes more than one store and inbox appear. That’s the only thing missing to be 100%. If anyone has gone through this or can tell me where I should adjust it, I’d really appreciate it.





1756512446351.webp
 
Last edited:
Everything is already working, my friend. Thank you.



Post automatically merged:

I don’t know why or how… sometimes more than one store and inbox appear. That’s the only thing missing to be 100%. If anyone has gone through this or can tell me where I should adjust it, I’d really appreciate it.





View attachment 94498
This happens because your Tibia.dat doesn't contain any item with market flags, which means this client is version less than 1077 most likely? i can't remember which version supports market whatever you need to play it smart and do something like this


Manually send items from table instead from dat flags that will allow you to add allowed items into market but its a bit of a task to add all items your server have
 
This happens because your Tibia.dat doesn't contain any item with market flags, which means this client is version less than 1077 most likely? i can't remember which version supports market whatever you need to play it smart and do something like this


Manually send items from table instead from dat flags that will allow you to add allowed items into market but its a bit of a task to add all items your server have
Hello, thank you for your interest in helping...


The market itself is already fully functional, I’ve already added the items, and I can buy and sell normally… everything is 100%.


My problem now is that every now and then, the market and the mailbox get duplicated in the player’s depot…
 
Hello, thank you for your interest in helping...


The market itself is already fully functional, I’ve already added the items, and I can buy and sell normally… everything is 100%.


My problem now is that every now and then, the market and the mailbox get duplicated in the player’s depot…
don't save them and make sure to add them every new player is created from the constructor in player.cpp
Code:
Player::player
ytou should prevent iologindata from saving them as it does with ITEM_DEPOT probably
 
My problem now is that every now and then, the market and the mailbox get duplicated in the player’s depot…
It's problem with probably all 7.x/8.x downgrades from TFS 1.x.
They all use 10.x depot structure (with Inbox, Market and XX boxes for XX towns inside - from times, when RL tibia combined all depots into 1) and somehow tries to make it work like old depotbox-depotchest structure with separate depot for each town. It 'works', until you try to modify it and add Market/Inbox.

I tried to fix it on some OTS that added Inbox on nekiro TFS 1.5 downgrade to 8.6 and it took less time - still 2-3 hours - to rewrite whole depot structure to old style (copy of TFS 0.4 8.6), than to fix it.
 
Hello everyone... I made some changes in iologindata.cpp... I blocked the saving of specific IDs in the database, so every time the player goes to the depot it "creates" a new one and it is never saved in the database... I've been testing everything for 2 days now, and so far it's going well...

This way, duplication never happens, since a new one is always created instead of being saved in the depotlocker database.
 
Back
Top