Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Zenarchist

    Scripter
    • Posts

      37
    • Joined

    • Last visited

    • Days Won

      2

    Zenarchist last won the day on September 26 2022

    Zenarchist had the most liked content!

    About Zenarchist

    Profile Information

    • Gender
      Male
    • Location
      : Australia

    Recent Profile Visitors

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

    Zenarchist's Achievements

    1. Peace out everybody! Good luck with your coding journey.
    2. And here is my entire heavily-commented Helper class package for anyone who is curious and looking for ideas. Just put all of these into a package named Zen, then import Zen.* and call the constructor Zen(script) in your AbstractScript's start method to gain access to the generic helper methods, GUI and the AntiBan systems in your own scripts. This class contains features like generic shift-dropping methods, inventory slot pattern randomization, various widget IDs and coordinates etc. Basically it is just a custom library for simplifying any actions that are performed repeatedly across multiple scripts. Zen.java: ZenGUI.java: ZenAntiBan.java: Script Example:
    3. Long story short, I have decided to retire early from my OSRS scripting career and I feel bad leaving all this work I've done behind. So I figure I'll release the source code to everyone and maybe someone can learn something from it and then it isn't a complete waste of time lol. Features: Easy to use, robust anti-pattern system that randomizes various activities while botting. The current code will: Examine random entities (objects, npcs, ground and inventory items etc) Check a random stat (you can tell it which stats to check with antiban.setStatsToCheck(Skill.ATTACK, Skill.DEFENCE);) Type something random (gibberish) Move the mouse to a random location (and sometimes click the left or right button) Walk to a random location nearby Chop a random tree nearby Click on a random entity (object, npc, item etc.) Go AFK for a while (turns off autologin and random solvers temporarily) Open your inventory Open your stats menu Open your magic menu Open your combat menu (only if you have included Melee stats in your Stats to Check) Move the mouse off-screen for a while Move the camera randomly Trigger a "DO_RANDOM" flag for custom script-specific anti-pattern measures (eg. drop junk early etc.) It also includes ChatBot code (for retrieving CleverBot API responses). I will also include the code to my script-helper class just for anyone who is curious and maybe wants to steal some of my helper methods (such as randomized slot-pattern item dropping and general convenience methods). The way it was designed is to be used as a final callback after your usual script logic is performed. When your character is idling or between actions, call antiban.antiBan() to perform any of the given actions at random. Enjoy guys have fun. Script Example: package ZenTester; import org.dreambot.api.script.AbstractScript; import org.dreambot.api.script.Category; import org.dreambot.api.script.ScriptManifest; import java.awt.*; @ScriptManifest(category = Category.MISC, name = "ZenTester", author = "Zenarchist", version = 1.0, description = "For testing") public class Main extends AbstractScript { // Declare anti-ban instance private ZenAntiBan antiban; @Override public void onStart() { // Initialize anti-ban instance antiban = new ZenAntiBan(this); } @Override public int onLoop() { // Check for random flag (for adding extra customized anti-ban features) if(antiban.doRandom()) log("Script-specific random flag triggered"); // Call anti-ban (returns a wait time after performing any actions) return antiban.antiBan(); } @Override // Draw anti-ban info to the screen public void onPaint(Graphics g) { g.drawString("Anti-Ban Status: " + (antiban.getStatus().equals("") ? "Inactive" : antiban.getStatus()), 10, 100); } } ZenAntiBan.java:
    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.