edvinasli20 0 Share Posted November 5, 2021 2:13:41 AM: [ERROR] Exception has occurred while running! Please report error to developer if problem persists: java.lang.NullPointerException at c.f(c.java:170) at c.onLoop(c.java:79) at org.dreambot.api.script.AbstractScript.run(AbstractScript.java) at java.lang.Thread.run(Unknown Source) Link to comment Share on other sites More sharing options...
osrssom 25 Author Share Posted November 5, 2021 52 minutes ago, edvinasli20 said: Acc stats: 27hp 35agility Starting script in Nardah bank, food: trout Takes waterskins (have 100 in bank) takes trout (have 100 in bank) closes bank open bank deposits all inv and repeat action, so didnt work for me Strange, the only thing that could cause this is the script not registering that you have enough food in your inventory when you close the bank. Are you entering "Trout" or "trout" for the food type? Link to comment Share on other sites More sharing options...
Axolotl 31 Share Posted November 5, 2021 15 hours ago, osrssom said: Strange, the only thing that could cause this is the script not registering that you have enough food in your inventory when you close the bank. Are you entering "Trout" or "trout" for the food type? you can ensure the input string will always be formatted to OSRS naming conventions like so: //Ensures itemName follows OSRS naming conventions private static String itemNameFormatting(String itemName) { StringBuilder formatted = new StringBuilder(); String lower = itemName.toLowerCase(); boolean upperCase = true; for(int i = 0; i < lower.length(); i++) { char letter = lower.charAt(i); if(upperCase) { String upper = "" + letter; formatted.append(upper.toUpperCase()); upperCase = false; } else { if(letter == ' ') upperCase = true; formatted.append(letter); } } MethodProvider.log("Formatted itemName: " + itemName + " to: " + formatted); return formatted.toString(); } If you want to add extra polish you can add a Document Filter to the textfield and force it to not accept numbers (or if wanting numbers, not except letters) osrssom 1 Link to comment Share on other sites More sharing options...
booknar 0 Share Posted November 6, 2021 Hi man, theres a huge delay in each movement, atleast 15 seconds from each obstacle. can you please change this asap? Link to comment Share on other sites More sharing options...
osrssom 25 Author Share Posted November 8, 2021 On 11/6/2021 at 9:56 AM, booknar said: Hi man, theres a huge delay in each movement, atleast 15 seconds from each obstacle. can you please change this asap? Will look into it further tomorrow. Link to comment Share on other sites More sharing options...
pdelva20 2 Share Posted November 10, 2021 Appreciate you taking the time to revise a free script <3. Would love for this to work properly! Link to comment Share on other sites More sharing options...
TehMadIndian 1 Share Posted November 16, 2021 Is the script registering choc-ice as a valid source of food? Link to comment Share on other sites More sharing options...
TehMadIndian 1 Share Posted November 16, 2021 (edited) On 11/6/2021 at 3:56 PM, booknar said: Hi man, theres a huge delay in each movement, atleast 15 seconds from each obstacle. can you please change this asap? Let the script run in fixed - classic layout & it will be faster. Edited November 16, 2021 by TehMadIndian osrssom 1 Link to comment Share on other sites More sharing options...
osrssom 25 Author Share Posted November 16, 2021 5 hours ago, TehMadIndian said: Is the script registering choc-ice as a valid source of food? If you enter the food name correctly and the item's first object is "Eat" it will work. 5 hours ago, TehMadIndian said: Let the script run in fixed - classic layout & it will be faster. Wow, is this why people keep commenting this and I haven't been able to figure out the issue? Didn't know anybody botted in resizable. Link to comment Share on other sites More sharing options...
zypher ox 0 Share Posted November 18, 2021 Seems to be working great in general without any major setbacks. Though, I'd recommend adding either a timer switch or using "run" when going past the pushing blocks as it walked infront of the block 3 times in a row which doesn't look very human like. Additionally, adding the option of eating the other half of the Summer pie (Agility boosting food) would be a nice addition as it seems to get an error when adding both the "Summer pie" and "Half a summer pie" to the GUI. Awesome script though!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now