yuhsing

Untitled

Jan 12th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1.  
  2.  
  3. - script Sample -1,{
  4.  
  5. OnPCDieEvent:
  6. // dispbottom "DIED";
  7. while( strcharinfo(3) == "prontera" && HP <= 1 ) sleep2 1000;
  8.  
  9. OnPCLoadMapEvent:
  10. while( strcharinfo(3) == "prontera" ){
  11. getmapxy( .@map$,.@x,.@y,0 );
  12. if( .@x == .@prev_x && .@y == .@prev_y ){
  13. .@idle++;
  14. // dispbottom "IDLE : "+.@idle+" Seconds.";
  15. if( .@idle >= 60 ){
  16. dispbottom "Suicided when afk for 1minutes in this map.";
  17. unitkill getcharid(3);
  18. end;
  19. }
  20. }else
  21. .@idle = 0;
  22.  
  23. .@prev_x = .@x;
  24. .@prev_y = .@y;
  25.  
  26. sleep2 1000;
  27. }
  28. end;
  29. }
  30.  
  31. prontera mapflag loadevent
Advertisement
Add Comment
Please, Sign In to add comment