imancity Posted May 12, 2016 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".
Acerd Posted May 12, 2016 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
imancity Posted May 12, 2016 Author 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!
LoudPacks Posted May 13, 2016 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