Results 1 to 5 of 5

Thread: Why is this lagging?

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

    Default Why is this lagging?

    I have a scrip that runs a bury bone procedure but when it hits this procedure to pick bones up...

    Code:
    procedure Collect;
    begin
    If(FindObjMulti('oens', bonecolor1, bonecolor2, bonecolor3, 7))then
        begin
          Mouse(x, y, 3, 3, false);
          WriteLn('attemping to pick-up bone');
          ChooseOption(x, y, 'ones');
          BonesInv:=BonesInv+1;
          wait(1000+random(500));
        end;
    wait(1000+random(500)) //fixes the lag
    end;
    ...it lags like crazy, Any ideas on why or how it could be made better?

  2. #2
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Dude View Post
    I have a scrip that runs a bury bone procedure but when it hits this procedure to pick bones up...

    Code:
    procedure Collect;
    begin
    If(FindObjMulti('oens', bonecolor1, bonecolor2, bonecolor3, 7))then
        begin
          Mouse(x, y, 3, 3, false);
          WriteLn('attemping to pick-up bone');
          ChooseOption(x, y, 'ones');
          BonesInv:=BonesInv+1;
          wait(2000+random(500));
        end;
    end;
    ...it lags like crazy, Any ideas on why or how it could be made better?
    You spelled bones wrong? inf find obj multi..i think u ment ones

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

    Default

    I dont think thats it, but if it its i'll cry!!

    edit: was getting lag before on other correctly spelt functions, changing spelling still lagged

  4. #4
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    The problem is most likely in FindObjMulti.

    Try taking it out of srl and adding some waits to it?
    Interested in C# and Electrical Engineering? This might interest you.

  5. #5
    Join Date
    Aug 2007
    Posts
    75
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I thought the obj functions were working ok, but maybe it'll have to wait until the update to finish it. No probs other projects to finish!

    @smartz, you pm box was full so i couldnt mail you back...

    edit: fixed the lag by adding a extra wait (see first post) but it still wont pick up bones...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Lagging bad!
    By Illkillutill in forum OSR Help
    Replies: 6
    Last Post: 04-15-2008, 01:04 AM
  2. its keeps on lagging
    By cheese444222 in forum OSR Help
    Replies: 2
    Last Post: 10-08-2007, 09:58 PM
  3. Lagging etc!!
    By TravisV10 in forum OSR Help
    Replies: 10
    Last Post: 08-29-2007, 08:26 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
  •