sweetgum83/scripts/quest/20013.js
2024-01-19 03:56:28 -05:00

69 lines
3.1 KiB
JavaScript

/*
NPC Name: Kia
Description: Quest - Cygnus tutorial helper
*/
var status = -1;
function start(mode, type, selection) {
if (mode == -1 || mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1) {
status++;
} else {
if (status == 2) {
qm.sendNext("Hmm, was that too much to ask? Is it because you don't know how to break Boxes? I'll tell you how if you accept my Quest. Let me know if you change your mind.");
qm.dispose();
return;
}
status--;
}
if (status == 0) {
qm.sendNext("#b(*clang clang*)#k");
} else if (status == 1) {
qm.sendNextPrev("Whoa! Hey! You scared me. I didn't know I had a visitor. You must be the Noblesse #p1102006# was talking about. Welcome! I'm #p1102007#, and my hobby is making #bChairs#k. I'm thinking about making you one as a welcome present.");
} else if (status == 2) {
qm.sendNextPrev("But wait, I can't make you one because I don't have enough materials. Could you find me the materials I need? Around this area, you will find a lot of Boxes with items inside. Could you bring me back a #t4032267# and a #t4032268# found inside those Boxes?");
} else if (status == 3) {
qm.sendNextPrev("Do you know how to get items from boxes? All you have to do is break the Boxes like you're attacking a monster. The difference is that you can attack monsters using your Skills, but you can #bonly use Regular Attacks to break Boxes#k.");
} else if (status == 4) {
qm.sendAcceptDecline("Please bring me 1 #b#t4032267##k and 1 #b#t4032268##k found inside those Boxes. I'll make you an awesome Chair as soon as I have what I need. I'll wait here!");
} else if (status == 5) {
qm.forceStartQuest();
qm.guideHint(9);
qm.dispose();
}
}
function end(mode, type, selection) {
if (mode == -1 || mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1) {
status++;
} else {
status--;
}
if (status == 0) {
qm.sendNext("Did you bring me a Building Stone and a Drape? Let's see. Ah, these are just what I need! They indeed are a #t4032267# and a #t4032268#! I'll make you a Chair right away.");
} else if (status == 1) {
qm.sendPrev("Here it is, a #t3010060#. What do you think? Nifty, huh? You can #bquickly recover your HP by sitting in this Chair#k. It will be stored in the #bSet-up#k window in your Inventory, so confirm that you've received the chair and head over to #b#p1102008##k. You'll see him if you keep following the arrow to the left. \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i3010060# 1 #t3010060# \r\n#fUI/UIWindow.img/QuestIcon/8/0# 95 exp");
} else if (status == 2) {
qm.gainItem(4032267, -1);
qm.gainItem(4032268, -1);
qm.gainItem(3010060, 1);
qm.forceCompleteQuest();
qm.forceCompleteQuest(20000);
qm.forceCompleteQuest(20001);
qm.forceCompleteQuest(20002);
qm.forceCompleteQuest(20015);
qm.gainExp(95);
qm.guideHint(10);
qm.dispose();
}
}