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
  • Incoming trade message listener


    slasso

    Recommended Posts

    Posted

    How can check if I have an incoming trade? I checked every message listener and none of them are executed when I get a purple trade message "soandso wishes to trade with you". Isn't it supposed to be onTradeMessage?

    Posted

    Don't use AdvancedMessageListener it didn't work for me when running it through the SDN

     

    anyways, the easy way out is just using onMessage

    Posted
    if (message.getMessage().contains("wishes to trade")) {

                message.getUsername();

                getTrade().tradeWithPlayer(message.getUsername());

                sleep(4000,6000);

                getTrade().acceptTrade();

                sleep(4000,6000);

                getTrade().acceptTrade();

            }

        }
    Posted

    Don't use AdvancedMessageListener it didn't work for me when running it through the SDN

     

    anyways, the easy way out is just using onMessage

    I feel like that's something you should tell the devs :o

    Posted

    I feel like that's something you should tell the devs :o

     

    Yea the normal one worked.

    Don't use AdvancedMessageListener it didn't work for me when running it through the SDN

     

    anyways, the easy way out is just using onMessage

    Yea, onTradeMessage() worked with normal MessageListener

     

     

    if (message.getMessage().contains("wishes to trade")) {
                message.getUsername();
                getTrade().tradeWithPlayer(message.getUsername());
                sleep(4000,6000);
                getTrade().acceptTrade();
                sleep(4000,6000);
                getTrade().acceptTrade();
            }
        }

     

    I know how to use it if it worked.

    Posted

    Its broken, i had the same issue, you can make ur own trade listener

    Posted

    I feel like that's something you should tell the devs :o

    He has rip, I've tried looking into it. I'll take another look today.

    Posted

     

    if (message.getMessage().contains("wishes to trade")) {
                message.getUsername();
                getTrade().tradeWithPlayer(message.getUsername());
                sleep(4000,6000);
                getTrade().acceptTrade();
                sleep(4000,6000);
                getTrade().acceptTrade();
            }
        }

     

     

    Lol

    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.