slasso 27 Share Posted June 24, 2016 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? Link to comment Share on other sites More sharing options...
Diddy 265 Share Posted June 24, 2016 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 Link to comment Share on other sites More sharing options...
avalane 3 Share Posted June 24, 2016 if (message.getMessage().contains("wishes to trade")) { message.getUsername(); getTrade().tradeWithPlayer(message.getUsername()); sleep(4000,6000); getTrade().acceptTrade(); sleep(4000,6000); getTrade().acceptTrade(); } } Link to comment Share on other sites More sharing options...
Hopewelljnj 46 Share Posted June 24, 2016 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 Link to comment Share on other sites More sharing options...
slasso 27 Author Share Posted June 25, 2016 I feel like that's something you should tell the devs 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. Link to comment Share on other sites More sharing options...
Mad 86 Share Posted June 25, 2016 Its broken, i had the same issue, you can make ur own trade listener Link to comment Share on other sites More sharing options...
Nuclear Nezz 2052 Share Posted June 25, 2016 I feel like that's something you should tell the devs He has rip, I've tried looking into it. I'll take another look today. Link to comment Share on other sites More sharing options...
Mad 86 Share Posted June 25, 2016 if (message.getMessage().contains("wishes to trade")) { message.getUsername(); getTrade().tradeWithPlayer(message.getUsername()); sleep(4000,6000); getTrade().acceptTrade(); sleep(4000,6000); getTrade().acceptTrade(); } } Lol Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.