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
|
// -----------------------------------Warp to Cave 1 ---------------------------------------
025-3.gat,78,127,0 script #WarpBattleCave1 127,1,1,{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped;
// Check if someone is already inside. Change the x1, y1, x2, y2 values according to the place the player will be warped
if (getareausers("025-4.gat", 26, 63, 60, 97) >= 1) goto L_SomeoneInside;
// Check if you already done this fight
if (cavefights & BATTLE_CAVE1) goto L_AlreadyDone;
if (Rossy_Quest < 15) goto L_Block;
L_StartFight:
set $@battlecave1, 1;
warp "025-4.gat", 41, 95;
set $@cave1fighter$, strcharinfo(0);
set $@cave1fighterdeaths, PC_DIE_COUNTER;
startnpctimer;
set $@cave1start, gettimetick(2);
message strcharinfo(0), "This is the message that you receive when you enter the cave";
end;
L_SomeoneInside:
message strcharinfo(0), $@cave1fighter$ + " is already inside.";
end;
L_AlreadyDone:
message strcharinfo(0), "I already defeated the monsters in this cave.";
end;
L_AlreadyHelped:
if (@juliadone == 1) end;
message strcharinfo(0), "I already helped that little girl. There is nothing for me inside this cave.";
set @juliadone, 1;
end;
L_Block:
message strcharinfo(0), "I can't enter this cave. Maybe I should learn more about this place before I go inside.";
end;
OnTimer5000:
if ($@battlecave1 == 0) goto L_AlreadyClean;
if (isloggedin(getcharid(3,$@cave1fighter$))==0) goto L_CleaningNorid;
attachrid(getcharid(3,$@cave1fighter$));
if (gettimetick(2) - $@cave1start >= $@CAVE1_TIME) goto L_Cleaning;
if (PC_DIE_COUNTER > $@cave1fighterdeaths) goto L_Cleaning;
setnpctimer 0;
end;
L_Cleaning:
attachrid(getcharid(3,$@cave1fighter$));
warp "025-3.gat", 78, 129;
message strcharinfo(0), "This is the message the player will see when he takes too long or get killed inside the cave.";
set $@wave_cave1, 0;
set $@cave1_kills, 0;
set $@cave1start, 0;
set $@cave1fighter$, "";
set $@cave1fighterdeaths$, 0;
killmonster "025-4.gat", "#StartCaveFight1::OnMonsterDeath";
stopnpctimer;
setnpctimer 0;
end;
L_CleaningNorid:
set $@wave_cave1, 0;
set $@cave1_kills, 0;
set $@cave1start, 0;
set $@cave1fighter$, "";
set $@cave1fighterdeaths$, 0;
killmonster "025-4.gat", "#StartCaveFight1::OnMonsterDeath";
stopnpctimer;
setnpctimer 0;
end;
L_AlreadyClean:
stopnpctimer;
setnpctimer 0;
end;
}
// ---------------------------- Warp to Cave 2 ----------------------------
025-3.gat,53,107,0 script #WarpBattleCave2 127,1,1,{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped;
// Check if someone is already inside. Change the x1, y1, x2, y2 values according to the place the player will be warped
if (getareausers("025-4.gat", 97, 62, 126, 96) >= 1) goto L_SomeoneInside;
// Check if you already done this fight
if (cavefights & BATTLE_CAVE2) goto L_AlreadyDone;
if (Rossy_Quest < 15) goto L_Block;
L_StartFight:
set $@battlecave2, 1;
warp "025-4.gat", 110, 94;
set $@cave2fighter$, strcharinfo(0);
set $@cave2fighterdeaths, PC_DIE_COUNTER;
startnpctimer;
set $@cave2start, gettimetick(2);
message strcharinfo(0), "This is the message that you receive when you enter the cave";
end;
L_SomeoneInside:
message strcharinfo(0), $@cave2fighter$ + " is already inside.";
end;
L_AlreadyDone:
message strcharinfo(0), "I already defeated the monsters in this cave.";
end;
L_AlreadyHelped:
if (@juliadone == 1) end;
message strcharinfo(0), "I already helped that little girl. There is nothing for me inside this cave.";
set @juliadone, 1;
end;
L_Block:
message strcharinfo(0), "I can't enter this cave. Maybe I should learn more about this place before I go inside.";
end;
OnTimer5000:
if ($@battlecave2 == 0) goto L_AlreadyClean;
if (isloggedin(getcharid(3,$@cave2fighter$))==0) goto L_CleaningNorid;
attachrid(getcharid(3,$@cave2fighter$));
if (gettimetick(2) - $@cave2start >= $@CAVE2_TIME) goto L_Cleaning;
if (PC_DIE_COUNTER > $@cave2fighterdeaths) goto L_Cleaning;
setnpctimer 0;
end;
L_Cleaning:
attachrid(getcharid(3,$@cave2fighter$));
warp "025-3.gat", 53, 109;
message strcharinfo(0), "This is the message the player will see when he takes too long or get killed inside the cave.";
set $@wave_cave2, 0;
set $@cave2_kills, 0;
set $@cave2start, 0;
set $@cave2fighter$, "";
set $@cave2fighterdeaths$, 0;
killmonster "025-4.gat", "#StartCaveFight2::OnMonsterDeath";
stopnpctimer;
setnpctimer 0;
end;
L_CleaningNorid:
set $@wave_cave2, 0;
set $@cave2_kills, 0;
set $@cave2start, 0;
set $@cave2fighter$, "";
set $@cave2fighterdeaths$, 0;
killmonster "025-4.gat", "#StartCaveFight2::OnMonsterDeath";
stopnpctimer;
setnpctimer 0;
end;
L_AlreadyClean:
stopnpctimer;
setnpctimer 0;
end;
}
// --------------------------------- Warp to Cave 3 ----------------------------------------
025-3.gat,71,83,0 script #WarpBattleCave3 127,1,1,{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped;
// Check if someone is already inside. Change the x1, y1, x2, y2 values according to the place the player will be warped
if (getareausers("025-4.gat", 150, 84, 177, 117) >= 1) goto L_SomeoneInside;
// Check if you already done this fight
if (cavefights & BATTLE_CAVE3) goto L_AlreadyDone;
if (Rossy_Quest < 15) goto L_Block;
L_StartFight:
set $@battlecave3, 1;
warp "025-4.gat", 168, 115;
set $@cave3fighter$, strcharinfo(0);
set $@cave3fighterdeaths, PC_DIE_COUNTER;
startnpctimer;
set $@cave3start, gettimetick(2);
message strcharinfo(0), "This is the message that you receive when you enter the cave";
end;
L_SomeoneInside:
message strcharinfo(0), $@cave3fighter$ + " is already inside.";
end;
L_AlreadyDone:
message strcharinfo(0), "I already defeated the monsters in this cave.";
end;
L_AlreadyHelped:
if (@juliadone == 1) end;
message strcharinfo(0), "I already helped that little girl. There is nothing for me inside this cave.";
set @juliadone, 1;
end;
L_Block:
message strcharinfo(0), "I can't enter this cave. Maybe I should learn more about this place before I go inside.";
end;
OnTimer5000:
if ($@battlecave3 == 0) goto L_AlreadyClean;
if (isloggedin(getcharid(3,$@cave3fighter$))==0) goto L_CleaningNorid;
attachrid(getcharid(3,$@cave3fighter$));
if (gettimetick(2) - $@cave3start >= $@CAVE3_TIME) goto L_Cleaning;
if (PC_DIE_COUNTER > $@cave3fighterdeaths) goto L_Cleaning;
setnpctimer 0;
end;
L_Cleaning:
attachrid(getcharid(3,$@cave3fighter$));
warp "025-3.gat", 71, 85;
message strcharinfo(0), "This is the message the player will see when he takes too long or get killed inside the cave.";
set $@wave_cave3, 0;
set $@cave3_kills, 0;
set $@cave3start, 0;
set $@cave3fighter$, "";
set $@cave3fighterdeaths$, 0;
killmonster "025-4.gat", "#StartCaveFight3::OnMonsterDeath";
stopnpctimer;
setnpctimer 0;
end;
L_CleaningNorid:
set $@wave_cave3, 0;
set $@cave3_kills, 0;
set $@cave3start, 0;
set $@cave3fighter$, "";
set $@cave3fighterdeaths$, 0;
killmonster "025-4.gat", "#StartCaveFight3::OnMonsterDeath";
stopnpctimer;
setnpctimer 0;
end;
L_AlreadyClean:
stopnpctimer;
setnpctimer 0;
end;
}
// --------------------------- Warp to Cave 4 --------------------------------------
025-3.gat,80,83,0 script #WarpBattleCave4 127,1,1,{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped;
// Check if someone is already inside. Change the x1, y1, x2, y2 values according to the place the player will be warped
if (getareausers("025-4.gat", 28, 124, 57, 156) >= 1) goto L_SomeoneInside;
// Check if you already done this fight
if (cavefights & BATTLE_CAVE4) goto L_AlreadyDone;
if (Rossy_Quest < 15) goto L_Block;
L_StartFight:
set $@battlecave4, 1;
warp "025-4.gat", 32, 154;
set $@cave4fighter$, strcharinfo(0);
set $@cave4fighterdeaths, PC_DIE_COUNTER;
startnpctimer;
set $@cave4start, gettimetick(2);
message strcharinfo(0), "This is the message that you receive when you enter the cave";
end;
L_SomeoneInside:
message strcharinfo(0), $@cave4fighter$ + " is already inside.";
end;
L_AlreadyDone:
message strcharinfo(0), "I already defeated the monsters in this cave.";
end;
L_AlreadyHelped:
if (@juliadone == 1) end;
message strcharinfo(0), "I already helped that little girl. There is nothing for me inside this cave.";
set @juliadone, 1;
end;
L_Block:
message strcharinfo(0), "I can't enter this cave. Maybe I should learn more about this place before I go inside.";
end;
OnTimer5000:
if ($@battlecave4 == 0) goto L_AlreadyClean;
if (isloggedin(getcharid(3,$@cave4fighter$))==0) goto L_CleaningNorid;
attachrid(getcharid(3,$@cave4fighter$));
if (gettimetick(2) - $@cave4start >= $@CAVE4_TIME) goto L_Cleaning;
if (PC_DIE_COUNTER > $@cave4fighterdeaths) goto L_Cleaning;
setnpctimer 0;
end;
L_Cleaning:
attachrid(getcharid(3,$@cave4fighter$));
warp "025-3.gat", 80, 85;
message strcharinfo(0), "This is the message the player will see when he takes too long or get killed inside the cave.";
set $@wave_cave4, 0;
set $@cave4_kills, 0;
set $@cave4start, 0;
set $@cave4fighter$, "";
set $@cave4fighterdeaths$, 0;
killmonster "025-4.gat", "#StartCaveFight4::OnMonsterDeath";
stopnpctimer;
setnpctimer 0;
end;
L_CleaningNorid:
set $@wave_cave4, 0;
set $@cave4_kills, 0;
set $@cave4start, 0;
set $@cave4fighter$, "";
set $@cave4fighterdeaths$, 0;
killmonster "025-4.gat", "#StartCaveFight4::OnMonsterDeath";
stopnpctimer;
setnpctimer 0;
end;
L_AlreadyClean:
stopnpctimer;
setnpctimer 0;
end;
}
// --------------------------- Warp to Cave 5 ----------------------------------------
025-3.gat,71,30,0 script #WarpBattleCave5 127,1,1,{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped;
// Check if someone is already inside. Change the x1, y1, x2, y2 values according to the place the player will be warped
if (getareausers("025-4.gat", 91, 131, 124, 160) >= 1) goto L_SomeoneInside;
// Check if you already done this fight
if (cavefights & BATTLE_CAVE5) goto L_AlreadyDone;
if (Rossy_Quest < 15) goto L_Block;
L_StartFight:
set $@battlecave5, 1;
warp "025-4.gat", 100, 158;
set $@cave5fighter$, strcharinfo(0);
set $@cave5fighterdeaths, PC_DIE_COUNTER;
startnpctimer;
set $@cave5start, gettimetick(2);
message strcharinfo(0), "This is the message that you receive when you enter the cave";
end;
L_SomeoneInside:
message strcharinfo(0), $@cave5fighter$ + " is already inside.";
end;
L_AlreadyDone:
message strcharinfo(0), "I already defeated the monsters in this cave.";
end;
L_AlreadyHelped:
if (@juliadone == 1) end;
message strcharinfo(0), "I already helped that little girl. There is nothing for me inside this cave.";
set @juliadone, 1;
end;
L_Block:
message strcharinfo(0), "I can't enter this cave. Maybe I should learn more about this place before I go inside.";
end;
OnTimer5000:
if ($@battlecave5 == 0) goto L_AlreadyClean;
if (isloggedin(getcharid(3,$@cave5fighter$))==0) goto L_CleaningNorid;
attachrid(getcharid(3,$@cave5fighter$));
if (gettimetick(2) - $@cave5start >= $@CAVE5_TIME) goto L_Cleaning;
if (PC_DIE_COUNTER > $@cave5fighterdeaths) goto L_Cleaning;
setnpctimer 0;
end;
L_Cleaning:
attachrid(getcharid(3,$@cave5fighter$));
warp "025-3.gat", 71, 32;
message strcharinfo(0), "This is the message the player will see when he takes too long or get killed inside the cave.";
set $@wave_cave5, 0;
set $@cave5_kills, 0;
set $@cave5start, 0;
set $@cave5fighter$, "";
set $@cave5fighterdeaths$, 0;
killmonster "025-4.gat", "#StartCaveFight5::OnMonsterDeath";
stopnpctimer;
setnpctimer 0;
end;
L_CleaningNorid:
set $@wave_cave5, 0;
set $@cave5_kills, 0;
set $@cave5start, 0;
set $@cave5fighter$, "";
set $@cave5fighterdeaths$, 0;
killmonster "025-4.gat", "#StartCaveFight5::OnMonsterDeath";
stopnpctimer;
setnpctimer 0;
end;
L_AlreadyClean:
stopnpctimer;
setnpctimer 0;
end;
}
// -------------------------------- Warp to Cave 6 -----------------------------------------
025-3.gat,128,35,0 script #WarpBattleCave6 127,1,1,{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped;
// Check if someone is already inside. Change the x1, y1, x2, y2 values according to the place the player will be warped
if (getareausers("025-4.gat", 153, 143, 178, 174) >= 1) goto L_SomeoneInside;
// Check if you already done this fight
if (cavefights & BATTLE_CAVE6) goto L_AlreadyDone;
if (Rossy_Quest < 15) goto L_Block;
L_StartFight:
set $@battlecave6, 1;
warp "025-4.gat", 159, 172;
set $@cave6fighter$, strcharinfo(0);
set $@cave6fighterdeaths, PC_DIE_COUNTER;
startnpctimer;
set $@cave6start, gettimetick(2);
message strcharinfo(0), "This is the message that you receive when you enter the cave";
end;
L_SomeoneInside:
message strcharinfo(0), $@cave6fighter$ + " is already inside.";
end;
L_AlreadyDone:
message strcharinfo(0), "I already defeated the monsters in this cave.";
end;
L_AlreadyHelped:
if (@juliadone == 1) end;
message strcharinfo(0), "I already helped that little girl. There is nothing for me inside this cave.";
set @juliadone, 1;
end;
L_Block:
message strcharinfo(0), "I can't enter this cave. Maybe I should learn more about this place before I go inside.";
end;
OnTimer5000:
if ($@battlecave6 == 0) goto L_AlreadyClean;
if (isloggedin(getcharid(3,$@cave6fighter$))==0) goto L_CleaningNorid;
attachrid(getcharid(3,$@cave6fighter$));
if (gettimetick(2) - $@cave6start >= $@CAVE6_TIME) goto L_Cleaning;
if (PC_DIE_COUNTER > $@cave6fighterdeaths) goto L_Cleaning;
setnpctimer 0;
end;
L_Cleaning:
attachrid(getcharid(3,$@cave6fighter$));
warp "025-3.gat", 128, 37;
message strcharinfo(0), "This is the message the player will see when he takes too long or get killed inside the cave.";
set $@wave_cave6, 0;
set $@cave6_kills, 0;
set $@cave6start, 0;
set $@cave6fighter$, "";
set $@cave6fighterdeaths$, 0;
killmonster "025-4.gat", "#StartCaveFight6::OnMonsterDeath";
stopnpctimer;
setnpctimer 0;
end;
L_CleaningNorid:
set $@wave_cave6, 0;
set $@cave6_kills, 0;
set $@cave6start, 0;
set $@cave6fighter$, "";
set $@cave6fighterdeaths$, 0;
killmonster "025-4.gat", "#StartCaveFight6::OnMonsterDeath";
stopnpctimer;
setnpctimer 0;
end;
L_AlreadyClean:
stopnpctimer;
setnpctimer 0;
end;
}
// ---------------------------- Warp to Cave 7 ------------------------------------------
025-3.gat,70,57,0 script #WarpBattleCave7 127,1,1,{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped;
// Check if someone is already inside. Change the x1, y1, x2, y2 values according to the place the player will be warped
if (getareausers("025-4.gat", 27, 185, 61, 219) >= 1) goto L_SomeoneInside;
// Check if you already done this fight
if (cavefights & BATTLE_CAVE7) goto L_AlreadyDone;
if (Rossy_Quest < 15) goto L_Block;
L_StartFight:
set $@battlecave7, 1;
warp "025-4.gat", 42, 217;
set $@cave7fighter$, strcharinfo(0);
set $@cave7fighterdeaths, PC_DIE_COUNTER;
startnpctimer;
set $@cave7start, gettimetick(2);
message strcharinfo(0), "This is the message that you receive when you enter the cave";
end;
L_SomeoneInside:
message strcharinfo(0), $@cave7fighter$ + " is already inside.";
end;
L_AlreadyDone:
message strcharinfo(0), "I already defeated the monsters in this cave.";
end;
L_AlreadyHelped:
if (@juliadone == 1) end;
message strcharinfo(0), "I already helped that little girl. There is nothing for me inside this cave.";
set @juliadone, 1;
end;
L_Block:
message strcharinfo(0), "I can't enter this cave. Maybe I should learn more about this place before I go inside.";
end;
OnTimer5000:
if ($@battlecave7 == 0) goto L_AlreadyClean;
if (isloggedin(getcharid(3,$@cave7fighter$))==0) goto L_CleaningNorid;
attachrid(getcharid(3,$@cave7fighter$));
if (gettimetick(2) - $@cave7start >= $@CAVE7_TIME) goto L_Cleaning;
if (PC_DIE_COUNTER > $@cave7fighterdeaths) goto L_Cleaning;
setnpctimer 0;
end;
L_Cleaning:
attachrid(getcharid(3,$@cave7fighter$));
warp "025-3.gat", 70, 59;
message strcharinfo(0), "This is the message the player will see when he takes too long or get killed inside the cave.";
set $@wave_cave7, 0;
set $@cave7_kills, 0;
set $@cave7start, 0;
set $@cave7fighter$, "";
set $@cave7fighterdeaths$, 0;
killmonster "025-4.gat", "#StartCaveFight7::OnMonsterDeath";
stopnpctimer;
setnpctimer 0;
end;
L_CleaningNorid:
set $@wave_cave7, 0;
set $@cave7_kills, 0;
set $@cave7start, 0;
set $@cave7fighter$, "";
set $@cave7fighterdeaths$, 0;
killmonster "025-4.gat", "#StartCaveFight7::OnMonsterDeath";
stopnpctimer;
setnpctimer 0;
end;
L_AlreadyClean:
stopnpctimer;
setnpctimer 0;
end;
}
// -----------------------------------------------Warp to Cave 8-------------------------------------------------------------
025-3.gat,138,92,0 script #WarpBattleCave8 127,1,1,{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped;
// Check if someone is already inside. Change the x1, y1, x2, y2 values according to the place the player will be warped
if (getareausers("025-4.gat", 90, 193, 119, 216) >= 1) goto L_SomeoneInside;
// Check if you already done this fight
if (cavefights & BATTLE_CAVE8) goto L_AlreadyDone;
if (Rossy_Quest < 15) goto L_Block;
L_StartFight:
set $@battlecave8, 1;
warp "025-4.gat", 105, 214;
set $@cave8fighter$, strcharinfo(0);
set $@cave8fighterdeaths, PC_DIE_COUNTER;
startnpctimer;
set $@cave8start, gettimetick(2);
message strcharinfo(0), "This is the message that you receive when you enter the cave";
end;
L_SomeoneInside:
message strcharinfo(0), $@cave8fighter$ + " is already inside.";
end;
L_AlreadyDone:
message strcharinfo(0), "I already defeated the monsters in this cave.";
end;
L_AlreadyHelped:
if (@juliadone == 1) end;
message strcharinfo(0), "I already helped that little girl. There is nothing for me inside this cave.";
set @juliadone, 1;
end;
L_Block:
message strcharinfo(0), "I can't enter this cave. Maybe I should learn more about this place before I go inside.";
end;
OnTimer5000:
if ($@battlecave8 == 0) goto L_AlreadyClean;
if (isloggedin(getcharid(3,$@cave8fighter$))==0) goto L_CleaningNorid;
attachrid(getcharid(3,$@cave8fighter$));
if (gettimetick(2) - $@cave8start >= $@CAVE8_TIME) goto L_Cleaning;
if (PC_DIE_COUNTER > $@cave8fighterdeaths) goto L_Cleaning;
setnpctimer 0;
end;
L_Cleaning:
attachrid(getcharid(3,$@cave8fighter$));
warp "025-3.gat", 138, 94;
message strcharinfo(0), "This is the message the player will see when he takes too long or get killed inside the cave.";
set $@wave_cave8, 0;
set $@cave8_kills, 0;
set $@cave8start, 0;
set $@cave8fighter$, "";
set $@cave8fighterdeaths$, 0;
killmonster "025-4.gat", "#StartCaveFight8::OnMonsterDeath";
stopnpctimer;
setnpctimer 0;
end;
L_CleaningNorid:
set $@wave_cave8, 0;
set $@cave8_kills, 0;
set $@cave8start, 0;
set $@cave8fighter$, "";
set $@cave8fighterdeaths$, 0;
killmonster "025-4.gat", "#StartCaveFight8::OnMonsterDeath";
stopnpctimer;
setnpctimer 0;
end;
L_AlreadyClean:
stopnpctimer;
setnpctimer 0;
end;
}
// ------------------------------ Warp to Cave 9 ----------------------------------------
025-3.gat,138,160,0 script #WarpBattleCave9 127,1,1,{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped;
// Check if someone is already inside. Change the x1, y1, x2, y2 values according to the place the player will be warped
if (getareausers("025-4.gat", 144, 192, 173, 226) >= 1) goto L_SomeoneInside;
// Check if you already done this fight
if (cavefights & BATTLE_CAVE9) goto L_AlreadyDone;
if (Rossy_Quest < 15) goto L_Block;
L_StartFight:
set $@battlecave9, 1;
warp "025-4.gat", 157, 224;
set $@cave9fighter$, strcharinfo(0);
set $@cave9fighterdeaths, PC_DIE_COUNTER;
startnpctimer;
set $@cave9start, gettimetick(2);
message strcharinfo(0), "This is the message that you receive when you enter the cave";
end;
L_SomeoneInside:
message strcharinfo(0), $@cave9fighter$ + " is already inside.";
end;
L_AlreadyDone:
message strcharinfo(0), "I already defeated the monsters in this cave.";
end;
L_AlreadyHelped:
if (@juliadone == 1) end;
message strcharinfo(0), "I already helped that little girl. There is nothing for me inside this cave.";
set @juliadone, 1;
end;
L_Block:
message strcharinfo(0), "I can't enter this cave. Maybe I should learn more about this place before I go inside.";
end;
OnTimer5000:
if ($@battlecave9 == 0) goto L_AlreadyClean;
if (isloggedin(getcharid(3,$@cave9fighter$))==0) goto L_CleaningNorid;
attachrid(getcharid(3,$@cave9fighter$));
if (gettimetick(2) - $@cave9start >= $@CAVE9_TIME) goto L_Cleaning;
if (PC_DIE_COUNTER > $@cave9fighterdeaths) goto L_Cleaning;
setnpctimer 0;
end;
L_Cleaning:
attachrid(getcharid(3,$@cave9fighter$));
warp "025-3.gat", 138, 158;
message strcharinfo(0), "This is the message the player will see when he takes too long or get killed inside the cave.";
set $@wave_cave9, 0;
set $@cave9_kills, 0;
set $@cave9start, 0;
set $@cave9fighter$, "";
set $@cave9fighterdeaths$, 0;
killmonster "025-4.gat", "#StartCaveFight9::OnMonsterDeath";
stopnpctimer;
setnpctimer 0;
end;
L_CleaningNorid:
set $@wave_cave9, 0;
set $@cave9_kills, 0;
set $@cave9start, 0;
set $@cave9fighter$, "";
set $@cave9fighterdeaths$, 0;
killmonster "025-4.gat", "#StartCaveFight9::OnMonsterDeath";
stopnpctimer;
setnpctimer 0;
end;
L_AlreadyClean:
stopnpctimer;
setnpctimer 0;
end;
}
// ----------------------------- Warp to Boss Cave -------------------------------
025-3.gat,77,170,0 script #WarpBossCave 127,1,1,{
if (Rossy_Quest >= 16 || FLAGS & FLAG_ROSSI_COMPLETED) goto L_AlreadyHelped;
//Check if someone is already inside. Change the x1, y1, x2, y2 values according to the place the player will be warped
if (getareausers("025-4.gat", 142, 24, 172, 48) >= 1) goto L_SomeoneInside;
//Check if you can enter this cave
if (cavefights & BATTLE_CAVE1 && cavefights & BATTLE_CAVE2 && cavefights & BATTLE_CAVE3 && cavefights & BATTLE_CAVE4 && cavefights & BATTLE_CAVE5 && cavefights & BATTLE_CAVE6 && cavefights & BATTLE_CAVE7 && cavefights & BATTLE_CAVE8 && cavefights & BATTLE_CAVE9) goto L_StartFight;
message strcharinfo(0), "It feels like something terrible is lurking inside this cave... But you can't enter before you defeat the monsters in the other caves.";
end;
L_StartFight:
if (Boss_10 != 1) message strcharinfo(0), "You hear screams, they seem to be very close from where you stand.";
set Boss_10, 1;
set $@battlebosscave, 1;
warp "025-4.gat", 157, 46;
set $@cave10fighter$, strcharinfo(0);
set $@cave10fighterdeaths, PC_DIE_COUNTER;
startnpctimer;
set $@cave10start, gettimetick(2);
end;
L_SomeoneInside:
message strcharinfo(0), $@cave10fighter$ + " is already inside.";
end;
L_AlreadyHelped:
if (@juliadone == 1) end;
message strcharinfo(0), "I already helped that little girl. There is nothing for me inside this cave.";
set @juliadone, 1;
end;
OnTimer5000:
if ($@battlebosscave == 0) goto L_AlreadyClean;
if (isloggedin(getcharid(3,$@cave10fighter$))==0) goto L_CleaningNorid;
attachrid(getcharid(3,$@cave10fighter$));
if (gettimetick(2) - $@cave10start >= $@CAVE10_TIME) goto L_Cleaning;
if (PC_DIE_COUNTER > $@cave10fighterdeaths) goto L_Cleaning;
if ($@wave_cave10 == 5) goto L_SummonBoss;
setnpctimer 0;
end;
L_Cleaning:
attachrid(getcharid(3,$@cave10fighter$));
warp "025-3.gat", 77, 168;
message strcharinfo(0), "This is the message the player will see when he takes too long or get killed inside the cave.";
set $@wave_cave10, 0;
set $@cave10_kills, 0;
set $@cave10start, 0;
set $@cave10fighter$, "";
set $@cave10fighterdeaths$, 0;
killmonster "025-4.gat", "#StartBossCaveFight::OnMonsterDeath";
killmonster "025-4.gat", "#StartBossCaveFight::OnBossDeath";
stopnpctimer;
setnpctimer 0;
end;
L_CleaningNorid:
set $@wave_cave10, 0;
set $@cave10_kills, 0;
set $@cave10start, 0;
set $@cave10fighter$, "";
set $@cave10fighterdeaths$, 0;
killmonster "025-4.gat", "#StartBossCaveFight::OnMonsterDeath";
killmonster "025-4.gat", "#StartBossCaveFight::OnBossDeath";
stopnpctimer;
setnpctimer 0;
end;
L_AlreadyClean:
stopnpctimer;
setnpctimer 0;
end;
}
|