Results 1 to 13 of 13

Thread: npc finding. mid script crisis

  1. #1
    Join Date
    Oct 2007
    Location
    Atlantis with u'r girlfriend
    Posts
    251
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default npc finding. mid script crisis

    oh please, oh please, oh please somebody post here an npc finding script. ive made a 400 line script that has to be on halt till november the second for an npc finding script, unless someone helps me out by posting one. or teaching me how to find an npc.

  2. #2
    Join Date
    Oct 2007
    Location
    Atlantis with u'r girlfriend
    Posts
    251
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    no one help, why not. you making me sad.

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

    Default

    SCAR Code:
    repeat
      wait(50);
    until(FindObj(x, y, 'text', color, tol));

    Something like that?
    :-)

  4. #4
    Join Date
    Jun 2007
    Location
    La Mirada, CA
    Posts
    2,484
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    yea npc findings are are everywhere...look in free script section and all in the test corner....use resources...make sure you credit properly if you use someones function/procedure tho

    "Failure is the opportunity to begin again more intelligently" (Henry Ford)


  5. #5
    Join Date
    May 2007
    Location
    Netherlands, Amersfoort
    Posts
    2,701
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    I hope this helps ya:

    SCAR Code:
    {*******************************************************************************
    Function FindAndClickNPC(NpcColors: TIntegerArray; UpTexts: TStringArray;
    RChooseOption :string; RightOrLeftNpcClick:boolean; HMTolerance: integer;):boolean;
    By: MasterKill (started by hermpie)
    Description: Finds and clicks an NPC
    Use: FindAndClickNPC([123456, 345678], ['ancelot', 'Sir'], 'Talk', False, 5)
    RChooseOption: if right click on npc what text to click?
    *******************************************************************************}

    Function FindAndClickNPC(NpcColors: TIntegerArray; UpTexts: TStringArray; RChooseOption :string; RightOrLeftNpcClick:boolean; HMTolerance: integer):boolean;
    var
      Coord123X, Coord123Y :Integer;
    begin
      repeat
        if FindObjCustom(Coord123X, Coord123Y, UpTexts, NpcColors, HMTolerance) then
        begin
          If RightOrLeftNpcClick then
          begin
            Mouse(Coord123X, Coord123Y, 0, 0, True);
            Result := True;
            WriteLn('Found NPC');
            exit;
          end else
          begin
            Mouse(Coord123X, Coord123Y, 0, 0, False);
            Wait(50 + random(100));
            if ChooseOption(RChooseOption) then
            begin
              Result:=True;
              WriteLn('Found NPC');
              Exit;
            end else WriteLn('NPC missclick!');
          end;
        end else
        begin
          WriteLn('not found NPC!');
          Result := False;
          exit;
        end;
      until(False)
    end;

    SCAR Code:
    IF FindAndClickNpc([2345345, 2345324], ['masterkill'], 'talk', False, 6) THEN

  6. #6
    Join Date
    Oct 2007
    Location
    Atlantis with u'r girlfriend
    Posts
    251
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh savior, all hail master kill. ty,ty. I've been waiting so long for this. ill be sure to give credit, i never forget credit. even for simple functions.

  7. #7
    Join Date
    May 2007
    Location
    Netherlands, Amersfoort
    Posts
    2,701
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    lol np, good luck with it.

    also good luck with your script

  8. #8
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Read
    SCAR Code:
    By:Hermpie and edited a bit for the leechers to make it easier ;)
    that should be his credit he told me he did it to make it easier but the full version got more options etc

    Hermpie

  9. #9
    Join Date
    May 2007
    Location
    Netherlands, Amersfoort
    Posts
    2,701
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by hermpie View Post
    Read
    SCAR Code:
    By:Hermpie and edited a bit for the leechers to make it easier ;)
    that should be his credit he told me he did it to make it easier but the full version got more options etc

    Hermpie
    dude i changed the whole function code.

    nuubie jk

  10. #10
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you just deleted some stuff and added 2 writeln's and its now your function procedure?

  11. #11
    Join Date
    May 2007
    Location
    Netherlands, Amersfoort
    Posts
    2,701
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    omg, i changed the whole code. just left some old 'vars' in it.

    this is the perfect credit.

    try to use your eyes

    EDIT: get on msn and be angry at me... i won't change it.

  12. #12
    Join Date
    Oct 2007
    Location
    Atlantis with u'r girlfriend
    Posts
    251
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    um, are you guys rivals or something. all though as a human i do like when things get spicy. btw my script is all most finished ill send you guys each a copy, it wont become public for the mean while since what it does is highly exploitable.
    you guys are awesome.

  13. #13
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    To get some good colors to put in the array, use this
    http://www.villavu.com/forum/showthread.php?t=19731
    take some screenies of the npc from different angles/worlds, in paint/etc crop and black out background colors, then feed that program the bitmaps, and it spits out some good colors to use.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Economic Crisis
    By Yakman in forum Discussions & Debates
    Replies: 99
    Last Post: 06-04-2009, 10:09 PM
  2. need help with the color finding part of my script!
    By poolikemax in forum OSR Help
    Replies: 2
    Last Post: 02-07-2008, 09:28 AM
  3. Economic Crisis?
    By 1337m4n in forum RuneScape News and General
    Replies: 4
    Last Post: 09-05-2007, 10:35 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
  •