Jump to content

How to add scripts (Not from the website)


Recommended Posts

Posted

I can't seem to figure out how to add my own scripts into the files. I have searched through the whole file, and can only seem to find one thing that I THOUGHT would be the key to it all. It was a folder that said "script" I then tried to add my script, which was inside of a folder. This did not work for me and it brought up an error message.

Posted

Add the script in ".jar" format (I asume you have jar files) in OSBot Script folder, eg.

Windows:

C:\Users\nosepicker\OSBot\Scripts

Linux/Mac

/home/nosepicker/OSBot/Scripts

Once you placed those there relaunch OSBot OR click refresh button in script selection window.

If you see the script in the list - all bueno. 

If you're getting any errors alter on - those are script issues and not your concern.

Posted
13 minutes ago, nosepicker said:

Add the script in ".jar" format (I asume you have jar files) in OSBot Script folder, eg.

Windows:


C:\Users\nosepicker\OSBot\Scripts

Linux/Mac


/home/nosepicker/OSBot/Scripts

Once you placed those there relaunch OSBot OR click refresh button in script selection window.

If you see the script in the list - all bueno. 

If you're getting any errors alter on - those are script issues and not your concern.

I did everything and for some reason it wouldn't work i still tried to look for the scripts file and it was nowhere to be found. I tried re downloading it and i had the correct file but i could NOT find the scripts file D;

Posted
1 hour ago, XFIREDEMONX said:

I did everything and for some reason it wouldn't work i still tried to look for the scripts file and it was nowhere to be found. I tried re downloading it and i had the correct file but i could NOT find the scripts file D;

Don't know if you did this, but when you add a local script, you have to re-launch the client. You can't refresh the script list like you can with SDN scripts

Posted
1 hour ago, XFIREDEMONX said:

I did everything and for some reason it wouldn't work i still tried to look for the scripts file and it was nowhere to be found. I tried re downloading it and i had the correct file but i could NOT find the scripts file D;

Not entirely sure what this means - it's quite a simple process:

  1. Download script jar file
  2. Move jar file to specified directory C:\Users\your_username\OSBot\Scripts
  3. Launch client as normal
  4. Run script

If it is not showing up in osbot but you have accurately followed those steps, then as someone mentioned above, it's a problem with the script.

Apa

Posted (edited)
7 hours ago, Apaec said:

Not entirely sure what this means - it's quite a simple process:

  1. Download script jar file
  2. Move jar file to specified directory C:\Users\your_username\OSBot\Scripts
  3. Launch client as normal
  4. Run script

If it is not showing up in osbot but you have accurately followed those steps, then as someone mentioned above, it's a problem with the script.

Apa

Sorry if I wasn't clear enough but, I cannot find ANY file that says script on it. I searched through the directory and I couldn't find the file named "Scripts"

Edited by XFIREDEMONX
spelling error
  • 6 years later...
Posted (edited)

So everyone here is saying to ut the .jar file into the scripts folder, yet i was having the same issue and was not able to get my scripts to appear. however, i did get around this by adding a folder inside the script folder thats named after my script, then inside of that i have my src folder. and within that folder i have my interface.java and mainscript.java. it loaded into the client just fine -- which is a relief because ive been having this problem for a while.

Edited by Hunter Erick
  • Heart 1
Posted (edited)
On 11/29/2024 at 5:39 PM, GlassNhearts said:

 

i agree !

lmao for the life of me, i have no idea how this cross posted between threads lol. i swear this was on an MTA script thread and not a custom script implimentation issue one.

On 1/7/2018 at 6:20 AM, Apaec said:

Not entirely sure what this means - it's quite a simple process:

  1. Download script jar file
  2. Move jar file to specified directory C:\Users\your_username\OSBot\Scripts
  3. Launch client as normal
  4. Run script

If it is not showing up in osbot but you have accurately followed those steps, then as someone mentioned above, it's a problem with the script.

Apa

not necessarily. my .jar files werent loading in either, yet when i put my folder in there with an src and then my .java files inside, ta-da! it worked. 

Edited by Hunter Erick
typo

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