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:
24
scripts/npc/1013001.js
Normal file
24
scripts/npc/1013001.js
Normal file
@@ -0,0 +1,24 @@
|
||||
var status = -1;
|
||||
|
||||
function start() {
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == 0 && type == 0) {
|
||||
status--;
|
||||
} else if (mode == -1) {
|
||||
qm.dispose();
|
||||
return;
|
||||
} else {
|
||||
status++;
|
||||
}
|
||||
if (status == 0) {
|
||||
cm.sendNext("You, who are destined to be a Dragon Master... You have finally arrived.", 1);
|
||||
} else if (status == 1) {
|
||||
cm.sendNextPrev("Go and fulfill your duties as the Dragon Master...", 1);
|
||||
} else if (status == 2) {
|
||||
cm.warp(900090101);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user