Page 2 of 2 FirstFirst 12
Results 26 to 44 of 44

Thread: TPAs For Dummies

  1. #26
    Join Date
    Apr 2009
    Location
    California!
    Posts
    280
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I learned a lot.. now lets see if i can actually do it
    Thanks!
    ~Penguin
    Semi-active
    http://i44.tinypic.com/33vk9aq.jpg
    SELL AUTOED GOODS AT MID-MAX! DON'T LET PRICES FALL AND GIVE US LESS PROFIT. (Put this in your sig)

  2. #27
    Join Date
    Feb 2006
    Posts
    44
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Cheers for the tut i did learn much from it

  3. #28
    Join Date
    Oct 2007
    Posts
    70
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This is a great tutorial, I learned about TPA's, now I'm going to try and put one to use. Rep++ to you.
    Currently working on: Ape Atoll Agility script
    Percentage done: 80% (Needs testing to work out bugs, too bad hardly anyone has 75+ agility)


  4. #29
    Join Date
    Dec 2008
    Posts
    209
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I know this may be classed as a grave dig, but I posted as I have some things to make a few things simplier, i.e. not much of a change but for the last code, you could do:

    SCAR Code:
    program TPATutorial;
    {.include SRL/SRL.scar}

    var
      MyTPA : TPointArray;
      MyTPoint : TPoint;

    begin
      SetLength(MyTPA, 4);
      MyTPA := [
        IntToPoint(0, 0), IntToPoint(0, 10), IntToPoint(10, 0), IntToPoint(10, 10)
      ];
     
      MyTPoint := MiddleTPA(MyTPA);
     
      Writeln(IntToStr(MyTPoint.x) + ', ' + IntToStr(MyTPoint.y));
    end.

    Thanks so much!

    ~ Craig.

  5. #30
    Join Date
    Dec 2007
    Location
    Los Angeles, California
    Posts
    606
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I see that you haven't been on in a month, but if you ever come back... Thanks, finally someone who speaks my language .

  6. #31
    Join Date
    Apr 2006
    Location
    The Netherlands
    Posts
    106
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wow, awesome. One tutorial and I get arrays !
    Back to scripting.

  7. #32
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Very nice tutorial, learnd of it
    ya got msn? if ya do, gimme gimme (if u want )

    +rep

  8. #33
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    1,472
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Great tut, i learnt a lot about tpa's. When are you going to finish the tut(i cant wait )

  9. #34
    Join Date
    Feb 2012
    Posts
    386
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    Thanks, I finaly found a comprehensible Tutorial on Tpa. I love you so much, Did a test and it worked. I will be able to Start using TPA :-)

  10. #35
    Join Date
    Jun 2012
    Location
    School
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Awesome thread

    I learned a lot... I want to script and this explained why my noob scripts are exceeding 300 lines for simply chopping trees... thanks!

  11. #36
    Join Date
    Oct 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks a lot~~

  12. #37
    Join Date
    Apr 2012
    Posts
    127
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Wow awesome job, +repped
    Feel free to add me on msn: h4x_new@hotmail.co.uk
    Delete my old msn that got hacked (h4x_@hotmail.co.uk)

  13. #38
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    This was easy to read , recommended!

    Creds to DannyRS for this wonderful sig!

  14. #39
    Join Date
    Dec 2011
    Location
    Lubbock, Texas
    Posts
    225
    Mentioned
    3 Post(s)
    Quoted
    93 Post(s)

    Default

    Wow i think i finally understand the TPointArray. thanks a lot! I really wish you would have done the T2dPointArray because thats where I have A LOT of trouble. Thanks though!

  15. #40
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

    Quote Originally Posted by grahambr View Post
    Wow i think i finally understand the TPointArray. thanks a lot! I really wish you would have done the T2dPointArray because thats where I have A LOT of trouble. Thanks though!
    Check out this tutorial for that

  16. #41
    Join Date
    Dec 2011
    Location
    Lubbock, Texas
    Posts
    225
    Mentioned
    3 Post(s)
    Quoted
    93 Post(s)

    Default

    Quote Originally Posted by SRLKing View Post
    Check out this tutorial for that
    That looks helpful! thanks!

  17. #42
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

    Quote Originally Posted by grahambr View Post
    That looks helpful! thanks!
    NP!

  18. #43
    Join Date
    Jan 2013
    Posts
    36
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Thanks a ton for this, I finally understand tpointarrays alot better now.

  19. #44
    Join Date
    Jul 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Very easy to follow. Thanks for the tutorial!

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Static Arrays!!!!
    By Naum in forum OSR Beginner Scripting Tutorials
    Replies: 26
    Last Post: 06-17-2012, 07:49 PM
  2. Do i need TPAs in these actions?
    By marpis in forum OSR Help
    Replies: 3
    Last Post: 12-15-2008, 09:22 PM
  3. Tpas and usage of them ..
    By Clippi in forum OSR Help
    Replies: 1
    Last Post: 10-24-2008, 08:14 PM
  4. Working with TPAs
    By Seroko in forum OSR Help
    Replies: 2
    Last Post: 09-14-2008, 05:45 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
  •