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
|
//===== rAthena Script =======================================
//= Octopus Cave
//===== By: ==================================================
//= Muad_Dib
//===== Current Version: =====================================
//= 1.0
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= [Official Conversion]
//= Defeat the Disgusting Octopus.
//===== Additional Comments: =================================
//= 1.0 First version. [Euphy]
//============================================================
// Instance Creation
//============================================================
mal_dun01,151,235,5 script Starfish 551,{
set .@party_id,getcharid(1);
set .@md_name$,"Octopus Cave";
if (!.@party_id) {
mes "[Starfish]";
mes "You alone is powerless, hehe!";
mes "Better get someone to help you out.";
mes "Make a party, and come back later.";
close;
}
if (getcharid(0) != getpartyleader(.@party_id,2)) {
mes "[Starfish]";
mes "Where is your leader, hehe.";
mes "I don't talk to some random people.";
mes "Bring your boss to me.";
close;
}
mes "[Starfish]";
mes "I am guarding here, hehe!";
mes "It is just roughly blocked for now.";
mes "But someday this cave must be sealed forever, hehe!";
next;
while (1) {
switch(select("Ask what's going on.:Ask to open the gate.:Go to other location.")) {
case 1:
mes "[Starfish]";
mes "Lately, our Starfish lady is";
mes "suffering with some issues, ooh ooh.";
mes "Something bad happen in this";
mes "peaceful place, hehe!";
next;
mes "[Starfish]";
mes "Weird looking limbs came out";
mes "from the hole there,";
mes "tried to kidnap our lady Starfish.";
mes "Ooh Ooh.";
next;
mes "[Starfish]";
mes "It seems those limbs belong to";
mes "that ugly octopus.";
mes "That monster should be taken care of,";
mes "but it's hard for ourselves only to make it happen, hehe.";
next;
mes "[Starfish]";
mes "I want to find someone special,";
mes "and ask to punish this ugly octopus.";
mes "I hope this octopus won't ever";
mes "harass our lady, hehe.";
next;
mes "[Starfish]";
mes "Go catch that octopus and stick it to this pick.";
mes "If you bring back the pick, I will";
mes "open this gate for a while.";
mes "You should challenge if you are interested, hehe.";
next;
break;
case 2:
set .@playtime, checkquest(4197,PLAYTIME);
if (.@playtime == 0 || .@playtime == 1) {
mes "[Starfish]";
mes "Octopus is not around now, hehe.";
mes "Please come back later.";
close;
}
if (.@playtime == 2) erasequest 4197;
if (countitem(6442)) {
set .@instance, instance_create(.@md_name$,.@party_id);
if (.@instance < 0) {
mes "[Starfish]";
mes "Party name is... "+getpartyname(.@party_id)+".";
mes "Party leader is... "+strcharinfo(0)+".";
mes "^0000ff"+.@md_name$+"^000000, I cannot open now, hehe.";
mes "Now is not the time, please wait.";
close;
}
if (instance_attachmap("1@cash",.@instance) == "") {
mes "^0000ff"+.@md_name$+"^000000 - Reservation Failed!";
instance_destroy(.@instance);
close;
}
instance_attach(.@instance);
instance_set_timeout 3600,300,.@instance;
instance_init(.@instance);
donpcevent instance_npcname("oct_enter", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_enter_broad", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_foot_4", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_foot1", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_foot_exit1", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_foot2", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_foot_exit2", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_foot3", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_foot_exit3", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_foot4", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_foot_exit4", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_mob_con", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_backattack1", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_backattack2", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_backattack3", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_backattack4", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_boss_con", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_boss_foot", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_boss_warp", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_exit_1", instance_id())+"::OnInstanceInit";
donpcevent instance_npcname("oct_exit_2", instance_id())+"::OnInstanceInit";
mes "[Starfish]";
mes "I will open the gate for a while to ^0000ff"+.@md_name$+"^000000.";
mes "Please catch that pervert octopus,";
mes "and come back with it sticked to the pick, hehe.";
close;
}
mes "[Starfish]";
mes "Prepare a pick first,";
mes "so you can thread that octopus";
mes "with that pick.";
mes "Then, I will let you in for a while, hehe.";
close;
case 3:
mes "[Starfish]";
mes "This is not a good location, check someplace else.";
close;
}
}
}
mal_dun01,153,237,5 script Weird Entrance 844,{
mes "There is a strange entrance";
mes "blocked roughly with some boards.";
next;
switch(select("Go in.:Stop.")) {
case 1:
if (countitem(6442)) {
// TODO: Add official MD_Enter cases.
if (has_instance("1@cash") == "") {
if (checkquest(4197,PLAYTIME) == 0 || checkquest(4197,PLAYTIME) == 1) {
mes "[Starfish]";
mes "Ah, now is not the time...";
mes "Would you come back later? Hehe.";
close;
}
mes "[Starfish]";
mes "Shhh... Weird aura is";
mes "coming from that entrance.";
mes "Big trouble is waiting, if you go in now.";
close;
}
mapannounce "mal_dun01", getpartyname(getcharid(1))+" party's "+strcharinfo(0)+" member started to hunt the Octopus!",bc_map,"0x00ff99";
if (checkquest(4197) == -1) setquest 4197;
warp "1@cash",199,99;
close;
}
mes "[Starfish]";
mes "You should definitely prepare";
mes "hunting stick if you want to";
mes "punish the Octopus.";
mes "Or I will not let you in! Hehe.";
close;
case 2:
mes "[Starfish]";
mes "Yes Yes, you better quit.";
close;
}
}
// Instance Scripts
//============================================================
1@cash,199,99,0 script oct_enter 139,4,4,{
end;
OnInstanceInit:
enablenpc instance_npcname("oct_enter", instance_id());
end;
OnTouch:
donpcevent instance_npcname("oct_enter_broad", instance_id())+"::OnEnable";
specialeffect EF_BASH;
disablenpc instance_npcname("oct_enter", instance_id());
end;
}
1@cash,1,1,0 script oct_enter_broad -1,{
end;
OnInstanceInit:
donpcevent instance_npcname("oct_enter_broad", instance_id())+"::OnDisable";
end;
OnEnable:
enablenpc instance_npcname("oct_enter_broad", instance_id());
donpcevent instance_npcname("oct_foot_4", instance_id())+"::OnEnable";
donpcevent instance_npcname("oct_mob_con", instance_id())+"::OnEnable";
initnpctimer;
end;
OnDisable:
disablenpc instance_npcname("oct_enter_broad", instance_id());
end;
OnTimer1000:
instance_announce 0,"Pervert Octopus : How dare you to come inside of my place!",bc_map,"0xFFFF00";
end;
OnTimer4000:
instance_announce 0,"Pervert Octopus : But I blocked all the cave gates!! There is nothing you can do!",bc_map,"0xFFFF00";
end;
OnTimer7000:
instance_announce 0,"Pervert Octopus : My juniors~ There is your toy! Play with it~ kakaka",bc_map,"0xFFFF00";
stopnpctimer;
donpcevent instance_npcname("oct_enter_broad", instance_id())+"::OnDisable";
end;
}
1@cash,3,3,0 script oct_foot_4 -1,{
end;
OnInstanceInit:
donpcevent instance_npcname("oct_foot_4", instance_id())+"::OnDisable";
end;
OnEnable:
enablenpc instance_npcname("oct_foot_4", instance_id());
donpcevent instance_npcname("oct_foot1", instance_id())+"::OnEnable";
donpcevent instance_npcname("oct_foot2", instance_id())+"::OnEnable";
donpcevent instance_npcname("oct_foot3", instance_id())+"::OnEnable";
donpcevent instance_npcname("oct_foot4", instance_id())+"::OnEnable";
monster "1@cash",20,114,"Octopus Leg#1",2193,1,instance_npcname("oct_foot_4", instance_id())+"::OnMyMobDead";
monster "1@cash",88,190,"Octopus Leg#2",2193,1,instance_npcname("oct_foot_4", instance_id())+"::OnMyMobDead";
monster "1@cash",307,215,"Octopus Leg#3",2193,1,instance_npcname("oct_foot_4", instance_id())+"::OnMyMobDead";
monster "1@cash",372,131,"Octopus Leg#4",2193,1,instance_npcname("oct_foot_4", instance_id())+"::OnMyMobDead";
end;
OnDisable:
disablenpc instance_npcname("oct_foot_4", instance_id());
end;
OnMyMobDead:
if (mobcount("1@cash",instance_npcname("oct_foot_4", instance_id())+"::OnMyMobDead") < 1) {
donpcevent instance_npcname("oct_boss_con", instance_id())+"::OnEnable";
instance_announce 0,"Hey you!! I'll personally take care of you all! Let's bring it on!",bc_map,"0x00ff99";
enablenpc instance_npcname("oct_boss_warp", instance_id());
instance_warpall "1@cash",199,99;
end;
}
instance_announce 0,"Arrgg!! That hurts!!! I need another strategy...",bc_map,"0x00ff99";
end;
}
1@cash,20,114,0 script oct_foot1 139,6,6,{
end;
OnInstanceInit:
donpcevent instance_npcname(strnpcinfo(0), instance_id())+"::OnDisable";
end;
OnEnable:
enablenpc instance_npcname(strnpcinfo(0), instance_id());
set .@label$, instance_npcname(strnpcinfo(0), instance_id())+"::OnMyMobDead";
set .@i, atoi(charat(strnpcinfo(0),8));
switch(.@i) {
case 1:
areamonster "1@cash",34,96,38,100,"Octopus's Henchman",2192,3,.@label$;
areamonster "1@cash",39,90,41,92,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",38,76,40,78,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",39,58,41,60,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",50,38,56,44,"Octopus's Henchman",2192,5,.@label$;
areamonster "1@cash",68,32,72,36,"Octopus's Henchman",2192,5,.@label$;
areamonster "1@cash",83,26,85,28,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",107,28,109,30,"Octopus's Henchman",2192,1,.@label$;
areamonster "1@cash",123,28,125,30,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",134,31,138,35,"Octopus's Henchman",2192,5,.@label$;
areamonster "1@cash",142,39,146,43,"Octopus's Henchman",2192,2,.@label$;
break;
case 2:
areamonster "1@cash",139,113,143,117,"Octopus's Henchman",2192,5,.@label$;
areamonster "1@cash",135,104,137,106,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",123,93,127,97,"Octopus's Henchman",2192,3,.@label$;
areamonster "1@cash",113,90,115,92,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",103,89,105,91,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",89,90,91,92,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",74,104,76,106,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",74,120,76,122,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",83,131,87,135,"Octopus's Henchman",2192,3,.@label$;
areamonster "1@cash",92,142,94,144,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",98,159,100,161,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",94,180,98,184,"Octopus's Henchman",2192,5,.@label$;
break;
case 3:
areamonster "1@cash",299,209,303,213,"Octopus's Henchman",2192,3,.@label$;
areamonster "1@cash",292,203,296,207,"Octopus's Henchman",2192,3,.@label$;
areamonster "1@cash",291,186,293,188,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",292,166,294,168,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",293,151,295,153,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",299,137,303,141,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",300,123,304,127,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",300,104,304,108,"Octopus's Henchman",2192,3,.@label$;
areamonster "1@cash",279,101,281,103,"Octopus's Henchman",2192,2,.@label$;
monster "1@cash",260,103,"Octopus's Henchman",2192,1,.@label$;
break;
case 4:
areamonster "1@cash",363,123,367,127,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",364,108,368,112,"Octopus's Henchman",2192,5,.@label$;
areamonster "1@cash",363,93,367,97,"Octopus's Henchman",2192,3,.@label$;
areamonster "1@cash",364,72,366,74,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",364,58,366,60,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",355,44,359,48,"Octopus's Henchman",2192,3,.@label$;
areamonster "1@cash",346,36,350,40,"Octopus's Henchman",2192,3,.@label$;
areamonster "1@cash",319,28,325,34,"Octopus's Henchman",2192,5,.@label$;
areamonster "1@cash",305,27,307,29,"Octopus's Henchman",2192,2,.@label$;
areamonster "1@cash",276,29,280,33,"Octopus's Henchman",2192,5,.@label$;
areamonster "1@cash",258,37,262,41,"Octopus's Henchman",2192,2,.@label$;
break;
}
end;
OnDisable:
killmonster "1@cash",instance_npcname(strnpcinfo(0), instance_id())+"::OnMyMobDead"; // Not in official script.
disablenpc instance_npcname(strnpcinfo(0), instance_id());
end;
OnTouch:
if (getd("."+strnpcinfo(0)+instance_id())) end;
setd "."+strnpcinfo(0)+instance_id(),1;
hideonnpc instance_npcname(strnpcinfo(0), instance_id());
instance_announce 0,"Come out all my babies and help me out!",bc_map,"0xFFFF00";
initnpctimer;
end;
OnTimer5000:
instance_announce 0,"Let's give them a lesson!",bc_map,"0xFFFF00";
set .@label$, instance_npcname(strnpcinfo(0), instance_id())+"::OnMyMobDead";
set .@i, atoi(charat(strnpcinfo(0),8));
switch(.@i) {
case 1:
areamonster "1@cash",18,112,22,116,"Octopus's Henchman",2192,3,.@label$;
areamonster "1@cash",18,112,22,116,"Octopus's Henchman",2192,3,.@label$;
break;
case 2:
areamonster "1@cash",86,188,90,192,"Octopus's Henchman",2192,3,.@label$;
areamonster "1@cash",96,98,100,102,"Octopus's Henchman",2192,3,.@label$;
break;
case 3:
areamonster "1@cash",305,213,309,217,"Octopus's Henchman",2192,3,.@label$;
areamonster "1@cash",305,213,309,217,"Octopus's Henchman",2192,3,.@label$;
break;
case 4:
areamonster "1@cash",370,129,374,133,"Octopus's Henchman",2192,3,.@label$;
areamonster "1@cash",370,129,374,133,"Octopus's Henchman",2192,3,.@label$;
break;
}
end;
OnTimer30000:
setd "."+strnpcinfo(0)+instance_id(),0;
stopnpctimer;
set .@i, atoi(charat(strnpcinfo(0),8));
donpcevent instance_npcname("oct_foot_exit"+.@i, instance_id())+"::OnEnable";
donpcevent instance_npcname(strnpcinfo(0), instance_id())+"::OnDisable";
end;
OnMyMobDead:
if (mobcount("1@cash",instance_npcname(strnpcinfo(0), instance_id())+"::OnMyMobDead") < 1) {
instance_announce 0,"You hurt my babies!!? You'll have to pay for this!!!",bc_map,"0x00ff99";
setd "."+strnpcinfo(0)+instance_id(),0;
stopnpctimer;
set .@i, atoi(charat(strnpcinfo(0),8));
donpcevent instance_npcname("oct_foot_exit"+.@i, instance_id())+"::OnEnable";
donpcevent instance_npcname(strnpcinfo(0), instance_id())+"::OnDisable";
end;
}
end;
}
1@cash,88,190,0 duplicate(oct_foot1) oct_foot2 139,6,6
1@cash,307,215,0 duplicate(oct_foot1) oct_foot3 139,6,6
1@cash,372,131,0 duplicate(oct_foot1) oct_foot4 139,6,6
1@cash,16,117,0 script oct_foot_exit1 45,2,2,{
end;
OnInstanceInit:
disablenpc instance_npcname(strnpcinfo(0), instance_id());
end;
OnEnable:
enablenpc instance_npcname(strnpcinfo(0), instance_id());
end;
OnTouch:
warp "1@cash",198,99;
end;
}
1@cash,77,193,0 duplicate(oct_foot_exit1) oct_foot_exit2 45,2,2
1@cash,312,214,0 duplicate(oct_foot_exit1) oct_foot_exit3 45,2,2
1@cash,370,139,0 duplicate(oct_foot_exit1) oct_foot_exit4 45,2,2
1@cash,15,15,0 script oct_mob_con -1,{
end;
OnInstanceInit:
donpcevent instance_npcname("oct_mob_con", instance_id())+"::OnDisable";
end;
OnEnable:
enablenpc instance_npcname("oct_mob_con", instance_id());
monster "1@cash",32,94,"Hydra",1068,1;
monster "1@cash",41,101,"Hydra",1068,1;
monster "1@cash",35,78,"Hydra",1068,1;
monster "1@cash",35,62,"Hydra",1068,1;
monster "1@cash",49,54,"Hydra",1068,1;
monster "1@cash",70,28,"Hydra",1068,1;
monster "1@cash",83,22,"Hydra",1068,1;
monster "1@cash",99,23,"Hydra",1068,1;
monster "1@cash",115,23,"Hydra",1068,1;
monster "1@cash",132,25,"Hydra",1068,1;
monster "1@cash",100,185,"Hydra",1068,1;
monster "1@cash",92,178,"Hydra",1068,1;
monster "1@cash",92,162,"Hydra",1068,1;
monster "1@cash",70,121,"Hydra",1068,1;
monster "1@cash",70,105,"Hydra",1068,1;
monster "1@cash",105,85,"Hydra",1068,1;
monster "1@cash",121,84,"Hydra",1068,1;
monster "1@cash",292,209,"Hydra",1068,1;
monster "1@cash",303,206,"Hydra",1068,1;
monster "1@cash",290,163,"Hydra",1068,1;
monster "1@cash",299,150,"Hydra",1068,1;
monster "1@cash",308,141,"Hydra",1068,1;
monster "1@cash",308,125,"Hydra",1068,1;
monster "1@cash",295,97,"Hydra",1068,1;
monster "1@cash",279,97,"Hydra",1068,1;
monster "1@cash",370,111,"Hydra",1068,1;
monster "1@cash",370,110,"Hydra",1068,1;
monster "1@cash",371,96,"Hydra",1068,1;
monster "1@cash",371,80,"Hydra",1068,1;
monster "1@cash",367,55,"Hydra",1068,1;
monster "1@cash",343,29,"Hydra",1068,1;
monster "1@cash",327,24,"Hydra",1068,1;
monster "1@cash",311,22,"Hydra",1068,1;
monster "1@cash",295,22,"Hydra",1068,1;
monster "1@cash",279,22,"Hydra",1068,1;
areamonster "1@cash",30,67,50,87,"Stapo",1784,1;
areamonster "1@cash",102,19,122,39,"Stapo",1784,1;
areamonster "1@cash",89,138,109,158,"Stapo",1784,1;
areamonster "1@cash",112,83,132,103,"Stapo",1784,1;
areamonster "1@cash",283,168,303,188,"Stapo",1784,1;
areamonster "1@cash",292,97,312,117,"Stapo",1784,1;
areamonster "1@cash",355,64,375,84,"Stapo",1784,1;
areamonster "1@cash",317,17,337,37,"Stapo",1784,1;
donpcevent instance_npcname("oct_backattack1", instance_id())+"::OnEnable";
donpcevent instance_npcname("oct_backattack2", instance_id())+"::OnEnable";
donpcevent instance_npcname("oct_backattack3", instance_id())+"::OnEnable";
donpcevent instance_npcname("oct_backattack4", instance_id())+"::OnEnable";
donpcevent instance_npcname("oct_mob_con", instance_id())+"::OnDisable";
end;
OnDisable:
disablenpc instance_npcname("oct_mob_con", instance_id());
end;
}
1@cash,45,53,0 script oct_backattack1 139,3,3,{
end;
OnInstanceInit:
disablenpc instance_npcname("oct_backattack1", instance_id());
end;
OnTouch:
monster "1@cash",39,59,"Hydra",1068,1;
monster "1@cash",40,59,"Hydra",1068,1;
monster "1@cash",41,59,"Hydra",1068,1;
monster "1@cash",47,50,"Hydra",1068,1;
monster "1@cash",48,50,"Hydra",1068,1;
monster "1@cash",49,50,"Hydra",1068,1;
monster "1@cash",41,53,"Octopus's Henchman",2192,1;
instance_announce 0,"Don't let them break through, stop them!!!",bc_map,"0x00ff99";
specialeffect EF_BASH;
disablenpc instance_npcname("oct_backattack1", instance_id());
end;
OnEnable:
enablenpc instance_npcname("oct_backattack1", instance_id());
end;
}
1@cash,78,99,0 script oct_backattack2 139,3,3,{
end;
OnInstanceInit:
disablenpc instance_npcname("oct_backattack2", instance_id());
end;
OnTouch:
if (getd("."+instance_id())) end;
setd "."+instance_id(),1;
initnpctimer;
monster "1@cash",71,105,"Octopus's Henchman ",2192,1;
instance_announce 0,"Headquarters are empty, GO!!!",bc_map,"0x00ff99";
hideonnpc instance_npcname("oct_backattack2", instance_id());
end;
OnTimer2000:
monster "1@cash",71,105,"Octopus's Henchman ",2192,1;
instance_announce 0,"Run, RUN! Go, GO!!!",bc_map,"0x00ff99";
end;
OnTimer4000:
monster "1@cash",71,105,"Octopus's Henchman ",2192,1;
instance_announce 0,"No time, come out fast!",bc_map,"0x00ff99";
end;
OnTimer6000:
monster "1@cash",71,105,"Octopus's Henchman ",2192,3;
instance_announce 0,"Let's take over the headquarters!!!",bc_map,"0x00ff99";
end;
OnTimer8000:
monster "1@cash",71,105,"Octopus's Henchman ",2192,1;
instance_announce 0,"There is no time to lose, hurry up!!!",bc_map,"0x00ff99";
stopnpctimer;
end;
OnEnable:
enablenpc instance_npcname("oct_backattack2", instance_id());
end;
}
1@cash,299,144,0 script oct_backattack3 139,3,3,{
end;
OnInstanceInit:
disablenpc instance_npcname("oct_backattack2", instance_id());
end;
OnTouch:
if (getd("."+instance_id())) end;
setd "."+instance_id(),1;
monster "1@cash",293,153,"Octopus's Henchman ",2192,1;
monster "1@cash",294,152,"Octopus's Henchman ",2192,1;
monster "1@cash",292,153,"Octopus's Henchman ",2192,1;
monster "1@cash",293,151,"Octopus's Henchman ",2192,1;
monster "1@cash",293,152,"Octopus's Henchman ?",2175,1;
instance_announce 0,"Kakaka! Suprised??!!",bc_map,"0x00ff99";
initnpctimer;
hideonnpc instance_npcname("oct_backattack3", instance_id());
end;
OnTimer5000:
instance_announce 0,"... Looks like we have a spy among us.",bc_map,"0x00ff99";
stopnpctimer;
end;
OnEnable:
enablenpc instance_npcname("oct_backattack3", instance_id());
end;
}
1@cash,336,36,0 script oct_backattack4 139,3,3,{
end;
OnInstanceInit:
disablenpc instance_npcname("oct_backattack2", instance_id());
end;
OnTouch:
if (getd("."+instance_id())) end;
setd "."+instance_id(),1;
monster "1@cash",332,37,"Octopus's Henchman ",2192,1;
monster "1@cash",332,36,"Octopus's Henchman ",2192,1;
monster "1@cash",332,35,"Octopus's Henchman ",2192,1;
monster "1@cash",332,34,"Octopus's Henchman ",2192,1;
monster "1@cash",341,37,"Octopus's Henchman ",2192,1;
monster "1@cash",341,36,"Octopus's Henchman ",2192,1;
monster "1@cash",341,35,"Octopus's Henchman ",2192,1;
monster "1@cash",341,34,"Octopus's Henchman ",2192,1;
monster "1@cash",260,40,"Mercenary Squid",2175,1;
monster "1@cash",260,41,"Mercenary Squid",2175,1;
monster "1@cash",260,39,"Mercenary Squid",2175,1;
monster "1@cash",259,40,"Mercenary Squid",2175,1;
monster "1@cash",261,40,"Mercenary Squid",2175,1;
instance_announce 0,"What a successful pincer tactic! The enemy is strong! Let's not lose yourselves! Anyway, where are all the mercenaries??",bc_map,"0x00ff99";
initnpctimer;
hideonnpc instance_npcname("oct_backattack4", instance_id());
end;
OnTimer5000:
instance_announce 0,"Mercenary Squid : eh...eh... wrong direction. No enemies are shown in this direction.",bc_map,"0x00ff99";
end;
OnTimer7000:
instance_announce 0,"Pervert Octopus : Fools! Can't you read the map??!! Useless!!",bc_map,"0x00ff99";
stopnpctimer;
end;
OnEnable:
enablenpc instance_npcname("oct_backattack4", instance_id());
end;
}
1@cash,2,2,0 script oct_boss_con -1,{
end;
OnInstanceInit:
donpcevent instance_npcname("oct_boss_con", instance_id())+"::OnDisable";
end;
OnDisable:
disablenpc instance_npcname("oct_boss_con", instance_id());
end;
OnEnable:
enablenpc instance_npcname("oct_boss_con", instance_id());
donpcevent instance_npcname("oct_boss_foot", instance_id())+"::OnEnable";
monster "1@cash",199,188,"Disgusting Octopus",2194,1,instance_npcname("oct_boss_con", instance_id())+"::OnMyMobDead";
initnpctimer;
end;
OnTimer7000:
callsub OnAnnounce,
"You won't attack the one man.",
"I got fired from ink manufacturer last week.",
"Disgusting Octopus : Arghhhhh, come on!";
end;
OnTimer14000:
callsub OnAnnounce,
"Why... why can't you know my heart!",
"Do you know how hard it is to live these days because there are not many new adventurers?",
"You.. I'll destroy you all...!";
end;
OnTimer21000:
callsub OnAnnounce,
"What? I'm a disgusting octopus? You're sadists.",
"Let's not do this and how about we look for the best solution, huh??",
"Even if I fail here, I will keep coming back, forever!!!";
end;
OnTimer28000:
callsub OnAnnounce,
"Instinct of mating is for males, what did I do wrong?",
"Do you really want to solve the problem between humans by violence?? Ah, I'm an octopus...",
"That's enough! Back off!";
end;
OnTimer35000:
callsub OnAnnounce,
"Do I have to spend Christmas alone again...",
"Youth unemployment became a big issue these days... You won't get a job if you keep playing with me here.",
"This is as far as I can go!";
end;
OnTimer42000:
callsub OnAnnounce,
"Hand on your heart and think if you come onto anyone...",
"Let's not do this here and follow the law!",
"You'll keep on doing this til the end, is that it?";
end;
OnTimer49000:
callsub OnAnnounce,
"errrrrrrrrrrrrrrrrrrrrrrrr... Cough! Cough!",
"Disgusting Octopus : Violence cannot be justified in any case.",
"This is my place!!!";
stopnpctimer;
initnpctimer;
end;
OnAnnounce:
instance_announce 0,"Disgusting Octopus : "+getarg(rand(3)),bc_map,"0xFFFF00";
return;
OnMyMobDead:
if (mobcount("1@cash",instance_npcname("oct_boss_con", instance_id())+"::OnMyMobDead") < 1) {
instance_announce 0,"Disgusting Octopus : That's it for the today! Next time, I will play with you badly!",bc_map,"0xFFFF00";
enablenpc instance_npcname("oct_exit_1", instance_id());
enablenpc instance_npcname("oct_exit_2", instance_id());
donpcevent instance_npcname("oct_boss_foot", instance_id())+"::OnDisable";
stopnpctimer;
donpcevent instance_npcname("oct_boss_con", instance_id())+"::OnDisable";
end;
}
end;
}
1@cash,4,4,0 script oct_boss_foot -1,{
end;
OnInstanceInit:
donpcevent instance_npcname("oct_boss_foot", instance_id())+"::OnDisable";
end;
OnEnable:
enablenpc instance_npcname("oct_boss_foot", instance_id());
initnpctimer;
end;
OnCall:
if (mobcount("1@cash",instance_npcname("oct_boss_foot", instance_id())+"::OnMyMobDead") < 100) {
switch(rand(2)) {
case 0:
instance_announce 0,"Disgusting Octopus : Do you know how many legs octopus have? It doesn't matter, I have unlimited legs!!",bc_map,"0xFFFF00";
areamonster "1@cash",192,181,206,195,"Octopus Leg",2193,1,instance_npcname("oct_boss_foot", instance_id())+"::OnMyMobDead";
break;
case 1:
instance_announce 0,"Disgusting Octopus : I...cannot..hold anymore, my babies~ please come out and fight!",bc_map,"0xFFFF00";
areamonster "1@cash",192,181,206,195,"Octopus's Henchman ",2192,5,instance_npcname("oct_boss_foot", instance_id())+"::OnMyMobDead";
break;
}
}
initnpctimer;
end;
OnTimer10000:
stopnpctimer;
donpcevent instance_npcname("oct_boss_foot", instance_id())+"::OnCall";
end;
OnDisable:
stopnpctimer;
killmonster "1@cash",instance_npcname("oct_boss_foot", instance_id())+"::OnMyMobDead"; // Not in official script.
disablenpc instance_npcname("oct_boss_foot", instance_id());
end;
OnMyMobDead:
end;
}
1@cash,198,116,0 script oct_boss_warp 45,2,2,{
end;
OnInstanceInit:
disablenpc instance_npcname("oct_boss_warp", instance_id());
end;
OnTouch:
warp "1@cash",210,172;
end;
}
1@cash,190,208,0 script oct_exit_1 45,2,2,{
end;
OnInstanceInit:
disablenpc instance_npcname(strnpcinfo(0), instance_id());
end;
OnTouch:
mes "Do you want to go out from the octopus dungeon?";
next;
if(select("No!:Yes!") == 2)
warp "mal_dun01",153,233;
close;
}
1@cash,198,82,0 duplicate(oct_exit_1) oct_exit_2 45,2,2
// This is never enabled in the official script.
//1@cash,200,161,0 duplicate(oct_exit_1) oct_exit_3 45,2,2
// Warp Portals
//============================================================
1@cash,193,82,0 warp oct_door1 2,2,1@cash,151,48
1@cash,154,53,0 warp oct_door2 2,2,1@cash,197,87
1@cash,187,99,0 warp oct_door3 2,2,1@cash,148,128
1@cash,153,133,0 warp oct_door4 2,2,1@cash,197,99
1@cash,209,100,0 warp oct_door5 2,2,1@cash,250,111
1@cash,244,118,0 warp oct_door6 2,2,1@cash,199,100
1@cash,209,83,0 warp oct_door7 2,2,1@cash,252,46
1@cash,246,53,0 warp oct_door8 2,2,1@cash,203,83
|