- script Sample#afk_5min -1,{ OnInit: .npc_name$ = strnpcinfo(0); end; OnCheck: if ( checkidle() >= 300 ) { mes "You afk for 5 minute."; close2; atcommand "@kick "+strcharinfo(0); end; } OnPCLoginEvent: deltimer .npc_name$+"::OnCheck"; addtimer 5000,.npc_name$+"::OnCheck"; end; }