Guest User

Untitled

a guest
Jul 16th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. /*
  2. This NPC clears skills for bugged skills. - Alex/Whoa
  3. */
  4. var status = 0;
  5.  
  6. function start() {
  7. status = -1;
  8. action(1, 0, 0);
  9. }
  10.  
  11. function action(mode, type, selection) {
  12.  
  13. if (mode == -1) {
  14. cm.dispose();
  15. }
  16. else {
  17. if (status == 0 && mode == 0) {
  18. cm.dispose();
  19. return;
  20. }
  21.  
  22. if (mode == 1) {
  23. status++;
  24. }
  25. else {
  26. status--;
  27. }
  28. if (status == 0) {
Add Comment
Please, Sign In to add comment