Basic Herbs Posted February 23, 2016 Posted February 23, 2016 I'm trying to import the Inventory class, but it does not exist when I include the jar file in my build path
BloodRush20 Posted February 23, 2016 Posted February 23, 2016 Your main class extends script if you look here http://osbot.org/api/org/osbot/rs07/script/MethodProvider.html you can see everything that entails. Which is under the MethodProvider....which is under script.
GoldenGates Posted February 23, 2016 Posted February 23, 2016 (edited) You can't open a .class file if that's what you're trying to do. ._. Edited February 23, 2016 by GoldenGates
BloodRush20 Posted February 23, 2016 Posted February 23, 2016 You can't open a .class file if that's what you're trying to do. ._. Lol didn't even see that.
Basic Herbs Posted February 23, 2016 Author Posted February 23, 2016 import org.osbot.rs07.api.Skills; import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.api.ui.Skill; import org.osbot.rs07.api.Inventory; //This line produces error import org.osbot.rs07.listener.MessageListener; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; Im not trying to open a class file, just trying to import it in order to to use the Inventory functions
Acerd Posted February 23, 2016 Posted February 23, 2016 Importing Inventory is not needed , since your script extends the class script; which also imports MethodProvider which has the Inventory methods. http://osbot.org/api/org/osbot/rs07/script/MethodProvider.html#getInventory--
Basic Herbs Posted February 23, 2016 Author Posted February 23, 2016 SOLVED: I was using Eclipse Indigo, which is like way out of date XD. Downloaded Luna and seems to be working fine now