Guest User

Untitled

a guest
Apr 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. var status = 0;
  2.  
  3. function start() {
  4. status = -1;
  5. action(1, 0, 0);
  6. }
  7.  
  8. function action(mode, type, selection) {
  9. if (mode == -1) {
  10. cm.dispose();
  11. } else {
  12. if (mode == 0) {
  13. cm.dispose();
  14. return;
  15. }
  16. if (mode == 1)
  17. status++;
  18. else
  19. status--;
  20. if (status == 0) {
  21. cm.sendYesNo("Hello there, do you want to check the rankings?");
  22.  
  23. } else if (status == 1) {
  24. cm.sendSimple("Pick an option :\r\n\r\n#b#L100#Total#l\r\n\r\n#rJobs#k :#b\r\n#L6#Beginner#l\r\n#L1#Warrior#l\r\n#L2#Magician#l\r\n#L3#Bowman#l\r\n#L4#Thief#l\r\n#L5#Pirate#l#b\r\n#L10#Nobless#l\r\n#L11#Dawn Warrior#l\r\n#L12#Blaze Wizard#l\r\n#L13#Wind Archer#l\r\n#L14#Night Walker#l\r\n#L15#Thunder Breaker#l\r\n\r\n#b#L7#Search my rank!#l\r\n\r\n#k If you are the top 20 ranking in overall, your name will shine at the server website!");
  25. } else if (status == 2) {
  26. var haha;
  27. switch (selection) {
  28. case 1:
  29. haha = "warrior";
  30. break;
  31. case 2:
  32. haha = "magician";
  33. break;
  34. case 3:
  35. haha = "bowman";
  36. break;
  37. case 4:
  38. haha = "thief";
  39. break;
  40. case 5:
  41. haha = "pirate";
  42. break;
  43. case 6:
  44. haha = "beginner";
  45. break;
  46. case 7:
  47. haha = "me";
  48. break;
  49. case 10:
  50. haha = "nobless";
  51. break;
  52. case 11:
  53. haha = "cyg1";
  54. break;
  55. case 12:
  56. haha = "cyg2";
  57. break;
  58. case 13:
  59. haha = "cyg3";
  60. break;
  61. case 14:
  62. haha = "cyg4";
  63. break;
  64. case 15:
  65. haha = "cyg5";
  66. break;
  67. case 100:
  68. haha = "total";
  69. break;
  70. default:
  71. haha = "";
  72. break;
  73. }
  74. cm.sendOk(cm.ranking(haha));
  75. cm.dispose();
  76. } else {
  77. cm.dispose();
  78. }
  79. }
  80. }
Add Comment
Please, Sign In to add comment