· 7 years ago · Sep 27, 2018, 01:18 PM
1//===== rAthena Script =======================================
2//= Kiel Hyre Quest
3//===== By: ==================================================
4//= L0ne_W0lf (Script), DZeroX (Timer)
5//===== Current Version: =====================================
6//= 4.7
7//===== Compatible With: =====================================
8//= rAthena Project
9//===== Description: =========================================
10//= Quest for opening Robot Factory first and second floors.
11//===== Additional Comments: =================================
12//= 4.0 A whole bunch-a-updates to various npcs. [L0ne_W0lf]
13//= Corrected condition checks throughout the quest.
14//= Npcs no longer make use of the goto command.
15//= Uses temp npc vars now instead of temp char.
16//= Reduced the amount of variables used.
17//= Corrected some of the cutins in npcs with them.
18//= Added the missing dialogs and weight checks.
19//= Fixed many typos, and grammatical errors.
20//= NPC now names use '#<name>' instead of labels.
21//= Updated some NPC positions, and facings.
22//= Changed the way some NPCs work.
23//= Updated comments for get/delitem commands.
24//= 4.1 Added an 'end;' to Kiel Hyre's dialog for the "Yes" option for if you want to confront Kiehl.
25//= 4.2 Fixed some issues reported in bugreport:2129. [L0ne_W0lf]
26//= 4.2a Follow up to last update. [L0ne_W0lf]
27//= 4.2b Missed a condition, fixed it though. [L0ne_W0lf]
28//= 4.2c More various fixes :D [L0ne_W0lf]
29//= 4.3 Fixed improper condition in the Elly NPC. [L0ne_W0lf]
30//= Corrected some typos in the dialogs.
31//= 4.4 Updated reviecer and robots NPC to use mobcount. (bugreport:2380) [L0ne_W0lf]
32//= 4.5 Removed a delitem that was no logner needed. [L0en_W0lf]
33//= 4.6 Fixed impossible condition for security guard. [L0ne_W0lf]
34//= 4.7 Updated RE/Pre-RE EXP. [Euphy]
35//============================================================
36
37//============================================================================
38// Kiel Hyre Quest/Robotic Lab Dungeon
39//
40// Script Dialog Obtained and Copied Down by L0ne_W0lf
41// Timer work and some variable dances by DZeroX
42// Based on [iRO Sakray] as of [03/29/2007]
43//============================================================================
44//----------------------------------------------------------------------------
45// [Notes]
46// - Let it be noted that ALL DIALOG IS OFFICIAL TO IRO UNLESS SPECIFIED.
47// - I've fixed a few of iRO's mistakes, but I'm sure I made some of my own.
48// - Will probably require a major optimizing.
49// - Not going to list ALL of the more usless NPCs. (Doors + Empty "Beautiful Ladies")
50// - Parties are *NOT REQUIRED* as per Doddler's Wiki information.
51//
52//----------------------------------------------------------------------------
53// [Maps] [Use]
54// yuno_in01 ........... Start quest in pub
55// kh_school ........... Deliver Wine here, Meet Elly
56// yuno ................ Get Delivery for/from "Little Kid"
57// lighthalzen ......... Get Delivery package for "Little Kid"
58// kh_vila ............. Kiel Hyre cottage.
59// kh_dun01 ............ Robot Factory; Save Kiel Hyre
60// kh_mansion .......... Kiel Hyre's Mansion in Lighthalzen
61// kh_kiehl01 .......... Kiehl's room/Cave
62// kh_kiehl02 .......... Kiehl's room/Boss Room
63//
64//----------------------------------------------------------------------------
65// [Variables in Use]
66// KielHyreQuest [8]- Main quest tracking variable (Quest finished at 106)
67//
68// KHToastGirlEnd[8]- Pick up delivery if set to 1,
69//[8][8][8]- picked up delivery if set to 2
70//[8][8][8]- finished if set to 3
71//[8][8][8]- Deleted once no longer needed.
72//
73// KHCottagePoem1[8]- Tracks Poem 1 quest in cottage. (finished = 5)
74//[8][8][8]- Deleted once no longer needed.
75//
76// KHCottagePoem2[8]- Tracks Poem 2 quest in cottage. (finished = 3)
77//[8][8][8]- Deleted once no longer needed.
78//
79// .@KHInput$[8][8]- Used with "Security Guard"
80// [8][8][8]- Used with "Test Tube"
81// [8][8][8]- Used when "Elly" (inputing string in attempt to wake her)
82// [8][8][8]- Used with "Grave", (twice)
83// [8][8][8]- Used with "Heavy Door"
84// [8][8][8]- Used with "Mechanical Device"
85// [8][8][8]- Used for opening various doors in Kiehl's area.
86//
87// .@KHFirstKeyhole[8]- Holds 1 (green keycard) or 2 (cottage key)
88// .@KHSecondKeyhole[8]- Holds 1 (green keycard) or 2 (cottage key)
89//
90// .@KHPotionColor$[8]- Holds 'red', 'green', or 'yellow' depending on what wrong potion is selected.
91//
92// .@KHSwords [8][8]- Used with "Sword Hilt"
93//
94// .@KHQRead[8][8]- Make sure player has asked questions to Kiel Hyre
95//
96// .@KHTitle$[8][8]- Holds "Mr", "Mrs", or "Miss"
97//
98// .@KHDoorPushAttempt[8]- Keeps track of how many times a person has attmepted to push the door open.
99//
100// .@KHPryingItem$[8]- Used for incorrect options when prying open last door.
101//
102// .KHKilled[8][8]- Tracks how many monsters have been killed. Used with "Receiver", "Robots", and "Kiehl" NPCs
103//
104// .KHDoor1Open[8]- 0/1 Depending on if the first door is opened.
105// .KHDoor2Open[8]- 0/1 Depending on if the second door is opened.
106// .KHDoor3Open[8]- 0/1 Depending on if the third door is opened.
107// .KHDoor4Open[8]- 0/1 Depending on if the fourth door is opened.
108// .KHDoor5Open[8]- 0/1 Depending on if the fifth door is opened.
109//
110// .KHKilledBoss[8]- 0/1 depending on if the boss has been killed.
111//
112// $@KHQuestBusy[8]- 0/1 depending on if the boss room has been set in motion.
113//
114//----------------------------------------------------------------------------
115// [NPCs][8][8][8] [Location]
116// Pub Master .................. yuno_in01[8][ 35,178]
117// Hanie ....................... yuno_fild08[8][196,196]
118// Security Guard .............. yuno_fild08[8][158,194]
119// Security Guard .............. yuno_fild08[8][158,183]
120// Student ..................... kh_school[8][ 57,142]
121// Student ..................... kh_school[8][ 57,139]
122// Lady ........................ kh_school[8][176, 60]
123// Cute Student ................ kh_school[8][179, 39]
124// Little Kid .................. yuno[8][8][217,114]
125// Windmill Owner .............. lighthalzen[8][365,300]
126// Cottage Keeper .............. yuno_fild02[8][ 93,210]
127// Door ........................ yuno_fild02[8][ 75,218]
128// Door ........................ yuno_fild02[8][109,218]
129// Wall ........................ kh_vila[8][191, 14]
130// Book ........................ kh_vila[8][184, 20]
131// Book ........................ kh_vila[8][181, 20]
132// Book ........................ kh_vila[8][178, 20]
133// Book ........................ kh_vila[8][175, 19]
134// Letter ...................... kh_vila[8][179, 11]
135// Box ......................... kh_vila[8][ 16,175]
136// Apple Box ................... kh_vila[8][ 30,184]
137// Map ......................... kh_vila[8][ 44,125]
138// Pot ......................... kh_vila[8][ 33,148]
139// Calabash .................... kh_vila[8][ 14, 55]
140// Pool ........................ kh_vila[8][ 39, 39]
141// Vicious Dog ................. kh_vila [8][180,178]
142// Drawer ...................... kh_vila [8][115,186]
143// Box ......................... kh_vila [8][107,126]
144// Bookshelf ................... kh_vila [8][181,138]
145// Sword Hilt .................. kh_vila [8][136, 69]
146// Test Tube ................... kh_vila[8][179, 69]
147// Test Tube ................... kh_vila[8][185, 69]
148// Window ...................... yuno_fild08[8][ 69,185]
149// Elly ........................ kh_school[8][178,180]
150// Cookie Basket ............... kh_school[8][175,175]
151// Window ...................... kh_school[8][188,185]
152// Grave ....................... yuno_fild08[8][ 72,170]
153// Heavy Door .................. kh_dun01[8][236, 48]
154// Beautiful lady .............. kh_school[8][119,149]
155// Beautiful lady .............. kh_school[8][122,186]
156// Signboard ................... kh_dun01[8][163,223]
157// Mechanical Device ........... kh_dun01[8][166,223]
158// Mechanical Device ........... kh_dun01[8][162,206]
159// Kiel_Hyre_Door .............. kh_dun01[8][224,232]
160// Steward ..................... kh_mansion[8][ 78, 55]
161// Kiel Hyre ................... kh_mansion[8][ 22, 27]
162// Allysia ..................... kh_mansion[8][ 22, 27]
163// Abduction_trigger ........... lighthalzen[8][188,200]
164// Mysterious Woman ............ kh_mansion[8][ 25, 79]
165// Odd Granma .................. yuno[8][8][250,132]
166// Old Lady .................... yuno [8][8][250,132]
167// Rosimmir_Entrance ........... yuno[8][8][273,141]
168// Table ....................... kh_rossi[8][ 23, 23]
169// Shelf ....................... kh_rossi[8][ 92, 40]
170// Desk ........................ kh_rossi[8][144,146]
171// Bookshelf ................... kh_rossi[8][144,146]
172// Bed ......................... kh_rossi[8][154,286]
173// Old Fisherman ............... yuno_fild12[8][232,222]
174// Wooden Board ................ yuno_fild09[8][158,217]
175// Kiehl_Room_Warp ............. kh_mansion[8][ 29, 27]
176// Entrance Device#KHEntry1 .... kh_dun01[8][ 44, 20]
177// Entrance Device#KHEntry2 .... kh_dun01[8][ 44,203]
178// Security Guard .............. yuno_fild08[8][158,194]
179// Receiver .................... kh_kiehl01[8][ 17, 39]
180// Flower Vase ................. kh_kiehl01[8][ 13, 40]
181// Box ......................... kh_kiehl01[8][ 19, 25]
182// Big Door .................... kh_kiehl01[8][ 44, 33]
183// Big_Door_1_Warp ............. kh_kiehl01[8][ 43, 33]
184// Big Door .................... kh_kiehl01[8][174, 40]
185// Big_Door_2_Warp ............. kh_kiehl01[8][174, 39]
186// Big Door .................... kh_kiehl01[8][ 77,108]
187// Big_Door_3_Warp ............. kh_kiehl01[8][ 68,108]
188// Big Door .................... kh_kiehl01[8][ 41,177]
189// Big_Door_4_Warp ............. kh_kiehl01[8][ 78,177]
190// Robots ...................... kh_kiehl01[8][ 15,181]
191// Big Door .................... kh_kiehl01[8][166,187]
192// Big_Door_5_Warp ............. kh_kiehl01[8][166,186]
193// Kiehl_Room_Trap ............. kh_kiehl02[8][ 49, 15]
194// Kiehl#Original .............. kh_kiehl02[8][ 50, 52]
195// KiehlRoom ................... kh_kiehl02[8][ 1, 1]
196// Mitchell#KiehlRoom .......... kh_kiehl02[8][ 49, 55]
197// Agent#KHAgent1 .... ....... kh_kiehl02[8][ 53, 52]
198// Agent#KHAgent2 .............. kh_kiehl02[8][ 51, 49]
199// Agent#KHAgent3 .............. kh_kiehl02[8][ 47, 50]
200// Agent#KHAgent4 .............. kh_kiehl02[8][ 46, 53]
201// Kiehl#Copy .................. kh_kiehl02[8][ 48, 53]
202// Kiehl_Roomn_Exit ............ kh_kiehl01[8][ 50, 59]
203//
204//----------------------------------------------------------------------------
205// [Functions]
206// None
207//
208//----------------------------------------------------------------------------
209// [Conflicts]
210// Resolved
211//
212//============================================================================
213
214//============================================================================
215// Affiliated NPCs
216//============================================================================
217
218//----------------------------------------------------------------------------
219// Juno Pub Master/Starting point.
220//----------------------------------------------------------------------------
221yuno_in01,35,179,4[8]script[8]Pub Master#kh[8]46,5,5,{
222[8]if (checkweight(7487,1) == 0) {
223[8][8]mes "[Vandt]";
224[8][8]mes "Just a second! You're carrying too many items right now. You'd better put your stuff in Kafra Storage or you won't be able to pick up anything new...";
225[8][8]close;
226[8]}
227[8]if (KielHyreQuest == 0) {
228[8][8]mes "[Vandt]";
229[8][8]mes "Hi there, welcome to my pub. So what would you like to have?";
230[8][8]next;
231[8][8]switch(select("Beer, please.","A cocktail, please.","Soju, please.","Maybe later.")) {
232[8][8]case 1:
233[8][8][8]mes "[Vandt]";
234[8][8][8]mes "Alright, let me get you a glass of beer on tap. There you are, this is out special Schwaltz Beer.";
235[8][8][8]next;
236[8][8][8]mes "^3355FF*Gulp gulp gulp*^000000";
237[8][8][8]percentheal 5,-5;
238[8][8][8]next;
239[8][8][8]mes "["+strcharinfo(0)+"]";
240[8][8][8]mes "Ahhh, it's really good! That really hits the spot!";
241[8][8][8]close;
242[8][8]case 2:
243[8][8][8]mes "[Vandt]";
244[8][8][8]mes "I'm sorry, but I have to deliver all of our cocktail ingredients to other customers Maybe I'll have enough to make you something next time, okay?";
245[8][8][8]close;
246[8][8]case 3:
247[8][8][8]mes "[Vandt]";
248[8][8][8]mes "S-soju? I'm sorry, but we don't serve that here. It's too much of a tough guy drink for me...";
249[8][8][8]close;
250[8][8]case 4:
251[8][8][8]mes "[Vandt]";
252[8][8][8]mes "Sure, just take your time, relax, and order something when you're ready.";
253[8][8][8]close;
254[8][8]}
255[8]}
256[8]if (KielHyreQuest == 1) {
257[8][8]mes "[Vandt]";
258[8][8]mes "Hi there, welcome to my pub. So what would you like to have?";
259[8][8]next;
260[8][8]switch(select("Beer, please:A cocktail, please:Soju, please.:You look worried, what's up?:Cancel")) {
261[8][8]case 1:
262[8][8][8]mes "[Vandt]";
263[8][8][8]mes "Alright, let me get you a glass of beer on tap. There you are, this is out special Schwaltz Beer.";
264[8][8][8]next;
265[8][8][8]mes "^3355FF*Gulp gulp gulp*^000000";
266[8][8][8]percentheal 5,-5;
267[8][8][8]next;
268[8][8][8]mes "["+strcharinfo(0)+"]";
269[8][8][8]mes "Ahhh, it's really good! That really hits the spot!";
270[8][8][8]close;
271[8][8]case 2:
272[8][8][8]mes "[Vandt]";
273[8][8][8]mes "I'm sorry, but I have to deliver all of our cocktail ingredients to other customers Maybe I'll have enough to make you something next time, okay?";
274[8][8][8]close;
275[8][8]case 3:
276[8][8][8]mes "[Vandt]";
277[8][8][8]mes "S-soju? I'm sorry, but we don't serve that here. It's too much of a tough guy drink for me...";
278[8][8][8]close;
279[8][8]case 4:
280[8][8][8]mes "[Vandt]";
281[8][8][8]mes "Oh, did you overhear?";
282[8][8][8]mes "I'm sorry, it's just that one of my employees had an accident and was pretty hurt, so I have nodoby that can deliver this merchandise.";
283[8][8][8]next;
284[8][8][8]mes "[Vandt]";
285[8][8][8]mes "I have an urgent order that I need to send to the Kiel Hyre Academy, but I can't find anyone that's available for this kind of temporary job.";
286[8][8][8]next;
287[8][8][8]switch(select("I'm sorry to hear that:Do you want me to help you?")) {
288[8][8][8]case 1:
289[8][8][8][8]mes "[Vandt]";
290[8][8][8][8]mes "Well, I'm sure that I'll figure something out Do you know anyone that'd be interested in some part time work?";
291[8][8][8][8]close;
292[8][8][8]case 2:
293[8][8][8][8]mes "[Vandt]";
294[8][8][8][8]mes "Really? That's great!";
295[8][8][8][8]mes "But first, I think it's fair to tell you that this job may not be as simple as you'd think I expect you to complete the delivery, no matter what.";
296[8][8][8][8]next;
297[8][8][8][8]switch(select("Sure I'll do it:Wait, let me think about it...")) {
298[8][8][8][8]case 1:
299[8][8][8][8][8]mes "[Vandt]";
300[8][8][8][8][8]mes "I'm glad to hear that Well then, please take this bottle of Culinary Wine to Mrs. ^ff0000Lecollane^000000 in the Kiel Hyre Academy. I'll pay you once you finish the job, okay?";
301[8][8][8][8][8]getitem 7487,1; //Tavern_Wine
302[8][8][8][8][8]set KielHyreQuest,2;
303[8][8][8][8][8]close;
304[8][8][8][8]case 2:
305[8][8][8][8][8]mes "[Vandt]";
306[8][8][8][8][8]mes "Sure thing. I really need to get this done, so if you can't do it, but know any capable, responsible people that can, then please tell them about my situation.";
307[8][8][8][8][8]close;
308[8][8][8][8]}
309[8][8][8]}
310[8][8]case 5:
311[8][8][8]mes "[Vandt]";
312[8][8][8]mes "Sure, just take your time, relax, and order something when you're ready.";
313[8][8][8]close;
314[8][8]}
315[8]}
316[8]else if ((KielHyreQuest >= 2) && (KielHyreQuest < 6)) {
317[8][8]mes "[Vandt]";
318[8][8]mes "Please deliver that bottle of Wine I gave you to Mrs Mrs. ^ff0000Lecollane^000000, who should be inside the Kiel Hyre Academy Hurry and get it to her before she can complain about the delivery.";
319[8][8]close;
320[8]}
321[8]else if (KielHyreQuest == 6) {
322[8][8]if (countitem(7487) == 0) {
323[8][8][8]mes "[Vandt]";
324[8][8][8]mes "Oh, you're back Thanks for making that delivery. Just give me a moment, and then I can pay you in zeny, okay?";
325[8][8][8]next;
326[8][8][8]select("I need more wine...");
327[8][8][8]mes "[Vandt]";
328[8][8][8]mes "Oh, you need to deliver another bottle? Alright, let me look around, and I'll give you the wine and your payment.";
329[8][8][8]next;
330[8][8][8]mes "^3355FFRummage Rummage^000000 ^3355FFRummage Rummage^000000";
331[8][8][8]next;
332[8][8][8]mes "[Vandt]";
333[8][8][8]mes "There you go!";
334[8][8][8]mes "Thank you so much for helping me out~";
335[8][8][8]getitem 7487,1; //Tavern_Wine
336[8][8][8]set Zeny, Zeny+1000;
337[8][8][8]close;
338[8][8]}
339[8][8]else {
340[8][8][8]mes "[Vandt]";
341[8][8][8]mes "Hey, thanks a lot for helping me out that last time. I knew I asked you out of the blue, but you ended up being a life saver! I really appreciate it!";
342[8][8][8]close;
343[8][8]}
344[8]}
345[8]else {
346[8][8]mes "[Vandt]";
347[8][8]mes "You're a really good worker, you know that?";
348[8][8]mes "Dependable, responsible, willing to help others, and proactive too! I think you'll go far in life, kid, I really do~";
349[8][8]close;
350[8]}
351
352OnTouch:
353[8]if (KielHyreQuest < 1) {
354[8][8]mes "[Vandt]";
355[8][8]mes "Arrrggghhh.. This can't be good.. This isn't good at all!";
356[8][8]mes "What am I suposed to do?";
357[8][8]set KielHyreQuest,1;
358[8][8]close;
359[8]}
360}
361
362//----------------------------------------------------------------------------
363// Juno Toast Sales Girl.
364//----------------------------------------------------------------------------
365yuno,217,114,6[8]script[8]Little Kid#kh[8]96,{
366[8]mes "[Cezu]";
367[8]if (KielHyreQuest < 6) {
368[8][8]mes "Fresh, crunchy toast!";
369[8][8]mes "If you want some, come and get some tooooast~";
370[8][8]close;
371[8]}
372[8]else if (KielHyreQuest == 6) {
373[8][8]if (KHToastGirlEnd < 1) {
374[8][8][8]mes "Fresh, crunchy toast!";
375[8][8][8]mes "If you want some, come and get some tooooast~ Oh! Hi hi~ Did you want to buy some yummy toast?";
376[8][8][8]next;
377[8][8][8]switch(select("I'm here for Elly:No, thanks")) {
378[8][8][8]case 1:
379[8][8][8][8]mes "[Cezu]";
380[8][8][8][8]mes "Oh, I see. Elly must have wasted another batch of ingredients again. Well, she's a regular customer, so I really want to help, but I can't really do anything.";
381[8][8][8][8]next;
382[8][8][8][8]mes "[Cezu]";
383[8][8][8][8]mes "You see, I just ran out of ingredients too!";
384[8][8][8][8]mes "But I can't really leave to get some more. What if people need to buy toast?";
385[8][8][8][8]mes "Listen, can you help me out?";
386[8][8][8][8]next;
387[8][8][8][8]mes "[Cezu]";
388[8][8][8][8]mes "Would you please go get some flour and eggs for me from the ^3355FFLighthalzen Windmill^000000 Then, when you come back, I can divide the ingredients, and you can deliver some to Elly.";
389[8][8][8][8]next;
390[8][8][8][8]mes "[Cezu]";
391[8][8][8][8]mes "I know that I'm basically making you do everything on your own, but please try to understand that my hands are tied. D-don't ask me why, they just are!";
392[8][8][8][8]set KHToastGirlEnd,1;
393[8][8][8][8]close;
394[8][8][8]case 2:
395[8][8][8][8]mes "[Cezu]";
396[8][8][8][8]mes "Okay okay~ Please come again!";
397[8][8][8][8]close;
398[8][8][8]}
399[8][8]}
400[8][8]else if (KHToastGirlEnd == 1) {
401[8][8][8]mes "Would you please go to the Lighthalzen Windmill and tell them that Cezu needs lots of flour and lots of eggs!";
402[8][8][8]mes "Then, bring all the stuff over to me as soon as you can~";
403[8][8][8]close;
404[8][8]}
405[8][8]else if (KHToastGirlEnd == 2) {
406[8][8][8]mes "Hey, you're back with the ingredients! Thank you so much, I really needed these!";
407[8][8][8]mes "Now please give this flour and these eggs to Elly, and send her my regards. See you~";
408[8][8][8]delitem 7488,1; //Delivery_Package
409[8][8][8]getitem 7488,1; //Delivery_Package
410[8][8][8]set KHToastGirlEnd,3;
411[8][8][8]close;
412[8][8]}
413[8]}
414[8]//KHToastGirlEnd no longer needed-- deleting.
415[8]if (KielHyreQuest > 6) set KHToastGirlEnd,0;
416[8]mes "Hot, fresh and cruuuunchy toast!";
417[8]mes "Come and get some!";
418[8]close;
419}
420
421//----------------------------------------------------------------------------
422// Lighthalzen WindMill Owner.
423//----------------------------------------------------------------------------
424lighthalzen,366,299,4[8]script[8]Windmill Owner#kh[8]46,{
425[8]if (checkweight(7488,1) == 0) {
426[8][8]mes "[Mills]";
427[8][8]mes "Hey, you've got too much stuff on you right now. Put your junk in Kafra Storage if you expect me to give you anything. That's why you came here to the miss, didn't you?";
428[8][8]close;
429[8]}
430[8]if (KHToastGirlEnd < 1) {
431[8][8]mes "[Mills]";
432[8][8]mes "Hey, whaddya want?";
433[8][8]mes "I'm pretty busy right now, so you mind coming back later? Then we'll talk.";
434[8][8]close;
435[8]}
436[8]else if (KHToastGirlEnd == 1) {
437[8][8]mes "[Mills]";
438[8][8]mes "Hey, whaddya want?";
439[8][8]mes "You just happened to catch me at a good time, but if you need anything, you'd better spit it out quick before things get hectic again.";
440[8][8]next;
441[8][8]switch(select("I'm here for Cezu:......")) {
442[8][8]case 1:
443[8][8][8]mes "[Mills]";
444[8][8][8]mes "Oh, Cezu from the toast stand? Okay, I've got everything that kid needs right here. There's eggs inside, so be really careful with it It's ready for you...";
445[8][8][8]next;
446[8][8][8]mes "[Mills]";
447[8][8][8]mes "Kid's one of my regular customers, so you don't have to pay me, or run any extra errands on my end. Yeah, I know how other people treat you adventurers. Well, see ya.";
448[8][8][8]getitem 7488,1; //Delivery_Package
449[8][8][8]set KHToastGirlEnd,2;
450[8][8][8]close;
451[8][8]case 2:
452[8][8][8]mes "[Mills]";
453[8][8][8]mes "..... Um, okay, well, if you need something, just hollar, I guess Cuts, Cutz where are you?";
454[8][8][8]mes "You'd better not be goofing off!";
455[8][8][8]close;
456[8][8]}
457[8]}
458[8]else if (KHToastGirlEnd >= 2) {
459[8][8]mes "[Mills]";
460[8][8]mes "That Cutz is such a lazy rascal. The guy thinks he can fool around when he's on the clock...!";
461[8][8]mes "Ah well, he knows I can't find a better assistant. He'll learn...";
462[8][8]close;
463[8]}
464}
465
466lighthalzen,366,289,2[8]script[8]Windmill Owner's Helper[8]97,{
467[8]if (KHToastGirlEnd < 1) {
468[8][8]mes "[Cutz]";
469[8][8]mes "Man, why are we always so busy?";
470[8][8]mes "Why does Mills have to work me to the bone?";
471[8][8]mes "Eh, it's a living, I suppose...";
472[8][8]close;
473[8]}
474[8]else if (KHToastGirlEnd >= 2) {
475[8][8]mes "[Cutz]";
476[8][8]mes "Wh-what makes you think I'm goofing off, Mills? L-look, look, my hands are moving, I'm busy, I'm working!";
477[8][8]close;
478[8]}
479[8]else {
480[8][8]mes "[Cutz]";
481[8][8]mes "Hey, you're from Cezu's toast stand, right? How is cute little Cezu doing?";
482[8][8]close;
483[8]}
484}
485
486//============================================================================
487//Kiel Hyre Academy NPCs
488//============================================================================
489
490//----------------------------------------------------------------------------
491// Girl (Talks about the academy)
492//----------------------------------------------------------------------------
493yuno_fild08,196,196,5[8]script[8]Hanie#kh1[8]102,{
494[8]mes "[Hanie]";
495[8]mes "Oh, I wish I could study at the Kiel Hyre Academy.. All of the graduates get really nice jobs! I'm almost jealous of the students!";
496[8]next;
497[8]select("Kiel Hyre Academy?");
498[8]mes "[Hanie]";
499[8]mes "Oh, the Kiel Hyre Academy is a school founded by Kiel Hyre, an inventor that became rich from his strange machines He decided to give back to society by building this private academy.";
500[8]next;
501[8]mes "[Hanie]";
502[8]mes "However, the school will only accept orphans that are too poor to enroll in any other schools. Sometimes, it makes me wish that I was an orphan too!";
503[8]mes "Well, not really, but you know...";
504[8]close;
505}
506
507
508//----------------------------------------------------------------------------
509// Academy Security Guards
510//----------------------------------------------------------------------------
511yuno_fild08,158,194,6[8]script[8]Security Guard#1::KHAGuard[8]852,{
512[8]if ((KielHyreQuest < 2) || (KielHyreQuest > 31)) {
513[8][8]mes "[Security Guard]";
514[8][8]mes "I'm sorry, but if you aren't associated with this institution, then you're not authorized to enter the ^FF0000Kiel Hyre Academy^000000 Please leave if you don't have an appointment with the staff.";
515[8][8]close;
516[8]}
517[8]else if (KielHyreQuest == 2) {
518[8][8]mes "[Security Guard]";
519[8][8]mes "I'm sorry, but if you aren't associated with this institution, then you're not authorized to enter the ^FF0000Kiel Hyre Academy^000000 Please leave if you don't have an appointment with the staff.";
520[8][8]next;
521[8][8]switch(select("I'm here for a delivery.:......")) {
522[8][8]case 1:
523[8][8][8]mes "[Security Guard]";
524[8][8][8]mes "You're here to deliver something? Okay, just give me the recipient's ^FF0000name^000000, followed by the ^FF0000item^000000 being delivered, and I'll verify it before letting you inside.";
525[8][8][8]next;
526[8][8][8]input .@KHDelivery$;
527[8][8][8]if (.@KHDelivery$ != "Lecollane") {
528[8][8][8][8]mes "[Security Guard]";
529[8][8][8][8]mes "You're here to deliver some Wine to...to who? What was the name? I...I don't think we have anybody in the academy named "+.@KHDelivery$+"";
530[8][8][8][8]close;
531[8][8][8]}
532[8][8][8]input .@KHDelivery$ ;
533[8][8][8]if (.@KHDelivery$ != "Culinary Wine") {
534[8][8][8][8]mes "[Security Guard]";
535[8][8][8][8]mes "So you're here to make a delivery to Mrs. Lecollane?";
536[8][8][8][8]mes "What is it you've brought for her? Some ^3355FF"+.@KHDelivery$+"^000000?";
537[8][8][8][8]next;
538[8][8][8][8]mes "[Security Guard]";
539[8][8][8][8]mes "Let me buzz her first, and check to make sure that she's been expecting you. Let's see now...";
540[8][8][8][8]next;
541[8][8][8][8]mes "..... ........ ............";
542[8][8][8][8]next;
543[8][8][8][8]mes "[Security Guard]";
544[8][8][8][8]mes "Huh. Mrs Lecollane is expecting a delivery, but not the item that you say that you've brought for her. You might want to check to see if there's been a mixup...";
545[8][8][8][8]close;
546[8][8][8]}
547[8][8][8]mes "[Security Guard]";
548[8][8][8]mes "Alright... So you're here to deliver a bottle of Wine to Mrs. Lecollane?";
549[8][8][8]mes "Let me buzz her, and get this confirmed real quickly.";
550[8][8][8]next;
551[8][8][8]mes "..... ........ ............";
552[8][8][8]next;
553[8][8][8]mes "[Security Guard]";
554[8][8][8]mes "Okay, everything looks good. Mrs. Lecollane has been expecting you I guess you can enter.";
555[8][8][8]close2;
556[8][8][8]warp "kh_school",71,155;
557[8][8][8]end;
558[8][8]case 2:
559[8][8][8]mes "[Security Guard]";
560[8][8][8]mes "If you don't have an appoointment, then don't loiter around in front of the academy!";
561[8][8][8]close;
562[8][8]}
563[8]}
564[8]else if (KielHyreQuest < 32) {
565[8][8]mes "[Security Guard]";
566[8][8]mes "Oh, did you have other business inside the academy? I remember you from before, so there shouldn't be any problems letting you back inside...";
567[8][8]close2;
568[8][8]warp "kh_school",71,155;
569[8][8]end;
570[8]}
571}
572
573yuno_fild08,158,183,7[8]duplicate(KHAGuard)[8]Security Guard#2[8]852
574
575//----------------------------------------------------------------------------
576// Gossiping Teenagers/Story NPCs
577//----------------------------------------------------------------------------
578kh_school,57,142,6[8]script[8]Student#kha[8]893,3,3,{
579[8]mes "[Laci]";
580[8]mes "Oh, wow! We usually don't get visitors on campus! Um, you're not a new faculty member, are you?";
581[8]close;
582
583OnTouch_:
584[8]mes "[Laci]";
585[8]mes "Hey, Nesha...!";
586[8]mes "have you heard why Aaci hasn't been coming to class for awhile?";
587[8]next;
588[8]mes "[Gui Nesha]";
589[8]mes "That's right, I haven't seen Aaci in awhile Did something happen?";
590[8]next;
591[8]mes "[Laci]";
592[8]mes "It's because... Aaci saw a freakin' ghost!";
593[8]mes "It's one hundred percent true! I heard about it from, well, you know, my sources.";
594[8]next;
595[8]mes "[Gui Nesha]";
596[8]mes "...Wha...?";
597[8]mes "Oh, come on, get outta town.";
598[8]close;
599}
600
601kh_school,57,139,0[8]script[8]Student#khb[8]893,{
602[8]mes "[Gui Nesha]";
603[8]mes "Aren't we a little old to be talking about this kind of stuff? You know, rumors and ghost stories that make no sense?";
604[8]mes "C'mon, Laci, knock it off!";
605[8]emotion ET_PROFUSELY_SWEAT;
606[8]close;
607}
608
609//----------------------------------------------------------------------------
610// Mrs. Lecollane
611//----------------------------------------------------------------------------
612kh_school,176,60,4[8]script[8]Lady#kh[8]101,{
613[8]if (KielHyreQuest < 2) {
614[8][8]mes "[Mrs. Lecollane]";
615[8][8]mes "Is there a problem?";
616[8][8]mes "Outsiders are not allowed to come in here, please leave.";
617[8][8]close;
618[8]}
619[8]else if (KielHyreQuest == 2) {
620[8][8]mes "[Mrs. Lecollane]";
621[8][8]mes "Oh, hello. Ah!";
622[8][8]mes "have you come to deliver my wine? The security guard called and mentioned you were coming.";
623[8][8]next;
624[8][8]switch(select("Yes, that's right!:Er, s-sorry!")) {
625[8][8]case 1:
626[8][8][8]mes "[Mrs. Lecollane]";
627[8][8][8]mes "Well, you've come a little later than I thought, but I suppose it can't be helped I guess the waiting has just heightened my anticipation for this bottle of wi--";
628[8][8][8]next;
629[8][8][8]mes "^3355FF*Cling! Crrrack!*^000000";
630[8][8][8]next;
631[8][8][8]mes "[Mrs. Lecollane]";
632[8][8][8]mes "Elly? Elly did you break something again?!";
633[8][8][8]mes "You've got to be more careful!";
634[8][8][8]mes "If you don't finish baking those cookies by the end of today, your semester grades will suffer!";
635[8][8][8]next;
636[8][8][8]mes "[Elly]";
637[8][8][8]mes "B-but I just...";
638[8][8][8]next;
639[8][8][8]mes "[Mrs. Lecollane]";
640[8][8][8]mes "^FF0000Elly^000000!!";
641[8][8][8]next;
642[8][8][8]mes "[Elly]";
643[8][8][8]mes "..... Yes, Mrs. Lecollane.";
644[8][8][8]next;
645[8][8][8]mes "[Mrs. Lecollane]";
646[8][8][8]mes "*Ahem* Excuse me Would you please leave the wine over there? You may go now, and please don't wander needlessly around the academy.";
647[8][8][8]delitem 7487,1; //Tavern_Wine
648[8][8][8]set KielHyreQuest,4;
649[8][8][8]close;
650[8][8]case 2:
651[8][8][8]mes "[Mrs. Lecollane]";
652[8][8][8]mes "Hm...?";
653[8][8][8]mes "I guess I must be mistaken. I'm sorry, I thought you were somebody else.";
654[8][8][8]close;
655[8][8]}
656[8]}
657[8]else if (KielHyreQuest == 4) {
658[8][8]mes "[Mrs Lecollane]";
659[8][8]mes "Well, our business is completed, so would you please leave the campus as soon as you can? *Sigh* I can't believe our future is in these girls' hands...";
660[8][8]close;
661[8]}
662}
663
664//----------------------------------------------------------------------------
665// Elly (In school)
666//----------------------------------------------------------------------------
667kh_school,179,39,0[8]script[8]Cute Student#kh[8]895,{
668[8]if (checkweight(908,200) == 0) {
669[8][8]mes "[Elly]";
670[8][8]mes "I'm sorry, but would you put some of your things in your Kafra Storage first or something? I can't really help you when you're carrying so much stuff.";
671[8][8]close;
672[8]}
673[8]cutin "kh_elly01",2;
674[8]if (KielHyreQuest < 4) {
675[8][8]cutin "kh_elly03",2;
676[8][8]mes "[Elly]";
677[8][8]mes "W-wah! Oh...!";
678[8][8]mes "^333333*Phew*^000000 That was close, I almost dropped them again! Why do I have so much trouble handling ingredients?";
679[8]}
680[8]else if (KielHyreQuest == 4) {
681[8][8]cutin "kh_elly03",2;
682[8][8]mes "[Elly]";
683[8][8]mes "Oh no, what should I do? ^333333*Sob*^000000 Wh-what am I going to do? ^333333*Sniff*^000000";
684[8][8]next;
685[8][8]switch(select("What happened?:......")) {
686[8][8]case 1:
687[8][8][8]mes "[Elly]";
688[8][8][8]mes "I... I have to finish baking this batch of cookies by the end of today, but then I spilled all of the ingredients on the floor. I don't know how I can bake those cookies now...";
689[8][8][8]next;
690[8][8][8]switch(select("What can I do to help you?:Oh, I'm so sorry.")) {
691[8][8][8]case 1:
692[8][8][8][8]cutin "kh_elly02",2;
693[8][8][8][8]mes "[Elly]";
694[8][8][8][8]mes "What was that...?";
695[8][8][8][8]mes "You'll really help me? That's wonderful!";
696[8][8][8][8]mes "Thank you! Thanks so much!";
697[8][8][8][8]next;
698[8][8][8][8]break;
699[8][8][8]case 2:
700[8][8][8][8]mes "[Elly]";
701[8][8][8][8]mes "Wait, you don't go to this school, don't you? Y-you're one of those adventurers, right?";
702[8][8][8][8]next;
703[8][8][8][8]select("Yeah, that's right.");
704[8][8][8][8]mes "Listen, I know you probably have your own plans, but do you think you can help me with this huge problem that I have?";
705[8][8][8][8]next;
706[8][8][8][8]switch(select("Accept:Decline")) {
707[8][8][8][8]case 1:
708[8][8][8][8][8]cutin "kh_elly02",2;
709[8][8][8][8][8]mes "How Wonderful!";
710[8][8][8][8][8]mes "Thank you! Thank you so much! I'm supposed to finish baking this batch of cookies soon, but I spilled all of the ingredients...";
711[8][8][8][8][8]next;
712[8][8][8][8][8]break;
713[8][8][8][8]case 2:
714[8][8][8][8][8]mes "["+strcharinfo(0)+"]";
715[8][8][8][8][8]mes "I'm outta here.";
716[8][8][8][8][8]next;
717[8][8][8][8][8]cutin "kh_elly04",2;
718[8][8][8][8][8]mes "[Elly]";
719[8][8][8][8][8]mes "W-wait...!";
720[8][8][8][8][8]mes "Come back, you d-don't...! I really need some help!";
721[8][8][8][8][8]emotion ET_CRY;
722[8][8][8][8][8]close2;
723[8][8][8][8][8]cutin "",255;
724[8][8][8][8][8]end;
725[8][8][8][8]}
726[8][8][8]}
727[8][8][8]cutin "kh_elly01",2;
728[8][8][8]mes "[Elly]";
729[8][8][8]mes "Well, I guess the only way I can bake these cookies is to get some new ingredients I'm sorry to be such a burden, but if you didn't offer to help me, then I'd have no one to ask!";
730[8][8][8]next;
731[8][8][8]cutin "kh_elly04",2;
732[8][8][8]mes "[Elly]";
733[8][8][8]mes "You don't understand how important it is that I bake these cookies... If I don't finish this assignment, then Mrs. Crank will fail me for the entire semester!";
734[8][8][8]next;
735[8][8][8]mes "[Elly]";
736[8][8][8]cutin "kh_elly01",2;
737[8][8][8]mes "Okay, I need to calm down. I think I can do this with your help Would you please do me this huge favor and bring all of these ingredients?";
738[8][8][8]next;
739[8][8][8]mes "[Elly]";
740[8][8][8]mes "^3355FF1 Wine^000000, ^3355FF7 Milks^000000, ^3355FF5 Cacaos^000000, ^3355FF2 Cheeses^000000, ^3355FF1 Egg^000000, and ^3355FF1 Bag of Flour^000000.";
741[8][8][8]next;
742[8][8][8]mes "[Elly]";
743[8][8][8]mes "Let's see... You can get Wine from a pub in Juno, Cacaos from hunting Yoyos, and you can get flour and Eggs from the girl that runs the Toast Stand in Juno.";
744[8][8][8]next;
745[8][8][8]mes "[Elly]";
746[8][8][8]mes "Good luck, getting everything, and I hope you hurry back here with those cookie ingredients as quickly as you can, okay?";
747[8][8][8]set KielHyreQuest,6;
748[8][8][8]break;
749[8][8]case 2:
750[8][8][8]mes "[Elly]";
751[8][8][8]mes "*Sob*...";
752[8][8][8]break;
753[8][8]}
754[8]}
755[8]else if (KielHyreQuest == 6) {
756[8][8]if ((countitem(519) < 7) || (countitem(548) < 2) || (countitem(7182) < 5) || (countitem(7487) < 1) || (countitem(7488) < 1)) {
757[8][8][8]mes "[Elly]";
758[8][8][8]mes "Let's see, would you like me to remind you which ingredients I need?";
759[8][8][8]mes "Please bring these things as soon as you can so that I can quickly bake some cookies~";
760[8][8][8]next;
761[8][8][8]mes "[Elly]";
762[8][8][8]mes "^3355FF1 Wine^000000, ^3355FF7 Milks^000000, ^3355FF5 Cacaos^000000, ^3355FF2 Cheeses^000000, ^3355FF1 Egg^000000, and ^3355FF1 Bag of Flour^000000.";
763[8][8][8]next;
764[8][8][8]cutin "kh_elly01",2;
765[8][8][8]mes "[Elly]";
766[8][8][8]mes "Let's see... You can get Wine from a pub in Juno, Cacaos from hunting Yoyos, and you can get flour and Eggs from the girl that runs the Toast Stand in Juno.";
767[8][8]}
768[8][8]else {
769[8][8][8]cutin "kh_elly02",2;
770[8][8][8]mes "[Elly]";
771[8][8][8]mes "Hooray! Finally, I have everything I need! This is great! Oh, would you please give me a moment while I bake these cookies? It shouldn't take long, so hold on just a bit.";
772[8][8][8]delitem 519,7; //Milk
773[8][8][8]delitem 548,2; //Cheese
774[8][8][8]delitem 7182,5; //Cacao
775[8][8][8]delitem 7487,1; //Tavern_Wine
776[8][8][8]delitem 7488,1; //Delivery_Package
777[8][8][8]set KielHyreQuest,8;
778[8][8][8]//KHPubMasterEnd no longer needed-- deleting.
779[8][8][8]set KHPubMasterEnd,0;
780[8][8][8]set KHToastGirlEnd,0;
781[8][8][8]emotion ET_DELIGHT;
782[8][8]}
783[8]}
784[8]else if (KielHyreQuest == 8) {
785[8][8]mes "[Elly]";
786[8][8]mes "Tadah! I did it!";
787[8][8]mes "They're finally done!";
788[8][8]mes "Elly's special cookies I'd like you to have some as thanks for helping me out.";
789[8][8]next;
790[8][8]mes "[Elly]";
791[8][8]mes "I'm sorry, but I was so preoccupied with baking these cookies that I didn't even ask for your name. I'm ^FF0000Ellyja^000000, but everybody calls me, ''Elly.'' What's your name?";
792[8][8]next;
793[8][8]mes "["+strcharinfo(0)+"]";
794[8][8]mes "^3355FF"+strcharinfo(0)+"^000000 It's ^3355FF"+strcharinfo(0)+"^000000.";
795[8][8]next;
796[8][8]cutin "kh_elly02",2;
797[8][8]mes "[Elly]";
798[8][8]mes ""+strcharinfo(0)+"?";
799[8][8]mes "...that name! It's wonderful!";
800[8][8]getitem 538,5; //Well_Baked_Cookie
801[8][8]set KielHyreQuest,10;
802[8]}
803[8]else if (KielHyreQuest == 10) {
804[8][8]mes "[Elly]";
805[8][8]mes "I'm sorry, but I have another favor to ask you if you don't mind helping me out again. Don't worry, you won't have to hurry as quickly as you did last time.";
806[8][8]next;
807[8][8]switch(select("What do you need?:Sorry, but I'm pretty busy...")) {
808[8][8]case 1:
809[8][8][8]mes "[Elly]";
810[8][8][8]mes "You know how you helped me bake those cookies?";
811[8][8][8]mes "It's the first time I was able to do it without burning them!";
812[8][8][8]mes "I just know Grandfather'd be so proud of me!";
813[8][8][8]next;
814[8][8][8]mes "[Elly]";
815[8][8][8]mes "I really want Grandfather to taste the cookies I baked, but the cookies will be stale by the time I'm able to leave campus. Would you deliver these cookies to my grandfather for me?";
816[8][8][8]next;
817[8][8][8]switch(select("Sure:I'm busy.")) {
818[8][8][8]case 1:
819[8][8][8][8]cutin "kh_elly02",2;
820[8][8][8][8]mes "[Elly]";
821[8][8][8][8]mes "Oh, "+strcharinfo(0)+"!";
822[8][8][8][8]mes "Thank you so much, I knew you'd understand! Would you please bring the cookies to him at ^FF0000Kiel Hyre's cottage^000000?";
823[8][8][8][8]next;
824[8][8][8][8]mes "[Elly]";
825[8][8][8][8]mes "Oh, right! They're really careful about visitors and keeping strangers off the property, but if you mention my name, they'll let you in Alright then, see you~";
826[8][8][8][8]set KielHyreQuest,12;
827[8][8][8][8]break;
828[8][8][8]case 2:
829[8][8][8][8]cutin "kh_elly03",2;
830[8][8][8][8]mes "[Elly]";
831[8][8][8][8]mes "Oh, um.. Okay, I'm sorry to have bothered you...";
832[8][8][8][8]break;
833[8][8][8]}
834[8][8][8]break;
835[8][8]case 2:
836[8][8][8]cutin "kh_elly03",2;
837[8][8][8]mes "[Elly]";
838[8][8][8]mes "Oh, um.. Okay, I'm sorry to have bothered you...";
839[8][8][8]break;
840[8][8]}
841[8]}
842[8]else if (KielHyreQuest == 12) {
843[8][8]mes "[Elly]";
844[8][8]mes "Oh, you don't know where to find Kiel Hyre's cottage?";
845[8][8]mes "It's just north from this academy. Please deliver my cookies to Grandfather, and let him know I really miss him.";
846[8]}
847[8]else if (KielHyreQuest == 14) {
848[8][8]cutin "kh_elly03",2;
849[8][8]mes "[Elly]";
850[8][8]mes "Hm? Grandfather's not home? That's strange, he didn't mention anything about any business trips. I thought he'd be at home all day...";
851[8][8]next;
852[8][8]cutin "kh_elly04",2;
853[8][8]mes "[Elly]";
854[8][8]mes "Would you go back to his cottage one more time? Here, you can use this Cottage Key That way, you can just go inside and talk to him~";
855[8][8]getitem 7489,1; //Villa_Spare_Key
856[8][8]set KielHyreQuest,16;
857[8]}
858[8]else if ((KielHyreQuest >= 14) && (KielHyreQuest < 20)) {
859[8][8]mes "[Elly]";
860[8][8]mes "That's so weird.. I thought Grandfather said that he'd be at home all day today...";
861[8]}
862[8]else if (KielHyreQuest == 20) {
863[8][8]mes "[Elly]";
864[8][8]mes "Hmm...?";
865[8][8]mes "What's this, a letter for me?";
866[8][8]next;
867[8][8]mes "^3355FFElly opened the envelope and started reading the letter.^000000";
868[8][8]next;
869[8][8]mes "^333333Dearest Elly, I have something to discuss with my son Kiehl, so I am leaving to meet with him If you don't hear from me after 7 days after I've written this letter, then you must escape the academy as soon as possible, and retrieve something inside our cottage's study If you have a friend you can trust, please ask him to follow my traces in the cottage. I might be in danger, and in dire need of rescue Elly, don't trust anyone in the academy, even your classmates, since they may be influenced by Kiehl Be careful, and I love you --Grandpa^000000";
870[8][8]next;
871[8][8]cutin "kh_elly03",2;
872[8][8]mes "[Elly]";
873[8][8]mes "What? Oh no, it's been ten days since he wrote this letter! Ah, does this mean that he's in danger?!";
874[8][8]mes "Oh no, what should I do?";
875[8][8]delitem 7490,1; //Letter_to_Elly
876[8][8]set KielHyreQuest,22;
877[8]}
878[8]else if (KielHyreQuest == 22) {
879[8][8]cutin "kh_elly03",2;
880[8][8]mes "[Elly]";
881[8][8]mes "..... ........ ............";
882[8][8]next;
883[8][8]switch(select("About your grandpa:Tell me about Kiehl:What's with this academy?")) {
884[8][8]case 1:
885[8][8][8]mes "[Elly]";
886[8][8][8]mes "Oh! My grandfather is Kiel Hyre, founder and CEO of the Kiel Hyre foundation. He looks strict and cold hearted, but he's actually very nice!";
887[8][8][8]next;
888[8][8][8]mes "[Elly]";
889[8][8][8]mes "We're not related by blood, but he's taken care of me ever since I lost my parents. Oh, Grandapa, where are you?";
890[8][8][8]mes "I'm getting so worried!";
891[8][8][8]break;
892[8][8]case 2:
893[8][8][8]mes "[Elly]";
894[8][8][8]mes "Kiehl? That's my grandfather's son.. I don't know him that well, and only saw him once at an academy event.";
895[8][8][8]next;
896[8][8][8]mes "[Elly]";
897[8][8][8]mes "Mmm, he's a good looking guy with pale skin, silver hair, and this cold, fierce stare. A lot of my classmates worship Kiehl because he's also a business genius~";
898[8][8][8]next;
899[8][8][8]mes "[Elly]";
900[8][8][8]mes "It's weird though.. I have no idea why my grandpa and Kiehl don't get along. They're both really good at what they do...";
901[8][8][8]break;
902[8][8]case 3:
903[8][8][8]mes "[Elly]";
904[8][8][8]mes "Well, I know the security here is really tight, but that's because everything here is so luxurious and expensive, you know~";
905[8][8][8]next;
906[8][8][8]mes "[Elly]";
907[8][8][8]mes "We also have a very special curriculum where you learn more of what you want. Personally, I want to become a great career woman like ^0000FFMs. Allysia^000000. Heh heh~";
908[8][8][8]next;
909[8][8][8]mes "[Elly]";
910[8][8][8]mes "This place certainly isn't like other schools.";
911[8][8][8]//mes "You already know that only Yeah, everything is made to fit each of the student's needs.";
912[8][8][8]next;
913[8][8][8]mes "[Elly]";
914[8][8][8]mes "Recently, though?";
915[8][8][8]mes "Some really weird stuff has been happening. All of my classmates are afraid of going out alone by themselves.";
916[8][8][8]next;
917[8][8][8]cutin "kh_elly02",2;
918[8][8][8]mes "[Elly]";
919[8][8][8]mes "But I'll be okay!";
920[8][8][8]mes "You'll be there to rescue me from danger, right, "+strcharinfo(0)+"?";
921[8][8][8]next;
922[8][8][8]switch(select("Who is Ms. Allysia?:Strange incidents?")) {
923[8][8][8]case 1:
924[8][8][8][8]mes "[Elly]";
925[8][8][8][8]mes "Oh, Ms. Allysia is Grandfather's secretary~ She's so beautiful, and my grandfather really trusts her with everything!";
926[8][8][8][8]break;
927[8][8][8]case 2:
928[8][8][8][8]cutin "kh_elly04",2;
929[8][8][8][8]mes "[Elly]";
930[8][8][8][8]mes "Well, "+strcharinfo(0)+".. I'm not supposed to tell anyone outside of the school, but I can trust you! You see.. We're haunted by a ghost!";
931[8][8][8][8]next;
932[8][8][8][8]mes "[Elly]";
933[8][8][8][8]mes "I know it sounds crazy, but this ghost wanders the campus, and curses its victims, making them so cold and lifeless It happened to my roommate, Mayo. It's like she's a statue...";
934[8][8][8][8]next;
935[8][8][8][8]mes "[Elly]";
936[8][8][8][8]mes "I snuck into the medical office to see her, and she.. She couldn't do anything!";
937[8][8][8][8]mes "What would happen if the ghost decided to curse me?!";
938[8][8][8][8]next;
939[8][8][8][8]cutin "kh_elly02",2;
940[8][8][8][8]mes "[Elly]";
941[8][8][8][8]mes "You know what...?";
942[8][8][8][8]mes "If I ever got cursed by that ghost, just yell ''^FF0000Wake up, Elly!^000000'' That'll wake me up for sure!";
943[8][8][8][8]set KielHyreQuest,24;
944[8][8][8][8]break;
945[8][8][8]}
946[8][8]}
947[8]}
948[8]else if (KielHyreQuest >= 24 && KielHyreQuest <= 26) {
949[8][8]cutin "kh_elly04",2;
950[8][8]mes "[Elly]";
951[8][8]mes "Argh, I'm in a fix!";
952[8][8]mes "I have to finish my homework before it's due!";
953[8][8]mes "Yeah, I've got to go see Mrs. Lecollane now.";
954[8][8]next;
955[8][8]mes "[Elly]";
956[8][8]mes "Say, "+strcharinfo(0)+", if it's okay, would you please go find what my grandpa left for me in the ^FF0000cottage study^000000? You're the only one I can trust!";
957[8][8]next;
958[8][8]mes "[Elly]";
959[8][8]mes "Anyway, I'll see you later in the evening! Please come by my ^FF0000dorm room^000000. Um, the dorms are in the church just behind the academy, okay?";
960[8][8]next;
961[8][8]mes "[Elly]";
962[8][8]mes "My room is in the back, and it's on the ^FF0000second floor^000000 ^FF0000on the left side^000000. Please use a ladder to come up, okay?";
963[8][8]mes "I'll leave my window open for you, so just come, okay?";
964[8][8]next;
965[8][8]mes "[Elly]";
966[8][8]mes "Hurry, hurry, the teacher's coming!";
967[8][8]set KielHyreQuest,26;
968[8]}
969[8]else {
970[8][8]mes "[Elly]";
971[8][8]mes "Hurry, hurry, the teacher's coming!";
972[8]}
973[8]close2;
974[8]cutin "",255;
975[8]end;
976}
977
978//----------------------------------------------------------------------------
979// Elly's Window
980//----------------------------------------------------------------------------
981yuno_fild08,69,185,0[8]script[8]Window#kh[8]111,{
982[8]if (KielHyreQuest < 29) {
983[8][8]mes "^3355FFYou can see a curtain decorated with a cute design through the window of this room, which is probably used by a young girl.^000000";
984[8][8]close;
985[8]}
986[8]else if (KielHyreQuest== 29) {
987[8][8]mes "^3355FFThis must be Elly's room It doesn't sound like anyone is inside, so she probably isn't back yet. For now, you should try to find what her grandfather left for her in their cottage's Study.^000000";
988[8][8]close;
989[8]}
990[8]else if ((KielHyreQuest >= 30) && (KielHyreQuest <= 45)) {
991[8][8]mes "^3355FFThis slightly open window must lead into Elly's room Although she asked you to find a ladder to enter her window, you probably won't find one. You might be able to climb up that water pipe...^000000";
992[8][8]next;
993[8][8]switch(select("Climb Water Pipe:Find Another Way")) {
994[8][8]case 1:
995[8][8][8]if (rand(1,3) == 2) {
996[8][8][8][8]mes "^3355FFYou climbed up the water pipe, and sneaked into Elly's room successfully.^000000";
997[8][8][8][8]close2;
998[8][8][8][8]warp "kh_school",185,185;
999[8][8][8][8]end;
1000[8][8][8]}
1001[8][8][8]else {
1002[8][8][8][8]mes "^3355FFYou tried to climb the water pipe, but you ended up falling and bumping your head.^000000";
1003[8][8][8][8]percentheal -10,0;
1004[8][8][8][8]close;
1005[8][8][8]}
1006[8][8]case 2:
1007[8][8][8]mes "^3355FFThere must be some other way to get into Elly's room, aside from climbing up this water pipe...^000000";
1008[8][8][8]close;
1009
1010[8][8]}
1011[8]}
1012[8]else {
1013[8][8]mes "^3355FFYou can't go up into that open window.^000000";
1014[8][8]close;
1015[8]}
1016}
1017
1018//----------------------------------------------------------------------------
1019// Elly (In Dormitory)
1020//----------------------------------------------------------------------------
1021kh_school,178,180,4[8]script[8]Elly[8]895,{
1022[8]if (checkweight(908,200) == 0) {
1023[8][8]mes "^3355FFJust a second.. You're carrying too many items with you right now, so you'll need to free up more Inventory space first...^000000";
1024[8][8]close;
1025[8]}
1026[8]if (KielHyreQuest < 30) {
1027[8][8]mes "[Elly]";
1028[8][8]mes "Who the heck are you?";
1029[8][8]mes "Y-you're not supposed to be able to get inside!";
1030[8][8]mes "Get out of here right now!";
1031[8][8]close2;
1032[8][8]percentheal -99,0;
1033[8][8]warp "yuno_fild08",100,100;
1034[8][8]end;
1035[8]}
1036[8]else if (KielHyreQuest < 32) {
1037[8][8]mes "[Elly]";
1038[8][8]mes "..... ........ ............";
1039[8][8]close;
1040[8]}
1041[8]else if (KielHyreQuest == 32) {
1042[8][8]mes "[Elly]";
1043[8][8]mes "..... ........ ............";
1044[8][8]next;
1045[8][8]mes "^3355FFElly seems to have been cursed, and is completely still and lifeless. You've got to try something, but what?^000000";
1046[8][8]next;
1047[8][8]switch(select("Wake her up by shaking.:Wake her up by yelling.:Ignore")) {
1048[8][8]case 1:
1049[8][8][8]mes "^3355FFYou grab Elly by the shoulders, and try to get her to respond by violently shaking her entire body.^000000";
1050[8][8][8]next;
1051[8][8][8]mes "["+strcharinfo(0)+"]";
1052[8][8][8]mes "Elly? Elly! No!";
1053[8][8][8]mes "Come back to us!";
1054[8][8][8]next;
1055[8][8][8]mes "^3355FFElly's not responding...^000000";
1056[8][8][8]close;
1057[8][8]case 2:
1058[8][8][8]input .@KHInput$;
1059[8][8][8]if (.@KHInput$ == "Wake up, Elly!") {
1060[8][8][8][8]mes "[Elly]";
1061[8][8][8][8]mes ".............";
1062[8][8][8][8]next;
1063[8][8][8][8]mes "^3355FFAs soon as you said those words, a ^000000Small Golden Key^3355FF and a ^000000Button^3355FF drop from Elly's hands. It looks like she woke up, but only for an instant.^000000";
1064[8][8][8][8]getitem 7493,1; //Golden_Key
1065[8][8][8][8]getitem 7494,1; //Kiel_Button
1066[8][8][8][8]set KielHyreQuest,34;
1067[8][8][8][8]close;
1068[8][8][8]}
1069[8][8][8]else {
1070[8][8][8][8]mes "[Elly]";
1071[8][8][8][8]mes "..... ........ ............";
1072[8][8][8][8]next;
1073[8][8][8][8]mes "^3355FFElly's not responding...^000000";
1074[8][8][8][8]close;
1075[8][8][8]}
1076[8][8]case 3:
1077[8][8][8]mes "^3355FFAlright.. But sooner or later, you should try to break the curse placed on Elly.^000000";
1078[8][8][8]close;
1079[8][8]}
1080[8]}
1081[8]else if (KielHyreQuest == 34) {
1082[8][8]if (countitem(7491) < 1) {
1083[8][8][8]//Missing text, needs another run through.
1084[8][8][8]mes "^3355FFMaybe the golden key^000000 unlocks something in the^000000 Cottage. Let's take another look.^000000";
1085[8][8][8]close;
1086[8][8]}
1087[8][8]else {
1088[8][8][8]mes "^3355FFIt looks like Elly's Golden Key might fit into the keyhole on the Grey Box you found inside Kiel Hyre's Cottage.^000000";
1089[8][8][8]next;
1090[8][8][8]mes "^3355FFYou successfully open the Grey Box with the Golden Key, and find a Blue Keycard, along with a folded note, inside the Grey Box. You quickly read the note's contents...^000000";
1091[8][8][8]next;
1092[8][8][8]mes "Dearest Elly, Kiehl finally broke the taboo, and tried to transform you guys into something horrible ^FFFFFF_^000000 By the time you read this, my life is probably in danger Whether I live depends on you ^FFFFFF_^000000 You'll already learn if you meet Puppet, but I want to tell you myself: you're not human You'll learn the details if you enter the factory by using the entrance near the grave next to the church. Then, I want you to find Allysia inside the factory's secret room I've registered your name in her security system, so don't worry. Hopefully, Allysia will then come to save me.. ^FFFFFF_^000000 Sorry about that, Grandpa";
1093[8][8][8]getitem 7495,1; //Blue_Key_Card
1094[8][8][8]delitem 7491,1; //Iron_Box
1095[8][8][8]set KielHyreQuest,36;
1096[8][8][8]close;
1097[8][8]}
1098[8]}
1099[8]else if (KielHyreQuest >= 36) {
1100[8][8]mes "^3355FFThis is where you discovered the note locked inside the Grey Box The following message was written in the note by Elly's grandfather, Kiel Hyre.^000000";
1101[8][8]next;
1102[8][8]mes "Dearest Elly, Kiehl finally broke the taboo, and tried to transform you guys into something horrible ^FFFFFF_^000000 By the time you read this, my life is probably in danger Whether I live depends on you ^FFFFFF_^000000 You'll already learn if you meet Puppet, but I want to tell you myself: you're not human You'll learn the details if you enter the factory by using the entrance near the grave next to the church. Then, I want you to find Allysia inside the factory's secret room I've registered your name in her security system, so don't worry. Hopefully, Allysia will then come to save me.. ^FFFFFF_^000000 Sorry about that, Grandpa";
1103[8][8]close;
1104[8]}
1105}
1106
1107//----------------------------------------------------------------------------
1108// Cookie Basket
1109//----------------------------------------------------------------------------
1110kh_school,175,176,0[8]script[8]Cookie Basket#kh[8]111,{
1111[8]if (KielHyreQuest < 30) {
1112[8][8]mes "^3355FFIt's a cookie basket filled with delicious cookies.^000000";
1113[8][8]close;
1114[8]}
1115[8]else if (KielHyreQuest == 30) {
1116[8][8]mes "^3355FFThis must be Elly's cookie basket There appears to be a folded note wedged between the cookies.^000000";
1117[8][8]next;
1118[8][8]switch(select("Read Note:Ignore")) {
1119[8][8]case 1:
1120[8][8][8]mes ""+strcharinfo(0)+", help!";
1121[8][8][8]mes "There's this guy dressed in black who's walking around, and casting this weird spell!";
1122[8][8][8]mes "He's the one that's been making people cold and lifeless as puppets! I'm getting scared!";
1123[8][8][8]mes "^FFFFFF_^000000 I hope you get this note.. He ran after me, but I locked myself in my room. I'm going to leave my window open so that you can still find me. I hope he doesn't cast his curse on me!";
1124[8][8][8]set KielHyreQuest,32;
1125[8][8][8]close;
1126[8][8]case 2:
1127[8][8][8]mes "^3355FFThat note probably wasn't written just for you, anyway.^000000";
1128[8][8][8]close;
1129[8][8]}
1130[8]}
1131[8]else if (KielHyreQuest < 108) {
1132[8][8]mes "^3355FFThese cookies aren't stale yet, but they're no longer warm. If they're not at room temperature, then they're a little cold.^000000";
1133[8][8]close;
1134[8]}
1135[8]else if (KielHyreQuest == 108) {
1136[8][8]mes "^3355FFAs you stare at the cookie basket, the wind from the window jostles it, revealing a letter that was placed underneath It was probably written by Elly for you to read.^000000";
1137[8][8]next;
1138[8][8]mes "^333333Dearest "+strcharinfo(0)+", My teachers usually yell at me since I make so many mistakes, but today Mrs. Lecollane gave me praise for my yummy cookies!";
1139[8][8]mes "It's all thanks to you, my friend I'm very happy we've met: you've taught me that there are good people in the world And I know Grandpa will like you, though, I don't know where he could be.. Someday, I hope to become as nice a person as you are Let's keep in touch and be really good friends, okay?";
1140[8][8]mes " Yours, Elly^000000";
1141[8][8]next;
1142[8][8]mes "^3355FFIt feels like you can still sense Elly's warmth and kindness from her cookie basket. You picked out a cookie, and put it in your mouth. It was deliciously bittersweet.";
1143[8][8]set KielHyreQuest,109;
1144[8][8]next;
1145[8][8]input .@input$;
1146[8][8]mes "["+strcharinfo(0)+"]";
1147[8][8]mes ""+.@input$+" It's time to go back. I can't stay here much longer.";
1148[8][8]close2;
1149[8][8]warp "yuno_fild08",69,183;
1150[8][8]end;
1151[8]}
1152[8]else {
1153[8][8]mes "^3355FFAll the cookies in this basket are stale! Well, it shouldn't come as a surprise It's been a long time since they were baked.^000000";
1154[8][8]close;
1155[8]}
1156[8]end;
1157}
1158
1159//----------------------------------------------------------------------------
1160// Elly's Window (In Dormitory)
1161//----------------------------------------------------------------------------
1162kh_school,188,185,0[8]script[8]Window#kh2[8]111,{
1163[8]warp "yuno_fild08",69,183;
1164[8]end;
1165}
1166
1167//----------------------------------------------------------------------------
1168// Grave/Kiel Hyre dungeon entry
1169//----------------------------------------------------------------------------
1170yuno_fild08,71,170,0[8]script[8]Grave#kh[8]111,{
1171[8]if (KielHyreQuest < 36) {
1172[8][8]mes "^3355FFIt's just a grave It might be important to you later, but now it's not really all that helpful to you.^000000";
1173[8][8]close;
1174[8]}
1175[8]else if (KielHyreQuest == 36) {
1176[8][8]if (countitem(7492) < 1) {
1177[8][8][8]mes "^3355FFIt's just a grave It might be important to you later, but now it's not really all that helpful to you.^000000";
1178[8][8][8]close;
1179[8][8]}
1180[8][8]else {
1181[8][8][8]mes "^3355FFThere's a secret door near this grave. It looks like there's some kind of slot and a number pad installed on the door.^000000";
1182[8][8][8]next;
1183[8][8][8]mes "^3355FFWhat should you insert into the slot?^000000";
1184[8][8][8]next;
1185[8][8][8]input .@KHInput$;
1186[8][8][8]if (.@KHInput$ == "Yellow Keycard") {
1187[8][8][8][8]mes "^3355FFAn electronic confirmation chime sounds once you insert the Yellow Keycard, followed by an automated voice that asks:^000000";
1188[8][8][8][8]next;
1189[8][8][8][8]mes "[Security System]";
1190[8][8][8][8]mes "Please enter the password.";
1191[8][8][8][8]next;
1192[8][8][8][8]input .@KHInput$;
1193[8][8][8][8]next;
1194[8][8][8][8]if (.@KHInput$ == "4772961") {
1195[8][8][8][8][8]mes "[Security System]";
1196[8][8][8][8][8]mes "Password confirmed Welcome, Kiel Hyre.";
1197[8][8][8][8][8]next;
1198[8][8][8][8][8]mes "^3355FFYou hear another pleasant beep, and a secret path opens.^000000";
1199[8][8][8][8][8]set KielHyreQuest,38;
1200[8][8][8][8][8]close;
1201[8][8][8][8]}
1202[8][8][8][8]else {
1203[8][8][8][8][8]mes "[Security System]";
1204[8][8][8][8][8]mes "Incorrect password Please try again.";
1205[8][8][8][8][8]close;
1206[8][8][8][8]}
1207[8][8][8]}
1208[8][8][8]else {
1209[8][8][8][8]mes "^3355FFWhatever you're trying to insert into the slot isn't working at all...^000000";
1210[8][8][8][8]close;
1211[8][8][8]}
1212[8][8]}
1213[8]}
1214[8]else if ((KielHyreQuest >= 38) && (KielHyreQuest < 106)) {
1215[8][8]mes "^3355FFThe door to the factory is wide open.^000000";
1216[8][8]next;
1217[8][8]switch(select("Enter:Cancel")) {
1218[8][8]case 1:
1219[8][8][8]warp "kh_dun01",3,230;
1220[8][8][8]end;
1221[8][8]case 2:
1222[8][8][8]mes "..... ........ ............";
1223[8][8][8]close;
1224[8][8]}
1225[8]}
1226
1227[8]else if (KielHyreQuest >= 106) {
1228[8][8]if (countitem(7509) < 1) {
1229[8][8][8]mes "^3355FFThe secret entrance has now been sealed.^000000";
1230[8][8][8]close;
1231[8][8]}
1232[8][8]else {
1233[8][8][8]mes "As you aproach the grave, it begins to emit flashes of light.^000000";
1234[8][8][8]next;
1235[8][8][8]switch(select("Use the ^0000FFLuxurious Keycard^000000:Ignore")) {
1236[8][8][8]case 1:
1237[8][8][8][8]mes "Once you use the Luxurious Keycard, a secret path opens^000000";
1238[8][8][8][8]next;
1239[8][8][8][8]switch(select("Enter:cancel")) {
1240[8][8][8][8]case 1:
1241[8][8][8][8][8]warp "kh_dun01",3,230;
1242[8][8][8][8][8]end;
1243[8][8][8][8]case 2:
1244[8][8][8][8][8]mes "..... ........ ............";
1245[8][8][8][8][8]close;
1246[8][8][8][8]}
1247[8][8][8]case 2:
1248[8][8][8][8]mes "..... ........ ............";
1249[8][8][8][8]close;
1250[8][8][8]}
1251[8][8]}
1252[8]}
1253}
1254
1255//============================================================================
1256//Kiel Hyre Cottage NPCs
1257//============================================================================
1258
1259//----------------------------------------------------------------------------
1260// Cottage Keeper
1261//----------------------------------------------------------------------------
1262yuno_fild02,93,210,4[8]script[8]Cottage Keeper#kh[8]85,{
1263[8]if ((KielHyreQuest < 12) || (KielHyreQuest > 12)) {
1264[8][8]mes "[Cottage Keeper]";
1265[8][8]mes "This is private property, so please do not enter this area unless you're authorized.";
1266[8][8]close;
1267[8]}
1268[8]else if (KielHyreQuest == 12) {
1269[8][8]mes "[Cottage Keeper]";
1270[8][8]mes "This is private property, so please do not enter this area unless you're authorized.";
1271[8][8]next;
1272[8][8]switch(select("I have an appointment with Kiel Hyre.:Alright.")) {
1273[8][8]case 1:
1274[8][8][8]mes "[Cottage Keeper]";
1275[8][8][8]mes "You have an appointment with Master Kiel Hyre?";
1276[8][8][8]mes "Um, are you sure?";
1277[8][8][8]next;
1278[8][8][8]switch(select("Yes:No")) {
1279[8][8][8]case 1:
1280[8][8][8][8]mes "[Cottage Keeper]";
1281[8][8][8][8]mes "There must be some sort of mistake. Mister Hyre wouldn't have left if he was supposed to keep an appointment...";
1282[8][8][8][8]set KielHyreQuest,14;
1283[8][8][8][8]close;
1284[8][8][8]case 2:
1285[8][8][8][8]mes "[Cottage Keeper]";
1286[8][8][8][8]mes "Well unless you have an appointment, I don't think you'll be able to meet with Mister Hyre.";
1287[8][8][8][8]close;
1288[8][8][8]}
1289[8][8]case 2:
1290[8][8][8]mes "[Cottage Keeper]";
1291[8][8][8]mes "Goodbye.";
1292[8][8][8]close;
1293[8][8]}
1294[8]}
1295}
1296
1297//----------------------------------------------------------------------------
1298// Cottage Door (left)
1299//----------------------------------------------------------------------------
1300yuno_fild02,75,218,0[8]script[8]Door#kh2[8]111,{
1301[8]if (KielHyreQuest < 16) {
1302[8][8]mes "^3355FFThis door is locked If someone inside won't open it for you, then you'll need the right key to unlock it.";
1303[8][8]close;
1304[8]}
1305[8]if (KielHyreQuest == 16) {
1306[8][8]mes "^3355FFThis door is locked If someone inside won't open it for you, then you'll need the right key to unlock it.";
1307[8][8]next;
1308[8][8]switch(select("Unlock:Cancel")) {
1309[8][8]case 1:
1310[8][8][8]mes "^3355FFYou unlock the door with the key that Elly gave you, and as you push it open, a folded note dropped from top of the door. The following words are written on this crude note.";
1311[8][8][8]next;
1312[8][8][8]mes "6 Forward, 3 Left, 3 Forward, 4 Left";
1313[8][8][8]close2;
1314[8][8][8]set KielHyreQuest,18;
1315[8][8][8]warp "kh_vila",188,18;
1316[8][8][8]end;
1317[8][8]case 2:
1318[8][8][8]mes "..... ........ ............";
1319[8][8][8]close;
1320[8][8]}
1321[8]}
1322[8]else {
1323[8][8]mes "^3355FFThe door is open.^000000";
1324[8][8]next;
1325[8][8]switch(select("Enter:Cancel")) {
1326[8][8]case 1:
1327[8][8][8]warp "kh_vila",188,18;
1328[8][8][8]end;
1329[8][8]case 2:
1330[8][8][8]close;
1331[8][8]}
1332[8]}
1333}
1334
1335//----------------------------------------------------------------------------
1336// Cottage Door (Right)
1337//----------------------------------------------------------------------------
1338yuno_fild02,109,218,0[8]script[8]Door#kh1[8]111,{
1339[8]if (KielHyreQuest != 16) {
1340[8][8]mes "^3355FFThis door is locked If someone inside won't open it for you, then you'll need the right key to unlock it.";
1341[8][8]close;
1342[8]}
1343[8]if (KielHyreQuest == 16) {
1344[8][8]mes "^3355FFThis door is locked If someone inside won't open it for you, then you'll need the right key to unlock it.";
1345[8][8]next;
1346[8][8]switch(select("Open:Cancel")) {
1347[8][8]case 1:
1348[8][8][8]mes "^3355FFYou don't have the key that can unlock this door.^000000";
1349[8][8][8]close;
1350[8][8]case 2:
1351[8][8][8]mes "..... ........ ............";
1352[8][8][8]close;
1353[8][8]}
1354[8]}
1355}
1356
1357
1358//----------------------------------------------------------------------------
1359// Store room interior; Wall
1360//----------------------------------------------------------------------------
1361kh_vila,191,14,0[8]script[8]Wall#kh[8]139,1,1,{
1362[8]if (KielHyreQuest < 28) {
1363[8][8]mes "^3355FFIt's just a wall It's not particularly standing in your way.^000000";
1364[8][8]close;
1365[8]}
1366[8]if (KielHyreQuest >= 28) {
1367[8][8]mes "^3355FFThe wall is now open, revealing a secret path.^000000";
1368[8][8]next;
1369[8][8]switch(select("Enter:Cancel")) {
1370[8][8]case 1:
1371[8][8][8]warp "kh_vila",17,177;
1372[8][8][8]end;
1373[8][8]case 2:
1374[8][8][8]close;
1375[8][8]}
1376[8]}
1377}
1378
1379//----------------------------------------------------------------------------
1380// Store room interior; books
1381//----------------------------------------------------------------------------
1382kh_vila,184,20,0[8]script[8]Book#kh1::BookKHQ1[8]111,{
1383[8]if (KielHyreQuest != 26) {
1384[8][8]mes "^3355FFThis bookshelf is^000000 ^3355FFcrammed with many^000000 ^3355FFlarge, hardcover books^000000";
1385[8][8]close;
1386[8]}
1387[8]else if (KielHyreQuest == 26) {
1388[8][8]if (rand(1,10) == 8) {
1389[8][8][8]mes "^3355FFWithout thinking, you reach for a book from the bookshelf. As you pull it towards you, the wall slides opens open to reveal a secret path.^000000";
1390[8][8][8]set KielHyreQuest,28;
1391[8][8][8]specialeffect EF_READYPORTAL2,AREA,"Wall#kh";
1392[8][8][8]close;
1393[8][8]}
1394[8][8]else {
1395[8][8][8]mes "^3355FFThis bookshelf is crammed with many large, hardcover books.^000000";
1396[8][8][8]close;
1397[8][8]}
1398
1399[8]}
1400
1401}
1402kh_vila,181,20,0[8]duplicate(BookKHQ1)[8]Book#kh2[8]111
1403kh_vila,178,20,0[8]duplicate(BookKHQ1)[8]Book#kh3[8]111
1404kh_vila,175,19,0[8]duplicate(BookKHQ1)[8]Book#kh4[8]111
1405
1406//----------------------------------------------------------------------------
1407// Store room interior; Letter to Elly on the floor.
1408//----------------------------------------------------------------------------
1409kh_vila,179,11,0[8]script[8]Letter#kh[8]-1,1,1,{
1410OnTouch:
1411[8]if (KielHyreQuest == 18) {
1412[8][8]if (checkweight(7490,1) == 0) {
1413[8][8][8]mes "^3355FFJust a minute...!";
1414[8][8][8]mes "There's something on the floor here, but you can't pick it up since you're carrying too many items now.^000000";
1415[8][8][8]close;
1416[8][8]}
1417[8][8]mes "^3355FFYou've found a letter on the floor. Naturally, you pick it up, despite the fact that it's not addressed to you.^000000";
1418[8][8]getitem 7490,1; //Kyll_Hire_Letter
1419[8][8]set KielHyreQuest,20;
1420[8][8]close;
1421[8]}
1422[8]else{
1423[8][8]mes "^3355FFYou entered the room.^000000";
1424[8][8]close;
1425[8]}
1426[8]end;
1427}
1428
1429//----------------------------------------------------------------------------
1430// Cottage interior, kitchen; Box (Pet Food vending machine)
1431//----------------------------------------------------------------------------
1432kh_vila,16,175,0[8]script[8]Box#khp1[8]111,{
1433[8]mes "^FFFFFF##^000000*Tasty-Nutricious-Delicious* *Cute Pet Doof Vending Machine* The best food for your Cute Pets that is superior to the Pet Food you can buy in the market!";
1434[8]mes "^FFFFFF_^000000 Price: 1,100 zeny (cheap!)";
1435[8]next;
1436[8]switch(select("Buy!:Cancel")) {
1437[8]case 1:
1438[8][8]if (Zeny < 1100) {
1439[8][8][8]mes "^3355FFUnfortunately, you don't have enough zeny to insert into the vending machine.^000000";
1440[8][8][8]close;
1441[8][8]}
1442[8][8]else {
1443[8][8][8]mes "^3355FFOh no...!^000000 ^3355FF1,100 zeny seems kind of expensive for Pet Food, but if it's better than the normal stuff, it might be worth a shot.^000000";
1444[8][8][8]next;
1445[8][8][8]mes "^3355FFOh no...!";
1446[8][8][8]mes "There's nothing special about it at all! It's just normal Pet Food!";
1447[8][8][8]set Zeny, Zeny-1100;
1448[8][8][8]getitem 537,1;[8]//Pet_Food
1449[8][8][8]close;
1450[8][8]}
1451[8]case 2:
1452[8][8]mes "^3355FFThis vending machine seems really shady and suspicious for some reason.^000000";
1453[8][8]close;
1454[8]}
1455}
1456
1457//----------------------------------------------------------------------------
1458// Cottage interior, kitchen; Apple Box (Useless?)
1459//----------------------------------------------------------------------------
1460kh_vila,30,184,0[8]script[8]Apple Box#khp1[8]111,{
1461[8]mes "^3355FFYou find a box filled with ripe, delicious apples.^000000";
1462[8]next;
1463[8]switch(select("Take the box:Leave it")) {
1464[8]case 1:
1465[8][8]mes "^3355FFNo...! Wait!";
1466[8][8]mes "Something's wrong!";
1467[8][8]mes "Whatever you do, don't take this box!^000000";
1468[8][8]next;
1469[8][8]mes "^3355FFAnd so, your inner voice, your Jungian shadow if you will, prevented you from taking the box.^000000";
1470[8][8]close;
1471[8]case 2:
1472[8][8]mes "^3355FFSomething is wrong with this box of apples.^000000";
1473[8][8]close;
1474[8]}
1475}
1476
1477//----------------------------------------------------------------------------
1478// Cottage interior, dining room; Map
1479//----------------------------------------------------------------------------
1480kh_vila,44,126,0[8]script[8]Map#khp1[8]111,{
1481[8]if ((KHCottagePoem1 < 2) && (KielHyreQuest < 30)) {
1482[8][8]mes "^3355FFA magnificent world map, detailing the Rune-Midgarts Kingdom, Schwaltzvalt Republic, as well as another country to the west whose name is unfamiliar to you, is pasted to this wall.^000000";
1483[8][8]next;
1484[8][8]mes "^3355FFAs you examine the world map more closely, you find that something has been hidden underneath it.^000000";
1485[8][8]switch(select("Ignore:Examine")) {
1486[8][8]case 1:
1487[8][8][8]mes "^3355FFWhatever might be hidden beneath this map probably isn't important enough for you to investigate.^000000";
1488[8][8][8]close;
1489[8][8]case 2:
1490[8][8][8]mes "^3355FFUnfortunately, you can't see what's under the map since it's pasted to the wall You'll need to find some way to loosen the glue without damaging the map...^000000";
1491[8][8][8]set KHCottagePoem1,1;
1492[8][8][8]close;
1493[8][8]}
1494[8]}
1495[8]else if ((KHCottagePoem1 == 2) && (KielHyreQuest < 30)) {
1496[8][8]mes "^3355FFYou bring the pot of steaming hot liquid close to the world map As the paste on the wall moistens, the map slowly begins to peel back.^000000";
1497[8][8]next;
1498[8][8]mes "^3355FFThe peeling map reveals a folded piece of paper hidden beneath it. You take the paper, and smooth the map out to adhere it to the wall once again. A message is written on the piece of paper.^000000";
1499[8][8]next;
1500[8][8]mes "^0000FFShe will be in a place as cold as the poles When the well is dried and the earth is cracked, the path to her heart, a heart as transparent as crystal, will be open.^000000";
1501[8][8]next;
1502[8][8]mes "^3355FFI'll have to fight four snakes with four swords to find her. The first sword is love. The second sword is despair. The third sword is rage. The fourth sword is hope. To find her, to rescue her.^000000";
1503[8][8]next;
1504[8][8]mes "^3355FF.............................. The deeper meaning of this poem, if it even exists, eludes you.^000000";
1505[8][8]set KHCottagePoem1,3;
1506[8][8]close;
1507[8]}
1508[8]else if ((KHCottagePoem1 > 2) || (KielHyreQuest >= 30)) {
1509[8][8]mes "^3355FFThis is were you found the paper on which the poem was written. Perhaps it would be a good idea to refresh your memory and read that poem again.^000000";
1510[8][8]next;
1511[8][8]switch(select("Read:Cancel")) {
1512[8][8]case 1:
1513[8][8][8]mes "^0000FFShe will be in a place as cold as the poles When the well is dried and the earth is cracked, the path to her heart, a heart as transparent as crystal, will be open.^000000";
1514[8][8][8]next;
1515[8][8][8]mes "^3355FFI'll have to fight four snakes with four swords to find her. The first sword is love. The second sword is despair. The third sword is rage. The fourth sword is hope. To find her, to rescue her.^000000";
1516[8][8][8]next;
1517[8][8][8]mes "^3355FF.............................. The deeper meaning of this poem, if it even exists, eludes you.^000000";
1518[8][8][8]close;
1519[8][8]case 2:
1520[8][8][8]mes "^3355FFThere's no need for you to reread this poem You're a freakin' genius!^000000";
1521[8][8][8]close;
1522[8][8]}
1523[8]}
1524}
1525
1526//----------------------------------------------------------------------------
1527// Cottage interior, kitchen; Pot
1528//----------------------------------------------------------------------------
1529kh_vila,33,184,0[8]script[8]Pot#khp1[8]111,{
1530[8]if (KHCottagePoem1 < 1) {
1531[8][8]mes "^3355FFYou've found a pot filled with boiling, steaming liquid.^000000";
1532[8][8]close;
1533[8]}
1534[8]else if (KHCottagePoem1 == 1) {
1535[8][8]mes "^3355FFYou've found a pot filled with boiling, steaming liquid Steam... That you could use to loosen the glue on the map... You're a genius!^000000";
1536[8][8]next;
1537[8][8]switch(select("Try it.:That? That won't work!")) {
1538[8][8]case 1:
1539[8][8][8]mes "^3355FFYou picked up the boiling pot, but slightly burned your hands by accident.";
1540[8][8][8]set KHCottagePoem1,2;
1541[8][8][8]close;
1542
1543[8][8]case 2:
1544[8][8][8]mes "^3355FFNo, no.. We'd better try something else.^000000";
1545[8][8][8]close;
1546[8][8]}
1547[8]}
1548[8]else if ((KHCottagePoem1 > 1) || (KielHyreQuest >= 30)){
1549[8][8]mes "^3355FFThis is where you picked up the pot filled with steaming hot liquid.^000000";
1550[8][8]close;
1551[8]}
1552}
1553
1554//----------------------------------------------------------------------------
1555// Cottage interior, fire place; Calabash
1556//----------------------------------------------------------------------------
1557kh_vila,14,55,0[8]script[8]Calabash#khp1[8]111,{
1558[8]if ((countitem(7329) < 1) && (countitem(7516) < 1) && (countitem(7491) < 1) && (KielHyreQuest < 38)) {
1559[8][8]if (checkweight(7329,1) == 0) {
1560[8][8][8]mes "^3355FFThat's a nice looking calabash. You might even get something from it.. But first you better get rid of all your extra weight And by weight, I mean items.^000000";
1561[8][8][8]close;
1562[8][8]}
1563[8][8]mes "^3355FFIt's an expensive looking calabash-- or in less fancy words, a ''gourd.'' Would do you do?^000000";
1564[8][8]next;
1565[8][8]switch(select("Break Open Calabash:Look Inside Calabash:Ignore")) {
1566[8][8]case 1:
1567[8][8][8]mes "^3355FFYou can't break open that calabash.. You're a hero, not a vandal Now, if this act of vandalism can be considered an act of heroism, then it'd be okay.^000000";
1568[8][8][8]close;
1569[8][8]case 2:
1570[8][8][8]mes "^3355FFYou tenderly place your hand into the calabash, and gently feel around with your fingers until you retrieve an Old Bronze Key.^000000";
1571[8][8][8]getitem 7329,1; //Old_Bronze_Key
1572[8][8][8]close;
1573[8][8]case 3:
1574[8][8][8]mes "^3355FFThere's probably nothing inside anyway.^000000";
1575[8][8][8]close;
1576[8][8]}
1577[8]}
1578[8]else {
1579[8][8]mes "^3355FFThis is the expensive looking calabash from which you've obtained the Old Bronze Key It's useless to you now.^000000";
1580[8][8]close;
1581[8]}
1582}
1583
1584//----------------------------------------------------------------------------
1585// Cottage interior, garden; Pool
1586//----------------------------------------------------------------------------
1587kh_vila,39,41,0[8]script[8]Pool#khp1[8]111,{
1588[8]if ((KHCottagePoem1 < 3) && (KielHyreQuest < 30)) {
1589[8][8]mes "^3355FFYou find a fancy pool filled with fresh water.^000000";
1590[8][8]close;
1591[8]}
1592[8]else if ((KHCottagePoem1 == 3) && (KielHyreQuest < 30)) {
1593[8][8]mes "^3355FFYou find a fancy pool filled with fresh water, along with a conscpicuous lion statue with two handles.^000000";
1594[8][8]next;
1595[8][8]switch(select("Pull Handles:Cancel")) {
1596[8][8]case 1:
1597[8][8][8]mes "Which handle would you like to pull first?";
1598[8][8][8]next;
1599[8][8][8]switch(select("Right Handle:Left Handle")) {
1600[8][8][8]case 1:
1601[8][8][8][8]mes "^3355FFYou pull the right handle, causing water to gush out of the lion's mouth. It looks pretty cool~^000000";
1602[8][8][8][8]close;
1603[8][8][8]case 2:
1604[8][8][8][8]mes "^3355FFAs soon as you pull the left handle, the water in the pool drains away. The pool empties, and you can see a layer of green moss covering the pool's bottom.^000000";
1605[8][8][8][8]next;
1606[8][8][8][8]switch(select("Ignore:Investigate")) {
1607[8][8][8][8]case 1:
1608[8][8][8][8][8]mes "^3355FFYou decide that a pool is little more than a hole without any water to fill it.^000000";
1609[8][8][8][8][8]close;
1610[8][8][8][8]case 2:
1611[8][8][8][8][8]mes "^3355FFAs you look through the wet moss at the bottom of the pool, you stumble upon a small, peculiar button.^000000";
1612[8][8][8][8][8]next;
1613[8][8][8][8][8]switch(select("Press button:Don't Press Button")) {
1614[8][8][8][8][8]case 1:
1615[8][8][8][8][8][8]mes "^3355FFYou press the button, which seems to trigger a strange sound coming from the stairs at the hallway.^000000";
1616[8][8][8][8][8][8]set KHCottagePoem1,4;
1617[8][8][8][8][8][8]close;
1618[8][8][8][8][8]case 2:
1619[8][8][8][8][8][8]mes "^3355FFYou'd better not push this button. Your enemies must have hidden it carefully for you to find: it must be some sort of nefarious trap.^000000";
1620[8][8][8][8][8][8]close;
1621[8][8][8][8][8]}
1622[8][8][8][8]}
1623[8][8][8]}
1624[8][8]case 2:
1625[8][8][8]mes "^3355FFYou decided not to pull any handles.^000000";
1626[8][8][8]close;
1627[8][8]}
1628[8]}
1629[8]else if ((KHCottagePoem1 > 3) || (KielHyreQuest >= 30)) {
1630[8][8]mes "^3355FFThis is where you pressed the small button that caused some strange sound to come from the stairs near the hallway.";
1631[8][8]close;
1632[8]}
1633}
1634
1635//----------------------------------------------------------------------------
1636// Cottage interior, upstairs; Vicious Dog
1637//----------------------------------------------------------------------------
1638kh_vila,181,178,4[8]script[8]Vicious Dog#khp1[8]81,7,3,{
1639OnTouch:
1640[8]mes "*Grrr~*";
1641[8]next;
1642[8]mes "^3355FFAn extremely vicious looking dog is glaring at you. Can you really pass by this creature without getting hurt?^000000";
1643[8]next;
1644[8]switch(select("March forward:Run away")) {
1645[8]case 1:
1646[8][8]if (countitem(537) >= 1) {
1647[8][8][8]mes "^3355FFWait! Perhaps you can use food to soothe the savage beast. Why don't you feed it some of your Pet Food and see what happens?^000000";
1648[8][8][8]next;
1649[8][8][8]switch(select("Give Pet Food:It won't work!")) {
1650[8][8][8]case 1:
1651[8][8][8][8]mes "^3355FFYou gingerly throw the Pet Food towards the dog Its tail shakes violently as it devours the food. You'd better pass this dog now while you have the chance!^000000";
1652[8][8][8][8]delitem 537,1; //Pet_Food
1653[8][8][8][8]close2;
1654[8][8][8][8]warp "kh_vila",173,182;
1655[8][8][8][8]end;
1656[8][8][8]case 2:
1657[8][8][8][8]break;
1658[8][8][8]}
1659[8][8]}
1660[8][8]mes "^3355FFYou slowly approach the dog, but it won't stop snarling at you You try to run past the dog, but it blocks all of your moves. What to do?^000000";
1661[8][8]next;
1662[8][8]mes "[Vicious Dog]";
1663[8][8]mes "BOW WOW!";
1664[8][8]mes "BOW WOW!";
1665[8][8]mes "BOW WOW WOW!";
1666[8][8]next;
1667[8][8]mes "^3355FFThe dog chased you downstairs like the suckah chump you are.^000000";
1668[8][8]close2;
1669[8][8]warp "kh_vila",126,70;
1670[8][8]end;
1671[8]case 2:
1672[8][8]mes "^3355FFLet's get out of here!^000000";
1673[8][8]close2;
1674[8][8]warp "kh_vila",126,70;
1675[8][8]end;
1676[8]}
1677}
1678
1679//----------------------------------------------------------------------------
1680// Cottage interior, upstairs; Drawer, first room nightstand
1681//----------------------------------------------------------------------------
1682kh_vila,115,186,0[8]script[8]Drawer#khp1[8]111,{
1683[8]if (checkweight(7492,1) == 0) {
1684[8][8]mes "^3355FFThere's something inside this drawer, but you can't take it since you're carrying to many items with you. Maybe you should pay a visit to your trusty Kafra Storage first.^000000";
1685[8][8]close;
1686[8]}
1687[8]if ((countitem(7492) < 1) && (KielHyreQuest <= 36)) {
1688[8][8]mes "^3355FFYou find an old drawer ^that has been closed ^If you open it, then you ^might find something ^inside. Or could it be ^empty. Who knows?^000000";
1689[8][8]next;
1690[8][8]switch(select("Open Drawer:Ignore")) {
1691[8][8]case 1:
1692[8][8][8]mes "^3355FFYou obtain a Yellow Keycard from inside the drawer. Opening that drawer turned out to be worthwhile.^000000";
1693[8][8][8]getitem 7492,1; //Yellow_Key_Card
1694[8][8][8]close;
1695[8][8]case 2:
1696[8][8][8]mes "^3355FFForget opening that drawer. I mean, come on, what would be the point?^000000";
1697[8][8][8]close;
1698[8][8]}
1699[8]}
1700[8]else {
1701[8][8]mes "^3355FFThis is where you found the Yellow Keycard This drawer is now empty.^000000";
1702[8][8]close;
1703[8]}
1704}
1705
1706//----------------------------------------------------------------------------
1707// Cottage interior, upstairs; Box
1708//----------------------------------------------------------------------------
1709kh_vila,107,126,0[8]script[8]Box#khp2[8]111,{
1710[8]if ((countitem(7329) < 1) && (countitem(7516) < 1) && (countitem(7491) < 1) && (KielHyreQuest < 38)) {
1711[8][8]mes "^3355FFA solid box is laid on the floor in which a smaller, locked box has been placed inside.^000000";
1712[8][8]close;
1713[8]}
1714[8]else if ((countitem(7329) >= 1) && (countitem(7516) < 1) && (countitem(7491) < 1) && (KielHyreQuest < 38)) {
1715[8][8]mes "^3355FFA solid box is laid on the floor in which a smaller, locked box has been placed inside Perhaps you can use your Old Bronze Key to unlock it.^000000";
1716[8][8]next;
1717[8][8]switch(select("Use Old Bronze Key:No, it'll never work.")) {
1718[8][8]case 1:
1719[8][8][8]mes "^3355FFYour hunch paid off!";
1720[8][8][8]mes "The Old Bronze Key really did unlock that box! You open the inner box and obtain the Green Keycard that was locked inside.";
1721[8][8][8]getitem 7516,1; //Green_Key_Card
1722[8][8][8]delitem 7329,1; //Old_Bronze_Key
1723[8][8][8]close;
1724[8][8]case 2:
1725[8][8][8]mes "^3355FFWhat...?";
1726[8][8][8]mes "What? Using a key to unlock a lock?";
1727[8][8][8]mes "Come on, that's freakin' crazy talk!^000000";
1728[8][8][8]close;
1729[8][8]}
1730[8]}
1731[8]else {
1732[8][8]mes "^3355FFThis is the box from which you've obtained the Green Keycard.^000000";
1733[8][8]close;
1734[8]}
1735}
1736
1737//----------------------------------------------------------------------------
1738// Cottage interior, upstairs; Bookshelf.
1739//----------------------------------------------------------------------------
1740kh_vila,181,138,0[8]script[8]Bookshelf#khp1[8]111,{
1741[8]if ((countitem(7491) < 1) && (countitem(7329) >= 1) || (countitem(7516) >= 1)) {
1742[8][8]mes "^3355FFOne of the books on this crammed bookshelf is labeled with the note, ''To Elly.'' It must have been left behind by her grandfather.^000000";
1743[8][8]next;
1744[8][8]switch(select("Examine Book:Ignore")) {
1745[8][8]case 1:
1746[8][8][8]mes "^3355FFYou skim through the book's pages, and don't find anything particularly interesting. However, you notice a steel surface behind the shelf as you place the book back.^000000";
1747[8][8][8]next;
1748[8][8][8]switch(select("Examine the steel surface:Ignore")) {
1749[8][8][8]case 1:
1750[8][8][8][8]mes "^3355FFYou remove more of the shelf's books to reveal that the steel surface is part of a safe hidden behind the bookshelf. There are two keyholes on the steel safe.^000000";
1751[8][8][8][8]next;
1752[8][8][8][8]switch(select("Try all your keys:Cancel")) {
1753[8][8][8][8]case 1:
1754[8][8][8][8][8]mes "^3355FFWhich key will you insert into the first keyhole?^000000";
1755[8][8][8][8][8]next;
1756[8][8][8][8][8]if (countitem(7329) >= 1) {
1757[8][8][8][8][8][8]select("Old Bronze Key:Cottage Key");
1758[8][8][8][8][8][8]mes "^3355FFWhich key will you insert into the second keyhole?^000000";
1759[8][8][8][8][8][8]next;
1760[8][8][8][8][8][8]select("Old Bronze Key:Cottage Key");
1761[8][8][8][8][8]}
1762[8][8][8][8][8]else if (countitem(7516) >= 1) {
1763[8][8][8][8][8][8]switch(select("Green Keycard:Cottage Key")) {
1764[8][8][8][8][8][8]case 1:
1765[8][8][8][8][8][8][8]set .@KHFirstKeyhole,1;
1766[8][8][8][8][8][8][8]break;
1767[8][8][8][8][8][8]case 2:
1768[8][8][8][8][8][8][8]set .@KHFirstKeyhole,2;
1769[8][8][8][8][8][8][8]break;
1770[8][8][8][8][8][8]}
1771[8][8][8][8][8][8]mes "^3355FFWhich key will you insert into the second keyhole?^000000";
1772[8][8][8][8][8][8]next;
1773[8][8][8][8][8][8]switch(select("Green Keycard:Cottage Key")) {
1774[8][8][8][8][8][8]case 1:
1775[8][8][8][8][8][8][8]set .@KHSecondKeyhole,1;
1776[8][8][8][8][8][8][8]break;
1777
1778[8][8][8][8][8][8]case 2:
1779[8][8][8][8][8][8][8]set .@KHSecondKeyhole,2;
1780[8][8][8][8][8][8][8]break;
1781
1782[8][8][8][8][8][8]}
1783[8][8][8][8][8][8]if (.@KHFirstKeyhole == 2) && (.@KHSecondKeyhole == 1) {
1784[8][8][8][8][8][8][8]mes "^3355FFThe safe opens with a click, and you see a Grey Box inside You take the Grey Box with you, hoping that it will come in handy later.^000000";
1785[8][8][8][8][8][8][8]delitem 7489,1; //Villa_Spare_Key
1786[8][8][8][8][8][8][8]delitem 7516,1; //Green_Key_Card
1787[8][8][8][8][8][8][8]getitem 7491,1; //Iron_Box
1788[8][8][8][8][8][8][8]close;
1789[8][8][8][8][8][8]}
1790
1791[8][8][8][8][8]}
1792[8][8][8][8][8]mes "^3355FFThe safe won't open.^000000";
1793[8][8][8][8][8]close;
1794[8][8][8][8]case 2:
1795[8][8][8][8][8]mes "^3355FFIt's probably a better idea to investigate the cottage for the keys that will open up this safe...^000000";
1796[8][8][8][8][8]close;
1797[8][8][8][8]}
1798[8][8][8]case 2:
1799[8][8][8][8]mes "^3355FFYou place the books back on the bookshelf.^000000";
1800[8][8][8][8]close;
1801[8][8][8]}
1802[8][8]case 2:
1803[8][8][8]mes "^3355FFYou can probably find better clues somewhere else around here.^000000";
1804[8][8][8]close;
1805[8][8]}
1806[8]}
1807[8]else {
1808[8][8]mes "^3355FFYou've found a bookshelf that's crammed with books.^000000";
1809[8][8]close;
1810[8]}
1811}
1812
1813//----------------------------------------------------------------------------
1814// Cottage interior, upstairs; Desk
1815//----------------------------------------------------------------------------
1816kh_vila,118,144,0[8]script[8]Desk#khp1[8]111,{
1817[8]if (KHCottagePoem2 < 1) {
1818[8][8]mes "^3355FFThere are piles of papers and books stacked on top of the desk covering topics like artificial power, Sage Varmundt's research, factory robotization, and magic scrolls...^000000";
1819[8][8]next;
1820[8][8]mes "^3355FFWhile rummaging through the books and papers, you find a piece of paper with the Kiel Hyre Foundation's official seal. You decide that it might come in handy someday.^000000";
1821[8][8]next;
1822[8][8]mes "^3355FFYou've obtained a blank piece of paper with the Kiel Hyre Foundation seal.^000000";
1823[8][8]set KHCottagePoem2,1;
1824[8][8]close;
1825[8]}
1826[8]else if (KHCottagePoem2 >= 1) {
1827[8][8]mes "^3355FFThere are piles of papers and books, covering various scientific and magic topics, stacked on top of this desk.^000000";
1828[8][8]close;
1829[8]}
1830}
1831
1832//----------------------------------------------------------------------------
1833// Cottage interior, upstairs; Medicine Chest
1834//----------------------------------------------------------------------------
1835kh_vila,123,170,0[8]script[8]Medicine Chest#khp1[8]111,{
1836[8]if ((KHCottagePoem2 < 1) && (KielHyreQuest < 30)) {
1837[8][8]mes "^3355FFThis medicine cabinet is filled with bottles of various colors. What kind of medicine can be found here?^000000";
1838[8][8]close;
1839[8]}
1840[8]else if ((KHCottagePoem2 == 1) && (KielHyreQuest < 30)) {
1841[8][8]mes "^3355FFThis medicine cabinet is filled with bottles of various colors. What kind of medicine can be found here?^000000";
1842[8][8]next;
1843[8][8]mes "^3355FFWait, you have a blank piece of paper with the Kiel Hyre Foundation seal! It's strange that the seal was put on a blank piece of paper. Maybe something is written on it with special ink?^000000";
1844[8][8]next;
1845[8][8]mes "^3355FFIt's a crazy hunch, but maybe, just maybe, you can use something inside this medicine cabinet that will reveal any invisible ink written on this document!^000000";
1846[8][8]next;
1847[8][8]switch(select("What? That's crazy!:Of course! Let's try it!")) {
1848[8][8]case 1:
1849[8][8][8]mes "^3355FFSorry I thought it was a good idea...^000000";
1850[8][8][8]close;
1851[8][8]case 2:
1852[8][8][8]switch(select("Try Red Liquid:Try Blue Liquid:Try Yellow Liquid:Try Green Liquid:Cancel")) {
1853[8][8][8]case 1:
1854[8][8][8][8]set .@KHPotionColor$,"red";
1855[8][8][8][8]break;
1856[8][8][8]case 2:
1857[8][8][8][8]mes "^3355FFIt works!";
1858[8][8][8][8]mes "The blue liquid is revealing small text written on the paper It looks like some kind of long poem...^000000";
1859[8][8][8][8]next;
1860[8][8][8][8]mes "[Poem]";
1861[8][8][8][8]mes "The first snake is made of steel, but I used my rage to destroy it. The second snake is made of magic, but my love pierced its heart.";
1862[8][8][8][8]next;
1863[8][8][8][8]mes "[Poem]";
1864[8][8][8][8]mes "The third snake is flesh and blood, but my hope defeated it in the end However, the fourth and final snake is formless, and no one knows its appearance.";
1865[8][8][8][8]next;
1866[8][8][8][8]mes "[Poem]";
1867[8][8][8][8]mes "I cast my despair to the air, but nobody knows if it killed the snake. I am merely ^0000FFa little lost devil^000000 with four swords and four snakes, searching for that girl in the darkness.";
1868[8][8][8][8]next;
1869[8][8][8][8]mes "^3355FFThis is a very strange poem. What could it possibly mean?^000000";
1870[8][8][8][8]set KHCottagePoem2,2;
1871[8][8][8][8]close;
1872[8][8][8]case 3:
1873[8][8][8][8]set .@KHPotionColor$,"yellow";
1874[8][8][8][8]break;
1875[8][8][8]case 4:
1876[8][8][8][8]set .@KHPotionColor$,"green";
1877[8][8][8][8]break;
1878[8][8][8]case 5:
1879[8][8][8][8]mes "^3355FFNever mind This idea sounds too crazy to work.. like puttting a man on the moon. Can you believe that hogwash?^000000";
1880[8][8][8][8]close;
1881[8][8][8]}
1882[8][8][8]mes "^3355FFYou tried sprinkling the "+.@KHPotionColor$+" liquid from the medicine cabinet onto the blank paper with the Kiel Hyre Foundation seal However, nothing happened...^000000";
1883[8][8][8]close;
1884[8][8]}
1885[8]}
1886[8]else if ((KHCottagePoem2 >= 2) || (KielHyreQuest >= 30)) {
1887[8][8]mes "^3355FFThis is where you poured some blue liquid to read a poem written in invisible ink on the blank piece of paper with the Kiel Hyre Foundation seal. Would you like read it?^000000";
1888[8][8]next;
1889[8][8]switch(select("No time!:Read")) {
1890[8][8]case 1:
1891[8][8][8]mes "^3355FFYou're running out of time! For now, it would be best for you to search every inch of this cottage.^000000";
1892[8][8][8]close;
1893[8][8]case 2:
1894[8][8][8]mes "[Poem]";
1895[8][8][8]mes "The first snake is made of steel, but I used my rage to destroy it. The second snake is made of magic, but my love pierced its heart.";
1896[8][8][8]next;
1897[8][8][8]mes "[Poem]";
1898[8][8][8]mes "The third snake is flesh and blood, but my hope defeated it in the end However, the fourth and final snake is formless, and no one knows it's appearance.";
1899[8][8][8]next;
1900[8][8][8]mes "[Poem]";
1901[8][8][8]mes "I cast my despair to the air, but nobody knows if it killed the snake. I am merely a ^3355FFlittle^000000 ^3355FFlost devil^000000 with four swords and four snakes, searching for that girl in the darkness.";
1902[8][8][8]close;
1903
1904[8][8]}
1905[8]}
1906}
1907
1908//----------------------------------------------------------------------------
1909// Cottage interior, stair case; Sword hilt
1910//----------------------------------------------------------------------------
1911kh_vila,136,68,0[8]script[8]Sword Hilt#kh[8]111,{
1912[8]if ((KHCottagePoem1 < 3) || (KHCottagePoem2 < 2) && (KielHyreQuest < 30)) {
1913[8][8]mes "^3355FFThere are four elaborately designed swords positioned next to four creepy looking snake sculptures.^000000";
1914[8][8]close;
1915[8]}
1916[8]else if ((KHCottagePoem1 <= 4) || (KHCottagePoem2 <= 2) && (KielHyreQuest < 30)) {
1917[8][8]mes "^3355FFThere are four elaborately designed swords positioned next to four creepy looking snake sculptures. Wait!";
1918[8][8]mes "Perhaps they're related to that poem you read earlier...";
1919[8][8]next;
1920[8][8]switch(select("No way!:Of course!")) {
1921[8][8]case 1:
1922[8][8][8]mes "^3355FFImpossible.. It must be some kind of coincidence...^000000";
1923[8][8][8]close;
1924[8][8]case 2:
1925[8][8][8]mes "^3355FFOf course! And look!";
1926[8][8][8]mes "There's a hole on top of the head of each snake sculpture. These holes seem big enough to insert each of the ornamental swords nearby...^000000";
1927[8][8][8]next;
1928[8][8][8]switch(select("Ignore:Insert Ornamental Swords")) {
1929[8][8][8]case 1:
1930[8][8][8][8]mes "^3355FFImposible...^000000 ^3355FFIt must be some^000000 ^3355FFkind of coincidence...^000000";
1931[8][8][8][8]close;
1932[8][8][8]case 2:
1933[8][8][8][8]if (KHCottagePoem1 != 4) {
1934[8][8][8][8][8]mes "^3355FFCan't... Pull out.. Sword! It must be locked into place somehow, or sealed by some strange force!^000000";
1935[8][8][8][8][8]close;
1936[8][8][8][8]}
1937[8][8][8][8]else {
1938[8][8][8][8][8]mes "^3355FFYou should probably try to insert each sword into the correct snake First, please select the snake in which you will insert the first sword.^000000";
1939[8][8][8][8][8]next;
1940[8][8][8][8][8]switch(select("First Snake:Second Snake:Third Snake:Fourth Snake")) {
1941[8][8][8][8][8]default:
1942[8][8][8][8][8][8]break;
1943[8][8][8][8][8]case 2:
1944[8][8][8][8][8][8]set .@KHSwords,.@KHSwords+1;
1945[8][8][8][8][8][8]break;
1946[8][8][8][8][8]}
1947[8][8][8][8][8]next;
1948[8][8][8][8][8]mes "^3355FFNow, please choose the snake in which you will insert the second sword.^000000";
1949[8][8][8][8][8]next;
1950[8][8][8][8][8]switch(select("First Snake:Second Snake:Third Snake:Fourth Snake")) {
1951[8][8][8][8][8]default:
1952[8][8][8][8][8][8]break;
1953[8][8][8][8][8]case 4:
1954[8][8][8][8][8][8]set .@KHSwords,.@KHSwords+1;
1955[8][8][8][8][8][8]break;
1956[8][8][8][8][8]}
1957[8][8][8][8][8]next;
1958[8][8][8][8][8]mes "^3355FFNext, please select the snake in which you will insert the third sword.^000000";
1959[8][8][8][8][8]next;
1960[8][8][8][8][8]switch(select("First Snake:Second Snake:Third Snake:Fourth Snake")) {
1961[8][8][8][8][8]case 1:
1962[8][8][8][8][8][8]set .@KHSwords,.@KHSwords+1;
1963[8][8][8][8][8][8]break;
1964[8][8][8][8][8]default:
1965[8][8][8][8][8][8]break;
1966[8][8][8][8][8]}
1967[8][8][8][8][8]next;
1968[8][8][8][8][8]mes "^3355FFLastly, please select the snake in which you will insert the fourth sword.^000000";
1969[8][8][8][8][8]next;
1970[8][8][8][8][8]switch(select("First Snake:Second Snake:Third Snake:Fourth Snake")) {
1971[8][8][8][8][8]default:
1972[8][8][8][8][8][8]break;
1973[8][8][8][8][8]case 3:
1974[8][8][8][8][8][8]set .@KHSwords,.@KHSwords+1;
1975[8][8][8][8][8][8]break;
1976[8][8][8][8][8]}
1977
1978[8][8][8][8][8]if (.@KHSwords == 4) {
1979[8][8][8][8][8][8]mes "^3355FFYour ears are suddenly filled with a low buzzing noise, and your mind and body feel as if they are being swept away...^000000";
1980[8][8][8][8][8][8]set KHCottagePoem1,5;
1981[8][8][8][8][8][8]set KHCottagePoem2,3;
1982[8][8][8][8][8][8]close2;
1983[8][8][8][8][8][8]warp "kh_vila",178,72;
1984[8][8][8][8][8][8]end;
1985[8][8][8][8][8]}
1986
1987[8][8][8][8][8]else {
1988[8][8][8][8][8][8]mes "^3355FFNothing happened.. You probably didn't insert the swords into the correct snakes. For now, you should return the swords, and then try this again later.^000000";
1989[8][8][8][8][8][8]close;
1990[8][8][8][8][8]}
1991[8][8][8][8]}
1992[8][8][8]}
1993[8][8]}
1994[8]}
1995[8]else if ((KHCottagePoem1 == 5) && (KHCottagePoem2 == 3) || (KielHyreQuest >= 30)) {
1996[8][8]mes "^3355FFHere is a hidden path that leads to the secret laboratory.^000000";
1997[8][8]next;
1998[8][8]switch(select("Enter:Cancel")) {
1999[8][8]case 1:
2000[8][8][8]warp "kh_vila",178,72;
2001[8][8][8]end;
2002[8][8]case 2:
2003[8][8][8]close;
2004[8][8]}
2005[8]}
2006}
2007
2008//----------------------------------------------------------------------------
2009// Cottage interior, Secret Room; left test tube
2010//----------------------------------------------------------------------------
2011kh_vila,179,68,0[8]script[8]Test Tube#khp2[8]111,{
2012[8]mes "^3355FFThis test tube contains a young man dressed in a Kiel Hyre Academy uniform. Somehow, you get the feeling that you've seen him somewhere before.^000000";
2013[8]close;
2014}
2015
2016
2017//----------------------------------------------------------------------------
2018// Cottage interior, Secret Room; Right test tube
2019//----------------------------------------------------------------------------
2020kh_vila,185,68,0[8]script[8]Test Tube::TestTubeKHQ2[8]111,{
2021[8]if (KielHyreQuest > 28) {
2022[8][8]mes "^3355FFA strange looking, wizened old man is held within this test tube.^000000";
2023[8][8]close;
2024[8]}
2025[8]else if (KielHyreQuest == 28) {
2026[8][8]mes "^3355FFA strange looking, wizened old man is held within this test tube There is a small red button right underneath the test tube.^000000";
2027[8][8]next;
2028[8][8]switch(select("Press Button:Investigate Further")) {
2029[8][8]case 1:
2030[8][8][8]mes "[???]";
2031[8][8][8]mes "H-hello...? C-can you hear me? I don't recognize you... But... Maybe I forgot?";
2032[8][8][8]mes "Wait, wait. If you're my friend, then you know what to call me, right? Do you know what I am?";
2033[8][8][8]next;
2034[8][8][8]input .@KHInput$;
2035[8][8][8]if (.@KHInput$ == "little lost devil") {
2036[8][8][8][8]mes "[???]";
2037[8][8][8][8]mes "Heh... Heh heh.. He knows... Hey, you have to remember these numbers, okay? D-don't forget, they'll be important.. ^FF00004^000000, ^FF00007^000000, ^FF00007^000000, ^FF00002^000000, ^FF00009^000000, ^FF00006^000000, ^FF00001^000000. That's all...";
2038[8][8][8][8]next;
2039[8][8][8][8]mes "^3355FF4772961^000000 ^3355FFWhat could^000000 ^3355FFthose numbers^000000 ^3355FFpossibly mean?^000000";
2040[8][8][8][8]//KHCottagePoem1 and KHCottagePoem2 no longer needed-- deleting
2041[8][8][8][8]set KHCottagePoem1,0;
2042[8][8][8][8]set KHCottagePoem2,0;
2043[8][8][8][8]set KielHyreQuest,30;
2044[8][8][8][8]close;
2045[8][8][8]}
2046[8][8][8]else {
2047[8][8][8][8]mes "[???]";
2048[8][8][8][8]mes "No... No.. That's not right I don't think we were friends. No...";
2049[8][8][8][8]close;
2050[8][8][8]}
2051[8][8]case 2:
2052[8][8][8]mes "^3355FFLet's investigate this area a little more first.^000000";
2053[8][8][8]close;
2054[8][8]}
2055[8]}
2056[8]else if (KielHyreQuest >= 30) {
2057[8][8]if ((countitem(7491) > 0) && (countitem(7492) > 0)){
2058[8][8][8]mes "^3355FFWhat could the number 4772961 mean? For now, you've found everything that you need from this place, so you should return to Elly.^000000";
2059[8][8][8]close;
2060[8][8]}
2061[8][8]else {
2062[8][8][8]mes "^3355FFWhat could the number 4772961 mean? For now, you'd better search this cottage for any clues you can find...^000000";
2063[8][8][8]close;
2064[8][8]}
2065[8]}
2066[8]end;
2067}
2068
2069//============================================================================
2070// Robot Factory NPCs
2071//============================================================================
2072
2073//----------------------------------------------------------------------------
2074// Robotic's Factory; Heavy Door
2075//----------------------------------------------------------------------------
2076kh_dun01,235,48,0[8]script[8]Heavy Door#kh1::HeavyDoorKHQ1[8]111,{
2077[8]if (KielHyreQuest < 38) {
2078[8][8]mes "^3355FFThere is a large, heavy door infront of you.^000000";
2079[8][8]next;
2080[8][8]switch(select("Open Door:Cancel")) {
2081[8][8]case 1:
2082[8][8][8]input .@KHInput$;
2083[8][8][8]mes "^3355FFYou try to push the door open with all your might, but fail to make it budge.^000000";
2084[8][8][8]close;
2085[8][8]case 2:
2086[8][8][8]mes "^3355FFyou decided to leave this door alone until you can figure out how to open it^000000";
2087[8][8][8]close;
2088[8][8]}
2089[8]}
2090[8]else if ((KielHyreQuest >= 38) && (KielHyreQuest < 46)) {
2091[8][8]mes "^3355FFThere is a large, heavy door in front of you.^000000";
2092[8][8]next;
2093[8][8]switch(select("Open Door:Cancel")) {
2094[8][8]case 1:
2095[8][8][8]input .@KHInput$;
2096[8][8][8]if (.@KHInput$ == "Blue Keycard") {
2097[8][8][8][8]mes "^3355FFYou've successfully opened the door.";
2098[8][8][8][8]close2;
2099[8][8][8][8]warp "kh_school",119,144;
2100[8][8][8][8]end;
2101[8][8][8]}
2102[8][8][8]else {
2103[8][8][8][8]mes "^3355FFYou try to push the door open with all your might, but fail to make it budge.^000000";
2104[8][8][8][8]close;
2105[8][8][8]}
2106[8][8]case 2:
2107[8][8][8]mes "^3355FFYou decided to leave this door alone until you can figure out how you can open it.^000000";
2108[8][8][8]close;
2109[8][8]}
2110[8]}
2111[8]else {
2112[8][8]mes "^3355FFThis is an incredibly heavy door that is tightly closed. You won't be able to open it through brute force.^000000";
2113[8][8]close;
2114[8]}
2115}
2116
2117//----------------------------------------------------------------------------
2118// Robotic's Factory; Heavy Door (These doors don't seem to serve any purpose)
2119//----------------------------------------------------------------------------
2120kh_dun01,76,233,0[8]script[8]Heavy Door::HeavyDoorKHQ2[8]111,{
2121[8]if ((KielHyreQuest >= 38) && (KielHyreQuest < 46)) {
2122[8][8]mes "^3355FFThere is a large, heavy door infront of you.^000000";
2123[8][8]next;
2124[8][8]switch(select("Open Door:Cancel")) {
2125[8][8]case 1:
2126[8][8][8]input .@KHInput$;
2127[8][8][8]mes "^3355FFYou try to push the door open with all your might, but fail to make it budge.^000000";
2128[8][8][8]close;
2129[8][8]case 2:
2130[8][8][8]mes "^3355FFyou decided to leave this door alone until you can figure out how to open it^000000";
2131[8][8][8]close;
2132[8][8]}
2133[8]}
2134[8]else {
2135[8][8]mes "^3355FFThere is a large, heavy door infront of you^000000";
2136[8][8]close;
2137[8]}
2138}
2139
2140kh_dun01,106,233,0[8]duplicate(HeavyDoorKHQ2)[8]Heavy Door#kh3[8]111
2141kh_dun01,6,164,0[8]duplicate(HeavyDoorKHQ2)[8]Heavy Door#kh4[8]111
2142kh_dun01,6,133,0[8]duplicate(HeavyDoorKHQ2)[8]Heavy Door#kh5[8]111
2143kh_dun01,6,60,0[8]duplicate(HeavyDoorKHQ2)[8]Heavy Door#kh6[8]111
2144kh_dun01,6,30,0[8]duplicate(HeavyDoorKHQ2)[8]Heavy Door#kh7[8]111
2145kh_dun01,6,18,0[8]duplicate(HeavyDoorKHQ2)[8]Heavy Door#kh8[8]111
2146kh_dun01,235,70,0[8]duplicate(HeavyDoorKHQ2)[8]Heavy Door#kh9[8]111
2147kh_dun01,235,92,0[8]duplicate(HeavyDoorKHQ2)[8]Heavy Door#kh10[8]111
2148kh_dun01,235,114,0[8]duplicate(HeavyDoorKHQ2)[8]Heavy Door#kh11[8]111
2149
2150//----------------------------------------------------------------------------
2151// Beautiful Lady and Beautiful Lady copies.
2152//----------------------------------------------------------------------------
2153kh_school,119,149,4[8]script[8]Beautiful Lady#kh1::BeatifulLadyKHQ1[8]894,{
2154[8]cutin "kh_ellisia",2;
2155[8]if (KielHyreQuest < 40) {
2156[8][8]mes "[Allysia]";
2157[8][8]mes "Hm? I don't think I know you. Kiel Hyre has only authorized Elly, and a trusted friend that may be helping her, to be admitted to this area.";
2158[8][8]next;
2159[8][8]mes "[Allysia]";
2160[8][8]mes "I cannot see ^FF0000Elly^000000 Has she been attacked as well?";
2161[8][8]mes "Are you ^FF0000Elly's friend^000000?";
2162[8][8]next;
2163[8][8]mes "[Allysia]";
2164[8][8]mes "I don't see Elly anywhere around here. I can only let you enter if you can identify yourself as Elly's friend Is there anything that you can present to me as proof?";
2165[8][8]next;
2166[8][8]switch(select("Yellow Keycard:Blue Keycard:Golden Key:Carved Button:...?")) {
2167[8][8]default:
2168[8][8][8]break;
2169[8][8]case 3:
2170[8][8][8]mes "[Allysia]";
2171[8][8][8]mes "Ah, isn't this the key that Kiel Hyre gave to Elly? Yes, I'm convinced that you've been helping her I've been waiting for you, so let me guide you to my room.";
2172[8][8][8]close2;
2173[8][8][8]cutin "",255;
2174[8][8][8]warp "kh_school",120,180;
2175[8][8][8]end;
2176[8][8]case 4:
2177[8][8][8]mes "[Allysia]";
2178[8][8][8]mes "Th-that's Kiehl's seal! Did he send you here to get me?! I'm not taking any chances!";
2179[8][8][8]close2;
2180[8][8][8]cutin "",255;
2181[8][8][8]monster "kh_school",117,144,"Bomb",1745,1;
2182[8][8][8]monster "kh_school",117,144,"Bomb",1745,1;
2183[8][8][8]monster "kh_school",117,144,"Bomb",1745,1;
2184[8][8][8]monster "kh_school",117,144,"Bomb",1745,1;
2185[8][8][8]end;
2186[8][8]case 5:
2187[8][8][8]mes "[Allysia]";
2188[8][8][8]mes "..... ....... ...........";
2189[8][8][8]close2;
2190[8][8][8]cutin "",255;
2191[8][8][8]end;
2192[8][8]}
2193[8][8]mes "[Allysia]";
2194[8][8]mes "Hm? This doesn't prove that Elly really trusts you...";
2195[8][8]close2;
2196[8][8]cutin "",255;
2197[8][8]end;
2198[8]}
2199[8]else if (KielHyreQuest >= 40) {
2200[8][8]mes "[Allysia]";
2201[8][8]mes "Please follow me.";
2202[8][8]close2;
2203[8][8]cutin "",255;
2204[8][8]warp "kh_school",120,180;
2205[8][8]end;
2206[8]}
2207}
2208
2209
2210kh_school,117,149,4[8]script[8]Beautiful lady#kh2::BeatifulLadyKHQ2[8]894,{
2211[8]end;
2212}
2213kh_school,118,149,4[8]duplicate(BeatifulLadyKHQ2)[8]Beautiful lady#kh3[8]894
2214kh_school,120,149,4[8]duplicate(BeatifulLadyKHQ2)[8]Beautiful lady#kh4[8]894
2215kh_school,121,149,4[8]duplicate(BeatifulLadyKHQ1)[8]Beautiful lady#kh5[8]894
2216
2217//----------------------------------------------------------------------------
2218// Beautiful Lady "Allysia"
2219//----------------------------------------------------------------------------
2220kh_school,122,186,4[8]script[8]Beautiful Lady#kh6[8]894,{
2221[8]if (checkweight(7496,1) == 0) {
2222[8][8]mes "^3355FFJust a second.. You're carrying too many items with you right now, so you'll need to free up more Inventory space first...^000000";
2223[8][8]close;
2224[8]}
2225[8]cutin "kh_ellisia",2;
2226[8]if (KielHyreQuest < 38) {
2227[8][8]mes "[??????]";
2228[8][8]mes "This is private property Please leave immediately!";
2229[8][8]close2;
2230[8][8]cutin "kh_ellisia",255;
2231[8][8]warp "yuno_fild08",73,172;
2232[8][8]end;
2233[8]}
2234[8]else if (KielHyreQuest <= 38) {
2235[8][8]mes "[Allysia]";
2236[8][8]mes "Friend of prototype Elly, I welcome you. As you may have figured out, I need your help. Kiel Hyre is being held somewhere inside this factory.";
2237[8][8]next;
2238[8][8]mes "[Allysia]";
2239[8][8]mes "It is imperative that you search for Kiel Hyre and rescue him as soon as you possibly can!";
2240[8][8]next;
2241[8][8]switch(select("What is this factory?:What happened to ^FF0000Kiel Hyre^000000?")) {
2242[8][8]case 1:
2243[8][8][8]mes "[Allysia]";
2244[8][8][8]mes "This factory is part of the Kiel Hyre Foundation's secret business where humanoid robots are manufactured. Myself, and all of the academy's students are actually robots, not humans.";
2245[8][8][8]next;
2246[8][8][8]mes "[Allysia]";
2247[8][8][8]mes "The Kiel Hyre Foundation's ultimate goal is to develop superior robots that will help human society. As robots, we can handle tasks that are too dangerous or difficult for humans.";
2248[8][8][8]break;
2249[8][8]case 2:
2250[8][8][8]mes "[Allysia]";
2251[8][8][8]mes "^3355FFKiehl^000000 has proceeded to perform abnormal modifications to the humanoid robots. This has been reported to Kiel Hyre, who has left to stop Kiehl However, Hyre hasn't returned.";
2252[8][8][8]next;
2253[8][8][8]mes "[Allysia]";
2254[8][8][8]mes "Fearing that Kiehl would break me, Kiel Hyre brought a copy of me instead. I can still detect Kiel Hyre's heartbeat, so he should be alright, but his own son might harm him soon.";
2255[8][8][8]next;
2256[8][8][8]mes "[Allysia]";
2257[8][8][8]mes "Take this Keycard which will enable you to enter the secret areas inside this factory. If you locate Kiel Hyre, please let me know right away.";
2258[8][8][8]getitem 7496,1; //Red_Key_Card
2259[8][8][8]set KielHyreQuest,40;
2260[8][8][8]break;
2261[8][8]}
2262[8][8]close2;
2263[8][8]cutin "",255;
2264[8][8]end;
2265[8]}
2266[8]else if (KielHyreQuest == 40) {
2267[8][8]mes "[Allysia]";
2268[8][8]mes "I can still detect Kiel Hyre's heartbeat, but his sone Kiehl might do something desperate to him soon. Please locate Kiel Hyre before that can happen!";
2269[8][8]close2;
2270[8][8]cutin "",255;
2271[8][8]warp "kh_dun01",22,216;
2272[8][8]end;
2273[8]}
2274[8]else if (KielHyreQuest == 42) {
2275[8][8]mes "[Allysia]";
2276[8][8]mes "Have you already located Kiel Hyre?";
2277[8][8]next;
2278[8][8]mes "^3355FFYou tell Allysia where^000000 ^3355FFKiel Hyre has been locked^000000 ^3355FFup, and give her the metal^000000 ^3355FFfragment that Kiel Hyre handed^000000 ^3355FFto you. She took fragment^000000 ^3355FFand wore it around her wrist.^000000";
2279[8][8]next;
2280[8][8]mes "[Allysia]";
2281[8][8]mes "...Kiel Hyre's secret code confirmed. B_2_3 area Vital signs are normal Envelope received. Sending modified Puppet Designs...";
2282[8][8]next;
2283[8][8]mes "[Allysia]";
2284[8][8]mes "Alright, I've recieved Kiel Hyre's orders, and must carry them out...";
2285[8][8]delitem 7497,1; //Steel_Piece
2286[8][8]set KielHyreQuest,44;
2287[8][8]close2;
2288[8][8]cutin "",255;
2289[8][8]end;
2290[8]}
2291[8]else if (KielHyreQuest == 44) {
2292[8][8]mes "[Allysia]";
2293[8][8]mes "Alright, I have a mission to carry out for Kiel Hyre, and I don't have much time Let me give you some specific instructions very quickly.";
2294[8][8]next;
2295[8][8]mes "[Allysia]";
2296[8][8]mes "Firstly, I need to take your keycards for security reasons Secondly, meet me at the Kiel Hyre Mansion in Lighthalzen Present the Golden Key to be admitted to the premises.";
2297[8][8]delitem 7492,1; //Yellow_Key_Card
2298[8][8]delitem 7495,1; //Blue_Key_Card
2299[8][8]delitem 7496,1; //Red_Key_Card
2300[8][8]set KielHyreQuest,46;
2301[8][8]next;
2302[8][8]mes "[Allysia]";
2303[8][8]mes "I understand that this is sudden, and I'm not giving you a thorough explanation, but something horrible will happen if I don't hurry as quickly as possible.";
2304[8][8]close2;
2305[8][8]warp "yuno_fild08",73,172;
2306[8][8]cutin "",255;
2307[8][8]end;
2308[8]}
2309[8]else if (KielHyreQuest >= 44) {
2310[8][8]mes "[Allysia]";
2311[8][8]mes "I understand that this is sudden, and I'm not giving you a thorough explanation, but something horrible will happen if i don't hurry as quickly as possible.";
2312[8][8]close2;
2313[8][8]warp "yuno_fild08",73,172;
2314[8][8]cutin "",255;
2315[8][8]end;
2316[8]}
2317}
2318
2319//----------------------------------------------------------------------------
2320// Signboard (another useless NPC?)
2321//----------------------------------------------------------------------------
2322kh_dun01,163,223,4[8]script[8]Signboard#kh[8]857,{
2323[8]mes "[Notice]";
2324[8]mes "Cute Pets are prohibited in this area. (Cute Pets that provide special assistance to the visually impaired are exempt from this rule.)";
2325[8]close;
2326}
2327
2328//----------------------------------------------------------------------------
2329// Mechanical Devices for accessing restricted area
2330//----------------------------------------------------------------------------
2331kh_dun01,166,223,0[8]script[8]Mechanical Device#kh::KHKeyardReader[8]111,{
2332[8]if ((KielHyreQuest <= 38) || (KielHyreQuest >= 44)) {
2333[8][8]mes "^3355FFYou encounter a mechanical device It looks like it can be operated by inserting the correct keycard into the slot.^000000";
2334[8][8]close;
2335[8]}
2336[8]else if ((KielHyreQuest == 40) && (countitem(7496) >= 1)) {
2337[8][8]mes "^3355FFYou encounter a mechanical device It looks like it can be operated by inserting the correct keycard into the slot.^000000";
2338[8][8]next;
2339[8][8]input .@KHInput$;
2340[8][8]if (.@KHInput$ == "Red Keycard") {
2341[8][8][8]mes "^3355FFThe door opens once you insert the Red Keycard.^000000";
2342[8][8][8]close2;
2343[8][8][8]warp "kh_dun01",170,227;
2344[8][8][8]end;
2345[8][8]}
2346[8][8]else {
2347[8][8][8]mes "^3355FFNothing happened.^000000";
2348[8][8][8]close;
2349[8][8]}
2350[8]}
2351}
2352
2353kh_dun01,162,206,0[8]duplicate(KHKeyardReader)[8]Mechanical Device[8]111
2354
2355//----------------------------------------------------------------------------
2356// Keep monsters out of the quest area.
2357// Silly really since the rest of it's a dungeon
2358//----------------------------------------------------------------------------
2359//kh_dun01,180,220,0[8]script[8]Monster Warp#kh1::KHMobWarp[8]-1,5,20,{
2360//OnTouchNPC:
2361//[8]warp "kh_dun01",178,138;
2362//[8]end;
2363//}
2364
2365//kh_dun01,190,220,0[8]duplicate(KHMobWarp)[8]Monster Warp#kh2[8]-1,5,20
2366//kh_dun01,200,250,0[8]duplicate(KHMobWarp)[8]Monster Warp#kh3[8]-1,5,20
2367//kh_dun01,210,220,0[8]duplicate(KHMobWarp)[8]Monster Warp#kh4[8]-1,5,20
2368//kh_dun01,220,220,0[8]duplicate(KHMobWarp)[8]Monster Warp#kh5[8]-1,5,10
2369
2370//----------------------------------------------------------------------------
2371// Kiel Hyre - OnTouch
2372//----------------------------------------------------------------------------
2373kh_dun01,224,233,0[8]script[8]Factory B Area Door[8]-1,5,5,{
2374OnTouch:
2375[8]if (KielHyreQuest == 40) {
2376[8][8]if (checkweight(7497,1) == 0) {
2377[8][8][8]mes "^3355FFJust a second.. You're carrying too many items with you right now, so you'll need to free up more Inventory space first...^000000";
2378[8][8][8]close;
2379[8][8]}
2380[8][8]mes "^3355FFYou can faintly hear a voice from the other side of this door.^000000";
2381[8][8]next;
2382[8][8]mes "[????]";
2383[8][8]mes "^333333...Kiehl.. ...How dare you...!^000000";
2384[8][8]next;
2385[8][8]mes "["+strcharinfo(0)+"]";
2386[8][8]mes "Mister Kiel Hyre?";
2387[8][8]mes "Is that you in there?";
2388[8][8]next;
2389[8][8]mes "[Kiel Hyre]";
2390[8][8]mes "Wh-who's there?";
2391[8][8]mes "Identify yourself!";
2392[8][8]next;
2393[8][8]mes "["+strcharinfo(0)+"]";
2394[8][8]mes "I'm... I'm...";
2395[8][8]next;
2396[8][8]mes "^3355FFYou explain your story to the voice behind the door, and tell him what happened to Elly and Allysia.^000000";
2397[8][8]next;
2398[8][8]mes "[Kiel Hyre]";
2399[8][8]mes "^333333...Yes... It's me I'm Kiel Hyre, trapped in here. He went so far as to modify Elly, eh?";
2400[8][8]mes "...............................^000000";
2401[8][8]next;
2402[8][8]mes "[Kiel Hyre]";
2403[8][8]mes "^333333Hurry, take this module to Allysia!";
2404[8][8]mes "She'll know what to do with it. If you're really helping us, then she'll have some instructions for you too.^000000 ";
2405[8][8]next;
2406[8][8]mes "^3355FFKiel Hyre slid a strange metal fragment through the gap between the door and the floor.^000000";
2407[8][8]getitem 7497,1; //Steel_Piece
2408[8][8]set KielHyreQuest,42;
2409[8][8]close;
2410[8]}
2411
2412[8]else if (KielHyreQuest >= 42) {
2413[8][8]mes "[Kiel Hyre]";
2414[8][8]mes "......";
2415[8][8]close;
2416[8]}
2417}
2418
2419//----------------------------------------------------------------------------
2420// Robot Factory Second Floor Entrances
2421//----------------------------------------------------------------------------
2422kh_dun01,44,203,0[8]script[8]Entrance Device#khd2::KHAccess[8]111,{
2423[8]if (countitem(7509) < 1) {
2424[8][8]mes "^3355FFYou encounter a mechanical device It looks like it can be operated by inserting the correct keycard into the slot.^000000";
2425[8][8]close;
2426[8]}
2427[8]else {
2428[8][8]mes "^3355FFYou encounter a mechanical device It looks like it can be operated by inserting the correct keycard into the slot.^000000";
2429[8][8]next;
2430[8][8]input .@KHInput$;
2431[8][8]if (.@KHInput$ == "Luxurious Keycard") {
2432[8][8][8]mes "^3355FFAs you insert the Luxurious Keycard into the keycard slot, the door swings open to reveal a long flight of descending stairs.^000000";
2433[8][8][8]next;
2434[8][8][8]switch(select("Descend Stairs:Cancel")) {
2435[8][8][8]case 1:
2436[8][8][8][8]warp "kh_dun02",41,198;
2437[8][8][8][8]end;
2438[8][8][8]case 2:
2439[8][8][8][8]mes "^3355FFIt looks like this door has automatically closed after the preprogrammed time limit has elapsed.^000000";
2440[8][8][8][8]close;
2441[8][8][8]}
2442[8][8]}
2443[8][8]else {
2444[8][8][8]mes "^3355FFYou try to push the door open with all your might, but fail to make it budge.^000000";
2445[8][8][8]close;
2446[8][8]}
2447[8]}
2448}
2449
2450kh_dun01,36,195,0[8]duplicate(KHAccess)[8]Entrance Device#khd1[8]111
2451
2452//============================================================================
2453// Kiel Hyre Mansion NPCs, and Kiehl's Room NPCs
2454//============================================================================
2455
2456//----------------------------------------------------------------------------
2457// Kiel's Steward
2458//----------------------------------------------------------------------------
2459kh_mansion,78,55,5[8]script[8]Steward#kh[8]109,{
2460[8]if (KielHyreQuest < 46) {
2461[8][8]mes "[Steward]";
2462[8][8]mes "This is a private residence, please leave.";
2463[8][8]close2;
2464[8][8]warp "lighthalzen",188,201;
2465[8][8]end;
2466[8]}
2467[8]if ((KielHyreQuest >= 46) && (KielHyreQuest < 50)) {
2468[8][8]mes "[Steward]";
2469[8][8]mes "Greetings Have you been invited by the master of this mansion?";
2470[8][8]next;
2471[8][8]switch(select("Present Golden Key:????")) {
2472[8][8]case 1:
2473[8][8][8]mes "[Steward]";
2474[8][8][8]mes "Ah, Master "+strcharinfo(0)+" I've been expecting your arrival. Please, this way.";
2475[8][8][8]close2;
2476[8][8][8]warp "kh_mansion",21,14;
2477[8][8][8]end;
2478[8][8]case 2:
2479[8][8][8]mes "[Steward]";
2480[8][8][8]mes "If you have not been invited by the master of this mansion, then I'm afraid that I must insist on your immediate departure!";
2481[8][8][8]close2;
2482[8][8][8]warp "lighthalzen",188,201;
2483[8][8][8]end;
2484[8][8]}
2485[8]}
2486[8]if ((KielHyreQuest >= 50) && (KielHyreQuest < 64) || (KielHyreQuest >= 70)) {
2487[8][8]mes "[Steward]";
2488[8][8]mes "Ah, Master "+strcharinfo(0)+" It is a pleasure to receive your company once again. Would you like to see my master?";
2489[8][8]next;
2490[8][8]switch(select("Yes:No")) {
2491[8][8]case 1:
2492[8][8][8]mes "[Steward]";
2493[8][8][8]mes "Very well Right this way~";
2494[8][8][8]close2;
2495[8][8][8]warp "kh_mansion",21,14;
2496[8][8][8]end;
2497[8][8]case 2:
2498[8][8][8]mes "[Steward]";
2499[8][8][8]mes "Very well Please make yourself at home.";
2500[8][8][8]close;
2501[8][8]}
2502[8]}
2503[8]if ((KielHyreQuest == 52) || (KielHyreQuest == 54) || (KielHyreQuest >= 64) && (KielHyreQuest <= 70)) {
2504[8][8]mes "[Steward]";
2505[8][8]mes "Ah, Master "+strcharinfo(0)+" It is a pleasure to receive your company once again. Would you like to see my master, or...?";
2506[8][8]next;
2507[8][8]switch(select("^FF0000Kiel Hyre^000000:^3355FFMitchell^000000")) {
2508[8][8]case 1:
2509[8][8][8]mes "[Steward]";
2510[8][8][8]mes "Very well Right this way~";
2511[8][8][8]close2;
2512[8][8][8]warp "kh_mansion",21,14;
2513[8][8][8]end;
2514[8][8]case 2:
2515[8][8][8]mes "[Steward]";
2516[8][8][8]mes "Oh...? You must be here to deliver good news. Excuse me...";
2517[8][8][8]next;
2518[8][8][8]mes "^3355FFThe Steward furtively^000000 ^3355FFlooked around to check^000000 ^3355FFif anyone is watching him.^000000";
2519[8][8][8]next;
2520[8][8][8]mes "[Steward]";
2521[8][8][8]mes "I believe it should be safe enough to let you go see him now.. Please, hurry this way.";
2522[8][8][8]close2;
2523[8][8][8]warp "kh_mansion",20,87;
2524[8][8][8]end;
2525[8][8]}
2526[8]}
2527}
2528
2529//----------------------------------------------------------------------------
2530// Kiel Hyre
2531//----------------------------------------------------------------------------
2532kh_mansion,22,28,4[8]script[8]Kiel Hyre#kh[8]903,{
2533[8]if (checkweight(908,200) == 0) {
2534[8][8]mes "^3355FFJust a second.. You're carrying too many items with you right now, so you'll need to free up more inventory space first...^000000";
2535[8][8]close;
2536[8]}
2537
2538[8]cutin "kh_kyel01",2;
2539[8]if (KielHyreQuest < 46) {
2540[8][8]mes "[Kiel Hyre]";
2541[8][8]mes "........ ........ ............";
2542[8][8]close2;
2543[8][8]cutin "",255;
2544[8][8]end;
2545[8]}
2546
2547[8]else if (KielHyreQuest == 46) {
2548[8][8]cutin "kh_kyel01",2;
2549[8][8]mes "[Kiel Hyre]";
2550[8][8]mes "Ah, you must be "+strcharinfo(0)+" I'd like to thank you for saving my life. You must have many questions to ask me, so I'll do my best to give you answers.";
2551[8][8]next;
2552[8][8]while(1) {
2553[8][8][8]switch(select("Robots?:^3355FFKiehl^000000?:^FF0000Elly^000000's button?")) {
2554[8][8][8]case 1:
2555[8][8][8][8]mes "[Kiel Hyre]";
2556[8][8][8][8]mes "I've been researching robotics for thirty-two years now. I'm proud to say that I've succeeded where the great Sage Varmundt did not.";
2557[8][8][8][8]next;
2558[8][8][8][8]mes "[Kiel Hyre]";
2559[8][8][8][8]mes "It's been my dream to develop humanoid robots from humans. Those Guardians might be robots too, but they don't operate using free will.";
2560[8][8][8][8]next;
2561[8][8][8][8]mes "[Kiel Hyre]";
2562[8][8][8][8]mes "If you'd like to know more of the specifics concerning robotics, why don't you speak with ^3355FFAllysia^000000? She can explain everything much more succinctly than I can. I tend to ramble...";
2563[8][8][8][8]set .@KHQRead,.@KHQRead+1;
2564[8][8][8][8]next;
2565[8][8][8][8]break;
2566[8][8][8]case 2:
2567[8][8][8][8]mes "[Kiel Hyre]";
2568[8][8][8][8]mes "^3355FFKiehl^000000 is my only son, but the love of my life died after giving birth to him. I'll admit that he's a genius in mechanical design and development.";
2569[8][8][8][8]next;
2570[8][8][8][8]mes "[Kiel Hyre]";
2571[8][8][8][8]mes "He's largely responsible for the creation of Third Generation robots like Elly Unfortunately, he's trying to modify his creations for some sinister purpose.";
2572[8][8][8][8]next;
2573[8][8][8][8]mes "[Kiel Hyre]";
2574[8][8][8][8]mes "I tried to stop him, but I ended up getting locked inside the factory I don't know why he wants to do this. I still have absolutely no clue...";
2575[8][8][8][8]set .@KHQRead,.@KHQRead+1;
2576[8][8][8][8]next;
2577[8][8][8][8]break;
2578[8][8][8]case 3:
2579[8][8][8][8]mes "[Kiel Hyre]";
2580[8][8][8][8]mes "That button Elly was holding has ^3355FFKiehl's emblem^000000 engraved on it. Ah, and that man in black menacing the students? That was probably ^3355FFKaiser^000000, Kiehl's bodyguard.";
2581[8][8][8][8]next;
2582[8][8][8][8]mes "[Kiel Hyre]";
2583[8][8][8][8]mes "Kaiser.. I don't know anything about him I've never even seen his face! Kiehl just hired him without letting me know...";
2584[8][8][8][8]set .@KHQRead,.@KHQRead+1;
2585[8][8][8][8]next;
2586[8][8][8][8]break;
2587[8][8][8]}
2588[8][8][8]if (.@KHQRead == 3) {
2589[8][8][8][8]mes "[Kiel Hyre]";
2590[8][8][8][8]mes "If you don't have anymore questions for me, then would you please let me rest?? I'm still not feeling well from the time I was locked up in the factory.";
2591[8][8][8][8]delitem 7493,1; //Golden_Key
2592[8][8][8][8]delitem 7494,1; //Kiel_Button
2593[8][8][8][8]set KielHyreQuest,48;
2594[8][8][8][8]break;
2595[8][8][8]}
2596[8][8]}
2597[8]}
2598[8]else if (KielHyreQuest == 48) {
2599[8][8]mes "[Kiel Hyre]";
2600[8][8]mes "Ah, I almost forgot Please, take this as a little reward for saving my life.";
2601[8][8]getitem 12105,1; //Taming_Gift_Set
2602[8][8]getexp (checkre(3))?70000:700000,0;
2603[8][8]set KielHyreQuest,50;
2604[8]}
2605[8]else if ((KielHyreQuest >= 50) && (KielHyreQuest < 64)) {
2606[8][8]mes "[Kiel Hyre]";
2607[8][8]mes "If you don't have anymore questions for me, then would you please let me rest?? I'm still not feeling well from the time I was locked up in the factory.";
2608[8]}
2609[8]else if (KielHyreQuest == 64) {
2610[8][8]cutin "kh_kyel01",2;
2611[8][8]mes "[Kiel Hyre]";
2612[8][8]mes "Hm? Did you have something that you wanted to ask me?";
2613[8][8]next;
2614[8][8]mes "["+strcharinfo(0)+"]";
2615[8][8]mes "I don't have enough concrete evidence yet, but I might have some questions soon enough.";
2616[8]}
2617[8]else if (KielHyreQuest == 68) {
2618[8][8]cutin "kh_kyel02",2;
2619[8][8]mes "[Kiel Hyre]";
2620[8][8]mes "Ah, "+strcharinfo(0)+" It's you. So how can I help you today?";
2621[8][8]next;
2622[8][8]select("About ^3355FFAllysia^000000...");
2623[8][8]mes "["+strcharinfo(0)+"]";
2624[8][8]mes "You know, I was looking through this deserted house in Juno, and discovered an old portrait of a woman that looks just like Allysia.";
2625[8][8]next;
2626[8][8]cutin "kh_kyel02",2;
2627[8][8]mes "[Kiel Hyre]";
2628[8][8]mes "Oh.. Is that all?";
2629[8][8]mes "I thought you had a robotics question.";
2630[8][8]next;
2631[8][8]cutin "kh_Kyel03",2;
2632[8][8]mes "[Kiel Hyre]";
2633[8][8]mes "Anyway, that's a strange coincidence Well, I suppose it's not so strange to find look-a-likes for other people...";
2634[8][8]next;
2635[8][8]mes "["+strcharinfo(0)+"]";
2636[8][8]mes "I don't think it's just a coincidence. The woman in that thirty year old portrait was also named Allysia, and she worked at Orsimier street in Juno. Does that ring a bell?";
2637[8][8]next;
2638[8][8]cutin "kh_kyel02",2;
2639[8][8]mes "[Kiel Hyre]";
2640[8][8]mes "..... ........ ............";
2641[8][8]next;
2642[8][8]cutin "kh_kyel01",2;
2643[8][8]mes "["+strcharinfo(0)+"]";
2644[8][8]mes "Then I thought that this Allysia must have been the woman that you loved, and that you based your robot's apperance on her.";
2645[8][8]next;
2646[8][8]cutin "kh_kyel02",2;
2647[8][8]mes "[Kiel Hyre]";
2648[8][8]mes "............";
2649[8][8]next;
2650[8][8]cutin "kh_kyel01",2;
2651[8][8]mes "["+strcharinfo(0)+"]";
2652[8][8]mes "I think this is what happened: when you were a young, poor man, you fell in love with Allysia. However, she was in love with Rosimier, who was rich and powerful.";
2653[8][8]next;
2654[8][8]mes "["+strcharinfo(0)+"]";
2655[8][8]mes "However, Rosimier was betrothed to some other woman, and he ended up marrying his fiancee, thus breaking Allysia's heart.";
2656[8][8]next;
2657[8][8]mes "["+strcharinfo(0)+"]";
2658[8][8]mes "Feeling betrayed, her heart broken, Allysia jumped into a river. Then, you decided to get revenge on Rosimier, so you ended up joining Rekenber Corporation!";
2659[8][8]next;
2660[8][8]cutin "kh_Kyel03",2;
2661[8][8]mes "[Kiel Hyre]";
2662[8][8]mes "Hahahahahahaha!";
2663[8][8]mes "Oh, what an imagination~ That's very ridiculous.. Though, I admit, maybe I did design Allysia after seeing that woman long ago.";
2664[8][8]next;
2665[8][8]mes "[Kiel Hyre]";
2666[8][8]mes "I'd almost forgotten about her! I think we were friends... Though, where did you get the idea that I might have been in love with her?";
2667[8][8]next;
2668[8][8]select("Reveal Kiel's Portrait from Hut");
2669[8][8]cutin "kh_kyel02",2;
2670[8][8]mes "[Kiel Hyre]";
2671[8][8]mes "Wh-what.. How did.. Where did you...?";
2672[8][8]next;
2673[8][8]mes "["+strcharinfo(0)+"]";
2674[8][8]mes "Kiel Hyre, I found this portrait of you as a young man from the house of the man that bought Allysia's ring I even spoke to the fisherman that discovered Allysia's body.";
2675[8][8]next;
2676[8][8]mes "["+strcharinfo(0)+"]";
2677[8][8]mes "You paid an awful lot of money to buy Allysia's ring. How can you not tell me that you didn't love her?";
2678[8][8]next;
2679[8][8]cutin "kh_Kyel03",2;
2680[8][8]mes "[Kiel Hyre]";
2681[8][8]mes "*Sigh...* You got me, you got me I didn't want you to learn the truth. You are correct I loved Allysia, and designed my robot to look just like her.";
2682[8][8]next;
2683[8][8]mes "[Kiel Hyre]";
2684[8][8]mes "I could never forget her Ever. But I would never do anything to harm the Rosimiers! I'm a scientist!";
2685[8][8]mes "I hated him when I was young, but things are different now!";
2686[8][8]next;
2687[8][8]mes "[Kiel Hyre]";
2688[8][8]mes "I shed no tears when the Rosimiers fell, but I wasn't responsible. Besides, I didn't have the resources or the capability to cause it...";
2689[8][8]next;
2690[8][8]cutin "kh_kyel02",2;
2691[8][8]mes "["+strcharinfo(0)+"]";
2692[8][8]mes "I'm afraid that the evidence shows otherwise.";
2693[8][8]next;
2694[8][8]select("Reveal Portrait of Rosimiers");
2695[8][8]mes "["+strcharinfo(0)+"]";
2696[8][8]mes "Take a good look at this portrait that I found at the Rosimiers' old house. Do you see anything... incriminating?";
2697[8][8]next;
2698[8][8]cutin "kh_Kyel03",2;
2699[8][8]mes "[Kiel Hyre]";
2700[8][8]mes "Aside from that James Rosimier, you mean? No! I don't see anything wrong with this picture at all.";
2701[8][8]next;
2702[8][8]mes "["+strcharinfo(0)+"]";
2703[8][8]mes "Take a good look at the pocketwatch in the portrait. That's the pocketwatch you wear today, isn't it?";
2704[8][8]next;
2705[8][8]cutin "kh_kyel02",2;
2706[8][8]mes "[Kiel Hyre]";
2707[8][8]mes "...!!!";
2708[8][8]next;
2709[8][8]mes "["+strcharinfo(0)+"]";
2710[8][8]mes "You might not have caused the downfall of the Rosimiers yourself, but with the aid of the Rekenber Corporation, I'd say it was entirely possible!";
2711[8][8]next;
2712[8][8]cutin "kh_Kyel03",2;
2713[8][8]mes "[Kiel Hyre]";
2714[8][8]mes "Well played, adventurer Well played. I don't regret what I did: they killed my Allysia! If James didn't betray her, if only he didn't drive her to commit suicide...";
2715[8][8]next;
2716[8][8]mes "["+strcharinfo(0)+"]";
2717[8][8]mes "That's where you're wrong!";
2718[8][8]mes "Allysia was killed, she didn't commit suicide. Take a good look at this note right here!";
2719[8][8]next;
2720[8][8]mes "[Kiel Hyre]";
2721[8][8]mes "What?!";
2722[8][8]next;
2723[8][8]select("Show James's Note");
2724[8][8]mes "[Kiel Hyre]";
2725[8][8]mes "What does this prove?";
2726[8][8]mes "This doesn't show that James didn't betray Allysia How does this change anything?";
2727[8][8]mes "She's dead, nothing I can do will bring her back to me!";
2728[8][8]next;
2729[8][8]mes "["+strcharinfo(0)+"]";
2730[8][8]mes "I never said James didn't betray her. Look at the date on the note. James made plans to run away with her on August 20th. However, her body was found on the same day.";
2731[8][8]next;
2732[8][8]mes "["+strcharinfo(0)+"]";
2733[8][8]mes "Ergo, Allysia must have died on August 19th. If she was planning to run away with her love on the next day, then she had no reason to kill herself!";
2734[8][8]next;
2735[8][8]mes "[Kiel Hyre]";
2736[8][8]mes "No, that's not right!";
2737[8][8]mes "She probably couldn't trust me! She must have realized she was nothing but another toy to him!";
2738[8][8]next;
2739[8][8]mes "["+strcharinfo(0)+"]";
2740[8][8]mes "Oh yeah? I say she jumped into the river because you met her on that day. Now, take a good look at this!";
2741[8][8]next;
2742[8][8]select("Show K.H.'s note");
2743[8][8]mes "["+strcharinfo(0)+"]";
2744[8][8]mes "This note was written by a man with your initials, K.H. These initials were also signed on her portrait. You must have written this note: there's too many coincidences!";
2745[8][8]next;
2746[8][8]mes "["+strcharinfo(0)+"]";
2747[8][8]mes "According to this note, you told Allysia that you wanted to see her again at the place you first met I think you did see her again.. on August 19th, the day she died!";
2748[8][8]next;
2749[8][8]mes "["+strcharinfo(0)+"]";
2750[8][8]mes "I'm assuming the place you two first met was near the river. No more of your lies: Tell me what really happened!";
2751[8][8]next;
2752[8][8]cutin "kh_kyel02",2;
2753[8][8]mes "[Kiel Hyre]";
2754[8][8]mes "........... ........ ......";
2755[8][8]next;
2756[8][8]cutin "kh_Kyel03",2;
2757[8][8]mes "[Kiel Hyre]";
2758[8][8]mes "Hah... Ha ha ha.. Yes... That's right.. That horrible night I remember it well.. .....................";
2759[8][8]next;
2760[8][8]cutin "kh_kyel02",2;
2761[8][8]mes "[Kiel Hyre]";
2762[8][8]mes "That night, when she came to the river to meet me as I had asked, I begged her to run away with me, instead of waiting for that James.";
2763[8][8]next;
2764[8][8]mes "[Kiel Hyre]";
2765[8][8]mes "She insisted that James never betrayed her, and he promised to take her away with him the next day. Can you imagine how that made me feel? I was nothing to her.";
2766[8][8]next;
2767[8][8]mes "[Kiel Hyre]";
2768[8][8]mes "My feelings didn't matter to her at all! She kept fidgeting with that ring...I lost control and tried to take that damned thing away from her, and throw it into the river...";
2769[8][8]next;
2770[8][8]mes "[Kiel Hyre]";
2771[8][8]mes "But you know what?";
2772[8][8]mes "She struggled, she actually fought me! It was just a small fight, but then, before I knew it, the ground underneath us collapsed and... the rains...";
2773[8][8]next;
2774[8][8]select(".........");
2775[8][8]mes "[Kiel Hyre]";
2776[8][8]mes "I'm not sure what it was. The rain weakened the ground, something went wrong... and she just... just.. The river swallowed her.. I felt empty. She was gone. ";
2777[8][8]delitem 7499,1; //Family_Portrait
2778[8][8]delitem 7500,1; //Elysia_Portrait
2779[8][8]delitem 7501,1; //Kyll_Hyre_Letter2
2780[8][8]delitem 7502,1; //Piece_Memo_Of_James
2781[8][8]delitem 7503,1; //Man_Portrait
2782[8][8]set KielHyreQuest,70;
2783[8][8]close2;
2784[8][8]cutin "",255;
2785[8][8]end;
2786[8]}
2787[8]else if (KielHyreQuest <= 70) {
2788[8][8]cutin "kh_kyel01",2;
2789[8][8]mes "[Kiel Hyre]";
2790[8][8]mes "You already know that she was found dead the next day. But what really broke my heart was that she held that ring so tightly in her hand, even in death...";
2791[8][8]next;
2792[8][8]cutin "kh_kyel03",2;
2793[8][8]mes "[Kiel Hyre]";
2794[8][8]mes "His family had everything while I had nothing. And he had the audacity to take Allysia away from me?!";
2795[8][8]mes "How could that be right?";
2796[8][8]next;
2797[8][8]mes "[Kiel Hyre]";
2798[8][8]mes "Even though she had passed away, I still wanted to prove to Allysia what kind of ugly person James really was That was when I joined the Rekenber Corporation.";
2799[8][8]next;
2800[8][8]mes "[Kiel Hyre]";
2801[8][8]mes "I designed the very first First Generation Robot, which I named Allysia, and sold the designs to Rekenber. I gave them robots, and they gave me money, power, obedient subordinates.";
2802[8][8]next;
2803[8][8]mes "[Kiel Hyre]";
2804[8][8]mes "Of course I knew they'd use my robots for spying and killing!";
2805[8][8]mes "But you know what? It didn't matter so long as they gave me the means to my revenge. It was the perfect partnership, really.";
2806[8][8]next;
2807[8][8]mes "[Kiel Hyre]";
2808[8][8]mes "You've got me right where you want me Who are you working for, and what exactly do you want? My designs?";
2809[8][8]mes "My death? Everything...?";
2810[8][8]next;
2811[8][8]cutin "kh_kyel01",2;
2812[8][8]mes "["+strcharinfo(0)+"]";
2813[8][8]mes "Actually, I just want to ask about the nature of your professional relationship with the Rekenber Corporation And about Kiehl.";
2814[8][8]next;
2815[8][8]mes "[Kiel Hyre]";
2816[8][8]mes "Kiehl, eh? After hearing my crazy story, I'm guessing that you already suspect the truth about him... He's also a robot, specifically the first of the Second Generation models.";
2817[8][8]next;
2818[8][8]mes "[Kiel Hyre]";
2819[8][8]mes "His mind was developed using an experimental, and unstable, form of the Condensed Magic Spell Scrolls. He was the only Second Generation robot that I was allowed to keep.";
2820[8][8]next;
2821[8][8]mes "[Kiel Hyre]";
2822[8][8]mes "I've become very attached to Kiehl. It's not surprising, seeing that robotics have become my life. I even raised him as my own son, and taught him everything about robotics";
2823[8][8]next;
2824[8][8]mes "[Kiel Hyre]";
2825[8][8]mes "Kiehl is now a genius, and has even developed the Third Generation of robots Unfortunately, I failed to properly raise him with human morals and ethics.";
2826[8][8]next;
2827[8][8]select("......");
2828[8][8]mes "[Kiel Hyre]";
2829[8][8]mes "He's been transforming the Third Generation robots into killing machines. That's why I tried to put them all into the academy, so they could learn human behavior.";
2830[8][8]next;
2831[8][8]mes "[Kiel Hyre]";
2832[8][8]mes "Although the academy has delayed Kiehl's plans, he has succeeded into converting all of the robots into uncontrollable engines of mass destruction.";
2833[8][8]next;
2834[8][8]mes "[Kiel Hyre]";
2835[8][8]mes "Yes, he's been working closely with Rekenber Their true objective is to create killing machines for Rekenber's use.";
2836[8][8]next;
2837[8][8]mes "[Kiel Hyre]";
2838[8][8]mes "You know all the secrets of my past now. I'm not upset with you or anything, but I do have something that I want to ask of you.";
2839[8][8]next;
2840[8][8]mes "[Kiel Hyre]";
2841[8][8]mes "Please! Stop Kiehl!";
2842[8][8]mes "I don't want his madness to destroy any more robots!";
2843[8][8]mes "I see each and every one of them as one of my children!";
2844[8][8]next;
2845[8][8]mes "[Kiel Hyre]";
2846[8][8]mes "I know that I must take full responsibility for all that has happened. I promise to take any punishment for my actions once everything has been resolved.";
2847[8][8]next;
2848[8][8]select("Accept:Okay:Nod");
2849[8][8]mes "[Kiel Hyre]";
2850[8][8]mes "Thank you so much!";
2851[8][8]mes "You can find Kiehl in the underground level in this mansion.";
2852[8][8]next;
2853[8][8]mes "[Kiel Hyre]";
2854[8][8]mes "He stays in the old room where he was created, but he reconstructed it as some kind of cave to keep everyone out, including me. Yes, he doesn't trust anyone anymore...";
2855[8][8]next;
2856[8][8]mes "[Kiel Hyre]";
2857[8][8]mes "When you find him, I want you to take Allysia's ring out of his heart. If you remove it, that should stop him from going berserk.";
2858[8][8]next;
2859[8][8]select("Allysia's Ring?");
2860[8][8]mes "[Kiel Hyre]";
2861[8][8]mes "Yes... Her ring is the beginning of everything I put that in his heart so that I'd never forget what the Rosimiers did to me.";
2862[8][8]next;
2863[8][8]mes "[Kiel Hyre]";
2864[8][8]mes "I think Kiehl's grown so powerful that normal weapons might not work on him anymore. Use this device that will cause his power supply to fluctuate.";
2865[8][8]getitem 7504,1; //Toy_Motor
2866[8][8]next;
2867[8][8]cutin "kh_kyel03",2;
2868[8][8]mes "[Kiel Hyre]";
2869[8][8]mes "If you successfully attach this to Kiehl's body, then he won't be able to use his body's full power. While he's weakened, open up his chest and get the ring from his heart.";
2870[8][8]next;
2871[8][8]mes "[Kiel Hyre]";
2872[8][8]mes "Let me know once you're ready. Then, I'll guide you Kiehl's room.";
2873[8][8]set KielHyreQuest,74;
2874[8]}
2875[8]else if ((KielHyreQuest >= 74) && (KielHyreQuest <= 104)) {
2876[8][8]mes "[Kiel Hyre]";
2877[8][8]mes "Are you ready to confront Kiehl now?";
2878[8][8]next;
2879[8][8]switch(select("Yes:No")) {
2880[8][8]case 1:
2881[8][8][8]mes "[Kiel Hyre]";
2882[8][8][8]mes "There... the secret passage is open now Just go to the right of me, but be careful. Kiehl is extremely dangerous.";
2883[8][8][8]close2;
2884[8][8][8]enablenpc "Kiehl_Room_Warp";
2885[8][8][8]donpcevent "Kiehl_Room_Warp::OnEnable";
2886[8][8][8]cutin "",255;
2887[8][8][8]end;
2888[8][8][8]break;
2889[8][8]case 2:
2890[8][8][8]mes "[Kiel Hyre]";
2891[8][8][8]mes "Please take your time. I imagine that it won't be easy.";
2892[8][8][8]break;
2893[8][8]}
2894[8]}
2895[8]else if ((KielHyreQuest >= 74) && (KielHyreQuest <= 106)) {
2896[8][8]cutin "kh_kyel01",2;
2897[8][8]mes "[Kiel Hyre]";
2898[8][8]mes "You're back...!";
2899[8][8]mes "So were you able to retrieve Allysia's Ring from Kiehl's heart?";
2900[8][8]next;
2901[8][8]if (countitem(7508) < 1) {
2902[8][8][8]mes "[Kiel Hyre]";
2903[8][8][8]mes "You mean... You don't have it?";
2904[8][8][8]mes "Please, retrieve Allysia's Ring from Kiehl's heart!";
2905[8][8][8]next;
2906[8][8][8]enablenpc "Kiehl_Room_Warp";
2907[8][8][8]donpcevent "Kiehl_Room_Warp::OnEnable";
2908[8][8][8]close2;
2909[8][8][8]cutin "",255;
2910[8][8][8]end;
2911[8][8]}
2912[8][8]mes "[Kiel Hyre]";
2913[8][8]mes "Wh-what happened...?";
2914[8][8]mes "Kiehl developed a new body for himself? Th-that would make him a Fourth Generation robot. I had no idea he was this smart.";
2915[8][8]next;
2916[8][8]mes "[Kiel Hyre]";
2917[8][8]mes "Wait, now that I think about it, I did see robot bodies that looked like Kiehl when I was locked in the factory. So he was using those copies to develop personal upgrades.";
2918[8][8]next;
2919[8][8]mes "[Kiel Hyre]";
2920[8][8]mes "Here, please take this Keycard which will let you enter and investigate the deepest levels of the factory I'll investigate Kiehl's room.";
2921[8][8]getitem 7509,1; //Fancy_Key_Card
2922[8][8]set KielHyreQuest,108;
2923[8][8]next;
2924[8][8]if (Sex == SEX_FEMALE) {
2925[8][8][8]if (getpartnerid() == 0) set .@KHTitle$,"Miss";
2926[8][8][8]else set .@KHSTitle$,"Mrs";
2927[8][8]}
2928[8][8]else set .@KHTitle$,"Mr [Kiel Hyre]";
2929[8][8]mes "Kiehl is my responsibility.. No matter what the cost may be, I've got to stop him! Oh, and here, please take this with my thanks for all of your help, "+.@KHTitle$+" "+strcharinfo(0)+".";
2930[8][8]getitem 616,1; //Old Card Album
2931[8][8]delitem 7508,1; //Elysia_Ring
2932[8][8]getexp (checkre(3))?100000:1000000,0;
2933[8]}
2934[8]else if (KielHyreQuest >= 108) {
2935[8][8]mes "[Kiel Hyre]";
2936[8][8]mes "..... ........ ............";
2937[8]}
2938[8]close2;
2939[8]cutin "",255;
2940[8]end;
2941}
2942
2943
2944//----------------------------------------------------------------------------
2945// Allysia
2946//----------------------------------------------------------------------------
2947kh_mansion,18,30,4[8]script[8]Allysia[8]894,{
2948[8]if (KielHyreQuest < 46) {
2949[8][8]mes "[Allysia]";
2950[8][8]mes "Who are you?";
2951[8][8]mes "How did you get here?";
2952[8][8]mes "Go away";
2953[8][8]close;
2954[8]}
2955[8]cutin "kh_ellisia",2;
2956[8]if (KielHyreQuest < 70) {
2957[8][8]mes "[Allysia]";
2958[8][8]mes "You must be surprised by everything that's been happening. Maybe everything would be easier to understand if I explained about robots?";
2959[8][8]next;
2960[8][8]switch(select("Yes:No")) {
2961[8][8]case 1:
2962[8][8][8]mes "[Allysia]";
2963[8][8][8]mes "The robots you've been encountering are automated mechanical puppets that can independantly think and operate Many sages have tried to develop their own robots, but have failed.";
2964[8][8][8]next;
2965[8][8][8]mes "[Allysia]";
2966[8][8][8]mes "My master, Kiel Hyre, has been studying robotics since he was twenty years old, and has developed three different generations of robots, the first, second, and third generations.";
2967[8][8][8]next;
2968[8][8][8]switch(select("First Generation:Second Generation:Third Generation")) {
2969[8][8][8]case 1:
2970[8][8][8][8]mes "[Allysia]";
2971[8][8][8][8]mes "I am a good example of one of Kiel Hyre's First Generation robots. I was constructed using a heavy mechanical framework, a robotic heart, and chemically synthesized skin covering.";
2972[8][8][8][8]next;
2973[8][8][8][8]mes "[Allysia]";
2974[8][8][8][8]mes "My central processing unit, equivalent to your brain, is essentially a Memory Scroll based on the design of the Magic Spell Scrolls that you adventurers use in battle.";
2975[8][8][8][8]next;
2976[8][8][8][8]mes "[Allysia]";
2977[8][8][8][8]mes "I'm the oldest type of humanoid robot, so I weigh a lot, and my mind can only process a limited amount of data. Therefore, I can't express emotion similarly to a human.";
2978[8][8][8][8]next;
2979[8][8][8][8]break;
2980[8][8][8]case 2:
2981[8][8][8][8]mes "[Allysia]";
2982[8][8][8][8]mes "The First Generation robots were developed from mostly mechanical parts, but the Second Generation robots incorporated Homunculus science and technology.";
2983[8][8][8][8]next;
2984[8][8][8][8]mes "[Allysia]";
2985[8][8][8][8]mes "Second Generation robots are more life-like since they have artifically created skin and flesh, although they still are constructed from a heavy mechanical framework.";
2986[8][8][8][8]next;
2987[8][8][8][8]mes "[Allysia]";
2988[8][8][8][8]mes "Sage elemental scroll technology was also used to develop the Condensed Memory Scroll, a central processing unit superior to that used in First Generation robots.";
2989[8][8][8][8]next;
2990[8][8][8][8]mes "[Allysia]";
2991[8][8][8][8]mes "Although Condensed Memory Scrolls were 100,000 times more powerful than ordinary Memory Scrolls, they were problematic and were prone to too many error problems.";
2992[8][8][8][8]next;
2993[8][8][8][8]mes "[Allysia]";
2994[8][8][8][8]mes "Second Generation robots were capable of expressing human-like emotion, but their production halted after six years because they were considered faulty.";
2995[8][8][8][8]next;
2996[8][8][8][8]break;
2997[8][8][8]case 3:
2998[8][8][8][8]mes "[Allysia]";
2999[8][8][8][8]mes "Third Generation robots were mostly designed by Kiel Hyre's son, Kiehl, and don't use a mechanical framework at all: the entire body is basically a homunculus.";
3000[8][8][8][8]next;
3001[8][8][8][8]mes "[Allysia]";
3002[8][8][8][8]mes "With their organic bodies and advanced artificial hearts made from imitation Ymir Heart Pieces, they can experience physiologic phenomena just like ordinary humans.";
3003[8][8][8][8]next;
3004[8][8][8][8]mes "[Allysia]";
3005[8][8][8][8]mes "Kiehl was able to develop a more stable form of the Condensed Memory Scroll which does not suffer from critical errors, and can be cheaply mass processed.";
3006[8][8][8][8]next;
3007[8][8][8][8]mes "[Allysia]";
3008[8][8][8][8]mes "Elly is actually a Third Generation prototype. Once we optimize the prototypes, we will begin mass production In fact, the academy is our prototype testing ground.";
3009[8][8][8][8]next;
3010[8][8][8][8]mes "[Allysia]";
3011[8][8][8][8]mes "The fact that out prototype robots can interact just like real humans is proof of our success in robotics.";
3012[8][8][8][8]next;
3013[8][8][8][8]break;
3014[8][8][8]}
3015[8][8]case 2:
3016[8][8][8]mes "[Allysia]";
3017[8][8][8]mes "Please let me know if you'd like to learn more about Kiel Hyre's robots.";
3018[8][8][8]break;
3019[8][8]}
3020[8]}
3021[8]else {
3022[8][8]mes "[Allysia]";
3023[8][8]mes "..... ........ ............";
3024[8]}
3025[8]close2;
3026[8]cutin "",255;
3027[8]end;
3028}
3029
3030//----------------------------------------------------------------------------
3031// Abduction triggering NPC
3032//----------------------------------------------------------------------------
3033lighthalzen,188,200,0[8]script[8]Abduction_trigger[8]-1,3,1,{
3034OnTouch:
3035[8]if (KielHyreQuest == 50) {
3036[8][8]mes "^3355FFAs you walked out of the mansion, something smashed the top of your head, and you instantly lose consciousness...";
3037[8][8]close2;
3038[8][8]percentheal -99,0;
3039[8][8]warp "kh_mansion",30,75;
3040[8]}
3041[8]end;
3042}
3043
3044//----------------------------------------------------------------------------
3045// Mysterious Woman "Mitchell Layla"
3046//----------------------------------------------------------------------------
3047kh_mansion,25,79,4[8]script[8]Mysterious Woman#kh[8]727,3,3,{
3048
3049OnTouch:
3050[8]if (KielHyreQuest == 50) {
3051[8][8]mes "^3355FFYou awaken with your head painfully throbbing, and a mysterious woman standing in front of you.^000000";
3052[8][8]next;
3053[8][8]mes "[??????]";
3054[8][8]mes "Hm? Oh, you're awake earlier than I thought You must feel confused, but listen carefully. If you don't, then I can't guarantee your safety, okay? Alright.";
3055[8][8]next;
3056[8][8]mes "[??????]";
3057[8][8]mes "All you need to know it that I'm a secret agent for the Schwaltzvalt Republic government. We're investigating abnormal activity between Kiel Hyre and the Rekenber Corporation.";
3058[8][8]next;
3059[8][8]mes "[??????]";
3060[8][8]mes "We saw you enter the mansion and speak to Kiel Hyre, so basically you're here for questioning Now tell me the truth. How do you know Kiel Hyre?";
3061[8][8]next;
3062[8][8]switch(select("I'll tell you everything!:I don't know nuthin'!")) {
3063[8][8]case 2:
3064[8][8][8]mes "[??????]";
3065[8][8][8]mes "Don't...know...nuthin'?";
3066[8][8][8]mes "You sure about that? Only a select few can even speak with Kiel Hyre in person. You must have some connection to him. I'm right, aren't it?";
3067[8][8][8]next;
3068[8][8][8]mes "["+strcharinfo(0)+"]";
3069[8][8][8]mes "..... ........ ............";
3070[8][8][8]next;
3071[8][8][8]mes "[??????]";
3072[8][8][8]mes "Are you trying to protect him? I think that you might not understand what kind of person you're really dealing with here. I'll tell you what I've learned about him...";
3073[8][8][8]next;
3074[8][8][8]mes "[??????]";
3075[8][8][8]mes "Kiel Hyre. CEO of the Kiel Hyre Foundation, manufacturer of various machinery. His company started as a small Einbroch store whose technology slowly grew famous.";
3076[8][8][8]next;
3077[8][8][8]mes "[??????]";
3078[8][8][8]mes "Rekenber Corperation offered a merger with the Kiel Hyre Foundation. We're still not sure why they wanted Kiel Hyre in particular to repair and develop their Guardians...";
3079[8][8][8]next;
3080[8][8][8]mes "[??????]";
3081[8][8][8]mes "We're also not sure why they wanted to suddenly focus more on Guardian development. Then, all of a sudden, Kiel Hyre's son appears from out of nowehre.";
3082[8][8][8]next;
3083[8][8][8]mes "[??????]";
3084[8][8][8]mes "It's very suspicious There's no records of his birth or anything. Still, maybe Kiel Hyre really did have him with his secretary, Allysia Well, no one is really sure.";
3085[8][8][8]next;
3086[8][8][8]mes "[??????]";
3087[8][8][8]mes "In any case, Kiel Hyre's son and heir, Kiehl, helped his father establish this special academy as their way of giving back to society.";
3088[8][8][8]next;
3089[8][8][8]mes "[??????]";
3090[8][8][8]mes "Almost every corporation and organization tried to get their spies to enter this academy, but all of them were rejected it's strange. At least one of them should have made it in.";
3091[8][8][8]next;
3092[8][8][8]mes "[??????]";
3093[8][8][8]mes "And recently, Kiehl Hyre has held a secret meeting with Rekenber executives to announce his new project. He intends to create advanced humanoid robots that will replace guardians!";
3094[8][8][8]next;
3095[8][8][8]mes "[??????]";
3096[8][8][8]mes "Our spies reported that Kiel Hyre was nowhere to be seen at that meeting, as well as his trusted secretary, Allysia. He.. He just disappeared!";
3097[8][8][8]next;
3098[8][8][8]mes "[??????]";
3099[8][8][8]mes "Then, Kiel Hyre pops back in his mansion after all this time as if nothing happened! At the same time, Kiehl disappears, under the excuse of conducting research.";
3100[8][8][8]next;
3101[8][8][8]mes "[??????]";
3102[8][8][8]mes "Rekenber is sponsoring both Kiehl and Kiel, but there's some kind of conflict going on between father and son, I just know it! Now tell me, what's going on?";
3103[8][8][8]next;
3104[8][8][8]mes "[??????]";
3105[8][8][8]mes "I'm not sure how well you know this country, but the fact that Rekenber is invoved must tell you that these aren't good people. Tell me what you know about them!";
3106[8][8][8]next;
3107[8][8]case 1:
3108[8][8][8]mes "^3355FFYou tell the woman^000000 ^3355FFeverything you know^000000 ^3355FFabout Kiel Hyre. Your^000000 ^3355FFvoice quivers with sadness^000000 ^3355FFwhenever you mention Elly.^000000";
3109[8][8][8]next;
3110[8][8][8]mes "[??????]";
3111[8][8][8]mes "I see, I see.. That poor girl... So.. Your involvement in this is a coincidence? In that case, I want your help in our investigation.";
3112[8][8][8]next;
3113[8][8][8]switch(select("Okay:......")) {
3114[8][8][8]case 2:
3115[8][8][8][8]mes "[??????]";
3116[8][8][8][8]mes "If you don't cooperate, then I can't guarantee your safety, adventurer";
3117[8][8][8][8]next;
3118[8][8][8][8]mes "["+strcharinfo(0)+"]";
3119[8][8][8][8]mes "Huh? What...?";
3120[8][8][8][8]mes "What does that mean?";
3121[8][8][8][8]mes "Are you threatening me?";
3122[8][8][8][8]next;
3123[8][8][8][8]select("Just do what she says.");
3124[8][8][8]case 1:
3125[8][8][8][8]mes "[??????]";
3126[8][8][8][8]mes "Great I'm Agent Mitchell Layla From here on, you're working for the Schwaltzvalt Republic!";
3127[8][8][8][8]set KielHyreQuest,52;
3128[8][8][8][8]close;
3129[8][8][8]}
3130[8][8]}
3131[8]}
3132[8]else if (KielHyreQuest == 52) {
3133[8][8]mes "[Mitchell]";
3134[8][8]mes "I've got some new information for you There's an old lady in Juno that knew a woman named Allysia 30 years ago.";
3135[8][8]next;
3136[8][8]mes "[Mitchell]";
3137[8][8]mes "The clincher is that this Allysia from 30 years ago commited suicide, and is identical to Kiel Hyre's secretary, who is also named Allysia.";
3138[8][8]next;
3139[8][8]mes "[Mitchell]";
3140[8][8]mes "This is too much of a coincidence. I want you to go to Juno and investigate When you're done, talk to Kiel Hyre's steward, and he'll send you over to me.";
3141[8][8]next;
3142[8][8]mes "[Mitchell]";
3143[8][8]mes "Yeah, I know That guy actually works for me. Anyway, when you're ready to go to Juno, let me know, and you can board the federal airship.";
3144[8][8]set KielHyreQuest,54;
3145[8][8]close;
3146[8]}
3147[8]else if (KielHyreQuest == 54) {
3148[8][8]mes "[Mitchell]";
3149[8][8]mes "Are you ready?";
3150[8][8]mes "I'll let you board the federal Airship so you can get to Juno, and finish your mission quickly.";
3151[8][8]next;
3152[8][8]switch(select("Yes:No")) {
3153[8][8]case 1:
3154[8][8][8]mes "[Mitchell]";
3155[8][8][8]mes "Good luck. Once you complete your mission, make sure that you report to Kiel Hyre's steward so that he can send you to me.";
3156[8][8][8]close2;
3157[8][8][8]warp "yuno",54,209;
3158[8][8][8]end;
3159[8][8]case 2:
3160[8][8][8]mes "[Mitchell]";
3161[8][8][8]mes "Take your time.. But keep in mind that I'm not a patient woman!";
3162[8][8][8]close;
3163[8][8]}
3164[8]}
3165[8]else if (KielHyreQuest == 64) {
3166[8][8]mes "[Mitchell]";
3167[8][8]mes "Ah, you're back What do you have to report from your investigation?";
3168[8][8]next;
3169[8][8]mes "[Mitchell]";
3170[8][8]mes ".................... Ah, I see. Good work Why don't you go speak to Kiel Hyre and confront him with what you've learned about his past? Yeah, grill him.";
3171[8][8]next;
3172[8][8]mes "[Mitchell]";
3173[8][8]mes "Wear this hidden mic, so we can send help if you're endangered. I want you to find out who Kiel really is, and what's his relationship to Rekenber.";
3174[8][8]set KielHyreQuest,68;
3175[8][8]next;
3176[8][8]warp "kh_mansion",83,50;
3177[8][8]end;
3178[8]}
3179[8]else if (KielHyreQuest >= 68) {
3180[8][8]mes "[Mitchell]";
3181[8][8]mes "Shouldn't you be leaving about now?";
3182[8][8]next;
3183[8][8]warp "kh_mansion",83,50;
3184[8][8]end;
3185[8]}
3186}
3187
3188//----------------------------------------------------------------------------
3189// Warp portal into Kiehl's 'Room'
3190// - Anyone can enter
3191// - After 30-40 seonds this NPC should be disabled.
3192//----------------------------------------------------------------------------
3193kh_mansion,27,27,0[8]script[8]Kiehl_Room_Warp[8]45,2,2,{
3194OnTouch_:
3195[8]warp "kh_kiehl01",10,31;
3196[8]end;
3197
3198OnEnable:
3199[8]initnpctimer;
3200[8]specialeffect EF_SUMMONSLAVE;
3201[8]end;
3202
3203OnTimer30000:
3204[8]stopnpctimer;
3205[8]specialeffect EF_SUMMONSLAVE;
3206[8]disablenpc "Kiehl_Room_Warp";
3207[8]end;
3208
3209OnInit:
3210[8]disablenpc "Kiehl_Room_Warp";
3211[8]end;
3212}
3213
3214//============================================================================
3215// Rosimier NPCs and other Related NPCs
3216//============================================================================
3217
3218//----------------------------------------------------------------------------
3219// Odd Grandma
3220//----------------------------------------------------------------------------
3221yuno,257,140,4[8]script[8]Odd Grandma[8]846,{
3222[8]if (KielHyreQuest < 54) {
3223[8][8]mes "[Grandma]";
3224[8][8]mes "Where did you go, my darling? Where are you, my little dear?";
3225[8][8]close;
3226[8]}
3227[8]else if (KielHyreQuest == 54) {
3228[8][8]mes "[Grandma]";
3229[8][8]mes "Lullabye.. Say goodnight.. Hush little baby.. Go to sleeeeep~";
3230[8][8]next;
3231[8][8]switch(select("What are you doing?:Um, I don't see a baby...")) {
3232[8][8]case 1:
3233[8][8][8]mes "[Grandma]";
3234[8][8][8]mes "Oh? My baby won't stop crying and can't seem to sleep. She needs to rest, so I can go to work The house is so messy, and the boss is unhappy...";
3235[8][8][8]set KielHyreQuest,56;
3236[8][8][8]next;
3237[8][8][8]select("Um, I don't see a baby...");
3238[8][8][8]mes "[Grandma]";
3239[8][8][8]mes "What, she's right-- Well. Darling, what are you doing? Don't misbehave in front of our friend! Shhh, be good, my little girl.";
3240[8][8][8]//GetHEALTHSTATE VAR_CURSE 30
3241[8][8][8]close;
3242[8][8]case 2:
3243[8][8][8]mes "[Grandma]";
3244[8][8][8]mes "What are you...?";
3245[8][8][8]mes "Oh, look at that You made my little darling cry! Shhh, hush, little ^0000FFAllysia^000000 Go to sleeeeeeep~";
3246[8][8][8]close;
3247[8][8]}
3248[8]}
3249[8]else if ((KielHyreQuest >= 56) && (KielHyreQuest < 60)) {
3250[8][8]mes "[Grandma]";
3251[8][8]mes "Allysia...?!";
3252[8][8]mes "Allysia, where did you go? You were supposed to come home a while ago!";
3253[8][8]if (countitem(7500) < 1) {
3254[8][8][8]close;
3255[8][8]}
3256[8][8]else {
3257[8][8][8]next;
3258[8][8][8]switch(select("Allysia? Isn't she...")) {
3259[8][8][8]case 1:
3260[8][8][8][8]cutin "kh_ellisia_port",1;
3261[8][8][8][8]mes "^3355FFYou show Allysia's portrait to the old woman.^000000";
3262[8][8][8][8]next;
3263[8][8][8][8]cutin "",255;
3264[8][8][8][8]mes "[Grandma]";
3265[8][8][8][8]mes "Oh, do you know Allysia? She's been missing! She left home yesterday and hasn't come back! C-can you tell me where she is?!";
3266[8][8][8][8]close;
3267[8][8][8]}
3268[8][8]}
3269[8]}
3270[8]else if (KielHyreQuest >= 60) {
3271[8][8]mes "[Grandma]";
3272[8][8]mes "Don't worry, Allysia.. Mommy will always be here for you. There's no need to be sad...";
3273[8][8]close;
3274[8]}
3275}
3276
3277//----------------------------------------------------------------------------
3278// Old Lady; gives you the key to the Rosimier Mansion
3279//----------------------------------------------------------------------------
3280yuno,250,132,0[8]script[8]Old Lady#kh[8]711,{
3281[8]if (KielHyreQuest < 56) {
3282[8][8]mes "[Old Lady]";
3283[8][8]mes "Oooh, my legs and back are so sore. These old bones ache all over...";
3284[8][8]close;
3285[8]}
3286[8]else if (KielHyreQuest == 56) {
3287[8][8]if (checkweight(7498,1) == 0) {
3288[8][8][8]mes "^3355FFJust a second.. You're carrying too many items with you right now, so you'll need to free up more Inventory space first...^000000";
3289[8][8][8]close;
3290[8][8]}
3291[8][8]mes "[Old Lady]";
3292[8][8]mes "Goodness, I hate this weather! Reminds me of how old I've gotten!";
3293[8][8]mes "It chills my bones, it does!";
3294[8][8]next;
3295[8][8]switch(select("......:Do you know that grandma?")) {
3296[8][8]case 1:
3297[8][8][8]mes "[Old Lady]";
3298[8][8][8]mes "Damn it! If only I didn't have all those adventures in my youth! Then maybe I wouldn't suffer so in my advanced age!";
3299[8][8][8]close;
3300[8][8]case 2:
3301[8][8][8]mes "[Old Lady]";
3302[8][8][8]mes "Oh... Yes. She was the mother of my best friend, ^3355FFAllysia^000000. Ever since she commited suicide, things haven't been the same. Her mother lost her sanity...";
3303[8][8][8]next;
3304[8][8][8]select("Was ^3355FFAllysia^000000...?");
3305[8][8][8]mes "[Old Lady]";
3306[8][8][8]mes "Oh, Allysia was such a beautiful girl. So many men wanted her, especially that dashing James Rosimier I remember hearing that they were going to get married...";
3307[8][8][8]next;
3308[8][8][8]mes "[Old Lady]";
3309[8][8][8]mes "I was so happy for her!";
3310[8][8][8]mes "But then, all of a sudden, she killed herself. Well, that's what they all say Even today, I'm still not sure what happened.";
3311[8][8][8]next;
3312[8][8][8]select("Wait, who's James Rosimier?");
3313[8][8][8]mes "[Old Lady]";
3314[8][8][8]mes "Oh, James belonged to one of the oldest and richest families in Juno. Everything was going great for them, but some time after Allysia died, the family went bankrupt.";
3315[8][8][8]next;
3316[8][8][8]mes "[Old Lady]";
3317[8][8][8]mes "The city manages their old residence now. For some reason, they decided to entrust me with the master key to the Rosimier Mansion.";
3318[8][8][8]next;
3319[8][8][8]select("May I borrow the Master Key?");
3320[8][8][8]mes "[Old Lady]";
3321[8][8][8]mes "Well, I'm really not supposed to give it to just anyone, but I can tell that you're working with Allysia's best interests at heart.";
3322[8][8][8]next;
3323[8][8][8]mes "[Old Lady]";
3324[8][8][8]mes "However, you've got to make sure that you return it to me before the people from City Hall ask me for it Alright then, I hope you find what you're looking for.";
3325[8][8][8]getitem 7498,1; //Rosimier_Key
3326[8][8][8]set KielHyreQuest,58;
3327[8][8][8]close;
3328[8][8]}
3329[8]}
3330
3331[8]else if ((KielHyreQuest == 58) &&
3332[8][8](countitem(7499) < 1) ||
3333[8][8](countitem(7500) < 1) ||
3334[8][8](countitem(7501) < 1) ||
3335[8][8](countitem(7502) < 1)) {
3336[8][8]mes "[Old Lady]";
3337[8][8]mes "Please hurry and find whatever you're searching for in the Rosimier Mansion I might get in trouble if the people from City Hall come and ask me for the key...";
3338[8][8]close;
3339[8]}
3340
3341[8]else if ((KielHyreQuest == 58) &&
3342[8][8](countitem(7499) == 1) &&
3343[8][8](countitem(7500) == 1) &&
3344[8][8](countitem(7501) == 1) &&
3345[8][8](countitem(7502) == 1)) {
3346[8][8]mes "[Old Lady]";
3347[8][8]mes "Oh, you're finished searching the mansion?";
3348[8][8]mes "Depressing, isn't it?";
3349[8][8]mes "The creditors basically ransacked everything a very long time ago.";
3350[8][8]next;
3351[8][8]select("Why did ^3355FFAllysia^000000...?");
3352[8][8]mes "[Old Lady]";
3353[8][8]mes "Well, I know that James and Allysia were in love, and he promised to marry her. Now, supposedly his family already betrothed him to another woman.";
3354[8][8]next;
3355[8][8]mes "[Old Lady]";
3356[8][8]mes "Time went by, and he was forced to marry his fiancee. Allysia was pretty devastated. I think maybe that's what she... you know...";
3357[8][8]next;
3358[8][8]mes "[Old Lady]";
3359[8][8]mes "Listen, if you want to learn more about what happened, then I think you should talk to the ^3355FFfisherman that lives^000000 ^3355FFsouth of the Kiel Hyre Academy.^000000";
3360[8][8]next;
3361[8][8]mes "[Old Lady]";
3362[8][8]mes "He's the one that found Allysia's body in the river, so he might have a better idea of what had happened.";
3363[8][8]delitem 7498,1; //Rosimier_Key
3364[8][8]set KielHyreQuest,60;
3365[8][8]close;
3366[8]}
3367[8]else if (KielHyreQuest >= 60) {
3368[8][8]mes "[Old Lady]";
3369[8][8]mes "Yep, Rain's coming Can feel it in my bones.";
3370[8][8]close;
3371[8]}
3372}
3373
3374
3375//----------------------------------------------------------------------------
3376// Warp portal into Rosimier Mansion
3377//----------------------------------------------------------------------------
3378yuno,273,141,0[8]script[8]Rosimmir_Entrance[8]45,2,2,{
3379OnTouch_:
3380[8]if (countitem(7498) < 1) {
3381[8][8]mes "That mansion seems to have been destroyed by the time However, the door looks like it'd be still operational if you had the right key.";
3382[8][8]close;
3383[8]}
3384[8]else {
3385[8][8]warp "kh_rossi",20,92;
3386[8]}
3387[8]end;
3388}
3389
3390//----------------------------------------------------------------------------
3391// Rosimier Mansion, first floor; Table
3392//----------------------------------------------------------------------------
3393kh_rossi,23,23,0[8]script[8]Table#khr2[8]111,{
3394[8]if (checkweight(7499,1) == 0) {
3395[8][8]mes "^3355FFJust a second.. You're carrying too many items with you right now, so you'll need to free up more Inventory space first...^000000";
3396[8][8]close;
3397[8]}
3398[8]if (KielHyreQuest < 58) {
3399[8][8]mes "^3355FFThere's nothing here of importance to you.^000000";
3400[8][8]close;
3401[8]}
3402[8]else if (KielHyreQuest < 60) {
3403[8][8]if (countitem(7499) < 1) {
3404[8][8][8]cutin "kh_family_port",1;
3405[8][8][8]mes "^3355FFYou examine the table, and find a framed portrait inside the open drawer.^000000";
3406[8][8][8]getitem 7499,1; //Family_Portrait
3407[8][8]}
3408[8][8]else {
3409[8][8][8]mes "^3355FFThe open drawer of this desk is now empty.^000000";
3410[8][8]}
3411[8]}
3412[8]else{
3413[8][8]mes "^3355FFThis was the desk in which you obtained the Rosimier family portrait Its drawers are empty now.^000000";
3414[8][8]close;
3415[8]}
3416[8]close2;
3417[8]cutin "",255;
3418[8]end;
3419}
3420
3421//----------------------------------------------------------------------------
3422// Rosimier Mansion, first floor; Shelf
3423//----------------------------------------------------------------------------
3424kh_rossi,92,40,0[8]script[8]Shelf#khr[8]111,{
3425[8]if (checkweight(7500,1) == 0) {
3426[8][8]mes "^3355FFJust a second.. You're carrying too many items with you right now, so you'll need to free up more Inventory space first...^000000";
3427[8][8]close;
3428[8]}
3429[8]if (KielHyreQuest < 58) {
3430[8][8]mes "^3355FFThere's nothing here of importance to you.^000000";
3431[8][8]close;
3432[8]}
3433[8]else if (KielHyreQuest < 60) {
3434[8][8]if (countitem(7500) < 1) {
3435[8][8][8]mes "^3355FFThere are locked boxes on these bookshelves Perhaps if you used this mansions's Master Key, you might be able to open them.^000000";
3436[8][8][8]next;
3437[8][8][8]switch(select("Use Key:Pass")) {
3438[8][8][8]case 1:
3439[8][8][8][8]mes "^3355FFWhich box do you want to try to open?^000000";
3440[8][8][8][8]next;
3441[8][8][8][8]switch(select("First Box:Second Box")) {
3442[8][8][8][8]case 1:
3443[8][8][8][8][8]mes "^3355FFYou use the Master Key to unlock the box, and obtain a portait of a woman that looks just like Kiel Hyre's assistant, Allysia.^000000";
3444[8][8][8][8][8]next;
3445[8][8][8][8][8]cutin "kh_ellisia_port",2;
3446[8][8][8][8][8]mes "^3355FFThe message, ''To my love, Allysia. From James.'' is written on the back.^000000";
3447[8][8][8][8][8]getitem 7500,1; //Elysia_Portrait
3448[8][8][8][8][8]close2;
3449[8][8][8][8][8]cutin "",255;
3450[8][8][8][8][8]end;
3451[8][8][8][8]case 2:
3452[8][8][8][8][8]mes "^3355FFThis box is empty.^000000";
3453[8][8][8][8][8]close;
3454[8][8][8][8]}
3455[8][8][8]case 2:
3456[8][8][8][8]mes "^3355FFThis box is empty.^000000";
3457[8][8][8][8]close;
3458[8][8][8]}
3459[8][8]}
3460[8][8]else {
3461[8][8][8]mes "^3355FFYou've found a woman's portrait in one of the boxes on this shelf.^000000";
3462[8][8][8]close;
3463[8][8]}
3464[8]}
3465[8]else {
3466[8][8]mes "^3355FFYou've found a woman's portrait in one of the boxes on this shelf This box is now empty.^000000";
3467[8][8]close;
3468[8]}
3469}
3470
3471
3472//----------------------------------------------------------------------------
3473// Rosimier Mansion, top floor; Desk
3474//----------------------------------------------------------------------------
3475kh_rossi,144,286,0[8]script[8]Desk#khr3[8]111,{
3476[8]if (checkweight(7501,1) == 0) {
3477[8][8]mes "^3355FFJust a second.. You're carrying too many items with you right now, so you'll need to free up more Inventory space first...^000000";
3478[8][8]close;
3479[8]}
3480[8]if (KielHyreQuest < 58) {
3481[8][8]mes "^3355FFIt's just a desk.^000000";
3482[8][8]close;
3483[8]}
3484[8]else if (KielHyreQuest < 60) {
3485[8][8]mes "^3355FFThe desk has three drawers.^000000";
3486[8][8]next;
3487[8][8]switch(select("First Drawer:Second Drawer:Third Drawer:Cancel")) {
3488[8][8]case 1:
3489[8][8][8]mes "^3355FFThe first drawer is locked.^000000";
3490[8][8][8]close;
3491[8][8]case 2:
3492[8][8][8]if (countitem(7501) < 1) {
3493[8][8][8][8]mes "^3355FFThere is a letter inside this second drawer. It was sent by a person with the initials, K.H., and addressed to Allysia.^000000";
3494[8][8][8][8]getitem 7501,1; //Kyll_Hyre_Letter2
3495[8][8][8][8]close;
3496[8][8][8]}
3497[8][8][8]else {
3498[8][8][8][8]mes "^3355FFThis drawer is now empty.^000000";
3499[8][8][8][8]close;
3500[8][8][8]}
3501[8][8]case 3:
3502[8][8][8]mes "^3355FFThere is a small note inside this third drawer It's written by James, and mentions that he wants to marry Allysia, and that she received an engagement ring.^000000";
3503[8][8][8]close;
3504[8][8]case 4:
3505[8][8][8]mes "..... ........ ............";
3506[8][8][8]close;
3507[8][8]}
3508[8]}
3509[8]else{
3510[8][8]mes "^3355FFThis is the desk where you found a letter written by K.H., and a note scribbled by James Rosimier. Both of these are addressed to the same woman, Allysia.^000000";
3511[8][8]close;
3512[8]}
3513}
3514
3515//----------------------------------------------------------------------------
3516// Rosimier Mansion, top floor; Bookshelf
3517//----------------------------------------------------------------------------
3518kh_rossi,148,288,0[8]script[8]Bookshelf#khr[8]111,{
3519[8]if (checkweight(7502,1) == 0) {
3520[8][8]mes "^3355FFJust a second.. You're carrying too many items with you right now, so you'll need to free up more Inventory space first...^000000";
3521[8][8]close;
3522[8]}
3523[8]if (KielHyreQuest < 58) {
3524[8][8]mes "^3355FFYou encounter a dusty bookshelf filled with numerous books.^000000";
3525[8][8]close;
3526[8]}
3527[8]else if (KielHyreQuest < 60) {
3528[8][8]if (countitem(7502) < 1) {
3529[8][8][8]mes "^3355FFYou encounter a dusty bookshelf filled with numerous books. You find a folded note between the books as you examine them.^000000";
3530[8][8][8]getitem 7502,1; //Piece_Memo_Of_James
3531[8][8][8]close;
3532[8][8]}
3533[8][8]else {
3534[8][8][8]mes "^3355FFYou encounter a dusty bookshelf filled with numerous books.^000000";
3535[8][8][8]close;
3536[8][8]}
3537[8]}
3538[8]else{
3539[8][8]mes "^3355FFYou encounter a dusty bookshelf filled with numerous books.^000000";
3540[8][8]close;
3541[8]}
3542}
3543
3544//----------------------------------------------------------------------------
3545// Rosimier Mansion, top floor; Bed
3546//----------------------------------------------------------------------------
3547kh_rossi,154,286,0[8]script[8]Bed#khr[8]111,{
3548[8]if (KielHyreQuest < 58) {
3549[8][8]mes "^3355FFYou found a well made bed that has collected a thick layer of dust after years of disuse.^000000";
3550[8][8]close;
3551[8]}
3552[8]else if (KielHyreQuest < 60) {
3553[8][8]mes "^3355FFYou found a well made bed that has collected a thick layer of dust after years of disuse.^000000";
3554[8][8]next;
3555[8][8]switch(select("Check Bedsheets:Check Under Bed")) {
3556[8][8]case 1:
3557[8][8][8]mes "^3355FFYou brush the bed's surface with your hand, causing a cloud of nasty dust to irritate your nose and throat. Eww, yucky!^000000";
3558[8][8][8]percentheal -10,0;
3559[8][8][8]close;
3560[8][8]case 2:
3561[8][8][8]mes "^3355FFYou search underneath the bed, and find an empty engagement ring box.^000000";
3562[8][8][8]close;
3563[8][8]}
3564[8]}
3565[8]else {
3566[8][8]mes "^3355FFThis is a dirty bed.^000000";
3567[8][8]close;
3568[8]}
3569}
3570
3571//----------------------------------------------------------------------------
3572// Fisherman
3573//----------------------------------------------------------------------------
3574yuno_fild12,232,222,0[8]script[8]Old Fisherman[8]709,{
3575[8]if (KielHyreQuest < 60) {
3576[8][8]mes "[Fisherman]";
3577[8][8]mes "These days, it's much harder to catch and fish Ever since they built this factory, the fish have started to change, and they look different too...";
3578[8][8]close;
3579[8]}
3580[8]else if (KielHyreQuest == 60) {
3581[8][8]mes "[Fisherman]";
3582[8][8]mes "Eh? You want something?";
3583[8][8]mes "Heh, youngsters! I know how much you love handouts, but you're not getting any Now, if you bring me some Raw Fish, I'd be more friendly~";
3584[8][8]if (countitem(544) >= 10) {
3585[8][8][8]next;
3586[8][8][8]mes "[Fisherman]";
3587[8][8][8]mes "Oh, is all this fish for me? Heh, how very generous of you. If you're going to be so kind, then I suppose I have to repay the favor. Ask me anything~";
3588[8][8][8]next;
3589[8][8][8]select("30 years ago, a woman killed herself...");
3590[8][8][8]mes "[Fisherman]";
3591[8][8][8]mes "Oh? Ohh. Oh yeah I remember that. Yeah it was August 20th, my wife's birthday. That day, instead of catching fish, I caught a dead woman.";
3592[8][8][8]next;
3593[8][8][8]mes "[Fisherman]";
3594[8][8][8]mes "Of course, I reported it to the Juno Police! They told me she killed herself since she was betrayed by her lover, who also happened to be her employer. Really tragic stuff.";
3595[8][8][8]next;
3596[8][8][8]mes "[Fisherman]";
3597[8][8][8]mes "Anyway, when they were moving her body out of the river, her hand dropped some ring. I picked it up, hoping to sell it later for some zeny. I know, I know...";
3598[8][8][8]next;
3599[8][8][8]mes "[Fisherman]";
3600[8][8][8]mes "I was pretty lucky the police didn't see me take it. Later that day, some guy came up to me and offered me a lot of money for it I guess it was my lucky day!";
3601[8][8][8]next;
3602[8][8][8]mes "[Fisherman]";
3603[8][8][8]mes "I found out later that he was some mechanical repairman-- something. He sold everything to buy that ring, so I guess he wanted it desperately Then he just dissapeared.";
3604[8][8][8]next;
3605[8][8][8]select("Do you remember his name?");
3606[8][8][8]mes "[Fisherman]";
3607[8][8][8]mes "His name...?";
3608[8][8][8]mes "It was something like.. Heil? Hyre? Anyway, it was a long time ago. Oh, his old house is still around.";
3609[8][8][8]next;
3610[8][8][8]mes "[Fisherman]";
3611[8][8][8]mes "If you're going to be that curious, you might as well check it out Let's see, he lived in a hut near the northeast forest guard camp.";
3612[8][8][8]delitem 544,10; //Fish_Slice
3613[8][8][8]set KielHyreQuest,62;
3614[8][8][8]close;
3615[8][8]}
3616[8][8]else {
3617[8][8][8]close;
3618[8][8]}
3619[8]}
3620[8]else if (KielHyreQuest >= 62) {
3621[8][8]mes "[Fisherman]";
3622[8][8]mes "Don't you remember what I told you? That guy lived in a hut near the northeast forest guard camp! Why don't you check that place out?";
3623[8][8]close;
3624[8]}
3625}
3626
3627//----------------------------------------------------------------------------
3628// Kiel Hyre's hut; Wooden Board
3629//----------------------------------------------------------------------------
3630yuno_fild09,158,217,0[8]script[8]Wooden Board#kh[8]111,{
3631[8]if (checkweight(7503,1) == 0) {
3632[8][8]mes "^3355FFJust a second.. You're carrying too many items with you right now, so you'll need to free up more Inventory space first...^000000";
3633[8][8]close;
3634[8]}
3635[8]if ((KielHyreQuest < 62) || (KielHyreQuest >= 64)) {
3636[8][8]mes "^3355FFIt's a useless wooden board in the bushes.^000000";
3637[8][8]close;
3638[8]}
3639[8]else if (KielHyreQuest == 62) {
3640[8][8]mes "^3355FFYou found a long wooden board carved with the initials, ''K.H.''^000000";
3641[8][8]next;
3642[8][8]cutin "kh_kyel_port",2;
3643[8][8]mes "^3355FFYou find a portrait of a young man, that looks like a younger version of Kiel Hyre, in a broken picture frame underneath the old wooden board.^000000";
3644[8][8]getitem 7503,1;[8]//Man_Portrait
3645[8][8]set KielHyreQuest,64;
3646[8][8]next;
3647[8][8]cutin "",255;
3648[8][8]mes "^3355FFYou have enough information by now, so you should report back to Mitchell.^000000";
3649[8][8]close;
3650[8]}
3651}
3652
3653//============================================================================
3654// Kiehl Hyre's Room and Boss NPCs
3655//============================================================================
3656// Beyond here the NPC for the final areas.
3657// Now, this area is not someplace you wanna slow down so
3658// you can pick up dialog. I used packet logging to pull
3659// what I could and for the sake of the two people with me,
3660// did not bother doing all the proper NPC positioning
3661// or some of the 'error/wrong option' dialogs.
3662// All the doors are kind of weird.
3663//============================================================================
3664
3665//----------------------------------------------------------------------------
3666// Kiehl's Room; Receiver (Gives black keycards upon killing mobs)
3667//----------------------------------------------------------------------------
3668kh_kiehl01,17,39,0[8]script[8]Receiver#kh[8]111,{
3669[8]if (mobcount("kh_kiehl01","Receiver#kh::OnMyMobDead") < 1) {
3670[8][8]mes "^333333*BBBZZZ*^000000";
3671[8][8]if (KielHyreQuest == 74) {
3672[8][8][8]next;
3673[8][8][8]mes "[????]";
3674[8][8][8]mes "^333333*Bzzzz...* I've never seen you before. Did Father send you to kill me? We'll just see about that! Go ahead, try to find me, adventurer.^000000.";
3675[8][8][8]set KielHyreQuest,76;
3676[8][8]}
3677[8][8]close2;
3678[8][8]monster "kh_kiehl01",16,32,"Alicel",1739,1,"Receiver#kh::OnMyMobDead";
3679[8][8]monster "kh_kiehl01",18,31,"Aliot",1740,1,"Receiver#kh::OnMyMobDead";
3680[8][8]end;
3681[8]}
3682
3683[8]else {
3684[8][8]end;
3685[8]}
3686
3687OnMyMobDead:
3688[8]if (mobcount("kh_kiehl01","Receiver#kh::OnMyMobDead") <1) {
3689[8][8]makeitem 7506,1,"this",19,36;
3690[8]}
3691[8]end;
3692}
3693
3694//----------------------------------------------------------------------------
3695// Kiehl's Room; Flower Vase (Gives...password...for Box)
3696//----------------------------------------------------------------------------
3697kh_kiehl01,13,40,0[8]script[8]Flower Vase#kh1[8]111,{
3698[8]if (KielHyreQuest < 74) {
3699[8][8]mes "^3355FFYou found a flower vase.^000000";
3700[8][8]close;
3701[8]}
3702[8]if (KielHyreQuest >= 74) {
3703[8][8]mes "^3355FFYou found a flower vase.^000000";
3704[8][8]next;
3705[8][8]switch(select("Pick Up Vase:Break Vase:Turn Vase Upside-down")) {
3706[8][8]case 1:
3707[8][8][8]mes "^3355FFThe vase is empty.^000000";
3708[8][8][8]close;
3709[8][8]case 2:
3710[8][8][8]mes "^3355FFYou can't destroy this vase, even by striking it with all your might. It must have been specially manufactured by the Rekenber Corporation.^000000";
3711[8][8][8]close;
3712[8][8]case 3:
3713[8][8][8]mes "^3355FFThe following words are written at the bottom of the vase.^000000";
3714[8][8][8]next;
3715[8][8][8]mes "[Vase Message]";
3716[8][8][8]mes "''The rabbit often observes the door The night eats the pickled orange.''";
3717[8][8][8]close;
3718[8][8]}
3719[8]}
3720[8]else{
3721[8][8]mes "^3355FFThe following words are written at the bottom of the vase.^000000";
3722[8][8]next;
3723[8][8]mes "[Vase Message]";
3724[8][8]mes "''The rabbit often observes the door The night eats the pickled orange.''";
3725[8][8]close;
3726[8]}
3727}
3728
3729
3730//----------------------------------------------------------------------------
3731// Kiehl's Room; Box
3732//----------------------------------------------------------------------------
3733kh_kiehl01,19,25,0[8]script[8]Box#kh1[8]111,{
3734[8]if (checkweight(7505,1) == 0) {
3735[8][8]mes "^3355FFJust a second.. You're carrying too many items with you right now, so you'll need to free up more Inventory space first...^000000";
3736[8][8]close;
3737[8]}
3738[8]if (KielHyreQuest < 74) {
3739[8][8]mes "^3355FFYou found a box with a button for each letter of the alphabet on top of it.^000000";
3740[8][8]next;
3741[8][8]input .@KHInput$;
3742[8][8]mes "^3355FFNothing happened.^000000";
3743[8][8]close;
3744[8]}
3745[8]if (KielHyreQuest >= 74) {
3746[8][8]if (countitem(7505) < 1) {
3747[8][8][8]mes "^3355FFYou found a box with a button for each letter of the alphabet on top of it.^000000";
3748[8][8][8]next;
3749[8][8][8]input .@KHInput$;
3750[8][8][8]if (.@KHInput$ == "open the door") {
3751[8][8][8][8]mes "^3355FFAs soon as you enter the password, the nearby door emits a pleasant chiming sound, and the box pops open to reveal a small key.^000000";
3752[8][8][8][8]getitem 7505,1; //Toy_Key
3753[8][8][8][8]close;
3754[8][8][8]}
3755[8][8][8]else {
3756[8][8][8][8]mes "^3355FFNothing happened.^000000";
3757[8][8][8][8]close;
3758[8][8][8]}
3759[8][8]}
3760[8][8]else {
3761[8][8][8]mes "^3355FFThis is where you found the Toy key^000000";
3762[8][8][8]close;
3763[8][8]}
3764[8]}
3765[8]else{
3766[8][8]mes "^3355FFThe box is wide open, and there is nothing in it.^000000";
3767[8][8]close;
3768[8]}
3769}
3770
3771//----------------------------------------------------------------------------
3772// Kiehl's Room; Big Door, (First)
3773// - Anyone can pass through this door
3774// - Consume one Black KeyCard when opened.
3775// - Only one person actually needs to open it.
3776//----------------------------------------------------------------------------
3777kh_kiehl01,44,33,0[8]script[8]Big Door#BigDoorKHQ1[8]111,{
3778[8]if (.KHDoor1Opened == 0) {
3779[8][8]mes "^3355FFThe door is locked, but there is a narrow slot next to the doorknob.^000000";
3780[8][8]next;
3781[8][8]input .@KHInput$;
3782[8][8]if (.@KHInput$ == "Black Keycard") {
3783[8][8][8]if (countitem(7506) >= 1) {
3784[8][8][8][8]mes "^3355FFYou insert the Black Keycard into the slot, and successfully unlock and open the door.^000000";
3785[8][8][8][8]delitem 7506,1; //Black_Key_Card
3786[8][8][8][8]donpcevent "Big_Door_1_Warp::OnEnable";
3787[8][8][8][8]enablenpc "Big_Door_1_Warp";
3788[8][8][8][8]set .KHDoor1Opened,1;
3789[8][8][8][8]close;
3790[8][8][8]}
3791
3792[8][8]}
3793[8][8]mes "^3355FFYou try to push the door open with all your might, but fail to make it budge.^000000";
3794[8][8]close;
3795[8]}
3796
3797[8]else {
3798[8][8]mes "^3355FFThe door is open.^000000";
3799[8][8]close;
3800[8]}
3801}
3802
3803kh_kiehl01,43,33,0[8]script[8]Big_Door_1_Warp[8]45,1,1,{
3804OnEnable:
3805[8]initnpctimer;
3806[8]specialeffect EF_SUMMONSLAVE;
3807[8]end;
3808
3809OnInit:
3810[8]disablenpc "Big_Door_1_Warp";
3811[8]end;
3812
3813OnTimer30000:
3814[8]stopnpctimer;
3815[8]specialeffect EF_SUMMONSLAVE;
3816[8]disablenpc "Big_Door_1_Warp";
3817[8]set getvariableofnpc(.KHDoor1Opened,"Big Door#BigDoorKHQ1"),0;
3818[8]end;
3819
3820OnTouch_:
3821[8]warp "kh_kiehl01",55,33;
3822[8]end;
3823}
3824
3825//----------------------------------------------------------------------------
3826// Kiehl's Room; Big Door, (second)
3827// - Consume Toy Key when opened.
3828// - Only one person actually needs to open it.
3829//----------------------------------------------------------------------------
3830kh_kiehl01,174,40,0[8]script[8]Big Door#BigDoorKHQ2[8]111,{
3831[8]if (.KHDoor2Opened == 0) {
3832[8][8]mes "^3355FFThe door is locked, but there is a small keyhole next to the knob.^000000";
3833[8][8]next;
3834[8][8]input .@KHInput$;
3835[8][8]if (.@KHInput$ == "Toy Key") {
3836[8][8][8]if (countitem(7505) >= 1) {
3837[8][8][8][8]mes "^3355FFYou insert the key into the keyhole, and the door unlocks with a click as you turn the key.^000000";
3838[8][8][8][8]delitem 7505,1; //Toy_Key
3839[8][8][8][8]donpcevent "Big_Door_2_Warp::OnEnable";
3840[8][8][8][8]enablenpc "Big_Door_2_Warp";
3841[8][8][8][8]set .KHDoor2Opened,1;
3842[8][8][8][8]close;
3843[8][8][8]}
3844
3845[8][8]}
3846[8][8]mes "^3355FFYou try to push the door open with all your might, but fail to make it budge.^000000";
3847[8][8]close;
3848[8]}
3849[8]else {
3850[8][8]mes "^3355FFThe door is open.^000000";
3851[8][8]close;
3852[8]}
3853}
3854
3855kh_kiehl01,173,39,0[8]script[8]Big_Door_2_Warp[8]45,1,1,{
3856OnEnable:
3857[8]initnpctimer;
3858[8]specialeffect EF_SUMMONSLAVE;
3859[8]end;
3860
3861OnInit:
3862[8]disablenpc "Big_Door_2_Warp";
3863[8]end;
3864
3865OnTimer30000:
3866[8]stopnpctimer;
3867[8]specialeffect EF_SUMMONSLAVE;
3868[8]disablenpc "Big_Door_2_Warp";
3869[8]set getvariableofnpc(.KHDoor2Opened,"Big Door#BigDoorKHQ2"),0;
3870[8]end;
3871
3872OnTouch_:
3873[8]if (KielHyreQuest == 48)
3874[8][8]warp "kh_kiehl01",173,35;
3875[8]else
3876[8][8]warp "kh_kiehl01",173,52;
3877[8]end;
3878}
3879
3880//----------------------------------------------------------------------------
3881// Kiehl's Room; Big Door, (Third)
3882// - Consume one Black KeyCard when opened.
3883// - Only one person actually needs to open it.
3884//----------------------------------------------------------------------------
3885kh_kiehl01,77,108,0[8]script[8]Big Door#BigDoorKHQ3[8]111,{
3886[8]if (.KHDoor3Opened == 0) {
3887[8][8]mes "^3355FFThe door is locked, but there is a narrow slot next to the doorknob.^000000";
3888[8][8]next;
3889[8][8]input .@KHInput$;
3890[8][8]if (.@KHInput$ == "Black Keycard") {
3891[8][8][8]if (countitem(7506) >= 1) {
3892[8][8][8][8]mes "^3355FFYou insert the Black Keycard into the slot, and successfully unlock and open the door.^000000";
3893[8][8][8][8]delitem 7506,1; //Black_Key_Card
3894[8][8][8][8]donpcevent "Big_Door_3_Warp::OnEnable";
3895[8][8][8][8]enablenpc "Big_Door_3_Warp";
3896[8][8][8][8]set .KHDoor3Opened,1;
3897[8][8][8][8]close;
3898[8][8][8]}
3899
3900[8][8]}
3901[8][8]mes "^3355FFYou try to push the door open with all your might, but fail to make it budge.^000000";
3902[8][8]close;
3903[8]}
3904[8]else {
3905[8][8]mes "^3355FFThe door is open.^000000";
3906[8][8]close;
3907[8]}
3908}
3909
3910kh_kiehl01,78,107,0[8]script[8]Big_Door_3_Warp[8]45,1,1,{
3911OnEnable:
3912[8]initnpctimer;
3913[8]specialeffect EF_SUMMONSLAVE;
3914[8]end;
3915
3916OnInit:
3917[8]disablenpc "Big_Door_3_Warp";
3918[8]end;
3919
3920OnTimer30000:
3921[8]stopnpctimer;
3922[8]specialeffect EF_SUMMONSLAVE;
3923[8]disablenpc "Big_Door_3_Warp";
3924[8]set getvariableofnpc(.KHDoor3Opened,"Big Door#BigDoorKHQ3"),0;
3925[8]end;
3926
3927OnTouch_:
3928[8]if (KielHyreQuest == 49)
3929[8][8]warp "kh_kiehl01",82,108;
3930[8]else
3931[8][8]warp "kh_kiehl01",68,108;
3932[8]end;
3933}
3934
3935//----------------------------------------------------------------------------
3936// Kiehl's Room; Big Door, (Fourth)
3937// - Consume TWO Black KeyCard when opened.
3938// - Only one person actually needs to open it.
3939//----------------------------------------------------------------------------
3940kh_kiehl01,42,177,0[8]script[8]Big Door#BigDoorKHQ4[8]111,{
3941[8]if (.KHDoor4Opened == 0) {
3942[8][8]mes "^3355FFThe door is locked, but there is a narrow slot next to the doorknob.^000000";
3943[8][8]next;
3944[8][8]input .@KHInput$;
3945[8][8]if (.@KHInput$ == "Black Keycard") {
3946[8][8][8]if (countitem(7506) >= 2) {
3947[8][8][8][8]mes "^3355FFYou insert the Black Keycard into the slot, and successfully unlock and open the door.^000000";
3948[8][8][8][8]delitem 7506,2; //Black_Key_Card
3949[8][8][8][8]donpcevent "Big_Door_4_Warp::OnEnable";
3950[8][8][8][8]enablenpc "Big_Door_4_Warp";
3951[8][8][8][8]set .KHDoor4Opened,1;
3952[8][8][8][8]close;
3953[8][8][8]}
3954[8][8]}
3955[8][8]mes "^3355FFYou try to push the door open with all your might, but fail to make it budge.^000000";
3956[8][8]close;
3957[8]}
3958
3959[8]else {
3960[8][8]mes "^3355FFThe door is open.^000000";
3961[8][8]close;
3962[8]}
3963}
3964
3965kh_kiehl01,41,178,0[8]script[8]Big_Door_4_Warp[8]45,1,1,{
3966OnEnable:
3967[8]initnpctimer;
3968[8]specialeffect EF_SUMMONSLAVE;
3969[8]end;
3970
3971OnInit:
3972[8]disablenpc "Big_Door_4_Warp";
3973[8]end;
3974
3975OnTimer30000:
3976[8]stopnpctimer;
3977[8]specialeffect EF_SUMMONSLAVE;
3978[8]disablenpc "Big_Door_4_Warp";
3979[8]set getvariableofnpc(.KHDoor4Opened,"Big Door#BigDoorKHQ4"),0;
3980[8]end;
3981
3982OnTouch_:
3983[8]if (KielHyreQuest == 50)
3984[8][8]warp "kh_kiehl01",38,178;
3985[8]else
3986[8][8]warp "kh_kiehl01",47,171;
3987[8]end;
3988}
3989
3990//----------------------------------------------------------------------------
3991// Kiehl's Room; Robots
3992//----------------------------------------------------------------------------
3993kh_kiehl01,15,179,0[8]script[8]Robots#kh1[8]111,{
3994[8]if (mobcount("kh_kiehl01","Robots#kh1::OnMyMobDead") < 1) {
3995[8][8]mes "^3355FFAs soon as you touch the test tube, a bunch of robots suddenly appeared.^000000.";
3996[8][8]close2;
3997[8][8]monster "kh_kiehl01",18,181,"Aliot",1740,1,"Robots#kh1::OnMyMobDead";
3998[8][8]monster "kh_kiehl01",18,180,"Alicel",1739,1,"Robots#kh1::OnMyMobDead";
3999[8][8]monster "kh_kiehl01",18,179,"Aliot",1740,1,"Robots#kh1::OnMyMobDead";
4000[8][8]monster "kh_kiehl01",18,178,"Alicel",1739,1,"Robots#kh1::OnMyMobDead";
4001[8][8]end;
4002[8]}
4003[8]else {
4004[8][8]end;
4005[8]}
4006
4007OnMyMobDead:
4008[8]if (mobcount("kh_kiehl01","Robots#kh1::OnMyMobDead") < 1) {
4009[8][8]makeitem 7506,1,"this",18,180;
4010[8][8]}
4011[8]end;
4012}
4013
4014//----------------------------------------------------------------------------
4015// Kiehl's Room; Dummy Robots
4016//----------------------------------------------------------------------------
4017kh_kiehl01,15,177,0[8]script[8]Robots#kh2::RobotsKHQ[8]111,{
4018[8]end;
4019}
4020kh_kiehl01,15,180,0[8]duplicate(RobotsKHQ)[8]Robots#kh3[8]111
4021kh_kiehl01,15,182,0[8]duplicate(RobotsKHQ)[8]Robots#kh4[8]111
4022kh_kiehl01,35,187,0[8]duplicate(RobotsKHQ)[8]Robots#kh5[8]111
4023kh_kiehl01,37,187,0[8]duplicate(RobotsKHQ)[8]Robots#kh6[8]111
4024kh_kiehl01,39,187,0[8]duplicate(RobotsKHQ)[8]Robots#kh7[8]111
4025kh_kiehl01,41,187,0[8]duplicate(RobotsKHQ)[8]Robots#kh8[8]111
4026
4027//----------------------------------------------------------------------------
4028// Kiehl's Room; Big Door, (Fifth, and final)
4029// - Anyone can pass through this door
4030// - Consumes 4 Solid Iron Pieces
4031//----------------------------------------------------------------------------
4032kh_kiehl01,166,187,0[8]script[8]Big Door#BigDoorKHQ5[8]111,{
4033[8]if (($@KHQuestBusy == 0) && (KielHyreQuest >= 74) && (KielHyreQuest <= 106)) {
4034[8][8]if (KielHyreQuest < 86) {
4035[8][8][8]mes "^3355FFThis large door. is closed shut If you listen carefully, you can hear the door hinges slightly squeak.^000000";
4036[8][8][8]next;
4037[8][8][8]select("Push Door:Kick Door:Shake Door:Pull Door:Lift Door");
4038[8][8][8]mes "^3355FFA group of monsters suddenly appeared as soon as you applied pressure to the door This must be some kind of security device.^000000";
4039[8][8][8]close2;
4040[8][8][8]set @KHDoorPushAttempt,@KHDoorPushAttempt+1;
4041[8][8][8]monster "kh_kiehl01",163,183,"Alicel",1739,1;
4042[8][8][8]monster "kh_kiehl01",163,179,"Aliot",1740,1;
4043[8][8][8]monster "kh_kiehl01",169,183,"Alicel",1739,1;
4044[8][8][8]monster "kh_kiehl01",169,179,"Aliot",1740,1;
4045[8][8][8]if (@KHDoorPushAttempt >= 3) {
4046[8][8][8][8]set KielHyreQuest,86;
4047[8][8][8]}
4048[8][8][8]end;
4049[8][8]}
4050[8][8]else if ((KielHyreQuest > 84) && (KielHyreQuest < 94)) {
4051[8][8][8]mes "^3355FFYou apply some pressure to the door, and find that you can budge it slightly, but you can't fully open it.^000000";
4052[8][8][8]next;
4053[8][8][8]mes "^3355FFIf you wedged something into the gap between the door and its frame, and fully leveraged it, then you should be able to open it.^000000";
4054[8][8][8]next;
4055[8][8][8]switch(select("Steel:Rusty Iron Piece:Solid Iron Piece:Iron Piece:Screw:Cancel")) {
4056[8][8][8]case 1:
4057[8][8][8][8]set .@KHPryingItem$,"Steel";
4058[8][8][8][8]break;
4059[8][8][8]case 2:
4060[8][8][8][8]set .@KHPryingItem$,"Rusty Iron Piece";
4061[8][8][8][8]break;
4062[8][8][8]case 3:
4063[8][8][8][8]if (countitem(7507) >= 1) {
4064[8][8][8][8][8]if (KielHyreQuest < 92) {
4065[8][8][8][8][8][8]mes "^3355FFYou insert one end of a Solid Iron Piece into the door's gap in a strenuous effort to pry the door open The gap widens a little bit, but you break one of your Solid Iron Pieces.^000000";
4066[8][8][8][8][8][8]delitem 7507,1; //Hard_Piece_of_Steel
4067[8][8][8][8][8][8]set KielHyreQuest,KielHyreQuest+2;
4068[8][8][8][8][8][8]close;
4069[8][8][8][8][8]}
4070[8][8][8][8][8]else if (KielHyreQuest == 92) {
4071[8][8][8][8][8][8]mes "^3355FFWith a mighty heave, you pry a Solid Iron Piece into the door jamb, and fling the door wide open Unable the withstand the awesome force, this Solid Iron Piece shatters into dust.^000000";
4072[8][8][8][8][8][8]delitem 7507,1; //Hard_Piece_of_Steel
4073[8][8][8][8][8][8]set KielHyreQuest,94;
4074[8][8][8][8][8][8]close;
4075[8][8][8][8][8]}
4076[8][8][8][8]}
4077[8][8][8][8]else {
4078[8][8][8][8][8]mes "^3355FFIf only you had a Solid Iron Piece you could use to pry open this door.^000000";
4079[8][8][8][8][8]close;
4080[8][8][8][8]}
4081[8][8][8]case 4:
4082[8][8][8][8]set .@KHPryingItem$,"Iron Piece";
4083[8][8][8][8]break;
4084[8][8][8]case 5:
4085[8][8][8][8]set .@KHPryingItem$,"Screw";
4086[8][8][8][8]break;
4087[8][8][8]case 6:
4088[8][8][8][8]mes "^3355FFLet's look for something heavy we can use to pry open this door.^000000";
4089[8][8][8][8]close;
4090[8][8][8]}
4091
4092[8][8][8]mes "^3355FFThis "+.@KHPryingItem$+" is far to weak for what you're using it for and breaks.^000000";
4093[8][8][8]close;
4094[8][8]}
4095[8][8]else if ((KielHyreQuest >= 94) && (KielHyreQuest <= 104)) {
4096[8][8][8]if (.KHDoor5Opened == 0) {
4097[8][8][8][8]mes "^3355FFThe large door is wide open, and you may now enter.^000000";
4098[8][8][8][8]next;
4099[8][8][8][8]switch(select("Yes:No")) {
4100[8][8][8][8]case 1:
4101[8][8][8][8][8]close2;
4102[8][8][8][8][8]donpcevent "Big_Door_5_Warp::OnEnable";
4103[8][8][8][8][8]enablenpc "Big_Door_5_Warp";
4104[8][8][8][8][8]set .KHDoor5Opened,1;
4105[8][8][8][8][8]end;
4106[8][8][8][8]case 2:
4107[8][8][8][8][8]mes "^3355FFWho knows what is on the other side of this door. Let's think about it before barging in..^000000";
4108[8][8][8][8][8]close;
4109[8][8][8][8]}
4110[8][8][8]}
4111[8][8][8]else {
4112[8][8][8][8]mes "^3355FFThe door is open.^000000";
4113[8][8][8][8]close;
4114[8][8][8]}
4115[8][8]}
4116[8][8]else {
4117[8][8][8]mes "^3355FFThis large door. is closed shut If you listen carefully, you can hear the door hinges slightly squeak.^000000";
4118[8][8][8]close;
4119[8][8]}
4120[8]}
4121[8]else {
4122[8][8]mes "^3355FFThis large door. is closed shut If you listen carefully, you can hear the door hinges slightly squeak.^000000";
4123[8][8]close;
4124[8]}
4125}
4126
4127kh_kiehl01,166,186,0[8]script[8]Big_Door_5_Warp[8]45,1,1,{
4128[8]end;
4129
4130OnEnable:
4131[8]initnpctimer;
4132[8]specialeffect EF_SUMMONSLAVE;
4133[8]end;
4134
4135OnTimer30000:
4136[8]stopnpctimer;
4137[8]specialeffect EF_SUMMONSLAVE;
4138[8]disablenpc "Big_Door_5_Warp";
4139[8]set getvariableofnpc(.KHDoor5Opened,"Big Door#BigDoorKHQ5"),0;
4140[8]end;
4141
4142OnInit:
4143[8]disablenpc "Big_Door_5_Warp";
4144[8]end;
4145
4146OnTouch_:
4147[8]if (KielHyreQuest >= 46)
4148[8][8]warp "kh_kiehl02",50,7;
4149[8]else
4150[8][8]warp "kh_kiehl01",166,183;
4151[8]end;
4152}
4153
4154//----------------------------------------------------------------------------
4155// Kiehl's Room; Kiehl_Room_Trap (Entry way trap)
4156//----------------------------------------------------------------------------
4157kh_kiehl02,49,10,0[8]script[8]Kiehl_Room_Trap[8]-1,5,3,{
4158[8]end;
4159
4160OnTouch:
4161[8]if (.KHTrapSprung < 1) {
4162[8][8]set .KHTrapSprung,1;
4163[8][8]set $@KHQuestBusy,1;
4164[8][8]initnpctimer;
4165[8][8]monster "kh_kiehl02",47,13,"Aliot",1740,1;
4166[8][8]monster "kh_kiehl02",45,13,"Alicel",1739,1;
4167[8][8]monster "kh_kiehl02",49,13,"Constant",1745,1;
4168[8][8]monster "kh_kiehl02",51,13,"Aliot",1740,1;
4169[8][8]monster "kh_kiehl02",53,13,"Alicel",1739,1;
4170[8][8]monster "kh_kiehl02",49,13,"Constant",1745,1;
4171[8]}
4172[8]end;
4173
4174OnTimer300000:
4175OnTimer600000:
4176OnTimer900000:
4177[8]if (getmapusers("kh_kiehl02") == 0) {
4178[8][8]donpcevent "KiehlRoom::OnReset";
4179[8][8]stopnpctimer;
4180[8]}
4181[8]end;
4182
4183OnTimer1200000:
4184[8]donpcevent "KiehlRoom::OnReset";
4185[8]stopnpctimer;
4186[8]end;
4187
4188OnGlobalTimerOff:
4189[8]stopnpctimer;
4190[8]end;
4191}
4192
4193//----------------------------------------------------------------------------
4194// Kiehl's Room; Kiehl
4195// - Timer will drop to 3 minutes once Kiehl is defeated.
4196//----------------------------------------------------------------------------
4197kh_kiehl02,50,52,4[8]script[8]Kiehl#Original[8]902,{
4198[8]if (checkweight(908,200) == 0) {
4199[8][8]mes "^3355FFJust a second.. You're carrying too many items with you right now, so you'll need to free up more Inventory space first...^000000";
4200[8][8]close;
4201[8]}
4202[8]cutin "kh_kiel01",2;
4203[8]if ((KielHyreQuest < 94) || (KielHyreQuest >= 106)) {
4204[8][8]mes "[Kiehl]";
4205[8][8]mes "..... ........ ............";
4206[8][8]close2;
4207[8][8]cutin "",255;
4208[8][8]end;
4209[8]}
4210[8]if ((KielHyreQuest == 94) && (getvariableofnpc(.KHKilled,"KiehlRoom") < 5)) {
4211[8][8]mes "[Kiehl]";
4212[8][8]mes "I'm surprised you made it this far, adventurer~ I bid you welcome to my humble room. I assume that you've come for the Condensed Memory Scroll... my mind.";
4213[8][8]next;
4214[8][8]mes "[Kiehl]";
4215[8][8]mes "You can understand why I can't let you have it, so if you really want the Condensed Memory Scroll, then show me what you've got!";
4216[8][8]close2;
4217[8][8]cutin "",255;
4218[8][8]set getvariableofnpc(.KHKilled,"KiehlRoom"),0;
4219[8][8]monster "kh_kiehl02",50,52,"Aliot",1740,1,"KiehlRoom::OnKiehlMobDead";
4220[8][8]monster "kh_kiehl02",50,52,"Alicel",1739,1,"KiehlRoom::OnKiehlMobDead";
4221[8][8]monster "kh_kiehl02",50,52,"Constant",1745,1,"KiehlRoom::OnKiehlMobDead";
4222[8][8]monster "kh_kiehl02",50,52,"Aliot",1740,1,"KiehlRoom::OnKiehlMobDead";
4223[8][8]monster "kh_kiehl02",50,52,"Alicel",1739,1,"KiehlRoom::OnKiehlMobDead";
4224[8][8]monster "kh_kiehl02",50,52,"Constant",1745,1,"KiehlRoom::OnKiehlMobDead";
4225[8][8]monster "kh_kiehl02",50,52,"Aliot",1740,1,"KiehlRoom::OnKiehlMobDead";
4226[8][8]hideonnpc "Kiehl#Original";
4227[8][8]end;
4228[8]}
4229[8]else if ((KielHyreQuest == 94) && (getvariableofnpc(.KHKilled,"KiehlRoom") >= 5)) {
4230[8][8]cutin "kh_kiel03",2;
4231[8][8]mes "[Kiehl]";
4232[8][8]mes "Hmpf! You're pretty good Father must have spent a lot of money to hire you. So has he sent you to kill me?";
4233[8][8]next;
4234[8][8]mes "["+strcharinfo(0)+"]";
4235[8][8]mes "Kiel Hyre sent me to ask you to stop turning all of the Third Generation robots into killing machines! How can do something like that to other robots like you?";
4236[8][8]next;
4237[8][8]cutin "kh_kiel01",2;
4238[8][8]mes "[Kiehl]";
4239[8][8]mes "Why not? It's said that man was made in the image of God Well, robots were made in the image of man. You humans kill each other as much as you like, as far as I can tell.";
4240[8][8]next;
4241[8][8]mes "[Kiehl]";
4242[8][8]mes "It might not be ethical for me to provide weapons to humans that need them.. But that's what they are Weapons. It's more humane for robots to fight than humans.";
4243[8][8]next;
4244[8][8]mes "[Kiehl]";
4245[8][8]mes "Robots don't naturally feel pain or emotions.. Not unless they're specially programmed. Sorry, but I don't plans to stop what I'm doing.";
4246[8][8]next;
4247[8][8]cutin "kh_kiel04",2;
4248[8][8]mes "[Kiehl]";
4249[8][8]mes "I am sorry, but I don't have a plan to stop what I am doing Aside from that, my father showed me a great example of how far a human could go for his own selfinishness by destroying a family And therefore I don't think that he could create better robots than mine.";
4250[8][8]next;
4251[8][8]mes "["+strcharinfo(0)+"]";
4252[8][8]mes "Humankind may not be perfect, but think about who you're working with!";
4253[8][8]mes "Rekenber is the epitome of human evil! How can you support them like this?";
4254[8][8]next;
4255[8][8]cutin "kh_kiel02",2;
4256[8][8]mes "[Kiehl]";
4257[8][8]mes "I've had a long relationship with Rekenber. I'm fully aware of their capabilities. Do you remember the first room you passed on your way here, the one with all the toys?";
4258[8][8]next;
4259[8][8]mes "[Kiehl]";
4260[8][8]mes "I bet you didn't know that there were 5 Second Generation robots. Me, and my four other brothers and sisters. Father built that room so that all five of us could live together.";
4261[8][8]next;
4262[8][8]cutin "kh_kiel03",2;
4263[8][8]mes "[Kiehl]";
4264[8][8]mes "I was the only one to survive. I returned to Father and even got a name. But yes, I know how bad Rekenber really is...";
4265[8][8]next;
4266[8][8]mes "[Kiehl]";
4267[8][8]mes "I don't... I don't want to talk about this any more You've made me... Just leave I think I will let you live.";
4268[8][8]next;
4269[8][8]cutin "",255;
4270[8][8]mes "[Mitchell]";
4271[8][8]mes "Freeze!";
4272[8][8]mes "Kiehl Hyre, you're under arrest for creating and trading illegal weapons!";
4273[8][8]set KielHyreQuest,100;
4274[8][8]hideoffnpc "Mitchell#KiehlRoom";
4275[8][8]hideoffnpc "Agent#KHAgent1";
4276[8][8]hideoffnpc "Agent#KHAgent2";
4277[8][8]hideoffnpc "Agent#KHAgent3";
4278[8][8]hideoffnpc "Agent#KHAgent4";
4279[8][8]next;
4280[8]}
4281[8]if ((KielHyreQuest == 100) && (getvariableofnpc(.KHKilledBoss,"KiehlRoom") < 1)) {
4282[8][8]set getvariableofnpc(.KHKilledBoss,"KiehlRoom"),0;
4283[8][8]cutin "kh_kiel01",2;
4284[8][8]mes "[Kiehl]";
4285[8][8]mes "Ah, Schwaltzvalt Republic agents. Heh. I haven't had this many guests before Well, I guess this means we'll have to fight after all, you and I. *Sigh* Pity.";
4286[8][8]next;
4287[8][8]mes "[Kiehl]";
4288[8][8]mes "First, in all fairness, let me take care of these nuisances. They're just mindlessly doing their jobs--sort of like robots-- but don't worry, they won't be hurt.";
4289[8][8]next;
4290[8][8]mes "[Mitchell]";
4291[8][8]mes "Nooooo!";
4292[8][8]specialeffect PF_FOGWALL,AREA,"Mitchell#KiehlRoom";
4293[8][8]specialeffect PF_FOGWALL,AREA,"Agent#KHAgent1";
4294[8][8]specialeffect PF_FOGWALL,AREA,"Agent#KHAgent2";
4295[8][8]specialeffect PF_FOGWALL,AREA,"Agent#KHAgent3";
4296[8][8]specialeffect PF_FOGWALL,AREA,"Agent#KHAgent4";
4297[8][8]next;
4298[8][8]cutin "kh_kiel03",2;
4299[8][8]mes "[Kiehl]";
4300[8][8]mes "And now, you and I can have a proper duel, human I'm interested in seeing just how strong you really are~";
4301[8][8]close2;
4302[8][8]cutin "",255;
4303[8][8]monster "kh_kiehl02",50,52,"Kiehl",1733,1,"KiehlRoom::OnKiehlDead";
4304[8][8]hideonnpc "Kiehl#Original";
4305[8][8]end;
4306[8]}
4307[8]else if ((KielHyreQuest == 100) && (getvariableofnpc(.KHKilledBoss,"KiehlRoom") == 1)) {
4308[8][8]cutin "kh_kiel02",2;
4309[8][8]mes "[Kiehl]";
4310[8][8]mes "D-damn...!";
4311[8][8]mes "Well played, adventurer Well played. I should have known that Father would send the very best after me. Still, you've failed to truly defeat me.";
4312[8][8]next;
4313[8][8]cutin "kh_kiel03",2;
4314[8][8]mes "[Kiehl]";
4315[8][8]mes "I still have a few trump cards left I think... I'll take you to hell with me... Well, if robots can go there~";
4316[8][8]next;
4317[8][8]mapannounce "kh_kiehl02","*Jeeeezzzgggg~ Geezzz~ Grrrr~ Clank~*",bc_map,"0xFF0000 [Mitchell]";
4318[8][8]mes "No...! We're locked in the room! We're.. We're trapped in here!";
4319[8][8]next;
4320[8][8]mes "[Kiehl]";
4321[8][8]mes "Yay~ Let's burn everything down~";
4322[8][8]next;
4323[8][8]mes "[Mitchell]";
4324[8][8]mes "Quick, "+strcharinfo(0)+", use Kiel Hyre's power device, the one that's supposed to mess with Kiehl's power supply!";
4325[8][8]mes "Hurry, use it right now!";
4326[8][8]next;
4327[8][8]mapannounce "kh_kiehl02","*Gzzzz~ Gzzzz~*",bc_map,"0xFF0000 [Kiehl]";
4328[8][8]mes "Wh-what? I c-can't move! This day is just full of surprises. Oh, well I guess it's time for me to use my other trump card.";
4329[8][8]next;
4330[8][8]mes "[Mitchell]";
4331[8][8]mes "What...?";
4332[8][8]mes "How many trump cards do you have?";
4333[8][8]next;
4334[8][8]mes "[????]";
4335[8][8]mes "I'm so disappointed.. I can't believe none of you thought of this.";
4336[8][8]next;
4337[8][8]mes "[Mitchell]";
4338[8][8]mes "Who are you...?";
4339[8][8]mes "Show yourself!";
4340[8][8]next;
4341[8][8]mes "[????]";
4342[8][8]mes "Please Don't insult me You know this voice It's been talking to you this entire time~";
4343[8][8]next;
4344[8][8]mes "[Mitchell]";
4345[8][8]mes "Impossible.. How can there be two of you...?!";
4346[8][8]next;
4347[8][8]hideoffnpc "Kiehl#Copy";
4348[8][8]next;
4349[8][8]cutin "kh_kiel01",0;
4350[8][8]mes "[Kiehl]";
4351[8][8]mes "Hahahahaha!";
4352[8][8]mes "I'm a robot!";
4353[8][8]mes "I can make extra bodies, switch brains with them. It's awfully convenient, let me tell you.";
4354[8][8]next;
4355[8][8]cutin "kh_kiel03",2;
4356[8][8]mes "[Kiehl]";
4357[8][8]mes "Anyway, I don't mean to show off, but I suppose I better reveal to you my final trump card. First of all, I know all about you, Ms. Mitchell Layla~";
4358[8][8]next;
4359[8][8]mes "[Mitchell]";
4360[8][8]mes "What? How do you know my name?";
4361[8][8]next;
4362[8][8]mes "[Kiehl]";
4363[8][8]mes "Well, I have a few spies of my own.. I'll allow him to explain...";
4364[8][8]next;
4365[8][8]mes "[Masked Man]";
4366[8][8]mes "Mitchell.. I'm sorry that you had to get involved in all this...";
4367[8][8]next;
4368[8][8]mes "[Mitchell]";
4369[8][8]mes "Wolkeus? Wolkeus Kaiser?!";
4370[8][8]mes "You're the spy?! But you risked your life to save our president!";
4371[8][8]mes "No! Oh, God! How can this be happening?! Everything's just.. This is all crazy! All of it!";
4372[8][8]next;
4373[8][8]mes "[Wolkeus]";
4374[8][8]mes "This is just the result of elaborate plans that were made years ago. I didn't expect you to be this surprised, Mitchell. It's the way the game is played. You know that.";
4375[8][8]next;
4376[8][8]mes "[Mitchell]";
4377[8][8]mes "Mister President.. I failed you... I'm sorry...";
4378[8][8]next;
4379[8][8]mes "[Kiehl]";
4380[8][8]mes "Well, Kaiser, she took it pretty badly, but at least you're being gentlemanly about it. Well, I'd like for all of us to get better acquainted, but...";
4381[8][8]next;
4382[8][8]cutin "kh_kiel01",2;
4383[8][8]mes "[Kiehl]";
4384[8][8]mes "We'd better say our farewells here. This place will be gone in five minutes. Ah, and Ms. Layla, you're coming with us. We have questions~";
4385[8][8]next;
4386[8][8]mes "[Kiehl]";
4387[8][8]mes "I'm curious as to what the president's plans are Mister Kaiser, if you'll escort Ms. Layla, please...";
4388[8][8]next;
4389[8][8]mes "[Wolkeus Kaiser]";
4390[8][8]mes ".............................. Sorry, Mitchell I gotta do it.";
4391[8][8]next;
4392[8][8]mes "[Mitchell]";
4393[8][8]mes "No, get away! Let me go!";
4394[8][8]mes "Let go of me, Wolkeus!";
4395[8][8]hideonnpc "Mitchell#KiehlRoom";
4396[8][8]hideonnpc "Agent#KHAgent1";
4397[8][8]hideonnpc "Agent#KHAgent2";
4398[8][8]hideonnpc "Agent#KHAgent3";
4399[8][8]hideonnpc "Agent#KHAgent4";
4400[8][8]next;
4401[8][8]cutin "kh_kiel02",2;
4402[8][8]mes "[Kiehl]";
4403[8][8]mes "Great, we're done with that ugly business. Now, where was I? Ah, right Yes. I'm sorry. We don't have any more time to play.";
4404[8][8]next;
4405[8][8]mes "[Kiehl]";
4406[8][8]mes "Here, adventurer I'm aware that my father sent you here to get this Consider it my final gift to him. I'm surprised he left this ring inside me, though...";
4407[8][8]next;
4408[8][8]cutin "kh_kiel04",2;
4409[8][8]mes "[Kiehl]";
4410[8][8]mes "I imagine that it must be precious to him. But I wonder why he placed it inside me? Well, anyway, I have a message I'd like for you to deliver to him.";
4411[8][8]next;
4412[8][8]cutin "kh_kiel01",2;
4413[8][8]mes "[Kiehl]";
4414[8][8]mes "First... I guess we should get rid of this old thing. It was a good body, and it's served me well for 23 years. I'll miss it. Rest well, old Kiehl.";
4415[8][8]next;
4416[8][8]specialeffect EF_DEVIL;
4417[8][8]next;
4418[8][8]mes "[Kiehl]";
4419[8][8]mes "Now, this was the body that my father made Please tell him that this means that we're no longer related to each other at all.";
4420[8][8]next;
4421[8][8]mes "[Kiehl]";
4422[8][8]mes "The body I'm using right now?";
4423[8][8]mes "I made it myself with the most advanced technology. Consider it... a Fourth Generation robot body if you will. Father will understand what I mean.";
4424[8][8]next;
4425[8][8]mes "[Kiehl]";
4426[8][8]mes "Anyway, please tell him that, and get his old ring out of my old robot body, and then give it to him. For now, let's get out of here: we just have 3 minutes to evacuate.";
4427[8][8]next;
4428[8][8]mes "[Kiehl]";
4429[8][8]mes "You're a worthy opponent, and a human I respect I don't know if we'll meet again, but who knows?";
4430[8][8]mes "Anyway, I'll open up the exit for you. Farewell~";
4431[8][8]delitem 7504,1; //Toy_Motor
4432[8][8]set KielHyreQuest,104;
4433[8][8]hideonnpc "Kiehl#Copy";
4434[8][8]donpcevent "Kiehl_Room_Exit::OnEnable";
4435[8][8]enablenpc "Kiehl_Room_Exit";
4436[8][8]initnpctimer;
4437[8][8]cutin "",255;
4438[8][8]close;
4439[8]}
4440[8]if (KielHyreQuest == 104) {
4441[8][8]cutin "kh_kiel02",2;
4442[8][8]mes "^3355FFYou retrieve the ring from the heart of Kiehl's old robotic body.^000000";
4443[8][8]getitem 7508,1; //Elysia_Ring
4444[8][8]set KielHyreQuest,106;
4445[8][8]close2;
4446[8][8]cutin "",255;
4447[8][8]end;
4448[8]}
4449[8]else{
4450[8][8]cutin "kh_kiel02",2;
4451[8][8]mes "^3355FFKiehl's old robotic body stands alone, lifeless and silent.^000000";
4452[8][8]close2;
4453[8][8]cutin "",255;
4454[8][8]end;
4455[8]}
4456
4457
4458OnTimer180000:
4459[8]stopnpctimer;
4460[8]mapannounce "kh_kiehl02","Beeeeeeeeeeeeep~",bc_npc,0xFF0000;
4461[8]donpcevent "KiehlRoom::OnReset";
4462[8]end;
4463
4464OnTimer179000:
4465[8]mapannounce "kh_kiehl02","1 second remaining until detonation",bc_npc,0xFF0000;
4466[8]end;
4467
4468OnTimer178000:
4469[8]mapannounce "kh_kiehl02","2 seconds remaining until detonation",bc_npc,0xFF0000;
4470[8]end;
4471
4472OnTimer177000:
4473[8]mapannounce "kh_kiehl02","3 seconds remaining until detonation",bc_npc,0xFF0000;
4474[8]end;
4475
4476OnTimer176000:
4477[8]mapannounce "kh_kiehl02","4 seconds remaining until detonation",bc_npc,0xFF0000;
4478[8]end;
4479
4480OnTimer175000:
4481[8]mapannounce "kh_kiehl02","5 seconds remaining until detonation",bc_npc,0xFF0000;
4482[8]end;
4483
4484OnTimer170000:
4485[8]mapannounce "kh_kiehl02","10 seconds remaining until detonation",bc_npc,0xFF0000;
4486[8]end;
4487
4488OnTimer160000:
4489[8]mapannounce "kh_kiehl02","20 seconds remaining until detonation",bc_npc,0xFF0000;
4490[8]end;
4491
4492OnTimer150000:
4493[8]mapannounce "kh_kiehl02","30 seconds remaining until detonation",bc_npc,0xFF0000;
4494[8]end;
4495
4496OnTimer120000:
4497[8]mapannounce "kh_kiehl02","1 minute remaining until detonation.",bc_npc,0xFF0000;
4498[8]end;
4499
4500OnTimer60000:
4501[8]mapannounce "kh_kiehl02","2 minutes remaining until detonation.",bc_npc,0xFF0000;
4502[8]end;
4503
4504OnTimer1000:
4505[8]mapannounce "kh_kiehl02","3 minutes remaining until detonation.",bc_npc,0xFF0000;
4506[8]end;
4507}
4508
4509//----------------------------------------------------------------------------
4510// Kiehl's Room; NPC for mob control, timers, and other junk.
4511//----------------------------------------------------------------------------
4512kh_kiehl02,1,1,0[8]script[8]KiehlRoom[8]-1,{
4513[8]end;
4514
4515OnKiehlMobDead:
4516[8]set .KHKilled,.KHKilled+1;
4517[8]if (.KHKilled == 5) {
4518[8][8]hideoffnpc "Kiehl#Original";
4519[8]}
4520[8]end;
4521
4522OnKiehlDead:
4523[8]set .KHKilledBoss,1;
4524[8]hideoffnpc "Kiehl#Original";
4525[8]end;
4526[8]
4527OnReset:
4528[8]donpcevent "Kiehl_Room_Trap::OnGlobalTimerOff";
4529[8]if (getmapusers("kh_kiehl02") > 0)
4530[8][8]mapwarp "kh_kiehl02","lighthalzen",192,200;
4531[8]killmonsterall "kh_kiehl02";
4532[8]disablenpc "Kiehl_Room_Exit";
4533[8]hideonnpc "Mitchell#KiehlRoom";
4534[8]hideonnpc "Agent#KHAgent1";
4535[8]hideonnpc "Agent#KHAgent2";
4536[8]hideonnpc "Agent#KHAgent3";
4537[8]hideonnpc "Agent#KHAgent4";
4538[8]hideonnpc "Kiehl#Copy";
4539[8]hideoffnpc "Kiehl#Original";
4540[8]set .KHKilledBoss,0;
4541[8]set .KHKilled,0;
4542[8]set getvariableofnpc(.KHTrapSprung,"Kiehl_Room_Trap"),0;
4543[8]set $@KHQuestBusy,0;
4544[8]end;
4545}
4546
4547//----------------------------------------------------------------------------
4548// Kiehl's Room; Mitchell and Agents.
4549//----------------------------------------------------------------------------
4550kh_kiehl02,49,55,6[8]script[8]Mitchell#KiehlRoom[8]727,{
4551[8]end;
4552OnInit:
4553[8]hideonnpc strnpcinfo(0);
4554[8]end;
4555}
4556kh_kiehl02,53,52,4[8]duplicate(Mitchell#KiehlRoom)[8]Agent#KHAgent1[8]880
4557kh_kiehl02,51,49,1[8]duplicate(Mitchell#KiehlRoom)[8]Agent#KHAgent2[8]880
4558kh_kiehl02,47,50,0[8]duplicate(Mitchell#KiehlRoom)[8]Agent#KHAgent3[8]880
4559kh_kiehl02,46,53,6[8]duplicate(Mitchell#KiehlRoom)[8]Agent#KHAgent4[8]880
4560
4561//----------------------------------------------------------------------------
4562// Kiehl's Room; Copy of Kiehl.
4563//----------------------------------------------------------------------------
4564kh_kiehl02,48,53,6[8]script[8]Kiehl#Copy[8]902,{
4565[8]end;
4566
4567OnInit:
4568[8]hideonnpc "Kiehl#Copy";
4569[8]end;
4570}
4571
4572//----------------------------------------------------------------------------
4573// Kiehl's Room; Kiehl_Room_Exit
4574//----------------------------------------------------------------------------
4575kh_kiehl02,49,56,0[8]script[8]Kiehl_Room_Exit[8]45,1,1,{
4576OnTouch_:
4577[8]if (getmapusers("kh_kiehl02") < 1)
4578[8][8]donpcevent "KiehlRoom::OnReset";
4579[8]warp "lighthalzen",193,200;
4580[8]end;
4581
4582OnEnable:
4583[8]specialeffect EF_SUMMONSLAVE;
4584[8]end;
4585
4586OnInit:
4587[8]disablenpc "Kiehl_Room_Exit";
4588[8]end;
4589}