Results 1 to 7 of 7

Thread: SortATPAFrom?

  1. #1
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default SortATPAFrom?

    I will post a little picture first



    Now to explain. In the above picture, you can see that the ATPA has been sorted as [0] being in the right hand corner, [1] being left hand side, [2] being left of the middle, and [3] being the furnace.

    If you can't guess. It is searching for the furnace.

    Here is my ATPA code.

    SCAR Code:
    TDPA := SplitTPA(TPA, 15);
      SortATPAFrom(TDPA, Point(MMCX, MMCY));
      DebugATPABounds(TDPA, '');

    So maybe I am using this wrong, but to my understanding, it should be sorting the ATPA points from the center, so that [0] will be the furnace (closest to center) and will eliminate the mouse moving to the other points before it.

    My only assumption about it is that I am using it wrong, so if someone could tell me the right way to use it, I would appreciate it.

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  2. #2
    Join Date
    Feb 2009
    Location
    Hungary (GMT + 1)
    Posts
    1,774
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    MMCX and MMCY are the minimap center points. Use MSCX and MSCY for mainscreen.
    Or am I wrong understanding what do you want?

  3. #3
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Haha. Looks like a nub mistake by me. XD. Sleep seems to be one of those things that I need more of

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  4. #4
    Join Date
    Dec 2008
    Location
    Québec
    Posts
    419
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    or maybe use
    SortATPASize(var a: T2DPointArray; const BigFirst: Boolean);
    so the bigest atpa with the color you search will come first.
    Formerly known as FrancisHelie

  5. #5
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    It isnt always the biggest though, it depends.

    Also, even after I changed to MS not MM, sometimes it still doesnt sort to the furnace first, and picks that thing in the right hand side as 0.

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  6. #6
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Try SortATPAFromFirstPoint

  7. #7
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Thanks. Hopefully it will work better now.

    Once you finish your tutorial on the WizzyPlugin stuff, I will be able to help myself more :P

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

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
  •