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:
28
scripts/npc/2012006.js
Normal file
28
scripts/npc/2012006.js
Normal file
@@ -0,0 +1,28 @@
|
||||
var status = -1;
|
||||
var sel;
|
||||
|
||||
var destinations = new Array("Ellinia", "Ludibrium", "Leafre", "Mu Lung", "Ariant");
|
||||
var boatType = new Array("the ship", "the ship", "Hak", "Hak", "Genie");
|
||||
|
||||
function start() {
|
||||
var message = "Orbis Station has lots of platforms available to choose from. You need to choose the one that'll take you to the destination of your choice. Which platform will you take?\r\n";
|
||||
for(var i = 0; i < destinations.length; i++){
|
||||
message += "\r\n#L" + i + "##bThe platform to " + boatType[i] + " that heads to " + destinations[i] + ".#l";
|
||||
}
|
||||
cm.sendSimple(message);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode < 1) {
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
status++;
|
||||
if (status == 0){
|
||||
sel = selection;
|
||||
cm.sendNext("Ok #h #, I will send you to the platform for #m" + (200000110 + (sel * 10)) + "#");
|
||||
}else if (status == 1) {
|
||||
cm.warp(200000110 + (sel * 10));
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user