Jump to content

Using CLI with a local script and no parameters?


Recommended Posts

Posted

Let's say I have a local script called testScript.jar.  How would I run that with CLI?

I've tried both of the following and always end up with "Script settings are incorrect, unable to load automatically!"

java -jar OSBot.jar -login username:password -world 383 -bot bot_name:bot_pass:bot_pin -mem 1024 -script testScript.jar --allow norandoms,lowcpu

java -jar OSBot.jar -login username:password -world 383 -bot bot_name:bot_pass:bot_pin -mem 1024 -script testScript --allow norandoms,lowcpu



Note that I don't need to pass any parameters in.  

Posted (edited)

Idk too much about open the client in .bat because actually i dont need it, but i did it here:

java -jar osbot.jar -login name:password -world 383 -bot email:password:pin -mem 1024 -script scriptname:0 --allow norandoms, lowcpu

Will start, login the bot in osbot menu and load the script but in my notebook the cpu usage go to 58% and dosent quickly login the bot in osrs name/password field.

I not waited 5 min to see if will work or not but test it in your computer to see.

Edit: Was my fault i erased the lowcpu... using " :0 " after scriptname will work

Edit2: "-script scriptName:KalaIsNoobFarmer " kkkkk yeah will work too

Edited by RuneMaker4657

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...