Jump to content

Start local script via CLI


aguiarbianca

Recommended Posts

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?

 

 

Link to comment
Share on other sites

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

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