Jump to content

Using CLI with a local script and no parameters?


Colonel_Panic

Recommended Posts

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.  

Link to comment
Share on other sites

40 minutes ago, Lordsthan said:

Try -script testScript:null

That got past the error! I see "Starting local script with name: testScript" now, but then it still doesn't start any script once OSBot is fully started. 

I'll keep toying with it but if you have any more insight, I'm all ears.

Thanks!

 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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