Jump to content

Koala

Members
  • Posts

    280
  • Joined

  • Last visited

  • Days Won

    49

Recent Profile Visitors

3,903 profile views

Koala's Achievements

Adamant Member

Adamant Member (5/10)

  1. Koala

    Pro Fisher

    Hey! I haven't seen any bug reports from Fisher in quite awhile. I'll go test at those locations, but can you elaborate on what's happening?
  2. Hey - couple issues with this: 1. If returning false in your onStart, it will exit the script. You couldn't run this from the login screen, as it would immediately exit. 2. walking is a boolean. You don't need to do walking == false, you can just do !walking 3. You never want to return -1, as that's the time between loops. You'd just be wasting resources by running nothing as fast as possible. 4. You never exit the script once it arrives.
  3. Discord is much more active that forums for this kind of support. If you're able to post in #help it'd be much easier to help debug any issues you're having.
  4. Koala

    Pro NMZ

    Can you give me details on your setup? It doesn't change the bosses on rumble.
  5. Nope. I've never heard of a main account getting banned
  6. Koala

    Pro Agility

    Client was down from the update. Should be working now 🙂
  7. Very nice release. I've been meaning to get more code examples out, so I thought I'd show my general coding style. The primary things are Simplicity - Ensuring that the logical flow controls behavior where possible. Ex. when moving. You don't need to do anything if you're moving. So if you have a check at the top that sleeps if you're moving, you can perform an action and then the method up top will prevent additional unnecessary interactions. One action per loop - for every loop, do one thing or do nothing. If you try and do multiple things per loop, you can introduce more bugs due to flow, an interaction failure, etc. You'll see I heavily use if, if else, and else statements. They're no state the script is in where it will ever do multiple things in a loop. Hope this helps some of the new scripters and lurkers 🙂
  8. How to set up Intellij for Script Development Please note that EpicBot uses Java 8. You can download this from Oracle here. If your Java version is not 8, set up Intellij to use Java 8, read "Set Up Intellij" here. Don't know your Java version? Type java --version in a command prompt. SETUP Make a new Intellij Project Go to File -> Project Structure -> Modules. Click the + icon. Select JARs or Directories. Find your EpicBot folder. Select the dependencies folder and click OK. You should now see it in your Dependencies list. Click Apply (don't click OK). Click your Artifacts tab on the left, and the plus arrow again. Select "Other" from the drop down menu. You should see something like this: Name your artifact at the top (must be unique from your other script artifact names in other projects). Select the "Include in project build" checkbox. Click the '<project name> compile output' on the right side, so it moves to the left column. Click the file folder on the left. Find your EpicBot/scripts folder. You may not have one, and will need to make one. Select it and click OK. If your screen looks like this, click Apply and OK. Any script should now compile when you click the "Build Project" button (green hammer top right) Making a Test Script Right click your src folder on the left. Select New -> Java Class, and name it. You should get something like this: A quick sample script to test: import com.epicbot.api.shared.APIContext; import com.epicbot.api.shared.GameType; import com.epicbot.api.shared.script.LoopScript; import com.epicbot.api.shared.script.ScriptManifest; import com.epicbot.api.shared.util.paint.frame.PaintFrame; import java.awt.*; @ScriptManifest(name = "Test Script", gameType = GameType.OS) public class TestClass extends LoopScript { @Override public boolean onStart(String... strings) { return true; } @Override protected int loop() { return 50; } @Override protected void onPaint(Graphics2D g, APIContext ctx) { PaintFrame frame = new PaintFrame("Test Script"); frame.addLine("Title", "Value"); frame.draw(g, 0, 170, ctx); } } Click the build icon (green hammer top right) and you should then be able to see your script in the script selector. FAQ Q: I followed the instructions and everything is red? Your dependencies are not imported properly. Q: I don't see the script in the script list? You're not building the artifact properly. Ensure that "Include in Project Build" is checked, your output directory is correct, and your compile output is under the output root (left column). See below:
  9. Koala

    Pro Wintertodt

    Can you send your settings? Not sure why it would ever fail to get over 500
  10. Client issue. Should be fixed.
  11. Set the screen to fixed mode. They changed the settings menu again.
  12. Thought I had fixed that, but i'll give it another look. Thanks!
×
×
  • Create New...