Results 1 to 3 of 3

Thread: Find & Click NPC's

  1. #1
    Join Date
    Oct 2006
    Location
    Kentucky
    Posts
    70
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Find & Click NPC's

    I need help on figuring out how to find and click NPC's.
    Right now I need it for auto runebuying script, to click on betty but it will be very usefull for future scripts. Heres what I've gotten so far.


    Works great,but once it opens up it still trying to find betty and then after about 20 secs i get an error saying
    [Runtime Error] : Out Of Range in line 51 in script

    Plz Help



    SCAR Code:
    procedure SetupColors;
    begin
     NPCColors[1]  := 2026220;
     NPCColors[2]  := 6949227;
     NPCColors[3]  := 593486;
     NPCColors[4]  := 5441875;
     NPCColors[5]  := 6031709;
     NPCColors[6]  := 594515;
     NPCColors[7]  := 1184278;

     end;





     Procedure FindShop;
     var  CBx,CBy, GCIndex: Integer;
    begin
    if (ShopScreen)= False then
    for GCIndex := 1 to 16 do
    begin
    repeat
    if FindColorSpiralTolerance(CBx, CBy, NPCColors[GCIndex], MSX1, MSY1, MSX2, MSY2, 12) then
      Writeln('Found Rune Shop! Continuing...');
     Mouse(cbx,cby,22,17,false)
     wait(30)
     popup ('Trade')

    until (ShopScreen)= True
    end;
    end;
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig

  2. #2
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    change
    Code:
    for GCIndex := 1 to 16 do
    to
    Code:
    for GCIndex := 1 to 7 do
    Your array is only 7 numbers long, so you cant have the GCIndex length be more than 1-7.

  3. #3
    Join Date
    Nov 2006
    Posts
    120
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I am recanting my previous post because i didn't look close enough...sorry. >_<

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Find A color And Click
    By atmmaster2 in forum Outdated Tutorials
    Replies: 23
    Last Post: 12-22-2007, 04:47 PM
  2. Replies: 8
    Last Post: 11-15-2007, 03:11 PM
  3. Find a Chest & Left Click,Right Click
    By yanix in forum OSR Help
    Replies: 3
    Last Post: 10-03-2007, 06:40 PM
  4. Find bitmap and click it *doesn't work*
    By pdg in forum OSR Help
    Replies: 7
    Last Post: 06-24-2007, 01:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •