Results 1 to 3 of 3

Thread: Find Tree Stump?

  1. #1
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Find Tree Stump?

    Im chopping a single yew tree and I was wondering is there a way to find out if it finds the stump of the tree then does a bunch of stuff, then looks for it again? I tried many times but failed(It usually searches forever but would like it to search for about 6 seconds) thanks!

    P.S. I know chooseoption blah blah, but how could I make it search just for 6 seconds, and if it cannot, then it will look for the stump, and if it finds the stump, then it will for example look through your gametabs?

  2. #2
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Try adding a MarkTime before you start searching, then add an additional parameter to your search (I'm assuming you've already got a repeat...until loop) that says TimeFromMark > 6000
    An example:
    SCAR Code:
    program New;
    {.include srl/srl.scar}
    var
    mark : Integer;
    begin
      SetupSRL;
      MarkTime(mark);
      repeat
        Writeln('Testing.');
        Wait(1000);
      until(TimeFromMark(mark) > 6000);
    end.

  3. #3
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Won't Find the Tree :(
    By skilld u in forum OSR Help
    Replies: 8
    Last Post: 02-21-2008, 09:20 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
  •