Guest User

Untitled

a guest
May 24th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. amatsu,203,203,4 script BuffMan#4 405,{
  2. mes "[BuffMan]";
  3. mes "Would you like some buffs?";
  4. next;
  5.  
  6. switch(select("Yes:No")){
  7. case 1:
  8. //1800000
  9. if(getnpctimer(0) >= 5000){
  10. atcommand "@useskill 34 50 " +strcharinfo(0);
  11. mes "[BuffMan]";
  12. mes "Enjoy your buffs!";
  13. detachnpctimer;
  14. close;
  15. } else {
  16. if(getnpctimer(0) > 0){
  17. set var,getnpctimer(0)/1000;
  18. mes "[BuffMan]";
  19. mes "It's too early for you to get more buffs!";
  20. mes "Please wait: " +var;
  21. close;
  22. } else {
  23. atcommand "@useskill 34 50 " +strcharinfo(0);
  24. mes "[BuffMan]";
  25. mes "Enjoy your buffs!";
  26. attachnpctimer;
  27. initnpctimer;
  28. close;
  29. }
  30. }
  31. break;
  32.  
  33. case 2:
  34. mes "[BuffMan]";
  35. mes "Oh well maybe next time!";
  36. close;
  37. break;
  38. }
  39. }
Add Comment
Please, Sign In to add comment