Results 1 to 4 of 4

Thread: Can't figure out what i've done wrong!

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

    Default Can't figure out what i've done wrong!

    Once again, whilst making my first script I have en counted another compiling error. I try to fix, but after trying different things for over 10 minutes if I can't do it, I resort to posting for some external help, as I know there are far better scripters who can tell me what's wrong in an instant.

    Like I said this is my first script and have read many guides! (Credits to all the makers!).

    Simba Code:
    Function PickUpFrog:Boolean;
    begin
      repeat
          FindNormalRandoms
          if FindObjCustom(x, y, ['Swamp', 'toad'], [2190656], 5) then
          begin
            Mouse(x, y, 0, 0, false);
            ChooseOption('Take');
          end else
          begin
            writeln('Cannot find any Toads, Moving to another spot!');
            if (FindColorSpiralTolerance(x, y, 208 , MMX1, MMY1, MMX2, MMY2, 7)) then
            Mouse(x, y, 0, 0, True);
        until not IsUpText('toad') or (InvFull);
        until(InvFull);
      end;
    end;
    BOT TILL YOU DROP!

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Would be nice of you told error/line.

    You do have 1 repeat but TWO untils.
    Also I think you need and end for each begin BEFORE the untils.

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

    Default

    Don't worry, with those tips I managed to sort it out, thanks YoHoJo!
    BOT TILL YOU DROP!

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Also I think you need and end for each begin BEFORE the untils.
    Didnt make your brain explode?! Lol funny sentence.
    Glad you solved it!

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
  •