Results 1 to 6 of 6

Thread: MMouse going VERY slow?

  1. #1
    Join Date
    Nov 2006
    Posts
    158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default MMouse going VERY slow?

    Hmm okay im working on a lumby oak cutter and shop seller.
    Its working, but the mouse moves so darn slow its like 1 inch per hour :P
    Heres my script. Help plz
    SCAR Code:
    program OaksGotPwned;
    {.include SRL/SRL.Scar}

    const
         Shop = 2709391; // color of the pot of the general shop in minimap
         OakColor = 2975325; // color of the oak leaves, pick any color

    var
     x, y :integer;     // do not touch this

    /////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////

    procedure Signature;
    begin
      ClearDebug;
      writeln('Oaks Got Pwned! OMGZORZ!!!!!!!!!!!!!');
      writeln('This Script has been made by r3dr4g0n');
      writeln('Please do not distribute without permission');
      writeln('You can edit my script to make your own, just give me credit');
      writeln('ENJOY THE SCRIPT!');
      wait(3000 + random(750));
    end;


    ///////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////

    procedure FaceNorth;      /////////////////////
    begin                     //  Sets up your   //
         MakeCompass('N');    //  compass and    //
         HighestAngle;        //  highest angle  //
    end;                      /////////////////////

    ///////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////

    Procedure Randoms;            // finds normal randoms
    Begin                         // this is the best i can do...
         Findnormalrandoms;       // so far :)
    End;

    ///////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////

    Function CutOak: Boolean;
    begin
      repeat
         if(FindColor(x, y, OakColor, 1, 1, 515, 337)) then
         begin
              MMouse(x, y, 5, 5);
              Wait(100 + random(50));
              if IsUpText('ak') then
              begin
                Mouse(x, y, 0, 0, True);
                Result := True;
              end;
         end;
      until (result)
    end;

    //////////////////////////////////////////////////////////////////
    //////////////////////////////////////////////////////////////////

    procedure WalkItOut;
    begin
         if(FindColor(x, y, Shop, 584, 31, 719, 146)) then
         begin
              MMouse(x, y, 5, 5);
              Wait(100 + random(100));
              Mouse(x, y, 0, 0, True);
         end;
    end;

    //////////////////////////////////////////////////////////////////
    //////////////////////////////////////////////////////////////////

    begin
         Activateclient;    // minimizes scar and opens RS
         SetupSRL;
         Signature;
         Wait(3000+random(1000));        // waits 3 seconds before doing anything
         FaceNorth;         // faces in the right direction
         repeat
         CutOak;            // starts cutting oak
         Randoms;
         Wait(15000+random(15000));
         if InvFull then WalkItOut;   // walks to shop when ur inven is full
         until(false);
    end.

  2. #2
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Set the MouseSpeed to around 15-20.

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

    Default

    Can you please explain how? pretty much a newbie hehe

  4. #4
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    There is a global variable called MouseSpeed in SRL. A good range to set it is around 15 to 20. So, to do that, just put MouseSpeed:= Whatever you want it to be.

  5. #5
    Join Date
    Nov 2006
    Posts
    158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok thanks gonna try that.

  6. #6
    Join Date
    Nov 2006
    Posts
    158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    cool it works thanks. Now what I need is how to sell to the shop and walk back to the oaks hehe

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MMouse help
    By rogue poser in forum OSR Help
    Replies: 9
    Last Post: 12-02-2007, 06:13 PM
  2. MMouse Box
    By mat_de_b in forum Research & Development Lounge
    Replies: 8
    Last Post: 08-23-2007, 11:51 AM
  3. MMouse()
    By Dude in forum OSR Help
    Replies: 20
    Last Post: 08-20-2007, 02:14 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
  •