May 12, 201610 yr 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".
May 12, 201610 yr if (getInventory().interact("Use", "Blue dye")) { getInventory().interact("Use", "Goblin mail"); } or if (getInventory().getItem("Blue dye").interact("Use")) { getInventory().getItem("Goblin mail").interact(); }
May 12, 201610 yr Author 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!
May 13, 201610 yr 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, 201610 yr by LoudPacks
Create an account or sign in to comment