Jump to content

Botre

Members
  • Posts

    5883
  • Joined

  • Last visited

  • Days Won

    18
  • Feedback

    100%

Everything posted by Botre

  1. package worldhopping.Botrepreneur; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Random; import org.osbot.rs07.script.Script; public class WorldHopper { /** * @author Botrepreneur * @Version: 00.10 */ private List<Integer> future = new ArrayList<Integer>(); private List<Integer> past = new ArrayList<Integer>(); private int worldHops = 0; private final Script script; public WorldHopper(final Script script, Collection<World> list) { this.script = script; for (World world : list) { if (world == null) { continue; } this.future.add(world.getWorldNumber()); } } public void toRandomWorldNumber() { int index = new Random().nextInt(future.size()); int world = future.get(index); this.script.log("Hopping to world: " + world); this.script.worldHopper.hop(world); this.worldHops++; this.future.remove(index); this.past.add(world); this.resetList(); } public void toLowestWorldNumber() { int world = Collections.min(future); int index = future.indexOf(world); this.script.log("Hopping to world: " + world); this.script.worldHopper.hop(world); this.worldHops++; this.future.remove(index); this.past.add(world); this.resetList(); } public void toHighestWorldNumber() { int world = Collections.max(future); int index = future.indexOf(world); this.script.log("Hopping to world: " + world); this.script.worldHopper.hop(world); this.worldHops++; this.future.remove(index); this.past.add(world); this.resetList(); } private void resetList() { if (future.isEmpty() && !past.isEmpty()) { List<Integer> temp = this.future; this.future = this.past; this.past = temp; this.past.clear(); } } public int getWorldHops() { return this.worldHops; } public void resetWorldHops() { this.worldHops = 0; } }
  2. http://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html
  3. Guess it all depends on the location indeed ^^
  4. I don't get your question sorry : / This = ?
  5. He'd have to write a method to check if a tile is walk-able though
  6. I made a tool to generate unique paths from a list of paths. But yeah I used to do lots of walking before I had that tool x)
  7. I make it randomly choose between 100+ predefined paths in my Shrooms script. It's super effective if you are 100% sure the paths are flawless
  8. Lol Michael Bay is that you?
  9. Botre

    OSBot 1.8.10

    Thank you for the quick fix !
  10. Free trial: Want to try out a premium herblore script for free? Script's thread: http://osbot.org/forum/topic/48273-aio-herblore-flawless-herblore-training/ Rules: 100+ post count users only for security reason. Leave a comment on this thread. Leave a comment on the script's thread (see link above). Like the script's thread (not required but much appreciated) (see link above). Maximum one 24h trial per user. Maximum 5 trials per 24h.
  11. Lmao Inb4 SOTW rank
  12. Trial started Enjoy! For the people who hate xp waste: you can turn you fungi into super energy potions for massive free herblore XP!
  13. Because it's illegal. x)
  14. Fake coke for wannabes? I could see this becoming a thing tbh
  15. Meh I'll upload a better pic later, one that doesn't look like I live in a jail cell
  16. @ the people suggesting music: I have been working with ableton live and pro tools for more than 5 years now, recently started writing my own vst plugins. Keep the suggestions coming
  17. I'm looking for a good learning book, not to big, preferably not literature (I study literature at university so I read enough fiction/philosophy and whatnot as it is :p) and preferably not expert-level either (but I guess that's relative). Subjects I'm looking for (feel free to combine and/or derive) (my general interests are much broader but these are some fields I'd really like to get into / learn more about): Electronics. Programming. Robotics. Arduino. Chemistry. Mathematics. Music. Design. Building. I'm mainly looking for books but if you know a better educational format for any of these (eg. a good arduino starters kit) don't hesitate to share it ^^ (no youtube tutorials tho.. pls) Thanks !
  18. ew ... And that's why you don't use the same PW on all websites that require one :p
  19. I know the feeling..
  20. Yup happens to me when I try to use the site on my shitty phone :p
×
×
  • Create New...