Results 1 to 3 of 3

Thread: Script lags game

  1. #1
    Join Date
    Aug 2007
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Script lags game

    This is going to be my first Runescape scar script (so be nice if it looks like crap), but I having a problem with it. It's making my game lag. So just a couple of questions.

    !. Is the lag from the script repeating itself too fast?
    2. How do I fix this without compromising speed and reaction?
    3. Ive tried adding random wait times are these even neccesary?
    4. What other things need to be added to prevent it from being detectable?(keep in my I won't need to run any more than a couple of minutes)

    SCAR Code:
    program JadKilla;
    {.include SRL\SRL.Scar}

    var
    x,y: Integer;

    procedure Range;
    begin
     if IsFunctionKeyDown(4)then
      begin
       if not (FindColor(x,y,7183276,670, 339, 670, 339)) then
       begin
        wait(20+random(200))
        Gametab(6);
        wait(100+random(300));
        Mouse(640, 340, 10, 10, true);
        Writeln('Range Protect Mofo!');
       end;
      end;
    end;

    procedure Mage;
    begin
      if IsFunctionKeyDown(5)then
       begin
        if not (FindColor(x,y,7185335,636, 331, 636, 331)) then
        begin
         wait(20+random(200))
         Gametab(6);
         wait(100+random(300));
         Mouse(680, 340, 10, 10, true);
         wait(100+random(400));
         writeln('Mage Protect Mofo!');
        end;
       end;
    end;

    begin
    SetupSRL;
     repeat
      Range;
      Mage;
     until(false)
    end.

  2. #2
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default ?

    SCAR Code:
    if not (FindColor(x,y,7183276,670, 339, 670, 339)) then

    why if not?

    And ur script shouldn't be laggy, really i think it is ur comp.?

    Make TPAs~!!

  3. #3
    Join Date
    Aug 2007
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Smarter Child View Post
    SCAR Code:
    if not (FindColor(x,y,7183276,670, 339, 670, 339)) then

    why if not?

    And ur script shouldn't be laggy, really i think it is ur comp.?

    Make TPAs~!!
    I'm telling if not (color of prayer when on) then turn it on
    is this the right way?

    EDIT: Nevermind I understand why it wasnt needed...

    Should be my comp its usually fast let me try freeing up some resources

    EDIT: it was my comp vista was eating up my resources so I partition my HDD and installed XP.



    t..p..a's? I will study that up thanks!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. script for different game
    By seany in forum RS3 Outdated / Broken Scripts
    Replies: 0
    Last Post: 08-09-2008, 01:49 AM
  2. Lags in my AutoMiner.
    By Floor66 in forum OSR Help
    Replies: 10
    Last Post: 10-27-2007, 06:57 AM
  3. script for game
    By zenma in forum Gaming
    Replies: 1
    Last Post: 08-05-2007, 10:00 AM
  4. Lags at certain point in my script
    By steth1010 in forum OSR Help
    Replies: 3
    Last Post: 05-11-2007, 02:29 AM

Posting Permissions

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