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
  • Try asking for help in the chatbox
  • notsmile

    • Content Count

    • Joined

    • Last visited

    • Days Won

    1. import javax.net.ssl.HttpsURLConnection; import java.awt.*; import java.io.IOException; import java.io.OutputStream; import java.lang.reflect.Array; import java.net.URL; import java.util.List; import java.util.*; public class Webhook { /** * Class used to execute Discord Webhooks with low effort */ private static String url; private static String content; private static String username; private static String avatarUrl; private static List<EmbedObject> embeds = new ArrayList<>(); public static void setURL(final String webhook) { Webho
    2. public static boolean doesTutVarpEqual(int...varps) { for (int i : varps) { if (PlayerSettings.getConfig(0) == i) { //replace 0 with whatever config you need to get return true; } } return false; }
    3. Hey! Just wanted to point out a few things: public static boolean isFireUnderPlayer() { GameObject Fire = GameObjects.closest("Fire"); if (Fire != null && Fire.getTile().equals(Players.localPlayer().getTile())) { MethodProvider.log("True"); return true; } else { MethodProvider.log("False"); return false; } This can just be minimized to: public static boolean isFireUnderPlayer() { GameObject fire = GameObjects.closest("Fire"); if (fire != null && fire.getTile().equals(getLoca
    4. If you use a profiler (something like JProfiler or VisualVM) it may mess w/ it and cause DB to be unreadable via the profilers. (Btw profilers are better at detecting actual resoruce usage since it detects it at the JVM level ) Edit: Just tested it w/ latest version of AdoptOpenJDK 1.8 OpenJ9 and can confirm that VisualVM and JProfiler do NOT work with OpenJ9. I even tried to specify where the JDK is located and still didn't get it to work. Just a heads up for the people who use either profiler to measure resource usage .
    5. Nice, hope this goes well
    6. Bugs also occur when using .drop() and .dropAll() (It drew a mf star when I used .dropAll() LMAO)
    7. Hey, found a bug when using this mouse alg and doing Inventory.get("itemName").useOn("itemName"); GIF(s) of the bug:
    8. Ah ok, that makes sense then. Hopefully I'll be able to improve on it!
    9. But humans aren't truly random, so wouldn't it make sense to keep a similar characteristic across bots?
    10. Hey! I wanted to have sort of 'human profiles' to my scripts so I decided to get into username hashing and that username hash is the seed for a random number generator then you can base your profiles off of that number and it will always be the same Code: private String username; private long seed; Random random; private int number; private boolean shouldGenerateHash = true; @Override public int onLoop() { if (shouldGenerateHash) { if (Players.localPlayer() != null) { username = Client.getUsername(); seed
    11. It's not really mixing them, it's just the paint and what not to see what action I'm currently doing
    12. Currently the way I do my states is like this States.java public enum States { NOTHING("Nothing"), ATTACKING("Attacking"), WALKING("Walking"); private String state; States(String state) { this.state = state; } public String getState() { return state; } } Main.java public static States state = States.NOTHING; public void onPaint(Graphics2D g) { g.drawString("State: " + state.getState() + " - " + npc.getName() ,12,77); } AttackCows.java Main.state = States.ATTACKING; Is there a better way to do this? As well
    13. 1. Ah I didn't know it also returned true if it's already open, I assumed it would still try and do it, thanks! 2. Okay thanks, I'll update it soon 3. Yeah, it was for my own use case so I kinda didn't take that into account 4. I've been up for 24 hours man, changed tho, ty!
    14. public boolean changeCombatStlye(int config, int childID, String style) { WidgetChild accurateWidget = Widgets.getWidget(593).getChild(childID); if (PlayerSettings.getConfig(43) != config) { log("Switching to: " + style + " | Config: " + config); if (Tabs.isOpen(Tab.COMBAT)) { sleep(500,800); return accurateWidget.interact() ? Tabs.openWithFKey(Tab.INVENTORY) : Tabs.openWithFKey(Tab.COMBAT); } else { Tabs.openWithFKey(Tab.COMBAT); } } return false; } Hopefully this is better
    • Create New...