Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //declare this as a global variable (outside any methods)
- boolean modNear = false;
- //
- public void main(String args[]) {
- int lastFatigue = fatigue(); //you must declare this within main but outside of while(running())
- while(running()) {
- /*Mod Check against fatigue change.*/
- if(fatigue() - lastFatigue > 1) { //if the increase was by more than one
- System.out.println("Mod messing with ya!");
- modNear = true;
- } else if(fatigue() - lastFatigue == 1){
- lastFatigue++;
- }
- wait(1000);
- if(modNear) {
- modNear = false;
- lastFatigue = fatigue();
- AePlayWave soundPlayer = new AePlayWave("resources/modWarning.wav");
- soundPlayer.run();
- stop("Mod is messing with you!!! (Leet Mod Detections work!)");
- }
- if(fatigue() >= 90 && fatigue() - lastFatigue <= 1) {
- doSleep();
- lastFatigue = 0;
- wait(1000);
- }
- while(sleeping())
- wait(100);
- //Type in the code you want the bot to perform here
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement