SwagLordGuy 2 Posted July 10, 2018 Its a simple woodcutting bot and im learning how to do java, how can I make the bot return after attempting to reach a "I can't reach that!" tree?
alludus 2 Posted July 11, 2018 I guess check chat log for that message and then do something or use canReach method which I dont know if its working atm. getMap().canReach(Tree)
SwagLordGuy 2 Author Posted July 11, 2018 Thanks mate, also is there anyway to stop based on a chat log? such as "You need to be on a members' server to use this feature."?
Koschei 147 Posted July 11, 2018 5 minutes ago, SwagLordGuy said: Thanks mate, also is there anyway to stop based on a chat log? such as "You need to be on a members' server to use this feature."? Implement the AdvancedMessageListener
SwagLordGuy 2 Author Posted July 11, 2018 5 minutes ago, Koschei said: Implement the AdvancedMessageListener Big noobie, would I implement it as: if (onGameMessage public Message("I can't reach that!")); return (interval); ?
Nex 2546 Posted July 11, 2018 8 minutes ago, SwagLordGuy said: Big noobie, would I implement it as: if (onGameMessage public Message("I can't reach that!")); return (interval); ? @Override public void onMessage(Message msg) { if (msg.getMessage().contains("A 8 year is fucking your mom.")) { callPapuNezz("Beat him up daddy!"); } }
SwagLordGuy 2 Author Posted July 11, 2018 Thanks but it can't resolve msg? Also expects ";" after onMessage and "msg" (in paragraphs), reason?
qwAQ 17 Posted July 11, 2018 5 hours ago, SwagLordGuy said: Thanks but it can't resolve msg? Also expects ";" after onMessage and "msg" (in paragraphs), reason? I suggest you looking up basic java tutorials before trying to script, since you're struggling with the syntax.
SwagLordGuy 2 Author Posted July 11, 2018 2 minutes ago, qwAQ said: I suggest you looking up basic java tutorials before trying to script, since you're struggling with the syntax. Thanks for the suggestion, I spent a good 10 hours over the past week on the basics. I struggle to learn by watching someone else, I just need experiencing and I find that best through going backwards up and messing with the code.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.