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

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

dewral

Veteran OT User
Joined
Dec 4, 2019
Messages
344
Solutions
10
Reaction score
358
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)) : ""));
    }
}
 
 
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
 
Back
Top