@afk Command

Absolutely Zero

New member
Messages
5
Points
0
I'm using the latest GIT, I tried the @afk patch that posted on some topic here in the forum but it doesn't work. Can someone share a working @afk.patch? Thanks in advance!

 
Plugins still not working..

Maybe someone please fix this one for latest Hercules version?

Code:
ACMD(afk){	nullpo_retr(-1, sd);		if( map[sd->bl.m].flag.autotrade == battle_config.autotrade_mapflag ){		chat_createpcchat(sd, "Be Right Back", "", 1, 1);		sd->state.autotrade = 1;		if( battle_config.at_timeout ) {			int timeout = atoi(message);			status_change_start(&sd->bl, SC_AUTOTRADE, 10000, 0, 0, 0, 0, ((timeout > 0) ? min(timeout,battle_config.at_timeout) : battle_config.at_timeout) * 60000, 0);		}		clif->chsys_quit(sd);		clif->authfail_fd(sd->fd, 15);	}else{		clif->message(fd, "AFK is not allowed on this map.");	}	return 0;}
 
Back
Top