Leaderboard
Popular Content
Showing content with the highest reputation on 07/17/13 in all areas
-
Nice guide. Now let me write a guide, explaining the difference between the "osbot development" section and the "spam" section. Thread moved.3 points
-
Hello OSBot members. I'm making a guide how to Hack on runescape. Go To www.Runescape.com click '' START PLAY '' LOGIN ON RUNESCAPE. TELEPORT TO LUMBRIDGE ( TRADE WITH BOB ) BUY A BATTLEAXE FROM HIM ONCE U BOUGHT THE BATTLE-AXE, WEAR IT AND CLICK ON '' HACK '' DEAR PEOPLE, THIS WAS MY GUIDE TO HACK ON RUNESCAPE. I HOPE YOU ENJOYED THANKS!2 points
-
Community, RuneScape has updated. Luckily, we did not have to make any changes to our client to cope with the update. However, I've noticed that many NPC ids have changed. We suggest to all script writers that they use different methods of finding an npc (using names) as it appears Jagex is constantly changing ids for whatever reason. If you find a script is no longer working, this is most likely the issue. I've also been notified that certain object ids have changed. Thanks, The OSBot Staff Team2 points
-
Community, It's clear that there's an issue with grabbing the client parameters and/or injecting the dependencies. We're working to fix the issue as quickly as possible however there is no ETA. The main reason for this announcement is that there are several members going around "fixing" this problem for the other members by sending them tampered client and data files. Please be very careful of who you let "fix" your client because someone could easily give you altered code to steal your account information from your local files. This is very much against our rules and terms of service. Everyone should be reminded that we have copyright over our client and any uploading, re-distributing, or re-engineering of our client is not only severely against the rules, but also against the law in several countries. We would prefer to fix the issue on our own side and give an official release for not only our safety, but yours. The OSBot team is very serious about security and that's what sets us above the rest. Be very careful. Happy botting! The OSBot Staff Team2 points
-
This has been stated before, however some of you may still be using ids in your scripts and simply updating them. The problem with this however is that we have evidence that Jagex might be personalizing maps per person. This means, Jagex has the ability to dynamically alter object ids, per person. So while a script may work well based on ids for one person, it might not work at all for someone else. We don't believe they're doing this for NPCs or items, however, Jagex has been shuffling NPC ids around on updates. Items seem to be the only thing that hasn't been shuffled around. And for the record, it is possible that could in the future personalize NPC ids as well. My recommendations are, only use ids for items. Try to use names for objects and NPCs or model ids. We are aware that some objects have nulled definitions, meaning their names are "null" and all info related to them. We are working on a patch for this, which will be introduced in the v1.8.X release. We have fixed nulled definitions as of v1.7.21. Sincerely, Laz and the OSBot Team.1 point
-
1 point
-
1 point
-
OMGGGGGGGGGG IT WORKED 1000000000b Bank Thank you i hacked it W0000000000000000000000000000000T1 point
-
1 point
-
1 point
-
1 point
-
Does windows take both? I didn't know that. Thanks Eric If you really wanted it to be cross platform, just use System.getProperty("file.separator")1 point
-
Devs: I have made a watchdog tool kit to automatically watch for any experience gains while running any script. It has a few features, and will be expanding with any ideas which seem beneficial - With this jar, you can set up an amount of time (in advance) to count xp gains. When the xp gains are older than your chosen time, the are removed and not counted any more. The result is a (sort of) real time glance for how well the bot has done in the past x amount of time. No more 19 hour proggies with some xp/hr which means nothing. Xp varies while running scripts. (combat especially.) I hope this toolkit gets used and abused in future scripts. import java.awt.Graphics; // import my watchdog import dreamliner.XPWatchdog; import org.osbot.script.Script; import org.osbot.script.ScriptManifest; import org.osbot.script.rs2.skill.Skill; @ScriptManifest(name = "Dream's Watchdog Tester", author = "Dreamliner", version = 1.0, info = "Watchdog tester. Hope you like!") public class AIO extends Script { // create the watchdog reference XPWatchdog watchdog; Thread t; public void onStart() { log("Waiting for log in"); while (this.client.getLoginState() != 30) { try { sleep(250); } catch (InterruptedException e) { e.printStackTrace(); } } // initialize the watchdog this.watchdog = new XPWatchdog(this.client,this); // create the new watchdog thread this.t = new Thread(this.watchdog); // start the thread this.t.start(); } public int onLoop() throws InterruptedException { return 1000; } public void onPaint(Graphics g) { // pick anything you want to display. g.drawString(this.watchdog.getXpPerPrune(Skill.ATTACK) + " per 5 mins", 300, 300); } public void onExit() { log("thread interrupted"); this.t.interrupt(); } } link to the jar file -> http://goo.gl/Fy2hu link to jar tester -> http://goo.gl/HnqII Methods: public void setPruneTime(int t); // sets the amount of time (in milliseconds) to get rid of data points (> 1000ms) // default: 1000*60*5 ms (5 mins) public int getXpPerPrune(Skill s); // returns the amount of xp gained per prune time for the skill of your choice public int getAllXpPerPrune(); // returns the total amount of xp gained on the account during the prune time. a picture was requested..1 point
-
1 point
-
Since someone released a half-assed price checker, I figured I'd release a proper one. http://pastebin.com/Jj3BgUFL1 point
-
import java.awt.AWTException; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.TrayIcon; import java.awt.event.ActionListener; public class Tray { private PopupMenu popup; private final TrayIcon tray; private final String scriptName; private boolean showing = false; public Tray(Image image, String scriptName) { this.tray = new TrayIcon(image, scriptName); this.scriptName = scriptName; } public void show() throws AWTException { if (SystemTray.isSupported()) { if (this.tray != null) { this.tray.setToolTip(this.scriptName); this.tray.setImageAutoSize(true); SystemTray.getSystemTray().add(this.tray); this.showing = true; } } else { throw new AWTException("System Tray is not supported!"); } } public void hide() { if(this.showing == true && this.tray != null) { SystemTray.getSystemTray().remove(tray); this.showing = false; } } public void addMenuItem(MenuItem item, ActionListener listener) { item.addActionListener(listener); this.popup.add(item); if(this.tray != null) this.tray.setPopupMenu(popup); } public void sendDisplayMessage(String message, TrayIcon.MessageType type) { if(this.showing == true) this.tray.displayMessage(this.scriptName, message, type); } } Example usage... final Tray tray = new Tray(ImageIO.read(new URL("http://i.imgur.com/HGN98TQ.gif")), "Cool Script"); tray.addMenuItem(new MenuItem("Hide"), new ActionListener() { @Override public void actionPerformed(ActionEvent e) { tray.hide(); } }); tray.show(); tray.sendDisplayMessage("Cool Script initalized!", TrayIcon.MessageType.INFO);1 point
-
This is just something I threw together really quick import org.osbot.script.rs2.skill.Skill; public class Goal { public final Skill skill; public final int target; public final GoalEvent event; public Goal(Skill skill, int target, GoalEvent event) { this.skill = skill; this.target = target; this.event = event; } } import org.osbot.script.Script; public abstract class GoalEvent { private final Script script; public GoalEvent(Script script) { this.script = script; } public abstract void onGoalReached(); } import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.osbot.script.Script; public class HandleGoals { private final List<Goal> goals; private final Script script; public HandleGoals(Script script) { this.script = script; this.goals = new ArrayList<>(); } public void provide(Goal... goals) { for(Goal goal : goals) { if(!this.goals.contains(goal)) this.goals.add(goal); } } public void remove(Goal... goals) { for(Goal goal : goals) { if(this.goals.contains(goal)) this.goals.remove(goal); } } public boolean check() { Iterator<Goal> iterator = this.goals.iterator(); while(iterator.hasNext()) { Goal goal = iterator.next(); if(goal.target >= this.script.client.getSkills().getCurrentLevel(goal.skill)) { goal.event.onGoalReached(); this.remove(goal); return true; } } return false; } } Example Implementation... //put this anywhere in the script class private HandleGoals handle = null; //in your onStart put this... this.handle = new HandleGoals(this); handle.provide(new Goal(Skill.ATTACK, 99, new GoalEvent(this) { @Override public void onGoalReached() { log("I have reached my goal, tell me what to do now in this method"); } })); //in your onLoop put this... if(handle != null) handle.check();1 point
-
onStart; SkillMonitor.resetSkills(); onLoop or onPaint; SkillMonitor.updateSkills(client.getSkills()); use as; SkillMonitor.xpGained(Skill.MINING) Class; import org.osbot.script.rs2.skill.Skill; import org.osbot.script.rs2.skill.Skills; import java.util.Collection; import java.util.HashMap; /** * User: Cory * Date: 26/06/13 * Time: 06:41 */ public class SkillMonitor { private static HashMap<Skill, Monitor> monitors = new HashMap<Skill, Monitor>(); public static Monitor get(Skill skill) { Monitor mon = monitors.get(skill); if(mon == null) { mon = new Monitor(); mon.skill = skill; monitors.put(skill, mon); } return mon; } public static void updateSkills(Skills skills){ for(Monitor mon : values()) { int currentXp = skills.getExperience(mon.skill); if(mon.currentXp > 0) mon.lastGainedXp = currentXp-mon.currentXp; if(mon.currentXp != currentXp && mon.startXp <= 0 && mon.currentXp >= 0) { mon.startXp = mon.currentXp; mon.startLevel = mon.currentLevel; mon.startedTraining = System.currentTimeMillis(); } mon.currentXp = currentXp; mon.currentLevel = skills.getCurrentLevel(mon.skill); mon.actualLevel = skills.getLevel(mon.skill); mon.xpToLvl = xPForLevel(mon.currentLevel+1)-mon.currentXp; } } public static int xpGained(Skill skill) { if(startXp(skill) <= 0) return 0; return currentXp(skill)-startXp(skill); } public static int lvlGained(Skill skill) { if(startXp(skill) <= 0) return 0; return currentLvl(skill)-startLvl(skill); } public static int xpToLvl(Skill skill) { return get(skill).xpToLvl; } public static int startXp(Skill skill) { return get(skill).startXp; } public static int startLvl(Skill skill) { return get(skill).startLevel; } public static int currentXp(Skill skill) { return get(skill).currentXp; } public static int currentLvl(Skill skill) { return get(skill).currentLevel; } public static int xPForLevel(int level) { int points = 0; int output = 0; for (int lvl = 1; lvl <= level; lvl++) { points += Math.floor((double)lvl + 300.0 * Math.pow(2.0, (double)lvl / 7.0)); if (lvl >= level) return output; output = (int)Math.floor(points / 4); } return 0; } public static void resetSkills() { monitors.clear(); } public static Collection<Monitor> values() { return monitors.values(); } public static class Monitor { public int startXp = -1, startLevel = 0, lastGainedXp; public int currentXp = -1, currentLevel = -1, actualLevel = -1; public long startedTraining = -1; public Skill skill = null; public int xpToLvl = 0; } }1 point