Results 1 to 3 of 3

Thread: TIny Mistake

  1. #1
    Join Date
    Jan 2007
    Posts
    248
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default TIny Mistake

    Hey, something is wrong with this code...
    SCAR Code:
    Procedure SearchPickHead; //**** By the Godfather
    var ix, iy, px, py, hx, hy: integer;
     begin
    if(findDTM(phandle, px, py, 555, 200, 700, 285))then
     begin
        FindColor(hx,hy,5663,10,20,500,325)
        or
        FindColor(hx,hy,10814,10,20,500,325)
        or
        FindColor(hx,hy,11844,10,20,500,325)
        or
        FindColor(hx,hy,9783,10,20,500,325)
      Mouse(hx,hy,2,4,true);
       wait(400+random(200));
        FindDTM(phead, ix, iy, 555, 200, 735, 460);
      Mouse(ix,iy,4,5,true);
      Mouse(px,py,3,4,true);
     end;
    end;

    i did something wrong at.....
    PHP Code:
    begin
        FindColor
    (hx,hy,5663,10,20,500,325)
        or
        
    FindColor(hx,hy,10814,10,20,500,325)
        or
        
    FindColor(hx,hy,11844,10,20,500,325)
        or
        
    FindColor(hx,hy,9783,10,20,500,325
    I did something wrong there, and i dont kno hwo to fix. Im pretty sure someone can see it right off the bat.

  2. #2
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    SCAR Code:
    Procedure SearchPickHead; //**** By the Godfather
    var ix, iy, px, py, hx, hy: integer;
     begin
    if(findDTM(phandle, px, py, 555, 200, 700, 285))then
     begin
        FindColor(hx,hy,5663,10,20,500,325)
        or
        FindColor(hx,hy,10814,10,20,500,325)
        or
        FindColor(hx,hy,11844,10,20,500,325)
        or
        FindColor(hx,hy,9783,10,20,500,325) then
      Mouse(hx,hy,2,4,true);
       wait(400+random(200));
        FindDTM(phead, ix, iy, 555, 200, 735, 460);
      Mouse(ix,iy,4,5,true);
      Mouse(px,py,3,4,true);
     end;
    end;

    i added an end to the final findcolor i dunno if that will help but thats all i could find

  3. #3
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think you want if statements to modify your findcolor procedure. Otherwise it will continue with the script and go to Mouse, but since there are no coords specified by findcolor it will go to the top left of the screen.

    SCAR Code:
    Procedure SearchPickHead; //**** By the Godfather
    var ix, iy, px, py, hx, hy: integer;
     begin
    if(findDTM(phandle, px, py, 555, 200, 700, 285))then
     begin
        if (FindColor(hx,hy,5663,10,20,500,325))  
          or
          (FindColor(hx,hy,10814,10,20,500,325))
          or
          (FindColor(hx,hy,11844,10,20,500,325))
          or
         (FindColor(hx,hy,9783,10,20,500,325)) then
       begin
         Mouse(hx,hy,2,4,true);
        wait(400+random(200));
         FindDTM(phead, ix, iy, 555, 200, 735, 460);
        Mouse(ix,iy,4,5,true);
        Mouse(px,py,3,4,true);
       end;
     end;
    end;

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mistake in manual
    By cathering_ in forum SRL Site Discussion
    Replies: 0
    Last Post: 10-05-2007, 07:13 PM
  2. mistake
    By sweetleaf in forum RuneScape News and General
    Replies: 0
    Last Post: 06-14-2007, 01:57 AM
  3. mistake in SCAR
    By Killerdou in forum News and General
    Replies: 4
    Last Post: 02-24-2007, 05:57 AM
  4. Tiny Mistake
    By TheGodfather in forum OSR Help
    Replies: 5
    Last Post: 02-13-2007, 07:00 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
  •