Tutorials
Looking to learn or teach about scripting? You've found the right place.
215 topics in this forum
-
import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(name = "Skeleton", author = "Alek", version = 1.0, info = "", logo = "") public class Skeleton extends Script { @Override public void onStart() { //Code here will execute before the loop is started } @Override public void onExit() { //Code here will execute after the script ends } @Override public int onLoop() { return 100; //The amount of time in milliseconds before the loop starts over } @Override public void onPaint(Graphics2D g) { //This is where you wi…
-
-
- 32 replies
- 92.7k views
-
-
private Position[] path = { new Position(3254, 3421, 0), new Position(3256, 3428, 0), new Position(3264, 3428, 0), new Position(3273, 3428, 0), new Position(3277, 3426, 0), new Position(3281, 3422, 0) }; getWalking().walkPath(path); Explanation: The position array listed above will be defined at the top of your script (with the other variables) and getWalking().walkPath(path) will be defined wherever you want to call it (such as in a method, in your onLoop, etc.). Getting positions: Click on the settings gear icon in the client and scroll over "Entity debugs" and then toggle "Entity hover debug". Hover your mouse over a tile and it wil…
-
-
- 26 replies
- 78.5k views
-
-
objects.closest("Bank chest").interact("Use"); This method looks for an object called "Bank chest" and attempts to interact with it using "Use". If you attempt to interaction with the "Bank chest" using "Attack", the method will not work because "Bank chest" does not have the action "Attack". npcs.closest("Guard").interact("Attack"); Lets say you are killing guards, as the method shows above. What happens when you kill all the guards and this method is called? You will get an error called a "Null Pointer Exception", meaning that the method was called but it didn't work because the object reference (in this case the Guard) is null (meaning it doesn't exist). Here is…
-
-
- 3 replies
- 64.5k views
-
-
Hey everyone, I was struggling with Jagex Accounts on Debian Linux for a while and decided to change my strategy. I now have OSBot running on Windows 7 in Qubes successfully with Jagex Accounts on RuneLite! Is there any interest in a tutorial on this? Lmk
-
- 3 replies
- 315 views
- 1 follower
-
-
Hello everyone, my name is Stando. I am interested in creating bots for OSRS, but I do not know where to start. I watched a tutorial for creating one in JS, but the tutorial doesn't use IDs for chopping logs(uses color), and it doesn't having a banking() function either. One tutorial in Java wrote commands for the bot, but never ran the bot to test them. It is one hour of creating methods with no visual in game examples. Other examples on this site that use @ScriptManifest or extend AbstractScript don't work for me. Is there anywhere that I could go to begin?
-
-
- 11 replies
- 15.2k views
- 1 follower
-
-
This tutorial will cover everything required to write your own OSBot scripts. Although it is quite lengthy, don't let this put you off - it shouldn't take more than a couple of hours to follow through, at the end of which you will have learned the scripting basics and will have your very own tea thieving script which you can modify to your liking. Good luck! Previous required knowledge: None Knowledge of basic java helps but is not required! What this guide covers: Downloading your code editor (IDE) Basic programming concepts A quick guide to java Writing a script with the OSBot API Running your script Downloading Ec…
-
-
- 603 replies
- 271.1k views
- 3 followers
-
-
Hello OSBot community, I'm making my second script, which includes fishing and cooking with banking. I've seen answers to other optimization posts, that web walking accounts for most of the memory usage when running a script. Is this true? If so, does garbage collector discard this resource or do I need some special way of removing it if it is not used? Also, does returning higher waiting values in onLoop() function make the script less demanding or just slower?
-
-
- 4 replies
- 1k views
- 1 follower
-
-
Hello everyone, i'm trying to get my first script to show up in de script list. What i've currently checked: It has a manifest, the java version is 1.8 and it is in de C:\OSBot\scripts folder. What i think might be the culprit is that is listed as an executable jar file. Any help?
-
- 4 replies
- 1.1k views
-
-
So I have a mining and woodcutting script and the mining one shows up but the woodcutting one does not show up. They both have the script manifest. I'm positive that it isn't something in the script. I sent my friend the code for the mining script and it didn't show up for him. I tried deleting the scripts folder and the scripts then relaunching osbot but it didn't work. I also tried refreshing multiple times If anyone has and ideas or would like to go through it with me on discord please let me know.
-
-
- 5 replies
- 1.4k views
-
-
Looking to make RSPS Scripts and OSRS new to coding any recommendation also is colour bots still a thing.
-
-
- 2 replies
- 1.7k views
-
-
I'm trying to set up a simple logout function but for some reason it's not working. log("No money - logging off in 5 seconds"); sleep(5000); log("logging off"); getLogoutTab().logOut(); When I run this, the log and sleeps work and then the bot navigates to the logout tab, highlights the 'logout' button and then does nothing ๐คจ
-
-
- 7 replies
- 2.5k views
-
-
Explv's Scripting 101 Prerequisite: basic knowledge of Java 1. Setting up the Java Development Kit and an Integrated Development Environment (IDE) Spoiler You can use any IDE that supports Java, but in this tutorial I will be showing you how to set up IntelliJ IDEA by JetBrains 1. Download and install the latest Java 8 JDK from the Oracle website http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 2. Download and install IntelliJ IDEA from the JetBrains website https://www.jetbrains.com/idea/ 3. Open IntelliJ IDEA and select "Create New Project" 4…
-
-
- 130 replies
- 82.6k views
- 2 followers
-
Recently Browsing 0
- No registered users viewing this page.