Results 1 to 15 of 15

Thread: Help.

  1. #1
    Join Date
    Jul 2008
    Location
    Far Off Pot Fields, Nowhere
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help.

    Can someone help me make a procedure that finds and trades a npc without the cursor jumping around and not finding the npc.
    Please

  2. #2
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Which NPC? That makes all the difference.

  3. #3
    Join Date
    Jul 2008
    Location
    Far Off Pot Fields, Nowhere
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    aemad and kortan at the south ardougne general store.

  4. #4
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    I can try to make one if you provide me with a screenshot. I don't have access to Ardougne.

  5. #5
    Join Date
    Jul 2008
    Location
    Far Off Pot Fields, Nowhere
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok =p

  6. #6
    Join Date
    Jul 2008
    Location
    Far Off Pot Fields, Nowhere
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Will this work?

  7. #7
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Can you post it via imageshack, or something? Attaching it to your post seems to have shrunk it. Unless it was already that small, that is.

    Edit: Ooo, my 666th post.

  8. #8
    Join Date
    Jul 2008
    Location
    Far Off Pot Fields, Nowhere
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    There is bigger one

  9. #9
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Much better. Let's see what I can do.

    Edit: One last thing, since the screen didn't help as much as I'd hoped. Go into the game, then use the color picker on either Aemad's or Kortan's hair. Then, reload the game (as in completely refresh the page) and do it again. And then a third time. And then post the colors you get from it.

  10. #10
    Join Date
    Jul 2008
    Location
    Far Off Pot Fields, Nowhere
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Color Picked: 8290184 at (-1244384, -5174071)
    Color Picked: 6842480 at (-1244421, -5174085)
    Color Picked: 7434874 at (-1244420, -5174099)

  11. #11
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Alright, lemme know if this works or not:
    SCAR Code:
    {*******************************************************************************
    Function AemadFindAdnClick: Boolean;
    By: senrath
    Description: Attempts to find and click either Aemad or Kortan and trade with them
    *******************************************************************************}

    function AemadFindAndClick: Boolean;
    var
      CTS, I, X, Y: Integer;
      TPA: TPointArray;
      ATPA: Array of TPointArray;
    begin
      if not LoggedIn then
        Exit;
      Disguise('Finding shopkeeper.');
      CTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
      SetColorSpeed2Modifiers(0.38, 0.06);
      FindColorsSpiralTolerance(MSCX, MSCY, TPA, 7566204, MSX1, MSY1, MSX2, MSY2, 10);
      ColorToleranceSpeed(CTS);
      SetColorSpeed2Modifiers(0.2, 0.2);
      ATPA := TPAtoATPAEx(TPA, 15, 15);
      for I := 0 to High(ATPA) do
      begin
        MiddleTPAEx(ATPA[i], X, Y);
        MMouse(x, y, 3, 2);
        Wait(100 + random(50));
        if IsUpTextMultiCustom(['emad', 'orta', 'ortan']) then
        begin
          Result := True;
          Mouse(X, Y, 0, 0, False);
          Wait(100 + random(50));
          ChooseOption('rade');
          Wait(100 + random(50);
          Break;
        end;
      end;
      if not Result then
      begin
        MMouse(MSCX, MSCY, 3, 3);
        Wait(200 + Random(50));
        if IsUpTextMultiCustom(['emad', 'orta', 'ortan']) then
        begin
          Result := True;
          GetMousePos(X, Y);
          Mouse(X, Y, 0, 0, False);
          Wait(100 + random(50));
          ChooseOption('rade');
          Wait(100 + random(50));
        end;
      end;
      if Result then
        Writeln('Found either Aemad or Kortan!')
      else
        Writeln('Found neither Aemad nor Kortan.');
    end;

  12. #12
    Join Date
    Jul 2008
    Location
    Far Off Pot Fields, Nowhere
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Omfg I love You

  13. #13
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by Sir_Oober View Post
    Omfg I love You
    I take it that means it worked?

  14. #14
    Join Date
    Jul 2008
    Location
    Far Off Pot Fields, Nowhere
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    How did you conjure that up so fast?

  15. #15
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    I already had it made for a script I'm making. I just had to change the color it looked for.

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
  •