The first part you can add after this: (Line 3591)
/*==========================================**------------------------------------------*/ACMD(reloaditemdb){nullpo_retr(-1, sd);itemdb_reload();clif->message(fd, msg_txt(97)); // Item database has been reloaded.return true;}
and the second part, search this: (line 9713)
ACMD_DEF(costume),
and add this line:
ACMD_DEF(afk),
You need to compile.