Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/15/13 in all areas

  1. I just made one for Master Chief and if any other staff are interested just "Like This" and post below that you want one, i will not give out the the psd file.
    7 points
  2. I believe Th3 should be given the title Trial Scripter. Not only has he made many scripts, they are also flawless and can run for days. I don't see why he can't be?
    2 points
  3. GMC Extreme Solver Description GMC Extreme Solver pickpockets H.A.M. members for clue scrolls (easy) and will flawlessly solve them, obtain a reward and repeat. This script will generate a generous profit and will rank as one of the most complex scripts on the site. Progress (35%) August 12th - Created the code layout, nearly finished the banking systems. August 13th - Finished banking, added clue reading/matching and added the first 4 clues. August 14th - Added another 7 clues (11 now), added support for map clues, added 'clue gathering' at the H.A.M. cave (also breaks itself out of H.A.M. jail and finds its way back after getting kicked out), added support for 'Uri' emote clues, added checks to see if the script needs to bank between clues based on the clue that the player has at the time, killed most of the bugs that were popping up, created this thread. August 15th - Added an additional 8 clues (19 now) Testing I have set myself a few goals that need to be met before I decide to release the script. Each goal needs to be performed flawlessly and be manually monitored for a reasonable time period. The total testing period adds up to roughly 234 hours without the additional failed tests. One Hour (0 / 1) Two Hours (0 / 1) Five Hours (0 / 1) Ten Hours (0 / 1) Twelve Hours (0 / 10) Twenty-Four Hours (0 / 2) Forty-Eight Hours (0 / 1) Media None as of this moment. Donations If you'd like to help support the project, send me a pm. I'm currently in need of teleport tabs (L, V, C, F, A) and some graphics. NxJr - 500k
    1 point
  4. Add a nudge button to chat box, so people who lurk but aren't looking can be nudged so they know someone wants them. make it so you can only nudge 1 person every 30 seconds, and if abused chat box ban. add an option to turn nudging off, so you cannot be nudged etc.
    1 point
  5. At around 4am our web application firewall became unresponsive to any connections. This means the website was inaccessible up until now. Our hosting service is working on fixing the issue and I've temporarily relieved the downtime by routing osbot.org to our direct address. The good news is that the bot server never went offline nor went unresponsive. Sorry for the inconvenience, Laz and the OSBot Team. EDIT: Our hosting provider has fixed up the web application firewall. The website should be fully accessible by anyone now.
    1 point
  6. This will provide a class for you to easily implement a Paint (optional that you can allow dragging of it over the applet). DraggablePaint.java: import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Point; import java.awt.event.MouseEvent; import java.io.IOException; import java.net.URL; import java.util.HashMap; import java.util.Map; import javax.imageio.ImageIO; /** * * @author Yah Mie @ OSBot * */ public class DraggablePaint { private Point location; private int width; private int height; private Image background = null; private Map<Point, Map<String, Object>> texts; private boolean beingDragged = false; private Point draggedFrom; /** * Constructors */ public DraggablePaint(Point location, int width, int height) { this.location = location; this.width = width; this.height = height; flushText(); } public DraggablePaint(int x, int y, int width, int height) { this.location = new Point(x, y); this.width = width; this.height = height; flushText(); } /** * Set background image * Renders at 0,0 * @param URL */ public void setBackgroundImage(String URL) { try { background = ImageIO.read(new URL(URL)); } catch (IOException e) { background = null; } } /** * Move location of paint * @param location */ public void moveTo(Point location) { this.location = location; } /** * Write text at position * Relative to paint * * @param text * @param at */ public void writeText(String text, Point at) { Map<String, Object> textConfig = new HashMap<String, Object>(); textConfig.put("text", text); textConfig.put("font", new Font("Arial", 1, 12)); textConfig.put("color", Color.black); texts.put(at, textConfig); } /** * Write text at position * Specified color & font * Relative to paint * * @param text * @param at */ public void writeText(String text, Point at, Color colour, Font font) { Map<String, Object> textConfig = new HashMap<String, Object>(); textConfig.put("text", text); textConfig.put("font", font); textConfig.put("color", colour); texts.put(at, textConfig); } /** * Flushes all texts ready to be written to again */ public void flushText() { texts = new HashMap<Point, Map<String, Object>>(); } /** * Handle Mouse Events * * @param eventType * @param e * * Called upon MouseEvent: mousePressed * Called upon MouseEvent: mouseReleased * Called upon MouseEvent: mouseDragged */ public void draggable(String eventType, MouseEvent e) { if (eventType.equalsIgnoreCase("mousePressed")) { Point point = e.getPoint(); if (point.x >= location.x && point.x <= location.x + width && point.y >= location.y && point.y <= location.y + height) { beingDragged = true; draggedFrom = new Point(point.x, point.y); } } else if (eventType.equalsIgnoreCase("mouseReleased")) { Point point = e.getPoint(); if (point.x >= location.x && point.x <= location.x + width && point.y >= location.y && point.y <= location.y + height) { beingDragged = false; } } else if (eventType.equalsIgnoreCase("mouseDragged")) { if (beingDragged) { location.x = e.getX() - (draggedFrom.x - location.x); location.y = e.getY() - (draggedFrom.y - location.y); draggedFrom = new Point(e.getX(), e.getY()); /* Off-screen fixes */ if (location.x < 0) { location.x = 0; } if (location.x + width > 763) { location.x = 245; } if (location.y < 0) { location.y = 0; } if (location.y + height > 502) { location.y = 428; } } } } /** * Called upon onPaint */ public void draw(Graphics2D g) { if (background != null) { // Draw background g.drawImage(background, location.x, location.y, null); } if (texts.size() > 0) { for (Map.Entry<Point, Map<String, Object>> text : texts.entrySet()) { Map<String, Object> textConfig = text.getValue(); // Set Font and Color g.setColor((Color)textConfig.get("color")); g.setFont((Font)textConfig.get("font")); // Draw text at location g.drawString((String)textConfig.get("text"), location.x + text.getKey().x, location.y + text.getKey().y); } } } } Usage: import java.awt.*; import java.awt.event.MouseEvent; import org.osbot.script.Script; import org.osbot.script.ScriptManifest; @ScriptManifest(author="Yah Mie", version=1, info="", name="Yah Mie's Draggable Paint Demo") public class ScriptWithDraggablePaint extends Script { private DraggablePaint paint; public ScriptWithDraggablePaint() { paint = new DraggablePaint(0, 268, 519, 76); // X, Y, WIDTH, HEIGHT paint.setBackgroundImage("http://oi41.tinypic.com/2gvrbc1.jpg"); } @Override public void mousePressed(MouseEvent e) { paint.draggable("mousePressed", e); } @Override public void mouseReleased(MouseEvent e) { paint.draggable("mouseReleased", e); } @Override public void mouseDragged(MouseEvent e) { paint.draggable("mouseDragged", e); } @Override public void onPaint(Graphics g) { Graphics2D gr = (Graphics2D) g; paint.flushText(); paint.writeText("Running for: 00:30:00", new Point(20, 24)); paint.writeText("XP Gained: 500,000", new Point(20, 44)); paint.writeText("XP Per Hour: 1,000,000", new Point(20, 59)); paint.writeText("Logs Burned: 1,500", new Point(210, 44)); paint.writeText("XP Per Hour: 3,000", new Point(210, 59)); paint.draw(gr); } } If you don't want to implement dragging then do not implement the mouse events (draggable() method). All methods provided by DraggablePaint.java: DraggablePaint(Point location, int width, int height) DraggablePaint(int x, int y, int width, int height) setBackgroundImage(String URL) - Sets background image from URL (drawn at 0, 0) moveTo(Point location) - Moves paint to specified location of applet writeText(String text, Point at) Write text at specified location (relative to paint) with Arial 12pt Black writeText(String text, Point at, Color colour, Font font) - Write text at specified location (relative to paint) with custom font and colour flushText() - Clears all text form paint draggable(String eventType, MouseEvent e) - Handles mouse events for dragging. All three pressed, released and dragged must be implemented for dragging to work. draw(Graphics2D g) - Draws paint onto graphics Finally some tests: I'm welcome to questions or comments. All written by I, have fun!
    1 point
  7. I want one. They look so good. I will also be buying a signature from you soon.
    1 point
  8. 1 point
  9. I'll buy your $100 for $110, you go first since I'm risking more.
    1 point
  10. 1 point
  11. We've restarted our servers. The server should be back online for everyone now.
    1 point
  12. Great to see more things being produced by you Dashboard as I am a big fan of your scripts. I am sure whatever you make will be high class and super intelligent, by the looks of it I am already impressed. I wish you the best of luck with this project.
    1 point
  13. Someone just raged quit ingame and gave me 2m, Rather than being greedy and selling it, I'lm going to give it away. OSbot is a great community, and I'd like to give something back to it To win all you have to do is LIKE this post, don't bother posting if you don't want too. I'm far too lazy I don't want to go through reading all the posts, I'll just use a number generator and count down to that number. Example: If i get 5 likes, and it goes like this: player 3435 likes this player 244 likes this player 343 likes this player 4997 likes this player 53 likes this Let's say the number generator chooses number 2, the person that wins will be the second person.. (player 244) SIMPLES. THIS IS FOR 2007SCAPE.
    1 point
  14. 1 point
×
×
  • Create New...