Results 1 to 9 of 9

Thread: Finding a tree

  1. #1
    Join Date
    Sep 2006
    Posts
    199
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Finding a tree

    How do I make it find a tree using a DTM?? Or some kind of colour finder? I read Starblaster100's and pwnaz0rz tutorials. I don't think they include SRL in it so if (a)Someone could tell me how to find a tree.
    (b)What tutorial should I read on SRL?

    Thanks in advance!

  2. #2
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Never try to find an tree with an dtm
    ~Hermen

  3. #3
    Join Date
    Nov 2007
    Location
    Poland
    Posts
    139
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    FindObjCustom(x, y, ['wil', 'low'], [coloroftree1, coloroftree2], tolerance);// if you want to find willow
    Mouse(x, y, 10, 10, true);

    or

    FindObj(x, y, nameoftree, coloroftree, tolerance);
    Mouse(x, y, 10, 10, true);

  4. #4
    Join Date
    Sep 2006
    Posts
    199
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by iroki View Post
    SCAR Code:
    FindObject(x, y, nameoftree, coloroftree, 15);
    Mouse(x, y, 10, 10, true);
    Well thats good thank you. But it is really pointless because I don't really understand what those do. I have a rough idea but could you explain it please?

  5. #5
    Join Date
    Nov 2007
    Location
    Poland
    Posts
    139
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I edited it, look again.

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

    Default

    Maybe If your a Beginner Try using FindColorSpiralTolerance and IsUpText

    So:

    SCAR Code:
    If FindColorSpiralTolerance(x, y{Variables}, 545356{Color}, MSX1, MSY1, MSX2, MSY2{Co-ordinates Of the Main Screen ;)}, 15{Tolerance}) Then
      MMouse(x,y,1,1); //<--Moves the mouse on the tree to check for uptext
        If IsUpText('ree') Then //<-- Find the top text of the tree

    Thats a basic way of finding the tree

    Hope I Helped

  7. #7
    Join Date
    Sep 2006
    Posts
    199
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Great thanks got a good SRL script Nauman? One of the things I dont get are those thigns at the start of scripts Vars or something. And alot of SRL functions and procedures I don't get them.

  8. #8
    Join Date
    Jul 2007
    Location
    Ohio
    Posts
    1,103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Another great way to find trees are to use TPA's. They are hard to understand at first, but after you read plenty of TUT's they should be simple. I think n3ss3s has a great TUT for TPA's.

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

    Default

    Quote Originally Posted by hamish909 View Post
    Great thanks got a good SRL script Nauman? One of the things I dont get are those thigns at the start of scripts Vars or something. And alot of SRL functions and procedures I don't get them.
    Variables are like stuffs which are used to remember something like, If you found a color at x,y then you could make it tell you where you found it (co-ords) on the screen.

    Here are some variables:

    SCAR Code:
    x,y:Integer; // Any whole values.
    InGuild:Boolean; // Gives us a yes or no
    HaveSex:String; //a string like '45fh' something you see in dtm's/Bitmaps
    WhirlPoolAcc:Extended // A decimal value.

    So this is how you convert them into strings

    SCAR Code:
    {Integer} IntToStr()
    {Extended} FloatToStr()
    {Boolean} BoolToStr()
    {String} ()

    Based on that it should be pretty self explanitory, If you don't understand anything and want me to go over it again, Just PM me

    Hope I Helped

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 09-23-2008, 03:37 AM
  2. Good Tree Finding Function?
    By TViYH in forum OSR Help
    Replies: 11
    Last Post: 09-03-2008, 12:48 AM
  3. Finding Multiple Tree Colors
    By tigerskall in forum OSR Help
    Replies: 11
    Last Post: 11-18-2007, 07:04 AM
  4. specific tree finding
    By phonokin in forum OSR Help
    Replies: 13
    Last Post: 04-21-2007, 03:57 AM

Posting Permissions

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