Results 1 to 3 of 3

Thread: Once again, I have another problem!

  1. #1
    Join Date
    May 2012
    Posts
    190
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Once again, I have another problem!

    Title, says it all really, im trying to put a failsafe into place, if it cant find any toads in the loaction its at i want it to move so I try to use 'findcolorspiraltolerance', but it doesnt do anything :/


    Simba Code:
    Function PickUpFrog:Boolean;

    begin
      repeat
          FindNormalRandoms
          if FindObjCustom(x, y, ['Swamp', 'toad'], [2189375], 10) then
          begin
            Wait(500 + random(100));
            Mouse(x, y, 0, 0, false);
            ChooseOption('Take');
          end else
          begin
            writeln('Cannot find any Toads, Moving to another spot!');
            x := MMCX;
            y := MMCY;
            if (FindColorSpiralTolerance(x, y, 208 , 1, 2, 1, 2, 7)) then
            Mouse(x, y, 0, 0, True);
          end;
        begin
          repeat
        until not IsUpText('toad') or (InvFull);
        end;
      until(InvFull);
    end;

    Debug Box:
    Cannot find any Toads, Moving to another spot!
    Cannot find any Toads, Moving to another spot!
    Cannot find any Toads, Moving to another spot!
    Cannot find any Toads, Moving to another spot!
    Cannot find any Toads, Moving to another spot!
    BOT TILL YOU DROP!

  2. #2
    Join Date
    Jul 2007
    Location
    Finland
    Posts
    304
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    if (FindColorSpiralTolerance(x, y, 208 , 1, 2, 1, 2, 7)) then
    The area where you are searching is wrong.

    Use this if you want find color from mainscreen
    if (FindColorSpiralTolerance(x, y, 208 ,MSX1, MSY1, MSX2, MSY2, 7)) then
    if you want find it from minimap change MS to MM

  3. #3
    Join Date
    May 2012
    Posts
    190
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Mhm, I had it like that before, but tried it again and it did'nt work... But thanks anyway!
    Last edited by ABC!; 05-27-2012 at 08:24 AM.
    BOT TILL YOU DROP!

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
  •