Jump to content

Apaec

Scripter III
  • Posts

    11146
  • Joined

  • Last visited

  • Days Won

    91
  • Feedback

    100%

Everything posted by Apaec

  1. UPDATE! Version 3.10 Fixed interface interactions to be in line with recent OSRS changes The script will select the 'All' option unless already selected Slightly adjusted cooking interaction logic Edit: Just pushed version 3.11 - I fixed a couple of issues with menu handling for cooking raw meats on fires instead of stoves; it seems some of the menus differ. The updates will merge and go live together. Please allow up to 24 hours for the developers to verify the update and push it live. Apa Please refer to post above!
  2. UPDATE! Version 2.02 Fixed interface interactions to be in line with recent OSRS changes Forging now uses Make-All instead of Make-X (Make-X code is still in place such that if it for what ever reason misclicks X, it will still type) Smelting and Cannonballs now work and will automatically switch to the 'All' option if not already selected Added version number to the GUI Increased the height of the cannonballs activity window Please allow up to 24 hours for the developers to verify the update and push it live. Apa
  3. 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
  4. 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!
  5. 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
  6. Sure; done! (: Awesome I will be pumping out an update at some point for it too so that it uses Make-all. Apa
  7. Thanks! (: I am aware; working on a fix for all my scripts. Cheers!
  8. Hi guys, Am aware of this change. I will work on fixing this as soon as possible; please be patient!
  9. 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!
  10. 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!
  11. 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!
  12. 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?
  13. 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
  14. 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
  15. Thanks for the kind words!!(:
  16. 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
  17. 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!!
  18. 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
×
×
  • Create New...