Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - script Sample -1,{
- OnPCDieEvent:
- // dispbottom "DIED";
- while( strcharinfo(3) == "prontera" && HP <= 1 ) sleep2 1000;
- OnPCLoadMapEvent:
- while( strcharinfo(3) == "prontera" ){
- getmapxy( .@map$,.@x,.@y,0 );
- if( .@x == .@prev_x && .@y == .@prev_y ){
- .@idle++;
- // dispbottom "IDLE : "+.@idle+" Seconds.";
- if( .@idle >= 60 ){
- dispbottom "Suicided when afk for 1minutes in this map.";
- unitkill getcharid(3);
- end;
- }
- }else
- .@idle = 0;
- .@prev_x = .@x;
- .@prev_y = .@y;
- sleep2 1000;
- }
- end;
- }
- prontera mapflag loadevent
Advertisement
Add Comment
Please, Sign In to add comment