imancity Posted May 12, 2016 Share Posted May 12, 2016 I need to be able to use one item on another in the inventory. It isn't fletching or anything so it wont "make x" its just gonna use it once and then loop again. Let's say its using a "blue dye" on "goblin mail". Quote Link to comment Share on other sites More sharing options...
Acerd Posted May 12, 2016 Share Posted May 12, 2016 if (getInventory().interact("Use", "Blue dye")) { getInventory().interact("Use", "Goblin mail"); } or if (getInventory().getItem("Blue dye").interact("Use")) { getInventory().getItem("Goblin mail").interact(); } 1 Quote Link to comment Share on other sites More sharing options...
imancity Posted May 12, 2016 Author Share Posted May 12, 2016 if (getInventory().interact("Use", "Blue dye")) { getInventory().interact("Use", "Goblin mail"); } or if (getInventory().getItem("Blue dye").interact("Use")) { getInventory().getItem("Goblin mail").interact(); } Thanks man! Quote Link to comment Share on other sites More sharing options...
LoudPacks Posted May 13, 2016 Share Posted May 13, 2016 (edited) if (getInventory().interact("Use", "Blue dye")) { getInventory().interact("Use", "Goblin mail"); } or if (getInventory().getItem("Blue dye").interact("Use")) { getInventory().getItem("Goblin mail").interact(); } The second one might fail if Blue dye or Golbin mail is null. Maybe null check it or just use the first method. Edited May 13, 2016 by LoudPacks Quote Link to comment Share on other sites More sharing options...