Jump to content

CheckingItOut

Members
  • Posts

    15
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

CheckingItOut's Achievements

Bronze Poster

Bronze Poster (2/10)

1

Reputation

  1. Hi, I'm trying to be able to autoswitch accounts after a certain amount of time, but I'm not sure how to use the following snippet of code. Bot switchAccount(String username, String password, int pin) I tried the following Bot switchAccount(String "sampleusername", String "hunter2", int 0000); Bot switchAccount("sampleusername", "hunter2", 0000); Bot switchAccount(stringvarstoringusername, stringvarstoringpassword, intvarstoringpin); but the code editor is giving me errors. Any help is much appreciated, thank you.
  2. Hi, I'd like to run a bot farm of 4-5 bots on Android emulators using AHK and I'm not sure how to go about doing this. Do I use virtualbox, bluestacks, etc.. I've created the AHK scripts, and it works with BlueStacks 5 on my computer, but I'm limited to my 1 mouse, and 1 instance of OSRS on BlueStacks5 running on my computer. I'm not sure how to scale it up past 1 on my computer.
  3. From your personal experience, what are some things you have found to help?
  4. Hi, I'm trying to do what the title talks about. Currently I have public final class Range extends Script { long start = System.currentTimeMillis(); long end = start + 5*random(50,60)*random(60)*random(1000); // 60 seconds * 1000 ms/sec Then in my onLoop method, I have if (System.currentTimeMillis() > end) { stop()}. I'm trying to have the script shut down after a random amount of time between 5 and 6 hours. It shut off after less than 1 hour though, am I converting my values incorrectly?
  5. Two of them, they were in top 10 or 100 for runecrafting and got busted for botting because their scripts eventually started running in-sync, and apparently the odds of this happening are astronomically low. Does anyone know the story behind that or have something on it?
  6. Hi, I'm a beginner learning how to script and following this guide I'm on Step 4 The Script Class Continued, trying to add the following code @Override public final void onMessage(final Message message) { log("A message arrived in the chatbox: " + message.getMessage()); } This gives me the error cannot find symbol class Message It seems a simple fix like I'm not including a library or something, but I can't find anything online. Here is my current code. import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author = "IronMike5424", name = "An Example Script", info = "Just an empty script :(", version = 0.1, logo = "") public final class Skeleton extends Script { @Override public final int onLoop() throws InterruptedException { return 0; } @Override public final void onStart() { log("This will be printed to the logger when the script starts"); } @Override public final void onExit() { log("This will be printed to the logger when the script exits"); } public final void onMessage(final Message message) { log("A message arrived in the chatbox: " + message.getMessage()); } }
  7. Hi, I have a bit of previous programming knowledge and just started scripting. I downloaded IntelliJ IDEA, created a file in the src folder called Skeleton.java along with a few other configurations and in Skeleton.java file is the following... import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; 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 1000; //The amount of time in milliseconds before the loop starts over } @Override public void onPaint(Graphics2D g) { //This is where you will put your code for paint(s) } } This was taken from a tutorial on a forum on osbot about the bare backbone needed to script. When I input that I get no errors, when I try to type other code, something as simple as public void onStart() { Inventory(); //Code here will execute before the loop is started } it brings up the error. "Cannot resolve method 'Inventory' in 'Skeleton'. I'm just trying to create a script that will click or do anything just to get going to know I can interact with it. What exactly do I need to add to this barebones script to get a bot to do anything? This got solved thanks to Khaleesi***
×
×
  • Create New...