Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Make sure you have Java installed
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox

Interested in advertising your business? Reach out today!


  • Content Count

  • Joined

  • Last visited

  1. Updated since the old method is deprecated Widget worldHopper = Widgets.getWidget(69);
  2. Your creating your own widget instead of getting the one from the client Widget worldHopper = getWidgets().getWidget(69); I can't check for sure if this is correct since I'm not at my desk, but this should put you on the right path
  3. I'd suggest looking at either a task/node framework to get started or a tree/branch/leaf version, node scripts tend to be easier to maintain and understand when working on some of your first complex scripts where tree/leaf framework will provide more efficient and precise actions desired with increased complexity. Both can provide what your looking for but it really boils down to what you prefer. Some searching around the forms can yield some source from other users. I believe Articron posted one a while back
  4. The code seems relatively correct, but you need to be specific in what the script is doing versus what you desire it to do. A small note to bear in mind when working with sleeps, the bot will not check conditions until the sleep ends. Think of it like some one plugging their ears for 1000-1200ms (sleep delay) then trying to answer the question you asked during
  5. You can simplify this a bit for readability and not so much redundancy, hope it helps. public static boolean inCutscene() {return PlayerSettings.getConfig(1021) == 18624;}
  6. After some extensive testing as well as trial and error i was able to narrow down the cause to the Program.runLater();. That being said everything works fine and it creates the list as intended, But after the script is stopped the Panel no longer displays the list at all. here are 2 screens to show what is intended and what happens after the script is restarted. The only means I've found to even get it to display is restarting DreamBot entirely. public mGUI() { System.out.println("mGUI: mGUI()"); taskWindow = new JFrame(); taskWindow.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { Main.stopScript(); } }); final JFXPanel fxPanel = new JFXPanel(); makePanel(taskWindow, fxPanel); Platform.runLater(() -> initFX(fxPanel)); taskWindow.setVisible(true); } private void initFX(JFXPanel fxPanel) { System.out.println("mGUI: initFX()"); managerList = new ListView<mObject>(); managerList.setPrefSize(Config.MANAGER_WIDTH, Config.MANAGER_HEIGHT); managerList.setEditable(false); managerList.getItems().addAll(createList()); managerList.setCellFactory(new mCellFactory()); Pane root = new StackPane(); root.getChildren().add(managerList); Scene scene = new Scene(root, Config.MANAGER_WIDTH, Config.MANAGER_HEIGHT); scene.getStylesheets().add(Config.MANAGER_STYLE); fxPanel.setScene(scene); } Working as intended/Broken
  • Create New...