Results 1 to 14 of 14

Thread: Help with targets

  1. #1
    Join Date
    Oct 2012
    Location
    Porto, Portugal
    Posts
    218
    Mentioned
    0 Post(s)
    Quoted
    42 Post(s)

    Default Help with targets

    Hi. Im making a range guild script and I need help on finding the targets.

    These are the targets and I want to click this specific target:


    How do I do it?

    I think DTM's would do it. I could make the main point in the target I want and then the other points in other targets and in other things. What is the best/flawless way?

  2. #2
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Find a unique color on the target, store points in TPA, Splittpaex to make 5 boxes, sort these boxes from left to right, use TargetATPA[1]. If you need help, let me know.
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  3. #3
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    DTM is the most flawful way, any slight difference in angle/direction break it completely. Get ATPA of the yellow/red bulls-eye, sort it by x (preferably with direction compatibility) and choose index 1.

  4. #4
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    Easiest way would be to look for the blue circles, splittpa, middletpa and bam you got the middle of the target.
    I made a new script, check it out!.

  5. #5
    Join Date
    Oct 2012
    Location
    Porto, Portugal
    Posts
    218
    Mentioned
    0 Post(s)
    Quoted
    42 Post(s)

    Default

    How can I sort the ATPA's from the x coordinate??

    I want to sort TPA's from left to right. How do I do it?

  6. #6
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    SortTPAByX

  7. #7
    Join Date
    Dec 2011
    Location
    Nj
    Posts
    2,341
    Mentioned
    1 Post(s)
    Quoted
    18 Post(s)

    Default

    I would take a look at Riyyi's old script for this (if it is still there). IDk, check that out, it had some good stuff.

    For the basics of the basics of pascal, try my TuT. ||Photoshop Editing ||MapleResourceDung Script || Book a flight! BuySellTrip

  8. #8
    Join Date
    Oct 2012
    Location
    Porto, Portugal
    Posts
    218
    Mentioned
    0 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    SortTPAByX
    does it work for ATPA's too??

  9. #9
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by Nirvana View Post
    does it work for ATPA's too??
    SortATPAFromMidPoint, but that sorts from a point only so you've to make your own function to sort by X.

  10. #10
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SortATPAFrom(TargetATPA, 0, 100);
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  11. #11
    Join Date
    Oct 2012
    Location
    Porto, Portugal
    Posts
    218
    Mentioned
    0 Post(s)
    Quoted
    42 Post(s)

    Default

    This is just stupid I used that and this is what gives me:






    The numbers are from ATPA[0], ATPA[1], ...
    Isnt it supposed to be sorted from the x coord?

  12. #12
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by Nirvana View Post
    This is just stupid I used that and this is what gives me:






    The numbers are from ATPA[0], ATPA[1], ...
    Isnt it supposed to be sorted from the x coord?
    Why wouldn't you believe me?
    No existing function to sort ATPA by x relative to their midpoint.
    If you can't make it, you can just use SortATPAFromFirstPointX, theoretically incorrect, but practically they would return the same result in most cases on RS.

  13. #13
    Join Date
    Oct 2012
    Location
    Porto, Portugal
    Posts
    218
    Mentioned
    0 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    Why wouldn't you believe me?
    No existing function to sort ATPA by x relative to their midpoint.
    no no you got it wrong. I do believe you I am just mad that this is not working because it is supposed to work. that's why I think it is stupid!

    plus all the points from the first target are all to the left of the second and so on.. so why this wouldn't work?
    Last edited by Sax; 11-18-2012 at 02:02 PM.

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

    Default

    If you can make the camera angle constant, MouseBox it :P
    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

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
  •