Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. if (Main.fishType == "shrimp") {
  2. if (Fish.interact("Net","Fishing spot")) {
  3. Condition.wait(new Callable<Boolean>(){
  4. @Override
  5. public Boolean call() throws Exception {
  6. return ctx.players.local().animation()!=-1;
  7. }
  8. }, 25, 20);
  9. Main.Status = "Fishing";
  10.  
  11. new AntibanTimer(ctx, timerDuration);
  12. } else {
  13. ctx.camera.pitch(Random.nextInt(90, 99));
  14. }
  15. } else if (Main.fishType == "trout" || Main.fishType == "salmon") {
  16. Component noFeathers = ctx.widgets.component(229, 0);
  17. if (noFeathers.visible()) {
  18. ctx.widgets.component(229, 1).interact("Continue");
  19. ctx.controller.stop();
  20. String timeStamp = new SimpleDateFormat("HH:mm:ss").format(Calendar.getInstance().getTime());
  21. System.out.println("Stopping Script, no feathers "+timeStamp);
  22. }
  23.  
  24. if (Fish.interact("Lure","Fishing spot")) {
  25. Condition.wait(new Callable<Boolean>(){
  26. @Override
  27. public Boolean call() throws Exception {
  28. return ctx.players.local().animation()!=-1;
  29. }
  30. }, 25, 20);
  31. Main.Status = "Fishing";
  32.  
  33. new AntibanTimer(ctx, timerDuration);
  34. } else {
  35. ctx.camera.pitch(Random.nextInt(90, 99));
  36. }
  37. } else if (Main.fishType == "tuna" || Main.fishType == "swordfish") {
  38. if (Fish.interact("Harpoon","Fishing spot")) {
  39. Condition.wait(new Callable<Boolean>(){
  40. @Override
  41. public Boolean call() throws Exception {
  42. return ctx.players.local().animation()!=-1;
  43. }
  44. }, 25, 20);
  45. Main.Status = "Fishing";
  46.  
  47. new AntibanTimer(ctx, timerDuration);
  48. } else {
  49. ctx.camera.pitch(Random.nextInt(90, 99));
  50. }
  51. } else if (Main.fishType == "lobsters") {
  52. if (Fish.interact("Cage","Fishing spot")) {
  53. Condition.wait(new Callable<Boolean>(){
  54. @Override
  55. public Boolean call() throws Exception {
  56. return ctx.players.local().animation()!=-1;
  57. }
  58. }, 25, 20);
  59. Main.Status = "Fishing";
  60.  
  61. new AntibanTimer(ctx, timerDuration);
  62. } else {
  63. ctx.camera.pitch(Random.nextInt(90, 99));
  64. }
  65. }
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement