Results 1 to 3 of 3

Thread: A quick question

  1. #1
    Join Date
    Nov 2007
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default A quick question

    Ok, so I have a *really* crappy and basic powerminer built. Long story short, it needs some work and I had a quick question...
    Is there a way to set it so it waits for the rock it's mining to be empty before it clicks on a new rock?
    If so, can you explain/show me?
    And if it's easier, here is my current script
    {Added wait times to help but still not effective enough}

    Program TestMiner;
    {.include SRL/SRL.scar}
    Var
    x,y: integer;
    const
    rockcolor= 2376036;

    Procedure ClickRock;
    Begin
    Repeat
    If(FindColor(x,y,rockcolor,0,0,700,700))Then
    MMouse(x,y,0,0);
    wait(2500+random(2500));
    Mouse(x,y,0,0,true);
    Until(InvFull);
    End;
    Procedure DropOre;
    Begin
    DropAll;
    End;
    Begin
    SetupSRL;
    Repeat
    wait(4000)
    ClickRock;
    DropOre;
    Until(false)
    End.

  2. #2
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Try this
    I fixed some stuff, hopefully this helps

    SCAR Code:
    {.include srl/srl.scar}
    var
     x, y, Rocks : Integer;
     
     
    Procedure ClickRock;
    Begin
      Repeat
        Rocks := FindRockColor;
        If(FindColor(x,y,Rocks,0,0,700,700))Then Mouse(x,y,0,0,true);
        repeat
          GameTab(3);
          GameTab(4);
        until (not(FindColor(x,y,Rocks,x - 5, y - 5, x + 5, y + 5)))
      Until InvFull
    End;

    Begin
      SetupSRL;
      Repeat
        wait(4000)
        ClickRock;
        DropAll;
      Until(false)
    End.

  3. #3
    Join Date
    Nov 2007
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok, thanks! I managed to find one solution to my problem since I asked the question, but this method is also nice to know. =D

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Just a quick question? Did I say quick?
    By SeanJohn in forum OSR Help
    Replies: 3
    Last Post: 01-28-2009, 12:03 AM
  2. Quick question
    By GinFoxface in forum OSR Help
    Replies: 2
    Last Post: 04-07-2007, 04:25 AM
  3. Quick Question
    By mage of begu in forum OSR Help
    Replies: 10
    Last Post: 01-12-2007, 10:48 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
  •