Results 1 to 4 of 4

Thread: Where's Waldo?

  1. #1
    Join Date
    Jul 2015
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default Where's Waldo?

    Just wondering what methods you scripters use for targeting a moving NPC that you'd like to interact with through a right click. For example, targeting a farmer so that you can pickpocket him.

    Edit:: Been playing around with more colors and was a little more patient. It now targets him correctly, but since the farmer keeps on walking away, how can I get the client to move the screen around to look for him? I've used randomCompass(75, 180, false); but, as the name suggests, that's pretty random and it doesn't stop moving the view after he's been found.

    Maybe I don't have to move the screen around at all... I'm going to just have it right click and wait after the first pickpocket to see if it's successful or not. If it's not successful and the farmer blurts out that annoying mom phrase "What do you think you're doing?", then it'll wait until he's not stunned, then click on pickpocket. Removes the need of me finding him at all since clicking pickpocket would find him for me-- I just have to have the script start with him in visible view. Problem is: figuring out how to do that ;D

    Any thought? =) This would be my third or fourth script for Simba, not including some unfinished ideas. I started three nights ago! Would appreciate as much help as I can getting this built. I wanna use this as a skeleton for other scripts that I've been contemplating ^_^
    Last edited by Snoozie; 07-15-2015 at 09:39 PM.

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

    Default

    Dual-filtering. iOak makes use of it. Use one color that's relatively unique, and another color that's found everywhere.

    If they're both found in the same place, however, you can be pretty sure you've found what you want.

    Best example I can think of is in iOak's code, but I can write up an in-depth explanation if you're interested in the concept.
    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

  3. #3
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by Snoozie View Post
    Just wondering what methods you scripters use for targeting a moving NPC that you'd like to interact with through a right click. For example, targeting a farmer so that you can pickpocket him.

    I've been playing around with lots of colors, but their clothes match the ground so well that it has a really difficult time finding him.
    Give us a picture

  4. #4
    Join Date
    Jul 2015
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    edited OP, sorry. Wasn't expecting responses that fast.

    @keepbotting, that's exactly what I did xD. Didn't know that was something people took advantage of! Either way, it's working very well, but it could be a lot better.
    Last edited by Snoozie; 07-15-2015 at 09:38 PM.

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
  •