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

Solved Help with config.lua - houseCleanOld

Ashbringer

Almighty Ashe
Joined
Dec 24, 2011
Messages
334
Reaction score
18
Location
Germany
Hey in config.lua i have this houseCleanOld = 0
how do i configure that if i change it to houseCleanOld = 7 does it clean the house after 7 days if player dont login ?

i am using TFS 0.3.7
@Limos
 
1st number 60 is seconds or 1 minute times 60 is 60 minutes or 1 hour times 24 hours or 1 day times 7 days or 1 week
Code:
houseCleanOld = 60 * 60 * 24 * 7 -- 7 days
 
Last edited:
Read what it says "1st number 60 is seconds or 1 minute times 60 is 60 minutes or 1 hour times 24 hours or 1 day times 7 days or 1 week"
With that in mind "1st number 60 is seconds or 1 minute times 60 is 60 minutes or 1 hour times 24 hours or 1 day times 45 days"
Code:
houseCleanOld = 60 * 60 * 24 * 45 -- 45 days
See a pattern developing here?
 
Read what it says "1st number 60 is seconds or 1 minute times 60 is 60 minutes or 1 hour times 24 hours or 1 day times 7 days or 1 week"
With that in mind "1st number 60 is seconds or 1 minute times 60 is 60 minutes or 1 hour times 24 hours or 1 day times 45 days"
Code:
houseCleanOld = 60 * 60 * 24 * 45 -- 45 days
See a pattern developing here?
Thanks man :)

Thanks man :)
just says this ....

Code:
[SIZE=4][B]Error occured![/B][/SIZE]
Error ID:
More info: [B]ERROR: [B]#C-1[/B] : Class::ConfigLUA - Line [B]158[/B] of LUA config file is not valid [key: [B]houseCleanOld[/B]][/B]

File: [B]/usr/share/nginx/www/classes/configlua.php[/B]  Line: 59
File: [B]/usr/share/nginx/www/classes/configlua.php[/B]  Line: 20
File: [B]/usr/share/nginx/www/classes/configlua.php[/B]  Line: 12
File: [B]/usr/share/nginx/www/system/load.init.php[/B]  Line: 42
File: [B]/usr/share/nginx/www/index.php[/B]  Line: 18

fixed it by removing the -- 45 days thing
 
Last edited by a moderator:
Back
Top