• Log in or sign up for an account here: https://www.sythe.org/login

Log Out Function

Joined
Dec 6, 2007
Sythe Gold
0
Messages
85
I made a new logout function for SCAR.. Since the new update, the old one doesn't work, so.. To save people time, I made this. It's called LogOut2, and can be used like the old one! Enjoy!

Code:
{*******************************************************************************
function LogOut2: Boolean;
By: ProphesyOfWolf
Description: Logs out the current player. Returns true if successful.
*******************************************************************************}

function LogOut2: Boolean;
  begin
    If(not(LoggedIn)) then
      begin
        Exit;
      end;
      LGT := DTMFromString('78DA63D4646060106640015756C4836946289' +
          'F510F48F0A1AA99D6598CA9461055CDADE38B30D588A2AAB971A4' +
          '17558D3E909024A006648E0CAA9A1553B330D5C812708F0690902' +
          '3A0468908357244D8254B84BFE488081F3922C21964172FAA9AEF' +
          '5F9EA0AA510512DCA86A22CFDBA0AA5127428D1EA65DAFEE6E415' +
          '10300D2182776');
      If(DTMRotated(LGT, x, y, 0, 0, 1024, 768)) then
        begin
          Mouse(x, y, 2, 2, true);
          Wait(750 +random(250));
          ClickText('here', UpChars, MIX1, MIY1, MIX2, MIY2, true);
          Result:= True;
        end;
      If(not(DTMRotated(LGT, x, y, 857, 136, 885, 160))) then
        begin
          Result:= False;
          WriteLN('You are not in a Runescape client.');
          Exit;
        end;
end;
 
It looks good! Saving into the Plugins folder... I'll test it if I have the time. 5/5
 
I forgot to mention.. You can use this as long as you keep the little header above the code, or mention the fact that I made it somewhere in your script.
 
Sorry new to scar the other day,Whats this script do mate?
 
It's meant to log you out with the new rs interface. Although SRL have updated their login :/
 
Line 9: [Error] (9:8): Unknown identifier 'LoggedIn' in script
Failed when compiling
 
duelarena.gg
Back
Top