Jump to content

Butters

Lifetime Sponsor
  • Posts

    650
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Butters

  1. Area FISHING_AREA = new Area(x, x, x, x); if (FISHING_AREA.contains(myPlayer()) { NPC fishingSpot = npcs.closest("Rod fishing spot"); if (fishingSpot != null) { fishingSpot.interact("lure"); ConditionalSleeepHere until interacting } } will only search for the fishing spot if you're in the area you need to be. Also checks if it found the spot before interacting. Basically just make sure that you interact only when you're sure that you have something to interact with
  2. Seems to work great, thanks
  3. They give root access so configure your own vnc. If starting manually do: vncserver -geometry 1920x1080 or any other resolution
  4. I prefer Ubuntu with xfce. Easy to use if you run more bots. If possible, better to run more bots on a single server rather than splitting into VMs, as VMs eat away extra resource. Of course, management and launch times will suffer.
  5. This is purely a Linux issue, but thanks
  6. 50 is the rough limit Trying 110, though getting X server issues after 50+ bots
  7. Howdy, Recently I've stumbled upon an issue when running 50+ bots on a single linux machine. After more bots try to launch I get the error Maximum number of clients reached After some investigating I found out that X server on Linux is limiting the maximum windows opened. I didn't find any decent ways to solve this apart from rebuilding the X server and changing some source code constants (didn't find and easy way to rebuild X server though) Have anyone of you ran into this problem and if so, how did you manage to solve it? Thanks
  8. You're most likely launching your bots externally, so you can use Java 9 on the external launcher. Little code snippet below shows how you can start the bot, save it's proccess and then close all related instances. ProcessBuilder builder = new ProcessBuilder("java", "-jar" ....); Process process = builder.start(); process.descendants().forEach((process) -> process.destroy());
  9. do getWidgets().getWidgetContainingText("Enter Wilderness"); after you interacted with the ditch (use ConditionalSleep btw instead of just sleep) You need to get the latest widget instance when you want to use it
  10. Oh lol, sweet But clearly it's just for giggles. Won't be any better than a software autoclicker
  11. Same issue for me, but only checked in tutorial island. Tabs don't open in tutorial island in both fixed and resizable. Worked in v2.5.28, didn't work in dev build 2.5.29 and doesn't in 2.5.30
  12. Great work man. Though is it only for me that opening tabs doesn't work in tut island? Cause after I switch to fixed mode - same issues as before (need to relaunch the client)
  13. A must actually. Give 1Gb of RAM to one bot and you should be more than ok. The biggest bottleneck will be the CPU. Near impossible to say how many cores you'll need in a VPS, cause they quite often under deliver what was promised, but I'd say around 3 Xeon cores in a VPS should be ok for 10 bots. Had a 10 Xeon core VPS - managed to run 30-35 bots smoothly.
  14. Area area = new Area(2001. 150. 2005. 160); // left corner X, left corner Y, right corner, X, right corner Y if (area.contains(myPlayer()) { chopStuff(); else { walking.webwalk(area); }
  15. Lovely solution from Explv. Though it's this exact reason why I waited for Java 9 to come out back in September. If you launch your OSBot processes externally (as with Explvs launcher) you can use Java 9 Process API https://www.javaworld.com/article/3176874/java-language/java-9s-other-new-enhancements-part-3.html Makes it easy to get PID's, kill processes and etc
  16. Quite strange. Does your script work in general if you ditch ConditionalSleep? Cause my guess is that your script didn't compile properly, so either: 1) Didn't put OSBot jar on classpath 2) Bad imports
  17. Seeing your code would help. Possible reasons: 1) You're running an a loop which doesn't break when you're logged out 2) Code not properly written
×
×
  • Create New...