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 On 10/3/2015 at 10:38 PM, Flamezzz said: 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 On 10/3/2015 at 10:40 PM, Mocro said: 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 On 10/3/2015 at 10:41 PM, Flamezzz said: Yes Oke Thanks anyway its a start Quote Link to comment Share on other sites More sharing options...