Results 1 to 7 of 7

Thread: Little help / suggestions with FindObjCustom needed :)

  1. #1
    Join Date
    Mar 2013
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default Little help / suggestions with FindObjCustom needed :)

    Made myself a simple Hunger bot that waits for Check option in the bird snare, for the triggered trap i made the MarkTime--TimeFromMark.

    Now what i was hoping was a way to see if the snare says "/ 2 more options" instead of "/ 3 more options" when hovering over and if so it would pick the snare up like it does after 40s in my script atm.

    Code:
    begin
    MarkTime(timer);
                repeat (FindObjCustom(x, y, ['ird', 'nare'], [4483474], 5))
                ClickMouse2(mouse_right);
                wait(100+random(50));
                until WaitOptionEx('heck', 'nare', ClickLeft, 150) or (TimeFromMark(Timer) > 40000);
                if (FindObjCustom(x, y, ['ird', 'nare'], [4483474], 5)) then
                      begin
                      ClickMouse2(mouse_right);
                      wait(100+random(50));
                      WaitOptionEx('ismantle', 'nare', ClickLeft, 150);
                      end;
                sleep(1500);
                InvMouse(2, mouse_Left);
                sleep(2500);
    end;

  2. #2
    Join Date
    Mar 2013
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Other thing that could work would be that if it doesnt find option Investigate anymore it would pick it up..

    Wondering how OptionsExist works.. Testing it like this

    Code:
    until WaitOptionEx('heck', 'nare', ClickLeft, 150) or OptionsExist(['Investigate'], False);
    But this didnt work
    Last edited by Rodelol; 04-28-2013 at 06:49 PM.

  3. #3
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    IsupText('3 more') or something would work

    OptionsExist should work

    Creds to DannyRS for this wonderful sig!

  4. #4
    Join Date
    Mar 2013
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Thanks alot for advice Sjoe.

    Code:
    begin
                repeat (FindObjCustom(x, y, ['ird', 'nare'], [4483474], 5))
                MMouse(x, y, 0, 0);
                sleep(1000);
                until IsupText('heck') or IsupText('2 more');
                ClickMouse2(mouse_left);
                sleep(1500);
                InvMouse(2, mouse_Left);
                sleep(8500);
    end;
    This worked perfectly until "2 more" happened :P does not trigger from it

    Ill stop trying myself.. Tried with CountColorTolerance but it seems to be quite random ;D.. Im fine with 40s wait if bird doesnt come i guess
    Last edited by Rodelol; 04-28-2013 at 08:30 PM.

  5. #5
    Join Date
    Mar 2013
    Location
    The Netherlands
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    70 Post(s)

    Default

    ['ird', 'est'] ???

    Could try DTM's or bitmaps if it's in the inv.
    Nothing to do here :l.

  6. #6
    Join Date
    Mar 2013
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Quote Originally Posted by jelknab View Post
    ['ird', 'est'] ???
    I have no idea where u pulled this from or why u typed this here.

    Quote Originally Posted by jelknab View Post
    Could try DTM's or bitmaps if it's in the inv.
    Obviously the trap is set to ground and is not in my inventory.

  7. #7
    Join Date
    Mar 2013
    Location
    The Netherlands
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    70 Post(s)

    Default

    I trought you were searching birdnests :LLLL.

    Oh, the stupity.........
    Nothing to do here :l.

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
  •