PDA

View Full Version : Updated Logout method[Mainly Emulous]



Mayhem'
September 10th, 2011, 19:57
public void logout() {
if(System.currentTimeMillis() - logoutDelay > 10000) {
outStream.createFrame(68);
outStream.createFrame(109);
} else {
sendMessage("You must wait 10 seconds from being out of combat to logout.");
}
}


What I Added:



outStream.createFrame(68); // this makes it so that it resets the buttons states so that it can help stop bug//s with attack styles and running, etc...

Unlimitedz
February 23rd, 2012, 11:11
Not Bad....

Although you could add more.. like an interface.. i'll release one soon