Jump to content

Apaec

Scripter III
  • Posts

    11169
  • Joined

  • Last visited

  • Days Won

    91
  • Feedback

    100%

Everything posted by Apaec

  1. Ofcourse!! It was silly of my not to extend the duration. Once the changes that I have made are ready and go live, I will let you know and start a fresh trial for you. Cheers Apa
  2. Please refer to the post I made yesterday; I'm currently working on a system for this which I hope to have finished by tonight, but cannot make any promises!
  3. It will be automatic!
  4. Sure thing!! As a side note, I will be pumping out an update at some point soon so that it uses Make-all instead of Make-X where possible. Apa
  5. Sure; done! (: Awesome I will be pumping out an update at some point for it too so that it uses Make-all. Apa
  6. Thanks! (: I am aware; working on a fix for all my scripts. Cheers!
  7. Hi guys, Am aware of this change. I will work on fixing this as soon as possible; please be patient!
  8. Cheers for raising this concern; It doesn't seem to be happening to me though. Are you using mirror mode or stealth injection? You might find switching over could help!
  9. I'd just read through some very basic java tutorials to get the jist of what's going on, then jump in and learn more about java through trying to write some scripts!
  10. Not easily, but I will make it stop if you die. That should be a fail safe though; since it should never die. Something must have happened to your bot process perhaps; because I've done very rugged testing of the healing system and low hp failsafe system - this is the first report of a death that i've had all year!
  11. Hey; That must have been the webwalker kicking in because you died... I have no idea how you could have died though unless the script was stopped or interrupted somehow. Did it say anything in the logger?
  12. Cheers for the suggestion; I've made the code base open to expansion in the future such that I could potentially add this. The only issue is that it will slow down start up times quite significantly as instead of just pressing start you would have to navigate the file explorer ! I will perhaps try a few solutions at some point this week Apa
  13. Sounds like you've probably set something up wrong since the stop criteria were very rigidly tested - if you open the console, it will always log a message before stopping; Please let me know what that message is! Apa Awesome progress!!! 12 to 14 hours a day is crazy
  14. Thanks for the kind words!!(:
  15. Hey Cheers for the kind words - as for your quandary, there's unfortunately nothing that I can do about that since it is handled by the client. That being said, it seems to work fine for me; not sure what could be wrong. Apa
  16. Apaec

    RS Unit Format

    public String runescapeFormat(long l) { String[] suffix = new String[] { "K", "M", "B", "T" }; int size = (l != 0) ? (int) Math.log10(l) : 0; if (size >= 3) while (size % 3 != 0) size = size - 1; return (size >= 3) ? + (Math.round((l / Math.pow(10, size)) * 10) / 10d) + suffix[(size / 3) - 1] : + l + ""; } ...But yours is a lot more readable!!
  17. Sure thing, done!!
  18. Ofcourse, done! (:
  19. Yep, done! (:
  20. Sure thing; done! (:
  21. Sure thing! done (:
  22. Sure, done!(:
  23. You could use a Map for this, however if you wanted to store more information, you would need something else. Probably your best bet is to store the information in an enum, as below (I wrote the code in the reply box so apologies if I made any mistakes, fingers crossed they should be easy enough to correct!). I included an additional parameter, 'colour', which is just the colour of the axe. In practice this is useless, but I included it to illustrate how to add a second parameter. public enum Axe { BRONZE(1, Color.BROWN), IRON(1, Color.DARK_GRAY), RUNE(41, Color.CYAN); // Add all axes here private final int levelRequirement; private final Color colour; Axe (int levelRequirement, Color colour) { this.levelRequirement = levelRequirement; this.colour = colour; } // Returns whether the current level is sufficient for the axe public boolean hasRequiredLevel(int currentLevel) { return currentLevel >= levelRequirement; } // Returns the associated level requirement public int getRequiredLevel() { return levelRequirement; } // Returns the colour of the axe public Color getColour() { return colour; } // Make it return a cleanly formatted String, e.g 'Rune' public String getTier() { String lower = super.toString().toLowerCase().replace("_", " "); return Character.toUpperCase(lower.charAt(0)) + lower.substring(1, lower.length()); } // Make it return a cleanly formatted String for whole axe, e.g 'Rune axe' public String getName() { return getTier() + "axe"; } @Override public String toString() { return getName(); } } Usage: Axe toUse = Arrays.stream(Axe.values()).filter(a -> a.hasLevelRequirement(getSkills().getStatic(Skill.WOODCUTTING))).reduce(Axe.BRONZE, (a, b) -> b); It is untested but it should hopefully work !! Good luck! Apa
  24. Apologies, I must have entered the wrong script ID! I've given you a fresh trial starting now, which will last for 48 hours instead of 24, as compensation. Sorry about that...! Apa
  25. Just a super quick status update, I've been very busy at the moment doing some contractor work but I found the time today to have a quick look at the (work in progress) script re-write. The structure is pretty much there so I just need to gather some game data (Areas, paths, positions etc), and once that's done the script should be ready to go. I will do a bit more work on the script today while I have the time, but there's still quite a way to go. I'm structuring the script to maximise both reliability and flexibility - something that isn't really that easy to do - I'm also doing it in such a way that in the future it will be easy to add new routes to the bank and new methods of banking (e.g phials). Cheers Apa
×
×
  • Create New...