/
OldGlastHeim.txt
2585 lines (2526 loc) · 87.2 KB
/
OldGlastHeim.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//===== rAthena Script =======================================
//= Old Glast Heim
//===== By: ==================================================
//= Ziu, Heris (translation)
//===== Current Version: =====================================
//= 1.4
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= Discover the history of events that took place in the
//= Glast Heim castle and how it ended up in ruins.
//===== Additional Comments: =================================
//= 1.0 First version. [Euphy]
//= This is a custom version, and may contain bugs.
//= 1.1 Bug fixes; removed redundant OnInstanceInit scripts.
//= 1.2 Add NPC Hugin's Follower [exneval]
//= NPC that give access to Glast Heim Nightmare Mode.
//= 1.3 Add some NPCs placeholder. [exneval]
//= 1.4 Update to its official text. [exneval]
//= Support merchant, enchant, socket features.
//============================================================
glast_01,204,273,6 script Hugin#ghinstance 755,{
if (BaseLevel < 130) {
mes "[Hugin]";
mes "Why don't you come back after becoming stronger?";
mes "Maybe, level 130.";
close;
}
if (ghinstance == 1) {
mes "[Hugin]";
mes "Umm? Did you see me at another place? I don't think so. What about this time?";
if (checkquest(12322) == 1) {
erasequest 12322;
}
next;
} else {
mes "[Hugin]";
mes "A long time ago, this castle did not like this.";
next;
mes "[Hugin]";
mes "Ah I'm sorry. I'm muttering in front of a stranger.";
next;
mes "[Hugin]";
mes "My name is Hugin. I'm studying the dimensional gap between time and space.";
next;
select("There's something like that here?");
mes "[Hugin]";
mes "Have you ever wondered about history of Glast Heim?";
next;
mes "[Hugin]";
mes "There was a King named Shumiche who was known as a tyrant in the history of the Rune-Midgarts Kingdom.";
next;
mes "[Hugin]";
mes "Time will reveal the true answers if we look in the right places.";
next;
if (select("I don't care about history","That is interesting. Find anything?") == 1) {
mes "[Hugin]";
mes "Really? Hmm, please come back later when you are interested then.";
close;
}
mes "[Hugin]";
mes "Actually, dimensional time travel is possible but I'm so afraid to go there.";
next;
mes "[Hugin]";
mes "Yes! It might be possible for you.";
next;
mes "[Hugin]";
mes "Do you want to time travel?";
next;
if (select("No, thanks.","Yes, of course I do!") == 1) {
mes "[Hugin]";
mes "Really? But, jumping gigawatts this is such a great opportunity.";
close;
}
mes "[Hugin]";
mes "I knew that you would understand what I said. Well, please tell what you gonna do.";
setquest 12316;
set ghinstance,1;
next;
}
set .@ghins_time,checkquest(12317,PLAYTIME);
if (.@ghins_time == -1) {
set .@party_id,getcharid(1);
set .@p_name$,getpartyname(.@party_id);
set .@md_name$,"Old Glast Heim";
if (!instance_check_party(.@party_id)) {
mes "[Hugin]";
mes "Why don't you make a party with more than 1 person and talk to me again?";
close;
}
if (is_party_leader()) {
if (checkquest(12316) == 1)
erasequest 12316;
if (checkquest(12318,HUNTING) == -1)
setquest 12318;
set .@menu$,"Generate Time Gap:Enter Old Glast Heim:Cancel";
} else {
if (checkquest(12316) == 1) {
mes "[Hugin]";
mes "Have we met before? No way. It's my first time seeing you. What do you want?";
erasequest 12316;
}
if (checkquest(12318,HUNTING) == -1)
setquest 12318;
set .@menu$,":Enter Old Glast Heim:Cancel";
}
switch(select(.@menu$)) {
case 1:
switch (instance_create(.@md_name$)) {
case -3:
dispbottom "Memorial Dungeon, 'Old Glast Heim' is already in progress.",0xFFFFFF;
close;
case -4:
case -2:
case -1:
mes "Party Name: "+.@p_name$;
mes "Party Leader: "+strcharinfo(0);
mes "^0000ff"+.@md_name$+"^000000 - time gap generation failed.";
close;
}
mes "[Hugin]";
mes "After the time gap opens, please tell me again.";
close;
case 2:
switch(instance_enter(.@md_name$)) {
case 3:
mes "[Hugin]";
mes "An unknown error has occurred.";
close;
case 2:
mes "[Hugin]";
mes "The time gap is not yet open.";
close;
case 1:
mes "[Hugin]";
mes "Your body is not fit to enter the time gap. You won't be able to get in if you're not in a party.";
close;
case 0:
mapannounce "glast_01",.@p_name$ + " party member " + strcharinfo(0) + " enters the Old Glast Heim",bc_map,"0x00ff99";
setquest 12317;
//warp "1@gl_k",150,20;
close;
}
break;
case 3:
close;
}
} else if (.@ghins_time == 0 || .@ghins_time == 1) {
mes "[Hugin]";
mes "Oh, my...";
mes "You still have after-effects of time travel. You can't travel again with this condition.";
next;
mes "[Hugin]";
mes "Staying healthy is important so please take a break and come back again later.";
close;
} else {
mes "^0000ffAll trace of access to Old Glast Heim have been removed. Now you can talk with Hugin again.^000000";
if (checkquest(12318,HUNTING) == -1)
setquest 12318;
erasequest 12317;
close;
}
}
// Floor 1
//============================================================
1@gl_k,149,41,6 script Varmundt#ghinstance1 654,{
if (is_party_leader()) {
cutin "gl_barmund1",2;
mes "[Varmundt]";
mes "Are you the one ^0000ffHerico^000000 sent to help me?";
npctalk "Varmundt: Are you the one Herico sent to help me?";
next;
select("Oh. Well I...");
mes "["+strcharinfo(0)+"]";
mes "Ah yes, I am. Herico told me to meet you.";
unittalk getcharid(3),strcharinfo(0)+": Ah yes, I am. Herico told me to meet you.";
next;
cutin "gl_barmund2",2;
mes "[Varmundt]";
mes "We don't have much time. We must report to Sir. Heinrich about Himelmez's invasion.";
npctalk "Varmundt: We don't have much time. We must report to Sir. Heinrich about Himelmez's invasion.";
next;
select("Himelmez...");
mes "["+strcharinfo(0)+"]";
mes "Who is Himelmez?";
unittalk getcharid(3),strcharinfo(0)+": Who is Himelmez?";
next;
cutin "gl_barmund3",2;
mes "[Varmundt]";
mes "Herico didn't tell you?";
npctalk "Varmundt: Herico didn't tell you?";
next;
cutin "gl_barmund2",2;
mes "[Varmundt]";
mes "She is the Ruler of Death, Dead man's Valkyrie. Himelmez is looking to take the hart of Ymir from us.";
npctalk "Varmundt: She is the Ruler of Death, Dead man's Valkyrie. Himelmez is looking to take the hart of Ymir from us.";
next;
mes "[Varmundt]";
mes "She might even destroy this whole castle if she wanted to.";
npctalk "Varmundt: She might even destroy this whole castle if she wanted to.";
next;
mes "[Varmundt]";
mes "Hurry! Report to Sir. Heinrich about Himelmez. I must check the defense barrier here!";
npctalk "Varmundt: Hurry! Report to Sir. Heinrich about Himelmez. I must check the defense barrier here!";
close2;
cutin "gl_barmund2",255;
donpcevent instance_npcname("Varmundt#ghinstance1")+"::OnDisable";
end;
} else {
cutin "gl_barmund2",2;
mes "[Varmundt]";
mes "Where's your leader? I need his help.";
close2;
cutin "gl_barmund2",255;
end;
}
OnInstanceInit:
donpcevent instance_npcname("Varmundt#ghinstance1")+"::OnEnable";
end;
OnDisable:
hideonnpc instance_npcname("Varmundt#ghinstance1");
hideoffnpc instance_npcname("Heinrich#ghinstance1");
hideoffnpc instance_npcname("Varmundt#ghinstance2");
end;
OnEnable:
hideoffnpc instance_npcname("Varmundt#ghinstance1");
end;
}
1@gl_k,145,54,6 script Khalitzburg Knightage#1 655,{
mes "["+strnpcinfo(1)+"]";
switch ((atoi(strnpcinfo(2)) + 1) / 2) {
case 1: mes "Is there something you need?"; break;
case 2: mes "What can I do for you?"; break;
case 3: mes "..."; break;
case 4: mes "I do not like to chat during work."; break;
case 5: mes "Doesn't this castle seem weird all of a sudden? Something's not quite right."; break;
case 6: mes "How do you know Varmundt? I heard that he's not really a friendly man..."; break;
case 7: mes "Orders please."; break;
case 8: mes "Please do not make a mess here."; break;
case 9: mes "I had a weird dream last night. My mom was in it... Wonder if she is ok..."; break;
case 10: mes "Are you wit Varmundt? Commander is waiting for you."; break;
case 11: mes "My work shift will be over soon, but the next crew is not coming."; break;
}
close;
OnDisable:
hideonnpc instance_npcname(strnpcinfo(0));
end;
OnEnable:
hideoffnpc instance_npcname(strnpcinfo(0));
end;
}
1@gl_k,154,54,3 duplicate(Khalitzburg Knightage#1) Khalitzburg Knightage#2 655
1@gl_k,145,59,6 duplicate(Khalitzburg Knightage#1) White Knight#3 657
1@gl_k,154,59,3 duplicate(Khalitzburg Knightage#1) White Knight#4 657
1@gl_k,145,64,6 duplicate(Khalitzburg Knightage#1) Khalitzburg Knightage#5 655
1@gl_k,154,64,3 duplicate(Khalitzburg Knightage#1) Khalitzburg Knightage#6 655
1@gl_k,145,69,6 duplicate(Khalitzburg Knightage#1) White Knight#7 657
1@gl_k,154,69,3 duplicate(Khalitzburg Knightage#1) White Knight#8 657
1@gl_k,145,74,6 duplicate(Khalitzburg Knightage#1) Khalitzburg Knightage#9 655
1@gl_k,154,74,3 duplicate(Khalitzburg Knightage#1) Khalitzburg Knightage#10 655
1@gl_k,145,79,6 duplicate(Khalitzburg Knightage#1) White Knight#11 657
1@gl_k,154,79,3 duplicate(Khalitzburg Knightage#1) White Knight#12 657
1@gl_k,145,84,6 duplicate(Khalitzburg Knightage#1) Khalitzburg Knightage#13 655
1@gl_k,154,84,3 duplicate(Khalitzburg Knightage#1) Khalitzburg Knightage#14 655
1@gl_k,145,89,6 duplicate(Khalitzburg Knightage#1) White Knight#15 657
1@gl_k,154,89,3 duplicate(Khalitzburg Knightage#1) White Knight#16 657
1@gl_k,145,94,6 duplicate(Khalitzburg Knightage#1) Khalitzburg Knightage#17 655
1@gl_k,154,94,3 duplicate(Khalitzburg Knightage#1) Khalitzburg Knightage#18 655
1@gl_k,145,99,6 duplicate(Khalitzburg Knightage#1) White Knight#19 657
1@gl_k,154,99,3 duplicate(Khalitzburg Knightage#1) White Knight#20 657
1@gl_k,145,104,6 duplicate(Khalitzburg Knightage#1) Khalitzburg Knightage#21 655
1@gl_k,154,104,3 duplicate(Khalitzburg Knightage#1) Khalitzburg Knightage#22 655
1@gl_k,149,100,6 script Heinrich#ghinstance1 652,{
if (is_party_leader()) {
cutin "gl_heinrich2",2;
select("Sir. Heinrich. Varmundt...");
mes "["+strcharinfo(0)+"]";
mes "Sir. Heinrich. Do you know what is happening in the castle now?";
unittalk getcharid(3),strcharinfo(0)+": Sir. Heinrich. Do you know what is happening in the castle now?";
next;
mes "[Heinrich]";
mes "Aren't you the adventurer that came along with Varmundt?";
npctalk "Heinrich: Aren't you the adventurer that came along with Varmundt?";
next;
mes "[Heinrich]";
mes "What is it? Something wrong with the castle?";
npctalk "Heinrich: What is it? Something wrong with the castle?";
next;
select("Himelmez's invasion...");
mes "["+strcharinfo(0)+"]";
mes "Dead man's Valkyrie, Himelmez is coming to take the Ymir's Heart piece hidden inside this castle!";
unittalk getcharid(3),strcharinfo(0)+": Dead man's Valkyrie, Himelmez is coming to take the Ymir's Heart piece hidden inside this castle!";
next;
cutin "gl_heinrich1",2;
mes "[Heinrich]";
mes "Haha. Funny. Do you really think that is possible?";
npctalk "Heinrich: Haha. Funny. Do you really think that is possible?";
next;
cutin "gl_barmund2",2;
mes "[Varmundt]";
mes "I'm not kidding, Sir. Heinrich. If I'm correct, then she will be here very soon.";
donpcevent instance_npcname("Varmundt#ghinstance2")+"::OnTalk1";
next;
mes "[Varmundt]";
mes "We must hide the heart piece to a safe place before Himelmez's attack starts!";
donpcevent instance_npcname("Varmundt#ghinstance2")+"::OnTalk2";
next;
select("Even if you don't believe me...");
mes "["+strcharinfo(0)+"]";
mes "I can't make you believe me, but there's no time to argue!";
unittalk getcharid(3),strcharinfo(0)+": I can't make you believe me, but there's no time to argue!";
cutin "gl_barmund2",255;
next;
cutin "gl_heinrich1",2;
mes "[Heinrich]";
mes "Thank you for the help. But, we don't even have our king with us right now.";
npctalk "Heinrich: Thank you for the help. But, we don't even have our king with us right now.";
next;
mes "[Heinrich]";
mes "We cannot risk moving the heart just because some stranger says so.";
npctalk "Heinrich: We cannot risk moving the heart just because some stranger says so.";
close2;
donpcevent instance_npcname("Heinrich#ghinstance1")+"::OnDisable";
donpcevent instance_npcname("Heinrich#ghinstance2")+"::OnEnable";
donpcevent instance_npcname("Himelmez#ghinstance1")+"::OnEnable";
donpcevent instance_npcname("#talkinstance1")+"::OnEnable";
mapannounce instance_mapname("1@gl_k"),"????'s: Muahahahaha~!",bc_map,"0xFFFF00",FW_NORMAL,18;
cutin "gl_heinrich1",255;
end;
} else {
cutin "gl_heinrich2",2;
mes "[Heinrich]";
mes "Where is your leader? I must talk to him.";
close2;
cutin "gl_heinrich2",255;
end;
}
OnInstanceInit:
OnDisable:
hideonnpc instance_npcname("Heinrich#ghinstance1");
end;
OnEnable:
hideoffnpc instance_npcname("Heinrich#ghinstance1");
end;
}
1@gl_k,152,97,3 script Varmundt#ghinstance2 654,{
end;
OnInstanceInit:
OnDisable:
hideonnpc instance_npcname("Varmundt#ghinstance2");
end;
OnEnable:
hideoffnpc instance_npcname("Varmundt#ghinstance2");
end;
OnTalk1:
npctalk "Varmundt: I'm not kidding, Sir. Heinrich. If I'm correct, then she will be here very soon.";
end;
OnTalk2:
npctalk "Varmundt: We must hide the heart piece to a safe place before Himelmez's attack starts!";
end;
OnTalk3:
npctalk "Varmundt: Himelmez!! Already!";
end;
OnTalk4:
npctalk "Varmundt: Sir. Heinrich, they're all monsters. You need to give them rest!";
end;
OnTalk5:
npctalk "Varmundt: Sir. Heinrich! We don't have much time!";
end;
OnTalk6:
npctalk "Varmundt: If you hurry now, there's a chance!";
end;
}
1@gl_k,149,97,6 script Heinrich#ghinstance2 652,{
end;
OnInstanceInit:
OnDisable:
hideonnpc instance_npcname("Heinrich#ghinstance2");
end;
OnEnable:
hideoffnpc instance_npcname("Heinrich#ghinstance2");
end;
OnTalk1:
npctalk "Heinrich: Who are you?";
end;
OnTalk2:
npctalk "Heinrich: Aren't you a little too feminine to be the Ruler of death? We are not afraid of you...";
end;
OnTalk3:
npctalk "Heinrich: What?";
end;
OnTalk4:
npctalk "Heinrich: My king is visiting the Rune-Midgarts royal family. He's not back yet.";
end;
OnTalk5:
npctalk "Heinrich: And now you are trying to trick me, what has happened to him?!";
end;
OnTalk6:
npctalk "Heinrich: She probably already knows where the Ymir's heart piece is.";
end;
OnTalk7:
npctalk "Heinrich: All Khalitzburg and White Knights should follow me now...";
end;
OnTalk8:
npctalk "Heinrich: My men... This can't be happening!";
end;
OnTalk9:
npctalk "Heinrich: I'm so sorry...";
end;
OnTalk10:
npctalk "Heinrich: I am sorry, my knights! Forgive me!";
end;
}
1@gl_k,149,100,6 script Heinrich#ghinstance3 652,{
end;
OnInstanceInit:
OnDisable:
hideonnpc instance_npcname("Heinrich#ghinstance3");
end;
OnEnable:
hideoffnpc instance_npcname("Heinrich#ghinstance3");
end;
OnTalk1:
npctalk "Heinrich: I killed my own men...";
end;
OnTalk2:
npctalk "Heinrich: Varmundt is right. Now is not the time for mourning.";
end;
OnTalk3:
npctalk "Heinrich: I have a request to you followers.";
end;
OnTalk4:
npctalk "Heinrich: Himelmez can turn living beings into monsters.";
end;
OnTalk5:
npctalk "Heinrich: But, there might still be survivors here.";
end;
OnTalk6:
npctalk "Heinrich: Destroy the monsters and find any survivors.";
end;
OnTalk7:
npctalk "Heinrich: Varmundt and I will chase Himelmez.";
end;
OnTalk8:
npctalk "Heinrich: Very well, Varmundt. Let's find Himelmez.";
end;
}
1@gl_k,149,89,1 script Himelmez#ghinstance1 650,{
end;
OnInstanceInit:
OnDisable:
hideonnpc instance_npcname("Himelmez#ghinstance1");
end;
OnEnable:
hideoffnpc instance_npcname("Himelmez#ghinstance1");
end;
OnTalk1:
npctalk "Himelmez: Well well~ Am I interrupting you? Weren't you expecting me?";
end;
OnTalk2:
npctalk "Himelmez: My name is Lisa Kahn Himelmez. Master of Dullahan, Dead man's Valkyrie, that's what they call me.";
end;
OnTalk3:
npctalk "Himelmez: Let's see if you can relax like that after you find out where your king is.";
end;
OnTalk4:
npctalk "Himelmez: Hmm, now I have your attention do I not?";
end;
OnTalk5:
npctalk "Himelmez: It's a pity to meet you in a situation like this.";
end;
Ontalk6:
npctalk "Himelmez: Well~ I would love to sit down and explain for you, but I'm kind of busy today~";
end;
Ontalk7:
npctalk "Himelmez: I have business to take care of. My minions will treat you well enough for me~";
end;
}
// Control Timer
//============================================================
1@gl_k,0,0,0 script #talkinstance1 -1,{
OnInstanceInit:
OnDisable:
disablenpc instance_npcname("#talkinstance1");
end;
OnEnable:
enablenpc instance_npcname("#talkinstance1");
initnpctimer;
end;
OnTimer1500:
donpcevent instance_npcname("Heinrich#ghinstance2")+"::OnTalk1";
end;
OnTimer4500:
donpcevent instance_npcname("Himelmez#ghinstance1")+"::OnTalk1";
end;
OnTimer10000:
donpcevent instance_npcname("Varmundt#ghinstance2")+"::OnTalk3";
end;
OnTimer17500:
donpcevent instance_npcname("Himelmez#ghinstance1")+"::OnTalk2";
end;
OnTimer22000:
donpcevent instance_npcname("Heinrich#ghinstance2")+"::OnTalk2";
end;
OnTimer28500:
donpcevent instance_npcname("Himelmez#ghinstance1")+"::OnTalk3";
end;
OnTimer36000:
donpcevent instance_npcname("Heinrich#ghinstance2")+"::OnTalk3";
end;
OnTimer41000:
donpcevent instance_npcname("Himelmez#ghinstance1")+"::OnTalk4";
end;
OnTimer54000:
donpcevent instance_npcname("Himelmez#ghinstance1")+"::OnTalk5";
end;
OnTimer59000:
donpcevent instance_npcname("Heinrich#ghinstance2")+"::OnTalk4";
end;
OnTimer66500:
donpcevent instance_npcname("Heinrich#ghinstance2")+"::OnTalk5";
end;
OnTimer71500:
donpcevent instance_npcname("Himelmez#ghinstance1")+"::OnTalk6";
end;
OnTimer78000:
donpcevent instance_npcname("Himelmez#ghinstance1")+"::OnTalk7";
end;
OnTimer84500:
donpcevent instance_npcname("Heinrich#ghinstance2")+"::OnTalk6";
donpcevent instance_npcname("Himelmez#ghinstance1")+"::OnDisable";
end;
OnTimer90500:
donpcevent instance_npcname("Heinrich#ghinstance2")+"::OnTalk7";
end;
OnTimer92000:
for (set .@i,1; .@i<=20; set .@i,.@i+4) {
hideonnpc instance_npcname("Khalitzburg Knightage#"+.@i);
hideonnpc instance_npcname("Khalitzburg Knightage#"+(.@i+1));
hideonnpc instance_npcname("White Knight#"+(.@i+2));
hideonnpc instance_npcname("White Knight#"+(.@i+3));
}
hideonnpc instance_npcname("Khalitzburg Knightage#21");
hideonnpc instance_npcname("Khalitzburg Knightage#22");
set .@map$,instance_mapname("1@gl_k");
set .@label$,instance_npcname("#talkinstance1")+"::OnMyMobDead";
monster .@map$,145,59,"Abysmal Knight",2470,1,.@label$;
monster .@map$,154,59,"Abysmal Knight",2470,1,.@label$;
monster .@map$,145,69,"Abysmal Knight",2470,1,.@label$;
monster .@map$,154,69,"Abysmal Knight",2470,1,.@label$;
monster .@map$,145,79,"Abysmal Knight",2470,1,.@label$;
monster .@map$,154,79,"Abysmal Knight",2470,1,.@label$;
monster .@map$,145,89,"Abysmal Knight",2470,1,.@label$;
monster .@map$,154,89,"Abysmal Knight",2470,1,.@label$;
monster .@map$,145,99,"Abysmal Knight",2470,1,.@label$;
monster .@map$,154,99,"Abysmal Knight",2470,1,.@label$;
monster .@map$,145,54,"Khalitzburg",2471,1,.@label$;
unittalk $@mobid[0],"Water... Someone give me water...";
monster .@map$,154,54,"Khalitzburg",2471,1,.@label$;
unittalk $@mobid[0],"Kkkrrrruughgh...";
monster .@map$,145,64,"Khalitzburg",2471,1,.@label$;
unittalk $@mobid[0],"Sir. Heinrich. Save me...";
monster .@map$,154,64,"Khalitzburg",2471,1,.@label$;
unittalk $@mobid[0],"I miss my sister...";
monster .@map$,145,74,"Khalitzburg",2471,1,.@label$;
unittalk $@mobid[0],"Don't leave me alone, help me.";
monster .@map$,154,74,"Khalitzburg",2471,1,.@label$;
unittalk $@mobid[0],"Aaarrrrrhhhh";
monster .@map$,145,84,"Khalitzburg",2471,1,.@label$;
unittalk $@mobid[0],"I am so thirsty.";
monster .@map$,154,84,"Khalitzburg",2471,1,.@label$;
unittalk $@mobid[0],"Oh...No...I can't die yet...";
monster .@map$,145,94,"Khalitzburg",2471,1,.@label$;
unittalk $@mobid[0],"I feel sick to my stomach urrgg";
monster .@map$,154,94,"Khalitzburg",2471,1,.@label$;
unittalk $@mobid[0],"Can someone...";
monster .@map$,145,104,"Khalitzburg",2471,1,.@label$;
unittalk $@mobid[0],"Arrgg... My body";
monster .@map$,154,104,"Khalitzburg",2471,1,.@label$;
unittalk $@mobid[0],"My throat is burning!";
end;
OnTimer94000:
donpcevent instance_npcname("Heinrich#ghinstance2")+"::OnTalk8";
end;
OnTimer96500:
donpcevent instance_npcname("Varmundt#ghinstance2")+"::OnTalk4";
end;
OnTimer100000:
donpcevent instance_npcname("Heinrich#ghinstance2")+"::OnTalk9";
end;
OnTimer103000:
donpcevent instance_npcname("Heinrich#ghinstance2")+"::OnTalk10";
end;
OnTimer106000:
mapannounce instance_mapname("1@gl_k"),"Sir. Heinrich: Death to all!",bc_map,"0xFFFF00",FW_NORMAL,18;
end;
OnTimer109000:
mapannounce instance_mapname("1@gl_k"),"Sir. Heinrich: Go back to the darkness!",bc_map,"0xFFFF00",FW_NORMAL,18;
end;
OnTimer109500:
enablenpc instance_npcname(".#ghinstance22");
enablenpc instance_npcname(".#ghinstance21");
donpcevent instance_npcname(".#ghinstance22")+"::OnEffect1";
donpcevent instance_npcname(".#ghinstance21")+"::OnEffect1";
end;
OnTimer110000:
enablenpc instance_npcname(".#ghinstance20");
enablenpc instance_npcname(".#ghinstance19");
enablenpc instance_npcname(".#ghinstance18");
enablenpc instance_npcname(".#ghinstance17");
donpcevent instance_npcname(".#ghinstance20")+"::OnEffect1";
donpcevent instance_npcname(".#ghinstance19")+"::OnEffect1";
donpcevent instance_npcname(".#ghinstance18")+"::OnEffect1";
donpcevent instance_npcname(".#ghinstance17")+"::OnEffect1";
end;
OnTimer110500:
enablenpc instance_npcname(".#ghinstance16");
enablenpc instance_npcname(".#ghinstance15");
enablenpc instance_npcname(".#ghinstance14");
enablenpc instance_npcname(".#ghinstance13");
donpcevent instance_npcname(".#ghinstance16")+"::OnEffect1";
donpcevent instance_npcname(".#ghinstance15")+"::OnEffect1";
donpcevent instance_npcname(".#ghinstance14")+"::OnEffect1";
donpcevent instance_npcname(".#ghinstance13")+"::OnEffect1";
end;
OnTimer111000:
enablenpc instance_npcname(".#ghinstance12");
enablenpc instance_npcname(".#ghinstance11");
enablenpc instance_npcname(".#ghinstance10");
enablenpc instance_npcname(".#ghinstance9");
donpcevent instance_npcname(".#ghinstance12")+"::OnEffect1";
donpcevent instance_npcname(".#ghinstance11")+"::OnEffect1";
donpcevent instance_npcname(".#ghinstance10")+"::OnEffect1";
donpcevent instance_npcname(".#ghinstance9")+"::OnEffect1";
end;
OnTimer111500:
enablenpc instance_npcname(".#ghinstance8");
enablenpc instance_npcname(".#ghinstance7");
enablenpc instance_npcname(".#ghinstance6");
enablenpc instance_npcname(".#ghinstance5");
donpcevent instance_npcname(".#ghinstance8")+"::OnEffect1";
donpcevent instance_npcname(".#ghinstance7")+"::OnEffect1";
donpcevent instance_npcname(".#ghinstance6")+"::OnEffect1";
donpcevent instance_npcname(".#ghinstance5")+"::OnEffect1";
end;
OnTimer112000:
enablenpc instance_npcname(".#ghinstance4");
enablenpc instance_npcname(".#ghinstance3");
enablenpc instance_npcname(".#ghinstance2");
enablenpc instance_npcname(".#ghinstance1");
donpcevent instance_npcname(".#ghinstance4")+"::OnEffect1";
donpcevent instance_npcname(".#ghinstance3")+"::OnEffect1";
donpcevent instance_npcname(".#ghinstance2")+"::OnEffect1";
donpcevent instance_npcname(".#ghinstance1")+"::OnEffect1";
donpcevent instance_npcname("Heinrich#ghinstance3")+"::OnEnable";
donpcevent instance_npcname("Heinrich#ghinstance2")+"::OnDisable";
for (set .@i,1; .@i<=22; set .@i,.@i+1)
disablenpc instance_npcname(".#ghinstance"+.@i);
killmonster instance_mapname("1@gl_k"),instance_npcname("#talkinstance1")+"::OnMyMobDead";
end;
OnTimer112500:
donpcevent instance_npcname("Heinrich#ghinstance3")+"::OnTalk1";
end;
OnTimer115500:
donpcevent instance_npcname("Varmundt#ghinstance2")+"::OnTalk5";
end;
OnTimer118500:
donpcevent instance_npcname("Varmundt#ghinstance2")+"::OnTalk6";
end;
OnTimer121500:
donpcevent instance_npcname("Heinrich#ghinstance3")+"::OnTalk2";
end;
OnTimer124500:
donpcevent instance_npcname("Heinrich#ghinstance3")+"::OnTalk3";
end;
OnTimer127500:
donpcevent instance_npcname("Heinrich#ghinstance3")+"::OnTalk4";
end;
OnTimer130500:
donpcevent instance_npcname("Heinrich#ghinstance3")+"::OnTalk5";
end;
OnTimer134500:
donpcevent instance_npcname("Heinrich#ghinstance3")+"::OnTalk6";
end;
OnTimer138500:
donpcevent instance_npcname("Heinrich#ghinstance3")+"::OnTalk7";
end;
OnTimer143500:
donpcevent instance_npcname("Heinrich#ghinstance3")+"::OnTalk8";
end;
OnTimer147500:
donpcevent instance_npcname("Heinrich#ghinstance3")+"::OnDisable";
end;
OnTimer148500:
donpcevent instance_npcname("Varmundt#ghinstance2")+"::OnDisable";
stopnpctimer;
donpcevent instance_npcname("#ghinstancewarp1")+"::OnEnable";
donpcevent instance_npcname("#ghinstancewarp2")+"::OnEnable";
mapannounce instance_mapname("1@gl_k"),"A portal has opened to the west.",bc_map,"0xFFFF00";
donpcevent instance_npcname("#talkinstance1")+"::OnDisable";
donpcevent instance_npcname("#ghmemorialmob01")+"::OnEnable";
end;
OnMyMobDead:
end;
}
1@gl_k,145,54,6 script .#ghinstance1 111,{
end;
OnInstanceInit:
OnDisable:
disablenpc instance_npcname(strnpcinfo(0));
end;
OnEnable:
enablenpc instance_npcname(strnpcinfo(0));
end;
OnEffect1:
specialeffect EF_GRANDCROSS;
specialeffect EF_LEXAETERNA;
end;
}
1@gl_k,154,54,3 duplicate(.#ghinstance1) .#ghinstance2 111
1@gl_k,145,59,6 duplicate(.#ghinstance1) .#ghinstance3 111
1@gl_k,154,59,3 duplicate(.#ghinstance1) .#ghinstance4 111
1@gl_k,145,64,6 duplicate(.#ghinstance1) .#ghinstance5 111
1@gl_k,154,64,3 duplicate(.#ghinstance1) .#ghinstance6 111
1@gl_k,145,69,6 duplicate(.#ghinstance1) .#ghinstance7 111
1@gl_k,154,69,3 duplicate(.#ghinstance1) .#ghinstance8 111
1@gl_k,145,74,6 duplicate(.#ghinstance1) .#ghinstance9 111
1@gl_k,154,74,3 duplicate(.#ghinstance1) .#ghinstance10 111
1@gl_k,145,79,6 duplicate(.#ghinstance1) .#ghinstance11 111
1@gl_k,154,79,3 duplicate(.#ghinstance1) .#ghinstance12 111
1@gl_k,145,84,6 duplicate(.#ghinstance1) .#ghinstance13 111
1@gl_k,154,84,3 duplicate(.#ghinstance1) .#ghinstance14 111
1@gl_k,145,89,6 duplicate(.#ghinstance1) .#ghinstance15 111
1@gl_k,154,89,3 duplicate(.#ghinstance1) .#ghinstance16 111
1@gl_k,145,94,6 duplicate(.#ghinstance1) .#ghinstance17 111
1@gl_k,154,94,3 duplicate(.#ghinstance1) .#ghinstance18 111
1@gl_k,145,99,6 duplicate(.#ghinstance1) .#ghinstance19 111
1@gl_k,154,99,3 duplicate(.#ghinstance1) .#ghinstance20 111
1@gl_k,145,104,6 duplicate(.#ghinstance1) .#ghinstance21 111
1@gl_k,154,104,3 duplicate(.#ghinstance1) .#ghinstance22 111
1@gl_k,96,80,0 script #ghinstancewarp1 45,2,2,{
end;
OnInstanceInit:
OnDisable:
disablenpc instance_npcname(strnpcinfo(0));
end;
OnEnable:
enablenpc instance_npcname(strnpcinfo(0));
end;
OnTouch:
set .@map1$,instance_mapname("1@gl_k");
set .@map2$,instance_mapname("2@gl_k");
switch(atoi(replacestr(strnpcinfo(2),"ghinstancewarp",""))) {
case 1: warp .@map1$,80,80; break;
case 2: warp .@map1$,105,80; break;
case 3: warp .@map1$,215,79; break;
case 4: warp .@map1$,195,79; break;
case 5: warp .@map1$,215,216; break;
case 6: warp .@map1$,235,216; break;
case 7: warp .@map2$,150,46; break;
case 8: warp .@map2$,126,123; break;
case 9: warp .@map2$,150,116; break;
case 10: warp .@map2$,174,101; break;
case 11: warp .@map2$,150,110; break;
case 12: warp .@map2$,150,179; break;
case 13: warp .@map2$,150,160; break;
case 14: warp .@map1$,150,281; break;
case 15: warp .@map1$,48,168; break;
}
end;
}
1@gl_k,90,80,0 duplicate(#ghinstancewarp1) #ghinstancewarp2 45,2,2
1@gl_k,202,79,0 duplicate(#ghinstancewarp1) #ghinstancewarp3 45,2,2
1@gl_k,206,79,0 duplicate(#ghinstancewarp1) #ghinstancewarp4 45,2,2
1@gl_k,228,216,0 duplicate(#ghinstancewarp1) #ghinstancewarp5 45,2,2
1@gl_k,222,216,0 duplicate(#ghinstancewarp1) #ghinstancewarp6 45,2,2
1@gl_k,150,284,0 duplicate(#ghinstancewarp1) #ghinstancewarp7 45,2,2
2@gl_k,145,123,0 duplicate(#ghinstancewarp1) #ghinstancewarp8 45,2,2
2@gl_k,136,122,0 duplicate(#ghinstancewarp1) #ghinstancewarp9 45,2,2
2@gl_k,154,101,0 duplicate(#ghinstancewarp1) #ghinstancewarp10 45,2,2
2@gl_k,165,101,0 duplicate(#ghinstancewarp1) #ghinstancewarp11 45,2,2
2@gl_k,150,163,0 duplicate(#ghinstancewarp1) #ghinstancewarp12 45,2,2
2@gl_k,150,167,0 duplicate(#ghinstancewarp1) #ghinstancewarp13 45,2,2
2@gl_k,150,32,0 duplicate(#ghinstancewarp1) #ghinstancewarp14 45,2,2
1@gl_k,69,168,0 duplicate(#ghinstancewarp1) #ghinstancewarp15 45,2,2
// Sector 1 Mobs
//============================================================
1@gl_k,0,0,0 script #ghmemorialmob01 -1,{
OnInstanceInit:
OnDisable:
disablenpc instance_npcname("#ghmemorialmob01");
end;
OnEnable:
enablenpc instance_npcname("#ghmemorialmob01");
set .@map$,instance_mapname("1@gl_k");
set .@label$,instance_npcname("#ghmemorialmob01")+"::OnMyMobDead";
areamonster .@map$,76,99,87,10,"Grand Chamberlain in pain",2466,15,.@label$;
areamonster .@map$,67,39,12,6,"Corrupted Monk",2465,20,.@label$;
areamonster .@map$,67,39,12,6,"Grand Chamberlain in pain",2466,3,.@label$;
areamonster .@map$,32,75,51,58,"Corrupted Steward",2464,6,.@label$;
areamonster .@map$,45,84,6,137,"Corrupted Steward",2464,12,.@label$;
end;
OnMyMobDead:
set .@map$,instance_mapname("1@gl_k");
set .@label$,instance_npcname("#ghmemorialmob01")+"::OnMyMobDead";
set .@mob_dead_num,56 - mobcount(.@map$,.@label$);
if (.@mob_dead_num > 35) {
mapannounce .@map$,"Himelmez's curse is getting weaker. Find any survivors!",bc_map,"0xFFFFFF";
killmonster .@map$,.@label$;
donpcevent instance_npcname("Altar boy Domun#clearGH")+"::OnEnable";
donpcevent instance_npcname("#ghmemorialmob01")+"::OnDisable";
}
end;
}
1@gl_k,17,51,3 script Altar boy Domun#clearGH 706,{
if (is_party_leader()) {
mes "[Altar boy Domun]";
mes "Save me! Save me!!!";
npctalk "Save me! Save me!!!";
next;
select("Hold on! Are you the only survivor?");
mes "["+strcharinfo(0)+"]";
mes "Hold on! Are you the only survivor?";
unittalk getcharid(3),strcharinfo(0)+": Hold on! Are you the only survivor?";
next;
mes "[Altar boy Domun]";
mes "Chamberlains... monks... They all turned into monsters. I couldn't do anything.";
npctalk "Altar boy Domun: Chamberlains... monks... They all turned into monsters. I couldn't do anything.";
next;
mes "[Altar boy Domun]";
mes "All I could do was... Just hide in here... Nothing, nothing I could do...";
npctalk "Altar boy Domun: All I could do was... Just hide in here... Nothing, nothing I could do...";
next;
select("Pull it together!");
mes "["+strcharinfo(0)+"]";
mes "Wake up kid! Go east and find the middle passage to the outside! That is safe!";
unittalk getcharid(3),strcharinfo(0)+": Wake up kid! Go east and find the middle passage to the outside! That is safe!";
next;
mes "[Altar boy Domun]";
mes "To the east passage? Alone? How?";
npctalk "Altar boy Domun: To the east passage? Alone? How?";
next;
select("I will give you a weapon.");
mes "["+strcharinfo(0)+"]";
mes "Here's a weapon. Just close your eye and swing for those monsters.";
unittalk getcharid(3),strcharinfo(0)+": Here's a weapon. Just close your eye and swing for those monsters.";
next;
mes "[Altar boy Domun]";
mes "Ok, I... I'l try.";
npctalk "Altar boy Domun: Ok, I... I'l try.";
close2;
donpcevent instance_npcname("Altar boy Domun#clearGH")+"::OnDisable";
donpcevent instance_npcname("#ghmemorialmob02")+"::OnEnable";
end;
} else {
mes "[Altar boy Domun]";
mes "Save me, save me, please...";
close;
}
OnInstanceInit:
OnDisable:
hideonnpc instance_npcname("Altar boy Domun#clearGH");
end;
OnEnable:
hideoffnpc instance_npcname("Altar boy Domun#clearGH");
end;
}
// Sector 2 Mobs
//============================================================
1@gl_k,0,0,0 script #ghmemorialmob02 -1,{
OnInstanceInit:
OnDisable:
disablenpc instance_npcname("#ghmemorialmob02");
end;
OnEnable:
enablenpc instance_npcname("#ghmemorialmob02");
donpcevent instance_npcname("#ghinstancewarp3")+"::OnEnable";
donpcevent instance_npcname("#ghinstancewarp4")+"::OnEnable";
set .@map$,instance_mapname("1@gl_k");
set .@label$,instance_npcname("#ghmemorialmob02")+"::OnMyMobDead";
mapannounce .@map$,"A portal has opened to the east.",bc_map,"0xFFFF00";
areamonster .@map$,241,113,291,19,"Outraged Refiner",2466,12,.@label$;
areamonster .@map$,241,113,291,19,"Decomposed Blacksmith",2464,12,.@label$;
areamonster .@map$,227,217,291,135,"Outraged Refiner",2466,12,.@label$;
areamonster .@map$,227,217,291,135,"Decomposed Blacksmith",2464,12,.@label$;
end;
OnMyMobDead:
set .@map$,instance_mapname("1@gl_k");
set .@label$,instance_npcname("#ghmemorialmob02")+"::OnMyMobDead";
set .@mob_dead_num,48 - mobcount(.@map$,.@label$);
if (.@mob_dead_num > 28) {
mapannounce .@map$,"Himelmez's curse is getting weaker. Find any survivors!",bc_map,"0xFFFFFF";
killmonster .@map$,.@label$;
donpcevent instance_npcname("Holgren the Destroyer")+"::OnEnable";
donpcevent instance_npcname("#ghmemorialmob02")+"::OnDisable";
}
end;
}
1@gl_k,291,145,3 script Holgren the Destroyer 726,{
if (is_party_leader()) {
mes "[Holgren the Destroyer]";
mes "Die!! You shall die!!!";
npctalk "Holgren the Destroyer: Die!! You shall die!!!";
specialeffect EF_CRASHEARTH;
next;
select("Relax! I'm not a monster!");
mes "["+strcharinfo(0)+"]";
mes "Relax! I am Human. Are you alone? Anyone else here?";
unittalk getcharid(3),strcharinfo(0)+": Relax! I am Human. Are you alone? Anyone else here?";
next;
mes "[Holgren the Destroyer]";
mes "It's only me alive.";
npctalk "Holgren the Destroyer: It's only me alive.";
next;
select("It's dangerous here...");
mes "["+strcharinfo(0)+"]";
mes "It's dangerous here. You know the way to the middle passage? Can you move?";
unittalk getcharid(3),strcharinfo(0)+": It's dangerous here. You know the way to the middle passage? Can you move?";
next;
mes "[Holgren the Destroyer]";
mes "Yes, I can move. I need to get out of here.";
npctalk "Holgren the Destroyer: Yes, I can move. I need to get out of here.";
next;
select("Be safe...");
mes "["+strcharinfo(0)+"]";
mes "Sorry, I can't go with you.";
unittalk getcharid(3),strcharinfo(0)+": Sorry, I can't go with you.";
next;
mes "[Holgren the Destroyer]";
mes "It's ok. You've already done enough. I can help myself. Good luck to you too.";
npctalk "Holgren the Destroyer: It's ok. You've already done enough. I can help myself. Good luck to you too.";
close2;
donpcevent instance_npcname("Holgren the Destroyer")+"::OnDisable";
donpcevent instance_npcname("#ghmemorialmob03")+"::OnEnable";
end;
} else {
mes "[Holgren the Destroyer]";
mes "You human?";
close;
}
OnInstanceInit:
OnDisable:
hideonnpc instance_npcname("Holgren the Destroyer");
end;
OnEnable:
hideoffnpc instance_npcname("Holgren the Destroyer");
end;
}
// Tramp Mobs
//============================================================
1@gl_k,221,82,3 script A dead man#GHtramp1 849,4,4,{
end;
OnTouch:
set .@i,rand(1,10);
if (.@i == 1) set .@mobs,3;
else if (.@i == 2) set .@mobs,4;
else if (.@i == 3) set .@mobs,5;
else if (.@i < 7) set .@mobs,6;
else set .@mobs,7;
getmapxy(.@map$,.@x,.@y,1);
specialeffect EF_VENOMDUST;
monster .@map$,.@x,.@y,"Maggot",2467,.@mobs,instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
disablenpc instance_npcname(strnpcinfo(0));
end;
OnMyMobDead:
end;
OnInstanceInit:
OnEnable:
enablenpc instance_npcname(strnpcinfo(0));
end;
OnDisable:
disablenpc instance_npcname(strnpcinfo(0));
end;
}
1@gl_k,213,63,7 duplicate(A dead man#GHtramp1) A dead man#GHtramp2 849,4,4
1@gl_k,230,50,2 duplicate(A dead man#GHtramp1) A dead man#GHtramp3 849,4,4
1@gl_k,222,39,2 duplicate(A dead man#GHtramp1) A dead man#GHtramp4 849,4,4
1@gl_k,214,27,3 duplicate(A dead man#GHtramp1) A dead man#GHtramp5 849,4,4
1@gl_k,223,17,2 duplicate(A dead man#GHtramp1) A dead man#GHtramp6 849,4,4
1@gl_k,235,16,4 duplicate(A dead man#GHtramp1) A dead man#GHtramp7 849,4,4