aguiarbianca Posted January 27, 2023 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?
Khaleesi Posted January 27, 2023 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
TheJacob Posted January 27, 2023 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
aguiarbianca Posted January 27, 2023 Author Posted January 27, 2023 Yeah, quotes and dummy parameter did the trick. thanks! 1