May 23, 20169 yr 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");}
May 23, 20169 yr 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?
May 23, 20169 yr And you also have to check if we are currently trading with the getTrade()#isCurrentlyTrading()
May 23, 20169 yr Author 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
May 23, 20169 yr Author And you also have to check if we are currently trading with the getTrade()#isCurrentlyTrading() THX
Create an account or sign in to comment