Advertisement
Guest User

taxi driver

a guest
Aug 23rd, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. public void onStart() {
  2. //Set your typing speed when spamming
  3. getMouse().getMouseSettings().setWordsPerMinute(Calculations.random(101, 483));
  4.  
  5. // Anti lure (Starting area generated)
  6. int x = getLocalPlayer().getX();
  7. int y = getLocalPlayer().getY();
  8. int radius = 2;
  9. startingArea = Area.generateArea(2, new Tile(x, y));
  10. }
  11. public int onLoop() {
  12.  
  13. // Walk back to starting area if lured
  14. if (!startingArea.contains(getLocalPlayer())) {
  15. getWalking().walk(startingArea.getRandomTile());
  16. log("Running to starting area");
  17. sleepUntil(() -> startingArea.contains(getLocalPlayer()), 5000);
  18.  
  19. } else {
  20.  
  21. getKeyboard().type("i am a taxi driver from mars!!");
  22. }
  23. return 500;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement