Results 1 to 12 of 12

Thread: log-out script

  1. #1
    Join Date
    Jun 2006
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default log-out script

    My first one
    Code:
    program New;
    {.include SRL/SRL.scar}
    begin
     setupSRL;
     DisguiseScar('xXx - new nude girls!!!');
     writeln('Tab ' + IntToStr(GetCurrentTab()));
    
     GameTab(10);
     writeln('we changed tab to log out');
     if(FindColorTolerance(x, y, 16777215, MIX1 + 20, MIY1 +20, MIX2 +20, MIY2 +20, 3) = true) then
     begin
      MoveMouseSmoothEx(x, y, 10, 20, 45, 20, 20);
      wait(random(200) +20);
      ClickMouse(x + 3, y + 3, true);
      Writeln('Login out');
     end;
    end.

  2. #2
    Join Date
    Feb 2006
    Location
    L.A, USA
    Posts
    1,632
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    or you can just do.

    Code:
    program New;
    {.include SRL/SRL.Scar}
    
    begin
      SetUpSRL;
      if(LoggedIn)then
        LogOut;
    end.
    But, yea pretty good for a first script. At least you understand not to use stuff like MoveMouse.

    Try using Mouse. This mouse moves to coords with random pixles off and clicks left or right.

    Code:
    procedure Mouse(mousex, mousey, ranx, rany : Integer; left : Boolean);
    Mousex, Mousey = the coord
    Ranx, Rany = random pixels off x and y
    Left = True for left click, False for right.

  3. #3
    Join Date
    Jun 2006
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh ty for freeback, i thinked that MoveMouseEx() is better :P

    edit: what i should but in ranX and in ranY, what is default ?

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    well, depends on the size that it can click on. For instance, when you want to click on a furnace, you could use Mouse(x, y, 20, 20, true); (or whatever mouse sort you want). But if it is a small button, lets say a magic attack, then 5, 5 should do it... But normally by clicking on the Minimap i use 10, 10
    Administrator's Warning:


  5. #5
    Join Date
    Feb 2006
    Location
    L.A, USA
    Posts
    1,632
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Sub Zero
    well, depends on the size that it can click on. For instance, when you want to click on a furnace, you could use Mouse(x, y, 20, 20, true); (or whatever mouse sort you want). But if it is a small button, lets say a magic attack, then 5, 5 should do it... But normally by clicking on the Minimap i use 10, 10
    For Minimap, I recommend as least as possible. To much random may result in inaccurate clicking.

    0, 0 = Perfect Click.

    Try doing some move mouse stuff, then you'll know, how much a pixel is etc. Distance measuring can be very important.

  6. #6
    Join Date
    Jun 2006
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    kk ty !! Firstime i used i buted like 100, 100 lol

  7. #7
    Join Date
    May 2007
    Location
    Seattle
    Posts
    1,069
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    i hate grave digging. *awaits snipers*
    FORMERLY BORN2CODE | Play Internet Games
    http://img147.imageshack.us/img147/2084/sigg.png

  8. #8
    Join Date
    Feb 2007
    Location
    SparklesProd.com
    Posts
    2,406
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, he did start the topic...

    A year ago.

  9. #9
    Join Date
    May 2007
    Location
    Seattle
    Posts
    1,069
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Dude, dont grave dig! Mod, please close!
    FORMERLY BORN2CODE | Play Internet Games
    http://img147.imageshack.us/img147/2084/sigg.png

  10. #10
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Good script. And B2C just *SHUT UP!* keep quiet. Good Script. Your on your way(1st step of 250) to becoming an srl member. You could have just used
    if (LoggedIn)then(logout);
    Lol anyways Amazing script (66% sarcasm there)
    ->{Nauman}<-

  11. #11
    Join Date
    Oct 2007
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nice job! I'm looking to learn more SRL and SCAR so very good!

    -Camdo Clark

  12. #12
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    06-26-2006

    STOP BUMPING please!


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

Thread Information

Users Browsing this Thread

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

Posting Permissions

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