slasso 27 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?
Diddy 265 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
avalane 3 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(); } }
Hopewelljnj 46 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
slasso 27 Author 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.
Nuclear Nezz 2104 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.
Mad 86 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.