Page 1 of 1

about logout_time

Posted: Sat Jan 16, 2010 3:46 pm
by newbie2009
i notice in couple time, bot wont logout at specific time i give order to logout_time at my profiles.

so i search the forum and read something when i pause the bot the logout time will be reset, so how i can set the logout time not reseted when i pause the bot and start it again ??

i read at rom wiki and found about

player.BotStartTime
player.BotStartTime_nr

but where and how to use it, cause i'am bad at programing and wiki not tell where to put that line ? can any1 show and tell me where to set it as i want ?

Re: about logout_time

Posted: Sun Jan 17, 2010 2:29 pm
by Administrator
Edit rom/functions.lua. Go to (CTRL+G) line 350. You'll see this:

Code: Select all

	-- Re-set our bot start time to now
	if( player ) then
		player.BotStartTime = os.time();
		player.LastDistImprove = os.time();	-- reset unstick timer (dist improvement timer)

		if( settings.profile.options.LOGOUT_TIME > 0 ) then
			printf("Bot start time reset\n");
		end
	end
Remove it. Save.

Re: about logout_time

Posted: Mon Jan 18, 2010 12:46 am
by newbie2009
thx :)