Jump to content

d0zza

Scripter II
  • Posts

    780
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Everything posted by d0zza

  1. d0zza

    dSmither

    Script now supports Throwing knives!
  2. I suggest you make something simpler first so you can learn how to script properly. Checkout the tutorial and snippet sections.
  3. Should be: craft.interact("Make All pairs of Leather gloves");
  4. The problem is the fact that when cooking your player constantly switches from animating to not animating. If you switch on 'my player debug' in settings you'll see this happen. An easy way to get around this is to keep track of the last time your player animated. Check out this thread:
  5. Ah well that means osbot doesn't have the right permissions to access the system tray which means you probably can't do system notifications.
  6. I haven't done it myself but I found this on stack overflow after googling java system notification: import java.awt.*; import java.awt.TrayIcon.MessageType; public class TrayIconDemo { public static void main(String[] args) throws AWTException, java.net.MalformedURLException { if (SystemTray.isSupported()) { TrayIconDemo td = new TrayIconDemo(); td.displayTray(); } else { System.err.println("System tray not supported!"); } } public void displayTray() throws AWTException, java.net.MalformedURLException { //Obtain only one instance of the SystemTray object SystemTray tray = SystemTray.getSystemTray(); //If the icon is a file Image image = Toolkit.getDefaultToolkit().createImage("icon.png"); //Alternative (if the icon is on the classpath): //Image image = Toolkit.getToolkit().createImage(getClass().getResource("icon.png")); TrayIcon trayIcon = new TrayIcon(image, "Tray Demo"); //Let the system resizes the image if needed trayIcon.setImageAutoSize(true); //Set tooltip text for the tray icon trayIcon.setToolTip("System tray icon demo"); tray.add(trayIcon); trayIcon.displayMessage("Hello, World", "notification demo", MessageType.INFO); } }
  7. Check the logger when your script idles, if there is a null pointer in your code the logger will tell you which line it's at
  8. You can also create your own 'localArea' API that act the same as OSBot's Area API.
  9. You can do it in the makeFire() method, For example something like this: public void makeFire() { RS2Object fire = objects.closest("Fire"); if (!myPlayer().isAnimating() && !myPlayer().isMoving() && fire != null) { GroundItem log = getGroundItems().closest("Logs"); if (log != null && log.interact("Light")) { new ConditionalSleep(3000) { @Override public boolean condition() throws InterruptedException { return myPlayer().isAnimating(); } }.sleep(); } } } It's mostly down to preference, however the way you had it before makes it clearer (to me) when you want the script to light a fire. Also at the moment you're trying to interact with logs on the ground. If you want to interact with logs in your inventory do this: Item log = getInventory().getItem("Logs");
  10. d0zza

    dSmither

    What item are you smithing? And can you post a screenshot of the logger when this happens?
  11. A script's GUI only pops up after the log in handler has finished. Either start the script while you're logged in or wait for the login handler to finish.
  12. The interact string might have changed? Does it hover the right widget or move the mouse to it at all?
  13. Mirror mode is said to be less detectable than injection but no one can really know how much safer it is (if at all). If you're only running 1 account then there's really no reason to limit the memory it uses. However 512mb is probably a bit on the lower side, I'd go for a higher limit. You can look through the SDN and each script on there has the amount of users the script has. But be aware that just cause 1 script has the most users doesn't mean it's the safest or best.
×
×
  • Create New...