aguiarbianca Posted January 27, 2023 Share Posted January 27, 2023 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? Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted January 27, 2023 Share Posted January 27, 2023 (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 January 27, 2023 by Khaleesi Quote Link to comment Share on other sites More sharing options...
TheJacob Posted January 27, 2023 Share Posted January 27, 2023 (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 January 27, 2023 by TheJacob Included example Quote Link to comment Share on other sites More sharing options...
aguiarbianca Posted January 27, 2023 Author Share Posted January 27, 2023 Yeah, quotes and dummy parameter did the trick. thanks! 1 Quote Link to comment Share on other sites More sharing options...