Results 1 to 5 of 5

Thread: Need Help With My Mining Script.

  1. #1
    Join Date
    Dec 2006
    Posts
    908
    Mentioned
    1 Post(s)
    Quoted
    17 Post(s)

    Default Need Help With My Mining Script.

    Well you see, the problem is i tried many ways to make SCAR find the Iron, Tin or Copper Rocks. I tried Auto-Color, but that did not work. I tried FindColorSpiralTolerance, but it kept clicking on my character. And i tried FindColorTolerance, but all it did is click on random stuff.

    Now i though of a way to avoid SCAR from choosing the wrong stuff, but that went wrong too.

    SCAR Code:
    unction TempColor : Boolean;
    var
     Tries : Integer;
    begin
      repeat
        TempIronColor := 2108229;
        FindColorTolerance(tx, ty, 2108229, MSX1, MSY1, MSX2, MSY2, 5);
        MMouse(tx, ty, 1, 1);
        if (IsUpText('Mine')) then
        begin
          Writeln('Found ' + Players[CurrentPlayer].Strings[0] + ' Rock.');
          Result := True;
        end;
        if (not (IsUpText('Mine'))) then
        begin
          Writeln('Could not find a ' + Players[CurrentPlayer].Strings[0] + ' Rock.');
          Result := False;
          Tries := Tries + 1;
          if (Tries = 5) then
          begin
            Writeln('Exiting, could not find any ' + Players[CurrentPlayer].Strings[0] + ' Rock.');
            LogOut;
          end;
        end;
      until (Result = True);
    end;

    I thought that if the IsUpText('Mine') is not there, than it would look for other colors, but it didn't! All it did was just keep on searching on that spot where it previously found the color... Can some one please help me with my Power Multi Mine or Bank. Thanks... If your wonder what it does. It mines from tin, copper and iron. And has the option to bank in veb, akb or feb, using radial walk (Which im still working on.)

    Another problem are the FindBlackChatMessage, i tried using it but then it wont find the ('You manage to mine some') message....

  2. #2
    Join Date
    Sep 2007
    Location
    Pennsylvania
    Posts
    3,396
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What worked for me in my powerminer - ACAv2 with cts 2, and then using the best color that it generated with FindObjTPA. Then for finding when the rock was mined, I had it count how many ores were in the inventory and then while it was mining to watch for another ore to appear (makes it laggy, so add some waits into it).

    GL

  3. #3
    Join Date
    Dec 2006
    Posts
    908
    Mentioned
    1 Post(s)
    Quoted
    17 Post(s)

    Default

    function FindObjTPA(var x, y: integer; color, tol, cts, ObjWidth, ObjHeight, minCount :Integer; UpText: tstringarray): Boolean;
    By: Wizzup?
    Description:
    Finds object using WizzyPlugin functions.
    Starts with a Spiral from x and y.
    Put in the color, Tolerance and ColorToleranceSpeed.
    If you don't know what colortolerancespeed to choose, put in -1.
    ObjWidth and ObjHeight are the parameters TPAToATPAEx uses, thus filtering
    the MS's FindColorsSpiralTolerance points in boxes defined by
    ObjWidth and ObjHeigth.
    minCount is the amount of colors it should at least find in a Object box.
    UpText, is ofcourse the text the object should have. In the Multi variant the
    UpText is a string array.
    1. What/Where is WizzyPlugin?
    2. What does CTS do? Does it detect animation or something?
    3. TPAToATPAEx?
    4. Do i have to find the exact ObjWidth and Heigh?
    5. minCount? So i am suppose to insert like 3 colors just like FindObjCustom?

    This function is strange to me... =l

    And also the method of finding wether the ore is been mined, THANKS! +REP. So much, i should have though of that =p

  4. #4
    Join Date
    Sep 2007
    Location
    Pennsylvania
    Posts
    3,396
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by deathscytex View Post
    1. What/Where is WizzyPlugin?
    2. What does CTS do? Does it detect animation or something?
    3. TPAToATPAEx?
    4. Do i have to find the exact ObjWidth and Heigh?
    5. minCount? So i am suppose to insert like 3 colors just like FindObjCustom?

    This function is strange to me... =l

    And also the method of finding wether the ore is been mined, THANKS! +REP. So much, i should have though of that =p
    1. Plugins folder I think, not sure if you can view it though.
    2. Idk All I know is that when I put it on 2 it was way more accurate.

    For the rest read Rasta Magician's 'The Simple TPA Power' tut. I think it's in the intermediate scripting tut section.

  5. #5
    Join Date
    Dec 2006
    Posts
    908
    Mentioned
    1 Post(s)
    Quoted
    17 Post(s)

    Default

    Thanks Runescapian, i got it to work. Also found that guide mentioned.

    i manage to make it work =3 thanks!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. What kind of mining script do you want?
    By Runescapian321 in forum RS3 Outdated / Broken Scripts
    Replies: 13
    Last Post: 02-04-2008, 04:39 AM
  2. Its Been a While Since a New Mining Script Has Been Written...
    By mnagi85 in forum RS3 Outdated / Broken Scripts
    Replies: 2
    Last Post: 12-01-2007, 09:51 AM
  3. First Mining Script (Broke)
    By Geebly in forum First Scripts
    Replies: 5
    Last Post: 10-23-2007, 02:54 PM
  4. Looking for a Mining script or two
    By The Claw in forum RS3 Outdated / Broken Scripts
    Replies: 2
    Last Post: 04-24-2007, 05:33 PM
  5. Script for mining
    By Annighlater in forum RS3 Outdated / Broken Scripts
    Replies: 1
    Last Post: 03-27-2007, 09:59 AM

Posting Permissions

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