Advertisement
Guest User

Untitled

a guest
Feb 16th, 2013
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. - script hourlypoints -1,{
  2.  
  3. //--Start of the Script
  4. OnPCLoginEvent:
  5. attachnpctimer ""+strcharinfo(0)+"";
  6. initnpctimer;
  7. end;
  8.  
  9. OnTimer30000:
  10. //Check if Vending (normal or @at)
  11. if(checkvending() >= 1 || checkchatting() == 1) {
  12. dispbottom "The hourly potion box and coin event stopped because you were vending / chatting / auto attack. Please relog if you wish to start again.";
  13. stopnpctimer;
  14. end;
  15. }
  16. if (checkoption(0x10000000)) {
  17. dispbottom "The hourly potion box, event ticket and coin event stopped because you were vending / chatting / auto attack. Please relog if you wish to start again.";
  18. stopnpctimer;
  19. end;
  20. }
  21. //Check if Idle
  22. getmapxy( .@map$, .@x, .@y, 0 );
  23. if(@map$ == .@map$ && @x == .@x && @y == .@y) {
  24. set @afk, @afk + 1;
  25. }
  26. //If move timer resets
  27. else {
  28. set @afk, 0;
  29. }
  30. set @map$, .@map$; set @x, .@x; set @y, .@y;
  31. //Idle Check for 5 Minutes
  32. if(@afk == 5) {
  33. dispbottom "The hourly potion box, event ticket and coin event stopped because you were idle for 5 minutes. Please relog if you wish to start again.";
  34. stopnpctimer;
  35. end;
  36. }
  37. end;
  38.  
  39. OnTimer60000:
  40. set @minute, @minute + 1;
  41. //Check for 1 Minute
  42. if(@minute == 30){
  43. set @minute,0;
  44. getitem 14003, 1;
  45. getitem 673, 1;
  46. getitem 29003, 1;
  47. dispbottom "You got 1x "+getitemname( 14003 )+" 1x "+getitemname( 29003 )+" and 1x "+getitemname( 673 )+" by staying ingame for 30min. Thanks for playing ~A.G.N.R.O.~";
  48. set @consecutive_hour, @consecutive_hour + 1;
  49. }
  50. //Check for 12 hours consecutive
  51. if(@consecutive_hour == 12) {
  52. set @consecutive_hour,0;
  53. getitem 14003,50;
  54. getitem 673,50;
  55. getitem 29003, 1;
  56. dispbottom "You received 50 "+getitemname( 14003 )+" ,50 "+getitemname( 29003 )+"and 50x "+getitemname( 673 )+" by staying ingame for consecutive of 12 hour";
  57. }
  58. stopnpctimer;
  59. initnpctimer;
  60. end;
  61.  
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement