Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/29/13 in all areas

  1. Hide yo kids, hide yo wife.
    4 points
  2. The following update contains mainly improvements with clicking accuracy. The client will now analyze each menu option to verify if it represents the object we desired to interact with. This bugfix also applies to interface interactions as well. Also a few hooks in RS2InterfaceChild were fixed. P.S. Lost and found has been verified to work on this release. Thanks, Sincerely, Laz and the OSBot Team.
    3 points
  3. Been requested to me a few times, So figured I might give it a go in a week or so when I've finalised my year at uni. Server would be your basic spawn/pk server for a bit of fun, would try to get really decent combat etc and have a general laugh whilst botting. If this gets a decent amount of support then I will most likely give it ago. I have done a lot of work on rsps, so it should be a fun project. Let me know what you think.
    2 points
  4. This release has menu count debugging disabled. This was enabled in our previous release as an error. This release also features a patch to the local script loader. Hopefully this fixes issues with people trying to load local scripts. Thanks, Sincerely, Laz and the OSBot Team.
    2 points
  5. We should make a seperate thread for people to say thanks for the updates because I come to this thread to read stuff on the update but can't 'cuz all I see is people being like "thanks you are da best"
    2 points
  6. That's the scripter's fault. Request that they fix their script.
    2 points
  7. Divine's GUI Paint System What is this paint system, and how can it benefit me?: This is an open source class which you can implement into any script for extremely quick + clean paint. It is not paint, but can be used instead or along with paint. It is a seperate window which displays whatever information you wish to display!How easy is it?: Notice how few lines create and draw the entire window: Media: Does it consume a lot of memory?: Very low memory usage, much smaller than drawing paint on the client screen.Instructions for use: Add the new .java file into your project (GUIPaint.java). Code with few easy methods. Make sure to include the compiled .class inside the script jar, or along with the other script classes. Code Syntax: This code goes in onPaint(Graphics g) inside YOUR script. Always start with this line: GUIPaint.buildFrame("GUI WINDOW TITLE"); Then, you MUST define a category. When you want to set a new category, after the last cell in the previous category, use the same code again. GUIPaint.setCategory("Category Name"); Next, add as many cells as you wish! If you go too high, specify in GUIPaint.buildFrame(name, MAX_CELLS) to increase the maximum amount of cells. The default is 20. Also, addCell supports value types of String, doubles, booleans, longs, and integers. GUIPaint.addCell("NAME OF ITEM (WITHOUT COLON)", "VALUE"); Always End with RefreshPaint(): GUIPaint.RefreshPaint(); To have the Window CLOSE on script exit, add GUIHandler.CloseGUI() inside your onExit(): public void onExit() { GUIPaint.CloseGUI(); } A good example of a full implementation, displaying static text: public void onPaint(Graphics g) { GUIPaint.buildFrame("Clay Miner"); GUIPaint.setCategory("Time"); GUIPaint.addCell("Time Running", "00:00:00"); GUIPaint.setCategory("Clay"); GUIPaint.addCell("Clay", 0); GUIPaint.addCell("Clay / Hour", 0); GUIPaint.setCategory("Experience"); GUIPaint.addCell("Experience", 0); GUIPaint.addCell("Experience / Hour", 0); GUIPaint.RefreshPaint(); } public void onExit() { GUIPaint.CloseGUI(); } Download the GUIPaint class HERE: http://uppit.com/vrkhkxohfryb/GUIPaint.java
    1 point
  8. *whistles* jumped the gun a bit there to blame the scripters eh Kati?
    1 point
  9. 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
  10. They aren't complete noobie. I learned as well.
    1 point
  11. Is it normal at .15 that the action list is printed out over the whole screen all time? I can't find a way to put if of because its pretty ennoying while botting ;) kind regards H0ppy
    1 point
  12. Is there anyway to turn off the annoying green text in the client ?
    1 point
  13. Don't think scripts break by themselves after an update rofl and its the bots fault cos it isn't a script specific problem
    1 point
  14. I think you should re-add the API link to the links on the top of the forums. I always thought it was convenient having it up there. SXForce
    1 point
  15. Why do people like the be smart asses online, but they turn out to be a pussy irl?
    1 point
  16. Don't forget the throws clause of the InterruptedException method declaration.
    1 point
×
×
  • Create New...