Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Make sure you have Java installed
  • 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 gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • notsmile

    Members
    • Content Count

      15
    • Joined

    • Last visited

    • Days Won

      1

    notsmile last won the day on February 22

    notsmile had the most liked content!

    About notsmile

    • Rank
      Newbie

    Recent Profile Visitors

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

    1. Ah ok, that makes sense then. Hopefully I'll be able to improve on it!
    2. But humans aren't truly random, so wouldn't it make sense to keep a similar characteristic across bots?
    3. 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
    4. It's not really mixing them, it's just the paint and what not to see what action I'm currently doing
    5. 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
    6. 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!
    7. 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
    8. Hope you guys find this useful public static 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)) { Tabs.openWithFKey(Tab.COMBAT); sleep(500,800); if (accurateWidget.interact() && PlayerSettings.getConfig(43) == config && Tab.COMBAT.isOpen()) { log("Now gaining " + style + " XP");
    9. I will once I get the bug again, do you prefer here or discord DM?
    10. Thanks!, Yeah I just added the TwentyHours and adding the logic into it soon. Thanks for the tips
    11. Same here but I don't even get the red screen, just that I've been disconnected from the RS server (due to 6 hour logout)
    12. It makes sense! Thanks, just changed it now in intelliJ
    13. Hey guys, first post here, been working on a trade restrictions unlocker and planning on uploading it to the sdn as my first script soon. Hope you guys like it Github If there are any improvements that I can make please let me know, I'd really like to improve as much as I can
    14. Hey I may have something useful for you if you don't use/know about it! https://github.com/ultrafunkamsterdam/undetected-chromedriver Maybe you can try and see if it helps you
    15. Hi, I would like some help on how I would be able to get a list of NPCs closest to my player, and see if it has the option to attack them, and if it does, to attack them. This is the code I have so far. @Override public boolean accept() { return !Players.localPlayer().isHealthBarVisible() && !Players.localPlayer().isAnimating(); } @Override public int execute() { List<NPC> npcs = NPCs.all(); if (npcs.isEmpty()) { return Calculations.random(600,1000); //wait for an npc to be in our range }
    ×
    ×
    • Create New...