bionic 0 Share Posted January 28, 2019 Having some trouble looking through the API for the correct way to do this. Right now im using: getInventory().get("xxx").useOn(yyy); But the xxx in my inventory contains a noted version and un-noted versions. How do I make sure it only selects the un-noted version. Right now it will select the first "xxx" in my inventory so if I have noted "xxx" in my first slot it will select that, if I have un-noted "xxx" in my first slot it will select that. I would like it so it doesnt matter what slot its in. Link to comment Share on other sites More sharing options...
Pseudo 179 Share Posted January 28, 2019 Iirc the Item class has a method for checking if an item is in fact, noted. Link to comment Share on other sites More sharing options...
bionic 0 Author Share Posted January 29, 2019 JK just answered this myself, the easiest way to do this is to use the item by id as the id's differ if they're noted/unnoted. Link to comment Share on other sites More sharing options...
Nuclear Nezz 2055 Share Posted January 29, 2019 59 minutes ago, bionic said: JK just answered this myself, the easiest way to do this is to use the item by id as the id's differ if they're noted/unnoted. Or you can use a filter and check for noted. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.