@lResxt I changed THS.Shiniri's code to allow for 27 hours afk and virtually no cooldown.
I changed on line 36, the wait to 1 and on line 51 afkc to (100000*20).
I hope it fits your needs : )
36 if(cooldown == 1){wait 1; cooldown = 0; status = 1;}
51 while(distance(old_origin, self.origin) <= 5 || old_angles != self getPlayerAngles() && afk == 0 && afkc < (100000*20))
ps: I also remove anything before "afk == 0" on my personal compilation because sometimes zombies would push me by chance and I'd leave the afk state.