Advertisement
plugandplaydev

Level Check

Jun 14th, 2015
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. //============================================================//
  2. // This script is made by Plug and Play //
  3. // Contact us on Facebook http://facebook.com/plugandplayPH //
  4. // Website : http://plugandplay.cf //
  5. //============================================================//
  6.  
  7. - script Level Checker -1,{
  8. //--Start of the Script
  9. OnPCLoginEvent:
  10. attachnpctimer ""+strcharinfo(0)+"";
  11. initnpctimer;
  12. end;
  13.  
  14. OnTimer100: //Check for 100 Miliseconds
  15. set @checktime, @checktime + 1;
  16. if(@checktime > 1){
  17. if(BaseLevel == 60 && !BonusItemLevel60){
  18. getitem 501,10;
  19. getitem 502,10;
  20. set BonusItemLevel60,1;
  21. announce "[ "+strcharinfo(0)+" ] : has reach Level 60",bc_blue|bc_all;
  22. }
  23. else if(BaseLevel == 70 && !BonusItemLevel70){
  24. getitem 501,10;
  25. getitem 502,10;
  26. set BonusItemLevel70,1;
  27. announce "[ "+strcharinfo(0)+" ] : has reach Level 70",bc_blue|bc_all;
  28. }
  29. else if(BaseLevel == 80 && !BonusItemLevel80){
  30. getitem 501,10;
  31. getitem 502,10;
  32. set BonusItemLevel80,1;
  33. announce "[ "+strcharinfo(0)+" ] : has reach Level 80",bc_blue|bc_all;
  34. }
  35. else if(BaseLevel == 90 && !BonusItemLevel90){
  36. getitem 501,10;
  37. getitem 502,10;
  38. set BonusItemLevel90,1;
  39. announce "[ "+strcharinfo(0)+" ] : has reach Level 90",bc_blue|bc_all;
  40.  
  41. }
  42. else if(BaseLevel == 99 && !BonusItemLevel99){
  43. getitem 501,10;
  44. getitem 502,10;
  45. set BonusItemLevel99,1;
  46. announce "[ "+strcharinfo(0)+" ] : has reach Level 99",bc_blue|bc_all;
  47. }
  48. }
  49. stopnpctimer;
  50. initnpctimer;
  51. end;
  52. }
  53.  
  54. //--End of the Script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement