Results 1 to 6 of 6

Thread: lil help

  1. #1
    Join Date
    Jul 2008
    Posts
    179
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default lil help

    how do you set this up

    FindObjTPA(var X, Y: Integer; Color, Tol, CTS, ObjWidth, ObjHeight, minCount: Integer; UpText: TStringArray): Boolean


    just show a example how you would use it in a script and what each little thing is please and thank you
    im back again .!

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

    Default

    Example :
    SCAR Code:
    If FindObjTPA(x, y, 5583152, 15, 20, 50, 90, 1, ['alk','-to']) Then

    First two parameters are the variables, the next is the colour the next two are the width and the height. And the last 3 are: Mincount, Tolerance (-1 to 4) and the last two are the uptext

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

    Default

    SCAR Code:
    if findobjtpa(x, y, Yourcolorhere, ToleranceHere, 2(probably), 15, 25, 15, ['hop', 'down', 'hop down']) then
    Mouse(x, y, 5, 5, False); //right click on it
    if ChooseOption('hop') then
    Writeln('Chopping Tree');
    very simple example (|:[>*

    Edit: thanks camo...

  4. #4
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    Example :
    SCAR Code:
    If FindObjTPA(x, y, 5583152, 15, 20, 50, 90, 1, ['alk','-to']) Then

    First two parameters are the variables, the next is the colour the next two are the width and the height. And the last 3 are: Mincount, Tolerance (-1 to 4) and the last two are the uptext
    You forgot the CTS.
    SCAR Code:
    If FindObjTPA(x, y, 5583152, 15, 1, 20, 20, 1, ['alk','-to']) Then


  5. #5
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Quote Originally Posted by mormonman View Post
    SCAR Code:
    if findobjtpa(x, y, Yourcolorhere, ToleranceHere, 2(probably), 15, 25, 15, ['hop', 'down', 'hop down']) then
    Mouse(x, y, 5, 5, False); //right click on it
    if ChooseOption('hop') then
    Writeln('Chopping Tree');
    very simple example (|:[>*
    Fixed lol

    TPA's are amazing! So reliable. I love them

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


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

    Default

    dope... i fail again ):

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
  •