Jump to content

Explv

Scripter II
  • Posts

    2314
  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    100%

Everything posted by Explv

  1. 1. You can google how to setup any IDE, import libraries, export your code to a .jar 2. That is not true at all, Eclipse probably even has more features than Intellij. One of the main reasons people prefer Intellij over Eclipse is because of it's usability. Are you saying usability is a bad thing? Intellij has superior autocomplete, superior indexing and suggestions, these things are beneficial to programmers, regardless of ability. 3. Again, not true. I'm not sure where you are getting this whole "Intellij is harder to use" thing from. I'm not talking about the advanced features, both IDEs have those, and a new programmer won't be using them. At the end of the day, they are IDEs not spaceships. I'm not even sure you have used both Eclipse and Intellij before.
  2. That's not true at all, one is not particularly harder to use than the other. In my opinion Intellij has a better overall user experience, and therefore would be the best choice for OP
  3. Ok, I thought you might be doing something like that, just wanted to make sure
  4. I could add copy/paste functionality if that would solve your problem However I will consider changing the layout of things, maybe separating account from the other options. I will implement one (or maybe both) of these two options in the next version, along with some other new features, expect an update by the end of this weekend. Thanks
  5. That is not currently possible as Alek has said, but perhaps if you detailed your specific use case we could offer an alternative temporary solution? For example if your player always walks past these dangerous npcs, you could web walk to a position just before them, then walk a fixed path around the npcs, then carry on web walking to the destination. Not too sure what you mean by "The destination can only be a single area", maybe you could clarify this
  6. http://osbot.org/forum/topic/87717-fixing-osbot-not-starting/
  7. Make sure you know what you are doing before making tutorials, otherwise you can spread bad practices to new scripters. I am not trying to discourage you, I just noticed that you have only been a member for 2 months and do not have the scripter rank yet. Good luck, I look forward to seeing the videos
  8. Explv

    Easy help

    Use the WalkingEvent: WalkingEvent walkingEvent = new WalkingEvent(position); walkingEvent.setMinDistanceThreshold(0); execute(walkingEvent);
  9. Indeed, I have just tested it on Windows 7 and can confirm that it works. Make sure you are using the latest version of my application and opening the .jar with Java 8, either by right clicking and selecting "Open With", setting the default application for .jar files to Java or, as Tom posted, running it from the command line using "java -jar name_of_the_file.jar"
  10. It means that for local scripts (Not on the SDN) we will be able to programmatically switch runescape accounts. This allows for a script to be run on multiple accounts one after the other.
  11. For the love of god please use the code formatting
  12. Yellow lines are warnings. Also that could be simplified to: NPC cow = getNpcs().closest(npc -> npc.getName().startsWith("Cow") && npc.isAttackable() && cowArea.contains(npc));
  13. ConditionalSleep will sleep for MAX the amount of time you specify (in this case 5 seconds) OR until the condition is satisfied. So in the example I gave it would sleep for up to 5 seconds or until the NPC is no longer attackable (either it is dead, someone else is attacking it, or we are attacking it)
  14. You can get the real (walking) distance to the npc / ground item using: int distance = getMap().realDistance(entity); // entity is the npc or ground item Or the direct distance: int distance = myPosition().distance(entity.getPosition()); Then just compare the two distances to find which is less. For attacking the NPC you can just do something like: NPC cow = getNpcs().closest(npc -> npc.getName().equals("Cow") && npc.isAttackable()); if (cow != null && cow.interact("Attack")) { new ConditionalSleep(5000) { @ Override public boolean condition() throws InterruptedException { return !cow.isAttackable(); } }.sleep(); }
  15. It has only been tested on Windows 10 and Linux. I will try and add some stuff that will make it compatible with older windows versions
  16. You don't need @ Override. It simply improves readability and provides some benefit with compiler checking. It is recommended but not required.
  17. If you just want to create a rectangular area then you should use the: Area(int x1, int y1, int x2, int y2) Constructs a rectangular area using x and y coordinates from two separate positions. Or Area(Position southWest, Position northEast) Constructs a rectangular area using two positions Constructors.
×
×
  • Create New...