Results 1 to 8 of 8

Thread: Runescape Freezing and Another Problem

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

    Default Runescape Freezing and Another Problem

    hello everyone,

    after my willow project I decided to make a flax picker, using SRL and RadialWalk...The RadialWalk part is running fine, but the flax picking isn't that smooth here is my prob:

    first of all Runescape occasionally freezes after it clicks on a piece of flax...if anybody knows how to fix it I'd really appretiate it..

    My second problem is that i cant get the script to keep clicking the closest flax plant...it's always running around, clicking everywhere exept on the flax...

    heres my script so far:
    SCAR Code:
    program FlaxManiacXL;
    {.include SRL/SRL.scar}


      //---------------------------------------------------------------------------|
     // Begin Variables.                                                           |
    //-----------------------------------------------------------------------------|

    var
    x, y:                   Integer;
    Crlvl:                  Integer;
    Loads:                  Integer;
    Banked, Picked, Walked: Boolean;


      //---------------------------------------------------------------------------|
     // Begin Constants (Edit if the script doesn't find certain colors.           |
    //-----------------------------------------------------------------------------|
     
    const
    Flaxmap    = 10969691;
    FlaxRL     = 15328935;
    SpecTree   = 113428;
    palmplant  = 3043909;

      //---------------------------------------------------------------------------|
     // Script Starting!                                                           |
    //-----------------------------------------------------------------------------|

    ////////////////////////////////////////////////////////////////////////////////
    {                               AntiRandoms!                                   }
    ////////////////////////////////////////////////////////////////////////////////

    Procedure AntiRandom;
    begin
    end;

    ////////////////////////////////////////////////////////////////////////////////
    {                                 AntiBan!                                     }
    ////////////////////////////////////////////////////////////////////////////////

    Procedure AntiBan;
    begin
    end;

    ////////////////////////////////////////////////////////////////////////////////
    {                              Walking To Flax                                 }
    ////////////////////////////////////////////////////////////////////////////////

    procedure WalkFlax;
    begin
    walked:=False;
       Wait(2000+random(500));
       RadialWalk(SpecTree, 180, 90, 70, 1, 1); //Walking to our First tree
       RadialWalk(SpecTree, 270, 180, 70, 1, 1);//Walking to our Second tree
       RadialWalk(PalmPlant, 180, 90, 70, 1, 1);//Walking to the palm like plants
       Radialwalk(FlaxMap, 180, 90, 50, 1, 1);  //Walking to the Flax
         if (FindColorSpiralTolerance(x, y, FlaxRL, 0, 0, 510, 330, 7)) then
         begin
           Writeln('_-_Houston, We Found Flax!_-_')
           walked:=True;
         end;
    end;
    ////////////////////////////////////////////////////////////////////////////////
    {                                 Picking Flax                                 }
    ////////////////////////////////////////////////////////////////////////////////
    Procedure PickFlax;
    begin
      if (not(LoggedIn)) then
      Exit;
      if not walked then
      Exit;
      repeat
        begin
        if (FindColorSpiralTolerance(x, y, FlaxRL, 205, 90, 390, 290, 7)) then
         repeat
         begin
           Wait(1100+Random(100));
           Mouse(x, y, 2, 2, True);
         end;
         until(not(IsUpText('ick')))
        end;
      until(InvFull)
    end;



    begin
    {--}ClearDebug
    {--}SetupSRL;
    {--}SRLPlayerForm(true,[],[],[],[]);
    {--}LoginPlayer;

      // The 'Mainscript' will be starting from here
      WalkFlax;
      PickFlax;
    end.
    oh btw, I didn't start making the antirandom and antiban yet, ill get on it after the script itself is working fine...

  2. #2
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hmm try this:
    SCAR Code:
    Procedure PickFlax;
    begin
      if (not(LoggedIn)) then
      Exit;
      if not walked then
      Exit;
      repeat
        begin
        if (FindColorSpiralTolerance(MSCX,MSCY,x, y, FlaxRL, 205, 90, 390, 290, 7)) then
         begin
           Wait(1100+Random(100));
           Mouse(x, y, 2, 2, True);
           wait(10000+random(5000+random(500)));// change this if u want
         end;
        end;
      until(InvFull)
    end;


  3. #3
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think that it's just your computer that you are lagging. Try to run it at a friends house and see if it is the same thing. Also, that never happens to my computer except 1 time like right when the game starts.

    Edit: What cazax said. You don't need that long of a wait. Just do

    SCAR Code:
    Flag;
    Wait(250 + Random(300)); // For the picking part once you are there.

  4. #4
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm pretty positive you'll get an invalid parameters error if you do this...
    Quote Originally Posted by Cazax View Post
    hmm try this:
    SCAR Code:
    Procedure PickFlax;
    begin
      if (not(LoggedIn)) then
      Exit;
      if not walked then
      Exit;
      repeat
        begin
        if (FindColorSpiralTolerance(MSCX,MSCY,x, y, FlaxRL, 205, 90, 390, 290, 7)) then
         begin
           Wait(1100+Random(100));
           Mouse(x, y, 2, 2, True);
           wait(10000+random(5000+random(500)));// change this if u want
         end;
        end;
      until(InvFull)
    end;
    instead i think you need to do this:

    SCAR Code:
    Procedure PickFlax;
    begin
      if (not(LoggedIn)) then
      Exit;
      if not walked then
      Exit;
    wait(200);
      repeat
        begin //unnecessary begin, take it out if you aren't going to make it necessary
        x := MSCX
        y := MSCY
        if (FindColorSpiralTolerance(x, y, FlaxRL, 205, 90, 390, 290, 7)) then
         begin
           Wait(1100+Random(100));
           Mouse(x, y, 2, 2, True);
           wait(10000+random(5000+random(500)));// change this if u want
         end;
        end;
      until(InvFull)
    end;

    i did this in the reply screen so the standards might be off, sorry for that
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  5. #5
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Also,

    SCAR Code:
    x := MSCX
        y := MSCY
        if (FindColorSpiralTolerance(x, y, FlaxRL, 205, 90, 390, 290, 7)) then
    Wtf? That stores the place it found it in. You don't need to set that to anything.

  6. #6
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Da 0wner View Post
    Also,



    Wtf? That stores the place it found it in. You don't need to set that to anything.
    FindColorSpiralTolerance starts looking from where x and y are set at the moment, which would be why it's finding colors all around, so yes, he does need those
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  7. #7
    Join Date
    Mar 2007
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    im going to try it out now! to be continued...

    EDIT: script is working perfectly now, but is there a way of using radialwalk with tolerance? as you have to pick those colors every time

    Ty everyone!

  8. #8
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    autocolor the place to walk , idk how, but really just a procedure that would find the color and then result := getcolor(x,y), but you'd need to make sure somehow that it found that color everytime
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

Thread Information

Users Browsing this Thread

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

Posting Permissions

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