Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • How to stop a script from "I can't reach that!"?


    SwagLordGuy

    Recommended Posts

    Posted

    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?

    Posted

    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)

     

    Posted

    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."?

    Posted
    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

    Posted
    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);
    ?

    Posted

    It's an interface so you would just implement it into the class. 

    Posted
    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!");
    		}
        }

     

    Posted

    Thanks but it can't resolve msg?

     

    Also expects ";" after onMessage and "msg" (in paragraphs), reason?

    Posted
    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.

    Posted
    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.

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.