Results 1 to 4 of 4

Thread: Lags at certain point in my script

  1. #1
    Join Date
    Mar 2007
    Posts
    138
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Lags at certain point in my script

    At a certain point my runescape just freezes the the script can't handle it :S

    Here is my procedure, where it starts to freeze I put //Freezes here
    SCAR Code:
    procedure WalkToWillowsandCut;
    begin
       if (FindSymbol(x, y, 'Fish')) then
       begin
       Mouse(x, y, 2, 1, True);
       setrun(true);
       Gametab(4)
       end else
       begin
        Writeln('Can not find Symbol, switching players');
       Logout;
       Nextplayer(true);
       end;
       wait(5000);
       flag;
       FindAxeHeadColor;//Finds the color, clicks on bag :S
      if (FindColor(x, y, WillowColor, 0, 0, 600, 600)) then//Freezes here
      begin
        repeat
          FindHead;
          FindEnt(WillowColor);
          MMouse(x, y, 2, 1);
          wait(1000 + random(10));
          if (IsUpText('Chop')) then
          begin
           Mouse(x,y,2,1,true);
           FindHead;
          FindEnt(WillowColor);
          end else
          begin
            Writeln('Can not find willows, switching players');
            Logout;
            Nextplayer(true);
          end;
        until (InvFull);
      end;
    end;


  2. #2
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    The RS client is only 500 pixels tall. Maybe that's the problem.

    Try FindColor(x,y,WillowColor,MSX1,MSY1,MSX2,MSY2) instead.

  3. #3
    Join Date
    Mar 2007
    Posts
    138
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Still lags, plz help

  4. #4
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, the next thing in line is FindHead and FindEnt, but you didn't post the code for them.

    You should probably just post the whole script so people can try running it for themselves and troubleshoot it.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Script lags game
    By lemonfuzz in forum OSR Help
    Replies: 2
    Last Post: 02-27-2009, 04:53 PM
  2. How would YOU walk to this point?
    By gillian in forum OSR Help
    Replies: 18
    Last Post: 04-04-2008, 04:21 PM
  3. Lags in my AutoMiner.
    By Floor66 in forum OSR Help
    Replies: 10
    Last Post: 10-27-2007, 06:57 AM
  4. What is the point of this?
    By TOB in forum Discussions & Debates
    Replies: 0
    Last Post: 12-08-2006, 07:40 AM
  5. procedure to get script to automatically point east
    By disinterested in forum OSR Help
    Replies: 4
    Last Post: 11-28-2006, 09:15 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
  •