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

Houses question..

Lucenzo

The Way You Move :)
Joined
Jan 29, 2011
Messages
363
Reaction score
14
Location
UK
Heya

I have few questions regarding the house system and payment for houses.


So for example this is my config...

Code:
-- Houses
	buyableAndSellableHouses = true
	houseNeedPremium = false
	bedsRequirePremium = false
	levelToBuyHouse = 8
	housesPerAccount = 1
	houseRentAsPrice = false
	housePriceAsRent = true
	housePriceEachSquare = 1500
	houseRentPeriod = "weekly"
	houseCleanOld = 0
	guildHalls = false

What does houseCleanOld mean? will money be debited from? bank/depo?

Because i saw few threads where people said peoples items are gone after server-save when using money for houses.

So just curious if someone would be willing to explain it to me :)

Thanks in Advance. x x
 
Last edited:
What does houseCleanOld mean?
if they havent logged in for more than houseCleanOld seconds, they'll lose the house when Houses::payHouse is executed
[cpp]//
uint32_t loginClean = g_config.getNumber(ConfigManager::HOUSE_CLEAN_OLD);
if(loginClean && (_time - loginClean) >= player->getLastLogin())
{
house->setOwnerEx(0, true);
return false;
}[/cpp]
will money be debited from? bank/depo?
if bankSystem = true and player has enough money on bank, it'll be removed from his/her bank account
if he/she doesn't have enough money or if bank system is disabled, it'll try to remove money from the player's depot for that town
[cpp]//
if(g_config.getBool(ConfigManager::BANK_SYSTEM) && player->balance >= amount)
{
player->balance -= amount;
paid = true;
}
else if(Depot* depot = player->getDepot(town->getID(), true))
paid = g_game.removeMoney(depot, amount, FLAG_NOLIMIT);[/cpp]
 
so this houseCleanOld basicly means when xx time passes the owner will lose their house if no money in bank since Bank = true
Correct? :P

And items will be stored in depo? or removed aswell? :P

Thanks x x
 
so this houseCleanOld basicly means when xx time passes the owner will lose their house if no money in bank since Bank = true
no, if they haven't logged in for longer than houseCleanOld they'll lose the house no matter if they can still pay it
And items will be stored in depo? or removed aswell? :P
they'll always be send to depot of that town
 
Back
Top