Made NPCs now work properly on multiworld system. Solved multiple issues regarding Player Shops not giving back items properly when owner exits. Added restriction on changing channels at FM rooms, preventing shop owner entering Cash Shop.
23 lines
404 B
JavaScript
23 lines
404 B
JavaScript
var status = -1;
|
|
|
|
function start() {
|
|
action(1,0,0);
|
|
}
|
|
|
|
function action(mode, type, selection) {
|
|
if (mode == 1) {
|
|
status++;
|
|
} else {
|
|
status--;
|
|
}
|
|
switch(cm.getPlayer().getMapId()) {
|
|
case 930000500:
|
|
if (!cm.haveItem(4001163)) {
|
|
cm.sendNext("Get me the Purple Stone of Magic from here.");
|
|
} else {
|
|
cm.warpParty(930000600);
|
|
}
|
|
break;
|
|
}
|
|
cm.dispose();
|
|
} |