i luffs yeww
2011-11-22 11:33:44
{*******************************************************************************
function RSReady: Boolean;
By: ZephyrsFury
Description: Returns true if we are ready to auto (on loginscreen or logged in).
Useful for waiting until RS has fully loaded.
*******************************************************************************}
function RSReady: Boolean;
begin
Result := (LoggedIn) or (LobbyScreen) or (GetColor(745, 17) = 16645629); //X button in top right
if (GetColor(748,66) = 657930) then // X button on resizeable client
begin
WriteLn('You are using the "Resizeable" screen option in RS.');
WriteLn('Please set it to "Fixed" to have SRL function properly.');
TerminateScript;
end;
end;
Don't have a diff, have to run.
Coh3n
2011-11-22 16:32:20
Is that all that was broken in the login functions?
Harry
2011-11-22 16:40:39
Why'd you remove the countcolors and all the other stuff in that function?
i luffs yeww
2011-11-22 16:48:25
Sorry I couldn't put more information and blah blah blah, my mom had to get to the emergency room (appendicitis, she's getting her appendix removed sometime soon, she'll be fine, just had to get out the door).
Anyway. I took out the first CountColor because it was returning false which would exit the procedure no matter what, and would take quite awhile to have anything continue (two minutes, iirc), but what I changed it to returned true when it should.
Again, I was a bit of a rush (mom, blah blah blah), so it may not be the best, but it does speed up scripts by two minutes at start. The loop that was causing the issue is towards the bottom of SRL.simba, iirc. (Still not at a place where I can look at sauce and changes I did.. Don't have my laptop with me atm.)
Coh3n
2011-11-22 19:54:30
Tested and works, will commit soon.
E: Committed.