Results 1 to 6 of 6

Thread: [AeroLib[COLOUR] NPC find/interact

  1. #1
    Join Date
    Apr 2017
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default [AeroLib[COLOUR] NPC find/interact

    While reflection is down, thought I'd go back to the roots with colour finding, thought this might be useful for some people..
    Personally I love when I can take repetitive lines and condense them into a single line :P

    Not sure if I was doing it wrong, but I can't see to do box:Tbox instead of having to use the x,y

    Simba Code:
    procedure findNPC(colour:Integer; x1:integer; y1:Integer; x2:integer; y2:integer; Tol:Integer; Uptext:String);
    begin
      repeat
        if FindColorTolerance(x,y,colour,x1,y1,x2,y2,tol) then
        begin
          humanMMouse(point(x,y),3,3);
          wait(random(50,100));
          if waitUpText(upText,100) then
          begin
            fastClick(Mouse_Right);
            wait(random(25,50));
          end;
        end;
      until chooseOption(uptext);
      wait(random(3000,4000));
    end;

    Pretty self explanatory, the values go colour -> tbox -> uptext -> interact option

    Example in use:

    chicken colour : 12345
    chicken tol: 123
    TBOX: 1,2,3,4

    findNPC(12345,1,2,3,4,5,123,'Attack C','ttack');

  2. #2
    Join Date
    Jul 2015
    Posts
    80
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    In aerolib you have TMSObjects which i find very reliable.

  3. #3
    Join Date
    Apr 2017
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by guerr View Post
    In aerolib you have TMSObjects which i find very reliable.
    hmm it does look much more accurate, will have to check that out, but ATM this works quite well and is very simple for me, usually doesn't have problem finding the NPC unless i'm standing ontop of them

  4. #4
    Join Date
    Jan 2012
    Location
    Sydney, Australia
    Posts
    877
    Mentioned
    12 Post(s)
    Quoted
    368 Post(s)

    Default

    As Guerr said there is already a function in AL that exists for this.

    In saying that though, having functions like this work just as well.

    Some feedback for you:
    Simba Code:
    until chooseOption(uptext);

    It might be worth trying to add an interaction option like Trade, Talk, Redeem, Teleport etc as a lot of useful NPCs have these right click options.

    Simba Code:
    if waitUpText(upText,100) then
    This is a good way to do it, but if you are dealing with an NPC surrounded by other NPCs or lots of players, the Uptext might return a different name, even if your mouse is right on the money. Could be worth adding a fail-safe that right clicks and checks to see if an option exists with the NPC name.

  5. #5
    Join Date
    Apr 2017
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Dan the man View Post
    ...
    hmm noted, will try and change it up a bit, ATM i've been using them at locations where there is only a single " Talk-To option for NPCs, like Talk-To Cook etc.

    Thanks for the feedback

    Still getting used to using Simba for osrs, Not sure how viable RS3 botting is now

  6. #6
    Join Date
    Jan 2012
    Location
    Sydney, Australia
    Posts
    877
    Mentioned
    12 Post(s)
    Quoted
    368 Post(s)

    Default

    Quote Originally Posted by theholyone1 View Post
    hmm noted, will try and change it up a bit, ATM i've been using them at locations where there is only a single " Talk-To option for NPCs, like Talk-To Cook etc.

    Thanks for the feedback

    Still getting used to using Simba for osrs, Not sure how viable RS3 botting is now
    I don't play RS3 but apparently its easier to bot on RS3 - smaller ban rate etc. No idea how true this is though.

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
  •