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

Thread: Checking if the tree is cut down problem..

  1. #26
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by ZephyrsFury View Post
    Wouldn't you want to set the Result to True if the tree was cut down? That's what I had originally, but because it's finding the color of the tree, the tree is there. And if the Length is less than 10, than the tree wouldn't be there, thus the Result being false.

    Also you'd want to check if the tree was cut down in here too, wouldn't you? Yes I would.


    You also have two loops for no reason:

    SCAR Code:
    repeat  //Loop in Cut_ChopTrees
              Cut_WhileChopping;
            until(Cut_TreeCutDown or InvFull);

    and a loop in Cut_WhileChopping. Yes I do.
    Quote Originally Posted by TRiLeZ View Post
    LMFAO
    What if the tree is cut down and invcount is less than 28?

    Im almost shitting my pants reading my post!!!
    Is there really a need to insult me?

    Anyway thanks for you input, I am kind of confused about what you were trying to say, but I'll look over it a couple more times and try to make it work. Thanks.

  2. #27
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by ZephyrsFury View Post
    Wouldn't you want to set the Result to True if the tree was cut down? That's what I had originally, but because it's finding the color of the tree, the tree is there. And if the Length is less than 10, than the tree wouldn't be there, thus the Result being false.
    The function is supposed to check if the tree is chopped down. So if the tree is chopped down then Result should be true.

  3. #28
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by ZephyrsFury View Post
    The function is supposed to check if the tree is chopped down. So if the tree is chopped down then Result should be true.
    Yes, you're right (like I would argue with you anyway ). I was on a train of thought and it made sense in my head.

    Thanks.

    EDIT: Could someone please explain a little better what TRiLeZ was trying to say on the previous page, I'm really confused. I idea of that part of the script is a failsafe because sometimes it will lose focus and just sit there forever. So the point of that is if it hasn't gained a log in 20 seconds, chances are it's not chopping a tree. So then it would break out of the loop and click another tree.
    Last edited by Coh3n; 06-24-2009 at 12:27 AM.

  4. #29
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    EDIT: Could someone please explain a little better what TRiLeZ was trying to say on the previous page, I'm really confused. I idea of that part of the script is a failsafe because sometimes it will lose focus and just sit there forever. So the point of that is if it hasn't gained a log in 20 seconds, chances are it's not chopping a tree. So then it would break out of the loop and click another tree.
    He was just trying to point out that you need to check if the tree was cut down in that loop as well.

  5. #30
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by ZephyrsFury View Post
    He was just trying to point out that you need to check if the tree was cut down in that loop as well.
    Ohh, so basically what you said before?

    EDIT: Actually, Zeph, weren't you the one who gave me that idea in the first place?

    EDIT2: After testing a couple times, the problem seems to have been resolved, thanks everyone for the help! I will test more later.
    Last edited by Coh3n; 06-24-2009 at 12:52 AM.

  6. #31
    Join Date
    Feb 2009
    Posts
    1,447
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

  7. #32
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by TRiLeZ View Post
    Sorry for insulting you. I wasnt in a good mood.
    Im glad I helped though
    No problem, I appreciate the apology. And yes, you did help. It's working now, although I still have to make a few tweaks.

    Thanks very much.

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)

Posting Permissions

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