Adblock breaks this site

Log Out Function

Discussion in 'Outdated RS Scripts' started by ProphesyOfWolf, Jan 26, 2008.

  1. ProphesyOfWolf

    ProphesyOfWolf Member

    Joined:
    Dec 6, 2007
    Posts:
    85
    Referrals:
    0
    Sythe Gold:
    0
    Log Out Function

    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;
     
  2. Blankothe3rd

    Blankothe3rd Forum Addict

    Joined:
    May 27, 2007
    Posts:
    259
    Referrals:
    0
    Sythe Gold:
    0
    Log Out Function

    It looks good! Saving into the Plugins folder... I'll test it if I have the time. 5/5
     
  3. ProphesyOfWolf

    ProphesyOfWolf Member

    Joined:
    Dec 6, 2007
    Posts:
    85
    Referrals:
    0
    Sythe Gold:
    0
    Log Out Function

    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.
     
  4. Blankothe3rd

    Blankothe3rd Forum Addict

    Joined:
    May 27, 2007
    Posts:
    259
    Referrals:
    0
    Sythe Gold:
    0
    Log Out Function

    Thanks for letting me know.
     
  5. spambot7000

    spambot7000 Guest

    Referrals:
    0
    Log Out Function

    "failed to run logout"
     
  6. dark mage766

    dark mage766 Member

    Joined:
    Sep 11, 2005
    Posts:
    72
    Referrals:
    0
    Sythe Gold:
    0
    Log Out Function

    Sorry new to scar the other day,Whats this script do mate?
     
  7. ->{Nauman}<-

    ->{Nauman}<- Newcomer

    Joined:
    Dec 28, 2007
    Posts:
    12
    Referrals:
    0
    Sythe Gold:
    0
    Log Out Function

    It's meant to log you out with the new rs interface. Although SRL have updated their login :/
     
  8. Rdogg999

    Rdogg999 Active Member

    Joined:
    Jan 16, 2008
    Posts:
    215
    Referrals:
    0
    Sythe Gold:
    0
    Log Out Function

    Line 9: [Error] (9:8): Unknown identifier 'LoggedIn' in script
    Failed when compiling
     
< [SRL][300K][2 GBP/4 U$D]GuildXMiner[/SRL][/300K][/2 GBP] | ProphesyOfWolf's *Almost* Everything Fletcher >


 
 
Adblock breaks this site