pakruojinis 11 Posted July 31, 2021 Hello everyone, tried to make a basic script, but ran into this error: Cannot resolve symbol 'isFull', code below, if anyone could help me that would be appreciated if(Inventory.isFull()){ if(bankArea.contains(getLocalPlayer())){ bank(); }else{ if(Walking.walk(bankArea.getRandomTile())){ sleep(Calculations.random(3124, 6124)); } } }
Pandemic 2818 Posted July 31, 2021 Make sure you're including the client jar as a dependency in your project. Check out our Scripter Guide for more info.
pakruojinis 11 Author Posted July 31, 2021 Thank you, I forgot to add it, it have fixed it, but now all my imports are greyed out, any fix?
Pandemic 2818 Posted July 31, 2021 Grayed out usually just means you aren't using them, are they underlined in red or showing any errors? You can probably just ignore it if not
pakruojinis 11 Author Posted July 31, 2021 I am using them, the main import code is all grey except the word dreambot, which is red, everywhere where i use it its also red
pakruojinis 11 Author Posted August 1, 2021 I don't know if this helps, but, the same isFull works for me on a project i did before, tho creating a new one doesn't seem to fix it, also I did have a .jar there, just added a second one yesterday, the other project is full is in italic
camelCase 300 Posted August 3, 2021 On 8/1/2021 at 11:45 AM, pakruojinis said: I don't know if this helps, but, the same isFull works for me on a project i did before, tho creating a new one doesn't seem to fix it, also I did have a .jar there, just added a second one yesterday, the other project is full is in italic On 7/31/2021 at 11:39 PM, pakruojinis said: I am using them, the main import code is all grey except the word dreambot, which is red, everywhere where i use it its also red you just havent added the dependencies, https://dreambot.org/guides/scripter-guide/script-dev/setting-up-dev-env/ you have to do this for every new project, thats why your old project works.
pakruojinis 11 Author Posted August 3, 2021 I do have them added, every other command works fine, this one is the only one red, when I said now it works I actually messed up and did have them added, and just added 2 times
camelCase 300 Posted August 4, 2021 11 hours ago, pakruojinis said: I do have them added, every other command works fine, this one is the only one red, when I said now it works I actually messed up and did have them added, and just added 2 times if its just Inventory.isFull() thats not working make sure you have import org.dreambot.api.methods.container.impl.Inventory; at the top of your file
pakruojinis 11 Author Posted August 4, 2021 Actually I fixed it already, it was outside the onLoop(), thats why it wasnt working, but thanks for the help
Recommended Posts
Archived
This topic is now archived and is closed to further replies.