Banker 175 Posted October 1, 2016 Okay so i am trying to make my bot accept trades that have been sent and so far i have currently got this: (implementing AdvancedMessageListener) public void onTradeMessage(Message message) { String trader= message.getUsername(); getTrade().tradeWithPlayer(trader); } When i send a trade request to the bot, instead of sending a request back to me it simply walks onto the tile that i am on, i cant see why it would do this. Any help is appreciated, Thanks.
Banker 175 Author Posted October 1, 2016 Isn't there an API for trading? I'm not sure, ive looked in the Docs at the Trade section but i cant seem to find anything to actually initialise the trade.
triblion 56 Posted October 1, 2016 I'm not sure, ive looked in the Docs at the Trade section but i cant seem to find anything to actually initialise the trade. tradeWithPlayer(java.lang.String playerName)
Banker 175 Author Posted October 1, 2016 tradeWithPlayer(java.lang.String playerName) That's what im currently using but it isnt actually starting the trade, its just walking onto the tile that the 'trader' is on
Cardozz 46 Posted October 1, 2016 That's what im currently using but it isnt actually starting the trade, its just walking onto the tile that the 'trader' is on Does it leftclick the tile or does it select "Walk here" from the menu?
Globbee 4 Posted October 1, 2016 I think I did this before and it wasn't working because there were spaces in my username.
Banker 175 Author Posted October 1, 2016 Does it leftclick the tile or does it select "Walk here" from the menu? I think I did this before and it wasn't working because there were spaces in my username. No, it clicks the minimap where i player is located. And my username has no spaces at all :/
triblion 56 Posted October 1, 2016 No, it clicks the minimap where i player is located. And my username has no spaces at all :/ Have you definetly typed the name exactly as it appears, also you could try that with another method to have it interact using trade
Banker 175 Author Posted October 1, 2016 Have you definetly typed the name exactly as it appears, also you could try that with another method to have it interact using trade It gets the username from the trademessage message.getUsername()
Recommended Posts
Archived
This topic is now archived and is closed to further replies.