fork(1) download
  1. var status = 0;
  2. function start() {
  3. status = -1;
  4. action(1, 0, 0);
  5. }
  6.  
  7. function action(mode, type, selection) {
  8.  
  9. if (mode == -1) {
  10. cm.dispose();
  11. }
  12. else {
  13. if (status >= 2 && mode == 0) {
  14. cm.sendOk("Goodbye.");
  15. cm.dispose();
  16. return;
  17. }
  18.  
  19. if (mode == 1) {
  20. status++;
  21. }
  22. else {
  23. status--;
  24. }
  25.  
  26. if (status == 0) {
  27. cm.sendSimple("Hello! I am your training guide, and I can suggest where to train. What level range would you like to see?#L0#Level 0 - 9#l\r\n#L1#Level 10 - 20#l\r\n#L2#Level 21-30#l\r\n#L3#Level 31 - 40#l\r\n#L4#Level 41 - 50#l\r\n#L5#Level 51 - 60#l\r\n");
  28. }
  29. else if (status == 1) {
  30. if (selection == 0) {
  31. cm.sendOk("Train at Edelstein Park until you are level 8 for Mage or level 10 for other jobs. Edelstein Park is the left farthest portal of Edelstein. Talk to #bElex# for your job advancement."); // Level 0 - 9
  32. cm.dispose();
  33. }
  34. else if (selection == 1) {
  35. cm.sendOk("If you have a friend or two, train by doing the #rHenesys Party Quest# by talking to #bTory# in Henesys Market. \r\n \r\nIf you don't have a party, train at these locations: \r\nEllinia - Dungeon, Southern Forest II: Slime\r\nHenesys - Henesys Hunting Ground I/II: Snails, Stump, Slime\r\nLith Harbor - The Pig Beach: Pig, Ribbon Pig\r\nEllinia - Dungeon, Southern Forest I: Green Mushroom\r\nMushroom Shrine - Mushroom Forest: Orange Mushroom, Green Mushroom"); // Level 10 - 20
  36. cm.dispose();
  37. }
  38. else if (selection == 2) {
  39. cm.sendOk(""); // Level 21 - 30
  40. cm.dispose();
  41. }
  42. else if (selection == 3) {
  43. cm.sendOk(""); // Level 31 - 40
  44. cm.dispose();
  45. }
  46. else if (selection == 4) {
  47. cm.sendOk(""); // Level 41 - 50
  48. cm.dispose();
  49. }
  50. else if (selection == 5) {
  51. cm.sendOk(""); // Level 51 - 60
  52. cm.dispose();
  53. }
  54. else if (selection == 6) {
  55. cm.sendOk(""); // Level 61 - 70
  56. cm.dispose();
  57. }
  58. else if (selection == 7) {
  59. cm.sendOk(""); // Level 71 - 80
  60. cm.dispose();
  61. }
  62. else if (selection == 8) {
  63. cm.sendOk(""); // Level 81 - 90
  64. cm.dispose();
  65. }
  66. else if (selection == 9) {
  67. cm.sendOk(""); // Level 91 - 100
  68. cm.dispose();
  69. }
  70. else if (selection == 10) {
  71. cm.sendOk(""); // Level 101 - 110
  72. cm.dispose();
  73. }
  74. else if (selection == 11) {
  75. cm.sendOk(""); // Level 111 - 120
  76. cm.dispose();
  77. }
  78. else if (selection == 12) {
  79. cm.sendOk(""); // Level 120+
  80. cm.dispose();
  81. }
  82. else {
  83. cm.sendOk("Goodbye!");
  84. }
  85. }
  86. else {
  87. cm.dispose();
  88. return;
  89.  
  90. }
  91. }
  92. }
Success #stdin #stdout 0.42s 323136KB
stdin
Standard input is empty
stdout
Standard output is empty