Results 1 to 3 of 3

Thread: small Frog random addition

  1. #1
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default small Frog random addition

    my player got stuck in the Frog random because the Frog Herald kept telling my guy to speak with him first, before talking to the princess, and the script did nothing about it

    heres my addition:
    SCAR Code:
    {*******************************************************************************
    function Frog_ClickFrog: Boolean;
    by: Awkwardsaw
    Description: Clicks the Frog Herald, if he makes you talk to him first before
                 speaking with the Prince/ Princess. Also goes through the conversation
    *******************************************************************************}

    function Frog_Talk_Herald : boolean;
    var
      HeraldTPA : TPointArray;
      Middle : TPoint;
      ATPA: T2DPointArray;
      I, X, Y : Integer;
    begin
      FindColorsSpiralTolerance(MMCX, MMCY, HeraldTPA, 1678613, MSX1, MSY1, MSX2, MSY2, 30);
      ATPA := SplitTPA(HeraldTPA, 20);
      for i := 0 to high(ATPA) do
      begin
        Middle := MiddleTPA(ATPA[i]);
        mmouse(Middle.x, Middle.y, 1, 1);
        wait(100 + random(300));
        if not isuptext('erald') then
          continue;
        getmousepos(x, y);
        mouse(x, y, 0, 0, true);
        wait(200 + random(300));
        While FindNPCChatText('ontinue', ClickLeft) Do
          Wait(3000 + Random(500));
        result := true;
        break;
      end;
    end;

    put it right before the Frog_ClickFrog function

    i cant test much, because i dont have an account in this situation anymore
    Last edited by Awkwardsaw; 04-24-2010 at 01:54 AM.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  2. #2
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    edit: i just tested this, with the current version and this version. this one worked and the other one didnt
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  3. #3
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Oh, the talk-to-herald-first-thing must be new.
    It wasn't like that when I made the solver.. Nice fix though thanks!

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
  •