Multi World NPCs + patch on Player interactions
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.
This commit is contained in:
23
scripts/npc/2133004.js
Normal file
23
scripts/npc/2133004.js
Normal file
@@ -0,0 +1,23 @@
|
||||
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();
|
||||
}
|
||||
Reference in New Issue
Block a user