Advertisement
thedupetroop

Fatigue

Dec 27th, 2011
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.97 KB | None | 0 0
  1. //declare this as a global variable (outside any methods)
  2.     boolean modNear = false;
  3. //
  4.     public void main(String args[]) {
  5.         int lastFatigue = fatigue();    //you must declare this within main but outside of while(running())
  6.         while(running()) {
  7.        
  8.             /*Mod Check against fatigue change.*/
  9.             if(fatigue() - lastFatigue > 1) { //if the increase was by more than one
  10.                 System.out.println("Mod messing with ya!");
  11.                 modNear = true;
  12.             } else if(fatigue() - lastFatigue == 1){
  13.                 lastFatigue++;
  14.             }
  15.             wait(1000);
  16.             if(modNear) {
  17.                 modNear = false;   
  18.                 lastFatigue = fatigue();
  19.                 AePlayWave soundPlayer = new AePlayWave("resources/modWarning.wav");
  20.                 soundPlayer.run();         
  21.                 stop("Mod is messing with you!!! (Leet Mod Detections work!)");
  22.             }
  23.             if(fatigue() >= 90 && fatigue() - lastFatigue <= 1) {
  24.                 doSleep();
  25.                 lastFatigue = 0;               
  26.                 wait(1000);
  27.             }
  28.             while(sleeping())
  29.                 wait(100);
  30.             //Type in the code you want the bot to perform here
  31.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement