Jump to content

Explv

Scripter II
  • Posts

    2314
  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    100%

Everything posted by Explv

  1. This is what I used: Stream.concat(getObjects().getAll().stream(), getNpcs().getAll().stream()) .filter(entity -> entity.getName().contains("Portal")) .findAny() .ifPresent(portal -> { if (portal.interact("Use", "Exit")) { Sleep.sleepUntil(() -> !portal.isVisible(), 10_000); } });
  2. In the onStart() method, set a global Position variable to myPosition()
  3. There are a lot of things incorrect here. As mentioned by @wwwat you have two functions that achieve nothing, and are also infinitely recursive, which will just break. It also looks like you have some of your conditions in the wrong place.
  4. Explv

    Help Please

    Item item = getInventory().getItemInSlot(28); If (item != null) item.interact(); Sorry about the formatting, on my phone
  5. I'll take a look Yep, this is an issue with finding the exit portal, I will fix it soon See above
  6. I'll take a look, thanks I did update the script so that it should upgrade pickaxes, I will take a look if it is not working Is this only an issue in mirror mode? If it is not walking to the gnome stronghold then that is a webwalking issue, post in the client bugs section. I am aware of the rooftop mark of grace issue, I will fix it when I have the time I still need to fix GUI saving/loading. Once that is fixed I will add a CLI option to load a saved configuration
  7. Try: cd C:\Users\admin\Downloads\proguard5.3.2\proguard_configs\ Followed by: java -jar C:\Users\admin\Downloads\proguard5.3.2\proguard5.3.2\lib\proguard.jar @nmz.pro
  8. You are running the command incorrectly. It should be: java -jar path_to_proguard.jar @path_to_config.pro Where config.pro is your .pro file and the jar you run is the proguard.jar file
  9. Explv

    Explv's Walker

    Those are issues with web walking, and should be posted in client bugs. I believe haunted tree has now been fixed (don't quote me on that)
  10. If you don't understand the code, you should either learn how it works or not use it. I would recommend you start off learning the basics of Java and building up from there. I would recommend you continue with your original code, and add a while loop to get your desired functionality rather than adding a GUI at this point
  11. If the script has a GUI and no CLI support, then the GUI will open when the script starts just like when you run it normally.
  12. No, if the script has CLI support you can add the parameters you want to use when you add the Script. Otherwise, leave it blank, and it will start the script as normal Could you show me the error? I will take a look tonight
  13. Yep, I will add a section on Events
  14. OP is asking how to use a do while loop to keep reading input from the user, not how to use the MVC pattern with Swing? Seems silly to overcomplicate it with a GUI when OP doesn't even understand loops yet
  15. You need a do while loop along the lines of "do, get the user's input and change the direction of the robot if the input is valid, while the user's input is not the exit program character" The exit character might be something like ESC
  16. The thing is, if you knew basic Java, like I state as the prerequisite to this tutorial, you would know that in order to use the methods contained in NPC, GroundItem etc. that are not found in the Entity superclass, then you would use the relevant subclass name when storing the instance. I never mention in this tutorial that you should exclusively use Entity and not the subclass name, I am merely showing the relationship between the different types.
  17. I'll add some more today after work
  18. Let me know if I have missed anything
  19. In this case it is primarily for readability purposes, and a habit of mine from working on larger projects with other people.
  20. Multiline spoilers seem to be broken:
×
×
  • Create New...