Results 1 to 7 of 7

Thread: Function SolveFrogCave:Boolean;

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

    Default Function SolveFrogCave:Boolean;

    Well the frog cave solver never seems to work with me and idk if it works with anyone else.
    So i made this one. I know my codeing is very simple but i tested it a few times and it worked quite well. Maybey it can be used as a backup or something if the normal frog cave solver takes too long.
    Something like
    SCAR Code:
    MakeTime(FrogCaveOne)
    If TimeFromMakr(FrogCaveOne)>60000 then
    Begin
     FrogCave2;
    end;

    If you would like an explanation of how this works just ask.
    SCAR Code:
    {.include SRL/SRL.scar}
    Function FrogCave2:Boolean;
    var DTMCave,Frogtime:integer;
    begin
    DTMCAVE:= DTMFromString('78DA639CC8C4C050C88002CA8BE2184480342' +
           '310FF0702C610A09A00881C2B923A981A1060AC00AAD124A0660D' +
           '116AAA816AF250D504F454A3AA590254538D5F0D00CC1A0DBF');
      If FindDTM(DTMCAVE,x,y,MMX1,MMY1,MMX2,MMY2) then
      Begin
        Writeln('******** FOUND FROG RANDOM ********');
        PerfectNorth;
      end;
      X:=645
      Y:=46
      If FindColorSpiralTolerance(x,y,8096848,MMX1,MMY1,MMX2,MMY2,30)then
      Begin
        MouseFindFlag(x+3,y+10,5,5);
        Flag;
      end;
      MarkTime(FrogTime)
      Repeat
      If FindObj(x,y,'Talk',1614792,10) then
        Mouse(x,y,0,0,false)
        PopUp('Talk')
        TalkToRand;
      Until(TimeFromMark(FrogTime)>20000) or (NoGameTab=False)
      If NoGameTab Then
        Result:=False;
      If (NoGameTab=False) then
        Result:=True;
    end;

    begin
    setupsrl
    ActivateClient
    SolveFrog2
    end.

  2. #2
    Join Date
    Sep 2006
    Location
    Scripter's Heaven
    Posts
    455
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    cool, recently one of my guys got in a cave, and he didnt solve it.

    And check out my pascal interpreter!
    <R0b0t1> No, really, I went to a bar and picked up a transvestite.

  3. #3
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    I made one myself aswell, it's in the Test Corner forum ... Yet no-one wants to add it to srl

    Here it is : http://www.villu-reborn.com/showthread.php?t=3585

  4. #4
    Join Date
    Sep 2006
    Location
    Scripter's Heaven
    Posts
    455
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    that would be cool, three different ways to solve the frog! if only it was like that for other randoms like box!!!!

    And check out my pascal interpreter!
    <R0b0t1> No, really, I went to a bar and picked up a transvestite.

  5. #5
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Well, mine nearly works the same however mine works in any angle of the minimap

  6. #6
    Join Date
    Sep 2006
    Location
    Scripter's Heaven
    Posts
    455
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ooooh... burn! lol

    And check out my pascal interpreter!
    <R0b0t1> No, really, I went to a bar and picked up a transvestite.

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

    Default

    pfft i dont care
    PerfectNorth pl0x!
    lard are you gona test this on your guy stuck in the cave?

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
  •