-
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.
-
Ah ok, that makes sense then. Hopefully I'll be able to improve on it!
-
But humans aren't truly random, so wouldn't it make sense to keep a similar characteristic across bots?
-
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
-
It's not really mixing them, it's just the paint and what not to see what action I'm currently doing
-
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
-
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!
-
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
-
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");
-
I will once I get the bug again, do you prefer here or discord DM?
-
Thanks!, Yeah I just added the TwentyHours and adding the logic into it soon. Thanks for the tips
-
Pandemic reacted to a post in a topic: [Open Source] F2P Trade Restrictions Unlocker
-
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)
-
notsmile reacted to a post in a topic: [Open Source] F2P Trade Restrictions Unlocker
-
purepanic reacted to a post in a topic: [Open Source] F2P Trade Restrictions Unlocker
-
AsBakedAsCake reacted to a post in a topic: [Open Source] F2P Trade Restrictions Unlocker
-
It makes sense! Thanks, just changed it now in intelliJ
-
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
-
notsmile reacted to a post in a topic: Saving RAM across Clients with Class Data Sharing
-
notsmile changed their profile photo
-
notsmile started following Help with combat script
-
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 }