Jump to content

can someone help me with cli


Recommended Posts

Posted (edited)
20 minutes ago, xilosionx said:

thanks,I have already looked at it but could not get it any further,

because I have absolutely no experience with cli.

CLI is short for command line which means you must run it via the command line. 

If you're using Windows you run CMD (or create a .bat script) and if you are using Linux, you open terminal (or create a .sh script). 

Every parameter has a meaning. Depending on your scripts, it may or may not allow script parameters. 

I'll explain how to run a script using commandline

So you have a flag and description for each flag, there are requirements to some flags. As you can see on the far right, not every single flag requires anything but most of the main ones do.

You'd just want to have a basic login for now.

So we open up our command line and use "CD" to change into a directory(easiest way to explain to you). 

java -jar "osbot 2.4.xxx.jar" -login osbotusername:osbotpassword -bot  rsuser:rspw:pin(must be 0000 if you don't have a pin) - script urscriptname:scriptparameters 


java - jar "osbotxxxx.jar" is just telling java to open the jar file named osbotwhatever.jar and after that is telling osbot the login details for both rs and osbot.

You don't need to worry about anything except for the -script  flag


Say you have a script named xMuler and it had parameters of "true;false;true"

The first true means enable camera rotation

The false next to it means disable random mouse movements

The third true represents whether or not it will trade any player

Parameters are just a way to quick start your settings for your script (but not all scripts support it, they must explicitly be defined). Meaning that osbot will not autogenerate what the parameters will do, it will only  display a string which represents the parameters that were entered. 


There are 2 ways to run it (in your case)

Way 1. Without script parameters

 


java -jar "osbot 2.4.xxx.jar" -login osbotusername:osbotpassword -bot  rsuser:rspw:pin -script xMuler:none


Way 2. With parameters

 

java -jar "osbot 2.4.xxx.jar" -login osbotusername:osbotpassword -bot  rsuser:rspw:pin -script xMuler:true;true;false

Edited by Satire
  • 1 year later...

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