This is extremely easy to do. Just thought it might help you all out though.
What it does:
Logs you out if you are idle for about 5 minutes. UNLESS you are in combat.
Add this into your IdleLogout class:
Congratulations, you now have an Idle Logout :thumbsup:
Save + Compile.
What it does:
Logs you out if you are idle for about 5 minutes. UNLESS you are in combat.
Add this into your IdleLogout class:
Code:
case 202:
if (c.underAttackBy > 0 || c.underAttackBy2 > 0) {
return;
} else {
c.logout();
Misc.println(c.playerName + " is idle, kicked.");
}
break;
Save + Compile.