Jump to content

obrands

Members
  • Posts

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

obrands's Achievements

Newbie

Newbie (1/10)

1

Reputation

  1. It worked like a charm! Also, i had downloaded the JDK 11 and JRE 8.. so i saw that i didnt have the JDK 8 which was my fault. Although, thanks alot! Cheers
  2. Thanks, will check and reply if it works!
  3. import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest( logo = "1", name = "testing", version = 1, author = "Obrands", info = "hi") public class Main extends Script { @Override public void onStart() { log("welcome"); } @Override public int onLoop() throws InterruptedException { NPC goblin = npcs.closest("goblin"); if (goblin != null) { goblin.interact("Attack"); } return random(1000, 2000); } @Override public void onExit() { log("bye"); }
  4. Hi everyone. So im new to writing scripts and just want to try a script that i wrote quite fast. So i tried to make the script to a jar file by going to project structure/artifacts/new jar/empty and i choose the "compile output" file from avaliable elements and then applied the settings. After i build it, i get the jar file and when i start OSBOT i can't find it in the bot scripts... Then i downloaded a jar file from the forum and put it in the script folder, and when i start OSBOT i can see the downloaded JAR script but not my own script... if i check the logger, it says [INFO][03/21 03:37:41 em]: Started bot #1 [ERROR][03/21 03:37:43 em]: Failed to load local script : Main.class [ERROR][03/21 03:37:44 em]: Failed to load local script : Main.class [ERROR][03/21 03:37:44 em]: Failed to load local script : Main.class [ERROR][03/21 03:37:45 em]: Failed to load local script : Main.class .... maybe someone can guide me how to create jar file the right way or writing the script haha
×
×
  • Create New...