Jump to content

Start local script via CLI


Recommended Posts

Posted

Hello.

I've been trying to start OSBot with a local script via cli using the -script option. The problem is that I dont have an ID, and using the name doesn't seem to work. 

The script is located at /home/myuser/OSBot/Scripts/myscript.jar

I've tried using "-script  myscript", "-script myscript.jar" and even the name at @ScriptManifest which is "My Script" (-script "My Script", -script My\ Script)

None worked, any tips?

 

 

Posted (edited)
1 hour ago, aguiarbianca said:

Hello.

I've been trying to start OSBot with a local script via cli using the -script option. The problem is that I dont have an ID, and using the name doesn't seem to work. 

The script is located at /home/myuser/OSBot/Scripts/myscript.jar

I've tried using "-script  myscript", "-script myscript.jar" and even the name at @ScriptManifest which is "My Script" (-script "My Script", -script My\ Script)

None worked, any tips?

 

 

-script scriptname

If you ahve spaces you might wanna do -script "script name"

Edited by Khaleesi
Posted (edited)
1 hour ago, aguiarbianca said:

Hello.

I've been trying to start OSBot with a local script via cli using the -script option. The problem is that I dont have an ID, and using the name doesn't seem to work. 

The script is located at /home/myuser/OSBot/Scripts/myscript.jar

I've tried using "-script  myscript", "-script myscript.jar" and even the name at @ScriptManifest which is "My Script" (-script "My Script", -script My\ Script)

None worked, any tips?

 

 

Try passing a parameter with -script as well. I couldn't get -script to work without passing a dummy parameter.

java -jar OSBot.jar -login <OSBotUser>:<OSBotPass> -bot <OSRSAccount>:<OSRSPass>:0000 -world <WorldNum> -script <YourScriptName>:params

 

Edited by TheJacob
Included example

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...