• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

C++ House price show scarab coins instead of gold coins.

dewral

Banned User
Joined
Dec 4, 2019
Messages
303
Solutions
10
Reaction score
211
Hello i wanted to change the price that is showing on house doors.

This part from house.cpp it's responsible for showing the price.
I'm wondering how to make it to read the correct value of scarab coins

zjoCCTY.png

1 scarab coin = 100000 Gold coins

C++:
void House::updateDoorDescription() const
{
    const int32_t housePrice = g_config.getNumber(ConfigManager::HOUSE_PRICE);
    for (const auto& it : doorSet) {
        it->setSpecialDescription(fmt::format("It belongs to house '{:s}'. {:s} owns this house.{:s}", houseName, (owner != 0) ? ownerName : "Nobody", g_config.getBoolean(ConfigManager::HOUSE_DOOR_SHOW_PRICE) && (housePrice != -1) && (owner == 0) ? fmt::format(" It costs {:d} gold coins.", (houseTiles.size() * housePrice)) : ""));
    }
}
 

Levi999x

AoT
Joined
Dec 14, 2017
Messages
2,142
Solutions
58
Reaction score
1,388
Location
Germany
 
OP
OP
dewral

dewral

Banned User
Joined
Dec 4, 2019
Messages
303
Solutions
10
Reaction score
211
Yea already found that but that i don't know what i am doing wrong.
jt5yCaF.png

I wanted to show like it's 3 scarab coins etc.
Any hints what im missing here xD
 

Similar threads

Top