אני מכין לי סתם סקריפט של סופר רבירט. כדי ללמוד עוד דברים.
עכשיו זה ה npc שישלח אותי לnpc של הסופר רבירט:
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.sendOk("Peace. Hope you come back soon!.");
cm.dispose();
} else {
if (mode == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendSimple ("Hey I will help you to get all the pieces of the suit. \r\n#L1#Yes!\n\#l\");
} else if (status == 1) {
switch(selection) {
case 1: cm.openNpc(9201001); break; //top
}
} else {
cm.dispose();
}
}
}
האם החלק:
case 1: cm.openNpc(9201001); break; //top
נכון?





