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
  • Need help with MessageListener


    reddit123

    Recommended Posts

    Trying to create a tutorial island script and I need to use the MessageListener due to the character always being in a dialogue box. How do you set it up? I know it's an interface but I'm derping right now and don't know what to do.

    Link to comment
    Share on other sites

    Trying to create a tutorial island script and I need to use the MessageListener due to the character always being in a dialogue box. How do you set it up? I know it's an interface but I'm derping right now and don't know what to do.

     

    why do you need to use MessageListener? If you don't plan on using Dialogues (through getDialogues()), then you should probably just use widgets.

    Link to comment
    Share on other sites

    why do you need to use MessageListener? If you don't plan on using Dialogues (through getDialogues()), then you should probably just use widgets.

    I tried to use Dialogue but on tutorial island your always in a dialogue so my while loops would always get stuck.

    Link to comment
    Share on other sites

    I tried to use Dialogue but on tutorial island your always in a dialogue so my while loops would always get stuck.

     

    don't use a while loop - that makes it very easy for the bot to get stuck. if you have a getState(), return a value when necessary and let it go through the getState() again

    Link to comment
    Share on other sites

    don't use a while loop - that makes it very easy for the bot to get stuck. if you have a getState(), return a value when necessary and let it go through the getState() again

    I have a state. Thanks. I completely overlooked that

    Link to comment
    Share on other sites

    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.