Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Question Feedback/Help

Joined
Sep 6, 2017
Messages
9
My first RuneMate script is posted below, to pastebin. It's a called Chop N' Burn and it's supposed to chop trees and then burn the logs on a bonfire.

ChopNBurn - Pastebin.com

My BURN state works but rarely - in that most of the time there are misclicks etc.

If you guys could give me some pointers on the code I have written and how to get it working without lots of flaws It'd be greatly appreciated.

Thanks
 
12 year old normie
Joined
Jan 8, 2015
Messages
2,769
Switch/case bots are frowned upon. If you want to split your execution based on some sort of validation, use either TaskBot (looping through tasks) or TreeBot (binary tree structure).

Also your code needs a lot of improvement to avoid nullpointers with Players and GameObjects. Also to improve efficiency you can store a lot of things you're querying multiple times at the moment.

I suggest using the devchat on Slack if you're confused about any of this.
 
Top