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

Solved Price in description doors from houses (how to disable or delete price)

Tampek

ECHO 'Zarkonia.online';
Joined
Dec 29, 2015
Messages
480
Solutions
5
Reaction score
33
Location
Spain
Hello how i can edit description of doors from houses?

I want change it:
It belongs to house 'Sunset Homes, Flat 02'. Nobody owns this house. ->It costs 30 gold coins.<-

This is on sources or lua?

thnx for advance :D
 
ok is here

void House::updateDoorDescription() const
{
std::ostringstream ss;
if (owner != 0) {
ss << "It belongs to house '" << houseName << "'. " << ownerName << " owns this house.";
} else {
ss << "It belongs to house '" << houseName << "'. Nobody owns this house.";

const int32_t housePrice = g_config.getNumber(ConfigManager::HOUSE_PRICE);
if (housePrice != -1) {
ss << " It costs " << (houseTiles.size() * housePrice) << " gold coins.";
}
}

for (const auto& it : doorList) {
it->setSpecialDescription(ss.str());
}
}

xD
 
Back
Top