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:
40
scripts/npc/1072008.js
Normal file
40
scripts/npc/1072008.js
Normal file
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
Author: xQuasar
|
||||
NPC: Kyrin - Pirate Job Advancer
|
||||
Inside Test Room
|
||||
**/
|
||||
|
||||
var status;
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1,0,0);
|
||||
}
|
||||
|
||||
function action(mode,type,selection) {
|
||||
if (status == -1) {
|
||||
if (cm.getMapId() == 108000502) {
|
||||
if (!(cm.haveItem(4031856,15))) {
|
||||
cm.sendNext("Go, and get me 15 #b#t4031856##k.");
|
||||
cm.dispose();
|
||||
} else {
|
||||
status = 2;
|
||||
cm.sendNext("Wow, you have brought me 15 #b#t4031856##k! Congratulations. Let me warp you out now.");
|
||||
}
|
||||
} else if (cm.getMapId() == 108000501) {
|
||||
if (!(cm.haveItem(4031857,15))) {
|
||||
cm.sendNext("Go, and get me 15 #b#t4031857##k.");
|
||||
cm.dispose();
|
||||
} else {
|
||||
status = 2;
|
||||
cm.sendNext("Wow, you have brought me 15 #b#t4031857##k! Congratulations. Let me warp you out now.");
|
||||
}
|
||||
} else {
|
||||
cm.sendNext("Error. Please report this.");
|
||||
cm.dispose();
|
||||
}
|
||||
} else if (status == 2) {
|
||||
cm.warp(120000101,0);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user