Everything posted by Vilius
-
Osbot Dropping Bot Like
Damn all of these people cannot show you a simple snippet, smh int[] slot = { 0, 4, 1, 5 }; for(int i : slot){ if(getInventory().getItemInSlot(i).getName().equals("whatever")) getInventory().getItemInSlot(i).interact("Drop"); } Just replace the slot array with the slots you want to be dropped.
- Best botting OS
-
entity type
Thats the whole point of having super classes, that they have their own custom methods. What you can do is overload the methods to have diff params depending on the entities super class.
-
Help me
You should read their terms of service first then ask for help, most likely they have something in the tos against making proxies from the vps. Edit: I see you got suspended for phishing, you can prove that you didnt have apache or anything web related installed, stuff like that might help.
- JavaFx UX
-
osbot v2
Why change it to that? The current one looks simple and modern, the new one you propose looks like its from 2000's. Just my two cents.
-
getMouse.click not working
Well it should be clicking correctly, most likely the first if statement is wrong. But Im guessing you want it to shif click drop, which osbot already does if you enable it in game :b
-
Big chill i got from botted $$
Yeah unlike you buying some lame ass wireless headphones, macs, consoles OT: Nice to see Lithuanians here and the trip looked like it was fun :b
-
Can't load local scripts on Mac
My guess he was putting the class files into the root directory of OSBot rather than the sub directory of scripts.
-
Wins PC to run 1 Client?
Yeah, raspberry pi 3 is outdated but still decent, the newer version should be great :p
-
Wins PC to run 1 Client?
buy a raspberry pi to play rs on the go
-
Calling random method
I have to correct myself, my first example should work with random(2) instead of random(1), because random(int i) is generating a number exclusively, meaning it generates a number between 0-1 and never returns a 1, doing random(2) would generate 0-1 without including the number 2. random(int min, int max) is inclusive meaning that it will include the numbers defined in the parameters. Example: random(1, 3) would generate 1, 2, 3.
-
Calling random method
I edited my post, it was fucked up for some reason, the spoilers dont seem to work for me haha
-
Calling random method
Random doesn't mean that it scatters everything evenly, flipping a coin a 100 times and getting tails 99 times out of 100 is still random, flip was random and the result was random. Changing it to the examples that I posted below might not do any difference. If you want something different you can try: if((Math.random()<0.5)? false: true) method1(); else method2(); result would be after 100 iterations (true being first method is called, false being method2) true, true, false, true, false, true, false, true, false, true, false, false, false, false, false, false, false, true, false, true, true, false, false, false, true, true, false, true, false, true, false, true, true, true, true, false, true, false, false, false, true, true, true, false, false, false, true, true, true, true, true, true, false, false, true, true, true, false, false, true, false, false, true, true, true, true, true, false, true, false, false, true, true, false, false, false, true, false, true, false, true, false, false, false, true, false, true, false, false, false, true, false, false, false, true, true, true, false, true, false, If you want to use something else then do: Random random = new Random(); switch(random.nextInt(2)){ case 0: method1(); break; case 1: method2(); break; } //OR Random random = new Random(); if(random.nextBoolean()) method1(); else method2(); results after 100 iterations: 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0
-
Calling random method
Yeah and when it returns a 0 what are you going to do then? The chance would be 1/3 instead of 1/2 to get 1 or 2 Correct code would be: switch(random(2)){ case 0: method1(); break; case 1: method2(); break; }
-
Can't switch boolean from another class
http://stackoverflow.com/questions/40480/is-java-pass-by-reference-or-pass-by-value http://softwareengineering.stackexchange.com/questions/21802/when-are-getters-and-setters-justified http://stackoverflow.com/questions/1568091/why-use-getters-and-setters http://stackoverflow.com/questions/7026507/why-are-static-variables-considered-evil Read pls
-
OSBot T-Shirt
Man the shipping costs more than the t-shirt it self.
- Selling 111M 07
- Selling 111M 07
- copypasta
- Selling 71m 07 btc
-
blue whale game
Blue whale is a stupid epidemic among teens. Who in their right mind would do 50 life threatening tasks and in the end commit suicide because they are told to do so?
-
Script wont start
private final RS2Object bankBooth = objects.closest("booth"); private final RS2Object fountainObject = objects.closest("Fountain"); Thats where your problem is. You need to set those objects in your code which executes in onLoop. Say the bank method you have, youd need to put the objects.closest("booth") there.
- buying fresh lvl 3's out of tutorial
-
LHC & CERN?
You could watch Brian Cox giving lectures or ted talks as he works at CERN. Pretty good stuff.