RawrRawr 1 Share Posted February 28, 2017 I have been working on making a woodcutter to learn and I have noticed that my guy will click the tree constantly every few seconds instead of waiting for idle animation. Is there a way I can make it wait until my guys is idle again or have it do a check that its cutting the tree so it doesnt keep clicking? I just have a sleep return timer for it at the moment. Link to comment Share on other sites More sharing options...
Kvothe 6 Share Posted February 28, 2017 sleepUntil(()->getLocalPlayer().getAnimation()!=-1, Calculations.random(1145,4671); // if tree clicked Character will sleepUntil tree cutting animation occurs or 1.145-4.671 seconds passes; //include some random sleeps here sleepUntil(()->getLocalPlayer().getAnimation()==-1), Calculations.random(1745,8671); // sleepUntil finished cutting tree //include sleeps here //can also use getInventory().count("logType"); //also gameObject check of tree stump to occur //also xp gain stop if(getLocalPlayer().getAnimation!=treeCuttingAnimation){ tree.interact("Cut the mother fucker"); } Link to comment Share on other sites More sharing options...
Hashtag 8774 Share Posted February 28, 2017 I have a good open source woodcutter which doesn't click more than once here https://dreambot.org/forums/index.php/topic/8530-scripting-101/. It is under the taskscript section. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.