SRL Archive - Help

how do i bot for more than 6 hours +


print

2012-08-06 16:50:10

like how do i make my bot start up again if loggs off by iteself for 6 hour limit thing

Benny

2012-08-06 16:52:52

try crashsmart :)

use the search button

x[Warrior]x3500

2012-08-06 17:06:31

put SRL_SixHourFix:= true;
before setupSRL;

illester

2012-08-07 00:47:16

Search button is a good place to start.

Jordan155

2012-08-07 01:17:45

SmartManager man.

shstiger2009

2012-08-07 01:21:08

The SixHourFix function in SRL does work, but I think in some cases it doesn't (don't know why). Your best best at the moment would b to use SmartManager…but I'm pretty sure Brandon is fixing the SixHourFix in SRL. He may have already fixed it actually because I saw my script restart itself by itself, it was so cool! So yeah…it works but idk if it's 100%. I'd test it out if I were you, let us know if it works and help out! :)

Deni_mulic

2012-08-07 01:30:29

I've never had SixHourFix work, SmartManager +

ID:=Smart_CurrentClient;
SmartKillClient(ID);
is what I use

P1ng

2012-08-07 01:34:21

I've found on scripts where the mainloop is until(not LoggedIn); that the SixHourFix doesn't work, because obviously you aren't logged in if SMART is crashed..

John

2012-08-07 02:23:10

From: shstiger2009
The SixHourFix function in SRL does work, but I think in some cases it doesn't (don't know why). Your best best at the moment would b to use SmartManager…but I'm pretty sure Brandon is fixing the SixHourFix in SRL. He may have already fixed it actually because I saw my script restart itself by itself, it was so cool! So yeah…it works but idk if it's 100%. I'd test it out if I were you, let us know if it works and help out! :)

My smart has been reset 6 times so far successfully via SmartSixHourFix.

x[Warrior]x3500

2012-08-07 02:28:01

From: John
My smart has been reset 6 times so far successfully via SmartSixHourFix.


yah, ive never had an issue with this in any of my scripts. works every time.

Le Jingle

2012-08-07 02:37:07

Do the scripts that SmartSixHourfix works with, build up the Simba RAM usage overtime to considerably good chunks? (400k ram per 6h?)

John

2012-08-07 02:44:48

From: Le Jingle
Do the scripts that SmartSixHourfix works with, build up the Simba RAM usage overtime to considerably good chunks? (400k ram per 6h?)


No It does not.

Eric904P

2012-09-19 01:55:45

I use an if-then clause -
If Not LoggedIn() Then
SmartKillClient(Smart_CurrentClient);

or a repetitive series of actions that you are botting -
Repeat
<Procedure/Function name here>;
Until Not LoggedIn()
SmartKillClient(Smart_CurrentClient);

I put what normally would be my main loop in a procedure, then have my main loop as a 3 line repeat
for example:


procedure loop; //whatever you want to have your bot do goes within this procedure, i have a simple excerpt here
begin
SRL_SixHourFix:=True; //this only sometimes works as I have found
SetupSRL;
ActivateClient;
Login;
wait(5000)
ActivateClient;
Repeat ClickMouse(626,499,mouse_left); //this logs me into my favorite world with a good ping, instead of a random one :) i repeat just in case something screws up
wait(20000)
Until LoggedIn ()
ActivateClient;
Repeat
<YourProcedureHere>;
Until Not LoggedIn()
SmartKillClient(Smart_CurrentClient);
Writeln('Restarting Client…'); //I use this as a log of times, I find it more efficient then creating a text file with the info.
Writeln(GetSystemTime);
end;

Begin //main loop starts here
Repeat
Loop; //the Procedure above
Until(False) //infinite
End.

Login is a procedure I wrote to log my player into a specific world, I was having syntax issues when I put that in the same clause as SetupSRL;

This covers possible updates better than SMARTManager imho, and the main advantage i enjoy is the fact it is included within the program 100%, and does not require you to restart the entire script.