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.sendNext("Why, hello there my fellow ninja. It seems you may be in need of some throwing stars...");
}
else if (status == 1) {
if cm.haveItem(ILBI ID HERE);
cm.sendSimple("Ah, it seems you already have some. Shame. Do you want some more?")
}
else {
cm.sendOk("Ummm, seems you could use some. Here, take these.");
cm.gainItem(ILBI ID HERE, 5);
cm.dispose();
}
}
else if (status == 2) {
if (selection == 0) {
cm.sendOk("These should help you with your hunting");
cm.gainItem(ILBI ID HERE, 5);
cm.dispose();
} else if (selection == 1) {
cm.sendOk("Goodbye");
cm.dispose();
}
}
}
}