java -jar "osbot 2.4.81.jar" -login xx:xx -bot zz:zz:1234 -debug 5005 -script tests:10,20
String pars;
String[] parsSplitted;
@[member='Override']
public void onStart() throws InterruptedException {
if (getParameters() != null) {
pars = getParameters();
parsSplitted = pars.split(",");
log("First param: " + parsSplitted[0]);
log("Second param: " + parsSplitted[1]);
}
}
After logging in im getting this:
[INFO][Bot #1][08/06 01:38:27 PM]: Terminating script tests...java.lang.NullPointerException
[INFO][Bot #1][08/06 01:38:27 PM]: Script tests has exited! at main.onStart(main.java:37)
at org.osbot.rs07.event.ScriptExecutor.IIIIIiiIIiIi(vi:251)
at org.osbot.rs07.event.ScriptExecutor.start(vi:10)
at org.osbot.C.run(ur:39)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[INFO][Bot #1][08/06 01:38:27 PM]: Started script : tests