var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
}
else {
if (status >= 2 && mode == 0) {
cm.sendOk("Goodbye.");
cm.dispose();
return;
}
if (mode == 1) {
status++;
}
else {
status--;
}
if (status == 0) {
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");
}
else if (status == 1) {
if (selection == 0) {
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
cm.dispose();
}
else if (selection == 1) {
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
cm.dispose();
}
else if (selection == 2) {
cm.sendOk(""); // Level 21 - 30
cm.dispose();
}
else if (selection == 3) {
cm.sendOk(""); // Level 31 - 40
cm.dispose();
}
else if (selection == 4) {
cm.sendOk(""); // Level 41 - 50
cm.dispose();
}
else if (selection == 5) {
cm.sendOk(""); // Level 51 - 60
cm.dispose();
}
else if (selection == 6) {
cm.sendOk(""); // Level 61 - 70
cm.dispose();
}
else if (selection == 7) {
cm.sendOk(""); // Level 71 - 80
cm.dispose();
}
else if (selection == 8) {
cm.sendOk(""); // Level 81 - 90
cm.dispose();
}
else if (selection == 9) {
cm.sendOk(""); // Level 91 - 100
cm.dispose();
}
else if (selection == 10) {
cm.sendOk(""); // Level 101 - 110
cm.dispose();
}
else if (selection == 11) {
cm.sendOk(""); // Level 111 - 120
cm.dispose();
}
else if (selection == 12) {
cm.sendOk(""); // Level 120+
cm.dispose();
}
else {
cm.sendOk("Goodbye!");
}
}
else {
cm.dispose();
return;
}
}
}