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

Domki

Donaj

Banned User
Joined
Jan 6, 2010
Messages
943
Reaction score
3
Witam,
Code:
houseRentPeriod = "never"


To Odpowiada, za tygodniowa oplate?\/

Code:
houseRentPeriod = "weekly?"
 
bool Houses::payRent(Player* player, House* house, uint32_t bid, time_t _time/* = 0*/)
{
if(rentPeriod == RENTPERIOD_NEVER || !house->getHouseOwner() ||
house->getPaidUntil() > _time || !house->getRent() ||
player->hasCustomFlag(PlayerCustomFlag_IgnoreHouseRent))
return true;

Town* town = Towns::getInstance().getTown(house->getTownId());
if(!town)
return false;

bool paid = false;
uint32_t amount = house->getRent() + bid;
if(g_config.getBool(ConfigManager::BANK_SYSTEM) && player->balance >= amount)
{
player->balance -= amount;
paid = true;
}
else if(Depot* depot = player->getDepot(town->getTownID(), true))
paid = g_game.removeMoney(depot, amount, FLAG_NOLIMIT);

if(!paid)
return false;
bank i depo
 
Last edited:
Back
Top