February 23, 20169 yr I'm trying to import the Inventory class, but it does not exist when I include the jar file in my build path
February 23, 20169 yr 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.
February 23, 20169 yr You can't open a .class file if that's what you're trying to do. ._. Edited February 23, 20169 yr by GoldenGates
February 23, 20169 yr You can't open a .class file if that's what you're trying to do. ._. Lol didn't even see that.
February 23, 20169 yr Author 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
February 23, 20169 yr 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--
February 23, 20169 yr Author SOLVED: I was using Eclipse Indigo, which is like way out of date XD. Downloaded Luna and seems to be working fine now
Create an account or sign in to comment