Results 1 to 7 of 7

Thread: SortATPAFrom.. Problem..

  1. #1
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default SortATPAFrom.. Problem..

    lets say I found a ton of NPC's on screen using:

    Simba Code:
    ATPA:= TPAToATPAEx(TPA, 50, 50);

    //Then I do:

    SortATPAFrom(ATPA, Point(MSCX, MSCY));

    //Then:

    MiddleATPAEx(ATPA[0], X, Y);

    //Why is X, Y the furthest NPC from ME?!
    //Doesn't seem to sort it from me at all..
    I am Ggzz..
    Hackintosher

  2. #2
    Join Date
    Dec 2011
    Location
    Holland
    Posts
    545
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default

    Shouldnt this:
    Simba Code:
    MiddleATPAEx(ATPA[0], X, Y);
    be:
    Simba Code:
    MiddleTPAEx(ATPA[0], X, Y);


    Progress Report:
     [Error] (8:1): Unknown identifier 'MiddleATPAEx' at line 7
    Compiling failed.

  3. #3
    Join Date
    Mar 2006
    Location
    Behind you
    Posts
    3,194
    Mentioned
    61 Post(s)
    Quoted
    63 Post(s)

    Default

    You need to use SortATPAFromFirstpoint why idk i just know that works.

    "Sometimes User's don't need the Answer spelled out with Code. Sometimes all they need is guidance and explanation of the logic to get where they are going."

  4. #4
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Oops.. that's just a mis-type in the OP.. I meant to put MiddleTPA(ATPA[0], X, Y).. It's still the same problem.

    Edit: I'll try what u Suggested Brak

    Edit2: Brak is right.. it fixed it =]
    +1
    I am Ggzz..
    Hackintosher

  5. #5
    Join Date
    Mar 2006
    Location
    Behind you
    Posts
    3,194
    Mentioned
    61 Post(s)
    Quoted
    63 Post(s)

    Default

    It'll fix it don't worry

    "Sometimes User's don't need the Answer spelled out with Code. Sometimes all they need is guidance and explanation of the logic to get where they are going."

  6. #6
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Use SortATPAFromMidPoint

  7. #7
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Also, SortATPAFrom just sorts each TPA from the point.

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
  •