Results 1 to 18 of 18

Thread: Help with finding NPC's with no uptext

  1. #1
    Join Date
    Jun 2014
    Posts
    144
    Mentioned
    0 Post(s)
    Quoted
    61 Post(s)

    Default Help with finding NPC's with no uptext

    So PkHonor removed the uptext for certain NPC's to prevent botting, if an NPC is the same color as the environment and has no uptext, what's the best way to go about efficiently clicking on them?

  2. #2
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    1,011
    Mentioned
    50 Post(s)
    Quoted
    505 Post(s)

    Default

    I assume you can still right click?

    Also which NPCs specifically?

  3. #3
    Join Date
    Jun 2014
    Posts
    144
    Mentioned
    0 Post(s)
    Quoted
    61 Post(s)

    Default

    Quote Originally Posted by Citrus View Post
    I assume you can still right click?

    Also which NPCs specifically?
    You can still right click, but the uptext is simply "Walk here"

    It's the poh banker

  4. #4
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    If the NPC is the same color as the environment, how do you see it?

  5. #5
    Join Date
    Jun 2014
    Posts
    144
    Mentioned
    0 Post(s)
    Quoted
    61 Post(s)

    Default

    Quote Originally Posted by Turpinator View Post
    If the NPC is the same color as the environment, how do you see it?
    What I mean by that is his shirt is the same color as the flooring and his pants are a solid black, meaning he has no unique colors to him.

    Another problem I've run into is PkHonor has also made the empty furniture slots lacking uptext as well. An empty bench slot is just a see through white color, which unfortunately also matches a lot of colors in the room.

  6. #6
    Join Date
    Mar 2013
    Location
    Argentina
    Posts
    758
    Mentioned
    27 Post(s)
    Quoted
    365 Post(s)

    Default

    have you tried using DTM and trying some nice ATPA and TPA grouping ??
    Formerly known as Undorak7

  7. #7
    Join Date
    Jun 2014
    Posts
    144
    Mentioned
    0 Post(s)
    Quoted
    61 Post(s)

    Default

    Quote Originally Posted by Lipcot View Post
    have you tried using DTM and trying some nice ATPA and TPA grouping ??
    Well I never use DTM for objects that move, just for inventory stuff.

    As far as ATPA and TPA goes I've never really bothered learning how to use those effectively. I'll try learning it now though.

  8. #8
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    Quote Originally Posted by Spotify View Post
    Well I never use DTM for objects that move, just for inventory stuff.

    As far as ATPA and TPA goes I've never really bothered learning how to use those effectively. I'll try learning it now though.
    tpas are the best around, and nothings ever gonna keep them down.
    post a pic of the gamescreen with the npc there. then we can really see if its as hard as you make it sound.

  9. #9
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    That's the worst anti-bot technique I've ever heard of... it'll only end up affecting legitimate players.

    In the absence of UpText, you've got to find an alternative second method for verifying that a given object is indeed the object that you want to click.

    Since this is a private server, I'd advocate a somewhat brute-force method: refine your colors very well, then right-click on everything and read the chooseOption menu. If the correct option exists, click it. If not, move onto the next object.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  10. #10
    Join Date
    Jun 2014
    Posts
    463
    Mentioned
    27 Post(s)
    Quoted
    229 Post(s)

    Default

    Well, click the yellow dot on the minimap and then right click where your character is since it's a rsps shouldn't matter lol
    Tsunami

  11. #11
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    right click them lol
    Use a mmtoms formula (if it still shows as a yellow dot on minimap), then right click it and search for a bitmap of the attack option, then click it
    p.s. your alotic thiever was dank back in the day

  12. #12
    Join Date
    Jun 2014
    Posts
    144
    Mentioned
    0 Post(s)
    Quoted
    61 Post(s)

    Default

    Quote Originally Posted by Turpinator View Post
    tpas are the best around, and nothings ever gonna keep them down.
    post a pic of the gamescreen with the npc there. then we can really see if its as hard as you make it sound.
    Well it may not be difficult to you fellas, but I'm not that great at scripting, I just stick to color finding really.

    No object in this room has uptext, only "walk here"
    But here it is;

  13. #13
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    Simba Code:
    program script;
    {$I SRL-6/SRL.Simba}

    var
      rsps_mainscreen: tbox;
      position: Tpoint;

    function FindObject(Color, Tol, pixels: integer; Hue, Sat: Extended): boolean;
    var
      Tpa: TpointArray;
      ATPA: T2DPointArray;
      I: Integer;
    begin
      rsps_mainscreen := intToBox(7, 7, 626, 266);
      if findcolorstolerance(Tpa, Color, rsps_mainscreen, 3, colorsetting(2, Hue, Sat)) then
      begin
        ATPA := ClusterTPA(Tpa, 10);
        atpa.sortfromMidpoint(rsps_mainscreen.getmiddle);
        if (length(ATPA) <= 0) then
        begin
          result := False;
          exit;
        end;
        for I := 0 to high(ATPA) do
        begin
          if (length(ATPA[I]) >= PIXELS) then
          begin
            position := MiddleTPA(ATPA[I]);
            result := True;
            exit;
          end;
        end;
      end
      else
        result := False;
    end;

    begin
      if FindObject(331099, 7, 25, 0.08, 0.69) then
      begin
        mouse(position);
        fastClick(mouse_right);
        wait(5000)
      end;
    end;
    right clicks him here everytime perfectly


    and btw the numbers are different because I accidentally refreshed it so started over. Also change the mainscreen tbox bounds

  14. #14
    Join Date
    Jun 2014
    Posts
    144
    Mentioned
    0 Post(s)
    Quoted
    61 Post(s)

    Default

    Quote Originally Posted by jstemper View Post
    Simba Code:
    program script;
    {$I SRL-6/SRL.Simba}

    var
      rsps_mainscreen: tbox;
      position: Tpoint;

    function FindObject(Color, Tol, pixels: integer; Hue, Sat: Extended): boolean;
    var
      Tpa: TpointArray;
      ATPA: T2DPointArray;
      I: Integer;
    begin
      rsps_mainscreen := intToBox(7, 7, 626, 266);
      if findcolorstolerance(Tpa, Color, rsps_mainscreen, 3, colorsetting(2, Hue, Sat)) then
      begin
        ATPA := ClusterTPA(Tpa, 10);
        atpa.sortfromMidpoint(rsps_mainscreen.getmiddle);
        if (length(ATPA) <= 0) then
        begin
          result := False;
          exit;
        end;
        for I := 0 to high(ATPA) do
        begin
          if (length(ATPA[I]) >= PIXELS) then
          begin
            position := MiddleTPA(ATPA[I]);
            result := True;
            exit;
          end;
        end;
      end
      else
        result := False;
    end;

    begin
      if FindObject(331099, 7, 25, 0.08, 0.69) then
      begin
        mouse(position);
        fastClick(mouse_right);
        wait(5000)
      end;
    end;
    right clicks him here everytime perfectly

    and btw the numbers are different because I accidentally refreshed it so started over. Also change the mainscreen tbox bounds
    Can you link me a tutorial on how to use that tool? I'm not using SRL-6 nor Lape. Still stuck in the SRL-5 Pascal days.

  15. #15
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    Quote Originally Posted by Spotify View Post
    Can you link me a tutorial on how to use that tool? I'm not using SRL-6 nor Lape. Still stuck in the SRL-5 Pascal days.
    https://villavu.com/forum/showthread.php?t=26944, nothing wrong with good old srl-5

  16. #16
    Join Date
    Jun 2014
    Posts
    144
    Mentioned
    0 Post(s)
    Quoted
    61 Post(s)

    Default

    Quote Originally Posted by jstemper View Post
    right click them lol
    Use a mmtoms formula (if it still shows as a yellow dot on minimap), then right click it and search for a bitmap of the attack option, then click it
    p.s. your alotic thiever was dank back in the day
    I'd rather avoid using the minimap and extra clicking, I'm trying to make this script as fast as possible.

    And thanks! It was a lot of work though to upkeep with Alotic's continuous updates to get rid of thieving bots. Feel free to fix it up though and get thief botting alive again in Alotic XD
    Quote Originally Posted by jstemper View Post
    https://villavu.com/forum/showthread.php?t=26944, nothing wrong with good old srl-5
    Cheers, I'll get reading.

  17. #17
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    Quote Originally Posted by Spotify View Post
    I'd rather avoid using the minimap and extra clicking, I'm trying to make this script as fast as possible.

    And thanks! It was a lot of work though to upkeep with Alotic's continuous updates to get rid of thieving bots. Feel free to fix it up though and get thief botting alive again in Alotic XD


    Cheers, I'll get reading.
    sadly alotic (best rsps imo) was shut down along with soulsplit, btw here is a video tut https://www.youtube.com/watch?v=HLfSFesd9-Q

  18. #18
    Join Date
    Dec 2013
    Location
    Sweden
    Posts
    269
    Mentioned
    17 Post(s)
    Quoted
    161 Post(s)

    Default

    This one should find it perfectly every time, it combines the black color of his pants and the red of his shirt. It also filters out too low or too high TPA:s, so it shouldn't click on the floor or other things with similar colors. You'll have to replace MSX1, MSY1, MSX2, MSY2 and MSCP with the coordinates of your servers (if you use an include this should be included, such as Aerolib). Also, you'll need the and_tpa plugin for this, download and put in your plugin folder (just put the dll file there, that's it).

    Simba Code:
    program new;
    {$I Aerolib/aerolib.simba} // if you don't want to use aerolib replace this with:
                              //{$loadlib AND_TPA}

    Function findNPC(var foundPNT : TPoint) : boolean;
    var
      UpperBodyTPA : TPointArray;
      LowerBodyTPA : TPointArray;
      ATPA : T2DPointArray;
    begin
      SetColorToleranceSpeed(2);
      SetToleranceSpeed2Modifiers(0.05, 0.35);
      FindColorsTolerance(UpperBodyTPA, 462430, 3, 10, 303, 325, 10);

      SetToleranceSpeed2Modifiers(0.93, 2.54);
      FindColorsTolerance(LowerBodyTPA, 1447437, 3, 10, 303, 325, 10);

      FilterTPADistTPAEx(UpperBodyTPA, 10, 6, LowerBodyTPA);
      FilterTPADistTPAEx(LowerBodyTPA, 10, 6, UpperBodyTPA);

      AppendTPA(UpperBodyTPA, LowerBodyTPA);
      DebugTPA(upperbodyTPA, '');
      if Length(UpperBodyTPA) > 50 then
      begin
        ATPA := ClusterTPAEx(UpperBodyTPA, 5, 10);
        FilterTPAsBetween(0, 50);
        FilterTPAsBetween(500, 10000);
        if ATPA = [] then Exit;
        SortATPAFromMidPoint(ATPA, MSCP);
        FoundPNT := MiddleTPA(ATPA[0]);
        Result := True;
      end;
    end;

    begin
      findnpc;
    end;

    It will return the midpoint of the NPC, which you can use with your mouse procedures. Let me know if you have any questions

    /Kristi
    "Once you begin to think, you can't stop."

    Life > 0

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
  •