The NPC exists and nothing shows up after I press next at selection 0.
I am fairly new to npc scripting.
Using MoopleDEV revision 120, so no errors on bat.
If anyone could explain to me how to proceed my code from selection 0 that would be great, I am sort of confused with the whole status mechanism.
PHP Code:
var status;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == 1) {
status++;
}else{
status--;
}
if (status == 0) { // NPC Start
cm.sendNext("#bWelcome,#k I am here to tell you about perfect pitch!\r\n #v4310000# ");
} else if (status == 1) { // Second stage
cm.sendSimple("Would you like to get started? \r\n #L0# #bYes #l \r\n #L1# #rNo #l");
} else if (status == 2) { // Third Stage
if (selection == 0) { // selections of status 1 necessary to be under 3rd stage
cm.sendNext("Here I am, watching good ol' fake taxi, when the driver's face tells me, I should make a game currency.");
cm.dispose();
} else if (selection == 1) { // Another selection of status 1
cm.sendOk(" You're missing good information :) ");
cm.dispose();
} else if (status == 3) { // Fourth Stage
cm.sendNext("And then I thought of the Perfect Pitch currency. Yep, now take this and enjoy, spend the pitch at the brown market next door, and don't come back!");
cm.giveItem(4310000);
}
}
}