PDA

View Full Version : Correct usage of sixHourFix under SRL-6?



KeepBotting
04-11-2014, 01:41 AM
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
04-11-2014, 01:55 AM
if (not isLoggedIn()) then
players[currentPlayer].login();

riwu
04-11-2014, 10:55 AM
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
04-11-2014, 05:36 PM
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.