Files
sweetgum-server/scripts/npc/world0/1072008.js
ronancpl 972517e7b2 source
Source for my MapleSolaxiaV2 (v83 MapleStory).
2015-11-02 23:17:21 -02:00

40 lines
1015 B
JavaScript

/**
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 #bPotent Wind Crystals#k.");
cm.dispose();
} else {
status = 2;
cm.sendNext("Wow, you have brought me 15 #bPotent Wind Crystals#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 #bPotent Power Crystals#k.");
cm.dispose();
} else {
status = 2;
cm.sendNext("Wow, you have brought me 15 #bPotent Power Crystals#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();
}
}