Welcome!

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

Sign up now!

[Request Feedback] Air Runecrafter

Joined
Nov 26, 2014
Messages
616
First script, tell me what you think.

https://github.com/zohanpbot/RuneMate/tree/master/src/com/wadiyan/runemate

KL4DsaZ.png
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
For the most part it's better than the majority of first scripts. Here's some feedback on the parts that are lacking slightly
  • Interact#npc/object - You're walking in a for loop, try to avoid walking in loops. A for loop is better than a while loop but it's still suboptimal.
  • Some of your constants could be made private.
  • The loop delay may be a tad low, but if you need it then that's not a problem
  • You should use dynamic sleeping after an interaction (via the Execution class)
  • Your banking code should be revised slightly to comply with the general advice of one action per loop.
 
Joined
Nov 26, 2014
Messages
616
For the most part it's better than the majority of first scripts. Here's some feedback on the parts that are lacking slightly
  • Interact#npc/object - You're walking in a for loop, try to avoid walking in loops. A for loop is better than a while loop but it's still suboptimal.
  • Some of your constants could be made private.
  • The loop delay may be a tad low, but if you need it then that's not a problem
  • You should use dynamic sleeping after an interaction (via the Execution class)
  • Your banking code should be revised slightly to comply with the general advice of one action per loop.
I was trying to get a feel for the API.

It does help that I've wrote scripts for 2 other bots before.

I'll probably rewrite my interact class tomorrow. It was the first class I wrote and the for loop is definitely reduntant once I realized how Path#step works.

I'll try to rework things to comply be the one-action-per-loop rule and add more dynamic sleeping.

Thanks for the fast feedback. ☺
 
Top