SRL Archive - RS3 Help

Correct usage of sixHourFix under SRL-6?


KeepBotting

2014-04-10 21:41:57

Under SRL-5, you'd just call SixHourFix; in the mainloop and put
if not LoggedIn then LoginPlayer;
at the start of every procedure…is it still done the same way under SRL-6?

Olly

2014-04-10 21:55:48

if (not isLoggedIn()) then
players[currentPlayer].login();

riwu

2014-04-11 06:55:52

From: KeepBotting
Under SRL-5, you'd just call SixHourFix; in the mainloop and put
if not LoggedIn then LoginPlayer;
at the start of every procedure…is it still done the same way under SRL-6?

You never have to call SixHourFix() in your script in both srl5/6. There may be a need to call ^ more than just at the start of a method depending on your script flow/structure etc.

Coh3n

2014-04-11 13:36:19

If your mainloop is written correctly you should only have to have "if (not isLoggedIn()) then exit;" at the beginning of every procedure and SRL will automatically restart SMART when needed.

I wouldn't recommend calling players[currentPlayer].login() in every procedure. Generally you want your player to start at the beginning after logging in.