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
-
This script is fairly customizable as it can be used for a multiple of things and also the user inputs what they want the bot to say when: A) What you want the bot to spam. If you input (dance or dancing) into this field the bot will dance. E.g: "Dancing 4 Money". B )After successful trade. C) If the other person declines. D) If the other person takes to long in trade which in turn makes the bot auto decline (35 seconds). E) If the other person accepts without putting anything into trade which makes the bot decline. The bot can be run in Lumbridge Center, Lumbridge Bank, Varrock Center, and Varrock Bank. The bot will bank if it has a full inventory and go back to the starting position of the bot. Here's a 3 Hour proggy of me Dancing 4 Money/Items in a F2P world: Here's a proggy from a user using a different method in a members world: Here's a proggy from me in a f2p world: Download link taken down until I hear word about SDN approval. Enjoy the script guys please leave feedback and any bugs you may encounter.1 point
-
1 point
-
right, so if i find methods from parent classes i can use them on the subclass too? so the method "isfull" that is used on itemcontainer class, is inherited by inventory? so i can use inventory,isFull() which will return a bool? edit: thanks for helping me out. I am starting my computer sciences stody next week and wanted to brush up on java before i started. i thought scripting might be a nice way to get into it. you've taught me something and i thank you for it. I was able to create a simple Bone collector + burier script that detects when it picks up something odd and drops it. source1 point
-
1 point
-
1 point
-
That works too i have my method also built into my timer class I dislike java's duration and instant classes tho. your method does not format days though, but that would be easy to add. apa1 point
-
1 point
-
Make sure to set camera zoom to default, please read the above posts :P If the camera zoom setting is on default, there will NEVER be issues.1 point
-
You should probably test it with dreamscripts --> resources --> SuckMyDick.jpg --> ShitChopper --> buggysource1 point
-
1 point
-
1 point
-
1 point
-
Glad the issue was resolved. If you have any further issues/questions/..., you can always send me a PM!1 point
-
1 point
-
1 point
-
Please make sure to have camera zoom on default, and you will NEVER have issues. Thanks! Gratz on 99 range definite! :D added to main post1 point
-
1 point
-
3 bots running 15 hour smooth with breaks every 3 hours for 10 mins, going for the biggest proggy1 point
-
1 point
-
can confirm i was the one who noticed that the account was being online/leveled up as i thought fruity had access to the account again.1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
Serum 207 update and anti-venom update is being worked on right now, will post when it is ready sorry for the wait!1 point
-
Ya but the problem is if I add cannon support, pll running the same script will ruin eachother over ... only a limited amount of pll would be able to run the script without getting screwed over by other I'll see about the special attack! Khaleesi1 point
-
Quoted from: http://osbot.org/forum/topic/66338-reducing-banning-rates-behind-the-scenes-at-osbot-27-febuary-2015/ Mac is supported now1 point