Everything posted by Script Kid
-
*FIXED* java.lang.NullPointerException -> What does this mean? & How do I fix it?
You fixed the problem in this particular case but you didn't find the answers to your original questions so you won't be able to debug your code the next time it happens. Here: A null pointer exception is a type of runtime exception that occurs when a null value was used when an object instance was required. Examples include calling methods or accessing fields of a variable that is null. By default all reference (non-primitive) variables in Java are null. Object variableOne = new Object(); Object variableTwo = null; Object variableThree; Only the first variable points to an actual object instance. The second and third variables are both pointing to null. Calling any Object methods from the second or third variables will throw a null pointer exception because the variable is not pointing to a valid Object instance, it's pointing to null. You always read the stack trace. The null pointer exception occurred on the first line and all the other lines represent the call stack - all the methods that have been called in the program, which eventually resulted in this error: java.lang.NullPointerException at org.osbot.rs07.event.InteractionEvent.<init>(zi:86) < here is where the null pointer exception occurred at Thieverclass.onStart(Thieverclass.java:51) < here is where you called the method that threw the exception at ... at ... ... Usually you are going to fix the first line, because that is where the exception occurred, but in this case the first line is part of the API, which means that you cannot change it. But you can instead change the code from the second line and make sure that you are not passing a null value to the method from the first line.
-
Advice for new scripters?
Before trying to write any scripts learn Java until you are familiar with the syntax and you have a solid understanding on how programming works. You don't need to buy any books or sign up for any paid courses, since you can find everything that you need online for free.
-
Left America to start a bot farm.
Let me get this straight: You've ran a substantial farm in the past, but now you can't do any basic research to find some fucking proxy providers. You left the United States in order to start a bot farm, because living there was apparently preventing you from doing so. You are glad that you live 5 minutes away from the beach and you now have a nice place to hang out with girls, in November when there are freezing temperatures. Nice.
- New developer
-
onExit()
Does this happen because the JVM instance ends before that method is called?
-
just wanted to see what my username is
no that would be 2 simple @espioz1 did you manage to find out your username?
-
Script writing tutorials
Learning to code implies that you will do a lot of research on your own. If you are starting a new topic and asking people to link you to this page (https://osbot.org/forum/forum/250-tutorials/) instead of using the search button, then:
-
If I’m Botting More Than One Account, Can Jagex See That?
How are we supposed to answer this question? You haven't told us how are you running the accounts (whether or not you're using proxies, different computers etc).
-
Does jagex monitor us?
Nobody at Jagex has the time to systematically monitor the forums. But they may visit the site occasionally, and if they happen to find strong evidence that someone has been naughty....
-
Char's Potato Picker
@Charlotte I can't run the script java.util.NoSuchElementException: No value present at java.util.Optional.get(Unknown Source) at Main.Main.onStart(x:60) at org.osbot.rs07.event.ScriptExecutor.iiiIiiiIIIiI(bm:19) at org.osbot.rs07.event.ScriptExecutor.start(bm:169) at org.osbot.Z.run(rp:164) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
-
Willing to be your friend!
50k GP final offer.
-
Willing to be your friend!
how much for girlfriend?
-
Getting into the magic tab?
U need more Java
-
Spider's Wilderness Wine Grabber F2P 100k+/Hour
Just checked it & it seems legit not sure if its my retard decompiler but the variable winesCollected is of type long instead of int, which means that a shit ton of wines are expected to be collected. GJ @Spider
-
Osbot ignoring delays
void randomDelay(float min, float max){ int random = (int)(max * Math.random() + min); try { sleep(random); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } @Nikoman you don't need to create a whole new method just for this, you don't need to declare a local variable and you don't need to use the Math class to get a random number. Everything can be done using the OSBot API in one line: sleep(random(min, max));
-
Bot is up and VIP is extended 5 days!!!
Try this: https://osbot.org/forum/topic/87717-fixing-osbot-not-starting/
-
The purpose of botting?
Botting breaks the Jagex TOS and breaking the Jagex TOS is fun.