Results 1 to 4 of 4

Thread: first power miner, need a little help.

  1. #1
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default first power miner, need a little help.

    i finally made my first power miner!! it mines any ore, drops, has all possible anti randoms, and making anti ban and progress report for it. for mining the ore, i made a tolerance changer, so if it doesen't find the color it adds 1 to the tolerance. the only problem is, when i run the script, each time it goes to mine a rock it goes through the tolerance changer again, and doesen't save the tolerance when the color was found. heres that part of the script:
    SCAR Code:
    function Mining: Boolean;
    var x,y:Integer;
    Tol:Integer;
    LoadsNum:Integer;
    begin
        if(not(LoggedIn))then
       Exit;
      if(not(Result))then
      Tol:=Tol+1;
        repeat
        wait(25+random(50))
        FindRandoms;
        if (FindColorSpiralTolerance(x,y,RockColor,0,0,249,179,Tol)) then
     begin
         Result:=True;
         MMouse(x,y,0,0);
         Wait(50+random(500));
         Mouse(x,y,0,0,true);
         Wait(1000+random(400));
         LoadsNum:= LoadsNum+1;
         if(LoadsNum<(Loads))then
        Exit;
     end;
      until
      (InvFull);
    end;
    I am not 100% sure it repeats from scratch adding to the tolerance each time it clicks rock, but it takes like 15 seconds between clicks atleast, so I am 99.9% sure. anybody know how to make it save the tolerance so that it only finds it at beginning of script? Thanks in advance for the help, once i get this down i have a script
    oh an i just thought this was the coolest thing ever
    /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
    | SRL Randoms Report |
    | www.villu-reborn.com |
    |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
    | Talking Random[s] : 1 |
    | Rick[s] Solved : 1 |
    \~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/

    lol when i was running it for a few seconds i got this random, and it solved it! lol, I've been trying to get randoms working for a while :P

  2. #2
    Join Date
    Dec 2006
    Posts
    27
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    First of all, what exactly does this function do? And for saving the toleramce so it only does it at the beginning of the script, I would do something like this:
    SCAR Code:
    program PowerMiner;

    var
      x, y, tol : Integer; //make sure tol is global
     
    const
      RockColor = 2345354; //made up number

    function GetTolerance : Integer;
    var
      i : Integer;
    begin
      repeat
      i := i + 1;
      until(FindColorSpiralTolerance(x, y, RockColor, 0, 0, 249, 179, i))
      Result := i;
    end;

    begin
      tol := GetTolerance;
    end.
    that should save the tolerance you need to find the rock so you only need to look for the tolerance once

  3. #3
    Join Date
    Jan 2007
    Location
    USA
    Posts
    1,782
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I would probably increase the tolerance at inteverals more as not to take so long but the funct above is right

    Join the fastest growing merchanting clan on the the net!

  4. #4
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    alright awsome! so all i need to do is put the tolerance adder as a separate function, then call for it in my mining procedure right? thanks for the help guys, i now added a progress report to my script too, so its really coming together good.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. power miner
    By loliker123 in forum RS3 Outdated / Broken Scripts
    Replies: 1
    Last Post: 08-28-2008, 09:12 PM
  2. Power Miner help
    By Harkonnen in forum OSR Help
    Replies: 6
    Last Post: 07-14-2008, 02:12 AM
  3. I need help with my power miner
    By dallas574 in forum OSR Help
    Replies: 3
    Last Post: 04-27-2008, 04:26 PM
  4. Power miner??????
    By dewituwont in forum OSR Help
    Replies: 4
    Last Post: 06-18-2007, 03:34 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
  •