Results 1 to 6 of 6

Thread: login.scar

  1. #1
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default login.scar

    The current login.scar has some big problems, and I think LoginPlayer; needs revision; there is almost NO failsafes
    I had to redo the whole procedure (almost) to make it log me in...

    A new function that can be just as useful as LoggedIn:
    Code:
    function HandleWelcomeScreen : Boolean;
    var
      Mark : Integer;
    begin
      if (GetColor(207, 409) = 238301) then //At Welcome Screen
      begin
        Wait(500 + Random(1000));
        MouseBox(249, 419, 521, 445, 1);
        Result := True;
        MarkTime(Mark);
        while (TimeFromMark(Mark) < 30000) and (not(LoggedIn)) do
          Wait(1000 + Random(1000));
      end;
    end;
    I use this in the LoginPlayer procedure like this:
    Code:
        //Click 'Log In' on main menu
        while (GetColor(343, 175) <> 7750) do //while (GetColor(343, 174) <> 7750) do
        begin
          MouseBox(360, 180, 400, 185, 1);
          Wait(100 + Random(100));
          if LoggedIn then Exit; //No need to log in if you already are loggedin
          if HandleWelcomeScreen then Exit;
        end;
    This is sort of a rant to the devs, my script always ends in an endless loop while my player are logged in..

    EDIT: And the procedure Login_SetGraphics often misses. I solved this by adding
    Code:
    if FindColor(x, y, 16777215, 163, 322, 792, 457) then
        Login_SetGraphics(Brightness, vl, rr, gd, td, ia, fe, gt, cs);
    to the last line in that procedure
    Last edited by Zyt3x; 05-21-2009 at 06:32 PM.

  2. #2
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Does not ever happen to me.

  3. #3
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by Da 0wner View Post
    Does not ever happen to me.
    Well, this happens alot to me, and I think it is because my computer sucks; when the runescape app is loaded it lags..

  4. #4
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    i bet my computer lags way more than yours, because this piece of junk can't even run my screensaver without lag. still that doesn't happen to me

  5. #5
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well my computer is good and not noob so...yeah .

  6. #6
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Hmmm.. well.. I tried running the same script on my laptop (much faster ) and then I get no problems

    But we have to think outside of the box; Why not add an failsafe to the endless loop?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •