Sana
Members-
Posts
18 -
Joined
-
Last visited
-
Feedback
0%
Profile Information
-
Gender
Male
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Sana's Achievements
Newbie (1/10)
4
Reputation
-
When I start my script, it's automatically on "Start" mode with the screen locked, disallowing keyboard or mouse events. How can I run the script such that it is "started", but I can still override the keyboard/mouse without having to pause? My script doesn't need to use the keyboard or mouse so I want them disabled.
-
Personal background Like many of you, I've played RuneScape for a very long time. I'm close to being a 15 year veteran now. I played the game legit for a max cape in RS2, and still use that same account in OSRS today (2k+ total working on max). Throughout my RuneScape journey, I've gained a lot of new skills. One of those skills are computer programming. After maxing on RS2 when I was 17, I started learning to code and do other interesting things on a site called HackForums. Fast forward a little over half a decade, I've consulted as a Software Engineer for government and industry ever since I got my first full-time job offer around 18 years old. Why I came to OSBot After recently launching a digital payment gateway for online businesses, I wanted another challenge. I had been thinking a lot AI and machine learning, and their implications. Naturally, I wondered if there was a way to make a bot that can emulate my behavior through the use of those technologies. And there is! It's called AlphaGo. Unfortunately, AlphaGo was not designed for RuneScape. But I thought to myself, "If AlphaGo did this for DOTA 2, then in theory it can be done for other games, right?". It was a moment of eureka. The idea of a bot that learns from your (or all players) playing style and emulates them seemed incredible to me. And I'm not talking about fake anti-ban solutions like human mouse movements that aren't based on actual human mouse movement data. I'm talking about a client that records you playing, learns from you, and later when faced in front of the same task it will use what is learned from your data to achieve the same goal. Moreover, it is certain that JaGeX collects mouse and other hardware/system data. They state it clearly in their privacy policy. I've seen threads with people arguing about this fact over and over, no one seems to know how to read. Just search for "Technical Data" and it'll be the first result; they literally tell you every bit of data they collect. This is why it's important for things like mouse movements to be highly accurate and not just guesses. So, this is what I'm building. It's a large task, but I spent the past two years building a digital payment gateway on the blockchain and had to learn all that from scratch, so this project is right up my alley in terms of volume of work. I also have a lot of recent professional machine learning experience, so that'll be a plus as well. Feel free to compete with me or work on your own similar product if you find it interesting, that's why I shared it you all; competition is good for the ecosystem. I'm sure some have already started working on things like this, but what I'm building here will be the panacea, there is no question about it. Thanks and good luck! You should be hearing from me in the coming months.
-
Oddly enough I've botted almost all day every day for the past few days to get 85-96 str on it and no ban, but then again I did that on an account with a username login that is about 10 years old and has played legit a lot in the past, including on RS3. So maybe that helps.
-
Every time this script runs to the bank, it clicks on the exact same spot in the far corner. Why does it do this? Can this be stopped? It's so easy to tell this is a bot by the walking motions to the bank...they are exactly the same 90% of the time.
-
Go to these docs and search for "moveYaw". Clearly it says: It also specifically says to use 0 for NORTH: In my code, I do the following: paint.state("Moving camera north..."); if (!moveCameraNorth()) { paint.state("Failed to more camera north."); return false; } private boolean moveCameraNorth() { return getCamera().moveYaw(0); } I see this in the logger: Why does this happen? Completely goes against the documentation. There is no stack trace or any other error, just my own logs.
-
Just bought, this doesn't work...I followed the instructions exactly for using a butler on mahogany planks and it keeps running to the kitchen table spot and trying to make a mahogany tables there...mahogany tables is dining room -.- Please fix or refund. Literally doesn't work, tried restarting and following instructions exactly five times.
-
I have this snippet of code that will move the mouse offscreen. It works fine. See the code below: private void antiBanMoveMouseOffscreen() { int myMouseOffscreenAverage = random(learningData.MOUSE_OFFSCREEN_START, learningData.MOUSE_OFFSCREEN_END); paint.state("[Anti-Ban] Moving mouse offscreen for " + myMouseOffscreenAverage + "ms to simulate AFK..."); getMouse().moveOutsideScreen(); Sleep.sleepUntil(() -> false, myMouseOffscreenAverage); paint.state("[Anti-Ban] Complete!"); } I want to unfocus the OSBuddy client after I do this. I see a method to check if the client is focused: getClient().hasFocus() But I don't see an equivalent "getClient().setFocus()". Anyone know how to do this in OSBot? Thanks!
-
I have my bot walk from point A to point B using two Area's (point A and point B), and List<Position>'s for a path between them. This works perfectly fine how I have it. There is just one thing: I want it to eat potions while running but currently it only drinks potions either before or after the running has completely finished because I use "getWalking().walkPath(listOfPositions)". I found a solution to this problem here with the following code: final WebWalkEvent webWalkEvent = new WebWalkEvent(destination); webWalkEvent.setBreakCondition(new Condition() { @Override public boolean evaluate() { return shouldIDrinkPotion(); } }); execute(webWalkEvent); There is a problem, however. I can't use that code because "new WebWalkEvent()" won't accept my "List<Position>". How do I give that WebWalkEvent my list of positions so it can web walk it? EDIT: figured it out, just moved the contents of my List<Position> as variadic arguments to "new WebWalkEvent()".
-
java.lang.NoClassDefFoundError: org/json/simple/parser/ParseException
Sana replied to Sana's topic in Scripting Help
Ugh, IntelliJ is so stupid. Did what you said already, added the .jar from Project Libary and Global Library. Clicking "Library Files" to add it doesn't work, you have to click "Extracted Directory" to add it. Every StackOverflow answer says to click otherwise. Whatever, it's solved now. Thanks a bunch. -
java.lang.NoClassDefFoundError: org/json/simple/parser/ParseException
Sana replied to Sana's topic in Scripting Help
Hey, thanks for your response. Can you elaborate on this part a bit? In IntelliJ IDE 2019.1, I went to "File -> Project Structure -> Modules -> Dependencies" and then I added the json package .jar and also checked the box "Export" next to it, then hit "Apply" and "OK". This does not work, either. -
Java noob here. Seasoned in other languages but haven't ever used Java in production. I've already Googled and found solutions to this problem, but they do not work for me. Posting here just to make sure it's not an OSBot-specific issue. I followed step #1 on this OSBot tutorial. I added json-simple-1.1.jar to my project so I can use the following imports: import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; import org.json.simple.parser.ParseException; I also followed this video on how to ass a .jar to your classpath. The issue occurs when I rebuild the artifact and refresh scripts in OSBuddy, after running it I get this stack trace saying it can't find the class, even though I already added it and it builds fine in IntelliJ IDE: Anyone know what's going on here? How can I get this new package added to the classpath so the error goes away?
-
I am trying to figure out how much run energy I have left. How do I do this? I don't see an API for it... There is myPlayer().getHealthPercentage(), but no equivalent myPlayer().getEnergyPercentage(). EDIT: Never mind, found it. Using getSettings().getRunEnergy().
-
Thanks! The issue was dealing with space. Fixed by converting white spaces to nonbreaking spaces.
-
Yeah it doesn't work, I tried all that. When I log, it seems that the code stops running at the point that I log because the log never appears in that function, but it appears in logic right before the function. So strange. I'm using the following to do my logs since `log()` doesn't log to the OSBot debugger: getBot().getLogger().debug("..."); Also, If it makes any difference, the characters aren't in a "normal" area. They are at a runecrafting altar...perhaps that somehow messes with the OSBot API's and makes it so that the characters can't be seen?
-
Why is this? I come from a GoLang/JavaScript/PHP background, and this is allowed in those C-based languages, so I wasn't aware one shouldn't do this in Java. By the way, not sure if that was a tip or a solution but it didn't fix the issue. Thanks, though.