Everything posted by Botre
-
Randomized target selection
Here's a Java 8 way to do it: Predicate<NPC> predicate = o -> (o != null && o.exists() && o.getName().equals("Rat") && getMap().canReach(o)); List<NPC> potential = getNpcs().getAll().stream().filter(predicate).collect(Collectors.toList()); NPC target = potential.size() > 0 ? potential.get(random.nextInt(potential.size())) : null;
- Hi im Youtube :)
-
How the hell do you guys all have such high post count (1k+)
Also. This helps: :|
- Count To 10,000!
-
How the hell do you guys all have such high post count (1k+)
1038 Wrong thread. Or is it.
- Count To 10,000!
-
Webwalking
Oh very cool thanks! I'm just curious about them not sure if I'm going to write one, but if I did I'd probably open source it @Mysteryy: Thanks you sexy beast
-
Mouse click broken?
What Try again, it really is not supposed to do that inb4 OP broke java.
-
Mouse click broken?
Today you both solved a problem AND you learned something new. #winning (now go fix that conversion thingie )
-
Mouse click broken?
RS2Object fire = objects.closest("Fire"); if (fire != null && fire.exists() && fire.getPosition().equals(myPosition())) { new Position(myPosition().getX() + 1, myPosition().getY() + 1, myPosition().getZ()).interact(getBot(), "Walk here"); sleep(random(150, 250)); }
-
Mouse click broken?
int a = Integer.parseInt(""+myPlayer().getY()+""); int b = Integer.parseInt(""+a+"") + 1 ; int c = Integer.parseInt(""+myPlayer().getX()+""); What did I just read.... You take an int turn it into a string an then parse an int out of it again. Don't do that. Ever.
-
Webwalking
A couple of questions: - What exactly is the role of the node in this scenario? Is it one walkable position of an area you feed to the pathfinder? Or do you feed all walkable positions to the pathfinder (this seems expensive though)? - To generate the graph, do you walk the surface and collect map data or do you just use a cache from the map and load all data at once? - Could you explain the word "web" ? What exactly is interlinked? The nodes? If so, why would you need a pathfinder if a relation is pre-established? I have a couple more, if you don't mind, but perhaps the answers to the one above will also answer those :p
- hi guys ;3
- Count To 10,000!
-
Webwalking
Anyone wants to share their implementation with me ? (shameless) Or point me to a tutorial, or just write down the basic steps for me? Thanks
- Web walking [In progress]
-
Botre & Anne's lied
Love's confusing right.
-
Botre & Anne's lied
https://soundcloud.com/dreamstreamofficial/botre-annes-lied
-
Scripters, Please we need more ANTI-BAN!
"Englandino" made this thread a good one. Suggest something, better how ? What would you like to see improved upon ?
- Count To 10,000!
- div
- Count To 10,000!
- Hi I'm J.B
- Count To 10,000!
-
Mirror client some1 explain
http://osbot.org/forum/topic/66338-reducing-banning-rates-behind-the-scenes-at-osbot-27-febuary-2015/