Results 1 to 6 of 6

Thread: My First Script(Text, Move Anti-Afk)

  1. #1
    Join Date
    Oct 2008
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    My First Script(Text, Move Anti-Afk)

    Enjoy

    SCAR Code:
    program AntiAfk;
    //By Leech4Life
    //I think this might actually work, but you have to spec RS window size put something small if you don't know
    var
    i, x, y, a : Integer;
    const
    AfkTime = 5; //Time to be afk in Minutes
    RSSizex = 1024;  //X screen size
    RSSizey = 1280;  //Y screen size
    Click = TRUE; //click places      { ONLY ONE, CANT BE BOTH
    Text = FALSE;  //say texts          }
         text1 = 'bored';
         text2 = 'Someday Ill be lvl 99';
         text3 = '';
         text4 = '';
    begin

    if (Click = TRUE) then
    begin
    repeat
    x := random(RSSizex);
    y := random(RSSizey);
    MoveMouseSmoothEx(x,y,20,40,45,25,20);
    ClickMouse(x,y,true);
    Sleep(29)
    i := i+1;
    until i*2 = AfkTime
    end;


    if (Text = TRUE) then
    begin
    repeat
    a := random(4);
    if(a=1) then
      SendKeys(text1+chr(13));
      sleep(29);
    if(a=2) then
      SendKeys(text2+chr(13));
      sleep(29);
    if(a=3) then
      SendKeys(text3+chr(13));
      sleep(29);
    if(a=4) then
      SendKeys(text4+chr(13));
      sleep(29);
    until i*2 = AfkTime
    end;

    end.



    Boreas: I'm in a good mood so I took the liberty of putting your posts together. I suggest you learn to use the edit button, as my good moods are very rare.

    Edit1:
    Enjoy everyone, this was my first SCAR script. It was actually kind of hard coming off of Java.

    Edit 2:
    By the way, if there are any problems with it just reply or something? I think it works pretty well for a noob script.

    Edit 3:
    By the way, is there a way to make a GUI using SCAR? like forms or something. For later scripts so I wont be a leecher

  2. #2
    Join Date
    Oct 2007
    Location
    The deep web
    Posts
    2,496
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    triple post? dude, edit ur posts.
    Did someone say GDK?

  3. #3
    Join Date
    Jan 2007
    Location
    the middle of know-where
    Posts
    1,308
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by jakeyboy29 View Post
    triple post? dude, edit ur posts.
    Seriously... There is no need to get your first ten posts on the same thread... all in a row.... on the same page....

    But, maybe you didn't know... there is an edit button... using them is worthwhile...

    ://welcome to SRL Forums.
    On vacation in NeverLand,
    Code:
    typedef int bool;
    enum { false, true };

  4. #4
    Join Date
    Jan 2007
    Posts
    85
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Its a decent start. But use cases like this:

    You have:
    SCAR Code:
    if (Text = TRUE) then
    begin
    repeat
    a := random(4);
    if(a=1) then
      SendKeys(text1+chr(13));
      sleep(29);
    if(a=2) then
      SendKeys(text2+chr(13));
      sleep(29);
    if(a=3) then
      SendKeys(text3+chr(13));
      sleep(29);
    if(a=4) then
      SendKeys(text4+chr(13));
      sleep(29);
    until i*2 = AfkTime
    end;

    Which works, however, let's clean it up a bit, shall we?

    Try this:
    SCAR Code:
    if (Text = TRUE) then
      begin
        repeat
          case Random(3) of
            0:SendKeys(text1+chr(13));
              sleep(29);
            1:SendKeys(text2+chr(13));
              sleep(29);
            2:SendKeys(text3+chr(13));
              sleep(29);
            3:SendKeys(text4+chr(13));
              sleep(29);
          end;
        until i*2 = AfkTime
      end;

    That should clean things up a bit. Keep it up.

  5. #5
    Join Date
    Sep 2008
    Location
    Adelaide, South Aust
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    not bad leech4life but I believe using MoveMouse and ClickMouse are detectable. Try using
    SCAR Code:
    Mouse(x,y,1,1,True);
    Flag;

    and

    MMouse(x,y,5,5);

    If expanding further, make sure u use Random Checking!!
    Hope this helps and keep up the scripting!!!

  6. #6
    Join Date
    Sep 2008
    Location
    Aussie mate
    Posts
    411
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Mind saying what the script does?? also add in anti ban + randoms
    IM BACK!!!!!!!!!!!!!!!!!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Simple move to color script plz
    By ownage_99 in forum RS3 Outdated / Broken Scripts
    Replies: 4
    Last Post: 11-30-2008, 06:41 PM
  2. My script doesnt move!
    By Rora in forum OSR Help
    Replies: 2
    Last Post: 12-07-2007, 08:12 PM
  3. I need a script with JUST Anti-Bans and Anti-Randoms.
    By Dipped_in_Pwn_Sauce in forum RS3 Outdated / Broken Scripts
    Replies: 2
    Last Post: 11-18-2007, 02:38 PM

Posting Permissions

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