Mocro Posted October 3, 2015 Share Posted October 3, 2015 Title. Quote Link to comment Share on other sites More sharing options...
Flamezzz Posted October 3, 2015 Share Posted October 3, 2015 For an arbitrary item name? What exactly are you trying to do here? :p Quote Link to comment Share on other sites More sharing options...
Mocro Posted October 3, 2015 Author Share Posted October 3, 2015 this gives me the amount in my inventory : this.getInventory().getAmount("Cowhide"); i want the ID if i do "CowHide" Quote Link to comment Share on other sites More sharing options...
Flamezzz Posted October 3, 2015 Share Posted October 3, 2015 inventory.getItem("your item").getId() 1 Quote Link to comment Share on other sites More sharing options...
Mocro Posted October 3, 2015 Author Share Posted October 3, 2015 inventory.getItem("your item").getId() do i need to have that item in my inventory? Quote Link to comment Share on other sites More sharing options...
Flamezzz Posted October 3, 2015 Share Posted October 3, 2015 do i need to have that item in my inventory? Yes Quote Link to comment Share on other sites More sharing options...
Mocro Posted October 3, 2015 Author Share Posted October 3, 2015 Yes Oke Thanks anyway its a start Quote Link to comment Share on other sites More sharing options...