Jump to content

Explv

Scripter II
  • Posts

    2314
  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    100%

Everything posted by Explv

  1. Fixed on the SDN Fixed on the SDN Fixed on the SDN Both of the above are now available on the SDN also.
  2. I guess it is to add an element of randomness.
  3. If you want to walk a single tile away you need to create a custom WalkingEvent and set the min distance threshold to 0: WalkingEvent walkingEvent = new WalkingEvent(position); walkingEvent.setMinDistanceThreshold(0); execute(walkingEvent); By default (using getWalking().walk()) it won't walk unless the destination tile is >= 3 tiles away:
  4. I have also added the Relleka agility course, this will be available when the SDN is next updated.
  5. Just pushed some agility fixes and speed improvements, I tested an account 1-40 agility and on the other courses, so it should hopefully work well now. It will be available when the SDN is next updated
  6. More fixes coming in next update: Fixed delay at end of Gnome Stronghold agility course Fixed not completing dialog at door to Gnome Stronghold on first time entering
  7. I'll take a look at rune mysteries soon. I'm testing out agility now, running an account from 1-40 and will see if any issues arise
  8. Pushed a fix, along with some enhancements, it will now use any empty box and should also be generally more robust. It will be available when the SDN is next updated. I haven't tested using the break handler, I will investigate it. I'll test tut island out again today and see if I can find those issues
  9. Pushed a fix, it will be available when the SDN is next updated
  10. You're welcome Congrats on writing your first script!
  11. Do not use ColorPicker. And I already have a snippet in the snippets section:
  12. What do you mean it doesn't exist? You can have whatever file extension you want... You can make a file called hello.void if you want.
  13. I still don't understand what you are asking. A .list file is just a .txt file, so just make a file on unix with the .list extension?
  14. What do you mean a .list file? Sorry not too familiar with windows Just make a file with the .list extension?
  15. There's an apostrophe in ain't, and there should be a question mark after hood. And I thought this was RuneScape, not some biker gang, kinda cringe. Also:
  16. Is the equipment tab open while you are getting these errors?
  17. An Item is not an Entity: Only RS2Objects, Characters, GroundDecoration, GroundItem... etc are What you should be doing instead is calling the castSpell() method, and then interacting with the appropriate inventory item
  18. I'm pretty sure ConditionalSleep just stores the time it begins executing, and uses that to calculate the elapsed time. So to answer your question, yes.
  19. Sorry, previous answer was completely wrong, not sure why I wrote that, try storing the seagull in a global variable, and checking like this: private NPC seagull; @Override public final int onLoop() throws InterruptedException { if (seagull == null || !myPlayer().isInteracting(seagull)) { attackNpc(); } return random(100,300); } And of course assign seagull in your attackNPC method
  20. States are unnecessary and messy, cleanest way is: if not attacking seagull: attack seagull else: relax That's pretty good, but: You don't need to check if the seagull is visible and call camera.ToEntity You should be checking if your player is already attacking a seagull before calling attackNpc, not in attackNpc You should null check seagull, just in case there aren't any, as your code currently will throw a NullPointerException It would be cleaner to filter a seagull that isn't under attack in the closest method(), rather than after You should check the the "Attack" interaction is successful before sleeping. Your condition in the ConditonalSleep is incorrect. You should check whether your player is interacting with the seagull, or the seagull is not attackable. Take a look at the isAttackable() method for NPCs, it will perform all the checks such as exists, not under attack and has health > 0 for you. NPC seagull = getNpcs().closest(npc -> npc.getName().equals("Seagull") && npc.isAttackable()); if (seagull != null && seagull.interact("Attack")) { new ConditionalSleep(5000) { @Override public boolean condition() { return myPlayer().isInteracting(seagull) || !seagull.isAttackable(); } }.sleep(); }
×
×
  • Create New...