Results 1 to 9 of 9

Thread: Quick TPoint Question...

  1. #1
    Join Date
    Mar 2008
    Location
    ::1
    Posts
    915
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Quick TPoint Question...

    I am trying to get an array of TPlayer that consists of only the players that are on the main screen. I think I can use GetPlayers; to get all the players on the minimap and then sort through those by using TileOnMS(tile, height); The problem is, I don't know what "height" means! Would you please tell me? Also, I've forgotten how to get the length of an array . Would you please tell me how to do that too?

    Records and Types Save Code (and make you look better)
    Quote Originally Posted by Wizzup? View Post
    Is it possible to make Runescape a 2D game with this?... That would greatly simplify... Just about anything.

  2. #2
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by tniffoc View Post
    I am trying to get an array of TPlayer that consists of only the players that are on the main screen. I think I can use GetPlayers; to get all the players on the minimap and then sort through those by using TileOnMS(tile, height); The problem is, I don't know what "height" means! Would you please tell me? Also, I've forgotten how to get the length of an array . Would you please tell me how to do that too?
    the way to get an array length is, getarraylength(); l lol

  3. #3
    Join Date
    Mar 2008
    Location
    ::1
    Posts
    915
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Thanks..

    Thanks man, anyone know to answer to my first question or at least who to ask about it?

    Thanks again

    Records and Types Save Code (and make you look better)
    Quote Originally Posted by Wizzup? View Post
    Is it possible to make Runescape a 2D game with this?... That would greatly simplify... Just about anything.

  4. #4
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Height is just a field that is used to help calculate the mainscreen position of an object (player, NPC, or an actual object). You can see what the maximum value of it is by WriteLning the value to the debug box, then experiment accordingly (I think it's stored in as TPlayer.Height, though I'm not sure).
    :-)

  5. #5
    Join Date
    Mar 2008
    Location
    ::1
    Posts
    915
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Thanks Mehod but, I still don't understand. I just want to know what to set height as in TileOnMS. Do you think you could explain a little more?
    Thanks!

    Records and Types Save Code (and make you look better)
    Quote Originally Posted by Wizzup? View Post
    Is it possible to make Runescape a 2D game with this?... That would greatly simplify... Just about anything.

  6. #6
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by tniffoc View Post
    Thanks Mehod but, I still don't understand. I just want to know what to set height as in TileOnMS. Do you think you could explain a little more?
    Thanks!
    Say you have an NPC on a tile. From the base of that Tile, the NPC's height (it's length, how tall he/she is) is the base of that tile + height.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  7. #7
    Join Date
    Mar 2008
    Location
    ::1
    Posts
    915
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Thanks!
    So, I should just use TPlayer.Height as the argument?

    Records and Types Save Code (and make you look better)
    Quote Originally Posted by Wizzup? View Post
    Is it possible to make Runescape a 2D game with this?... That would greatly simplify... Just about anything.

  8. #8
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    I believe some of the NPC finding functions multiply the height by 2/3 (NPC.Height * 2 / 3), so you could try that at first. If that doesn't work, some small tampering should be able to fix it.
    :-)

  9. #9
    Join Date
    Mar 2008
    Location
    ::1
    Posts
    915
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I just used TPlayer.Height and it worked fine! Thanks for all your help!

    Records and Types Save Code (and make you look better)
    Quote Originally Posted by Wizzup? View Post
    Is it possible to make Runescape a 2D game with this?... That would greatly simplify... Just about anything.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Just a quick question? Did I say quick?
    By SeanJohn in forum OSR Help
    Replies: 3
    Last Post: 01-28-2009, 12:03 AM
  2. quick question
    By dudeperson in forum OSR Help
    Replies: 6
    Last Post: 01-25-2009, 04:44 PM
  3. one quick question
    By geerhedd in forum SRL Site Discussion
    Replies: 2
    Last Post: 06-01-2007, 09:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •