• 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.X+ Change the currency used for buying and selling items on the market

iuryp

New Member
Joined
May 17, 2021
Messages
1
Reaction score
0
Hi guys, I would like to know how I could modify the currency that is used to buy and sell items through the market, which is currently gold coin, crystal, etc. I would like to modify so that tibia coin is used instead.
I use tfs 1.2x
 

Attachments

  • imagem_2023-04-27_043109159.png
    imagem_2023-04-27_043109159.png
    1.1 MB · Views: 26 · VirusTotal

You need to modify the source to add new currency in market

C++:
-- Some random stuff from TFS 1.4 source for Market

    if (offer.type == MARKETACTION_BUY) {
        player->bankBalance += offer.price * offer.amount;
        player->sendMarketEnter();
    } else {

player->getMoney
player->bankBalance

    sendResourceBalance(RESOURCE_BANK_BALANCE, playerBank);
    sendResourceBalance(RESOURCE_GOLD_EQUIPPED, playerMoney);
 
Back
Top