Results 1 to 9 of 9

Thread: Need help with Finding an NPC

  1. #1
    Join Date
    Sep 2007
    Location
    Behind You
    Posts
    72
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Need help with Finding an NPC

    To anyone who wishes to help:

    I need help on finding an NPC. I dont know wheather to use FindColorTolerance and then Mouse, or wheather to use FindObj, or just use a bitmap. I am currently using something like the following: (note there will probably be errors because I am typing this on the spot, not looking at my script.)

    SCAR Code:
    Function Find*****:Boolean;
    var
      x : Integer;
      y : Integer;

    begin
      if(FindColorTolerance(x,y,*****,MCX1,MCY1,MCX2,MCY2,10)) then
        begin
          MMouse(x,y,3,3);
          If (IsUpTextMulti('alk','***','tal')) then
          Mouse(x,y,1,1,False);
          ChooseOption('rade');
          Result := True;
          Exit;
        end;
      Result := False;
      Writeln('Could Not Find *****');
    end;

    All Help Would be Greatly Appreciated.
    ~JNCR
    The[Cheese] really puts it perfectly:

    Reflection is win

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    SCAR Code:
    Function Find*****:Boolean;
    var
      x : Integer;
      y : Integer;
     
    begin
      if(FindColorTolerance(x,y,*****,MSX1,MSY1,MSX2,MSY2,10)) then
        begin
          MMouse(x,y,3,3);
          If (IsUpTextMulti('alk','***','tal')) then
          Mouse(x,y,1,1,False);
          ChooseOption('rade');
          Result := True;
          Exit;
        end;
      Result := False;
      Writeln('Could Not Find *****');
    end;

    Your FindColorTolerance coordinates were messed up. MC refers to the Chatbox, while MS is the MainScreen.
    :-)

  3. #3
    Join Date
    Sep 2007
    Location
    Behind You
    Posts
    72
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Your FindColorTolerance coordinates were messed up. MC refers to the Chatbox, while MS is the MainScreen.
    yeah as i said i typed it up on the spot. i didnt really think too much about it. i just want to know what to use. findcolortolerance? bitmaps? FindObj?

    ?????
    The[Cheese] really puts it perfectly:

    Reflection is win

  4. #4
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    FindObj works good for locating NPCs.
    :-)

  5. #5
    Join Date
    Sep 2007
    Location
    Behind You
    Posts
    72
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks a lot
    The[Cheese] really puts it perfectly:

    Reflection is win

  6. #6
    Join Date
    Apr 2007
    Location
    Texas
    Posts
    1,668
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hmm, i was thinking.. if you coulod come up wiht a creative way to auto color [part of it andf turn it into a dtm... ooooo

    lol.

    but thats just a [pain, dont worry about it..
    [IMG]http://farm3.static.flickr.com/2120/2052732965_348f3629d0_o.jpg[/IMG]

  7. #7
    Join Date
    Sep 2007
    Location
    Behind You
    Posts
    72
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by LordGregGreg View Post
    hmm, i was thinking.. if you coulod come up wiht a creative way to auto color [part of it andf turn it into a dtm... ooooo

    lol.

    but thats just a [pain, dont worry about it..
    how would i do that? i really want to know how.

    thanks,
    ~JNCR
    The[Cheese] really puts it perfectly:

    Reflection is win

  8. #8
    Join Date
    Aug 2007
    Posts
    1,404
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    The guy doesn't know how to use bitmaps (No offence, he said it himself), and you go throw custom autocoloring functions in his head LordGregGreg :P What kind of mean person are you :P

    Use what Metho D gave you, he's usually quite reasonable, and know what he's talking about.

    -Knives

  9. #9
    Join Date
    Sep 2007
    Location
    Behind You
    Posts
    72
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by King of Knives View Post
    The guy doesn't know how to use bitmaps (No offence, he said it himself), and you go throw custom autocoloring functions in his head LordGregGreg :P What kind of mean person are you :P

    Use what Metho D gave you, he's usually quite reasonable, and know what he's talking about.

    -Knives
    Lol it's ok. I looked at an HSL tutorial by Lorax and it looked pretty complecated . I guess I'll just use FindObj...

    Oh and today I learned how to use bitmaps. Looks like it's pretty useful. Gonna look into it some more a little later. Wondering if I should use that instead...

    Anyway, thanks for the help.
    The[Cheese] really puts it perfectly:

    Reflection is win

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Finding an NPC... I Need Help!
    By mormonman in forum OSR Help
    Replies: 9
    Last Post: 12-06-2008, 05:36 AM
  2. Replies: 3
    Last Post: 09-23-2008, 03:37 AM
  3. Gas finding help
    By Lancelot074 in forum OSR Help
    Replies: 9
    Last Post: 03-01-2008, 10:00 PM
  4. I need help with ENT finding
    By TravisV10 in forum OSR Help
    Replies: 23
    Last Post: 07-05-2007, 08:27 AM
  5. help with ent finding
    By Adamb_135 in forum OSR Help
    Replies: 4
    Last Post: 04-18-2007, 02:14 AM

Posting Permissions

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