/
airships.txt
1483 lines (1447 loc) · 43.2 KB
/
airships.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 =======================================
//= The Airship System Script
//===== By: ==================================================
//= rAthena Dev Team
//===== Current Version: =====================================
//= 1.0
//===== Compatible With: =====================================
//= rAthena Project
//===== Description: =========================================
//= The Airship System used in the official servers.
//===== Additional Comments: =================================
//= 1.0 First version.
//============================================================
//============================================================
//= Domestic Airship Route
//= ... -> Juno -> Einbroch -> Lighthalzen -> Einbroch
//= -> Juno -> Hugel -> ...
//============================================================
airplane,243,73,0 script #AirshipWarp-1 45,1,1,{
end;
OnInit:
OnHide:
specialeffect EF_BASH;
disablenpc strnpcinfo(0);
end;
OnUnhide:
enablenpc strnpcinfo(0);
specialeffect EF_SUMMONSLAVE;
end;
OnTouch_:
switch ($@airplanelocation) {
case 0: warp "yuno",92,260; end;
case 1: warp "einbroch",92,278; end;
case 2: warp "lighthalzen",302,75; end;
case 3: warp "hugel",181,146; end;
}
}
airplane,243,29,0 duplicate(#AirshipWarp-1) #AirshipWarp-2 45,1,1
airplane,1,1,0 script Domestic_Airship -1,{
end;
OnInit:
initnpctimer;
end;
OnTimer20000:
mapannounce "airplane","We are heading to Einbroch.",bc_map,"0x00ff00";
end;
OnTimer50000:
mapannounce "airplane","We will arrive in Einbroch shortly.",bc_map,"0x00ff00";
end;
OnTimer60000:
set $@airplanelocation,1;
donpcevent "#AirshipWarp-1::OnUnhide";
donpcevent "#AirshipWarp-2::OnUnhide";
mapannounce "airplane","Welcome to Einbroch. Have a safe trip.",bc_map,"0x00ff00";
end;
OnTimer70000:
mapannounce "airplane","Currently we are in Einbroch. The Airship will take off shortly.",bc_map,"0x00ff00";
end;
OnTimer80000:
donpcevent "#AirshipWarp-1::OnHide";
donpcevent "#AirshipWarp-2::OnHide";
mapannounce "airplane","The Airship is now taking off. Our next destination is Lighthalzen.",bc_map,"0x70dbdb";
end;
OnTimer100000:
mapannounce "airplane","We are heading to Lighthalzen.",bc_map,"0x70dbdb";
end;
OnTimer130000:
mapannounce "airplane","We will arrive in Lighthalzen shortly.",bc_map,"0x70dbdb";
end;
OnTimer140000:
set $@airplanelocation,2;
donpcevent "#AirshipWarp-1::OnUnhide";
donpcevent "#AirshipWarp-2::OnUnhide";
mapannounce "airplane","Welcome to Lighthalzen. Have a safe trip.",bc_map,"0x70dbdb";
end;
OnTimer150000:
mapannounce "airplane","Currently we are in Lighthalzen. The Airship will leave shortly.",bc_map,"0x70dbdb";
end;
OnTimer160000:
donpcevent "#AirshipWarp-1::OnHide";
donpcevent "#AirshipWarp-2::OnHide";
mapannounce "airplane","The Airship is leaving the ground. Our next destination is Einbroch.",bc_map,"0x00ff00";
end;
OnTimer180000:
mapannounce "airplane","We are heading to Einbroch.",bc_map,"0x00ff00";
end;
OnTimer210000:
mapannounce "airplane","We will arrive in Einbroch shortly.",bc_map,"0x00FF00";
end;
OnTimer220000:
set $@airplanelocation,1;
donpcevent "#AirshipWarp-1::OnUnhide";
donpcevent "#AirshipWarp-2::OnUnhide";
mapannounce "airplane","Welcome to Einbroch. Have a safe trip.",bc_map,"0x00ff00";
end;
OnTimer230000:
mapannounce "airplane","Currently we are in Einbroch. The Airship will take off shortly.",bc_map,"0x00ff00";
end;
OnTimer240000:
donpcevent "#AirshipWarp-1::OnHide";
donpcevent "#AirshipWarp-2::OnHide";
mapannounce "airplane","The Airship is now taking off. Our next destination is Juno.",bc_map,"0xff8200";
end;
OnTimer260000:
mapannounce "airplane","We are heading to Juno.",bc_map,"0xff8200";
end;
OnTimer290000:
mapannounce "airplane","We will arrive in Juno shortly.",bc_map,"0xff8200";
end;
OnTimer300000:
set $@airplanelocation,0;
donpcevent "#AirshipWarp-1::OnUnhide";
donpcevent "#AirshipWarp-2::OnUnhide";
mapannounce "airplane","Welcome to Juno. Have a safe trip.",bc_map,"0xff8200";
end;
OnTimer310000:
mapannounce "airplane","Currently we are in Juno. The Airship will leave shortly.",bc_map,"0xff8200";
end;
OnTimer320000:
donpcevent "#AirshipWarp-1::OnHide";
donpcevent "#AirshipWarp-2::OnHide";
mapannounce "airplane","The Airship is leaving the ground. Our next destination is Hugel.",bc_map,"0xca4bf3";
end;
OnTimer340000:
mapannounce "airplane","We are heading to Hugel.",bc_map,"0xca4bf3";
end;
OnTimer370000:
mapannounce "airplane","We will arrive in Hugel shortly.",bc_map,"0xca4bf3";
end;
OnTimer380000:
set $@airplanelocation,3;
donpcevent "#AirshipWarp-1::OnUnhide";
donpcevent "#AirshipWarp-2::OnUnhide";
mapannounce "airplane","Welcome to Hugel. Have a safe trip.",bc_map,"0xca4bf3";
end;
OnTimer390000:
mapannounce "airplane","Currently we are in Hugel. The Airship will leave shortly.",bc_map,"0xca4bf3";
end;
OnTimer400000:
donpcevent "#AirshipWarp-1::OnHide";
donpcevent "#AirshipWarp-2::OnHide";
mapannounce "airplane","The Airship is leaving the ground. Our next destination is Juno.",bc_map,"0xff8200";
end;
OnTimer420000:
mapannounce "airplane","We are heading to Juno.",bc_map,"0xff8200";
end;
OnTimer450000:
mapannounce "airplane","We will arrive in Juno shortly.",bc_map,"0xff8200";
end;
OnTimer460000:
set $@airplanelocation,0;
donpcevent "#AirshipWarp-1::OnUnhide";
donpcevent "#AirshipWarp-2::OnUnhide";
mapannounce "airplane","Welcome to Juno. Have a safe trip.",bc_map,"0xff8200";
end;
OnTimer470000:
mapannounce "airplane","Currently we are in Juno. The Airship will leave shortly.",bc_map,"0xff8200";
end;
OnTimer480000:
donpcevent "#AirshipWarp-1::OnHide";
donpcevent "#AirshipWarp-2::OnHide";
mapannounce "airplane","The Airship is leaving the ground. Our next destination is Einbroch.",bc_map,"0x00ff00";
stopnpctimer;
initnpctimer;
}
airplane,240,64,5 script Exit#airplane1a::ExitAirplane 857,{
end;
}
airplane,247,64,5 duplicate(ExitAirplane) Exit#airplane1b 857
airplane,240,40,1 duplicate(ExitAirplane) Exit#airplane2a 857
airplane,247,40,1 duplicate(ExitAirplane) Exit#airplane2b 857
airplane,100,69,3 script Airship Crew#ein-1 852,{
mes "[Airship Crew]";
mes "If we've landed at";
mes "your destination and";
mes "you'd like to leave the";
mes "Airship, please use the";
mes "stairs up ahead. Thank";
mes "you for your patronage.";
close;
}
airplane,64,94,1 script Umbala Kid#ein_p 787,{
emotion e_swt2;
mes "[Kid]";
if (event_umbala >= 3) {
mes "Wow, mom!";
mes "L-look at this!";
mes "We're flying! W-we're...";
mes "We're in the freakin' sky!";
}
else {
mes "Makumalagu!";
mes "Saampa joojimbo";
mes "kaku na jedi Solo.";
mes "Bwahahahahahahaah!";
}
close;
}
airplane,66,93,3 script Umbala Lady#ein_p 783,{
emotion e_dots;
mes "[Lady]";
if (event_umbala >= 3) {
mes "Shush...";
mes "Honey, behave~";
mes "Don't act so excited";
mes "when we're out in a";
mes "public place like this!";
}
else {
mes "Chooktu!";
mes "Sacraup matii!";
mes "Shaka gurftalfi";
mes "huntiki manjoo!";
}
close;
}
airplane,71,91,7 script Umbala Man#ein_p 789,{
if (event_umbala >= 3) {
mes "[Chrmlim]";
mes "Hey there~";
mes "From that look on";
mes "your face, I see that";
mes "you can understand";
mes "me. ^333333*Whew...!*^000000";
next;
emotion e_pif;
mes "[Chrmlim]";
mes "I've been helping the";
mes "Airship enterprise by";
mes "having the Airship Crewmen";
mes "train in Umbala to overcome";
mes "any acrophobia they might have through bungee jumping. Neat, eh?";
next;
mes "[Chrmlim]";
mes "But...";
mes "Some of them couldn't";
mes "overcome their fear of";
mes "heights. And a few even";
mes "ended up, um, ^333333in Nifflheim^000000.";
}
else {
mes "[Chrmlim]";
mes "Bajoo ga";
mes "nukta Airship.";
next;
mes "[Chrmlim]";
mes "...";
mes "......";
next;
emotion e_pif;
mes "[Chrmlim]";
mes "Shabala moow bajama";
mes "Airship kulaha googoona ";
mes "salu. Dama, kookoo na nu";
mes "yukuta. Um, fashuku na ret!";
}
close;
}
airplane,250,58,2 script Airship Staff#airplane 67,{
// Hugel quest addition
if (hg_ma1 == 3) {
mes "[Airship Staff]";
mes "Welcome";
mes "to the Airship.";
mes "How may I help you?";
next;
select("Do you have a passenger named Thierry?");
mes "[Airship Staff]";
mes "I am sorry, but I do not think that we have a passenger by that name.";
close;
}
// Hugel quest end
mes "[Airship Staff]";
mes "Welcome";
mes "to the Airship.";
mes "How may I help you?";
next;
switch (select("Using the Airship:Captain's Cabin:Facilities:Cancel")) {
case 1:
mes "[Airship Staff]";
mes "When you see a broadcast";
mes "announcing that we have";
mes "arrived at your destination,";
mes "please use one of the exits";
mes "located at the north and";
mes "south ends of the Airship.";
next;
mes "[Airship Staff]";
mes "If you happen to miss";
mes "your stop, don't worry.";
mes "The Airship is constantly";
mes "en route and you'll get";
mes "another chance to arrive";
mes "to your intended destination.";
close;
case 2:
mes "[Airship Staff]";
mes "The Captain's Cabin";
mes "is located at the front";
mes "of the Airship. There, you";
mes "can meet the captain and";
mes "the pilot of the Airship.";
close;
case 3:
mes "[Airship Staff]";
mes "The Airship provides";
mes "various Mini Games for";
mes "the entertainment of all";
mes "our passengers. We invite";
mes "you to try your luck and skills";
mes "in the Airship's Mini Games~";
close;
case 4:
mes "[Airship Staff]";
mes "Well, I hope you";
mes "your flight aboard";
mes "our Airships. Thank";
mes "you and have a good day.";
close;
}
}
airplane,80,71,2 script Zerta#01airplane 834,{
mes "[Zerta]";
mes "Oh, hello adventurer.";
mes "I am currently on a";
mes "sacred journey, offering";
mes "prayer for the sake of the";
mes "Rune-Midgard continent.";
close;
}
airplane,65,63,4 script Maelin#01airplane 714,{
mes "[Maelin]";
mes "Um, this Airship is";
mes "to Lutie, isn't it? I've";
mes "waiting so long,";
mes "but I haven't heard any";
mes "broadcast about Lutie.";
close;
}
airplane,72,34,6 script Aanos#01airplane 702,{
mes "[Aanos]";
mes "Oh wooow~";
mes "The sky looks";
mes "so different and";
mes "pretty from up there!";
close;
}
airplane,221,158,2 script Pilot#airplane 852,{
// Hugel quest addition
if (hg_ma1 == 3) {
mes "[Pilot]";
mes "I wish that I could go drink a cold fresh beer.";
mes "Drinking is the goal of my life! Drinking gives me energy!";
mes "I am nothing without drinks!";
next;
mes "[Pilot]";
mes "But! Driving under the influence is not good.";
mes "But! That makes me want to drink more and more!";
emotion e_sob;
next;
select("Do you know a passenger named Thierry?");
mes "[Pilot]";
mes "This uniform is";
mes "really dapper, but";
mes "it's way too thick to";
mes "wear around the Airship.";
next;
mes "[Pilot]";
mes "...";
mes "......";
mes "No one ever really";
mes "comes into this room.";
mes "And the captain IS a reindeer. I could just strip to my boxers.";
next;
emotion e_omg;
mes "[Pilot]";
mes "Wah!? Who is it!";
next;
mes "- ...He is not listening to you, at all. -";
close;
}
// Hugel quest end
switch (rand(1,4)) {
case 1:
mes "[Pilot]";
mes "It's been sooo";
mes "long since I've";
mes "enjoyed a nice, cold";
mes "alcoholic brew. But the";
mes "job requires me to be as";
mes "clear headed as I can!";
next;
mes "[Pilot]";
mes "Always drink responsibly!";
mes "Still, I can't remember the";
mes "last time I had a real vacation";
mes "or even a day off. Yeap, some";
mes "booze, some chips, some TV";
mes "and serius R&R is in order.";
emotion e_sob;
close;
case 2:
mes "[Pilot]";
mes "Man, the weather";
mes "is really nice today.";
mes "Bright, open skies make";
mes "for some good visibility";
mes "and safe, carefree flying.";
close;
case 3:
mes "[Pilot]";
mes "You know, our captain's a";
mes "respectable guy. Him and";
mes "his brother are actually well";
mes "known in the aircraft industry.";
mes "Who knew reindeer made";
mes "such good captains?";
next;
mes "[Pilot]";
mes "Just between you";
mes "and me, I gotta tell";
mes "you, that Santa was onto";
mes "something, getting reindeers";
mes "and elves to work for him.";
mes "The man must be a genius!";
close;
default:
mes "[Pilot]";
mes "You know, this whole";
mes "piloting thing in the air,";
mes "it's rather new, you know?";
mes "Yeah, they got this Airship";
mes "operation in a hurry.";
next;
emotion e_omg;
mes "[Pilot]";
mes "Still, they where real";
mes "serius, really thought";
mes "ahead. I mean, they had us";
mes "training while the Airships";
mes "were still being invented.";
mes "Isn't that freakin' crazy?!";
close;
}
}
airplane,50,66,5 script Apple Merchant#airplane 86,{
mes "[Fruitz]";
mes "Welcome to Fruitz's";
mes "Shop where you can";
mes "purchase Apples or grind";
mes "them to make Apple Juice.";
next;
switch (select("Buy Apples.:Make Apple Juice.:Why are you here?:Cancel.")) {
case 1:
mes "[Fruitz]";
mes "Please enter the amount";
mes "of Apples that you wish to";
mes "buy. Each Apple is 15 zeny";
mes "and you can buy a maximum";
mes "of 500 at a time. Please enter";
mes " '0' to cancel your order.";
next;
while (1) {
input .@input;
set .@pay, .@input * 15;
if (.@input == 0) {
mes "[Fruitz]";
mes "Thanks for stopping";
mes "by my shop. Farewell!";
mes "Come by anytime when";
mes "you feel like having an";
mes "Apple to snack on~";
close;
}
else if (.@input < 1 || .@input > 500) {
mes "[Fruitz]";
mes "You've entered a number";
mes "higher than the maximum";
mes "value of 500. Please enter";
mes "the number of Apples you";
mes "wish to purchase again.";
next;
}
else {
mes "[Fruitz]";
mes "A total of ^FF0000" + .@input + "^000000 Apples";
mes "will cost you ^FF0000" + .@pay + " Zeny^000000 zeny.";
mes "Would you like to continue?";
next;
if (select("Yes:No") == 2) {
mes "[Fruitz]";
mes "Thanks for stopping";
mes "by my shop. Farewell!";
mes "Come by anytime when";
mes "you feel like having an";
mes "Apple to snack on~";
close;
}
break;
}
}
if (Zeny < .@pay) {
mes "[Fruitz]";
mes "I'm sorry, but you don't";
mes "have enough money to";
mes "purchase that many Apples.";
mes "Please check your zeny or";
mes "purchase fewer Apples.";
close;
}
else if (checkweight(512,.@input) == 0) {
mes "[Fruitz]";
mes "Hmmm, I don't think";
mes "you've got enough room in";
mes "your inventory to carry this";
mes "many Apples. Why don't you free up some of your inventory space?";
close;
}
else {
set Zeny, Zeny - .@pay;
getitem 512,.@input; //Apple
mes "[Fruitz]";
mes "Thanks for stopping by";
mes "my shop. I hope you enjoy";
mes "the flavor of these Apples~!";
close;
}
case 2:
mes "[Fruitz]";
mes "Okay, I'll need";
mes "^FF00003 Apples and 1 Empty Bottle^000000";
mes "to make 1 Apple Juice for you.";
mes "Would you like to proceed?";
next;
switch (select("Yes:No")) {
case 1:
if (countitem(512) < 3 || countitem(713) < 1) {
mes "[Fruitz]";
mes "I'm sorry, but you don't";
mes "have enough materials to";
mes "create a bottle of Apple Juice.";
mes "Remember, I need 3 Apples";
mes "and 1 Empty Bottle to do it.";
close;
}
else {
mes "[Fruitz]";
mes "Thank you,";
mes "please wait";
mes "just a moment.";
next;
mes "^3355FF*Grind grind*";
mes "*Grind grind*";
mes "*Clang...!*^000000";
next;
delitem 512,3; //Apple
delitem 713,1; //Empty_Bottle
getitem 531,1; //Apple_Juice
mes "[Fruitz]";
mes "There you go~";
mes "I hope you enjoy!";
mes "Please feel free to";
mes "stop by for your Apple";
mes "and Apple Juice needs";
mes "at anytime, adventurer~";
close;
}
case 2:
mes "[Fruitz]";
mes "Thanks for stopping";
mes "by my shop. Farewell!";
mes "Come by anytime when";
mes "you feel like having an";
mes "Apple to snack on~";
close;
}
case 3:
mes "[Fruitz]";
mes "I used to be a wandering";
mes "vagabond when, one day,";
mes "I took a nap and something";
mes "struck my head and awoke";
mes "me from my restful slumber.";
next;
mes "[Fruitz]";
mes "It turns out that I was";
mes "sleeping beneath an apple";
mes "tree and that an apple fell";
mes "and hit me on the head.";
mes "I was dying of hunger and";
mes "was about to eat that Apple...";
next;
mes "[Fruitz]";
mes "But suddenly, Kain, my old";
mes "friend from the mining days,";
mes "asked me to help him around";
mes "on the Airship. So I did, and";
mes "it was there where I found some";
mes "people playing the Dice game.";
next;
mes "[Fruitz]";
mes "I was bored and curious";
mes "and ended up wagering that";
mes "single Apple in a game of";
mes "dice. But for some reason,";
mes "I had this incredible lucky";
mes "streak. One apple became two... ";
next;
mes "[Fruitz]";
mes "Two became four and";
mes "before I knew it, I had";
mes "cornered the Apple market!";
mes "I won so many Apples, I just";
mes "started my own business here";
mes "on the Airship. Weird, huh?";
next;
mes "[Fruitz]";
mes "So Apples are good";
mes "for you. They were";
mes "certainly very good";
mes "to me. Hahahahaah~!";
close;
case 4:
mes "[Fruitz]";
mes "Thank you for";
mes "using my shop.";
mes "Farewell~";
close;
}
}
//============================================================
//= International Airship Route
//= ... -> Izlude -> Juno -> Rachel -> ...
//============================================================
airplane_01,243,73,0 script #AirshipWarp-3 45,1,1,{
end;
OnTouch_:
switch ($@airplanelocation2) {
case 0: warp "ra_fild12",292,204; end;
case 1:
if(checkre(0))
warp "izlude",200,73;
else
warp "izlude",200,56;
end;
case 2: warp "yuno",12,261; end;
}
OnInit:
OnHide:
specialeffect EF_BASH;
disablenpc strnpcinfo(0);
end;
OnUnhide:
enablenpc strnpcinfo(0);
specialeffect EF_SUMMONSLAVE;
end;
}
airplane_01,243,29,0 duplicate(#AirshipWarp-3) #AirshipWarp-4 45,1,1
airplane_01,1,1,0 script International_Airship -1,{
end;
OnInit:
OnEnable:
initnpctimer;
end;
OnTimer25000:
mapannounce "airplane_01","We are heading to Izlude.",bc_map,"0x00ff00";
end;
OnTimer50000:
mapannounce "airplane_01","We will arrive in Izlude shortly.",bc_map,"0x00ff00";
end;
OnTimer60000:
set $@airplanelocation2,1;
donpcevent "#AirshipWarp-3::OnUnhide";
donpcevent "#AirshipWarp-4::OnUnhide";
mapannounce "airplane_01","Welcome to Izlude. Have a safe trip.",bc_map,"0x00ff00";
end;
OnTimer70000:
mapannounce "airplane_01","We are currently in Izlude. The Airship will take off shortly.",bc_map,"0x00ff00";
end;
OnTimer80000:
donpcevent "#AirshipWarp-3::OnHide";
donpcevent "#AirshipWarp-4::OnHide";
mapannounce "airplane_01","The Airship is now taking off. Our next destination is Juno.",bc_map,"0x70dbdb";
end;
OnTimer105000:
mapannounce "airplane_01","We are heading to Juno.",bc_map,"0x70dbdb";
end;
OnTimer130000:
mapannounce "airplane_01","We will arrive in Juno shortly.",bc_map,"0x70dbdb";
end;
OnTimer140000:
set $@airplanelocation2,2;
donpcevent "#AirshipWarp-3::OnUnhide";
donpcevent "#AirshipWarp-4::OnUnhide";
mapannounce "airplane_01","Welcome to Juno. Have a safe trip.",bc_map,"0x70dbdb";
end;
OnTimer150000:
mapannounce "airplane_01","We are currently in Juno. The Airship will leave shortly.",bc_map,"0x70dbdb";
end;
OnTimer160000:
donpcevent "#AirshipWarp-3::OnHide";
donpcevent "#AirshipWarp-4::OnHide";
mapannounce "airplane_01","The Airship is leaving the ground. Our next destination is Rachel.",bc_map,"0xFF8200";
end;
OnTimer185000:
mapannounce "airplane_01","We are heading to Rachel.",bc_map,"0xFF8200";
end;
OnTimer210000:
mapannounce "airplane_01","We will arrive in Rachel shortly.",bc_map,"0xFF8200";
end;
OnTimer220000:
set $@airplanelocation2,0;
donpcevent "#AirshipWarp-3::OnUnhide";
donpcevent "#AirshipWarp-4::OnUnhide";
mapannounce "airplane_01","Welcome to Rachel. Have a safe trip.",bc_map,"0xFF8200";
end;
OnTimer230000:
mapannounce "airplane_01","We are currently in Rachel. The Airship will take off shortly.",bc_map,"0xFF8200";
end;
OnTimer240000:
donpcevent "#AirshipWarp-3::OnHide";
donpcevent "#AirshipWarp-4::OnHide";
mapannounce "airplane_01","The Airship is now taking off. Our next destination is Izlude.",bc_map,"0x00ff00";
stopnpctimer;
set .moninv, .moninv + 1;
if (.moninv == 7) {
if (rand(1,3) == 3) {
donpcevent "Airship#airplane02::OnEnable";
end;
}
set .moninv, 0;
}
initnpctimer;
end;
}
airplane_01,240,64,5 script Exit#airplane_011a::ExitAirplane01 857,{
end;
}
airplane_01,247,64,5 duplicate(ExitAirplane01) Exit#airplane_011b 857
airplane_01,240,40,1 duplicate(ExitAirplane01) Exit#airplane_012a 857
airplane_01,247,40,1 duplicate(ExitAirplane01) Exit#airplane_012b 857
airplane_01,250,58,2 script Airship Staff#airplane01 67,{
mes "[Airship Staff]";
mes "Welcome";
mes "to the Airship.";
mes "How may I help you?";
next;
switch (select("Using the Airship:Captain's Cabin:Facilities:Cancel")) {
case 1:
mes "[Airship Staff]";
mes "When you see a broadcast";
mes "announcing that we have";
mes "arrived at your destination,";
mes "please use one of the exits";
mes "located at the north and";
mes "south ends of the Airship.";
next;
mes "[Airship Staff]";
mes "If you happen to miss";
mes "your stop, don't worry.";
mes "The Airship is constantly";
mes "en route and you'll get";
mes "another chance to arrive";
mes "to your intended destination.";
close;
case 2:
mes "[Airship Staff]";
mes "The Captain's Cabin";
mes "is located at the front";
mes "of the Airship. There, you";
mes "can meet the captain and";
mes "the pilot of the Airship.";
close;
case 3:
mes "[Airship Staff]";
mes "The Airship provides";
mes "various Mini Games for";
mes "the entertainment of all";
mes "our passengers. We invite";
mes "you to try your luck and skills";
mes "in the Airship's Mini Games~";
close;
case 4:
mes "[Airship Staff]";
mes "Well, I hope you";
mes "your flight aboard";
mes "our Airships. Thank";
mes "you and have a good day.";
close;
}
}
airplane_01,50,66,5 script Apple Merchant#air01 86,{
if (checkweight(1201,1) == 0) {
mes "- Wait a minute !! -";
mes "- Currently you're carrying -";
mes "- too many items with you. -";
mes "- Please try again -";
mes "- after you loose some weight. -";
close;
}
mes "[Meltz]";
mes "Welcome to Meltz's";
mes "Shop where you can";
mes "purchase Apples or grind";
mes "them to make Apple Juice.";
next;
switch (select("Buy Apples.:Make Apple Juice.:Cancel.")) {
case 1:
mes "[Meltz]";
mes "Please enter the amount";
mes "of Apples that you wish to";
mes "buy. Each Apple is 15 zeny";
mes "and you can buy a maximum";
mes "of 500 at a time. Please enter";
mes "'0' to cancel your order.";
next;
while (1) {
input .@input;
set .@pay, .@input * 15;
if (.@input == 0) {
mes "[Meltz]";
mes "Thanks for stopping";
mes "by my shop. Farewell!";
mes "Come by anytime when";
mes "you feel like having an";
mes "Apple to snack on~";
close;
}
else if (.@input < 1 || .@input > 500) {
mes "[Meltz]";
mes "You've entered a number";
mes "higher than the maximum";
mes "value of 500. Please enter";
mes "the number of Apples you";
mes "wish to purchase again.";
next;
}
else {
mes "[Meltz]";
mes "A total of ^FF0000" + .@input + "^000000 Apples";
mes "will cost you ^FF0000" + .@pay + "^000000 zeny.";
mes "Would you like to continue?";
next;
if (select("Yes:No") == 2) {
mes "[Meltz]";
mes "Thanks for stopping";
mes "by my shop. Farewell!";
mes "Come by anytime when";
mes "you feel like having an";
mes "Apple to snack on~";
close;
}
break;
}
}
if (Zeny < .@pay) {
mes "[Meltz]";
mes "I'm sorry, you don't have";
mes "enough money with you.";
mes "Please check your funds or";
mes "purchase less Apples.";
close;
}
else if (checkweight(512,.@input) == 0) {
mes "[Meltz]";
mes "Hmm, I don't think you've";
mes "got enough room to carry";
mes "this many Apples. You might";
mes "want to free up your inventory";
mes "space.";
close;
}
else {
set Zeny, Zeny - .@pay;
getitem 512,.@input; //Apple
mes "[Meltz]";
mes "Thanks for stopping by";
mes "my shop. I hope you enjoy";
mes "the flavor of these Apples~!";
close;
}
case 2:
mes "[Meltz]";
mes "Okay, I'll need";
mes "^FF00003 Apples and 1 Empty Bottle^000000";
mes "to make 1 Apple Juice for you.";
mes "Would you like to proceed?";
next;
switch (select("Yes:No")) {
case 1:
if (countitem(512) < 3 || countitem(713) < 1) {
mes "[Meltz]";
mes "I'm sorry, but you don't";
mes "have enough materials to";
mes "create a bottle of Apple Juice.";
mes "Remember, I need 3 Apples";
mes "and 1 Empty Bottle to do it.";
close;
}
else {
mes "[Meltz]";
mes "Thank you, please wait.";
next;
mes "^3355FF*Grind* *Grind*";
mes "*Grind* *Grind*";
mes "*Clang...!*^000000";
next;
delitem 512,3; //Apple
delitem 713,1; //Empty_Bottle
getitem 531,1; //Apple_Juice
mes "[Meltz]";
mes "There you go~";
mes "Please come again.";
close;
}
case 2:
mes "[Meltz]";
mes "Thanks for stopping";
mes "by my shop. Farewell!";
mes "Come by anytime when";
mes "you feel like having an";
mes "Apple to snack on~";
close;
}
case 3:
mes "[Meltz]";
mes "Thanks for stopping";
mes "by my shop. Farewell!";
mes "Come by anytime when";
mes "you feel like having an";
mes "Apple to snack on~";
close;
}
}
airplane_01,221,158,2 script Pilot#airplane_01 852,{
switch (rand(1,4)) {
case 1:
mes "[Pilot]";
mes "Longitude, 131 degrees east.";
mes "Latitude, 37 degrees north.";
mes "We're right on course, captain.";
close;
case 2:
mes "[Pilot]";
mes "Looks like a really";
mes "cloudy day. Always hard";
mes "to navigate when the skies";
mes "aren't clear. Guess we'll";
mes "need to amp the radar.";
close;
case 3:
mes "[Pilot]";
mes "The Captain is a good";
mes "man and I can't think of";
mes "a finer person to command";
mes "this ship. Still, he's pretty";
mes "tough, a real slave driver.";
next;
mes "[^ff0000Tarlock^000000]";
mes "^ff0000Hey...!^000000";
mes "^ff0000Less chit-chat^000000";
mes "^ff0000and more piloting!^000000";
next;
mes "[Pilot]";
mes "R-right away, sir!";
mes "(See what I mean?)";
close;
default:
mes "[Pilot]";
mes "This uniform is";
mes "really dapper, but";