Leaderboard
Popular Content
Showing content with the highest reputation on 08/26/15 in all areas
-
Hey guys, I've had quite a few scripters attempt to use the resources folder to load stuff without having to download them manually, so I figured I'd write a quick tutorial. (I've put this in the scripter section because I'd rather not have new scripters throwing random shit into that folder. Please limit it to image/text only). RESOURCES Folder location: For a script, put the resources folder in the root of the script module (I think root of the git repo works too if you want to use global resources). IE: dreamscripts --> DreamChopper --> resources --> ValkyrIsANoob.jpg Accessing resource from your script: Here's a quick test script that I created and submitted to SDN to check that it works: (You can pull out the code...) package test; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.io.*; /** * Created by ericthecmh on 8/26/15. */ @ScriptManifest(version = 1.0, author = "Ericthecmh", logo = "", info = "Amaze", name = "Llama") public class Llama extends Script { private BufferedReader br; @Override public void onStart() { br = new BufferedReader(new InputStreamReader(this.getClass().getResourceAsStream("/resources/LLAMAS.DAT"))); } @Override public int onLoop() throws InterruptedException { try { String s = br.readLine(); if (s != null) log(s); } catch (IOException e) { e.printStackTrace(); } return 1000; }z } I TESTED LOCALLY AND IT DOESN'T WORK??? Make sure that when you build the local jar, it contains the resources folder in the root of the jar: DreamChopper.jar --> resources/ --> LLAMAS.DAT --> org --> dreamscripts --> chopper5 points
-
Dear Community, I have removed the 100 post count limit to account sales, but they still need to be approved by a moderator before it shows up to the public. This is so people can respond without 100 posts to buy an account. We will not be approving any threads for account sales by new users, spammers, or any other thing we see suspicious. If you feel someone is suspicious, feel free to report the thread or pm a staff member. Thanks, @Maldesto5 points
-
This account is 6-7 days old, I am botting until 99 fishing, or ban. Fishing Levels 1-30 Shrimp - F2p 30-55 Trout/Salmon - F2p 55-76(current)- Lobster - P2p, bond donated4 points
-
Tired of crafting? Angry that there is no free crafting bot for the bs early levels? This shitty, but functional, script made in 7 minutes is the perfect solution. Directions: Make a tab with needles, threads, and hard leathers. Stand in front of a bank chest (I use castle wars bank chest) Start the script Level up Source: import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.api.ui.RS2Widget; import org.osbot.rs07.script.Script; import java.util.concurrent.TimeUnit; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(author = "Christ1665", info = "Hard Body Maker (use near a bank chest)", name = "Hard Bodies", version = 0, logo = "") public class main extends Script { @Override public void onStart() { } private enum State { BANK, SETTING_UP, WORKING } private State getState() { if (bank.isOpen()) { return State.BANK; } if (!players.inventory.contains("Hard Leather") || !players.inventory.contains("Needle") || !players.inventory.contains("Thread")) { return State.SETTING_UP; } if (players.inventory.contains("Hard Leather") || players.inventory.contains("Needle") || players.inventory.contains("Thread")) { return State.WORKING; } return null; } @Override public int onLoop() throws InterruptedException { switch(getState()) { case BANK: if (!players.getInventory().isEmpty()){ bank.depositAll(); } bank.withdraw("Hard leather", 26); bank.withdraw("Needle", 1); bank.withdraw("Thread", 12); bank.close(); break; case SETTING_UP: Entity bank = objects.closest("Bank Chest"); bank.interact("Use"); break; case WORKING: getInventory().getItem("Hard leather").interact("Use"); getInventory().getItem("Needle").interact("Use"); sleep(random(700, 950)); RS2Widget w = widgets.get(309, 2); if (w != null) w.interact("Make ALL"); sleep(random(20000, 28000)); } return random(500, 800); } @Override public void onExit() { } @Override public void onPaint(Graphics2D g) { } } Jar: http://www.mediafire.com/download/ko4uao5prg1w18d/Christ1665.jar Pic:3 points
-
public static String formatTimeDHMS(final long time) { final int sec = (int) (time / 1000), d = sec / 86400, h = sec / 3600 % 24, m = sec / 60 % 60, s = sec % 60; return (d < 10 ? "0" + d : d) + ":" + (h < 10 ? "0" + h : h) + ":" + (m < 10 ? "0" + m : m) + ":" + (s < 10 ? "0" + s : s); } where time is in milliseconds. Implementation: g.drawString("Runtime: " + formatTimeDHMS(timer.getElapsed()), 100,100); where g = graphics2d and timer is your timer from the start of the script and getelapsed is a method from your timer class returning the time elapsed in millis This ill be formatted as: 00:00:00:00. d: h: m: s Apa2 points
-
PRAISE ME oh on a final note, you guys are probably like this but guess what? i dont give a shit HERES TO 5K, AND BEYOND!2 points
-
Just don't, literally took me 1 try after a few years. If you really need help distract yourself with other mindless drugs Like soda, or league of legends <_<2 points
-
2 points
-
.... The problem we're facing here is statements like In Java, Objects are passed by reference, and primitives are passed by value. This is half incorrect. Everyone can easily agree that primitives are passed by value; there's no such thing in Java as a pointer/reference to a primitive. However, Objects are not passed by reference. A correct statement would be Object references are passed by value. This may seem like splitting hairs, bit it is far from it. There is a world of difference in meaning. The following examples should help make the distinction. ... Interesting article: http://javadude.com/articles/passbyvalue.htm1 point
-
yea this will help, that way nobody has to spam the forums anymore1 point
-
1 point
-
Had no issues with .101 Download .104 -> open -> key in OSBot account/proxy info -> launch -> greyscreen and it says i'm "logged out" Deleted C:/users/YOURNAME/OSBOT -> re-dl and the client worked until i keyed in my bots username and password in Settings. After i added all the bots information the client froze up. I closed the client and re-opened to a grey screen with "logged off" Does anyone have a fix? Would be greatly appreciated, Jauz1 point
-
Yeah i'm using proxies, i actually solved the problem (ish) after playing with it for a while, i don't even know what i did but it works now, thanks for the response thanks for the response, i did this last night but the problem remained, i did the same thing today and played with it for a bit and got it to work somehow lol1 point
-
1 point
-
1 point
-
i didnt get banned until i started using this script. i was botting for over a year, then my luck suddenly turns as soon as i use this one script? coincidence? nah. not trying to bust your balls or anything cause personally Perfect Crabs works flawlessly for me and i can run it for days on end.1 point
-
Why is startLoc/endLoc a two dimensional array? It looks like it just needs to be a regular array of Strings. Also, we want to populate our JComboBox with an array, not a single string. As such, we pass the entire array not just the first element. final String[] startLoc = {"Lumbridge", "Varrock", "Falador", "Al Kharid", "Draynor Village"}; JComboBox<String> sLBox = new JComboBox<>(startLoc); final String[] endLoc = {"Lumbridge", "Varrock", "Falador", "Al Kharid", "Draynor Village"}; JComboBox<String> eLBox = new JComboBox<>(endLoc); We should not reassign startLoc's value, make a new variable and assign it to the select value! String startingLocation = sLBox.getSelectedItem().toString(); String endingLocation = eLBox.getSelectedItem().toString(); Now we have the String representation of both the ending and starting locations. if (startingLocation.equals("Varrock") && endingLocation.equals("Lumbridge")) { // do stuff! } I would suggest reading up a bit more about how all these components (arrays/Strings/2D arrays/combo boxes) work to get a better understanding of the Java language, but I hope what I provided helps you with your script.1 point
-
1 point
-
Version 0.38 - Added anti-venom - Added anti-venom+ - Serum 207 potions are made faster - Banking slowed down (no more spam clicks) update will be live within a few hours ;) enjoy! Let me know if there are any spam clicks in banking ;)1 point
-
1 point
-
Awesome, glad you like it ! And thank you for the review, very much appreciate it apa1 point
-
First off i want to say I only trust YOUR scripts. I was very excited to get this mining script and it seems really well put together. I have ran into some trouble when I choose my own rock. It just pauses and "calculates". Also while granite mining it drops your full invy even if you choose m1d1.1 point
-
1 point
-
1 point
-
Release notes: Updates related to preparation of web walking release Miscellaneous bugfixes MAC/LINUX users please note: Mirror mode was originally designed for windows, and is optimized the most for it. And while it's now supported on OS X & LINUX - the performance of it is best when used on windows. Crashing issues for certain users with linux will be fixed in the next build.1 point
-
http://osbot.org/forum/topic/55540-ballers-graphics-store-pp-rs3gp-07gp-200-orders-completed/ http://imgur.com/a/DTifE#91 point
-
Hi, Used script Friday and Saturday and have been very impressed. The odd going off for a wander but nothing that really bothers me as i babysit it anyway. However, yesterday couldnt get script to start using the select rocks function, spent half the day messing, deleting osbot and reinstalling (including folder) trying different angles etc. Basically just freezing osbot, cant even close it have to use task manager! Today i thought i would give it a whirl in Fally as i have used here before with just agility shortcut issue, whilst it is working it is making me run from one end of mine to the other every other rock then waiting for 30 secs before starting again, seriously impeding xp. Just wandering what has changed? ok, waiting around is a newbie mistake re only 2 coal and bot waiting for respawn and i imagine running to bottom of mine is purely looking for more coal...sorry!! So seems its working here when using "from list" but if i choose from screen it freezes again.1 point
-
1 point
-
script runs fine but why isn't there a looting option?? I want it to pickup clues..1 point
-
1 point
-
The most retarded scammer of them all, buys $100 donor scams 5 bonds1 point