I'd like know if anyone could edit this script that Dastgir made. I would like to kick all the players from all maps that are afk for 6 hours.
- script afkwoe -1,{OnInit: .timetocheck = 30; //Seconds after which idle is checked. .idle_time = 30; //Idle time in seconds, from which one can be warped.end;OnPCLoginEvent: addtimer .timetocheck*1000,strnpcinfo(3)+"::OnCheckAFK"; end; OnCheckAFK: if(checkidle() >= .idle_time && getmapflag(strcharinfo (3), mf_gvg)) { dispbottom "The Police, has detected him as bot because you were in afk a long time during woe"; warp "SavePoint",0,0; end; } addtimer .timetocheck*1000,strnpcinfo(3)+"::OnCheckAFK";}
Hello,
I'd like know if anyone could edit this script that Dastgir made. I would like to kick all the players from all maps that are afk for 6 hours.
Kind Regards,
Yoh.
Edited by Yoh AsakuraShare this post
Link to post
Share on other sites