Results 1 to 6 of 6

Thread: Need help with something.

  1. #1
    Join Date
    May 2007
    Location
    NSW, Australia
    Posts
    2,823
    Mentioned
    3 Post(s)
    Quoted
    25 Post(s)

    Default Need help with something.

    Im making a woodcutting script, but i want it to not keep clicking the tree even though the tree is still there.

    Can someone link me to where to show me how to do this or tell me here?

    Thanks, Ben AKA Bh.

  2. #2
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    you could just click it once then wait until it doesnt find the tree color anymore


    edit 200th post

  3. #3
    Join Date
    May 2007
    Location
    Canada
    Posts
    261
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well what you could do is find the tree using a color, and then keep on checking for that color in that same cord, and when it changes to a different color, the tree is gone. Don't know if that made sense(its early...12 am lol)
    On vacation from July 2nd till middle of August


    Account Creator and Tutorial Island Runner (member | public) Errors fixed


    Check out my Complete forms tutorial. It will teach you everything you need to know about forms.

  4. #4
    Join Date
    May 2007
    Location
    NSW, Australia
    Posts
    2,823
    Mentioned
    3 Post(s)
    Quoted
    25 Post(s)

    Default

    Post an example

    Plus thanks for the fast responce, lol.

  5. #5
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    SCAR Code:
    begin
    findcolortolerance(x,y,treecolor,10);
    wait(50+random(50));
    Mouse(x,y,1,1,true);
    wait(50+random(50));
    getmousepos(x,y);
    wait(50+random(50));
    if (not(getcolor(x,y)=treecolor)) then
    begin
    whatever;
    end else;
    whatever;
    end.
    yea thats the base outline of what i can think of in 10 seconds...

  6. #6
    Join Date
    Dec 2006
    Location
    .̿̂̔͋͗̎̆ͥ̍̒ͤ͂̾̌̀̅
    Posts
    3,012
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    You could just use a TimeMark or something and let the user decide how long to wait before clicking again, for example waiting 20 + random 10 seconds or so Because color checking isn't that reliable if there's more of the same trees or colors around. And you need to remember that if you click a tree your account often moves, so checking the coordinates wouldn't work in that case (account has walked to different spot -> tree has moved on the screen -> tree not found -> click again.. Not that good)..

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
  •