Results 1 to 9 of 9

Thread: bot picks up dropped ore

  1. #1
    Join Date
    Mar 2013
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Question bot picks up dropped ore

    hello, so i started making my own script and i got it all working and stuff (it mines iron ore and drops them) but when i has dropped them and begins the findobjcustom again to start mining, it picks up all my dropped or. i have found a thread with YoHoJo gave an explanation but i really didn't understand it. does anyone have an (not to difficult:P) idea on how to fix this?

    this is what it does:
    rs problemm.png

    thanks in advance and sorry for asking so much, i'm just new..

  2. #2
    Join Date
    Mar 2013
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    bump

  3. #3
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    yor uptext for mining ccant be the same as the uptext to pick them up

  4. #4
    Join Date
    Mar 2013
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by RJJ95 View Post
    yor uptext for mining ccant be the same as the uptext to pick them up
    i use findobjcustom with collor recognastion, and the color of the iron ore has the same color as the rocks, but i cant find any color that is different from the normal ore, so it always picks it up.

  5. #5
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by RJJ95 View Post
    yor uptext for mining ccant be the same as the uptext to pick them up
    This. Make sure you have 'ine' in the UpText.

  6. #6
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by larsi37 View Post
    i use findobjcustom with collor recognastion, and the color of the iron ore has the same color as the rocks, but i cant find any color that is different from the normal ore, so it always picks it up.
    make it so that is has to have "ine" in order for it to click.

    post your code

  7. #7
    Join Date
    Mar 2013
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by RJJ95 View Post
    make it so that is has to have "ine" in order for it to click.

    post your code
    this is my whole mining procedure:
    procedure MineDown;
    var
    x , y, PlusOne, Rockcounter: Integer;

    begin
    PlusOne:= P07_InvCount + 1;
    if P07_FindObjCustom (x, y, ['mi', 'ne', 'ro'], [1054247, 791328, 527385], 10) Then
    begin
    Writeln('Found some Tin');
    P07_MouseBox(X+5, Y+5, X+5, Y+5, mouse_left);
    MarkTime(RockCounter);
    repeat
    Antiban;
    wait(100);
    FindNormalRandoms;
    until (P07_InvCount=PlusOne) Or (TimeFromMark(RockCounter) > 7000 +random(1000))
    WriteLN('Mined Something or TimePassed');
    end;
    end;

    i dont know how i can put it as a scar code, so i just copy pasted it, sorry

  8. #8
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by larsi37 View Post
    this is my whole mining procedure:
    procedure MineDown;
    var
    x , y, PlusOne, Rockcounter: Integer;

    begin
    PlusOne:= P07_InvCount + 1;
    if P07_FindObjCustom (x, y, ['mi', 'ne', 'ro'], [1054247, 791328, 527385], 10) Then
    begin
    Writeln('Found some Tin');
    P07_MouseBox(X+5, Y+5, X+5, Y+5, mouse_left);
    MarkTime(RockCounter);
    repeat
    Antiban;
    wait(100);
    FindNormalRandoms;
    until (P07_InvCount=PlusOne) Or (TimeFromMark(RockCounter) > 7000 +random(1000))
    WriteLN('Mined Something or TimePassed');
    end;
    end;

    i dont know how i can put it as a scar code, so i just copy pasted it, sorry
    Make

    Simba Code:
    if P07_FindObjCustom (x, y, ['mi', 'ne', 'ro'], [1054247, 791328, 527385], 10) Then

    Simba Code:
    if P07_FindObjCustom (x, y, ['Min', 'ine'], [1054247, 791328, 527385], 10) Then

    2 letters is to broad, it might get it confused with "Take copper ore"

  9. #9
    Join Date
    Mar 2013
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by RJJ95 View Post
    Make

    Simba Code:
    if P07_FindObjCustom (x, y, ['mi', 'ne', 'ro'], [1054247, 791328, 527385], 10) Then

    Simba Code:
    if P07_FindObjCustom (x, y, ['Min', 'ine'], [1054247, 791328, 527385], 10) Then

    2 letters is to broad, it might get it confused with "Take copper ore"
    wow thanks it worked!

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
  •