Jump to content

Explv

Scripter II
  • Posts

    2314
  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    100%

Everything posted by Explv

  1. I believe this would also work: getPlayers().filter(new AreaFilter(area)).size();
  2. Try: String[] command = {"java", "-jar", "osbot.jar", "-login", "\"\\\"The Undefeated\\\":password\""};
  3. "-login" and "username:password" should be two separate items in the array: String[] command = {"java","-jar","osbot.jar","-login", "\"The Undefeated\":password"};
  4. The ProcessBuilder constructor accepts either a List<String> or String... Each item in the List or String[] is one parameter of the command. So, for example: List<String> command = new ArrayList<>(); Collections.addAll(command, "java", "-jar", "/path/to/osbot.jar", "-script", "890:none"); ProcessBuilder pBuilder = new ProcessBuilder(command); or String[] command = {"java", "-jar", "/path/to/osbot.jar", "-script", "890:none"}; ProcessBuilder pBuilder = new ProcessBuilder(command); or ProcessBuilder pBuilder = new ProcessBuilder("java", "-jar", "/path/to/osbot.jar", "-script", "890:none");
  5. Tested and seems to work: ProcessBuilder processBuilder = new ProcessBuilder("java", "-jar", "/home/user/explv/Downloads/OSBot 2.4.121.jar"); processBuilder.start();
  6. Would be better if you posted what you have tried, what doesn't work, and let us help you that way.
  7. Should add link to profile(s) @Influx @influx2
  8. That would just drop normally? The only reason I specified the array of indices was to drop in the order OP wanted.
  9. No idea why you would want to do this (assumes shift drop enabled): private void funkyDropAll(final String itemName) throws InterruptedException { getKeyboard().pressKey(VK_SHIFT); for (int i : new int[]{0, 4, 1, 5, 2, 6, 3, 7, 8, 12, 9, 13, 10, 14, 11, 15, 16, 20, 17, 21, 18, 22, 19, 23, 24, 25, 26, 27}) { Item item = getInventory().getItemInSlot(i); if (item != null && item.getName().equals(itemName)) { getInventory().interact(i); MethodProvider.sleep(random(20, 25)); } } getKeyboard().releaseKey(VK_SHIFT); }
  10. Yes they can, but they shouldn't, it's bad practice. When you know that a null value is possible, you should use control flow statements to handle it. Again, exceptions should be used for exceptional circumstances. Using try & catch for program flow in a non-trivial scenario can even decrease performance due to the overhead of garbage collection. If you want to create a variable to hold the interact options, go ahead, I personally did not feel the need to micro-optimise every little bit of this code, which will likely only ever be called once in a script.
  11. Exceptions are supposed to be used in exceptional circumstances, not for normal flow control. It is the best practice in my opinion to null check here.
  12. Explv

    help me!!!!

    Shouldn't you have dbname= before the database name in the dsn?
  13. Thanks for the list, I wasn't aware that so many have been and gone. I guess I didn't really consider major game updates. In that case I think basic OSBot official scripts could be a good idea, to introduce some long term stability in the script market. I think most of the community will support your idea, as they have no real reason not to, the only people who are likely to oppose it are the scripters who's sales will be affected, I can imagine they won't be too happy. It will be interesting to hear their opinions.
  14. You can't really avoid the scripter leaving, and their scripts breaking issue (unless you write them all yourselves of course). I'm not sure that developing your own basic SDN scripts will make any difference, because it is probably more of an issue for niche scripts. I wouldn't have thought that the premium scripts that have been around for a while, especially the ones for basic resource collection are likely to break significantly in the future. Correct me if I am wrong however, as I haven't really been following them. Could you maybe provide some examples of premium scripts with a reasonably large user base, in those categories, that were removed from the store?
  15. What updates would you want them to make then?
  16. I'm aware of these issues, I'll get to them when I can
  17. This would be better: !myPosition().equals(afkspot);
  18. If you want to walk to an exact position you will need to use a custom WalkingEvent and change the distance threshold to 0. By default the value is 3, which means the player will stop walking when <= 3 tiles away from the destination (getWalking().walk() just uses the default settings) WalkingEvent walkingEvent = new WalkingEvent(afkspot); walkingEvent.setMinDistanceThreshold(0); execute(walkingEvent);
  19. Explv

    WTF?

    s̷̟͙͙͍͚̘̐͒̀̐ͣͪ̀̓̐̃̈́̉͋ͤ̂ͮͧ͘͜d̷̷̬͈̗̗͎̗̲̱͙̟̙̊̅̈́̽͝f͈͚̯̺̺̮̲͍̪͖͛̀́̀͂̾̌ͣ̎̑̕͢͞ͅs̋͊͌͐͆̔͂҉̛͏̡̺̩̳̜͙̰͙͖̼̣̯̳űͧ̍̃ͭ͆̓̕͠҉͎̱̻̥͓̕͢i͓̺͖͙̝͉͈͕̮͛̂̾̾ͪͨ̅͛ͬ̇̐̔́̚ͅş̸̠̣̖̺͎̺̬̖̰̗̙̳̠̩̪̜̩̪́̊̋͋̃ͧͪ͢͟͡ḩ͓̙̮͈̯̜̔̎̓͊̈͌ͮ͛̒̒ͨ̓ͯ́ͫ͟͠ͅf̷̶͎̥̬̖̳̂ͧ̈ͨ͒ͧ͛̈̄̀i̵̢̬̟̺̻͉͔̟͈̯̼͈̫ͨͣ̀̒̐ͨͬ͊ͪͧ͆ȗ̷̶͕̱̭̟̹̥̭͖͓̰̰͓͍̖̥͚ͪ͐̈́́̊̍͌ͥ̐̀͠h̷̡̞̩̤͚̲̬̻̠̫͚̫̣́̽̃̎̉̐̾̆͋ͪ́͟s̛̹͈̪̼ͣͩ̅͂̿̃̓̐͆̎̈̋͑ͫͮ́d̴̷̨̝̭̪̠͇̲̩͙̜̜̗͑̎ͨͥͭͭ͋ͧͩ̂̌̔̋̎͜͜i̶̮͍̗͓̜̼̫͓̖̗̜̖̦̜̩̹̹̒̄̇̎̄́͒̽̊ͣ̀̈̇́ͬͣ̓̀̚͘͟u̴̫̞̣̜̥̫̲̱̥͓̱͈̣͍̣̙͎͛ͥ̊̆̆̓̏ͪ͊̀͢͝ͅf̷̵͇͙͎̣̬̆̉ͪ͆̃͗ͥ͊̓͂̀̆̌ͥͪ̀͘ḩ̴̵̝̦͎̫͔͔̓̃̏̾̽ͨ̓̾͜͝ų̵̺̤̯͖̜̤̲͇̜͔͙̺̠̯͓̬̝̤̗̓ͨ̋ͯͥ̈́͂ͯͪ̊ͭ̿̑͘s̛̃̊̂̇͋ͨ̍͒̉̇̏̑ͧ̾͊͗ͥ͟͏̷̦͚͙̯͉͈͕̮̻̯̬̞̦͇͎̪͖d͎̘̠͎̝̺̜͍ͫ͛̔ͬ̍̏̊̆̍ͤͪ͒͋͟͡h̨̨̛͔̹̼̭̹̺͇̯̘̳̺̠̭͋̎̓ͮͣ̔̉͒̓͊̓̀̚͠f̷̛̛̗̖̳̟̜̺̫͈̯͎̗̳̤̬̯̺̖͊̈́ͣ̍̉̒͐̈́̈́ͭ͆̎͋ͅuͩ͗͛ͣ͆̔̓͐̇̓̍͑̄̆ͥ҉̴̴͏̶̯̠̞̥͓͕̥̹͇h̶̯͔̪̱̪̯͕̲̲͙̲͈̭͍̳̻̮̫͇̏̎͐͗̃ͨͤͦͥͤ͋̒̀͞s̢̳̲̖̘̠̝̝̜̲͋͐ͯ͛̃̑͐̇̓̓͛̋̃̃̕d̸̬͔̤̯̮͍̻̯̤̗̻̈́̒̓ͭͭͬͭ͐̽̍͆́̊̓̅ͪͦ͛ͣ͡ͅͅu̴̷̼̟̼̜͔͚͔̩̜̠͖̘̩͈̘ͥ̋͒̔̑̈́̍ͪͭ̄̉̄̆̅ͭ̕͡f̵̹̺̰͍̰̘̬͚̝̘̖͒ͯ̌̎̓͊̾͋͊ͫ̀̄̚̕͡͠ḧ́ͬ͛̿̌̈́ͮ͆ͨ̈́ͤ̿̾̉͌͗͜͞͏͉̫̥͖͇͍̳͙͕̬̝̜̪ͅu̢͙̤̰̻͙͗ͮ͊ͦ̑͞h̶̨͎̞̼̺̠̾͒̅ͭͨ̃͊̂̊ͦ̀ͤͪ̍ͩ̐̊̂͘͜2̡̨̡̛̦̺̰̟̹̭̈́̐̎͑̿ͨ̓̃̚͞3̅̈́͂̅͑̎̂͏͈̣͕͖͖̪͜͝͡ͅù̡̞̯̱͍̪̖̫̺͙̪̻ͩ̐̉̂̉̀͟͜4̋ͭ̽̎̂͑̿ͪͭ̏̅̆̚͏̬̘̫͍̝̰̠̭̺̦̣̟̼̫͚̀͞͡͡ͅͅͅh͋ͣͭͭ͊̇̈̔͏̴̻͓̣͚͇͔̹̥͕͟͠2̷̡͔̫͇̞̹͕̝͚̻̪̀͂͗̔ͦͮͩ͌̌͜͡͠i̷̢̝̟̪̜̟̲̥̤̲̮̠̯̯̩͍̙̎́̊ͥ̐͜͟͞3̺̜̘̰̺̙̟̼͈͈̇̃͌̂̏͗ͨ̔ͬ̑̎̓́̚̚̕ͅh̴̨͚̳̪̦̩͍̥̤̠̣̘̜̹͉͋ͨ̍̑ͪ̔4̸͔̘̮̲̮͕̺̈̎̌̑́̎̎̍ͨ̀͑͗ͭͩ̆̔͘͝0̸̢̰̫̻̭̹͈̻̤̟̱ͫ̉̿ͩ̂͊͐ͥ̈̉ͯ̅̌ͭ2̶̨͍̦̻̼̠̞̮̯̙̻̦̖̪͈̳̥̣́̇̐͂̆̊͡8̨̡̮̥̖͓̝̳̮͔̹̹͕̳̝̥͕̒̌̾̿̈̏͛̓̑̓̑9̗̻̜͔͎͔̥ͧ͗̋ͩ̐̆ͨ̈́͑̊̾͒ͤͨ̾ͣ͜͝͠3̸̦̤̞̹͇͙̹̙͈̘̻̞͖̣͉̪̿̄̀ͮ͑̒̅̋͋͋ͩ̿ͩ̉ͮ̓̏͜ų͓͚̘͕̥̲͖̤͍͚̤̪̥̬̩ͫ̓̓̎́̔͑ͦͦ̋̍̆̊͛ͅ4̴̸͔͉̠̩̗̠̱̭̓ͬ̃̃ͮ͒0̑͌̇͠͏̡̣̙͖̞̺͎̦͈͔̞͖́͝2̴̨̺͍̭̮͚̺̪̖͔̮͕̍̉̇̈͌͋ͫ̿̾ͩ͑͑̾̒̏̔̀̚ͅͅ3̵̵̴̢͉̥̗̫̬̰̪͕̪̫̗͕͚ͦͧͯͬͥͩͧ̎̓͗͒͟ų̶̴̵̻̱̬̗̼͆͗͊͒͊̎ͨͯ͑̋ͬ͂ͤͬͤ͘4̨̋̌͂͑̽͊͑̓̐̏͡҉҉̥̼͉̹͈̤̝͙̝̳̝ͅo̱͙̙͉̜͉̱͎̰ͥ͋̂̒ͦ̏ͭͣ̀͐͛͊͐ͯͧ̚̚͜͞h̵̬͓̠̙̝͇̯̘̖̲̬͈͋ͬ̎̅̍̎̍ͭ͆̒̍͐̀̚͟͝n̸̡̘͓̫̗̳͓͙̮̮ͤ͌ͨ̽̍̑̄̔̊͒̚͟͠o̵̤͍̖̖͚̲͔͚̗͈̼͗̾̍ͯ͑́́s̑̀̄̏̑ͪͪ̇͏̷̣̜̳̱̰̱͕̥͇̗̰̹̻͚̳̲͞͡ͅh̨̅̓ͨ̉ͪ҉̡͈̲̞͕̣̖̻̝̠̱̗̘͚͇͞d̋ͯ͂̃͑ͭ͞҉̳̝̠͎͈̤͖͈̣͖͈̲̀ͅo͐̆͊̿̆ͦ҉̵͏̠̤̮̙̬͖̲̩̮̣̮ṡ̵̪͎̠̞͇̰̞̺̖̥̘̺̙͐̓ͪ̾̃ͥ̆͆͌͗̈́ͥ́͒̓͢͡ͅị̥̖̥̣̬̳̝̰͎̈́͐͋̎͋ͪ͆̆́̚̚͢f̯͕̞͖͇͎̘̣̟͕̼ͤ̉̓͐͆͐̆ͯͤ̅ͤͫ̽́j̸̝͕̫͉̟͔͉͕͉̤̰̪̯̺̤̋̌͂̉̋͜͢͠͞ͅs͓̳̤̼͓̘̞̻̬̤͎̯͎ͯ̇̎̽̈́̿̂̂̿ͨ̀͆̐ͬ̍͘͜͢d̨̬̭̼̘̗͈̣̦͇̞͖̻͖̫̞̙ͪͨ̄̍͌̄͊̓̑͊̌́̕͜ͅi͕̟͈̩͍͔̤̘̪̬̪̱̹̭̣̐ͪ̈́̄ͣ̑ͣ͢͞f̶̨̣̪̖͖̖͉͈͇̖̩̱̭͔̊ͩ͑ͧͯͨ̀͗ͦ̂ͩ̀̚s̃͂̅̀̾̀͏̫͈͇͎͎̫͔̜̲͟d̸̠̳͚̝͕̗̗̲̦̀̅̄̈́̃̈́͟͠͝f̷̡͖̜̼͖̠͙͈̟͕̟̫̟̐͒ͫ̐͛ͫ͑ͧ͑ͪͪ͌͛ͪ͟ͅͅ
  20. Explv

    WTF?

    P̶͙̝͙̱̩̮̤̺̗͖̐ͮ̋̐̐͌̆ͭ̚͡͝r̵͉͓̹͎̞̮̣̤̞͔̞̻̠͎ͦͬ̃͐̓ͫ͌̓̀̚à̡̛̜̰̰͙̊ͬ̏͗͛ͪ̏ͬ́͘͠i͐͌́̎̊̇̋̄̈̔̉ͦ̓̈́̃̽͑ͩ͏̮͖̼͕̮͎̝̟̪̦̹̬̺̰̜̀s̜͔̰̰͈͙̫͉̗͇͑̿̓ͫ̽͒͋͌͋ͤͮͦ̓͐͌̓̚̕͘͢͟͜e̸̘͉̙̰̦̫͙̗̪̹͉̽͑͆̓̐̏ͮ̒̀̕͠͠ ̢̛ͮ͌͗ͧ̆͜҉̜͕̥Z̵̠̦̙͎͙͈̟͚͉̮͍̬̗̹̠͖̳̱̦͂̐̃̓̑̏̆̍͗̿̑ͮ̔̒͘ą̸̡̥͇̭̰̝̺͕̬̜̹͔̞̓̊̽̀͌̊͋̾ͨ̌͆̔͡ļ̴̬̥͍̘͙̝̟͎̱̰̬͈̰̥̊̉ͨͬ́͢ģ̵̫̠̙͍̤̺̦͖͔̬̥͉̀ͩ͌ͩ̀ͩ͗ͨͨ̃͂̋̂͗ͣ͋̇̚͟͞͡ͅo̧̢̥̗̲̦̼͕͙̥̝͊͛͛̀͛̌̎͂̂ͤ͒̀̀̚͘
  21. Explv

    WTF?

    Ȉ̯̜̺͚̯̍t̰̪̜͛ͯͮͨ̀̎̆͘ͅ ͕̞̂̄̆ͮ̓ͯ͡l̖̙̥̈̈́̆ͨŏ̘̖̥̰̥͝o̹͓̩̮̻̽k̺͔͍̖̥͍͛̽̾̌s͓͈̞͔̬̖͇̔̎ ͕̦̟̝̮͉̓ͦͥͫ́ͭ̊o̅̋͒k̠̪̖͎͐ͤ̎ ̔ͮ̃̈t̮̀͒̀̿ͮͫ͢oͪ̃̀͂̑ m̯̀̂ͧ̑̾̔e͡?̸͕̀ͦ̌́̔ͧ?͚̖̭̊̇̑̾
  22. Explv

    WTF?

    W̴̧̧͚̘̩̳̜̬͈̽̇̓͋̓͝͠h̴̙̠̫̊̈́̈́̃̓̕̕å̵̹̬͈͈̆̽͑̄̄̇̀̑̇́̏̇̚̚t̸̛̙̠̪͑͋̊̽͛̈́͋͑͋̽ͅ'̴̧̡͉̣̘̱̥̬͎͉̱̗̽s̴̢͖̞̗̥̽ͅ ̴̝͂͌̎̿̿́͊̉̍͘͘̕͝w̷̢̥̹̞͈̬̗̥͈̩̟̮͈̔͐̽̊̕r̶̢̧̛̜̯͖͖̪͍̩͍̱̱̝͚͑̑̎͐͌̈́ö̶̮̝̱̜̥͐ͅn̵͎̯̲̣̹̣̄͊g̸̨̪̯͉̦̘̯̪̐͌̓̂͌́͆̂̑̂̚͠?̷̡͕̱̩̪̫̟̱̮̠̱̤̜̺̾̃̉̌̐̂
×
×
  • Create New...