Advertisement
Guest User

Untitled

a guest
Jul 20th, 2013
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 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 badge rewards has stopped because you were vending / Pub Room. Please relog if you wish to start again.";
  13. stopnpctimer;
  14. end;
  15. }
  16.  
  17. OnTimer60000:
  18. set @minute, @minute + 1;
  19. //Check for 1 Minute
  20. if(@minute == 60){
  21. set @minute,0;
  22. getitem 7729,1;
  23. dispbottom "You received 1 "+getitemname( 7729 )+" by staying ingame for 1 hour.";
  24. set @consecutive_hour, @consecutive_hour + 1;
  25. }
  26. //Check for 12 hours consecutive
  27. if(@consecutive_hour == 5) {
  28. set @consecutive_hour,0;
  29. getitem 7729,5;
  30. dispbottom "You received 5 "+getitemname( 7729 )+" by staying ingame for consecutive of 5 hours.";
  31. }
  32. stopnpctimer;
  33. initnpctimer;
  34. end;
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement