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
|
//===== eAthena Script =======================================
//= The Airship System Script
//===== By: ==================================================
//= MasterOfMuppets
//===== Current Version: =====================================
//= 0.2
//===== Compatible With: =====================================
//= eAthena SVN 3422+(Requires jA Script System)
//===== Description: =========================================
//= The Airship System used in the official servers, however this
//= one is still about 25% custom and is missing some npcs.
//===== Additional Comments: =================================
//= 0.1 Added first version, it might be a little buggy [MasterOfMuppets]
//= 0.1a Fixed the Airport Staff#Iz which was [MasterOfMuppets]
//= warping you to the same location as Airport Staff#Ein
//= 0.2 Implemented some more airship NPCs, more are to come.
//============================================================
//============================================================
//= The Airship System (Yuno -> Hugel -> Einbroch -> Lighthalzen -> repeat)
//============================================================
airplane.gat,243,74,4 script #AirshipWarp-1 45,2,2{
OnTouch:
if($airplanelocation == 1)warp "einbroch.gat",90,275;
if($airplanelocation == 2)warp "yuno.gat",85,265;
if($airplanelocation == 3)warp "lighthalzen.gat",302,75;
if($airplanelocation == 4)warp "hugel.gat",182,150;
end;
OnHide:
misceffect 16;
end;
OnUnhide:
misceffect 215;
end;
}
airplane.gat,243,29,4 script #AirshipWarp-2 45,2,2{
OnTouch:
if($airplanelocation == 1)warp "einbroch.gat",90,275;
if($airplanelocation == 2)warp "yuno.gat",85,265;
if($airplanelocation == 3)warp "lighthalzen.gat",302,75;
if($airplanelocation == 4)warp "hugel.gat",182,150;
end;
OnHide:
misceffect 16;
end;
OnUnhide:
misceffect 215;
end;
}
airplane.gat,1,1,0 script EinYuno_Airship -1,{
OnInit:
while(1)
{
initnpctimer;
setnpctimer 0;
set $airplanelocation,0;
donpcevent "#AirshipWarp-1::OnHide";
donpcevent "#AirshipWarp-2::OnHide";
disablenpc "#AirshipWarp-1";
disablenpc "#AirshipWarp-2";
mapannounce "airplane.gat","The Airship is leaving the ground. Our next destination is Hugel.",1,0xBA55D3;
end;
OnTimer15000:
mapannounce "airplane.gat","We are heading to Hugel.",1,0xBA55D3;
end;
OnTimer30000:
mapannounce "airplane.gat","We will arrive in Hugel shortly.",1,0xBA55D3;
end;
OnTimer45000:
set $airplanelocation,4;
enablenpc "#AirshipWarp-1";
enablenpc "#AirshipWarp-2";
donpcevent "#AirshipWarp-1::OnUnhide";
donpcevent "#AirshipWarp-2::OnUnhide";
mapannounce "airplane.gat","Welcome to Hugel. Have a safe trip.",1,0xBA55D3;
end;
OnTimer55000:
mapannounce "airplane.gat","Currently we are in Hugel. The Airship will leave shortly.",1,0xBA55D3;
end;
OnTimer65000:
set $airplanelocation,0;
donpcevent "#AirshipWarp-1::OnHide";
donpcevent "#AirshipWarp-2::OnHide";
disablenpc "#AirshipWarp-1";
disablenpc "#AirshipWarp-2";
mapannounce "airplane.gat","The Airship is leaving the ground. Our next destination is Einbroch.",1,0x00FF00;
end;
OnTimer80000:
mapannounce "airplane.gat","We are heading to Einbroch.",1,0x00FF00;
end;
OnTimer95000:
mapannounce "airplane.gat","We will arrive in Einbroch shortly.",1,0x00FF00;
end;
OnTimer110000:
set $airplanelocation,1;
enablenpc "#AirshipWarp-1";
enablenpc "#AirshipWarp-2";
donpcevent "#AirshipWarp-1::OnUnhide";
donpcevent "#AirshipWarp-2::OnUnhide";
mapannounce "airplane.gat","Welcome to Einbroch. Have a safe trip.",1,0x00FF00;
end;
OnTimer120000:
mapannounce "airplane.gat","Currently we are in Einbroch. The Airship will take off shortly.",1,0x00FF00;
end;
OnTimer130000:
set $airplanelocation,0;
donpcevent "#AirshipWarp-1::OnHide";
donpcevent "#AirshipWarp-2::OnHide";
disablenpc "#AirshipWarp-1";
disablenpc "#AirshipWarp-2";
mapannounce "airplane.gat","The Airship is leaving the ground. Our next destination is Lighthalzen.",1,0xFF8600;
end;
OnTimer145000:
mapannounce "airplane.gat","We are heading to Lighthalzen.",1,0xFF8600;
end;
OnTimer160000:
mapannounce "airplane.gat","We will arrive in Lighthalzen shortly.",1,0xFF8600;
end;
OnTimer175000:
set $airplanelocation,3;
enablenpc "#AirshipWarp-1";
enablenpc "#AirshipWarp-2";
donpcevent "#AirshipWarp-1::OnUnhide";
donpcevent "#AirshipWarp-2::OnUnhide";
mapannounce "airplane.gat","Welcome to Lighthalzen. Have a safe trip.",1,0xFF8600;
end;
OnTimer185000:
mapannounce "airplane.gat","Currently we are in Lighthalzen. The Airship will leave shortly.",1,0xFF8600;
end;
OnTimer195000:
set $airplanelocation,0;
donpcevent "#AirshipWarp-1::OnHide";
donpcevent "#AirshipWarp-2::OnHide";
disablenpc "#AirshipWarp-1";
disablenpc "#AirshipWarp-2";
mapannounce "airplane.gat","The Airship is now taking off. Our next destination is Yuno.",1,0x70DBDB;
end;
OnTimer210000:
mapannounce "airplane.gat","We are heading to Yuno.",1,0x70DBDB;
end;
OnTimer225000:
mapannounce "airplane.gat","We will arrive in Yuno shortly.",1,0x70DBDB;
end;
OnTimer240000:
set $airplanelocation,2;
enablenpc "#AirshipWarp-1";
enablenpc "#AirshipWarp-2";
donpcevent "#AirshipWarp-1::OnUnhide";
donpcevent "#AirshipWarp-2::OnUnhide";
mapannounce "airplane.gat","Welcome to Yuno. Have a safe trip.",1,0x70DBDB;
end;
OnTimer250000:
mapannounce "airplane.gat","Currently we are in Yuno. The Airship will leave shortly.",1,0x70DBDB;
end;
OnTimer260000:
stoptimer;
}
}
//C4644E
//============================================================
//= Some normal NPCS (airplane.gat)
//============================================================
airplane.gat,240,64,5 script Exit 857,{
end;
}
airplane.gat,247,64,5 duplicate(Exit) Exit 857
airplane.gat,240,39,1 duplicate(Exit) Exit 857
airplane.gat,247,39,1 duplicate(Exit) Exit 857
airplane.gat,100,69,2 script Airship Crew 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 you patronage.";
close;
}
airplane.gat,250,59,3 script Airship Staff::AirshipInfo 67,{
mes "[Airship Staff]";
mes "Welcome";
mes "to the Airship.";
mes "How may I help you?";
next;
menu "Using the Airship",s_Use,"Captain's Cabin",s_Capt,"Facilities",s_Faci,"Cancel",-;
mes "[Airship Staff]";
mes "Well, I hope you like";
mes "your flight aboard";
mes "our Airships. Thank";
mes "you and have a good day.";
close;
s_Use:
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 "on route and you'll get";
mes "another chance to arrive";
mes "to your intended destination.";
close;
s_Capt:
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;
s_Faci:
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;
}
airplane.gat,50,66,4 script Meltz::AirshipApples 86,{
mes "[Meltz]";
mes "Welcome to Meltz's";
mes "Shop where you can";
mes "purchase Apples or grind";
mes "them to make Apple Juice.";
next;
menu "Buy Apples",s_Buy,"Make Apple Juice",s_Juice,"Cancel.",-;
s_Cancel:
mes "[Meltz]";
mes "Thanks for stopping";
mes "by my shop. Farewell!";
mes "Come back anytime when";
mes "you feel like having an";
mes "Apple to snack on~";
close;
s_Buy:
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;
input @tempapple;
if(!@tempapple)goto s_Cancel;
if(@tempapple > 0 && @tempapple < 501)goto s_AppleBuy;
if(@tempapple < 0)close;
mes "[Meltz]";
mes "The maximum amount of apples";
mes "you can buy at the same time";
mes "is 500. " + @tempapple + " is clearly";
mes "over 500.";
close;
s_AppleBuy:
mes "[Meltz]";
mes "A total of ^FF0000" + @tempapple + "^000000 Apples.";
mes "will cost you ^FF0000" + @tempapple * 15 + "^000000 zeny.";
mes "Would you like to continue?";
next;
menu "Yes",-,"No",s_Cancel;
if(zeny < (@tempapple * 15))goto s_NEnoughZeny;
mes "[Meltz]";
mes "Thanks for stopping by";
mes "my shop. I hope you enjoy";
mes "the flavor of these Apples~!";
getitem 512,@tempapple;
set zeny,zeny - (@tempapple * 15);
close;
s_NEnoughZeny:
mes "[Meltz]";
mes "I'm sorry buy you don't";
mes "seem to have enough zeny.";
mes "Come back anytime when";
mes "you feel like having an";
mes "Apple to snack on~";
close;
s_Juice:
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;
menu "Yes",-,"No",s_Cancel;
if(countitem(512) < 3 || !countitem(713))goto s_Material;
mes "[Meltz]";
mes "Thank you,";
mes "please wait";
mes "just a moment.";
next;
mes "*Grind grind*";
mes "*Grind grind*";
mes "*Clang...!*";
next;
mes "[Meltz]";
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~";
delitem 512,3;
delitem 713,1;
getitem 531,1;
close;
s_Material:
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;
}
//============================================================
//= The Airship System (Yuno -> Izlude -> Repeat)
//============================================================
airplane_01.gat,243,74,4 script #AirshipWarp-3 45,2,2{
OnTouch:
if($airplanelocation2 == 1)warp "izlude.gat",202,56;
if($airplanelocation2 == 2)warp "yuno.gat",20,265;
end;
OnHide:
misceffect 16;
end;
OnUnhide:
misceffect 215;
end;
}
airplane_01.gat,243,29,4 script #AirshipWarp-4 45,2,2{
OnTouch:
if($airplanelocation2 == 1)warp "izlude.gat",202,56;
if($airplanelocation2 == 2)warp "yuno.gat",20,265;
OnHide:
misceffect 16;
end;
OnUnhide:
misceffect 215;
end;
}
airplane_01.gat,1,1,0 script YunoIzl_Airship -1,{
OnInit:
while(1)
{
initnpctimer;
setnpctimer 0;
set $airplanelocation2,0;
donpcevent "#AirshipWarp-3::OnHide";
donpcevent "#AirshipWarp-4::OnHide";
disablenpc "#AirshipWarp-3";
disablenpc "#AirshipWarp-4";
mapannounce "airplane_01.gat","The Airship is leaving the ground. Our next destination is Izlude.",1,0x00FF00;
end;
OnTimer15000:
mapannounce "airplane_01.gat","We are heading to Izlude.",1,0x00FF00;
end;
OnTimer30000:
mapannounce "airplane_01.gat","We will arrive in Izlude shortly.",1,0x00FF00;
end;
OnTimer45000:
set $airplanelocation2,1;
enablenpc "#AirshipWarp-3";
enablenpc "#AirshipWarp-4";
donpcevent "#AirshipWarp-3::OnUnhide";
donpcevent "#AirshipWarp-4::OnUnhide";
mapannounce "airplane_01.gat","Welcome to Izlude. Have a safe trip.",1,0x00FF00;
end;
OnTimer55000:
mapannounce "airplane_01.gat","Currently we are in Izlude. The Airship will leave shortly.",1,0x00FF00;
end;
OnTimer65000:
set $airplanelocation2,0;
donpcevent "#AirshipWarp-3::OnHide";
donpcevent "#AirshipWarp-4::OnHide";
disablenpc "#AirshipWarp-3";
disablenpc "#AirshipWarp-4";
mapannounce "airplane_01.gat","The Airship is leaving the ground. Our next destination is Yuno.",1,0x70DBDB;
end;
OnTimer80000:
mapannounce "airplane_01.gat","We are heading to Yuno.",1,0x70DBDB;
end;
OnTimer95000:
mapannounce "airplane_01.gat","We will arrive in Yuno shortly.",1,0x70DBDB;
end;
OnTimer110000:
set $airplanelocation2,2;
enablenpc "#AirshipWarp-3";
enablenpc "#AirshipWarp-4";
donpcevent "#AirshipWarp-3::OnUnhide";
donpcevent "#AirshipWarp-4::OnUnhide";
mapannounce "airplane_01.gat","Welcome to Yuno. Have a safe trip.",1,0x70DBDB;
end;
OnTimer120000:
mapannounce "airplane_01.gat","Currently we are in Yuno. The Airship will take off shortly.",1,0x70DBDB;
end;
OnTimer130000:
stoptimer;
}
}
//============================================================
//= Some normal NPCS (airplane_01.gat)
//============================================================
airplane_01.gat,240,64,5 duplicate(Exit) Exit 857
airplane_01.gat,247,64,5 duplicate(Exit) Exit 857
airplane_01.gat,240,39,1 duplicate(Exit) Exit 857
airplane_01.gat,247,39,1 duplicate(Exit) Exit 857
airplane_01.gat,100,69,2 duplicate(Airship Crew) Airship Crew 852
airplane_01.gat,250,59,3 duplicate(AirshipInfo) Airship Staff 67
airplane_01.gat,50,66,4 duplicate(AirshipApples) Meltz 86
airplane_01.gat,83,61,2 script Girl 72,{
mes "[Dianne]";
mes "It's so weird!";
mes "I went to visit the";
mes "Airship Captain and";
mes "all I saw was this";
mes "weird reindeer. Oh!";
mes "Do you think that...";
close;
}
airplane_01.gat,69,63,2 script Old Man 55,{
mes "[Mendel]";
mes "As I expected, the";
mes "in-flight meals are";
mes "three star quality at best.";
mes "^111111*Harrrumph*^000000 I really should";
mes "have brought my chef so that";
mes "I could enjoy a real meal.";
close;
}
//============================================================
//= The Izlude Airship Staff
//============================================================
izlude.gat,201,54,3 script Airship Staff#izl 91,{
mes "[Airship Staff]";
mes "Welcome to the Izlude Airship.";
mes "How may I help you?";
next;
menu "Board the Airship",-,"Cancel",L_Cancel;
mes "[Airship Staff]";
mes "The Airship boarding fee";
mes "is 1,200 zeny, but if you've";
mes "got a Free Ticket for Airship,";
mes "the fee will be waived. Will";
mes "you board the Airship?";
next;
menu "Yes",-,"No",L_Cancel;
if(countitem(7311) > 0) goto L_GotTicket;
if(Zeny < 1200) goto L_NoZeny;
set Zeny, Zeny - 1200;
warp "airplane_01.gat",224,64;
close;
L_GotTicket:
delitem 7311,1;
warp "airplane_01.gat",224,64;
close;
L_NoZeny:
mes "[Airship Staff]";
mes "You don't have enough zeny.";
close;
L_Cancel:
mes "[Airship Staff]";
mes "Thank you and";
mes "have a nice day.";
close;
}
//============================================================
//= The Hugel Airship Staff
//============================================================
hugel.gat,182,150,3 script Airship Staff#hu 91,{
mes "[Airship Staff]";
mes "Welcome to the Schwartzwald Republic's Airship.";
mes "How may I help you?";
next;
menu "Board the Airship",-,"Cancel",L_Cancel;
mes "[Airship Staff]";
mes "The Airship boarding fee";
mes "is 1,200 zeny, but if you've";
mes "got a Free Ticket for Airship,";
mes "the fee will be waived. Will";
mes "you board the Airship?";
next;
menu "Yes",-,"No",L_Cancel;
if(countitem(7311) > 0) goto L_GotTicket;
if(Zeny < 1200) goto L_NoZeny;
set Zeny, Zeny - 1200;
warp "airplane.gat",224,64;
close;
L_GotTicket:
delitem 7311,1;
warp "airplane.gat",224,64;
close;
L_NoZeny:
mes "[Airship Staff]";
mes "You don't have enough zeny.";
close;
L_Cancel:
mes "[Airship Staff]";
mes "Thank you and";
mes "have a nice day.";
close;
}
//============================================================
//= Yuno Airport NPCs
//============================================================
y_airport.gat,144,63,4 script Airport Staff#Ein 91,{
mes "[Airship Staff]";
mes "Good day!";
mes "Would you like to go";
mes "to ^FF0000Einbroch^000000,^FF0000Hugel^000000 or";
mes "^FF0000Lighthalzen^000000?";
next;
menu "Yes.",s_Warp,"No.",-;
mes "[Airship Staff]";
mes "Thank you and";
mes "have a nice day.";
close;
s_Warp:
mes "[Airship Staff]";
mes "Thank you and";
mes "have a nice day.";
close2;
warp "yuno.gat",57,240;
end;
}
y_airport.gat,141,63,4 script Airport Staff#Izl 91,{
mes "[Airship Staff]";
mes "Good day!";
mes "Would you like to go";
mes "to ^FF0000Izlude^000000?";
next;
menu "Yes.",s_Warp,"No.",-;
mes "[Airship Staff]";
mes "Thank you and";
mes "have a nice day.";
close;
s_Warp:
mes "[Airship Staff]";
mes "Thank you and";
mes "have a nice day.";
close2;
warp "yuno.gat",50,240;
end;
}
|