Jump to content

Token

Script Officer
  • Posts

    8433
  • Joined

  • Last visited

  • Days Won

    49
  • Feedback

    100%

Everything posted by Token

  1. Token

    Stealth Quester

    Authed
  2. Token

    Stealth Quester

    Authed
  3. You importe wrong List, there is java.awt.List and java.util.List
  4. ctrl + shift + o is the eclipse shortcut for imports
  5. List<NPC> noobs = npcs.getAll().stream().filter(n -> !n.isUnderAttack()).collect(Collectors.toList());
  6. profile pic uploader
  7. Token

    Stealth Quester

    Authed
  8. Token

    Stealth Quester

    Authed
  9. Token

    Stealth Quester

    Authed
  10. Mirror mode doesn't officially support OSBuddy, you will have to load runescape in a browser instead
  11. Token

    Stealth Quester

    Delete your OSBot folder located at C:\Users\<USER>\OSBot
  12. Token

    Stealth Quester

    Post the logger contents so I can look at it
  13. public static int rec1(int n) { c1++; if (n == 1) { return 1; } else if (n % 2 != 0) { return 1 + rec1(n - 1); } else { return 1 + rec1(n / 2); } } static int c2 = 0; public static int rec2(int n) { c2++; if (n == 1) { return 1; } else if (n % 2 != 0) { return 1 + rec2(n - 1); } else { int sum = 0; do { n = n / 2; sum++; } while (n % 2 == 0); if (n == 1) return 1 + sum; return 1 + sum + rec2(n - 1); } } public static void main(String[] args) { System.out.println(rec1(3128) + "; iterations: " + c1); System.out.println(rec2(3128) + "; iterations: " + c2); } Output: 16; iterations: 16 16; iterations: 5 If you studied CPU architecture you should know every function call creates a new stackframe and new local variables with each call, taking up a lot of memory. SP = stack pointer register BP = base pointer register They are in your CPU, BP points to the base of the stack and SP points to the top stackframe aka the function call being executed by the CPU at a given moment. Recursion is very inefficient memory-wise so the second function, which is still recursive but has an iterative component for powers of 2, is obviously superior.
  14. Token

    Stealth Quester

    Authed
  15. No matter what you use, you will still check what you actually have in your inventory The API fortunately doesn't provide a Herblore#cleanAllGrimyHerbsInInventoryThenBank()
  16. Try mouse.click(), it should be faster than interact() because it has no sleeps
  17. Token

    Stealth Quester

    That sounds like Animal Magnetism was started prior to running the script
  18. All successful people dropped out of ivy league, people who actually graduate are no better than others
  19. Token

    Stealth Quester

    Authed
  20. Token

    CLI help

    Nope HTTPS proxies only work in browsers
  21. Token

    CLI help

    Remove the proxy and script flags, if either makes the command work then you know which flag is wrong
  22. Token

    CLI help

    Is it a local script or SDN? Is your proxy functional?
  23. Token

    CLI help

    Replace the sensitive information with fake information instead of blocking it, there is definitely a syntax error in there that we cannot see
  24. Token

    Stealth Quester

    Authed
  25. That's not a mention so he didn't get notified
×
×
  • Create New...