Jump to content

Token

Script Officer
  • Posts

    8433
  • Joined

  • Last visited

  • Days Won

    49
  • Feedback

    100%

Everything posted by Token

  1. You importe wrong List, there is java.awt.List and java.util.List
  2. ctrl + shift + o is the eclipse shortcut for imports
  3. List<NPC> noobs = npcs.getAll().stream().filter(n -> !n.isUnderAttack()).collect(Collectors.toList());
  4. Mirror mode doesn't officially support OSBuddy, you will have to load runescape in a browser instead
  5. Token

    Stealth Quester

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

    Stealth Quester

    Post the logger contents so I can look at it
  7. 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.
  8. 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()
  9. Try mouse.click(), it should be faster than interact() because it has no sleeps
  10. Token

    Stealth Quester

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

    CLI help

    Nope HTTPS proxies only work in browsers
  13. Token

    CLI help

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

    CLI help

    Is it a local script or SDN? Is your proxy functional?
  15. 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
  16. That's not a mention so he didn't get notified
×
×
  • Create New...