hansen19498 Posted May 23, 2016 Share Posted May 23, 2016 Backpack removed two "copper", the trading window, my code, just move the mouse "copper", and then nothing happened for me to correct the wrong place if(getInventory().getItem("Copper ore") != null){ inventory.getItem("Copper ore").interact("Offer-2");} Quote Link to comment Share on other sites More sharing options...
Solution Posted May 23, 2016 Share Posted May 23, 2016 Backpack removed two "copper", the trading window, my code, just move the mouse "copper", and then nothing happened for me to correct the wrong place if(getInventory().getItem("Copper ore") != null){ inventory.getItem("Copper ore").interact("Offer-2");} Is "Offer-2" even a legit option in the trade menu? Quote Link to comment Share on other sites More sharing options...
GaetanoH Posted May 23, 2016 Share Posted May 23, 2016 You need to do: getTrade.offer("Copper Ore", 2); 1 Quote Link to comment Share on other sites More sharing options...
Acerd Posted May 23, 2016 Share Posted May 23, 2016 if (getInventory().contains("Copper ore")) { getTrade().offer("Copper ore", 2); } 1 Quote Link to comment Share on other sites More sharing options...
GaetanoH Posted May 23, 2016 Share Posted May 23, 2016 And you also have to check if we are currently trading with the getTrade()#isCurrentlyTrading() 1 Quote Link to comment Share on other sites More sharing options...
hansen19498 Posted May 23, 2016 Author Share Posted May 23, 2016 Is "Offer-2" even a legit option in the trade menu? yes ,but how fix it if (getInventory().contains("Copper ore")) { getTrade().offer("Copper ore", 2); } nice thx Quote Link to comment Share on other sites More sharing options...
hansen19498 Posted May 23, 2016 Author Share Posted May 23, 2016 And you also have to check if we are currently trading with the getTrade()#isCurrentlyTrading() THX Quote Link to comment Share on other sites More sharing options...