Jump to content

Hel

Lifetime Sponsor
  • Posts

    520
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Hel

  1. Thanks. must have just been mucking up some imports or something !
  2. After digging I found the code "Robot().createScreenCapture", but I can't seem to find what it is now a days, anyone wanna help a fella out? :-)
  3. You know this is an absolutely terrible way to judge how many are running due to background processes, a better way would be to add all of the CPU %'s and average out the 25, (68.4 / 25 = 2.736 CPU% average per client) 100 / 2.736 = 36 clients. but yanno, doing these sort've things are pointless.
  4. mhm I've pretty much given up, I'll just run all my CB scripts locally :-(
  5. Just tried that then -- causes errors with the actual client launch. EDIT: Just realised I can have both uppercase AND lowercase folders, I'll copy and paste it, with a changed name and see if that fixes it. EDIT 2: I'm absolutely useless at managing folders in linux, but after finally managing to do so, still not working
  6. still getting the error EDIT: I noticed that in the error, the "data" is lowercase, whereas in my folders it's "Data", could that be an issue?
  7. Hi, I've been having issues with running certain scripts on my VPS, one of those being "APA Rock Crabs", The error I get is ("java.io.FilePermissions" "/home/vpsfish/OSBot/data/\APA Rock Crabs/gui.txt" "read") reading over that, I thought it would be an ownership issue with the folders, went to the effort of looking into that, didn't help. Any help would be greatly appreciated
  8. yeah, I thought the -norandoms had the same effect as that checkbox, again, thankyou all to clearing this up
  9. I was under the assumption the norandoms was for dismissal of randoms? Maybe I'm just misunderstanding though?
  10. As the title states, was just wondering if it's possible (and if so, how would I go about it?) to either completely disable the auto login random solver, or wait until a boolean is true to go on a break. Thanks
  11. It can't find your Oldschool client then -- have you tried hooking it into an OSBuddy version?
  12. What I was trying to do with that was generate a random whole number from 0 to 27 inclusive (the inventory slots) Then check if that random number (random item slot) had an item in it, if it didn't, it entered a while loop & kept regenerating a random inventory slot until there was an item in the randomly generated slot number. I'd rather if it wasn't spoon fed to me either, I'm actually interested in this and would prefer to just get a directional nudge, so I can still benefit from this, thanks
  13. Do you get the blue box complaining about the size at all? Or is it just left on searching?
  14. I'm unsure if you're just upset with me because I named the list of NPCs "objects" (Originally was using bank booths, hence the name) or if it actually bothers the CPU? CNF Formula? Never heard of that before. Is this something I should be investing my time into researching?
  15. It's honestly quite simple, I can give you a small demo of how I'd do it if you're interested, just PM me
  16. I suppose he could be making a script that trains multiple skills at random
  17. Hi, I have two pieces of code which I've been trying to optimize for the last couple of hours, I've looked through the API, I've fiddled in eclipse and I just can't seem to find a logical answer. In this first piece, I'm grabbing all the NPCs around the player, checking if they're a fishing spot, & if they are, I'm adding them to an arraylist called fishingSpots. (I'm doing this to detect which kind of fishing spot is the type I want to fish at, where I then iterate over the fishingSpots & check to see if they have the correct interactions) List<NPC> objects = main.getNpcs().getAll(); ArrayList<NPC> fishingSpots = new ArrayList<NPC>(); for (int i = 0; i < objects.size(); i++) { if (objects.get(i).getName().equalsIgnoreCase("fishing spot")) { fishingSpots.add(objects.get(i)); } main.randSleep(8, 12); // This is just a void that sleeps(random(min,max)), I used this as an attempt to reduce CPU load, but when iterating over objects, there are some 6000, having a sleep causes incredible delay } & Inventory slots -- I'm checking to see if an item is in the slot x, where x is a random whole number from 0-27 inclusive. int i = (int) Math.round(Math.random() * 27); while (main.getInventory().getItemInSlot(i) == null) { i = (int) Math.round(Math.random() * 27); main.randSleep(8, 12); } These loops cause an incredible amount of CPU load, jumping from some 8% up to, what I've seen, 60% load. Any and all help would be appreciated.
  18. After trying for around 20 minutes, I believe you can't set the default size, whenever I tried it, the client doesn't seem to recognize it the same @Zanny are you making sure to launch a runescape client before opening the mirror mode?
  19. I'm not sure what you're asking of me, if you wanna PM me and go a bit more in-depth I'll be glad to help
  20. you change the y size of it by 1 or 2 pixels E.G.
  21. To get mirror mode to work, you simply have to fiddle with the size of the osbuddy window on the vertical axis, I believe it's up one or two pixels. I'll upload a gif of me doing it when I'm home from the doctors
  22. Could do onMessage "you get some logs" (or whatever the actual message is) cut++ get the runtime, if it's below 60 minutes, divide 60 by how many minutes you've ran, * cut -- this will give you logs / hr if it's above 60, divide time ran in minutes by 60, / cut -- this will give logs / hr **You could use seconds but for simplicity I used minutes**
×
×
  • Create New...