Lemonade 1 Share Posted April 29, 2017 Hey, thanks for the feedback. The code you posted wouldn't be good since when player is standing still/moving, isAnimating() returns false. This means the bot would click the tree and sleep until you are not animating (neither standing still or moving) and notice you are walking to the tree, which means it wouldn't sleep at all. This results in spam clicking the tree. If you happen to stand next to the tree and somehow manage to animate before your script checks for animation, it would work. What my code does is clicks the tree, sleeps until we are moving and then sleeps more until we are animating (chopping). If a lag spike happens to occur, it would sleep for max 7 seconds in total, which is quite a long time. Therefore it rarely spam clicks. I can imagine it clicks the tree twice if the distance to the tree is long and you get a lag spike. To avoid that, increase the timeouts for the sleeps =). I hope I managed to answer your question. Hey, I appreciate the fast response. I was indeed looking more from the perspective that you are already standing next to tree and that if a player is moving isAnimating() would return true. With isAnimating() returning false when moving this of course changes it a lot, because then it would indeed spamclick the tree when running to it. (when chopping already your function isChopping() would prevent the spamclicks of course) I'm new to the dreambot API and looking to start scripting for it so thanks for pointing that out already Thanks again. Hashtag 1 Link to comment Share on other sites More sharing options...
maferosrs 2 Share Posted June 18, 2017 ty ty ty Link to comment Share on other sites More sharing options...
Volta 183 Share Posted June 21, 2017 Thanks, used ur GUI guide Link to comment Share on other sites More sharing options...
javasucks 1 Share Posted June 22, 2017 Best guides on the site. Thanks a bunch man! Link to comment Share on other sites More sharing options...
ArmyofDragons 28 Share Posted August 17, 2017 How is this "Scripting 101"? Even if someone has programmed before, you are literally spoonfeeding (baby feeding) them lines of code of your own silly programming habits. Sure, explaining the functionality of certain implementations such as the GUI painting method helps a lot, but the screenshots of 'free code' for others to live and breathe on as what a script should look like does not help one bit. Link to comment Share on other sites More sharing options...
dQw4w9WgXcQ 184 Share Posted October 2, 2017 ty Link to comment Share on other sites More sharing options...
Manly 879 Share Posted October 2, 2017 ty U posted thanks twice on the same thread bro Roma 1 Link to comment Share on other sites More sharing options...
slasso 27 Share Posted October 2, 2017 U posted thanks twice on the same thread bro LOL Link to comment Share on other sites More sharing options...
dQw4w9WgXcQ 184 Share Posted October 2, 2017 o fuck LOL Link to comment Share on other sites More sharing options...
templex 5 Share Posted November 14, 2017 Hey im trying to get into scripting and have a couple of questions: How to get multiple tabs in the GUI like your #1 woodcutting script has for example, What would be the best way of traversing and depositing things at a bank, How to get camera and mouse movement to look human-like? Thats all, thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now