Nokia Posted April 14, 2013 Posted April 14, 2013 hey can i request a simple afk check script for bg maps? like..: if a player is afk for 60 seconds: "please move or you will get kicked" 30 seconds later "you got 30 seconds to move" after 30 seconds warp the char to save point Quote
Capuche Posted April 19, 2013 Posted April 19, 2013 Maybe something like this ? - script iubiu -1,{ OnInit: setarray .@map_name$, "bat_c01", "bat_c02"; .@size_map = getarraysize( .@map_name$ ); for ( .@i = 0; .@i < .@size_map; .@i++ ) setmapflag .@map_name$[.@i], mf_loadevent; .bg_map$ = implode( .@map_name$, "|" ); end; OnPCLoadMapEvent: if ( !compare( .bg_map$, strcharinfo(3) ) || !getcharid(4) || getgmlevel() || @loop_bg ) end; @loop_bg++; while( compare( .bg_map$, strcharinfo(3) ) && getcharid(4) ) { sleep2 10000; if( checkidle() > 60 && checkidle() <= 70 ) announce "please move or you will get kicked", bc_self; else if( checkidle() > 90 && checkidle() <= 100 ) announce "you got 30 seconds to move", bc_self; else if( checkidle() > 120 ) { warp "SavePoint", 0, 0; break; } } @loop_bg = 0; end; } 1 Quote
Question
Nokia
hey can i request a simple afk check script for bg maps?
like..:
if a player is afk for 60 seconds:
"please move or you will get kicked"
30 seconds later
"you got 30 seconds to move"
after 30 seconds warp the char to save point
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.