summaryrefslogblamecommitdiff
path: root/npc/pre-re/other/monster_race.txt
blob: aa82efbbe327af71e43fca71e2877b3159cce98b (plain) (tree)
1
2
3
4
5
6
7
8
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
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
                                                              



                                                              
       
                                                              
                                







                                                              
                                           
                                                            
                                                                 
                                                       

                                               























































































































































































































































































































































































































































































































































































































































































































































































































































































































                                                                                                                                                            
                                                                                                     


              
                                                                                                                 


              
                                                                                                


              
                                                                                                                 



















                                                                                                                           





                                                                

                                      




                                          




































                                                                                                                   
                                                                                                     





























































                                                                                                
                                                                                                     





























                                                                                                
                                                                                                     





























                                                                                                
                                                                                                     





























                                                                                                
                                                                                                     












































































































                                                                                                                                                   
                                                                                                                                                   


















































                                                                                                                                            
                                                                                                                                                   


















































                                                                                                                                            
                                                                                                                                                   


















































                                                                                                                                            
                                                                                                                                                   


















































                                                                                                                                            
                                                                                                                                                   
















                                                                                                                                            



                                                   

                      
                                

                                          





                                                  

                                          





                                                      



                                                          




                                                                      
                                     
                                                                            

                                                                  


                                                                         
                                             












































                                                                                                       
                                                                  




                                                                            





                                                                         




                                                                                                          





                                                          



                                                                     





                                                          




                                                                      
                                     
                                                                            

                                                                  


                                                                         
                                             













































                                                                                                       
                                                                  




                                                                            





                                                                         




                                                                                                          





                                                          



                                                                     





                                                          




                                                                      
                                     
                                                                            

                                                                  


                                                                         
                                             













































                                                                                                       
                                                                  




                                                                            





                                                                         




                                                                                                          





                                                          



                                                                     





                                                          




                                                                      
                                     
                                                                            

                                                                  


                                                                         
                                             













































                                                                                                       
                                                                  




                                                                            





                                                                         




                                                                                                          





                                                          



                                                                     





                                                          




                                                                      
                                     
                                                                            

                                                                  


                                                                         
                                             













































                                                                                                       
                                                                  




                                                                            





                                                                         




                                                                                                          





                                                          



                                                                     





                                                          




                                                                      
                                     
                                                                            

                                                                  


                                                                         
                                             













































                                                                                                       
                                                                  




                                                                            





                                                                         




                                                                                                          





                                                          



                                                                     




                                                  





                                                          

                                                  





                                                              




                                          





                                                  

                                          





                                                      














































































                                                                                                                                                 
                                            
                                             
                                             





















                                                              
                                                            









                                                              

                                       












                                                     


                                                                




                                                                                       
                                       



                                                                                          
                                       
                                                     


                                                                                          
                     
                                       






                                                      
                                       




                                                   
                                                  
                     



                                                                                         
                     


                      


















                                                                              



                                                             






                                                                     
                                                                                                      




                                                                   





                                                                          

















                                                                                
                                                                                                                        
                                                                                    
                                                                                                                      
                                                     
                                                                                


                                                                                       


                                                                                          







                                                                                       


                                                                                                  











































                                                                                             
                                                                            





                                                                                
                                                                                                                        
                                                                                    
                                                                                                                      
                                                     
                                                                                



                                                                                       
                                                                                       








                                                                                          


                                                                                                  






























                                                                                             
                                                        





                                               
                                                 

























                                                                                          


                                                                                          














                                                      
                                                  

                                   


                                                                                         









                                                     
                                             















                                                      
                                                                                                                


                                                
                                                                                       








                                                                                          
                                             















































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































                                                                                                                                                          

                                                                












                                                                                          


                                                                                          














                                                      
                                                  

                                     


                                                                                         
                     


                      



                                             
                                                                           


















                                                           
                                                            






                                                                     
                                                                                                      




                                                                   




                                                                          












                                                                        
                                                                            





                                                                                             
                                                                                                                        
                                                                                    
                                                                                                                      
                                                     
                                                                                


                                                                                     


                                                                                          








                                                                                       


                                                                                                  












































                                                                                             
                                                                            





                                                                                             
                                                                                                                        
                                                                                    
                                                                                                                      





                                                                                     
                                                                                       









                                                                                          


                                                                                                  






























                                                                                             
                                                        





                                               
                                                 











                                                                
                                                    





                                          
                                         














































                                                                                                                                 




                                                                       
                                             
                                                                                                             













































                                                                                                                          
                                                                              












































                                                                                                                          



                                                                                                  




























































































































                                                                                                                          




                                                                       

























































































































































































































                                                                                                                          
                                                              



                                                              




                                                                       






























































































































































































































                                                                                                                          




                                                                       































































































































































































































                                                                                                                          




                                                                       




































































































































































                                                                                                                          

                                                                                            























































                                                                                                                          
                                                                                 























































































                                                                                                                          
                                                                              







































































































































                                                                                                                          
                                              
                                                             
                                                                                                 
















                                                                                                  
                                                          

                                              


                                                                                                 































                                                                                                                                
                                                     



                                              






                                                             





























                                                                                          


                                                                                          














                                                      
                                                  

                                   


                                                                                         









                                                     
                                             















                                                      
                                                                                                                


                                                
                                                                                       








                                                                                          
                                             













                                                             



                                                   



                                          





                                                  

                                          





                                                      



                                                                                                                                         





                                                                      
                                     
                                                                            

                                                                  





                                                                            






                                                                          




                                                                                                          




                                                                                      



                                                                     



                                                                                      



                                                                    



                                                          



                                                                     





                                                                                                                                         





                                                                      
                                     
                                                                            

                                                                  





                                                                            






                                                                          




                                                                                                          




                                                                                      



                                                                     



                                                                                      



                                                                    



                                                          



                                                                     





                                                                                                                                         





                                                                      
                                     
                                                                            

                                                                  





                                                                            






                                                                          




                                                                                                          




                                                                                      



                                                                     



                                                                                      



                                                                    



                                                          



                                                                     





                                                                                                                                         





                                                                      
                                     
                                                                            

                                                                  





                                                                            






                                                                          




                                                                                                          




                                                                                      



                                                                     



                                                                                      



                                                                    



                                                          



                                                                     





                                                                                                                                         





                                                                      
                                     
                                                                            

                                                                  





                                                                            






                                                                          




                                                                                                          




                                                                                      



                                                                     



                                                                                      



                                                                    



                                                          



                                                                     





                                                                                                                                         





                                                                      
                                     
                                                                            

                                                                  





                                                                            






                                                                          




                                                                                                          




                                                                                      



                                                                     



                                                                                      



                                                                    



                                                          



                                                                     





                                                                                                                                         





                                                                      
                                     
                                                                            

                                                                  





                                                                            






                                                                          




                                                                                                          




                                                                                      



                                                                     



                                                                                      



                                                                    



                                                          



                                                                     





                                                                                                                                         





                                                                      
                                     
                                                                            

                                                                  





                                                                            






                                                                          




                                                                                                          




                                                                                      



                                                                     



                                                                                      



                                                                    



                                                          



                                                                     





                                                                                                                                         





                                                                      
                                     
                                                                            

                                                                  





                                                                            






                                                                          




                                                                                                          




                                                                                      



                                                                     



                                                                                      



                                                                    



                                                          



                                                                     





                                                                                                                                         





                                                                      
                                     
                                                                            

                                                                  





                                                                            






                                                                          




                                                                                                          




                                                                                      



                                                                     



                                                                                      



                                                                    



                                                          



                                                                     





                                                                                                                                         





                                                                      
                                     
                                                                            

                                                                  





                                                                            






                                                                          




                                                                                                          




                                                                                      



                                                                     



                                                                                      



                                                                    



                                                          



                                                                     





                                                                                                                                         





                                                                      
                                     
                                                                            

                                                                  





                                                                            






                                                                          




                                                                                                          




                                                                                      



                                                                     



                                                                                      



                                                                    



                                                          



                                                                     





                                                                                                                                         





                                                                      
                                     
                                                                            

                                                                  





                                                                            






                                                                          




                                                                                                          




                                                                                      



                                                                     



                                                                                      



                                                                    



                                                          



                                                                     





                                                                                                                                         





                                                                      
                                     
                                                                            

                                                                  





                                                                            






                                                                          




                                                                                                          




                                                                                      



                                                                     



                                                                                      



                                                                    



                                                          



                                                                     





                                                                                                                                         





                                                                      
                                     
                                                                            

                                                                  





                                                                            






                                                                          




                                                                                                          




                                                                                      



                                                                     



                                                                                      



                                                                    



                                                          



                                                                     




                                                  





                                                          

                                                  





                                                              




                                          





                                                  

                                          





                                                      










                                                             
                                            
                                             
                                             





















                                                              
                                                            










                                                              

                                       























                                                                             
                                     





                                                                                                   
                                     



































                                                                                                                     
                                     





                                                                                                   
                                     



































                                                                                                                     
                                     





                                                                                                   
                                     



































                                                                                                                     
                                     





                                                                                                   
                                     








                                                                                                                     
                                                    

























                                                                                    
                                     





                                                                                                   
                                     



































                                                                                                                     
                                     





                                                                                                   
                                     



































                                                                                                                     





                                      






































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































                                                                       
                                                             
                              






                                                    
                     







                                                            
                     





                                                     
                     






                                                     


                                                     




                                                      
                             






                                                            




                                         






                                                           




                                                               






                                                         

                              






                                                     
                     





                                                     
                     
                                                                       



                                                       






                                                            
                             
                              

                                          






                                                              




                                         






                                                           




                                                               






                                                         

                              






                                                      
                     





                                                                                      
                     
                                                                                                        
                       





                                                             
                             
                                                                                                     
                               
                                                                

                                    
                                                                

                                    
                                                                

                                    
                                                                


                                    






                                                          
                             

                                                       
                       






                                                            



                                          






                                                              




                                         






                                                           




                                               






                                                         

                              






                                                     
                     




                                                    
                     
                                                                                            
                       






                                                     
                             
                                                                                                                                                        
                               



                                                                   
                                     
                                                                                                                                                                                                                                                                                           
                                       
                                                                         

                                            
                                                                        

                                            
                                                                         

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        





                                              





                                                             


                                                                                                                                                                                                         
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        





                                              





                                                             
                                     
                                                                                                                                           
                                       
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        





                                              




                                                                  
                                     
                                                                                                                                           
                                       
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        





                                              




                                                                  
                                     
                                                                                                                  
                                       
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        





                                              




                                                                  
                                     
                                                                                                             
                                       
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        





                                              




                                                                  
                                     
                                                                                    
                                       
                                                                        

                                            
                                                                        





                                              




                                                                  
                                     
                                                                                                                              
                                       
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        





                                              




                                                                  
                                     
                                                                                                                                                                                  
                                       
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        





                                              




                                                                  
                                     
                                                                                               
                                       
                                                                        

                                            
                                                                        

                                            
                                                                        





                                              




                                                                  
                                     
                                                                                            
                                       
                                                                        

                                            
                                                                        

                                            
                                                                        





                                              




                                                                  
                                     
                                                                                                              
                                       
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        

                                            
                                                                        





                                              




                                                                  
                                     
                                                                                        
                                       
                                                                        

                                            
                                                                        







                                              






                                                            
                             
                                                                                                                                                      
                               
                                                               

                                    
                                                                

                                    
                                                                

                                    
                                                                

                                    
                                                                







                                      






                                                   

                                          






                                                              




                                         






                                                           





                              
                                   
               






                                                      
                     
                                                                                                                              
                       






                                                                                               
                             





                                                          


                                        



                                                 
                                                         


                                                                      
                                             



















                                                                        

                              






                                                              
                             






                                                           


                                        





                                                                                          
                                                         























                                                                        

                              






                                                            

                                                     





                                                            
                             






                                                        
                             





                                                      
                             
                                                                                                      
                               






                                                             




                                                                        





                                                                 



                                                           





                                                                                      


                                                                                





                                                                                                       

                                                     
                                            
                                                      

                                                                





                                                                             



                                                      






                                                                     




                                                                               





                                                                    





                                                         

                                                      
                                                         










                                                                                                 

                 





                                                    




                              






























                                                                                                            
             
                                          

                                             



                                             
                     












                                                                                                                      

                      































                                                                                                                    








                                                      





                                                                                     


                      





                                           

                      



                                              
             
                                                       


                                                




                                                                                             



                                      





                                                             
                             
                                                                                                                                                                      

                                              



                                                                      
                                     
                                                                                                                                               


                                                                  




                                                                                 



                                                              





                                                                               






                                                                                 




                                                                                 



                                                              





                                                                               






                                                                                 




                                                                                 



                                                              





                                                                               






                                                                                 




                                                                                 



                                                              





                                                                               






                                                                                   




                                                                                 



                                                              





                                                                               






                                                                                 



                                                                      
                                     
                                                                               


                                                                  




                                                                                 



                                                              





                                                                               






                                                                                 




                                                                                 



                                                              





                                                                               






                                                                                 



                                                                      
                                     
                                                                                


                                                                  




                                                                                 



                                                              





                                                                               






                                                                                 




                                                                                 



                                                              





                                                                               






                                                                                 



                                                                                                       



                                                          




                                                                         



                                                      





                                                                       





                                                                         



                                                                                                        
                                     
                                                         

                                                           




                                                                         



                                                      





                                                                       





                                                                          



                                                                                                        
                                     
                                                            

                                                           




                                                                         



                                                      





                                                                       





                                                                              



                                                                                                        
                                     
                                                           

                                                           




                                                                         



                                                      





                                                                       





                                                                          



                                                                                                        
                                     
                                                       

                                                           




                                                                         



                                                      





                                                                       







                                                                          













                                                     




















                                                              
                                                                              





                                         
                                                                              























                                              
                                                                               


              
                                                                     
























                                              
                                  
















                                                                     
                                                  






























                                                             
                                                                          








































                                                                     

                                                                             

















                                                                     
                                              









                                            
//===== rAthena Script =======================================
//= Hugel Monster Races
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
//= 1.6
//===== Compatible With: =====================================
//= rAthena SVN (Trunk, r12752+)
//===== Description: =========================================
//= [Aegis Conversion]
//= - Hugel Monster Races (Single and Double)
//= - Prize Medal Exchanging, and Monster Track NPCs.
//= - Contains both euRO and iRO dialog.
//= - There are no permenent variables.
//===== Additional Comments: =================================
//= 1.0 First version. Please report bugs. [L0ne_W0lf]
//= 1.1 Corrected a minor typo. [L0ne_W0lf]
//= 1.2 Replaced effect numerics with constants. [L0ne_W0lf]
//= 1.3 Ei'felle now gives Exercise. (Bugreport:4092) [L0ne_W0lf]
//= 1.4 Fixed call to a non-existant event. [L0ne_W0lf]
//= 1.5 Updated Dialog. [L0ne_W0lf]
//= 1.6 Updated experience rewards. [L0ne_W0lf]
//============================================================

//============================================================
// Monstrer Race - Single Monster Race
//============================================================
hugel,51,61,0	script	#race_timer1-1	-1,{
OnInit:
	enablenpc "#race_timer1-1";
	set $@mon_time_1_1,2;
	initnpctimer;
	end;

OnEnable:
	enablenpc "#race_timer1-1";
	set $@mon_time_1_1,2;
	initnpctimer;
	end;

OnDisable:
	disablenpc "#race_timer1-1";
	stopnpctimer;
	end;

OnTimer10000:
	mapannounce "hugel","The Single Monster Race will soon begin. We hope to see many of you participate!",bc_map,"0x87ceeb";
	end;

OnTimer30000:
	mapannounce "hugel","The Single Monster Race Arena has just opened.",bc_map,"0x87ceeb";
	set $@mon_time_1_1,1;
	donpcevent "Race Progress Timer::OnEnable";
	end;

OnTimer90000:
	mapannounce "hugel","The Single Monster Race arena is now open. Participants should enter the Arena as soon as they can.",bc_map,"0x87ceeb";
	end;

OnTimer210000:
	mapannounce "hugel","The entrance to the Single Monster Race Arena will close shortly. Participants, please enter the arena now.",bc_map,"0x87ceeb";
	end;

OnTimer270000:
	mapannounce "hugel","The Single Monster Race Arena's entrance will soon close.",bc_map,"0x87ceeb";
	end;

OnTimer272000:
	mapannounce "hugel","Participants, please enter the Arena before the doors close.",bc_map,"0x87ceeb";
	end;

OnTimer330000:
	mapannounce "hugel","The race is now starting. If you missed your chance to enter this race, please try again next time~!",bc_map,"0x87ceeb";
	set $@mon_time_1_1,0;
	donpcevent "#race_timer1-1::OnDisable";
	stopnpctimer;

	end;
}

p_track01,58,0,0	script	Race Progress Timer	-1,{
OnInit:
	disablenpc "Race Progress Timer";
	end;

OnEnable:
	enablenpc "Race Progress Timer";
	initnpctimer;
	enablenpc "starting#1";
	enablenpc "starting#2";
	enablenpc "starting#3";
	enablenpc "starting#4";
	enablenpc "starting#5";
	enablenpc "starting#6";

	set .@1st_line,rand(1,70);
	if ((.@1st_line > 0) && (.@1st_line < 11)) {
		set $@mr_1_luk1,.@1st_line;
		enablenpc "Luk#5";
		enablenpc "Luk#6";
		set .@tired1,rand(50,60);
		if (.@tired1 > 49) && (.@tired1 < 61) {
			set $@mr_1_tire1,.@tired1;
			enablenpc "Tire#1";
		}
	}
	else if ((.@1st_line > 10) && (.@1st_line < 31)) {
		set $@mr_1_luk1,.@1st_line;
		
		enablenpc "Luk#5";
		set .@tired1,rand(40,60);
		if (.@tired1 > 49) && (.@tired1 < 61) {
			set $@mr_1_tire1,.@tired1;
			enablenpc "Tire#1";
		}
		else {
			set $@mr_1_tire1,.@tired1;
			enablenpc "Tire#1";
			enablenpc "Tire#2";
		}
	}
	else if ((.@1st_line > 20) && (.@1st_line < 41)) {
		set $@mr_1_luk1,.@1st_line;
		enablenpc "Luk#1";
		set .@tired1,rand(30,50);
		if (.@tired1 > 39) && (.@tired1 < 51) {
			set $@mr_1_tire1,.@tired1;
			enablenpc "Tire#1";
			enablenpc "Tire#2";
		}
		else {
			set $@mr_1_tire1,.@tired1;
			enablenpc "Tire#1";
			enablenpc "Tire#2";
			enablenpc "Tire#3";
		}
	}
	else if ((.@1st_line > 40) && (.@1st_line < 51)) {
		set $@mr_1_luk1,.@1st_line;
		enablenpc "Luk#1";
		enablenpc "Luk#2";
		set .@tired1,rand(20,40);
		if (.@tired1 > 29) && (.@tired1 < 41) {
			set $@mr_1_tire1,.@tired1;
			enablenpc "Tire#1";
			enablenpc "Tire#2";
			enablenpc "Tire#3";
		}
		else {
			set $@mr_1_tire1,.@tired1;
			enablenpc "Tire#1";
			enablenpc "Tire#2";
			enablenpc "Tire#3";
			enablenpc "Tire#4";
		}
	}
	else if ((.@1st_line > 50) && (.@1st_line < 61)) {
		set $@mr_1_luk1,.@1st_line;
		enablenpc "Luk#1";
		enablenpc "Luk#2";
		enablenpc "Luk#3";
		set .@tired1,rand(10,30);
		if (.@tired1 > 19) && (.@tired1 < 31) {
			set $@mr_1_tire1,.@tired1;
			enablenpc "Tire#1";
			enablenpc "Tire#2";
			enablenpc "Tire#3";
			enablenpc "Tire#4";
		}
		else {
			set $@mr_1_tire1,.@tired1;
			enablenpc "Tire#1";
			enablenpc "Tire#2";
			enablenpc "Tire#3";
			enablenpc "Tire#4";
			enablenpc "Tire#5";
		}
	}
	else if ((.@1st_line > 60) && (.@1st_line < 71)) {
		set $@mr_1_luk1,.@1st_line;
		enablenpc "Luk#1";
		enablenpc "Luk#2";
		enablenpc "Luk#3";
		enablenpc "Luk#4";
		set .@tired1,rand(0,20);
		if (.@tired1 > 9) && (.@tired1 < 21) {
			set $@mr_1_tire1,.@tired1;
			enablenpc "Tire#1";
			enablenpc "Tire#2";
			enablenpc "Tire#3";
			enablenpc "Tire#4";
			enablenpc "Tire#5";
		}
		else {
			set $@mr_1_tire1,.@tired1;
			enablenpc "Tire#1";
			enablenpc "Tire#2";
			enablenpc "Tire#3";
			enablenpc "Tire#4";
			enablenpc "Tire#5";
			enablenpc "Tire#6";
		}
	}
	else {
		set $@mr_1_luk1,.@1st_line;
		enablenpc "Luk#1";
		enablenpc "Luk#2";
		enablenpc "Luk#3";
		enablenpc "Luk#4";
		set .@tired1,rand(0,20);
		if (.@tired1 > 9) && (.@tired1 < 21) {
			set $@mr_1_tire1,.@tired1;
			enablenpc "Tire#1";
			enablenpc "Tire#2";
			enablenpc "Tire#3";
			enablenpc "Tire#4";
			enablenpc "Tire#5";
		}
		else {
			set $@mr_1_tire1,.@tired1;
			enablenpc "Tire#1";
			enablenpc "Tire#2";
			enablenpc "Tire#3";
			enablenpc "Tire#4";
			enablenpc "Tire#5";
			enablenpc "Tire#6";
		}
	}
	set .@2nd_line,rand(1,70);
	if ((.@2nd_line > 0) && (.@2nd_line < 11)) {
		set $@mr_1_luk2,.@2nd_line;
		enablenpc "Luk2#5";
		enablenpc "Luk2#6";
		set .@tired2,rand(50,60);
		if (.@tired2 > 49) && (.@tired2 < 61) {
			set $@mr_1_tire2,.@tired2;
			enablenpc "Tire2#2";
		}
	}
	else if ((.@2nd_line > 10) && (.@2nd_line < 31)) {
		set $@mr_1_luk2,.@2nd_line;
		enablenpc "Luk2#5";
		set .@tired2,rand(40,60);
		if (.@tired2 > 49) && (.@tired2 < 61) {
			set $@mr_1_tire2,.@tired2;
			enablenpc "Tire2#1";
		}
		else {
			set $@mr_1_tire2,.@tired2;
			enablenpc "Tire2#1";
			enablenpc "Tire2#2";
		}
	}
	else if ((.@2nd_line > 20) && (.@2nd_line < 41)) {
		set $@mr_1_luk2,.@2nd_line;
		enablenpc "Luk2#1";
		set .@tired2,rand(30,50);
		if (.@tired2 > 39) && (.@tired2 < 51) {
			set $@mr_1_tire2,.@tired2;
			enablenpc "Tire2#1";
			enablenpc "Tire2#2";
		}
		else {
			set $@mr_1_tire2,.@tired2;
			enablenpc "Tire2#1";
			enablenpc "Tire2#2";
			enablenpc "Tire2#3";
		}
	}
	else if ((.@2nd_line > 40) && (.@2nd_line < 51)) {
		set $@mr_1_luk2,.@2nd_line;
		enablenpc "Luk2#1";
		enablenpc "Luk2#2";
		set .@tired2,rand(20,40);
		if (.@tired2 > 29) && (.@tired2 < 41) {
			set $@mr_1_tire2,.@tired2;
			enablenpc "Tire2#1";
			enablenpc "Tire2#2";
			enablenpc "Tire2#3";
		}
		else {
			set $@mr_1_tire2,.@tired2;
			enablenpc "Tire2#1";
			enablenpc "Tire2#2";
			enablenpc "Tire2#3";
			enablenpc "Tire2#4";
		}
	}
	else if ((.@2nd_line > 50) && (.@2nd_line < 61)) {
		set $@mr_1_luk2,.@2nd_line;
		enablenpc "Luk2#1";
		enablenpc "Luk2#2";
		enablenpc "Luk2#3";
		set .@tired2,rand(10,30);
		if (.@tired2 > 19) && (.@tired2 < 31) {
			set $@mr_1_tire2,.@tired2;
			enablenpc "Tire2#1";
			enablenpc "Tire2#2";
			enablenpc "Tire2#3";
			enablenpc "Tire2#4";
		}
		else {
			set $@mr_1_tire2,.@tired2;
			enablenpc "Tire2#1";
			enablenpc "Tire2#2";
			enablenpc "Tire2#3";
			enablenpc "Tire2#4";
			enablenpc "Tire2#5";
		}
	}
	else if ((.@2nd_line > 60) && (.@2nd_line < 71)) {
		set $@mr_1_luk2,.@2nd_line;
		enablenpc "Luk2#1";
		enablenpc "Luk2#2";
		enablenpc "Luk2#3";
		enablenpc "Luk2#4";
		set .@tired2,rand(0,20);
		if (.@tired2 > 9) && (.@tired2 < 21) {
			set $@mr_1_tire2,.@tired2;
			enablenpc "Tire2#1";
			enablenpc "Tire2#2";
			enablenpc "Tire2#3";
			enablenpc "Tire2#4";
			enablenpc "Tire2#5";
		}
		else {
			set $@mr_1_tire2,.@tired2;
			enablenpc "Tire2#1";
			enablenpc "Tire2#2";
			enablenpc "Tire2#3";
			enablenpc "Tire2#4";
			enablenpc "Tire2#5";
			enablenpc "Tire2#6";
		}
	}
	else {
		set $@mr_1_luk2,.@2nd_line;
		enablenpc "Luk2#1";
		enablenpc "Luk2#2";
		enablenpc "Luk2#3";
		enablenpc "Luk2#4";
		set .@tired2,rand(0,20);
		if (.@tired2 > 9) && (.@tired2 < 21) {
			set $@mr_1_tire2,.@tired2;
			enablenpc "Tire2#1";
			enablenpc "Tire2#2";
			enablenpc "Tire2#3";
			enablenpc "Tire2#4";
			enablenpc "Tire2#5";
		}
		else {
			set $@mr_1_tire2,.@tired2;
			enablenpc "Tire2#1";
			enablenpc "Tire2#2";
			enablenpc "Tire2#3";
			enablenpc "Tire2#4";
			enablenpc "Tire2#5";
			enablenpc "Tire2#6";
		}
	}
	set .@3rd_line,rand(1,70);
	if ((.@3rd_line > 0) && (.@3rd_line < 11)) {
		set $@mr_1_luk3,.@3rd_line;
		enablenpc "Luk3#5";
		enablenpc "Luk3#6";
		set .@tired3,rand(50,60);
		if (.@tired3 > 49) && (.@tired3 < 61) {
			set $@mr_1_tire3,.@tired3;
			enablenpc "Tire3#1";
		}

	}
	else if ((.@3rd_line > 10) && (.@3rd_line < 31)) {
		set $@mr_1_luk3,.@3rd_line;
		enablenpc "Luk3#5";
		set .@tired3,rand(40,60);
		if (.@tired3 > 49) && (.@tired3 < 61) {
			set $@mr_1_tire3,.@tired3;
			enablenpc "Tire3#1";
		}
		else {
			set $@mr_1_tire3,.@tired3;
			enablenpc "Tire3#1";
			enablenpc "Tire3#2";
		}

	}
	else if ((.@3rd_line > 20) && (.@3rd_line < 41)) {
		set $@mr_1_luk3,.@3rd_line;
		enablenpc "Luk3#1";
		set .@tired3,rand(30,50);
		if (.@tired3 > 39) && (.@tired3 < 51) {
			set $@mr_1_tire3,.@tired3;
			enablenpc "Tire3#1";
			enablenpc "Tire3#2";
		}
		else {
			set $@mr_1_tire3,.@tired3;
			enablenpc "Tire3#1";
			enablenpc "Tire3#2";
			enablenpc "Tire3#3";
		}
	}
	else if ((.@3rd_line > 40) && (.@3rd_line < 51)) {
		set $@mr_1_luk3,.@3rd_line;
		enablenpc "Luk3#1";
		enablenpc "Luk3#2";
		set .@tired3,rand(20,40);
		if (.@tired3 > 29) && (.@tired3 < 41) {
			set $@mr_1_tire3,.@tired3;
			enablenpc "Tire3#1";
			enablenpc "Tire3#2";
			enablenpc "Tire3#3";
		}
		else {
			set $@mr_1_tire3,.@tired3;
			enablenpc "Tire3#1";
			enablenpc "Tire3#2";
			enablenpc "Tire3#3";
			enablenpc "Tire3#4";
		}
	}
	else if ((.@3rd_line > 50) && (.@3rd_line < 61)) {
		set $@mr_1_luk3,.@3rd_line;
		enablenpc "Luk3#1";
		enablenpc "Luk3#2";
		enablenpc "Luk3#3";
		set .@tired3,rand(10,30);
		if (.@tired3 > 19) && (.@tired3 < 31) {
			set $@mr_1_tire3,.@tired3;
			enablenpc "Tire3#1";
			enablenpc "Tire3#2";
			enablenpc "Tire3#3";
			enablenpc "Tire3#4";
		}
		else {
			set $@mr_1_tire3,.@tired3;
			enablenpc "Tire#1";
			enablenpc "Tire#2";
			enablenpc "Tire#3";
			enablenpc "Tire#4";
			enablenpc "Tire#5";
		}
	}
	else if ((.@3rd_line > 60) && (.@3rd_line < 71)) {
		set $@mr_1_luk3,.@3rd_line;
		enablenpc "Luk3#1";
		enablenpc "Luk3#2";
		enablenpc "Luk3#3";
		enablenpc "Luk3#4";
		set .@tired3,rand(0,20);
		if (.@tired3 > 9) && (.@tired3 < 21) {
			set $@mr_1_tire3,.@tired3;
			enablenpc "Tire3#1";
			enablenpc "Tire3#2";
			enablenpc "Tire3#3";
			enablenpc "Tire3#4";
			enablenpc "Tire3#5";
		}
		else {
			set $@mr_1_tire3,.@tired3;
			enablenpc "Tire3#1";
			enablenpc "Tire3#2";
			enablenpc "Tire3#3";
			enablenpc "Tire3#4";
			enablenpc "Tire3#5";
			enablenpc "Tire3#6";
		}
	}
	else {
		set $@mr_1_luk3,.@3rd_line;
		enablenpc "Luk3#1";
		enablenpc "Luk3#2";
		enablenpc "Luk3#3";
		enablenpc "Luk3#4";
		set .@tired3,rand(0,20);
		if (.@tired3 > 9) && (.@tired3 < 21) {
			set $@mr_1_tire3,.@tired3;
			enablenpc "Tire3#1";
			enablenpc "Tire3#2";
			enablenpc "Tire3#3";
			enablenpc "Tire3#4";
			enablenpc "Tire3#5";
		}
		else {
			set $@mr_1_tire3,.@tired3;
			enablenpc "Tire3#1";
			enablenpc "Tire3#2";
			enablenpc "Tire3#3";
			enablenpc "Tire3#4";
			enablenpc "Tire3#5";
			enablenpc "Tire3#6";
		}
	}
	set .@4th_line,rand(1,70);
	if ((.@4th_line > 0) && (.@4th_line < 11)) {
		set $@mr_1_luk4,.@4th_line;
		enablenpc "Luk4#5";
		enablenpc "Luk4#6";
		set .@tired4,rand(50,60);
		if (.@tired4 > 49) && (.@tired4 < 61) {
			set $@mr_1_tire4,.@tired4;
			enablenpc "Tire4#1";
		}
	}
	else if ((.@4th_line > 10) && (.@4th_line < 31)) {
		set $@mr_1_luk4,.@4th_line;
		enablenpc "Luk4#5";
		set .@tired4,rand(40,60);
		if (.@tired4 > 49) && (.@tired4 < 61) {
			set $@mr_1_tire4,.@tired4;
			enablenpc "Tire#1";
		}
		else {
			set $@mr_1_tire4,.@tired4;
			enablenpc "Tire#1";
			enablenpc "Tire#2";
		}
	}
	else if ((.@4th_line > 20) && (.@4th_line < 41)) {
		set $@mr_1_luk4,.@4th_line;
		enablenpc "Luk4#1";
		set .@tired4,rand(30,50);
		if (.@tired4 > 39) && (.@tired4 < 51) {
			set $@mr_1_tire4,.@tired4;
			enablenpc "Tire4#1";
			enablenpc "Tire4#2";
		}
		else {
			set $@mr_1_tire4,.@tired4;
			enablenpc "Tire4#1";
			enablenpc "Tire4#2";
			enablenpc "Tire4#3";
		}
	}
	else if ((.@4th_line > 40) && (.@4th_line < 51)) {
		set $@mr_1_luk4,.@4th_line;
		enablenpc "Luk4#1";
		enablenpc "Luk4#2";
		set .@tired4,rand(20,40);
		if (.@tired4 > 29) && (.@tired4 < 41) {
			set $@mr_1_tire4,.@tired4;
			enablenpc "Tire4#1";
			enablenpc "Tire4#2";
			enablenpc "Tire4#3";
		}
		else {
			set $@mr_1_tire4,.@tired4;
			enablenpc "Tire4#1";
			enablenpc "Tire4#2";
			enablenpc "Tire4#3";
			enablenpc "Tire4#4";
		}
	}
	else if ((.@4th_line > 50) && (.@4th_line < 61)) {
		set $@mr_1_luk4,.@4th_line;
		enablenpc "Luk#1";
		enablenpc "Luk#2";
		enablenpc "Luk#3";
		set .@tired4,rand(10,30);
		if (.@tired4 > 19) && (.@tired4 < 31) {
			set $@mr_1_tire4,.@tired4;
			enablenpc "Tire4#1";
			enablenpc "Tire4#2";
			enablenpc "Tire4#3";
			enablenpc "Tire4#4";
		}
		else {
			set $@mr_1_tire4,.@tired4;
			enablenpc "Tire4#1";
			enablenpc "Tire4#2";
			enablenpc "Tire4#3";
			enablenpc "Tire4#4";
			enablenpc "Tire4#5";
		}
	}
	else if ((.@4th_line > 60) && (.@4th_line < 71)) {
		set $@mr_1_luk4,.@4th_line;
		enablenpc "Luk4#1";
		enablenpc "Luk4#2";
		enablenpc "Luk4#3";
		enablenpc "Luk4#4";
		set .@tired4,rand(0,20);
		if (.@tired4 > 9) && (.@tired4 < 21) {
			set $@mr_1_tire4,.@tired4;
			enablenpc "Tire4#1";
			enablenpc "Tire4#2";
			enablenpc "Tire4#3";
			enablenpc "Tire4#4";
			enablenpc "Tire4#5";
		}
		else {
			set $@mr_1_tire4,.@tired4;
			enablenpc "Tire4#1";
			enablenpc "Tire4#2";
			enablenpc "Tire4#3";
			enablenpc "Tire4#4";
			enablenpc "Tire4#5";
			enablenpc "Tire4#6";
		}
	}
	else {
		set $@mr_1_luk4,.@4th_line;
		enablenpc "Luk4#1";
		enablenpc "Luk4#2";
		enablenpc "Luk4#3";
		enablenpc "Luk4#4";
		set .@tired4,rand(0,20);
		if (.@tired4 > 9) && (.@tired4 < 21) {
			set $@mr_1_tire4,.@tired4;
			enablenpc "Tire4#1";
			enablenpc "Tire4#2";
			enablenpc "Tire4#3";
			enablenpc "Tire4#4";
			enablenpc "Tire4#5";
		}
		else {
			set $@mr_1_tire4,.@tired4;
			enablenpc "Tire4#1";
			enablenpc "Tire4#2";
			enablenpc "Tire4#3";
			enablenpc "Tire4#4";
			enablenpc "Tire4#5";
			enablenpc "Tire4#6";
		}
	}
	set .@5th_line,rand(1,70);
	if ((.@5th_line > 0) && (.@5th_line < 11)) {
		set $@mr_1_luk5,.@5th_line;
		enablenpc "Luk5#5";
		enablenpc "Luk5#6";
		set .@tired5,rand(50,60);
		if (.@tired5 > 49) && (.@tired5 < 61) {
			set $@mr_1_tire5,.@tired5;
			enablenpc "Tire5#1";
		}
	}
	else if ((.@5th_line > 10) && (.@5th_line < 31)) {
		set $@mr_1_luk5,.@5th_line;
		enablenpc "Luk5#5";
		set .@tired5,rand(40,60);
		if (.@tired5 > 49) && (.@tired5 < 61) {
			set $@mr_1_tire5,.@tired5;
			enablenpc "Tire5#1";
		}
		else {
			set $@mr_1_tire5,.@tired5;
			enablenpc "Tire5#1";
			enablenpc "Tire5#2";
		}
	}
	else if ((.@5th_line > 20) && (.@5th_line < 41)) {
		set $@mr_1_luk5,.@5th_line;
		enablenpc "Luk5#1";
		set .@tired5,rand(30,50);
		if (.@tired5 > 39) && (.@tired5 < 51) {
			set $@mr_1_tire5,.@tired5;
			enablenpc "Tire5#1";
			enablenpc "Tire5#2";
		}
		else {
			set $@mr_1_tire5,.@tired5;
			enablenpc "Tire5#1";
			enablenpc "Tire5#2";
			enablenpc "Tire5#3";
		}
	}
	else if ((.@5th_line > 40) && (.@5th_line < 51)) {
		set $@mr_1_luk5,.@5th_line;
		enablenpc "Luk5#1";
		enablenpc "Luk5#2";
		set .@tired5,rand(20,40);
		if (.@tired5 > 29) && (.@tired5 < 41) {
			set $@mr_1_tire5,.@tired5;
			enablenpc "Tire5#1";
			enablenpc "Tire5#2";
			enablenpc "Tire5#3";
		}
		else {
			set $@mr_1_tire5,.@tired5;
			enablenpc "Tire5#1";
			enablenpc "Tire5#2";
			enablenpc "Tire5#3";
			enablenpc "Tire5#4";
		}
	}
	else if ((.@5th_line > 50) && (.@5th_line < 61)) {
		set $@mr_1_luk5,.@5th_line;
		enablenpc "Luk5#1";
		enablenpc "Luk5#2";
		enablenpc "Luk5#3";
		set .@tired5,rand(10,30);
		if (.@tired5 > 19) && (.@tired5 < 31) {
			set $@mr_1_tire5,.@tired5;
			enablenpc "Tire5#1";
			enablenpc "Tire5#2";
			enablenpc "Tire5#3";
			enablenpc "Tire5#4";
		}
		else {
			set $@mr_1_tire5,.@tired5;
			enablenpc "Tire5#1";
			enablenpc "Tire5#2";
			enablenpc "Tire5#3";
			enablenpc "Tire5#4";
			enablenpc "Tire5#5";
		}
	}
	else if ((.@5th_line > 60) && (.@5th_line < 71)) {
		set $@mr_1_luk5,.@5th_line;
		enablenpc "Luk5#1";
		enablenpc "Luk5#2";
		enablenpc "Luk5#3";
		enablenpc "Luk5#4";
		set .@tired5,rand(0,20);
		if (.@tired5 > 9) && (.@tired5 < 21) {
			set $@mr_1_tire5,.@tired5;
			enablenpc "Tire5#1";
			enablenpc "Tire5#2";
			enablenpc "Tire5#3";
			enablenpc "Tire5#4";
			enablenpc "Tire5#5";
		}
		else {
			set $@mr_1_tire5,.@tired5;
			enablenpc "Tire5#1";
			enablenpc "Tire5#2";
			enablenpc "Tire5#3";
			enablenpc "Tire5#4";
			enablenpc "Tire5#5";
			enablenpc "Tire5#6";
		}
	}
	else {
		set $@mr_1_luk5,.@5th_line;
		enablenpc "Luk5#1";
		enablenpc "Luk5#2";
		enablenpc "Luk5#3";
		enablenpc "Luk5#4";
		set .@tired5,rand(0,20);
		if (.@tired5 > 9) && (.@tired5 < 21) {
			set $@mr_1_tire5,.@tired5;
			enablenpc "Tire5#1";
			enablenpc "Tire5#2";
			enablenpc "Tire5#3";
			enablenpc "Tire5#4";
			enablenpc "Tire5#5";
		}
		else {
			set $@mr_1_tire5,.@tired5;
			enablenpc "Tire5#1";
			enablenpc "Tire5#2";
			enablenpc "Tire5#3";
			enablenpc "Tire5#4";
			enablenpc "Tire5#5";
			enablenpc "Tire5#6";
		}
	}
	set .@6th_line,rand(1,70);
	if ((.@6th_line > 0) && (.@6th_line < 11)) {
		set $@mr_1_luk6,.@6th_line;
		enablenpc "Luk6#5";
		enablenpc "Luk6#6";
		set .@tired6,rand(50,60);
		if (.@tired6 > 49) && (.@tired6 < 61) {
			set $@mr_1_tire6,.@tired6;
			enablenpc "Tire6#1";
		}
	}
	else if ((.@6th_line > 10) && (.@6th_line < 31)) {
		set $@mr_1_luk6,.@6th_line;
		enablenpc "Luk6#5";
		set .@tired6,rand(40,60);
		if (.@tired6 > 49) && (.@tired6 < 61) {
			set $@mr_1_tire6,.@tired6;
			enablenpc "Tire6#1";
		}
		else {
			set $@mr_1_tire6,.@tired6;
			enablenpc "Tire6#1";
			enablenpc "Tire6#2";
		}
	}
	else if ((.@6th_line > 20) && (.@6th_line < 41)) {
		set $@mr_1_luk6,.@6th_line;
		enablenpc "Luk6#1";
		set .@tired6,rand(30,50);
		if (.@tired6 > 39) && (.@tired6 < 51) {
			set $@mr_1_tire6,.@tired6;
			enablenpc "Tire6#1";
			enablenpc "Tire6#2";
		}
		else {
			set $@mr_1_tire6,.@tired6;
			enablenpc "Tire6#1";
			enablenpc "Tire6#2";
			enablenpc "Tire6#3";
		}
	}
	else if ((.@6th_line > 40) && (.@6th_line < 51)) {
		set $@mr_1_luk6,.@6th_line;
		enablenpc "Luk6#1";
		enablenpc "Luk6#2";
		set .@tired6,rand(20,40);
		if (.@tired6 > 29) && (.@tired6 < 41) {
			set $@mr_1_tire6,.@tired6;
			enablenpc "Tire6#1";
			enablenpc "Tire6#2";
			enablenpc "Tire6#3";
		}
		else {
			set $@mr_1_tire6,.@tired6;
			enablenpc "Tire6#1";
			enablenpc "Tire6#2";
			enablenpc "Tire6#3";
			enablenpc "Tire6#4";
		}
	}
	else if ((.@6th_line > 50) && (.@6th_line < 61)) {
		set $@mr_1_luk6,.@6th_line;
		enablenpc "Luk6#1";
		enablenpc "Luk6#2";
		enablenpc "Luk6#3";
		set .@tired6,rand(10,30);
		if (.@tired6 > 19) && (.@tired6 < 31) {
			set $@mr_1_tire6,.@tired6;
			enablenpc "Tire6#1";
			enablenpc "Tire6#2";
			enablenpc "Tire6#3";
			enablenpc "Tire6#4";
		}
		else {
			set $@mr_1_tire6,.@tired6;
			enablenpc "Tire6#1";
			enablenpc "Tire6#2";
			enablenpc "Tire6#3";
			enablenpc "Tire6#4";
			enablenpc "Tire6#5";
		}
	}
	else if ((.@6th_line > 60) && (.@6th_line < 71)) {
		set $@mr_1_luk6,.@6th_line;
		enablenpc "Luk6#1";
		enablenpc "Luk6#2";
		enablenpc "Luk6#3";
		enablenpc "Luk6#4";
		set .@tired6,rand(0,20);
		if (.@tired6 > 9) && (.@tired6 < 21) {
			set $@mr_1_tire6,.@tired6;
			enablenpc "Tire6#1";
			enablenpc "Tire6#2";
			enablenpc "Tire6#3";
			enablenpc "Tire6#4";
			enablenpc "Tire6#5";
		}
		else {
			set $@mr_1_tire6,.@tired6;
			enablenpc "Tire6#1";
			enablenpc "Tire6#2";
			enablenpc "Tire6#3";
			enablenpc "Tire6#4";
			enablenpc "Tire6#5";
			enablenpc "Tire6#6";
		}
	}
	else {
		set $@mr_1_luk6,.@6th_line;
		enablenpc "Luk6#1";
		enablenpc "Luk6#2";
		enablenpc "Luk6#3";
		enablenpc "Luk6#4";
		set .@tired6,rand(0,20);
		if (.@tired6 > 9) && (.@tired6 < 21) {
			set $@mr_1_tire6,.@tired6;
			enablenpc "Tire6#1";
			enablenpc "Tire6#2";
			enablenpc "Tire6#3";
			enablenpc "Tire6#4";
			enablenpc "Tire6#5";
		}
		else {
			set $@mr_1_tire6,.@tired6;
			enablenpc "Tire6#1";
			enablenpc "Tire6#2";
			enablenpc "Tire6#3";
			enablenpc "Tire6#4";
			enablenpc "Tire6#5";
			enablenpc "Tire6#6";
		}
	}
	end;

OnDisable:
	disablenpc "Race Progress Timer";
	stopnpctimer;
	end;

OnTimer1000:
	enablenpc "Ticket Helper#single";
	end;

OnTimer7000:
	mapannounce "p_track01","Welcome to the Monster Race Arena.",bc_map,"0xffb6c1";
	end;

OnTimer10000:
	mapannounce "p_track01","Feel free to inquire at the help desk whenever you have questions.",bc_map,"0xffb6c1";
	end;

OnTimer120000:
	mapannounce "p_track01","The Single Monster Race will start in 3 minutes.",bc_map,"0xffb6c1";
	end;

OnTimer123000:
	mapannounce "p_track01","Please ask a Ticket Helper if you wish to wager on the race.",bc_map,"0xffb6c1";
	end;

OnTimer240000:
	mapannounce "p_track01","The Single Monster Race will start shortly.",bc_map,"0xffb6c1";
	end;

OnTimer243000:
	mapannounce "p_track01","Please ask a Ticket Helper if you wish to wager on the race.",bc_map,"0xffb6c1";
	end;

OnTimer300000:
	mapannounce "p_track01","The Monster Race has already begun. Good luck to all the participants.",bc_map,"0xffb6c1";
	set $@mon_time_1_1,0;
	set $@monster_race,0;
	disablenpc "Ticket Helper#single";
	donpcevent "Runner No. 1::OnEnable";
	donpcevent "Runner No. 2::OnEnable";
	donpcevent "Runner No. 3::OnEnable";
	donpcevent "Runner No. 4::OnEnable";
	donpcevent "Runner No. 5::OnEnable";
	donpcevent "Runner No. 6::OnEnable";
	stopnpctimer;
	end;
}

p_track01,73,22,1	script	Ticket Helper#single	899,{
	if (checkweight(908,200) == 0) {
		mes "[Ticket Helper]";
		mes "Welcome to the";
		mes "Monster Race Arena.";
		mes "If you'd like to participate";
		mes "in the ^3131FFSingle Monster Race^000000,";
		mes "then please select 1 out of";
		mes "the 6 monsters from the list.";
		next;
		mes "[Ticket Helper]";
		mes "Wait, wait...";
		mes "I can't give you";
		mes "anything right now.";
		mes "You're carrying way";
		mes "too many things...";
		close;
	}
	mes "[Ticket Helper]";
	mes "Welcome to the";
	mes "Monster Race Arena.";
	mes "If you'd like to participate";
	mes "in the ^3131FFSingle Monster Race^000000,";
	mes "then please select 1 out of";
	mes "the 6 monsters from the list.";
	next;
	switch(select("Monster Status:Monster 1:Monster 2:Monster 3:Monster 4:Monster 5:Monster 6")) {
	case 1:
		mes "Monster 1 [^CC6600Luck^000000: " + $@mr_1_luk1 + "] [^EE0000HP^000000: " + $@mr_1_tire1 + "]";
		mes "Monster 2 [^CC6600Luck^000000: " + $@mr_1_luk2 + "] [^EE0000HP^000000: " + $@mr_1_tire2 + "]";
		mes "Monster 3 [^CC6600Luck^000000: " + $@mr_1_luk3 + "] [^EE0000HP^000000: " + $@mr_1_tire3 + "]";
		mes "Monster 4 [^CC6600Luck^000000: " + $@mr_1_luk4 + "] [^EE0000HP^000000: " + $@mr_1_tire4 + "]";
		mes "Monster 5 [^CC6600Luck^000000: " + $@mr_1_luk5 + "] [^EE0000HP^000000: " + $@mr_1_tire5 + "]";
		mes "Monster 6 [^CC6600Luck^000000: " + $@mr_1_luk6 + "] [^EE0000HP^000000: " + $@mr_1_tire6 + "]";
		close;
	case 2:
		if ($@mon_time_1_1 == 1) {
			if (monster_race_1 > 0) {
				mes "[Ticket Helper]";
				mes "You have selected";
				mes "Monster ^FF0000"+ monster_race_1 +"^000000 for the";
				mes "Single Monster Race.";
				mes "The start of the race";
				mes "will be announced soon,";
				mes "so please wait. Thank you.";
				close;
			}
			else {
				mes "[Ticket Helper]";
				mes "You've chosen Monster 1?";
				mes "Alright then, please wait";
				mes "until the start of the race is";
				mes "announced. If the monster you";
				mes "picked wins, then please use this ticket to redeem your prize.";
				getitem 7514,1; //Monster_Ticket
				set monster_race_1,1;
				close;
			}
		}
		else {
			mes "[Ticket Helper]";
			mes "I'm sorry, but a Monster";
			mes "Race is now in progress.";
			mes "If you'd like to participate, then please wait for the next race.";
			close;
		}
	case 3:
		if ($@mon_time_1_1 == 1) {
			if (monster_race_1 > 0) {
				mes "[Ticket Helper]";
				mes "You have selected";
				mes "Monster ^FF0000"+ monster_race_1 +"^000000 for the";
				mes "Single Monster Race.";
				mes "The start of the race";
				mes "will be announced soon,";
				mes "so please wait. Thank you.";
				close;
			}
			else {
				mes "[Ticket Helper]";
				mes "You've chosen Monster 2?";
				mes "Alright then, please wait";
				mes "until the start of the race is";
				mes "announced. If the monster you";
				mes "picked wins, then please use";
				mes "this ticket to redeem your prize.";
				getitem 7514,1; //Monster_Ticket
				set monster_race_1,2;
				close;
			}
		}
		else {
			mes "[Ticket Helper]";
			mes "I'm sorry, but a Monster";
			mes "Race is now in progress.";
			mes "If you'd like to participate, then please wait for the next race.";
			close;
		}
	case 4:
		if ($@mon_time_1_1 == 1) {
			if (monster_race_1 > 0) {
				mes "[Ticket Helper]";
				mes "You have selected";
				mes "Monster ^FF0000"+ monster_race_1 +"^000000 for the";
				mes "Single Monster Race.";
				mes "The start of the race";
				mes "will be announced soon,";
				mes "so please wait. Thank you.";
				close;
			}
			else {
				mes "[Ticket Helper]";
				mes "You've chosen Monster 3?";
				mes "Alright then, please wait";
				mes "until the start of the race is";
				mes "announced. If the monster you";
				mes "picked wins, then please use this ticket to redeem your prize.";
				getitem 7514,1; //Monster_Ticket
				set monster_race_1,3;
				close;
			}
		}
		else {
			mes "[Ticket Helper]";
			mes "I'm sorry, but a Monster";
			mes "Race is now in progress.";
			mes "If you'd like to participate, then please wait for the next race.";
			close;
		}
	case 5:
		if ($@mon_time_1_1 == 1) {
			if (monster_race_1 > 0) {
				mes "[Ticket Helper]";
				mes "You have selected";
				mes "Monster ^FF0000"+ monster_race_1 +"^000000 for the";
				mes "Single Monster Race.";
				mes "The start of the race";
				mes "will be announced soon,";
				mes "so please wait. Thank you.";
				close;
			}
			else {
				mes "[Ticket Helper]";
				mes "You've chosen Monster 4?";
				mes "Alright then, please wait";
				mes "until the start of the race is";
				mes "announced. If the monster you";
				mes "picked wins, then please use this ticket to redeem your prize.";
				getitem 7514,1; //Monster_Ticket
				set monster_race_1,4;
				close;
			}
		}
		else {
			mes "[Ticket Helper]";
			mes "I'm sorry, but a Monster";
			mes "Race is now in progress.";
			mes "If you'd like to participate, then please wait for the next race.";
			close;
		}
	case 6:
		if ($@mon_time_1_1 == 1) {
			if (monster_race_1 > 0) {
				mes "[Ticket Helper]";
				mes "You have selected";
				mes "Monster ^FF0000"+ monster_race_1 +"^000000 for the";
				mes "Single Monster Race.";
				mes "The start of the race";
				mes "will be announced soon,";
				mes "so please wait. Thank you.";
				close;
			}
			else {
				mes "[Ticket Helper]";
				mes "You've chosen Monster 5?";
				mes "Alright then, please wait";
				mes "until the start of the race is";
				mes "announced. If the monster you";
				mes "picked wins, then please use this ticket to redeem your prize.";
				getitem 7514,1; //Monster_Ticket
				set monster_race_1,5;
				close;
			}
		}
		else {
			mes "[Ticket Helper]";
			mes "I'm sorry, but a Monster";
			mes "Race is now in progress.";
			mes "If you'd like to participate, then please wait for the next race.";
			close;
		}
	case 7:
		if ($@mon_time_1_1 == 1) {
			if (monster_race_1 > 0) {
				mes "[Ticket Helper]";
				mes "You have selected";
				mes "Monster ^FF0000"+ monster_race_1 +"^000000 for the";
				mes "Single Monster Race.";
				mes "The start of the race";
				mes "will be announced soon,";
				mes "so please wait. Thank you.";
				close;
			}
			else {
				mes "[Ticket Helper]";
				mes "You've chosen Monster 6?";
				mes "Alright then, please wait";
				mes "until the start of the race is";
				mes "announced. If the monster you";
				mes "picked wins, then please use this ticket to redeem your prize.";
				getitem 7514,1; //Monster_Ticket
				set monster_race_1,6;
				close;
			}
		}
		else {
			mes "[Ticket Helper]";
			mes "I'm sorry, but a Monster";
			mes "Race is now in progress.";
			mes "If you'd like to participate, then please wait for the next race.";
			close;
		}
	}
	close;

OnInit:
	disablenpc "Ticket Helper#single";
	end;
}

p_track01,30,38,0	script	Runner No. 1	-1,1,0,{
	end;

OnInit:
	disablenpc "Runner No. 1";
	end;

OnEnable:
	emotion e_gasp;
	enablenpc "Runner No. 1";
	monster "p_track01",58,38,"The 1st Racer",1725,1,"Runner No. 1::OnMyMobDead";
	end;

OnDisable:
	disablenpc "Runner No. 1";
	killmonster "p_track01","Runner No. 1::OnMyMobDead";
	end;

OnTouchNPC:
	initnpctimer;
	set $@monster_race,1;
	donpcevent "Runner No. 2::OnDisable";
	donpcevent "Runner No. 3::OnDisable";
	donpcevent "Runner No. 4::OnDisable";
	donpcevent "Runner No. 5::OnDisable";
	donpcevent "Runner No. 6::OnDisable";
	end;

OnTimer1000:
	mapannounce "p_track01","We have a winner...!",bc_map,"0x33FF66";
	end;

OnTimer2000:
	mapannounce "p_track01","Monster 1 is the winner of this race!",bc_map,"0x33FF66";
	end;

OnTimer6000:
	mapannounce "p_track01","If you wagered on Monster 1 in this race, talk to the Medal Distributor to receive your prize!",bc_map,"0x33FF66";
	end;

OnTimer8000:
	mapannounce "p_track01","Please remember that we can distribute Prize Medals for only 5 minutes after each race.",bc_map,"0x33FF66";
	end;

OnTimer9000:
	donpcevent "Medal Distributor#single::OnEnable";
	donpcevent "Runner No. 1::OnDisable";
	killmonster "p_track01","Runner No. 1::OnMyMobDead";
	stopnpctimer;
	end;
}

p_track01,30,36,0	script	Runner No. 2	-1,1,0,{
	end;

OnInit:
	disablenpc "Runner No. 2";
	end;

OnEnable:
	emotion e_gasp;
	enablenpc "Runner No. 2";
	monster "p_track01",58,36,"The 2nd Racer",1726,1,"Runner No. 2::OnMyMobDead";
	end;

OnDisable:
	disablenpc "Runner No. 2";
	killmonster "p_track01","Runner No. 2::OnMyMobDead";
	end;

OnTouchNPC:
	initnpctimer;
	set $@monster_race,2;
	donpcevent "Runner No. 1::OnDisable";
	donpcevent "Runner No. 3::OnDisable";
	donpcevent "Runner No. 4::OnDisable";
	donpcevent "Runner No. 5::OnDisable";
	donpcevent "Runner No. 6::OnDisable";
	end;

OnTimer1000:
	mapannounce "p_track01","We have a winner...!",bc_map,"0x33FF66";
	end;

OnTimer2000:
	mapannounce "p_track01","Monster 2 is the winner of this race!",bc_map,"0x33FF66";
	end;

OnTimer6000:
	mapannounce "p_track01","If you wagered on Monster 2 in this race, talk to the Medal Distributor to receive your prize!",bc_map,"0x33FF66";
	end;

OnTimer8000:
	mapannounce "p_track01","Please remember that we can distribute Prize Medals for only 5 minutes after each race.",bc_map,"0x33FF66";
	end;

OnTimer9000:
	donpcevent "Medal Distributor#single::OnEnable";
	donpcevent "Runner No. 2::OnDisable";
	killmonster "p_track01","Runner No. 2::OnMyMobDead";
	stopnpctimer;
	end;
}

p_track01,30,34,0	script	Runner No. 3	-1,1,0,{
	end;

OnInit:
	disablenpc "Runner No. 3";
	end;

OnEnable:
	emotion e_gasp;
	enablenpc "Runner No. 3";
	monster "p_track01",58,34,"The 3rd Racer",1727,1,"Runner No. 3::OnMyMobDead";
	end;

OnDisable:
	disablenpc "Runner No. 3";
	killmonster "p_track01","Runner No. 3::OnMyMobDead";
	end;

OnTouchNPC:
	initnpctimer;
	set $@monster_race,3;
	donpcevent "Runner No. 1::OnDisable";
	donpcevent "Runner No. 2::OnDisable";
	donpcevent "Runner No. 4::OnDisable";
	donpcevent "Runner No. 5::OnDisable";
	donpcevent "Runner No. 6::OnDisable";
	end;

OnTimer1000:
	mapannounce "p_track01","We have a winner...!",bc_map,"0x33FF66";
	end;

OnTimer2000:
	mapannounce "p_track01","Monster 3 is the winner of this race!",bc_map,"0x33FF66";
	end;

OnTimer6000:
	mapannounce "p_track01","If you wagered on Monster 3 in this race, talk to the Medal Distributor to receive your prize!",bc_map,"0x33FF66";
	end;

OnTimer8000:
	mapannounce "p_track01","Please remember that we can distribute Prize Medals for only 5 minutes after each race.",bc_map,"0x33FF66";
	end;

OnTimer9000:
	donpcevent "Medal Distributor#single::OnEnable";
	donpcevent "Runner No. 3::OnDisable";
	killmonster "p_track01","Runner No. 3::OnMyMobDead";
	stopnpctimer;
	end;
}

p_track01,30,32,0	script	Runner No. 4	-1,1,0,{
	end;

OnInit:
	disablenpc "Runner No. 4";
	end;

OnEnable:
	emotion e_gasp;
	enablenpc "Runner No. 4";
	monster "p_track01",58,32,"The 4th Racer",1728,1,"Runner No. 4::OnMyMobDead";
	end;

OnDisable:
	disablenpc "Runner No. 4";
	killmonster "p_track01","Runner No. 4::OnMyMobDead";
	end;

OnTouchNPC:
	initnpctimer;
	set $@monster_race,4;
	donpcevent "Runner No. 1::OnDisable";
	donpcevent "Runner No. 2::OnDisable";
	donpcevent "Runner No. 3::OnDisable";
	donpcevent "Runner No. 5::OnDisable";
	donpcevent "Runner No. 6::OnDisable";
	end;

OnTimer1000:
	mapannounce "p_track01","We have a winner...!",bc_map,"0x33FF66";
	end;

OnTimer2000:
	mapannounce "p_track01","Monster 4 is the winner of this race!",bc_map,"0x33FF66";
	end;

OnTimer6000:
	mapannounce "p_track01","If you wagered on Monster 4 in this race, talk to the Medal Distributor to receive your prize!",bc_map,"0x33FF66";
	end;

OnTimer8000:
	mapannounce "p_track01","Please remember that we can distribute Prize Medals for only 5 minutes after each race.",bc_map,"0x33FF66";
	end;

OnTimer9000:
	donpcevent "Medal Distributor#single::OnEnable";
	donpcevent "Runner No. 4::OnDisable";
	killmonster "p_track01","Runner No. 4::OnMyMobDead";
	stopnpctimer;
	end;
}

p_track01,30,30,0	script	Runner No. 5	-1,1,0,{
	end;

OnInit:
	disablenpc "Runner No. 5";
	end;

OnEnable:
	emotion e_gasp;
	enablenpc "Runner No. 5";
	monster "p_track01",58,30,"The 5th Racer",1730,1,"Runner No. 5::OnMyMobDead";
	end;

OnDisable:
	disablenpc "Runner No. 5";
	killmonster "p_track01","Runner No. 5::OnMyMobDead";
	end;

OnTouchNPC:
	initnpctimer;
	set $@monster_race,5;
	donpcevent "Runner No. 1::OnDisable";
	donpcevent "Runner No. 2::OnDisable";
	donpcevent "Runner No. 3::OnDisable";
	donpcevent "Runner No. 4::OnDisable";
	donpcevent "Runner No. 6::OnDisable";
	end;

OnTimer1000:
	mapannounce "p_track01","We have a winner...!",bc_map,"0x33FF66";
	end;

OnTimer2000:
	mapannounce "p_track01","Monster 5 is the winner of this race!",bc_map,"0x33FF66";
	end;

OnTimer6000:
	mapannounce "p_track01","If you wagered on Monster 5 in this race, talk to the Medal Distributor to receive your prize!",bc_map,"0x33FF66";
	end;

OnTimer8000:
	mapannounce "p_track01","Please remember that we can distribute Prize Medals for only 5 minutes after each race.",bc_map,"0x33FF66";
	end;

OnTimer9000:
	donpcevent "Medal Distributor#single::OnEnable";
	donpcevent "Runner No. 5::OnDisable";
	killmonster "p_track01","Runner No. 5::OnMyMobDead";
	stopnpctimer;
	end;
}

p_track01,30,28,0	script	Runner No. 6	-1,1,0,{
	end;

OnInit:
	disablenpc "Runner No. 6";
	end;

OnEnable:
	emotion e_gasp;
	enablenpc "Runner No. 6";
	monster "p_track01",58,28,"The 6th Racer",1729,1,"Runner No. 6::OnMyMobDead";
	end;

OnDisable:
	disablenpc "Runner No. 6";
	killmonster "p_track01","Runner No. 6::OnMyMobDead";
	end;

OnTouchNPC:
	initnpctimer;
	set $@monster_race,6;
	donpcevent "Runner No. 1::OnDisable";
	donpcevent "Runner No. 2::OnDisable";
	donpcevent "Runner No. 3::OnDisable";
	donpcevent "Runner No. 4::OnDisable";
	donpcevent "Runner No. 5::OnDisable";
	end;

OnTimer1000:
	mapannounce "p_track01","We have a winner...!",bc_map,"0x33FF66";
	end;

OnTimer2000:
	mapannounce "p_track01","Monster 6 is the winner of this race!",bc_map,"0x33FF66";
	end;

OnTimer6000:
	mapannounce "p_track01","If you wagered on Monster 6 in this race, talk to the Medal Distributor to receive your prize!",bc_map,"0x33FF66";
	end;

OnTimer8000:
	mapannounce "p_track01","Please remember that we can distribute Prize Medals for only 5 minutes after each race.",bc_map,"0x33FF66";
	end;

OnTimer9000:
	donpcevent "Medal Distributor#single::OnEnable";
	donpcevent "Runner No. 6::OnDisable";
	killmonster "p_track01","Runner No. 6::OnMyMobDead";
	stopnpctimer;
	end;
}

p_track01,67,45,5	script	Medal Distributor#single	845,{
	if (checkweight(908,200) == 0) {
		mes "[Medal Distributor]";
		mes "I'm sorry, but I can't";
		mes "reward you with any medals";
		mes "until you make more space";
		mes "available in your Inventory.";
		close;
	}
	set .@insa,rand(1,1000);
	if (countitem(7514) > 0) {
		mes "[Medal Distributor]";
		mes "Hello there~";
		mes "If you've wagered on the";
		mes "winning monster in a recent";
		mes "race, then you can exchange";
		mes "your game ticket here for";
		mes "some Prize Medals.";
		next;
		mes "[Medal Distributor]";
		mes "Please remember that you can";
		mes "only exchange winning Game";
		mes "Tickets for Prize Medals right";
		mes "after the race finishes. Prize";
		mes "Medals may be given to Wayne";
		mes "in Hugel in exchange for items.";
		next;
		if ($@monster_race == 1) {
			if (monster_race_1 == 1) {
				mes "[Medal Distributor]";
				mes "Oh, congratulations, you";
				mes "have a winning ticket for";
				mes "a Single Monster Race! So ";
				mes "would you like to exchange your";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Let me see your ticket...";
					mes "Oh! Congratulations, you";
					mes "won! May I have your name?";
					next;
					input .@input$;
					if (.@input$ == strcharinfo(0)) {
						mes "[Medal Distributor]";
						mes "Ah, "+strcharinfo(0)+".";
						mes "You can exchange this";
						mes "ticket for a Prize Medal by";
						mes "entering your ticket exchange";
						mes "number now. Your ticket";
						mes "exchange number is ^FF0000" + .@insa + "^000000.";
						next;
						input .@input; //,0,1000;
						if (.@input == 0) {
							mes "[Medal Distributor]";
							mes "Oh? You don't want";
							mes "to exchange your";
							mes "winning ticket?";
							close;
						}
						else if (.@input == .@insa) {
							mes "[Medal Distributor]";
							mes "Thank you! You entered";
							mes "the correct number...";
							mes "Everything seems to";
							mes "be in order. Alright!";
							next;
						}
						else {
							mes "[Medal Distributor]";
							mes "I'm sorry, but it seems";
							mes "that you entered the";
							mes "incorrect ticket number.";
							mes "Would you mind coming";
							mes "back again in a while?";
							close;
						}
					}
					else {
						mes "[Medal Distributor]";
						mes "What's this...?";
						mes "I think there's a problem...";
						mes "Did you enter your name";
						mes "incorrectly? Please check";
						mes "your name, and then try again.";
						close;
					}
					mes "[Medal Distributor]";
					mes "Now please accept your";
					mes "Prize Medals! You can";
					mes "exchange these with";
					mes "Wayne in Hugel for some";
					mes "interesting items. Thank you~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_1,0;
					getitem 7515,4; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if ($@monster_race == 2) {
			if (monster_race_1 == 2) {
				mes "[Medal Distributor]";
				mes "Oh, congratulations, you";
				mes "have a winning ticket for";
				mes "a Single Monster Race! So ";
				mes "would you like to exchange your";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Let me see your ticket...";
					mes "Oh! Congratulations, you";
					mes "won! May I have your name?";
					next;
					input .@input$;
					if (.@input$ == strcharinfo(0)) {
						mes "[Medal Distributor]";
						mes "Ah, "+strcharinfo(0)+".";
						mes "You can exchange this";
						mes "ticket for a Prize Medal by";
						mes "entering your ticket exchange";
						mes "number now. Your ticket";
						mes "exchange number is ^FF0000" + .@insa + "^000000.";
						next;
						input .@input; //,0,1000;
						if (.@input == 0) {
							mes "[Medal Distributor]";
							mes "Oh? You don't want";
							mes "to exchange your";
							mes "winning ticket?";
							close;
						}
						else if (.@input == .@insa) {
							mes "[Medal Distributor]";
							mes "[Medal Distributor]";
							mes "Thank you! You entered";
							mes "the correct number...";
							mes "Everything seems to";
							mes "be in order. Alright!";
							next;
						}
						else {
							mes "[Medal Distributor]";
							mes "I'm sorry, but it seems";
							mes "that you entered the";
							mes "incorrect ticket number.";
							mes "Would you mind coming";
							mes "back again in a while?";
							close;
						}
					}
					else {
						mes "[Medal Distributor]";
						mes "What's this...?";
						mes "I think there's a problem...";
						mes "Did you enter your name";
						mes "incorrectly? Please check";
						mes "your name, and then try again.";
						close;
					}
					mes "[Medal Distributor]";
					mes "Now please accept your";
					mes "Prize Medals! You can";
					mes "exchange these with";
					mes "Wayne in Hugel for some";
					mes "interesting items. Thank you~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_1,0;
					getitem 7515,4; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if ($@monster_race == 3) {
			if (monster_race_1 == 3) {
				mes "[Medal Distributor]";
				mes "Oh, congratulations, you";
				mes "have a winning ticket for";
				mes "a Single Monster Race! So ";
				mes "would you like to exchange your";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Let me see your ticket...";
					mes "Oh! Congratulations, you";
					mes "won! May I have your name?";
					next;
					input .@input$;
					if (.@input$ == strcharinfo(0)) {
						mes "[Medal Distributor]";
						mes "Ah, "+strcharinfo(0)+".";
						mes "You can exchange this";
						mes "ticket for a Prize Medal by";
						mes "entering your ticket exchange";
						mes "number now. Your ticket";
						mes "exchange number is ^FF0000" + .@insa + "^000000.";
						next;
						input .@input; //,0,1000;
						if (.@input == 0) {
							mes "[Medal Distributor]";
							mes "Oh? You don't want";
							mes "to exchange your";
							mes "winning ticket?";
							close;
						}
						else if (.@input == .@insa) {
							mes "[Medal Distributor]";
							mes "[Medal Distributor]";
							mes "Thank you! You entered";
							mes "the correct number...";
							mes "Everything seems to";
							mes "be in order. Alright!";
							next;
						}
						else {
							mes "[Medal Distributor]";
							mes "I'm sorry, but it seems";
							mes "that you entered the";
							mes "incorrect ticket number.";
							mes "Would you mind coming";
							mes "back again in a while?";
							close;
						}
					}
					else {
						mes "[Medal Distributor]";
						mes "What's this...?";
						mes "I think there's a problem...";
						mes "Did you enter your name";
						mes "incorrectly? Please check";
						mes "your name, and then try again.";
						close;
					}
					mes "[Medal Distributor]";
					mes "Now please accept your";
					mes "Prize Medals! You can";
					mes "exchange these with";
					mes "Wayne in Hugel for some";
					mes "interesting items. Thank you~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_1,0;
					getitem 7515,4; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if ($@monster_race == 4) {
			if (monster_race_1 == 4) {
				mes "[Medal Distributor]";
				mes "Oh, congratulations, you";
				mes "have a winning ticket for";
				mes "a Single Monster Race! So ";
				mes "would you like to exchange your";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Let me see your ticket...";
					mes "Oh! Congratulations, you";
					mes "won! May I have your name?";
					next;
					input .@input$;
					if (.@input$ == strcharinfo(0)) {
						mes "[Medal Distributor]";
						mes "Ah, "+strcharinfo(0)+".";
						mes "You can exchange this";
						mes "ticket for a Prize Medal by";
						mes "entering your ticket exchange";
						mes "number now. Your ticket";
						mes "exchange number is ^FF0000" + .@insa + "^000000.";
						next;
						input .@input; //,0,1000;
						if (.@input == 0) {
							mes "[Medal Distributor]";
							mes "Oh? You don't want";
							mes "to exchange your";
							mes "winning ticket?";
							close;
						}
						else if (.@input == .@insa) {
							mes "[Medal Distributor]";
							mes "[Medal Distributor]";
							mes "Thank you! You entered";
							mes "the correct number...";
							mes "Everything seems to";
							mes "be in order. Alright!";
							next;
						}
						else {
							mes "[Medal Distributor]";
							mes "I'm sorry, but it seems";
							mes "that you entered the";
							mes "incorrect ticket number.";
							mes "Would you mind coming";
							mes "back again in a while?";
							close;
						}
					}
					else {
						mes "[Medal Distributor]";
						mes "What's this...?";
						mes "I think there's a problem...";
						mes "Did you enter your name";
						mes "incorrectly? Please check";
						mes "your name, and then try again.";
						close;
					}
					mes "[Medal Distributor]";
					mes "Now please accept your";
					mes "Prize Medals! You can";
					mes "exchange these with";
					mes "Wayne in Hugel for some";
					mes "interesting items. Thank you~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_1,0;
					getitem 7515,4; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if ($@monster_race == 5) {
			if (monster_race_1 == 5) {
				mes "[Medal Distributor]";
				mes "Oh, congratulations, you";
				mes "have a winning ticket for";
				mes "a Single Monster Race! So ";
				mes "would you like to exchange your";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Let me see your ticket...";
					mes "Oh! Congratulations, you";
					mes "won! May I have your name?";
					next;
					input .@input$;
					if (.@input$ == strcharinfo(0)) {
						mes "[Medal Distributor]";
						mes "Ah, "+strcharinfo(0)+".";
						mes "You can exchange this";
						mes "ticket for a Prize Medal by";
						mes "entering your ticket exchange";
						mes "number now. Your ticket";
						mes "exchange number is ^FF0000" + .@insa + "^000000.";
						next;
						input .@input; //,0,1000;
						if (.@input == 0) {
							mes "[Medal Distributor]";
							mes "Oh? You don't want";
							mes "to exchange your";
							mes "winning ticket?";
							close;
						}
						else if (.@input == .@insa) {
							mes "[Medal Distributor]";
							mes "[Medal Distributor]";
							mes "Thank you! You entered";
							mes "the correct number...";
							mes "Everything seems to";
							mes "be in order. Alright!";
							next;
						}
						else {
							mes "[Medal Distributor]";
							mes "I'm sorry, but it seems";
							mes "that you entered the";
							mes "incorrect ticket number.";
							mes "Would you mind coming";
							mes "back again in a while?";
							close;
						}
					}
					else {
						mes "[Medal Distributor]";
						mes "What's this...?";
						mes "I think there's a problem...";
						mes "Did you enter your name";
						mes "incorrectly? Please check";
						mes "your name, and then try again.";
						close;
					}
					mes "[Medal Distributor]";
					mes "Now please accept your";
					mes "Prize Medals! You can";
					mes "exchange these with";
					mes "Wayne in Hugel for some";
					mes "interesting items. Thank you~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_1,0;
					getitem 7515,4; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if ($@monster_race == 6) {
			if (monster_race_1 == 6) {
				mes "[Medal Distributor]";
				mes "Oh, congratulations, you";
				mes "have a winning ticket for";
				mes "a Single Monster Race! So ";
				mes "would you like to exchange your";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Let me see your ticket...";
					mes "Oh! Congratulations, you";
					mes "won! May I have your name?";
					next;
					input .@input$;
					if (.@input$ == strcharinfo(0)) {
						mes "[Medal Distributor]";
						mes "Ah, "+strcharinfo(0)+".";
						mes "You can exchange this";
						mes "ticket for a Prize Medal by";
						mes "entering your ticket exchange";
						mes "number now. Your ticket";
						mes "exchange number is ^FF0000" + .@insa + "^000000.";
						next;
						input .@input; //,0,1000;
						if (.@input == 0) {
							mes "[Medal Distributor]";
							mes "Oh? You don't want";
							mes "to exchange your";
							mes "winning ticket?";
							close;
						}
						else if (.@input == .@insa) {
							mes "[Medal Distributor]";
							mes "[Medal Distributor]";
							mes "Thank you! You entered";
							mes "the correct number...";
							mes "Everything seems to";
							mes "be in order. Alright!";
							next;
						}
						else {
							mes "[Medal Distributor]";
							mes "I'm sorry, but it seems";
							mes "that you entered the";
							mes "incorrect ticket number.";
							mes "Would you mind coming";
							mes "back again in a while?";
							close;
						}
					}
					else {
						mes "[Medal Distributor]";
						mes "What's this...?";
						mes "I think there's a problem...";
						mes "Did you enter your name";
						mes "incorrectly? Please check";
						mes "your name, and then try again.";
						close;
					}
					mes "[Medal Distributor]";
					mes "Now please accept your";
					mes "Prize Medals! You can";
					mes "exchange these with";
					mes "Wayne in Hugel for some";
					mes "interesting items. Thank you~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_1,0;
					getitem 7515,4; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else {
			mes "[Medal Distributor]";
			mes "Hello there~";
			mes "If you've wagered on the";
			mes "winning monster in a recent";
			mes "race, then you can exchange";
			mes "your game ticket here for";
			mes "some Prize Medals.";
			next;
			mes "[Medal Distributor]";
			mes "Please remember that you can";
			mes "only exchange winning Game";
			mes "Tickets for Prize Medals right";
			mes "after the race finishes. Prize";
			mes "Medals may be given to Wayne";
			mes "in Hugel in exchange for items.";
			close;
		}
	}
	else {
		mes "[Medal Distributor]";
		mes "Hello there~";
		mes "If you've wagered on the";
		mes "winning monster in a recent";
		mes "race, then you can exchange";
		mes "your game ticket here for";
		mes "some Prize Medals.";
		next;
		mes "[Medal Distributor]";
		mes "Please remember that you can";
		mes "only exchange winning Game";
		mes "Tickets for Prize Medals right";
		mes "after the race finishes. Prize";
		mes "Medals may be given to Wayne";
		mes "in Hugel in exchange for items.";
		close;
	}
	end;

OnInit:
	disablenpc "Medal Distributor#single";
	end;

OnEnable:
	emotion e_gasp;
	enablenpc "Medal Distributor#single";
	initnpctimer;
	end;

OnTimer1000:
	mapannounce "p_track01","The Monster Race is finished! Congratulations to all the winners!",bc_map,"0xFFFF00";
	end;

OnTimer4000:
	mapannounce "p_track01","Please give your Racing Ticket to the Medal Distributor if you bet on the winning monster.",bc_map,"0xFFFF00";
	end;

OnTimer7000:
	mapannounce "p_track01","You have 5 minutes to exchange a winning ticket for Prize Medals from the Medal Distributor.",bc_map,"0xFFFF00";
	end;

OnTimer10000:
	mapannounce "p_track01","All tickets become void after this 5 minute period, so winners should claim their prize now.",bc_map,"0xFFFF00";
	end;

OnTimer13000:
	mapannounce "p_track01","Please leave the Race Arena before this 5 minute period elapses. Thank you.",bc_map,"0xFFFF00";
	end;

OnTimer240000:
	mapannounce "p_track01","Attention. We will being preparing for the next race shortly...",bc_map,"0xFFFF00";
	end;

OnTimer243000:
	mapannounce "p_track01","We will close the Racing Arena in 1 minute to prepare for the next race.",bc_map,"0xFFFF00";
	end;

OnTimer246000:
	mapannounce "p_track01","Participants in the last race should leave the arena as soon as possible.",bc_map,"0xFFFF00";
	end;

OnTimer249000:
	mapannounce "p_track01","Thank you for your cooperation.",bc_map,"0xFFFF00";
	end;

OnTimer252000:
	mapannounce "p_track01","We hope that you enjoyed the Monster Race arena. Come back again soon~",bc_map,"0xFFFF00";
	donpcevent "starting#1::OnDisable";
	donpcevent "starting#2::OnDisable";
	donpcevent "starting#3::OnDisable";
	donpcevent "starting#5::OnDisable";
	donpcevent "starting#6::OnDisable";
	end;

OnTimer300000:
	donpcevent "#race_timer1-1::OnEnable";
	set $@mon_time_1_1,2;
	set $@monster_race,0;
	mapwarp "p_track01","hugel",63,73;
	end;

OnTimer306000:
	donpcevent "Race Progress Timer::OnEnable";
	end;

OnTimer342000:
	disablenpc "Medal Distributor#single";
	stopnpctimer;
	end;
}

p_track01,76,36,1	script	Exit Guide#single	798,{
	mes "[Exit Guide]";
	mes "If you have a winning Racing";
	mes "Ticket, please make sure that";
	mes "you redeem it for Prize Medals";
	mes "now. All Racing Tickets become";
	mes "void once the next race begins.";
	next;
	mes "[Exit Guide]";
	mes "If you wish to leave";
	mes "the arena, then I can guide";
	mes "you outside. Would you like";
	mes "to leave the arena right now?";
	next;
	switch(select("Yes:No")) {
	case 1:
		if (countitem(7514) == 0) {
			mes "[Exit Guide]";
			mes "Thank you for";
			mes "your patronage, and";
			mes "I hope that you come";
			mes "visit us again soon~";
		}
		else {
			mes "[Exit Guide]";
			mes "In accordance with our";
			mes "policies, I must take your";
			mes "Racing Ticket before you leave.";
			mes "Thank you for your patronage,";
			mes "and I hope you enjoy your time";
			mes "here in the Monster Race Arena.";
			delitem 7514,1; //Monster_Ticket
		}
		set monster_race_1,0;
		close2;
		warp "hugel",63,73;
		end;
	case 2:
		mes "[Exit Guide]";
		mes "Alright, then.";
		mes "Just let me know";
		mes "whenever you're";
		mes "ready to leave.";
		close;
	}
}

hugel,58,72,6	script	Eckar Ellebird#single	798,{
	mes "[Eckar Ellebird]";
	mes "Welcome to the biggest";
	mes "attraction in Hugel, the";
	mes "Monster Race Arena.";
	mes "How may I help you today?";
	next;
	switch(select("Monster Race Info:Enter Monster Race")) {
	case 1:
		mes "[Eckar Ellebird]";
		mes "Monster Races originated from";
		mes "simple children's games in which";
		mes "Cute Pets would race against each other. This grew into an adult";
		mes "pastime that is so popular, we've built a racing arena in Hugel.";
		next;
		mes "[Eckar Ellebird]";
		mes "Our Monster Race Arena hosts";
		mes "two types of monster races. First, we have the Single Monster Race,";
		mes "in which those that wagered on the 1st place monster are rewarded.";
		next;
		mes "[Eckar Ellebird]";
		mes "Then, we have the Dual Monster";
		mes "Race in which the house odds and rewards are greater than in Single";
		mes "Monster Races: you must wager on 2 monsters, and they must place in";
		mes "1st and 2nd for you to win.";
		next;
		mes "[Eckar Ellebird]";
		mes "Although a small entrance";
		mes "fee is required, we only use";
		mes "the money to give rewards to";
		mes "participants and maintain this";
		mes "arena. Therefore, we're not";
		mes "profiting from this enterprise.";
		next;
		mes "[Eckar Ellebird]";
		mes "Also, we prohibit others";
		mes "from making personal bets";
		mes "and wagers, using items and";
		mes "zeny, based on the outcomes";
		mes "of these races. That kind of";
		mes "gambling is illegal here...";
		next;
		mes "[Eckar Ellebird]";
		mes "Once you enter the Race Arena, you will receive a Racing Ticket.";
		mes "Keep in mind that winning Racing Tickets can only be exchanged for";
		mes "Prize Medals during a 5 minute window after the end of the race.";
		next;
		break;
	case 2:
		break;
	}
	mes "[Eckar Ellebird]";
	mes "The entrance fee for all races";
	mes "in the Monster Race Arena is";
	mes "2,000 zeny. If you'd like to wager on a Dual Monster Race, then";
	mes "please ask my brother Erenes,";
	mes "and he will help you.";
	next;
	mes "[Eckar Ellebird]";
	mes "Otherwise, I'll help get you";
	mes "started if you're interested";
	mes "in a Single Monster Race.";
	mes "Would you like wager on";
	mes "a Single Monster Race?";
	next;
	switch(select("Yes, please.:No, thanks.")) {
	case 1:
		if (checkweight(908,700) == 0) {
			mes "[Eckar Ellebird]";
			mes "Oh, wow. You're carrying";
			mes "an awful lot of stuff... Yeah,";
			mes "you better put some of it away";
			mes "in Kafra Storage or something.";
			close;
		}
		if (Zeny > 1999) {
			if (countitem(7514) > 0) {
				mes "[Eckar Ellebird]";
				mes "Hm? What are you doing";
				mes "with an expired Racing Ticket?";
				mes "Well, I better get rid of it for you before it can get mixed up";
				mes "with your new Racing Ticket.";
				delitem 7514,1; //Monster_Ticket
				next;
				if ($@mon_time_1_1 == 1) {
					mes "[Eckar Ellebird]";
					mes "Alright, I think you";
					mes "should be all set. I hope";
					mes "that you enjoy the race~";
					mes "Let me guide you inside";
					mes "the Monster Race Arena now.";
					set zeny,zeny-2000;
					set monster_race_1,0;
					close2;
					warp "p_track01",75,41;
					end;
				}
				else if ($@mon_time_1_1 == 2) {
					mes "[Eckar Ellebird]";
					mes "We're still finishing our";
					mes "preparations for the next";
					mes "Single Monster Race, so";
					mes "we ask that you please";
					mes "wait a little while longer.";
					close;
				}
				else {
					if (.@monster_race == 0) {
						mes "[Eckar Ellebird]";
						mes "Right now, a Monster Race";
						mes "is in progress. It's too late to place a wager, but if you'd like";
						mes "to watch, the fee is 500 zeny";
						mes "for spectators. Would you like to enter the Monster Race Arena?";
						next;
						switch(select("Enter:Cancel")) {
						case 1:
							if (Zeny > 499) {
								mes "[Eckar Ellebird]";
								mes "Thank you~";
								mes "I hope you enjoy";
								mes "watching this race!";
								set zeny,zeny-500;
								set monster_race_1,0;
								close2;
								warp "p_track01",75,41;
								end;
							}
							else {
								mes "[Eckar Ellebird]";
								mes "I'm sorry, but you don't";
								mes "have enough money to pay";
								mes "the 500 zeny spectator fee.";
								close;
							}
						case 2:
							mes "[Eckar Ellebird]";
							mes "Alright, then. If you'd like";
							mes "to wager on a monster";
							mes "race, please wait for the";
							mes "current race to finish. I hope";
							mes "that you enjoy your time here";
							mes "in the Monster Race Arena~";
							close;
						}
					}
					else {
						mes "[Eckar Ellebird]";
						mes "I'm sorry, but a monster";
						mes "race has just ended, so we're";
						mes "having the 5 minute period in";
						mes "which the winners can claim";
						mes "their Prize Medals. The gate";
						mes "will open soon, so please wait.";
						close;
					}
				}
			}
			else {
				if ($@mon_time_1_1 == 1) {
					mes "[Eckar Ellebird]";
					mes "Thanks, I hope that";
					mes "you enjoy this race.";
					mes "Let me guide you now";
					mes "to the Monster Race Arena.";
					set zeny,zeny-2000;
					set monster_race_1,0;
					close2;
					warp "p_track01",75,41;
					end;
				}
				else if ($@mon_time_1_1 == 2) {
					mes "[Eckar Ellebird]";
					mes "We're still finishing our";
					mes "preparations for the next";
					mes "Single Monster Race, so";
					mes "we ask that you please";
					mes "wait a little while longer...";
					close;
				}
				else {
					if ($@monster_race == 0) {
						mes "[Eckar Ellebird]";
						mes "Right now, a Monster Race";
						mes "is in progress. It's too late to place a wager, but if you'd like";
						mes "to watch, the fee is 500 zeny";
						mes "for spectators. Would you like to enter the Monster Race Arena?";
						next;
						switch(select("Enter:Cancel")) {
						case 1:
							if (Zeny > 499) {
								mes "[Eckar Ellebird]";
								mes "Thank you~";
								mes "I hope you enjoy";
								mes "watching this race!";
								set zeny,zeny-500;
								set monster_race_1,0;
								close2;
								warp "p_track01",75,41;
								end;
							}
							else {
								mes "[Eckar Ellebird]";
								mes "I'm sorry, but you don't";
								mes "have enough money to pay";
								mes "the 500 zeny spectator fee.";
								close;
							}
						case 2:
							mes "[Eckar Ellebird]";
							mes "Alright, then. If you'd like";
							mes "to wager on a monster";
							mes "race, please wait for the";
							mes "current race to finish. I hope";
							mes "that you enjoy your time here";
							mes "in the Monster Race Arena~";
							close;
						}
					}
					else {
						mes "[Eckar Ellebird]";
						mes "I'm sorry, but a monster";
						mes "race has just ended, so we're";
						mes "having the 5 minute period in";
						mes "which the winners can claim";
						mes "their Prize Medals. The gate";
						mes "will open soon, so please wait.";
						close;
					}
				}
			}
		}
		else {
			mes "[Eckar Ellebird]";
			mes "I'm sorry, but you";
			mes "don't have enough";
			mes "money to pay the";
			mes "2,000 zeny entrance fee. ";
			close;
		}
	case 2:
		mes "[Eckar Ellebird]";
		mes "Very well. I hope that";
		mes "you enjoy your time here";
		mes "in the Monster Race Arena~";
		close;
	}
	close;
}

p_track01,39,49,3	script	Game Guide#single	845,{
	mes "[Game Guide]";
	mes "Welcome to the";
	mes "Monster Race Arena.";
	mes "How can I help you?";
	next;
	switch(select("Monster Race Info:Wager Info:Ticket Redemption Info")) {
	case 1:
		mes "[Game Guide]";
		mes "Monster Races originated from";
		mes "simple children's games in which";
		mes "Cute Pets would race against each other. This grew into an adult";
		mes "pastime that is so popular, we've built a racing arena in Hugel.";
		next;
		mes "[Game Guide]";
		mes "Our Monster Race Arena hosts";
		mes "two types of monster races. First, we have the Single Monster Race,";
		mes "in which those that wagered on the 1st place monster are rewarded.";
		next;
		mes "[Game Guide]";
		mes "Then, we have the Dual Monster";
		mes "Race in which the house odds and rewards are greater than in Single";
		mes "Monster Races: you must wager on 2 monsters, and they must place in";
		mes "1st and 2nd for you to win.";
		next;
		mes "[Game Guide]";
		mes "Although a small entrance";
		mes "fee is required, we only use";
		mes "the money to give rewards to";
		mes "participants and maintain this";
		mes "arena. Therefore, we're not";
		mes "profiting from this enterprise.";
		next;
		mes "[Game Guide]";
		mes "Also, we prohibit others";
		mes "from making personal bets";
		mes "and wagers, using items and";
		mes "zeny, based on the outcomes";
		mes "of these races. That kind of";
		mes "gambling is illegal here...";
		next;
		mes "[Game Guide]";
		mes "Once you enter the Race Arena, you will receive a Racing Ticket.";
		mes "Keep in mind that winning Racing Tickets can only be exchanged for";
		mes "Prize Medals during a 5 minute window after the end of the race.";
		next;
		break;
	case 2:
		mes "[Game Guide]";
		mes "Before placing a wager, you";
		mes "must get a free Racing Ticket";
		mes "from the Ticket Helper. There,";
		mes "I've marked the Ticket Helper";
		mes "on your Mini-Map, so you can";
		mes "find him pretty easily.";
		viewpoint 1,73,22,1,0xFF3355;
		next;
		break;
	case 3:
		mes "[Game Guide]";
		mes "If you wagered on the winner";
		mes "of a Single Monster Race, or";
		mes "on the 1st or 2nd place winners";
		mes "in a Dual Monster Race, then";
		mes "you can exchange your Racing";
		mes "Ticket for Prize Medals.";
		next;
		mes "[Game Guide]";
		mes "However, you must exchange";
		mes "your Racing Ticket with the";
		mes "Medal Distributor within the";
		mes "5 minute window after the end";
		mes "of the race. ^FF0000Your ticket becomes^FFFFFF ^FF0000 void after these 5 minutes.^000000";
		next;
		mes "[Game Guide]";
		mes "When this 5 minute window";
		mes "elapses, you will be teleported outside, and we will immediately";
		mes "begin preparing for the next race. Make sure that you remember this";
		mes "information when you wager.";
		next;
		mes "[Game Guide]";
		mes "If you haven't received";
		mes "your free Racing Ticket,";
		mes "then please visit the Ticket";
		mes "Helper. There, I've just marked";
		mes "his location on your Mini-Map.";
		viewpoint 1,67,45,2,0xCE6300;
		next;
		break;
	}
	mes "[Game Guide]";
	mes "Thank you, and";
	mes "I hope you enjoy";
	mes "your time here in the";
	mes "Monster Racing Arena.";
	close;
}

p_track01,56,38,0	script	starting#1	-1,0,0,{
	end;

OnDisable:
	enablenpc "Luk#1";
	enablenpc "Luk#2";
	enablenpc "Luk#3";
	enablenpc "Luk#4";
	enablenpc "Luk#5";
	enablenpc "Luk#6";
	enablenpc "Tire#1";
	enablenpc "Tire#2";
	enablenpc "Tire#3";
	enablenpc "Tire#4";
	enablenpc "Tire#5";
	enablenpc "Tire#6";
	set $@mr_1_luk1,0;
	set $@mr_1_tire1,0;
	end;

OnInit:
	disablenpc "starting#1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 11) {
		sc_start SC_WALKSPEED,5000,60;
	}
	else if (.@start > 10) && (.@start < 21) {
		sc_start SC_WALKSPEED,5000,70;
	}
	else if (.@start > 20) && (.@start < 31) {
		sc_start SC_WALKSPEED,5000,80;
	}
	else if (.@start > 30) && (.@start < 41) {
		sc_start SC_WALKSPEED,5000,90;
	}
	else if (.@start > 40) && (.@start < 51) {
		sc_start SC_WALKSPEED,5000,100;
	}
	else if (.@start > 50) && (.@start < 61) {
		sc_start SC_WALKSPEED,5000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,5000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,5000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,5000,140;
	}
	else {
		sc_start SC_WALKSPEED,5000,150;
	}
	end;
}

p_track01,33,38,0	script	Luk#1	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,37,38,0	script	Luk#2	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,53,38,0	script	Luk#3	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,45,38,0	script	Luk#4	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,49,38,0	script	Luk#5	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track01,41,38,0	script	Luk#6	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track01,43,38,0	script	Tire#1	-1,0,0,{
	end;
OnInit:
	disablenpc "Tire#1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,39,38,0	script	Tire#2	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,35,38,0	script	Tire#3	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,55,38,0	script	Tire#4	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,51,38,0	script	Tire#5	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,47,38,0	script	Tire#6	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,56,36,0	script	starting#2	-1,0,0,{
	end;

OnDisable:
	enablenpc "Luk2#1";
	enablenpc "Luk2#2";
	enablenpc "Luk2#3";
	enablenpc "Luk2#4";
	enablenpc "Luk2#5";
	enablenpc "Luk2#6";
	enablenpc "Tire2#1";
	enablenpc "Tire2#2";
	enablenpc "Tire2#3";
	enablenpc "Tire2#4";
	enablenpc "Tire2#5";
	enablenpc "Tire2#6";
	set $@mr_1_luk2,0; 
	set $@mr_1_tire2,0;
	end;

OnInit:
	disablenpc "starting#2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 11) {
		sc_start SC_WALKSPEED,5000,60;
	}
	else if (.@start > 10) && (.@start < 21) {
		sc_start SC_WALKSPEED,5000,70;
	}
	else if (.@start > 20) && (.@start < 31) {
		sc_start SC_WALKSPEED,5000,80;
	}
	else if (.@start > 30) && (.@start < 41) {
		sc_start SC_WALKSPEED,5000,90;
	}
	else if (.@start > 40) && (.@start < 51) {
		sc_start SC_WALKSPEED,5000,100;
	}
	else if (.@start > 50) && (.@start < 61) {
		sc_start SC_WALKSPEED,5000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,5000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,5000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,5000,140;
	}
	else {
		sc_start SC_WALKSPEED,5000,150;
	}
	end;
}

p_track01,33,36,0	script	Luk2#1	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk2#1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,37,36,0	script	Luk2#2	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk2#2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,53,36,0	script	Luk2#3	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk2#3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,45,36,0	script	Luk2#4	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk2#4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,49,36,0	script	Luk2#5	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk2#5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track01,41,36,0	script	Luk2#6	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk2#6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track01,43,36,0	script	Tire2#1	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire2#1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,39,36,0	script	Tire2#2	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire2#2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,35,36,0	script	Tire2#3	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire2#3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,55,36,0	script	Tire2#4	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire2#4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,51,36,0	script	Tire2#5	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire2#5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,47,36,0	script	Tire2#6	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire2#6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,56,34,0	script	starting#3	-1,0,0,{
	end;

OnDisable:
	enablenpc "Luk3#1";
	enablenpc "Luk3#2";
	enablenpc "Luk3#3";
	enablenpc "Luk3#4";
	enablenpc "Luk3#5";
	enablenpc "Luk3#6";
	enablenpc "Tire3#1";
	enablenpc "Tire3#2";
	enablenpc "Tire3#3";
	enablenpc "Tire3#4";
	enablenpc "Tire3#5";
	enablenpc "Tire3#6";
	set $@mr_1_luk3,0;
	set $@mr_1_tire3,0;
	end;

OnInit:
	disablenpc "starting#3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 11) {
		sc_start SC_WALKSPEED,5000,60;
	}
	else if (.@start > 10) && (.@start < 21) {
		sc_start SC_WALKSPEED,5000,70;
	}
	else if (.@start > 20) && (.@start < 31) {
		sc_start SC_WALKSPEED,5000,80;
	}
	else if (.@start > 30) && (.@start < 41) {
		sc_start SC_WALKSPEED,5000,90;
	}
	else if (.@start > 40) && (.@start < 51) {
		sc_start SC_WALKSPEED,5000,100;
	}
	else if (.@start > 50) && (.@start < 61) {
		sc_start SC_WALKSPEED,5000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,5000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,5000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,5000,140;
	}
	else {
		sc_start SC_WALKSPEED,5000,150;
	}
	end;
}

p_track01,33,34,0	script	Luk3#1	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk3#1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,37,34,0	script	Luk3#2	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk3#2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,53,34,0	script	Luk3#3	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk3#3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,45,34,0	script	Luk3#4	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk3#4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,49,34,0	script	Luk3#5	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk3#5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track01,41,34,0	script	Luk3#6	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk3#6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track01,43,34,0	script	Tire3#1	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire3#1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,39,34,0	script	Tire3#2	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire3#2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,35,34,0	script	Tire3#3	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire3#3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,55,34,0	script	Tire3#4	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire3#4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,51,34,0	script	Tire3#5	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire3#5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,47,34,0	script	Tire3#6	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire3#6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,56,32,0	script	starting#4	-1,0,0,{
	end;

OnDisable:
	enablenpc "starting#4";
	enablenpc "Luk4#1";
	enablenpc "Luk4#2";
	enablenpc "Luk4#3";
	enablenpc "Luk4#4";
	enablenpc "Luk4#5";
	enablenpc "Luk4#6";
	enablenpc "Tire4#1";
	enablenpc "Tire4#2";
	enablenpc "Tire4#3";
	enablenpc "Tire4#4";
	enablenpc "Tire4#5";
	enablenpc "Tire4#6";
	set $@mr_1_luk4,0;
	set $@mr_1_tire4,0;
	end;

OnInit:
	disablenpc "starting#4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 11) {
		sc_start SC_WALKSPEED,5000,60;
	}
	else if (.@start > 10) && (.@start < 21) {
		sc_start SC_WALKSPEED,5000,70;
	}
	else if (.@start > 20) && (.@start < 31) {
		sc_start SC_WALKSPEED,5000,80;
	}
	else if (.@start > 30) && (.@start < 41) {
		sc_start SC_WALKSPEED,5000,90;
	}
	else if (.@start > 40) && (.@start < 51) {
		sc_start SC_WALKSPEED,5000,100;
	}
	else if (.@start > 50) && (.@start < 61) {
		sc_start SC_WALKSPEED,5000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,5000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,5000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,5000,140;
	}
	else {
		sc_start SC_WALKSPEED,5000,150;
	}
	end;
}

p_track01,33,32,0	script	Luk4#1	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk4#1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,37,32,0	script	Luk4#2	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk4#2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,53,32,0	script	Luk4#3	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk4#3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,45,32,0	script	Luk4#4	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk4#4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,49,32,0	script	Luk4#5	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk4#5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track01,41,32,0	script	Luk4#6	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk4#6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track01,43,32,0	script	Tire4#1	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire4#1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,39,32,0	script	Tire4#2	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire4#2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,35,32,0	script	Tire4#3	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire4#3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,55,32,0	script	Tire4#4	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire4#4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,51,32,0	script	Tire4#5	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire4#5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,47,32,0	script	Tire4#6	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire4#6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,56,30,0	script	starting#5	-1,0,0,{
	end;

OnDisable:
	enablenpc "Luk5#1";
	enablenpc "Luk5#2";
	enablenpc "Luk5#3";
	enablenpc "Luk5#4";
	enablenpc "Luk5#5";
	enablenpc "Luk5#6";
	enablenpc "Tire5#1";
	enablenpc "Tire5#2";
	enablenpc "Tire5#3";
	enablenpc "Tire5#4";
	enablenpc "Tire5#5";
	enablenpc "Tire5#6";
	set $@mr_1_luk5,0;
	set $@mr_1_tire5,0;
	end;

OnInit:
	disablenpc "starting#5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 11) {
		sc_start SC_WALKSPEED,5000,60;
	}
	else if (.@start > 10) && (.@start < 21) {
		sc_start SC_WALKSPEED,5000,70;
	}
	else if (.@start > 20) && (.@start < 31) {
		sc_start SC_WALKSPEED,5000,80;
	}
	else if (.@start > 30) && (.@start < 41) {
		sc_start SC_WALKSPEED,5000,90;
	}
	else if (.@start > 40) && (.@start < 51) {
		sc_start SC_WALKSPEED,5000,100;
	}
	else if (.@start > 50) && (.@start < 61) {
		sc_start SC_WALKSPEED,5000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,5000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,5000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,5000,140;
	}
	else {
		sc_start SC_WALKSPEED,5000,150;
	}
	end;
}

p_track01,33,30,0	script	Luk5#1	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk5#1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,37,30,0	script	Luk5#2	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk5#2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,53,30,0	script	Luk5#3	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk5#3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,45,30,0	script	Luk5#4	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk5#4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,49,30,0	script	Luk5#5	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk5#5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track01,41,30,0	script	Luk5#6	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk5#6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track01,43,30,0	script	Tire5#1	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire5#1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,39,30,0	script	Tire5#2	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire5#2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,35,30,0	script	Tire5#3	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire5#3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,55,30,0	script	Tire5#4	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire5#4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,51,30,0	script	Tire5#5	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire5#5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,47,30,0	script	Tire5#6	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire5#6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,56,28,0	script	starting#6	-1,0,0,{
	end;

OnDisable:
	enablenpc "Luk6#1";
	enablenpc "Luk6#2";
	enablenpc "Luk6#3";
	enablenpc "Luk6#4";
	enablenpc "Luk6#5";
	enablenpc "Luk6#6";
	enablenpc "Tire6#1";
	enablenpc "Tire6#2";
	enablenpc "Tire6#3";
	enablenpc "Tire6#4";
	enablenpc "Tire6#5";
	enablenpc "Tire6#6";
	set $@mr_1_luk6,0;
	set $@mr_1_tire6,0;
	end;

OnInit:
	disablenpc "starting#6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 11) {
		sc_start SC_WALKSPEED,5000,60;
	}
	else if (.@start > 10) && (.@start < 21) {
		sc_start SC_WALKSPEED,5000,70;
	}
	else if (.@start > 20) && (.@start < 31) {
		sc_start SC_WALKSPEED,5000,80;
	}
	else if (.@start > 30) && (.@start < 41) {
		sc_start SC_WALKSPEED,5000,90;
	}
	else if (.@start > 40) && (.@start < 51) {
		sc_start SC_WALKSPEED,5000,100;
	}
	else if (.@start > 50) && (.@start < 61) {
		sc_start SC_WALKSPEED,5000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,5000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,5000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,5000,140;
	}
	else {
		sc_start SC_WALKSPEED,5000,150;
	}
	end;
}

p_track01,33,28,0	script	Luk6#1	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk6#1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,37,28,0	script	Luk6#2	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk6#2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,53,28,0	script	Luk6#3	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk6#3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,45,28,0	script	Luk6#4	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk6#4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track01,49,28,0	script	Luk6#5	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk6#5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track01,41,28,0	script	Luk6#6	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk6#6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track01,43,28,0	script	Tire6#1	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire6#1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,39,28,0	script	Tire6#2	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire6#2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,35,28,0	script	Tire6#3	-1,0,0,{
	end;
OnInit:
	disablenpc "Tire6#3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,55,28,0	script	Tire6#4	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire6#4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,51,28,0	script	Tire6#5	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire6#5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track01,47,28,0	script	Tire6#6	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire6#6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

//============================================================
// Monstrer Race - Dual Monster Race
//============================================================
hugel,47,56,0	script	#race_timer2-1	-1,{
OnInit:
	enablenpc "#race_timer2-1";
	set $@mon_time_2_1,2;
	initnpctimer;
	end;

OnEnable:
	enablenpc "#race_timer2-1";
	set $@mon_time_2_1,2;
	initnpctimer;
	end;

OnDisable:
	disablenpc "#race_timer2-1";
	stopnpctimer;
	end;

OnTimer10000:
	mapannounce "hugel","The Dual Monster Race will soon begin. We hope to see many of you participate!",bc_map,"0xffb6c1";
	end;

OnTimer30000:
	mapannounce "hugel","The Dual Monster Race Arena has just opened.",bc_map,"0xffb6c1";
	set $@mon_time_2_1,1;
	donpcevent "#race_timer2-2::OnEnable";
	enablenpc "Ticket Helper#2";
	donpcevent "TrapGlobal#race02::OnEnable";
	end;

OnTimer90000:
	mapannounce "hugel","The Dual Monster Race arena is now open. Participants should enter the Arena as soon as they can.",bc_map,"0xffb6c1";
	end;

OnTimer210000:
	mapannounce "hugel","The entrance to the Dual Monster Race Arena will close shortly. Participants, please enter the arena now.",bc_map,"0xffb6c1";
	end;

OnTimer270000:
	mapannounce "hugel","The Dual Monster Race Arena's entrance will soon close.",bc_map,"0xffb6c1";
	end;

OnTimer272000:
	mapannounce "hugel","Participants, please enter the Arena before the doors close.",bc_map,"0xffb6c1";
	end;

OnTimer330000:
	mapannounce "hugel","The race is now starting. If you missed your chance to enter this race, please try again next time~!",bc_map,"0xffb6c1";
	set $@mon_time_2_1,0;
	donpcevent "#race_timer2-1::OnDisable";
	stopnpctimer;
	end;
}

p_track02,42,23,0	script	#race_timer2-2	-1,{
OnInit:
	disablenpc "#race_timer2-2";
	set $@mon_time_2_2,0;
	end;

OnEnable:
	enablenpc "#race_timer2-2";
	set $@mon_time_2_2,0;
	initnpctimer;
	end;

OnDisable:
	disablenpc "#race_timer2-2";
	stopnpctimer;
	end;

OnTimer5000:
	mapannounce "p_track02","Welcome to the Monster Race Arena.",bc_map,"0x87ceeb";
	end;

OnTimer7000:
	mapannounce "p_track02","Feel free to inquire at the help desk whenever you have questions.",bc_map,"0x87ceeb";
	end;

OnTimer120000:
	mapannounce "p_track02","The Dual Monster Race will start in 3 minutes.",bc_map,"0x87ceeb";
	end;

OnTimer122000:
	mapannounce "p_track02","Please ask a Ticket Helper if you wish to wager on the race.",bc_map,"0x87ceeb";
	end;

OnTimer240000:
	mapannounce "p_track02","The Dual Monster Race will start shortly.",bc_map,"0x87ceeb";
	end;

OnTimer242000:
	mapannounce "p_track02","Please ask a Ticket Helper if you wish to wager on the race.",bc_map,"0x87ceeb";
	end;

OnTimer300000:
	mapannounce "p_track02","The Monster Race is starting now. Good luck, everybody!",bc_map,"0x87ceeb";
	set $@mon_time_2_2,1;
	set $@mon_race_2_1,0;
	set $@mon_race_2_2,0;
	disablenpc "Ticket Helper#2";
	donpcevent "#poring1::OnEnable";
	donpcevent "#lunatic1::OnEnable";
	donpcevent "#savagebebe1::OnEnable";
	donpcevent "#desertwolf1::OnEnable";
	donpcevent "#deviruchi1::OnEnable";
	donpcevent "#baphomet1::OnEnable";
	stopnpctimer;
	end;
}

p_track02,80,43,0	script	#race_timer2-3	-1,{
OnInit:
	disablenpc "#race_timer2-3";
	end;

OnEnable:
	enablenpc "#race_timer2-3";
	initnpctimer;
	end;

OnDisable:
	disablenpc "#race_timer2-3";
	stopnpctimer;
	end;

OnTimer3000:
	mapannounce "p_track02","The Monster Race is finished! Congratulations to all the winners!",bc_map,"0xFFFF00";
	end;

OnTimer6000:
	mapannounce "p_track02","Please give your Racing Ticket to the Medal Distributor if you bet on the winning monster.",bc_map,"0xFFFF00";
	end;

OnTimer9000:
	mapannounce "p_track02","You have 5 minutes to exchange a winning ticket for Prize Medals from the Medal Distributor.",bc_map,"0xFFFF00";
	end;

OnTimer12000:
	mapannounce "p_track02","All tickets become void after this 5 minute period, so winners should claim their prize now.",bc_map,"0xFFFF00";
	end;

OnTimer15000:
	mapannounce "p_track02","Please leave the Race Arena before this 5 minute period elapses. Thank you.",bc_map,"0xFFFF00";
	end;

OnTimer240000:
	mapannounce "p_track02","Attention. We will being preparing for the next race shortly...",bc_map,"0xFFFF00";
	end;

OnTimer243000:
	mapannounce "p_track02","We will close the Racing Arena in 1 minute to prepare for the next race.",bc_map,"0xFFFF00";
	end;

OnTimer246000:
	mapannounce "p_track02","Participants in the last race should leave the arena as soon as possible.",bc_map,"0xFFFF00";
	end;

OnTimer249000:
	mapannounce "p_track02","Thank you for your cooperation.",bc_map,"0xFFFF00";
	end;

OnTimer252000:
	mapannounce "p_track02","We hope that you enjoyed the Monster Race arena. Come back again soon~",bc_map,"0xFFFF00";
	end;

OnTimer300000:
	mapwarp "p_track02","hugel",63,73;
	enablenpc "Medal Distributor#medal";
	donpcevent "#race_timer2-1::OnEnable";
	set $@mon_race_2_1,0;
	set $@mon_race_2_2,0;
	donpcevent "#race_timer2-3::OnDisable";
	stopnpctimer;
	end;
}

hugel,62,69,1	script	Eckar Erenes#double	798,{
	mes "[Eckar Erenes]";
	mes "Welcome to the";
	mes "Monster Race Arena,";
	mes "the pride and joy of";
	mes "the village of Hugel!";
	mes "How may I help you?";
	next;
	switch(select("Monster Race Info:Enter Monster Race")) {
	case 1:
		mes "[Eckar Erenes]";
		mes "Monster Races originated from";
		mes "simple children's games in which";
		mes "Cute Pets would race against each other. This grew into an adult";
		mes "pastime that is so popular, we've built a racing arena in Hugel.";
		next;
		mes "[Eckar Erenes]";
		mes "Our Monster Race Arena hosts";
		mes "two types of monster races. First, we have the Single Monster Race,";
		mes "in which those that wagered on the 1st place monster are rewarded.";
		next;
		mes "[Eckar Erenes]";
		mes "Then, we have the Dual Monster";
		mes "Race in which the house odds and rewards are greater than in Single";
		mes "Monster Races: you must wager on 2 monsters, and they must place in";
		mes "1st and 2nd for you to win.";
		next;
		mes "[Eckar Erenes]";
		mes "Although a small entrance";
		mes "fee is required, we only use";
		mes "the money to give rewards to";
		mes "participants and maintain this";
		mes "arena. Therefore, we're not";
		mes "profiting from this enterprise.";
		next;
		mes "[Eckar Erenes]";
		mes "Also, we prohibit others";
		mes "from making personal bets";
		mes "and wagers, using items and";
		mes "zeny, based on the outcomes";
		mes "of these races. That kind of";
		mes "gambling is illegal here...";
		next;
		mes "[Eckar Erenes]";
		mes "Once you enter the Race Arena, you will receive a Racing Ticket.";
		mes "Keep in mind that winning Racing Tickets can only be exchanged for";
		mes "Prize Medals during a 5 minute window after the end of the race.";
		next;
		break;
	case 2:
		break;
	}
	mes "[Eckar Erenes]";
	mes "The entrance fee for all races";
	mes "in the Monster Race Arena is";
	mes "2,000 zeny. If you'd like to wager on a Single Monster Race,";
	mes "then please ask my brother";
	mes "Ellebird to help you.";
	next;
	mes "[Eckar Erenes]";
	mes "Otherwise, I'll help get you";
	mes "started if you're interested";
	mes "in a Dual Monster Race.";
	mes "Would you like to wager";
	mes "on a Dual Monster Race?";
	next;
	switch(select("Yes, please.:No, thanks.")) {
	case 1:
		if (checkweight(909,700) == 0) {
			mes "[Eckar Erenes]";
			mes "Hmm... You're toting";
			mes "too many things with you";
			mes "right now. You better put";
			mes "some of your stuff away in";
			mes "Kafra Storage before you can";
			mes "wager on any monster races...";
			close;
		}
		if (Zeny > 1999) {
			if (countitem(7514) > 0) {
				mes "[Eckar Erenes]";
				mes "Hm? What are you doing";
				mes "with an expired Racing Ticket?";
				mes "Well, I better get rid of it for you before it can get mixed up";
				mes "with your new Racing Ticket.";
				delitem 7514,1; //Monster_Ticket
				next;
				if ($@mon_time_2_1 == 1) {
					mes "[Eckar Erenes]";
					mes "Alright, I think you";
					mes "should be all set. I hope";
					mes "that you enjoy the race~";
					mes "Let me guide you inside";
					mes "the Monster Race Arena now.";
					set zeny,zeny-2000;
					set monster_race_2_1,0;
					set monster_race_2_2,0;
					close2;
					warp "p_track02",75,41;
					end;
				}
				else if ($@mon_time_2_1 == 2) {
					mes "[Eckar Erenes]";
					mes "We're still finishing our";
					mes "preparations for the next";
					mes "Double Monster Race, so";
					mes "we ask that you please";
					mes "wait a little while longer...";
					close;
				}
				else {
					if (($@mon_time_2_1 == 0) || ($@mon_time_2_2 == 0)) {
						mes "[Eckar Erenes]";
						mes "Right now, a Monster Race";
						mes "is in progress. It's too late to place a wager, but if you'd like";
						mes "to watch, the fee is 500 zeny";
						mes "for spectators. Would you like to enter the Monster Race Arena?";
						next;
						switch(select("Enter:Cancel")) {
						case 1:
							if (Zeny > 499) {
								mes "[Eckar Erenes]";
								mes "Thank you~";
								mes "I hope you enjoy";
								mes "watching this race!";
								set zeny,zeny-500;
								set monster_race_2_1,0;
								set monster_race_2_2,0;
								close2;
								warp "p_track02",75,41;
								end;
							}
							else {
								mes "[Eckar Erenes]";
								mes "I'm sorry, but you don't";
								mes "have enough money to pay";
								mes "the 500 zeny spectator fee.";
								close;
							}
						case 2:
							mes "[Eckar Erenes]";
							mes "Alright, then. If you'd like";
							mes "to wager on a monster";
							mes "race, please wait for the";
							mes "current race to finish. I hope";
							mes "that you enjoy your time here";
							mes "in the Monster Race Arena~";
							close;
						}
					}
					else {
						mes "[Eckar Erenes]";
						mes "I'm sorry, but a monster";
						mes "race has just ended, so we're";
						mes "having the 5 minute period in";
						mes "which the winners can claim";
						mes "their Prize Medals. The gate";
						mes "will open soon, so please wait.";
						close;
					}
				}
			}
			else {
				if ($@mon_time_2_1 == 1) {
					mes "[Eckar Erenes]";
					mes "Thanks, I hope that";
					mes "you enjoy this race.";
					mes "Let me guide you now";
					mes "to the Monster Race Arena.";
					set zeny,zeny-2000;
					set monster_race_2_1,0;
					set monster_race_2_2,0;
					close2;
					warp "p_track02",75,41;
					end;
				}
				else if ($@mon_time_2_1 == 2) {
					mes "[Eckar Erenes]";
					mes "We're still finishing our";
					mes "preparations for the next";
					mes "Double Monster Race, so";
					mes "we ask that you please";
					mes "wait a little while longer...";
					close;
				}
				else {
					if (($@mon_time_2_1 == 0) || ($@mon_time_2_2 == 0)) {
						mes "[Eckar Erenes]";
						mes "Right now, a Monster Race";
						mes "is in progress. It's too late to place a wager, but if you'd like";
						mes "to watch, the fee is 500 zeny";
						mes "for spectators. Would you like to enter the Monster Race Arena?";
						next;
						switch(select("Enter:Cancel")) {
						case 1:
							if (Zeny > 499) {
								mes "[Eckar Erenes]";
								mes "Thank you~";
								mes "I hope you enjoy";
								mes "watching this race!";
								set zeny,zeny-500;
								set monster_race_2_1,0;
								set monster_race_2_2,0;
								close2;
								warp "p_track02",75,41;
								end;
							}
							else {
								mes "[Eckar Erenes]";
								mes "I'm sorry, but you don't";
								mes "have enough money to pay";
								mes "the 500 zeny spectator fee.";
								close;
							}
						case 2:
							mes "[Eckar Erenes]";
							mes "Alright, then. If you'd like";
							mes "to wager on a monster";
							mes "race, please wait for the";
							mes "current race to finish. I hope";
							mes "that you enjoy your time here";
							mes "in the Monster Race Arena~";
							close;
						}
					}
					else {
						mes "[Eckar Erenes]";
						mes "I'm sorry, but a monster";
						mes "race has just ended, so we're";
						mes "having the 5 minute period in";
						mes "which the winners can claim";
						mes "their Prize Medals. The gate";
						mes "will open soon, so please wait.";
 						close;
					}
				}
			}
		}
		else {
			mes "[Eckar Erenes]";
			mes "I'm sorry, but you";
			mes "don't have enough";
			mes "money to pay the";
			mes "2,000 zeny entrance fee. ";
			close;
		}
	case 2:
		mes "[Eckar Erenes]";
		mes "Very well. I hope that";
		mes "you enjoy your time here";
		mes "in the Monster Race Arena~";
		close;
	}
}

p_track02,73,22,1	script	Ticket Helper#2	899,{
	if (checkweight(908,200) == 0) {
		mes "[Ticket Helper]";
		mes "Welcome to the";
		mes "Monster Race Arena.";
		mes "If you'd like to participate";
		mes "in the ^3131FFDouble Monster Race^000000,";
		mes "then please select 1 out of";
		mes "the 6 monsters from the list.";
		next;
		mes "[Ticket Helper]";
		mes "Wait, wait...";
		mes "I can't give you";
		mes "anything right now.";
		mes "You're carrying way";
		mes "too many things...";
		close;
	}
	if ((monster_race_2_1 == 0) && (monster_race_2_2 == 0)) {
		mes "[Ticket Helper]";
		mes "Hello there!";
		mes "Interested in wagering on";
		mes "the Dual Monster Race?";
		mes "I'm here to help you if you've";
		mes "got any questions, or if you";
		mes "want to place your wager.";
		next;
		switch(select("Check Monster Status:Wager on Race:Monster Race?:Cancel")) {
		case 1:
			mes "Monster 1 [^CC6600Luck^000000: " + $@mon_r02_Luk1 + "] [^EE0000HP^000000: " + $@mon_r02_tire1 + "]";
			mes "Monster 2 [^CC6600Luck^000000: " + $@mon_r02_Luk2 + "] [^EE0000HP^000000: " + $@mon_r02_Tire2 + "]";
			mes "Monster 3 [^CC6600Luck^000000: " + $@mon_r02_Luk3 + "] [^EE0000HP^000000: " + $@mon_r02_Tire3 + "]";
			mes "Monster 4 [^CC6600Luck^000000: " + $@mon_r02_Luk4 + "] [^EE0000HP^000000: " + $@mon_r02_Tire4 + "]";
			mes "Monster 5 [^CC6600Luck^000000: " + $@mon_r02_Luk5 + "] [^EE0000HP^000000: " + $@mon_r02_Tire5 + "]";
			mes "Monster 6 [^CC6600Luck^000000: " + $@mon_r02_Luk6 + "] [^EE0000HP^000000: " + $@mon_r02_Tire6 + "]";
			close;
		case 2:
			mes "[Ticket Helper]";
			mes "Alright, please choose which";
			mes "two monsters that you think";
			mes "will win 1st and 2nd place.";
			mes "If both your monsters come";
			mes "in 1st and 2nd, in any order,";
			mes "you'll win the wager.";
			next;
			mes "[Ticket Helper]";
			mes "Now, please tell me";
			mes "your first choice for one";
			mes "of the monsters that";
			mes "will win this race.";
			next;
			switch(select("Monster 1:Monster 2:Monster 3:Monster 4:Monster 5:Monster 6")) {
			case 1:
				mes "[Ticket Helper]";
				mes "You've chosen";
				mes "^0000FFMonster 1^000000, a friendly";
				mes "Poring type monster.";
				mes "Are you sure you want";
				mes "to choose this monster?";
				next;
				switch(select("Yes:No")) {
				case 1:
					mes "[Ticket Helper]";
					mes "Now, please make";
					mes "your second choice";
					mes "for the monster that";
					mes "you think will place";
					mes "1st or 2nd in this race.";
					next;
					switch(select("Monster 2:Monster 3:Monster 4:Monster 5:Monster 6")) {
					case 1:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 2^000000, an adorable";
						mes "Lunatic type monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 1^000000 and ^0000FFMonster 2^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,1;
								set monster_race_2_2,2;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 2:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 3^000000, a darling";
						mes "Savage Bebe monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 1^000000 and ^0000FFMonster 3^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,1;
								set monster_race_2_2,3;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 3:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 4^000000, a gentle Baby";
						mes "Desert Wolf monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've chosen";
								mes "^0000FFMonster 1^000000 and";
								mes "^0000FFMonster 4^000000.";
								mes "I wish you good luck.";
								emotion e_kis;
								set monster_race_2_1,1;
								set monster_race_2_2,4;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
							break;
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 4:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 5^000000, a small, yet";
						mes "demonic, Deviruchi.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 1^000000 and ^0000FFMonster 5^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,1;
								set monster_race_2_2,5;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 5:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 6^000000, a naughty";
						mes "Baphomet Jr. monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 1^000000 and ^0000FFMonster 6^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,1;
								set monster_race_2_2,6;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					}
				case 2:
					mes "[Ticket Helper]";
					mes "You have canceled";
					mes "your wager. Okay,";
					mes "I understand. Perhaps";
					mes "you'd feel more comfortable";
					mes "checking the monsters first?";
					close;
				}
			case 2:
				mes "[Ticket Helper]";
				mes "You've chosen";
				mes "^0000FFMonster 2^000000, an adorable";
				mes "Lunatic type monster.";
				mes "Are you sure you want";
				mes "to choose this monster?";
				next;
				switch(select("Yes:No")) {
				case 1:
					mes "[Ticket Helper]";
					mes "Now, please make";
					mes "your second choice";
					mes "for the monster that";
					mes "you think will place";
					mes "1st or 2nd in this race.";
					next;
					switch(select("Monster 1:Monster 3:Monster 4:Monster 5:Monster 6")) {
					case 1:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 1^000000, a friendly";
						mes "Poring type monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 2^000000 and ^0000FFMonster 1^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,2;
								set monster_race_2_2,1;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 2:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 3^000000, a darling";
						mes "Savage Bebe monster.";
						mes "Are you sure you want";
						mes "to choose this monster?.";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 2^000000 and ^0000FFMonster 3^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,2;
								set monster_race_2_2,3;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 3:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 4^000000, a gentle Baby";
						mes "Desert Wolf monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 2^000000 and ^0000FFMonster 4^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,2;
								set monster_race_2_2,4;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 4:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 5^000000, a small, yet";
						mes "demonic, Deviruchi.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 2^000000 and ^0000FFMonster 5^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,2;
								set monster_race_2_2,5;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 5:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 6^000000, a naughty";
						mes "Baphomet Jr. monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 2^000000 and ^0000FFMonster 6^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,2;
								set monster_race_2_2,6;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					}
				case 2:
					mes "[Ticket Helper]";
					mes "You have canceled";
					mes "your wager. Okay,";
					mes "I understand. Perhaps";
					mes "you'd feel more comfortable";
					mes "checking the monsters first?";
					close;
				}
			case 3:
				mes "[Ticket Helper]";
				mes "You've chosen";
				mes "^0000FFMonster 3^000000, a darling";
				mes "Savage Bebe monster.";
				mes "Are you sure you want";
				mes "to choose this monster?";
				next;
				switch(select("Yes:No")) {
				case 1:
					mes "[Ticket Helper]";
					mes "Now, please make";
					mes "your second choice";
					mes "for the monster that";
					mes "you think will place";
					mes "1st or 2nd in this race.";
					next;
					switch(select("Monster 1:Monster 2:Monster 4:Monster 5:Monster 6")) {
					case 1:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 1^000000, a friendly";
						mes "Poring type monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 3^000000 and ^0000FFMonster 1^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,3;
								set monster_race_2_2,1;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 2:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 2^000000, an adorable";
						mes "Lunatic type monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 3^000000 and ^0000FFMonster 2^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,3;
								set monster_race_2_2,2;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 3:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 4^000000, a gentle Baby";
						mes "Desert Wolf monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 3^000000 and ^0000FFMonster 4^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,3;
								set monster_race_2_2,4;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 4:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 5^000000, a small, yet";
						mes "demonic, Deviruchi.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 3^000000 and ^0000FFMonster 5^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,3;
								set monster_race_2_2,5;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 5:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 6^000000, a naughty";
						mes "Baphomet Jr. monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 3^000000 and ^0000FFMonster 6^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,3;
								set monster_race_2_2,6;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					}
				case 2:
					mes "[Ticket Helper]";
					mes "You have canceled";
					mes "your wager. Okay,";
					mes "I understand. Perhaps";
					mes "you'd feel more comfortable";
					mes "checking the monsters first?";
					close;
				}
			case 4:
				mes "[Ticket Helper]";
				mes "You've chosen";
				mes "^0000FFMonster 4^000000, a gentle Baby";
				mes "Desert Wolf monster.";
				mes "Are you sure you want";
				mes "to choose this monster?";
				next;
				switch(select("Yes:No")) {
				case 1:
					mes "[Ticket Helper]";
					mes "Now, please make";
					mes "your second choice";
					mes "for the monster that";
					mes "you think will place";
					mes "1st or 2nd in this race.";
					next;
					switch(select("Monster 1:Monster 2:Monster 3:Monster 5:Monster 6")) {
					case 1:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 1^000000, a friendly";
						mes "Poring type monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 4^000000 and ^0000FFMonster 1^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,4;
								set monster_race_2_2,1;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 2:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 2^000000, an adorable";
						mes "Lunatic type monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 4^000000 and ^0000FFMonster 2^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,4;
								set monster_race_2_2,2;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 3:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 3^000000, a darling";
						mes "Savage Bebe monster.";
						mes "Are you sure you want";
						mes "to choose this monster?.";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 4^000000 and ^0000FFMonster 3^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,4;
								set monster_race_2_2,3;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
						break;
					case 4:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 5^000000, a small, yet";
						mes "demonic, Deviruchi.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 4^000000 and ^0000FFMonster 5^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,4;
								set monster_race_2_2,5;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 5:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 6^000000, a naughty";
						mes "Baphomet Jr. monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 4^000000 and ^0000FFMonster 6^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,4;
								set monster_race_2_2,6;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					}
				case 2:
					mes "[Ticket Helper]";
					mes "You have canceled";
					mes "your wager. Okay,";
					mes "I understand. Perhaps";
					mes "you'd feel more comfortable";
					mes "checking the monsters first?";
					close;
				}
			case 5:
				mes "[Ticket Helper]";
				mes "You've chosen";
				mes "^0000FFMonster 5^000000, a small, yet";
				mes "demonic, Deviruchi.";
				mes "Are you sure you want";
				mes "to choose this monster?";
				next;
				switch(select("Yes:No")) {
				case 1:
					mes "[Ticket Helper]";
					mes "Now, please make";
					mes "your second choice";
					mes "for the monster that";
					mes "you think will place";
					mes "1st or 2nd in this race.";
					next;
					switch(select("Monster 1:Monster 2:Monster 3:Monster 4:Monster 6")) {
					case 1:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 1^000000, a friendly";
						mes "Poring type monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 5^000000 and ^0000FFMonster 1^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,5;
								set monster_race_2_2,1;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 2:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 2^000000, an adorable";
						mes "Lunatic type monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 5^000000 and ^0000FFMonster 2^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,5;
								set monster_race_2_2,2;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 3:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 3^000000, a darling";
						mes "Savage Bebe monster.";
						mes "Are you sure you want";
						mes "to choose this monster?.";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 5^000000 and ^0000FFMonster 3^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,5;
								set monster_race_2_2,3;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 4:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 4^000000, a gentle Baby";
						mes "Desert Wolf monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 5^000000 and ^0000FFMonster 4^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,5;
								set monster_race_2_2,4;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 5:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 6^000000, a small, yet";
						mes "demonic, Deviruchi.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 5^000000 and ^0000FFMonster 6^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,5;
								set monster_race_2_2,6;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					}
				case 2:
					mes "[Ticket Helper]";
					mes "You have canceled";
					mes "your wager. Okay,";
					mes "I understand. Perhaps";
					mes "you'd feel more comfortable";
					mes "checking the monsters first?";
					close;
				}
			case 6:
				mes "[Ticket Helper]";
				mes "You've chosen";
				mes "^0000FFMonster 6^000000, a naughty";
				mes "Baphomet Jr. monster.";
				mes "Are you sure you want";
				mes "to choose this monster?";
				next;
				switch(select("Yes:No")) {
				case 1:
					mes "[Ticket Helper]";
					mes "Then, please pick your 2nd choice.";
					next;
					switch(select("Monster 1:Monster 2:Monster 3:Monster 4:Monster 5")) {
					case 1:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 1^000000, a friendly";
						mes "Poring type monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 6^000000 and ^0000FFMonster 1^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,6;
								set monster_race_2_2,1;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 2:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 2^000000, an adorable";
						mes "Lunatic type monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 6^000000 and ^0000FFMonster 2^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,6;
								set monster_race_2_2,2;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 3:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 3^000000, a darling";
						mes "Savage Bebe monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 6^000000 and ^0000FFMonster 3^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,6;
								set monster_race_2_2,3;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 4:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 4^000000, a gentle Baby";
						mes "Desert Wolf monster.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 6^000000 and ^0000FFMonster 4^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,6;
								set monster_race_2_2,4;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					case 5:
						mes "[Ticket Helper]";
						mes "You've chosen";
						mes "^0000FFMonster 5^000000, a small, yet";
						mes "demonic, Deviruchi.";
						mes "Are you sure you want";
						mes "to choose this monster?";
						next;
						switch(select("Yes:No")) {
						case 1:
							if ($@mon_time_2_2 == 0) {
								mes "[Ticket Helper]";
								mes "You've wagered on";
								mes "^0000FFMonster 6^000000 and ^0000FFMonster 5^000000";
								mes "to win this race. Good luck!";
								mes "I really hope that the odds";
								mes "work out in your favor~";
								emotion e_kis;
								set monster_race_2_1,6;
								set monster_race_2_2,5;
								getitem 7514,1; //Monster_Ticket
								close;
							}
							else {
								mes "[Ticket Helper]";
								mes "I'm very sorry, but a";
								mes "monster race is underway.";
								mes "Please wait, and then place";
								mes "your wager for the next race.";
								close;
							}
						case 2:
							mes "[Ticket Helper]";
							mes "You have canceled";
							mes "your wager. Okay,";
							mes "I understand. Perhaps";
							mes "you'd feel more comfortable";
							mes "checking the monsters first?";
							close;
						}
					}
				case 2:
					mes "[Ticket Helper]";
					mes "You have canceled";
					mes "your wager. Okay,";
					mes "I understand. Perhaps";
					mes "you'd feel more comfortable";
					mes "checking the monsters first?";
					close;
				}
			}
		case 3:
			mes "[Ticket Helper]";
			mes "Monster Races originated from";
			mes "simple children's games in which";
			mes "Cute Pets would race against each other. This grew into an adult";
			mes "pastime that is so popular, we've built a racing arena in Hugel.";
			next;
			mes "[Ticket Helper]";
			mes "Our Monster Race Arena hosts";
			mes "two types of monster races. First, we have the Single Monster Race,";
			mes "in which those that wagered on the 1st place monster are rewarded.";
			next;
			mes "[Eclar Ellbird]";
			mes "Then, we have the Dual Monster";
			mes "Race in which those that wagered on the 1st and 2nd place monsters";
			mes "are equally rewarded. The house";
			mes "odds and wager rewards are greater in Dual Races than Single Races.";
			next;
			mes "[Ticket Helper]";
			mes "Although a small entrance";
			mes "fee is required, we only use";
			mes "the money to give rewards to";
			mes "participants and maintain this";
			mes "arena. Therefore, we're not";
			mes "profiting from this enterprise.";
			next;
			mes "[Ticket Helper]";
			mes "Also, we prohibit others";
			mes "from making personal bets";
			mes "and wagers, using items and";
			mes "zeny, based on the outcomes";
			mes "of these races. That kind of";
			mes "gambling is illegal here...";
			next;
			mes "[Ticket Helper]";
			mes "Once you enter the Race Arena, you will receive a Racing Ticket.";
			mes "Keep in mind that winning Racing Tickets can only be exchanged for";
			mes "Prize Medals during a 5 minute window after the end of the race.";
			next;
			mes "[Ticket Helper]";
			mes "You're already here";
			mes "inside the Monster Race";
			mes "Arena, so you may as well";
			mes "try placing a wager. It's";
			mes "more fun than you'd think~";
			close;
		case 4:
			mes "[Ticket Helper]";
			mes "You have canceled";
			mes "your wager. Okay,";
			mes "I understand. Perhaps";
			mes "you'd feel more comfortable";
			mes "checking the monsters first?";
			close;
		}
	}
	else {
		if (countitem(7514) > 0) {
			mes "[Ticket Helper]";
			mes "You've wagered on";
			mes "^0000FFMonster " + monster_race_2_1 + "^000000 and ^0000FFMonster " + monster_race_2_2 + "^000000";
			mes "for this Dual Monster Race.";
			next;
			mes "[Ticket Helper]";
			mes "The start of the race will be";
			mes "announced through a broadcast.";
			mes "You can refer to your Mini-Map";
			mes "to track the monsters' race";
			mes "positions. Thank you, and";
			mes "have a good time!";
			viewpoint 1,43,35,0,0xFF0000;
			close;
		}
		else {
			mes "[Ticket Helper]";
			mes "The start of the race will be";
			mes "announced through a broadcast.";
			mes "You can refer to your Mini-Map";
			mes "to track the monsters' race";
			mes "positions. Thank you, and";
			mes "have a good time!";
			viewpoint 1,43,35,0,0xFF0000;
			close;
		}
	}

OnInit:
	disablenpc "Ticket Helper#2";
	end;
}

p_track02,39,49,3	script	Game Guide#double	845,{
	mes "[Game Guide]";
	mes "Welcome to the";
	mes "Monster Race Arena.";
	mes "How can I help you?";
	next;
	switch(select("Monster Race Info:Wager Info:Ticket Redemption Info")) {
	case 1:
		mes "[Game Guide]";
		mes "Monster Races originated from";
		mes "simple children's games in which";
		mes "Cute Pets would race against each other. This grew into an adult";
		mes "pastime that is so popular, we've built a racing arena in Hugel.";
		next;
		mes "[Game Guide]";
		mes "Our Monster Race Arena hosts";
		mes "two types of monster races. First, we have the Single Monster Race,";
		mes "in which those that wagered on the 1st place monster are rewarded.";
		next;
		mes "[Game Guide]";
		mes "Then, we have the Dual Monster";
		mes "Race in which the house odds and rewards are greater than in Single";
		mes "Monster Races: you must wager on 2 monsters, and they must place in";
		mes "1st and 2nd for you to win.";
		next;
		mes "[Game Guide]";
		mes "Although a small entrance";
		mes "fee is required, we only use";
		mes "the money to give rewards to";
		mes "participants and maintain this";
		mes "arena. Therefore, we're not";
		mes "profiting from this enterprise.";
		next;
		mes "[Game Guide]";
		mes "Also, we prohibit others";
		mes "from making personal bets";
		mes "and wagers, using items and";
		mes "zeny, based on the outcomes";
		mes "of these races. That kind of";
		mes "gambling is illegal here...";
		next;
		mes "[Game Guide]";
		mes "Once you enter the Race Arena, you will receive a Racing Ticket.";
		mes "Keep in mind that winning Racing Tickets can only be exchanged for";
		mes "Prize Medals during a 5 minute window after the end of the race.";
		next;
		break;
	case 2:
		mes "[Game Guide]";
		mes "Before placing a wager, you";
		mes "must get a free Racing Ticket";
		mes "from the Ticket Helper. There,";
		mes "I've marked the Ticket Helper";
		mes "on your Mini-Map, so you can";
		mes "find him pretty easily.";
		viewpoint 1,73,22,1,0xFF3355;
		next;
		break;
	case 3:
		mes "[Game Guide]";
		mes "If you wagered on the winner";
		mes "of a Single Monster Race, or";
		mes "on the 1st or 2nd place winners";
		mes "in a Dual Monster Race, then";
		mes "you can exchange your Racing";
		mes "Ticket for Prize Medals.";
		next;
		mes "[Game Guide]";
		mes "However, you must exchange";
		mes "your Racing Ticket with the";
		mes "Medal Distributor within the";
		mes "5 minute window after the end";
		mes "of the race. ^FF0000Your ticket becomes^FFFFFF ^FF0000 void after these 5 minutes.^000000";
		next;
		mes "[Game Guide]";
		mes "When this 5 minute window";
		mes "elapses, you will be teleported outside, and we will immediately";
		mes "begin preparing for the next race. Make sure that you remember this";
		mes "information when you wager.";
		next;
		mes "[Game Guide]";
		mes "If you haven't received";
		mes "your free Racing Ticket,";
		mes "then please visit the Ticket";
		mes "Helper. There, I've just marked";
		mes "his location on your Mini-Map.";
		viewpoint 1,67,45,2,0xCE6300;
		next;
		break;
	}
	mes "[Game Guide]";
	mes "Thank you, and";
	mes "I hope you enjoy";
	mes "your time here in the";
	mes "Monster Racing Arena.";
	close;
}

p_track02,67,45,5	script	Medal Distributor#medal	845,{
	if (checkweight(909,20) == 0) {
		mes "[Medal Distributor]";
		mes "I'm sorry, but I can't";
		mes "reward you with any medals";
		mes "until you make more space";
		mes "available in your Inventory.";
		close;
	}
	if (countitem(7514) > 0) {
		mes "[Medal Distributor]";
		mes "Hello there~";
		mes "If you've wagered on the";
		mes "winning monster in a recent";
		mes "race, then you can exchange";
		mes "your game ticket here for";
		mes "some Prize Medals.";
		next;
		mes "[Medal Distributor]";
		mes "Please remember that you can";
		mes "only exchange winning Game";
		mes "Tickets for Prize Medals right";
		mes "after the race finishes. Prize";
		mes "Medals may be given to Wayne";
		mes "in Hugel in exchange for items.";
		next;
		if (($@mon_race_2_1 == 1) && ($@mon_race_2_2 == 2)) || (($@mon_race_2_1 == 2) && ($@mon_race_2_2 == 1)) {
			if ((monster_race_2_1 == 1) && (monster_race_2_2 == 2)) || ((monster_race_2_1 == 2) && (monster_race_2_2 == 1)) {
				mes "[Medal Distributor]";
				mes "Congratulations! It's really";
				mes "difficult to guess the winners";
				mes "of a Dual Monster Race, so you";
				mes "must be really lucky! Would you";
				mes "like to exchange your winning";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Okay, everything looks good,";
					mes "so here's your Prize Medals~";
					mes "If you want to trade these";
					mes "medals for items, please";
					mes "visit Wayne in Hugel. We hope";
					mes "you enjoyed the Monster Race~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_2_1,7;
					set monster_race_2_2,7;
					getitem 7515,15; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
			}
			else if ((monster_race_2_1 == 0) && (monster_race_2_2 == 0)) {
				mes "[Medal Distributor]";
				mes "Well, better luck next time...";
				mes "Although you can't always";
				mes "be lucky, it's always fun to";
				mes "wager on the monster races!";
				close;
			}
			else if ((monster_race_2_1 == 7) && (monster_race_2_2 == 7)) {
				mes "[Medal Distributor]";
				mes "Thanks for visiting the";
				mes "Monster Race Arena, and";
				mes "I hope you enjoy your time";
				mes "here. I'll see you next time~";
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if (($@mon_race_2_1 == 1) && ($@mon_race_2_2 == 3)) || (($@mon_race_2_1 == 3) && ($@mon_race_2_2 == 1)) {
			if ((monster_race_2_1 == 1) && (monster_race_2_2 == 3)) || ((monster_race_2_1 == 3) && (monster_race_2_2 == 1)) {
				mes "[Medal Distributor]";
				mes "Congratulations! It's really";
				mes "difficult to guess the winners";
				mes "of a Dual Monster Race, so you";
				mes "must be really lucky! Would you";
				mes "like to exchange your winning";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Okay, everything looks good,";
					mes "so here's your Prize Medals~";
					mes "If you want to trade these";
					mes "medals for items, please";
					mes "visit Wayne in Hugel. We hope";
					mes "you enjoyed the Monster Race~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_2_1,7;
					set monster_race_2_2,7;
					getitem 7515,15; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
			}
			else if ((monster_race_2_1 == 0) && (monster_race_2_2 == 0)) {
				mes "[Medal Distributor]";
				mes "Well, better luck next time...";
				mes "Although you can't always";
				mes "be lucky, it's always fun to";
				mes "wager on the monster races!";
				close;
			}
			else if ((monster_race_2_1 == 7) && (monster_race_2_2 == 7)) {
				mes "[Medal Distributor]";
				mes "Thanks for visiting the";
				mes "Monster Race Arena, and";
				mes "I hope you enjoy your time";
				mes "here. I'll see you next time~";
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if (($@mon_race_2_1 == 1) && ($@mon_race_2_2 == 4)) || (($@mon_race_2_1 == 4) && ($@mon_race_2_2 == 1)) {
			if ((monster_race_2_1 == 1) && (monster_race_2_2 == 4)) || ((monster_race_2_1 == 4) && (monster_race_2_2 == 1)) {
				mes "[Medal Distributor]";
				mes "Congratulations! It's really";
				mes "difficult to guess the winners";
				mes "of a Dual Monster Race, so you";
				mes "must be really lucky! Would you";
				mes "like to exchange your winning";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Okay, everything looks good,";
					mes "so here's your Prize Medals~";
					mes "If you want to trade these";
					mes "medals for items, please";
					mes "visit Wayne in Hugel. We hope";
					mes "you enjoyed the Monster Race~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_2_1,7;
					set monster_race_2_2,7;
					getitem 7515,15; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
			}
			else if ((monster_race_2_1 == 0) && (monster_race_2_2 == 0)) {
				mes "[Medal Distributor]";
				mes "Well, better luck next time...";
				mes "Although you can't always";
				mes "be lucky, it's always fun to";
				mes "wager on the monster races!";
				close;
			}
			else if ((monster_race_2_1 == 7) && (monster_race_2_2 == 7)) {
				mes "[Medal Distributor]";
				mes "Thanks for visiting the";
				mes "Monster Race Arena, and";
				mes "I hope you enjoy your time";
				mes "here. I'll see you next time~";
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if (($@mon_race_2_1 == 1) && ($@mon_race_2_2 == 5)) || (($@mon_race_2_1 == 5) && ($@mon_race_2_2 == 1)) {
			if ((monster_race_2_1 == 1) && (monster_race_2_2 == 5)) || ((monster_race_2_1 == 5) && (monster_race_2_2 == 1)) {
				mes "[Medal Distributor]";
				mes "Congratulations! It's really";
				mes "difficult to guess the winners";
				mes "of a Dual Monster Race, so you";
				mes "must be really lucky! Would you";
				mes "like to exchange your winning";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Okay, everything looks good,";
					mes "so here's your Prize Medals~";
					mes "If you want to trade these";
					mes "medals for items, please";
					mes "visit Wayne in Hugel. We hope";
					mes "you enjoyed the Monster Race~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_2_1,7;
					set monster_race_2_2,7;
					getitem 7515,15; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
			}
			else if ((monster_race_2_1 == 0) && (monster_race_2_2 == 0)) {
				mes "[Medal Distributor]";
				mes "Well, better luck next time...";
				mes "Although you can't always";
				mes "be lucky, it's always fun to";
				mes "wager on the monster races!";
				close;
			}
			else if ((monster_race_2_1 == 7) && (monster_race_2_2 == 7)) {
				mes "[Medal Distributor]";
				mes "Thanks for visiting the";
				mes "Monster Race Arena, and";
				mes "I hope you enjoy your time";
				mes "here. I'll see you next time~";
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if (($@mon_race_2_1 == 1) && ($@mon_race_2_2 == 6)) || (($@mon_race_2_1 == 6) && ($@mon_race_2_2 == 1)) {
			if ((monster_race_2_1 == 1) && (monster_race_2_2 == 6)) || ((monster_race_2_1 == 6) && (monster_race_2_2 == 1)) {
				mes "[Medal Distributor]";
				mes "Congratulations! It's really";
				mes "difficult to guess the winners";
				mes "of a Dual Monster Race, so you";
				mes "must be really lucky! Would you";
				mes "like to exchange your winning";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Okay, everything looks good,";
					mes "so here's your Prize Medals~";
					mes "If you want to trade these";
					mes "medals for items, please";
					mes "visit Wayne in Hugel. We hope";
					mes "you enjoyed the Monster Race~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_2_1,7;
					set monster_race_2_2,7;
					getitem 7515,15; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
			}
			else if ((monster_race_2_1 == 0) && (monster_race_2_2 == 0)) {
				mes "[Medal Distributor]";
				mes "Well, better luck next time...";
				mes "Although you can't always";
				mes "be lucky, it's always fun to";
				mes "wager on the monster races!";
				close;
			}
			else if ((monster_race_2_1 == 7) && (monster_race_2_2 == 7)) {
				mes "[Medal Distributor]";
				mes "Thanks for visiting the";
				mes "Monster Race Arena, and";
				mes "I hope you enjoy your time";
				mes "here. I'll see you next time~";
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if (($@mon_race_2_1 == 2) && ($@mon_race_2_2 == 3)) || (($@mon_race_2_1 == 3) && ($@mon_race_2_2 == 2)) {
			if ((monster_race_2_1 == 2) && (monster_race_2_2 == 3)) || ((monster_race_2_1 == 3) && (monster_race_2_2 == 2)) {
				mes "[Medal Distributor]";
				mes "Congratulations! It's really";
				mes "difficult to guess the winners";
				mes "of a Dual Monster Race, so you";
				mes "must be really lucky! Would you";
				mes "like to exchange your winning";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Okay, everything looks good,";
					mes "so here's your Prize Medals~";
					mes "If you want to trade these";
					mes "medals for items, please";
					mes "visit Wayne in Hugel. We hope";
					mes "you enjoyed the Monster Race~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_2_1,7;
					set monster_race_2_2,7;
					getitem 7515,15; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
			}
			else if ((monster_race_2_1 == 0) && (monster_race_2_2 == 0)) {
				mes "[Medal Distributor]";
				mes "Well, better luck next time...";
				mes "Although you can't always";
				mes "be lucky, it's always fun to";
				mes "wager on the monster races!";
				close;
			}
			else if ((monster_race_2_1 == 7) && (monster_race_2_2 == 7)) {
				mes "[Medal Distributor]";
				mes "Thanks for visiting the";
				mes "Monster Race Arena, and";
				mes "I hope you enjoy your time";
				mes "here. I'll see you next time~";
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if (($@mon_race_2_1 == 2) && ($@mon_race_2_2 == 4)) || (($@mon_race_2_1 == 4) && ($@mon_race_2_2 == 2)) {
			if ((monster_race_2_1 == 2) && (monster_race_2_2 == 4)) || ((monster_race_2_1 == 4) && (monster_race_2_2 == 2)) {
				mes "[Medal Distributor]";
				mes "Congratulations! It's really";
				mes "difficult to guess the winners";
				mes "of a Dual Monster Race, so you";
				mes "must be really lucky! Would you";
				mes "like to exchange your winning";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Okay, everything looks good,";
					mes "so here's your Prize Medals~";
					mes "If you want to trade these";
					mes "medals for items, please";
					mes "visit Wayne in Hugel. We hope";
					mes "you enjoyed the Monster Race~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_2_1,7;
					set monster_race_2_2,7;
					getitem 7515,15; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
			}
			else if ((monster_race_2_1 == 0) && (monster_race_2_2 == 0)) {
				mes "[Medal Distributor]";
				mes "Well, better luck next time...";
				mes "Although you can't always";
				mes "be lucky, it's always fun to";
				mes "wager on the monster races!";
				close;
			}
			else if ((monster_race_2_1 == 7) && (monster_race_2_2 == 7)) {
				mes "[Medal Distributor]";
				mes "Thanks for visiting the";
				mes "Monster Race Arena, and";
				mes "I hope you enjoy your time";
				mes "here. I'll see you next time~";
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if (($@mon_race_2_1 == 2) && ($@mon_race_2_2 == 5)) || (($@mon_race_2_1 == 5) && ($@mon_race_2_2 == 2)) {
			if ((monster_race_2_1 == 2) && (monster_race_2_2 == 5)) || ((monster_race_2_1 == 5) && (monster_race_2_2 == 2)) {
				mes "[Medal Distributor]";
				mes "Congratulations! It's really";
				mes "difficult to guess the winners";
				mes "of a Dual Monster Race, so you";
				mes "must be really lucky! Would you";
				mes "like to exchange your winning";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Okay, everything looks good,";
					mes "so here's your Prize Medals~";
					mes "If you want to trade these";
					mes "medals for items, please";
					mes "visit Wayne in Hugel. We hope";
					mes "you enjoyed the Monster Race~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_2_1,7;
					set monster_race_2_2,7;
					getitem 7515,15; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
			}
			else if ((monster_race_2_1 == 0) && (monster_race_2_2 == 0)) {
				mes "[Medal Distributor]";
				mes "Well, better luck next time...";
				mes "Although you can't always";
				mes "be lucky, it's always fun to";
				mes "wager on the monster races!";
				close;
			}
			else if ((monster_race_2_1 == 7) && (monster_race_2_2 == 7)) {
				mes "[Medal Distributor]";
				mes "Thanks for visiting the";
				mes "Monster Race Arena, and";
				mes "I hope you enjoy your time";
				mes "here. I'll see you next time~";
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if (($@mon_race_2_1 == 2) && ($@mon_race_2_2 == 6)) || (($@mon_race_2_1 == 6) && ($@mon_race_2_2 == 2)) {
			if ((monster_race_2_1 == 2) && (monster_race_2_2 == 6)) || ((monster_race_2_1 == 6) && (monster_race_2_2 == 2)) {
				mes "[Medal Distributor]";
				mes "Congratulations! It's really";
				mes "difficult to guess the winners";
				mes "of a Dual Monster Race, so you";
				mes "must be really lucky! Would you";
				mes "like to exchange your winning";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Okay, everything looks good,";
					mes "so here's your Prize Medals~";
					mes "If you want to trade these";
					mes "medals for items, please";
					mes "visit Wayne in Hugel. We hope";
					mes "you enjoyed the Monster Race~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_2_1,7;
					set monster_race_2_2,7;
					getitem 7515,15; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
			}
			else if ((monster_race_2_1 == 0) && (monster_race_2_2 == 0)) {
				mes "[Medal Distributor]";
				mes "Well, better luck next time...";
				mes "Although you can't always";
				mes "be lucky, it's always fun to";
				mes "wager on the monster races!";
				close;
			}
			else if ((monster_race_2_1 == 7) && (monster_race_2_2 == 7)) {
				mes "[Medal Distributor]";
				mes "Thanks for visiting the";
				mes "Monster Race Arena, and";
				mes "I hope you enjoy your time";
				mes "here. I'll see you next time~";
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if (($@mon_race_2_1 == 3) && ($@mon_race_2_2 == 4)) || (($@mon_race_2_1 == 4) && ($@mon_race_2_2 == 3)) {
			if ((monster_race_2_1 == 3) && (monster_race_2_2 == 4)) || ((monster_race_2_1 == 4) && (monster_race_2_2 == 3)) {
				mes "[Medal Distributor]";
				mes "Congratulations! It's really";
				mes "difficult to guess the winners";
				mes "of a Dual Monster Race, so you";
				mes "must be really lucky! Would you";
				mes "like to exchange your winning";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Okay, everything looks good,";
					mes "so here's your Prize Medals~";
					mes "If you want to trade these";
					mes "medals for items, please";
					mes "visit Wayne in Hugel. We hope";
					mes "you enjoyed the Monster Race~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_2_1,7;
					set monster_race_2_2,7;
					getitem 7515,15; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
			}
			else if ((monster_race_2_1 == 0) && (monster_race_2_2 == 0)) {
				mes "[Medal Distributor]";
				mes "Well, better luck next time...";
				mes "Although you can't always";
				mes "be lucky, it's always fun to";
				mes "wager on the monster races!";
				close;
			}
			else if ((monster_race_2_1 == 7) && (monster_race_2_2 == 7)) {
				mes "[Medal Distributor]";
				mes "Thanks for visiting the";
				mes "Monster Race Arena, and";
				mes "I hope you enjoy your time";
				mes "here. I'll see you next time~";
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if (($@mon_race_2_1 == 3) && ($@mon_race_2_2 == 5)) || (($@mon_race_2_1 == 5) && ($@mon_race_2_2 == 3)) {
			if ((monster_race_2_1 == 3) && (monster_race_2_2 == 5)) || ((monster_race_2_1 == 5) && (monster_race_2_2 == 3)) {
				mes "[Medal Distributor]";
				mes "Congratulations! It's really";
				mes "difficult to guess the winners";
				mes "of a Dual Monster Race, so you";
				mes "must be really lucky! Would you";
				mes "like to exchange your winning";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Okay, everything looks good,";
					mes "so here's your Prize Medals~";
					mes "If you want to trade these";
					mes "medals for items, please";
					mes "visit Wayne in Hugel. We hope";
					mes "you enjoyed the Monster Race~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_2_1,7;
					set monster_race_2_2,7;
					getitem 7515,15; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
			}
			else if ((monster_race_2_1 == 0) && (monster_race_2_2 == 0)) {
				mes "[Medal Distributor]";
				mes "Well, better luck next time...";
				mes "Although you can't always";
				mes "be lucky, it's always fun to";
				mes "wager on the monster races!";
				close;
			}
			else if ((monster_race_2_1 == 7) && (monster_race_2_2 == 7)) {
				mes "[Medal Distributor]";
				mes "Thanks for visiting the";
				mes "Monster Race Arena, and";
				mes "I hope you enjoy your time";
				mes "here. I'll see you next time~";
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if (($@mon_race_2_1 == 3) && ($@mon_race_2_2 == 6)) || (($@mon_race_2_1 == 6) && ($@mon_race_2_2 == 3)) {
			if ((monster_race_2_1 == 3) && (monster_race_2_2 == 6)) || ((monster_race_2_1 == 6) && (monster_race_2_2 == 3)) {
				mes "[Medal Distributor]";
				mes "Congratulations! It's really";
				mes "difficult to guess the winners";
				mes "of a Dual Monster Race, so you";
				mes "must be really lucky! Would you";
				mes "like to exchange your winning";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Okay, everything looks good,";
					mes "so here's your Prize Medals~";
					mes "If you want to trade these";
					mes "medals for items, please";
					mes "visit Wayne in Hugel. We hope";
					mes "you enjoyed the Monster Race~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_2_1,7;
					set monster_race_2_2,7;
					getitem 7515,15; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
			}
			else if ((monster_race_2_1 == 0) && (monster_race_2_2 == 0)) {
				mes "[Medal Distributor]";
				mes "Well, better luck next time...";
				mes "Although you can't always";
				mes "be lucky, it's always fun to";
				mes "wager on the monster races!";
				close;
			}
			else if ((monster_race_2_1 == 7) && (monster_race_2_2 == 7)) {
				mes "[Medal Distributor]";
				mes "Thanks for visiting the";
				mes "Monster Race Arena, and";
				mes "I hope you enjoy your time";
				mes "here. I'll see you next time~";
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if (($@mon_race_2_1 == 4) && ($@mon_race_2_2 == 5)) || (($@mon_race_2_1 == 5) && ($@mon_race_2_2 == 4)) {
			if ((monster_race_2_1 == 4) && (monster_race_2_2 == 5)) || ((monster_race_2_1 == 5) && (monster_race_2_2 == 4)) {
				mes "[Medal Distributor]";
				mes "Congratulations! It's really";
				mes "difficult to guess the winners";
				mes "of a Dual Monster Race, so you";
				mes "must be really lucky! Would you";
				mes "like to exchange your winning";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Okay, everything looks good,";
					mes "so here's your Prize Medals~";
					mes "If you want to trade these";
					mes "medals for items, please";
					mes "visit Wayne in Hugel. We hope";
					mes "you enjoyed the Monster Race~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_2_1,7;
					set monster_race_2_2,7;
					getitem 7515,15; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
			}
			else if ((monster_race_2_1 == 0) && (monster_race_2_2 == 0)) {
				mes "[Medal Distributor]";
				mes "Well, better luck next time...";
				mes "Although you can't always";
				mes "be lucky, it's always fun to";
				mes "wager on the monster races!";
				close;
			}
			else if ((monster_race_2_1 == 7) && (monster_race_2_2 == 7)) {
				mes "[Medal Distributor]";
				mes "Thanks for visiting the";
				mes "Monster Race Arena, and";
				mes "I hope you enjoy your time";
				mes "here. I'll see you next time~";
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if (($@mon_race_2_1 == 4) && ($@mon_race_2_2 == 6)) || (($@mon_race_2_1 == 6) && ($@mon_race_2_2 == 4)) {
			if ((monster_race_2_1 == 4) && (monster_race_2_2 == 6)) || ((monster_race_2_1 == 6) && (monster_race_2_2 == 4)) {
				mes "[Medal Distributor]";
				mes "Congratulations! It's really";
				mes "difficult to guess the winners";
				mes "of a Dual Monster Race, so you";
				mes "must be really lucky! Would you";
				mes "like to exchange your winning";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Okay, everything looks good,";
					mes "so here's your Prize Medals~";
					mes "If you want to trade these";
					mes "medals for items, please";
					mes "visit Wayne in Hugel. We hope";
					mes "you enjoyed the Monster Race~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_2_1,7;
					set monster_race_2_2,7;
					getitem 7515,15; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
			}
			else if ((monster_race_2_1 == 0) && (monster_race_2_2 == 0)) {
				mes "[Medal Distributor]";
				mes "Well, better luck next time...";
				mes "Although you can't always";
				mes "be lucky, it's always fun to";
				mes "wager on the monster races!";
				close;
			}
			else if ((monster_race_2_1 == 7) && (monster_race_2_2 == 7)) {
				mes "[Medal Distributor]";
				mes "Thanks for visiting the";
				mes "Monster Race Arena, and";
				mes "I hope you enjoy your time";
				mes "here. I'll see you next time~";
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else if (($@mon_race_2_1 == 5) && ($@mon_race_2_2 == 6)) || (($@mon_race_2_1 == 6) && ($@mon_race_2_2 == 5)) {
			if ((monster_race_2_1 == 5) && (monster_race_2_2 == 6)) || ((monster_race_2_1 == 6) && (monster_race_2_2 == 5)) {
				mes "[Medal Distributor]";
				mes "Congratulations! It's really";
				mes "difficult to guess the winners";
				mes "of a Dual Monster Race, so you";
				mes "must be really lucky! Would you";
				mes "like to exchange your winning";
				mes "Racing Ticket for Prize Medals?";
				next;
				switch(select("Yes, please.:No, thanks.")) {
				case 1:
					mes "[Medal Distributor]";
					mes "Okay, everything looks good,";
					mes "so here's your Prize Medals~";
					mes "If you want to trade these";
					mes "medals for items, please";
					mes "visit Wayne in Hugel. We hope";
					mes "you enjoyed the Monster Race~";
					delitem 7514,1; //Monster_Ticket
					set monster_race_2_1,7;
					set monster_race_2_2,7;
					getitem 7515,15; //Marvelous_Medal
					close;
				case 2:
					mes "[Medal Distributor]";
					mes "Um, are you sure? You ";
					mes "can only exchange a winning";
					mes "Racing Ticket for Prize Medals";
					mes "for a short time after the race. If you made a mistake, you";
					mes "should ask me again quickly.";
					close;
				}
			}
			else if ((monster_race_2_1 == 0) && (monster_race_2_2 == 0)) {
				mes "[Medal Distributor]";
				mes "Well, better luck next time...";
				mes "Although you can't always";
				mes "be lucky, it's always fun to";
				mes "wager on the monster races!";
				close;
			}
			else if ((monster_race_2_1 == 7) && (monster_race_2_2 == 7)) {
				mes "[Medal Distributor]";
				mes "Thanks for visiting the";
				mes "Monster Race Arena, and";
				mes "I hope you enjoy your time";
				mes "here. I'll see you next time~";
				close;
			}
			else {
				mes "[Medal Distributor]";
				mes "You may not have wagered";
				mes "on the winning monster in";
				mes "the last race, but I hope that";
				mes "you get lucky next time~";
				close;
			}
		}
		else {
			mes "[Medal Distributor]";
			mes "Hello there~";
			mes "If you've wagered on the";
			mes "winning monster in a recent";
			mes "race, then you can exchange";
			mes "your game ticket here for";
			mes "some Prize Medals.";
			next;
			mes "[Medal Distributor]";
			mes "Please remember that you can";
			mes "only exchange winning Game";
			mes "Tickets for Prize Medals right";
			mes "after the race finishes. Prize";
			mes "Medals may be given to Wayne";
			mes "in Hugel in exchange for items.";
			close;
		}
	}
	else {
		mes "[Medal Distributor]";
		mes "Hello there~";
		mes "If you've wagered on the";
		mes "winning monster in a recent";
		mes "race, then you can exchange";
		mes "your game ticket here for";
		mes "some Prize Medals.";
		next;
		mes "[Medal Distributor]";
		mes "Please remember that you can";
		mes "only exchange winning Game";
		mes "Tickets for Prize Medals right";
		mes "after the race finishes. Prize";
		mes "Medals may be given to Wayne";
		mes "in Hugel in exchange for items.";
		close;
	}

OnInit:
	disablenpc "Medal Distributor#medal";
	end;
}

p_track02,76,38,1	script	Exit Guide#double	798,{
	mes "[Exit Guide]";
	mes "If you have a winning Racing";
	mes "Ticket, please make sure that";
	mes "you redeem it for Prize Medals";
	mes "now. All Racing Tickets become";
	mes "void once the next race begins.";
	next;
	mes "[Exit Guide]";
	mes "If you wish to leave";
	mes "the arena, then I can guide";
	mes "you outside. Would you like";
	mes "to leave the arena right now?";
	next;
	switch(select("Yes:No")) {
	case 1:
		if (countitem(7514) == 0) {
			mes "[Exit Guide]";
			mes "Thank you for";
			mes "your patronage, and";
			mes "I hope that you come";
			mes "visit us again soon~";
		}
		else {
			mes "[Exit Guide]";
			mes "In accordance with our";
			mes "policies, I must take your";
			mes "Racing Ticket before you leave.";
			mes "Thank you for your patronage,";
			mes "and I hope you enjoy your time";
			mes "here in the Monster Race Arena.";
			delitem 7514,1; //Monster_Ticket
		}
		set monster_race_2_1,0;
		set monster_race_2_2,0;
		close2;
		warp "hugel",63,73;
		end;
	case 2:
		mes "[Exit Guide]";
		mes "Alright, then.";
		mes "Just let me know";
		mes "whenever you're";
		mes "ready to leave.";
		close;
	}
}

p_track02,30,38,0	script	#poring1	139,0,0,{
OnInit:
	disablenpc "#poring1";
	end;

OnEnable:
	enablenpc "#poring1";
	monster "p_track02",58,38,"Monster 1",1725,1,"#poring1::OnMyMobDead";
	end;

OnDisable:
	killmonster "p_track02","#poring1::OnMyMobDead";
	disablenpc "#poring1";
	end;

OnTouchNPC:
	if ($@mon_race_2_1 == 0) {
		emotion e_lv;
		specialeffect EF_MVP;
		mapannounce "p_track02","Monster 1 has reached the Finish Line!",bc_map,"0x66FFCC";
		set $@mon_race_2_1,1;
		donpcevent "#poring1::OnDisable";
	}
	else {
		emotion e_lv;
		specialeffect EF_MVP;
		mapannounce "p_track02","The race is over! Monster 1 has reached the Finish Line!",bc_map,"0x66FFCC";
		set $@mon_race_2_2,1;
		donpcevent "#poring1::OnDisable";
		donpcevent "#lunatic1::OnDisable";
		donpcevent "#savagebebe1::OnDisable";
		donpcevent "#desertwolf1::OnDisable";
		donpcevent "#deviruchi1::OnDisable";
		donpcevent "#baphomet1::OnDisable";
		donpcevent "TrapGlobal#race02::OnDisable";
		enablenpc "Medal Distributor#medal";
		donpcevent "#race_timer2-3::OnEnable";
	}
	end;

OnMyMobDead:
	end;
}

p_track02,30,36,0	script	#lunatic1	139,0,0,{
OnInit:
	disablenpc "#lunatic1";
	end;

OnEnable:
	enablenpc "#lunatic1";
	monster "p_track02",58,36,"Monster No. 2",1726,1,"#lunatic1::OnMyMobDead";
	end;

OnDisable:
	killmonster "p_track02","#lunatic1::OnMyMobDead";
	disablenpc "#lunatic1";
	end;

OnTouchNPC:
	if ($@mon_race_2_1 == 0) {
		emotion e_ho;
		specialeffect EF_MVP;
		mapannounce "p_track02","Monster 2 has reached the Finish Line!",bc_map,"0x66FFCC";
		set $@mon_race_2_1,2;
		donpcevent "#lunatic1::OnDisable";
	}
	else {
		emotion e_ho;
		specialeffect EF_MVP;
		mapannounce "p_track02","The race is over! Monster 2 has reached the Finish Line!",bc_map,"0x66FFCC";
		set $@mon_race_2_2,2;
		donpcevent "#lunatic1::OnDisable";
		donpcevent "#poring1::OnDisable";
		donpcevent "#savagebebe1::OnDisable";
		donpcevent "#desertwolf1::OnDisable";
		donpcevent "#deviruchi1::OnDisable";
		donpcevent "#baphomet1::OnDisable";
		donpcevent "TrapGlobal#race02::OnDisable";
		enablenpc "Medal Distributor#medal";
		donpcevent "#race_timer2-3::OnEnable";
	}
	end;

OnMyMobDead:
	end;
}

p_track02,30,34,0	script	#savagebebe1	139,0,0,{
OnInit:
	disablenpc "#savagebebe1";
	end;

OnEnable:
	enablenpc "#savagebebe1";
	monster "p_track02",58,34,"Monster No. 3",1727,1,"#savagebebe1::OnMyMobDead";
	end;

OnDisable:
	killmonster "p_track02","#savagebebe1::OnMyMobDead";
	disablenpc "#savagebebe1";
	end;

OnTouchNPC:
	if ($@mon_race_2_1 == 0) {
		emotion e_heh;
		specialeffect EF_MVP;
		mapannounce "p_track02","Monster 3 has reached the Finish Line!",bc_map,"0x66FFCC";
		set $@mon_race_2_1,3;
		donpcevent "#savagebebe1::OnDisable";
	}
	else {
		emotion e_heh;
		specialeffect EF_MVP;
		mapannounce "p_track02","The race is over! Monster 3 has reached the Finish Line!",bc_map,"0x66FFCC";
		set $@mon_race_2_2,3;
		donpcevent "#savagebebe1::OnDisable";
		donpcevent "#poring1::OnDisable";
		donpcevent "#lunatic1::OnDisable";
		donpcevent "#desertwolf1::OnDisable";
		donpcevent "#deviruchi1::OnDisable";
		donpcevent "#baphomet1::OnDisable";
		donpcevent "TrapGlobal#race02::OnDisable";
		enablenpc "Medal Distributor#medal";
		donpcevent "#race_timer2-3::OnEnable";
	}
	end;

OnMyMobDead:
	end;
}

p_track02,30,32,0	script	#desertwolf1	139,0,0,{
OnInit:
	disablenpc "#desertwolf1";
	end;

OnEnable:
	enablenpc "#desertwolf1";
	monster "p_track02",58,32,"Monster No. 4",1728,1,"#desertwolf1::OnMyMobDead";
	end;

OnDisable:
	killmonster "p_track02","#desertwolf1::OnMyMobDead";
	disablenpc "#desertwolf1";
	end;

OnTouchNPC:
	if ($@mon_race_2_1 == 0) {
		emotion e_kis;
		specialeffect EF_MVP;
		mapannounce "p_track02","Monster 4 has reached the Finish Line!",bc_map,"0x66FFCC";
		set $@mon_race_2_1,4;
		donpcevent "#desertwolf1::OnDisable";
	}
	else {
		emotion e_kis;
		specialeffect EF_MVP;
		mapannounce "p_track02","The race is over! Monster 4 has reached the Finish Line!",bc_map,"0x66FFCC";
		set $@mon_race_2_2,4;
		donpcevent "#desertwolf1::OnDisable";
		donpcevent "#poring1::OnDisable";
		donpcevent "#lunatic1::OnDisable";
		donpcevent "#savagebebe1::OnDisable";
		donpcevent "#deviruchi1::OnDisable";
		donpcevent "#baphomet1::OnDisable";
		donpcevent "TrapGlobal#race02::OnDisable";
		enablenpc "Medal Distributor#medal";
		donpcevent "#race_timer2-3::OnEnable";
	}
	end;

OnMyMobDead:
	end;
}

p_track02,30,30,0	script	#deviruchi1	139,0,0,{
OnInit:
	disablenpc "#deviruchi1";
	end;

OnEnable:
	enablenpc "#deviruchi1";
	monster "p_track02",58,30,"Monster No. 5",1730,1,"#deviruchi1::OnMyMobDead";
	end;

OnDisable:
	killmonster "p_track02","#deviruchi1::OnMyMobDead";
	disablenpc "#deviruchi1";
	end;

OnTouchNPC:
	if ($@mon_race_2_1 == 0) {
		emotion e_gg;
		specialeffect EF_MVP;
		mapannounce "p_track02","Monster 5 has reached the Finish Line!",bc_map,"0x66FFCC";
		set $@mon_race_2_1,5;
		donpcevent "#deviruchi1::OnDisable";
	}
	else {
		emotion e_gg;
		specialeffect EF_MVP;
		mapannounce "p_track02","The race is over! Monster 5 has reached the Finish Line!",bc_map,"0x66FFCC";
		set $@mon_race_2_2,5;
		donpcevent "#deviruchi1::OnDisable";
		donpcevent "#poring1::OnDisable";
		donpcevent "#lunatic1::OnDisable";
		donpcevent "#savagebebe1::OnDisable";
		donpcevent "#desertwolf1::OnDisable";
		donpcevent "#baphomet1::OnDisable";
		donpcevent "TrapGlobal#race02::OnDisable";
		enablenpc "Medal Distributor#medal";
		donpcevent "#race_timer2-3::OnEnable";
	}
	end;

OnMyMobDead:
	end;
}

p_track02,30,28,0	script	#baphomet1	139,0,0,{
OnInit:
	disablenpc "#baphomet1";
	end;

OnEnable:
	enablenpc "#baphomet1";
	monster "p_track02",58,28,"Monster No. 6",1729,1,"#baphomet1::OnMyMobDead";
	end;

OnDisable:
	killmonster "p_track02","#baphomet1::OnMyMobDead";
	disablenpc "#baphomet1";
	end;

OnTouchNPC:
	if ($@mon_race_2_1 == 0) {
		emotion e_pif;
		specialeffect EF_MVP;
		mapannounce "p_track02","Monster 6 has reached the Finish Line!",bc_map,"0x66FFCC";
		set $@mon_race_2_1,6;
		donpcevent "#baphomet1::OnDisable";
	}
	else {
		emotion e_pif;
		specialeffect EF_MVP;
		mapannounce "p_track02","The race is over! Monster 6 has reached the Finish Line!",bc_map,"0x66FFCC";
		set $@mon_race_2_2,6;
		donpcevent "#baphomet1::OnDisable";
		donpcevent "#poring1::OnDisable";
		donpcevent "#lunatic1::OnDisable";
		donpcevent "#savagebebe1::OnDisable";
		donpcevent "#desertwolf1::OnDisable";
		donpcevent "#deviruchi1::OnDisable";
		donpcevent "TrapGlobal#race02::OnDisable";
		enablenpc  "Medal Distributor#medal";
		donpcevent "#race_timer2-3::OnEnable";
	}
	end;

OnMyMobDead:
	end;
}

p_track02,19,48,0	script	TrapGlobal#race02	-1,{
OnInit:
	set $@mon_r02_luk1,0;
	set $@mon_r02_luk2,0;
	set $@mon_r02_luk3,0;
	set $@mon_r02_luk4,0;
	set $@mon_r02_luk5,0;
	set $@mon_r02_luk6,0;
	set $@mon_r02_tire1,0;
	set $@mon_r02_tire2,0;
	set $@mon_r02_tire3,0;
	set $@mon_r02_tire4,0;
	set $@mon_r02_tire5,0;
	set $@mon_r02_tire6,0;
	end;

OnEnable:
	enablenpc "TrapGlobal#race02";
	enablenpc "starting#race02_1";
	enablenpc "starting#race02_2";
	enablenpc "starting#race02_3";
	enablenpc "starting#race02_4";
	enablenpc "starting#race02_5";
	enablenpc "starting#race02_6";
	//-------------------------------------------------------------
	// Monster No. 1, Poring
	//-------------------------------------------------------------
	set .@firstline,rand(1,70);
	if ((.@firstline > 0) && (.@firstline < 11)) {
		set $@mon_r02_luk1,.@firstline;
		enablenpc "Luk#race02_1_5";
		enablenpc "Luk#race02_1_6";
		set .@firsttired,rand(50,60);
		if (.@firsttired > 49) && (.@firsttired < 61) {
			set $@mon_r02_tire1,.@firsttired;
			enablenpc "Tire#race02_1_1";
		}
	}
	else if ((.@firstline > 10) && (.@firstline < 31)) {
		set $@mon_r02_luk1,.@firstline;
		enablenpc "Luk#race02_1_5";
		set .@firsttired,rand(40,60);
		if (.@firsttired > 49) && (.@firsttired < 61) {
			set $@mon_r02_tire1,.@firsttired;
			enablenpc "Tire#race02_1_1";
		}
		else {
			set $@mon_r02_tire1,.@firsttired;
			enablenpc "Tire#race02_1_1";
			enablenpc "Tire#race02_1_2";
		}
	}
	else if ((.@firstline > 20) && (.@firstline < 41)) {
		set $@mon_r02_luk1,.@firstline;
		enablenpc "Luk#race02_1_1";
		set .@firsttired,rand(30,50);
		if (.@firsttired > 39) && (.@firsttired < 51) {
			set $@mon_r02_tire1,.@firsttired;
			enablenpc "Tire#race02_1_1";
			enablenpc "Tire#race02_1_2";
		}
		else {
			set $@mon_r02_tire1,.@firsttired;
			enablenpc "Tire#race02_1_1";
			enablenpc "Tire#race02_1_2";
			enablenpc "Tire#race02_1_3";
		}
	}
	else if ((.@firstline > 40) && (.@firstline < 51)) {
		set $@mon_r02_luk1,.@firstline;
		enablenpc "Luk#race02_1_1";
		enablenpc "Luk#race02_1_2";
		set .@firsttired,rand(20,40);
		if (.@firsttired > 29) && (.@firsttired < 41) {
			set $@mon_r02_tire1,.@firsttired;
			enablenpc "Tire#race02_1_1";
			enablenpc "Tire#race02_1_2";
			enablenpc "Tire#race02_1_3";
		}
		else {
			set $@mon_r02_tire1,.@firsttired;
			enablenpc "Tire#race02_1_1";
			enablenpc "Tire#race02_1_2";
			enablenpc "Tire#race02_1_3";
			enablenpc "Tire#race02_1_4";
		}
	}
	else if ((.@firstline > 50) && (.@firstline < 61)) {
		set $@mon_r02_luk1,.@firstline;
		enablenpc "Luk#race02_1_1";
		enablenpc "Luk#race02_1_2";
		enablenpc "Luk#race02_1_3";
		set .@firsttired,rand(10,30);
		if (.@firsttired > 19) && (.@firsttired < 31) {
			set $@mon_r02_tire1,.@firsttired;
			enablenpc "Tire#race02_1_1";
			enablenpc "Tire#race02_1_2";
			enablenpc "Tire#race02_1_3";
			enablenpc "Tire#race02_1_4";
		}
		else {
			set $@mon_r02_tire1,.@firsttired;
			enablenpc "Tire#race02_1_1";
			enablenpc "Tire#race02_1_2";
			enablenpc "Tire#race02_1_3";
			enablenpc "Tire#race02_1_4";
			enablenpc "Tire#race02_1_5";
		}
	}
	else if ((.@firstline > 60) && (.@firstline < 71)) {
		set $@mon_r02_luk1,.@firstline;
		enablenpc "Luk#race02_1_1";
		enablenpc "Luk#race02_1_2";
		enablenpc "Luk#race02_1_3";
		enablenpc "Luk#race02_1_4";
		set .@firsttired,rand(0,20);
		if (.@firsttired > 9) && (.@firsttired < 21) {
			set $@mon_r02_tire1,.@firsttired;
			enablenpc "Tire#race02_1_1";
			enablenpc "Tire#race02_1_2";
			enablenpc "Tire#race02_1_3";
			enablenpc "Tire#race02_1_4";
			enablenpc "Tire#race02_1_5";
		}
		else {
			set $@mon_r02_tire1,.@firsttired;
			enablenpc "Tire#race02_1_1";
			enablenpc "Tire#race02_1_2";
			enablenpc "Tire#race02_1_3";
			enablenpc "Tire#race02_1_4";
			enablenpc "Tire#race02_1_5";
			enablenpc "Tire#race02_1_6";
		}
	}
	else {
		set $@mon_r02_luk1,.@firstline;
		enablenpc "Luk#race02_1_1";
		enablenpc "Luk#race02_1_2";
		enablenpc "Luk#race02_1_3";
		enablenpc "Luk#race02_1_4";
		set .@firsttired,rand(0,20);
		if (.@firsttired > 9) && (.@firsttired < 21) {
			set $@mon_r02_tire1,.@firstline;
			enablenpc "Tire#race02_1_1";
			enablenpc "Tire#race02_1_2";
			enablenpc "Tire#race02_1_3";
			enablenpc "Tire#race02_1_4";
			enablenpc "Tire#race02_1_5";
		}
		else {
			set $@mon_r02_tire1,.@firstline;
			enablenpc "Tire#race02_1_1";
			enablenpc "Tire#race02_1_2";
			enablenpc "Tire#race02_1_3";
			enablenpc "Tire#race02_1_4";
			enablenpc "Tire#race02_1_5";
			enablenpc "Tire#race02_1_6";
		}
	}
	//-------------------------------------------------------------
	// Monster No. 2, Lunatic
	//-------------------------------------------------------------
	set .@secondline,rand(1,70);
	if ((.@secondline > 0) && (.@secondline < 11)) {
		set $@mon_r02_luk2,.@secondline;
		enablenpc "Luk#race02_2_5";
		enablenpc "Luk#race02_2_6";
		set .@secondtired,rand(50,60);
		if (.@secondtired > 49) && (.@secondtired < 61) {
			set $@mon_r02_tire2,.@secondtired;
			enablenpc "Tire#race02_2_1";
		}
	}
	else if ((.@secondline > 10) && (.@secondline < 31)) {
		set $@mon_r02_luk2,.@secondline;
		enablenpc "Luk#race02_2_5";
		set .@secondtired,rand(40,60);
		if (.@secondtired > 49) && (.@secondtired < 61) {
			set $@mon_r02_tire2,.@secondline;
			enablenpc "Tire#race02_2_1";
		}
		else {
			set $@mon_r02_tire2,.@secondline;
			enablenpc "Tire#race02_2_1";
			enablenpc "Tire#race02_2_2";
		}
	}
	else if ((.@secondline > 20) && (.@secondline < 41)) {
		set $@mon_r02_luk2,.@secondline;
		enablenpc "Luk#race02_2_1";
		set .@secondtired,rand(30,50);
		if (.@secondtired > 39) && (.@secondtired < 51) {
			set $@mon_r02_tire2,.@secondtired;
			enablenpc "Tire#race02_2_1";
			enablenpc "Tire#race02_2_2";
		}
		else {
			set $@mon_r02_tire2,.@secondtired;
			enablenpc "Tire#race02_2_1";
			enablenpc "Tire#race02_2_2";
			enablenpc "Tire#race02_2_3";
		}
	}
	else if ((.@secondline > 40) && (.@secondline < 51)) {
		set $@mon_r02_luk2,.@secondline;
		enablenpc "Luk#race02_2_1";
		enablenpc "Luk#race02_2_2";
		set .@secondtired,rand(20,40);
		if (.@secondtired > 29) && (.@secondtired < 41) {
			set $@mon_r02_tire2,.@secondtired;
			enablenpc "Tire#race02_2_1";
			enablenpc "Tire#race02_2_2";
			enablenpc "Tire#race02_2_3";
		}
		else {
			set $@mon_r02_tire2,.@secondtired;
			enablenpc "Tire#race02_2_1";
			enablenpc "Tire#race02_2_2";
			enablenpc "Tire#race02_2_3";
			enablenpc "Tire#race02_2_4";
		}
	}
	else if ((.@secondline > 50) && (.@secondline < 61)) {
		set $@mon_r02_luk2,.@secondline;
		enablenpc "Luk#race02_2_1";
		enablenpc "Luk#race02_2_2";
		enablenpc "Luk#race02_2_3";
		set .@secondtired,rand(10,30);
		if (.@secondtired > 19) && (.@secondtired < 31) {
			set $@mon_r02_tire2,.@secondtired;
			enablenpc "Tire#race02_2_1";
			enablenpc "Tire#race02_2_2";
			enablenpc "Tire#race02_2_3";
			enablenpc "Tire#race02_2_4";
		}
		else {
			set $@mon_r02_tire2,.@secondtired;
			enablenpc "Tire#race02_2_1";
			enablenpc "Tire#race02_2_2";
			enablenpc "Tire#race02_2_3";
			enablenpc "Tire#race02_2_4";
			enablenpc "Tire#race02_2_5";
		}
	}
	else if ((.@secondline > 60) && (.@secondline < 71)) {
		set $@mon_r02_luk2,.@secondline;
		enablenpc "Luk#race02_2_1";
		enablenpc "Luk#race02_2_2";
		enablenpc "Luk#race02_2_3";
		enablenpc "Luk#race02_2_4";
		set .@secondtired,rand(0,20);
		if (.@secondtired > 9) && (.@secondtired < 21) {
			set $@mon_r02_tire2,.@secondtired;
			enablenpc "Tire#race02_2_1";
			enablenpc "Tire#race02_2_2";
			enablenpc "Tire#race02_2_3";
			enablenpc "Tire#race02_2_4";
			enablenpc "Tire#race02_2_5";
		}
		else {
			set $@mon_r02_tire2,.@secondtired;
			enablenpc "Tire#race02_2_1";
			enablenpc "Tire#race02_2_2";
			enablenpc "Tire#race02_2_3";
			enablenpc "Tire#race02_2_4";
			enablenpc "Tire#race02_2_5";
			enablenpc "Tire#race02_2_6";
		}
	}
	else {
		set $@mon_r02_luk2,.@secondline;
		enablenpc "Luk#race02_2_1";
		enablenpc "Luk#race02_2_2";
		enablenpc "Luk#race02_2_3";
		enablenpc "Luk#race02_2_4";
		set .@secondtired,rand(0,20);
		if (.@secondtired > 9) && (.@secondtired < 21) {
			set $@mon_r02_tire2,.@secondtired;
			enablenpc "Tire#race02_2_1";
			enablenpc "Tire#race02_2_2";
			enablenpc "Tire#race02_2_3";
			enablenpc "Tire#race02_2_4";
			enablenpc "Tire#race02_2_5";
		}
		else {
			set $@mon_r02_tire2,.@secondtired;
			enablenpc "Tire#race02_2_1";
			enablenpc "Tire#race02_2_2";
			enablenpc "Tire#race02_2_3";
			enablenpc "Tire#race02_2_4";
			enablenpc "Tire#race02_2_5";
			enablenpc "Tire#race02_2_6";
		}
	}
	//-------------------------------------------------------------
	// Monster No. 3, Savage Babe
	//-------------------------------------------------------------
	set .@thirdline,rand(1,70);
	if ((.@thirdline > 0) && (.@thirdline < 11)) {
		set $@mon_r02_luk3,.@thirdline;
		enablenpc "Luk#race02_3_5";
		enablenpc "Luk#race02_3_6";
		set .@thridtired,rand(50,60);
		if (.@thridtired > 49) && (.@thridtired < 61) {
			set $@mon_r02_tire3,.@thridtired;
			enablenpc "Tire#race02_3_1";
		}
	}
	else if ((.@thirdline > 10) && (.@thirdline < 31)) {
		set $@mon_r02_luk3,.@thirdline;
		enablenpc "Luk#race02_3_5";
		set .@thridtired,rand(40,60);
		if (.@thridtired > 49) && (.@thridtired < 61) {
			set $@mon_r02_tire3,.@thridtired;
			enablenpc "Tire#race02_3_1";
		}
		else {
			set $@mon_r02_tire3,.@thridtired;
			enablenpc "Tire#race02_3_1";
			enablenpc "Tire#race02_3_2";
		}
	}
	else if ((.@thirdline > 20) && (.@thirdline < 41)) {
		set $@mon_r02_luk3,.@thirdline;
		enablenpc "Luk#race02_3_1";
		set .@thridtired,rand(30,50);
		if (.@thridtired > 39) && (.@thridtired < 51) {
			set $@mon_r02_tire3,.@thridtired;
			enablenpc "Tire#race02_3_1";
			enablenpc "Tire#race02_3_2";
		}
		else {
			set $@mon_r02_tire3,.@thridtired;
			enablenpc "Tire#race02_3_1";
			enablenpc "Tire#race02_3_2";
			enablenpc "Tire#race02_3_3";
		}
	}
	else if ((.@thirdline > 40) && (.@thirdline < 51)) {
		set $@mon_r02_luk3,.@thirdline;
		enablenpc "Luk#race02_3_1";
		enablenpc "Luk#race02_3_2";
		set .@thridtired,rand(20,40);
		if (.@thridtired > 29) && (.@thridtired < 41) {
			set $@mon_r02_tire3,.@thridtired;
			enablenpc "Tire#race02_3_1";
			enablenpc "Tire#race02_3_2";
			enablenpc "Tire#race02_3_3";
		}
		else {
			set $@mon_r02_tire3,.@thridtired;
			enablenpc "Tire#race02_3_1";
			enablenpc "Tire#race02_3_2";
			enablenpc "Tire#race02_3_3";
			enablenpc "Tire#race02_3_4";
		}
	}
	else if ((.@thirdline > 50) && (.@thirdline < 61)) {
		set $@mon_r02_luk3,.@thirdline;
		enablenpc "Luk#race02_3_1";
		enablenpc "Luk#race02_3_2";
		enablenpc "Luk#race02_3_3";
		set .@thridtired,rand(10,30);
		if (.@thridtired > 19) && (.@thridtired < 31) {
			set $@mon_r02_tire3,.@thridtired;
			enablenpc "Tire#race02_3_1";
			enablenpc "Tire#race02_3_2";
			enablenpc "Tire#race02_3_3";
			enablenpc "Tire#race02_3_4";
		}
		else {
			set $@mon_r02_tire3,.@thridtired;
			enablenpc "Tire#race02_3_1";
			enablenpc "Tire#race02_3_2";
			enablenpc "Tire#race02_3_3";
			enablenpc "Tire#race02_3_4";
			enablenpc "Tire#race02_3_5";
		}
	}
	else if ((.@thirdline > 60) && (.@thirdline < 71)) {
		set $@mon_r02_luk3,.@thirdline;
		enablenpc "Luk#race02_3_1";
		enablenpc "Luk#race02_3_2";
		enablenpc "Luk#race02_3_3";
		enablenpc "Luk#race02_3_4";
		set .@thridtired,rand(0,20);
		if (.@thridtired > 9) && (.@thridtired < 21) {
			set $@mon_r02_tire3,.@thridtired;
			enablenpc "Tire#race02_3_1";
			enablenpc "Tire#race02_3_2";
			enablenpc "Tire#race02_3_3";
			enablenpc "Tire#race02_3_4";
			enablenpc "Tire#race02_3_5";
		}
		else {
			set $@mon_r02_tire3,.@thridtired;
			enablenpc "Tire#race02_3_1";
			enablenpc "Tire#race02_3_2";
			enablenpc "Tire#race02_3_3";
			enablenpc "Tire#race02_3_4";
			enablenpc "Tire#race02_3_5";
			enablenpc "Tire#race02_3_6";
		}
	}
	else {
		set $@mon_r02_luk3,.@thirdline;
		enablenpc "Luk#race02_3_1";
		enablenpc "Luk#race02_3_2";
		enablenpc "Luk#race02_3_3";
		enablenpc "Luk#race02_3_4";
		set .@thridtired,rand(0,20);
		if (.@thridtired > 9) && (.@thridtired < 21) {
			set $@mon_r02_tire3,.@thridtired;
			enablenpc "Tire#race02_3_1";
			enablenpc "Tire#race02_3_2";
			enablenpc "Tire#race02_3_3";
			enablenpc "Tire#race02_3_4";
			enablenpc "Tire#race02_3_5";
		}
		else {
			set $@mon_r02_tire3,.@thridtired;
			enablenpc "Tire#race02_3_1";
			enablenpc "Tire#race02_3_2";
			enablenpc "Tire#race02_3_3";
			enablenpc "Tire#race02_3_4";
			enablenpc "Tire#race02_3_5";
			enablenpc "Tire#race02_3_6";
		}
	}
	//-------------------------------------------------------------
	// Monster No. 4, Baby Desert Wolf
	//-------------------------------------------------------------
	set .@fourthline,rand(1,70);
	if ((.@fourthline > 0) && (.@fourthline < 11)) {
		set $@mon_r02_luk4,.@fourthline;
		enablenpc "Luk#race02_4_5";
		enablenpc "Luk#race02_4_6";
		set .@fourthtired,rand(50,60);
		if (.@fourthtired > 49) && (.@fourthtired < 61) {
			set $@mon_r02_tire4,.@fourthtired;
			enablenpc "Tire#race02_4_1";
		}
	}
	else if ((.@fourthline > 10) && (.@fourthline < 31)) {
		set $@mon_r02_luk4,.@fourthline;
		enablenpc "Luk#race02_4_5";
		set .@fourthtired,rand(40,60);
		if (.@fourthtired > 49) && (.@fourthtired < 61) {
			set $@mon_r02_tire4,.@fourthtired;
			enablenpc "Tire#race02_4_1";
		}
		else {
			set $@mon_r02_tire4,.@fourthtired;
			enablenpc "Tire#race02_4_1";
			enablenpc "Tire#race02_4_2";
		}
	}
	else if ((.@fourthline > 20) && (.@fourthline < 41)) {
		set $@mon_r02_luk4,.@fourthline;
		enablenpc "Luk#race02_4_1";
		set .@fourthtired,rand(30,50);
		if (.@fourthtired > 39) && (.@fourthtired < 51) {
			set $@mon_r02_tire4,.@fourthtired;
			enablenpc "Tire#race02_4_1";
			enablenpc "Tire#race02_4_2";
		}
		else {
			set $@mon_r02_tire4,.@fourthtired;
			enablenpc "Tire#race02_4_1";
			enablenpc "Tire#race02_4_2";
			enablenpc "Tire#race02_4_3";
		}
	}
	else if ((.@fourthline > 40) && (.@fourthline < 51)) {
		set $@mon_r02_luk4,.@fourthline;
		enablenpc "Luk#race02_4_1";
		enablenpc "Luk#race02_4_2";
		set .@fourthtired,rand(20,40);
		if (.@fourthtired > 29) && (.@fourthtired < 41) {
			set $@mon_r02_tire4,.@fourthtired;
			enablenpc "Tire#race02_4_1";
			enablenpc "Tire#race02_4_2";
			enablenpc "Tire#race02_4_3";
		}
		else {
			set $@mon_r02_tire4,.@fourthtired;
			enablenpc "Tire#race02_4_1";
			enablenpc "Tire#race02_4_2";
			enablenpc "Tire#race02_4_3";
			enablenpc "Tire#race02_4_4";
		}
	}
	else if ((.@fourthline > 50) && (.@fourthline < 61)) {
		set $@mon_r02_luk4,.@fourthline;
		enablenpc "Luk#race02_4_1";
		enablenpc "Luk#race02_4_2";
		enablenpc "Luk#race02_4_3";
		set .@fourthtired,rand(10,30);
		if (.@fourthtired > 19) && (.@fourthtired < 31) {
			set $@mon_r02_tire4,.@fourthtired;
			enablenpc "Tire#race02_4_1";
			enablenpc "Tire#race02_4_2";
			enablenpc "Tire#race02_4_3";
			enablenpc "Tire#race02_4_4";
		}
		else {
			set $@mon_r02_tire4,.@fourthtired;
			enablenpc "Tire#race02_4_1";
			enablenpc "Tire#race02_4_2";
			enablenpc "Tire#race02_4_3";
			enablenpc "Tire#race02_4_4";
			enablenpc "Tire#race02_4_5";
		}
	}
	else if ((.@fourthline > 60) && (.@fourthline < 71)) {
		set $@mon_r02_luk4,.@fourthline;
		enablenpc "Luk#race02_4_1";
		enablenpc "Luk#race02_4_2";
		enablenpc "Luk#race02_4_3";
		enablenpc "Luk#race02_4_4";
		set .@fourthtired,rand(0,20);
		if (.@fourthtired > 9) && (.@fourthtired < 21) {
			set $@mon_r02_tire4,.@fourthtired;
			enablenpc "Tire#race02_4_1";
			enablenpc "Tire#race02_4_2";
			enablenpc "Tire#race02_4_3";
			enablenpc "Tire#race02_4_4";
			enablenpc "Tire#race02_4_5";
		}
		else {
			set $@mon_r02_tire4,.@fourthtired;
			enablenpc "Tire#race02_4_1";
			enablenpc "Tire#race02_4_2";
			enablenpc "Tire#race02_4_3";
			enablenpc "Tire#race02_4_4";
			enablenpc "Tire#race02_4_5";
			enablenpc "Tire#race02_4_6";
		}
	}
	else {
		set $@mon_r02_luk4,.@fourthline;
		enablenpc "Luk#race02_4_1";
		enablenpc "Luk#race02_4_2";
		enablenpc "Luk#race02_4_3";
		enablenpc "Luk#race02_4_4";
		set .@fourthtired,rand(0,20);
		if (.@fourthtired > 9) && (.@fourthtired < 21) {
			set $@mon_r02_tire4,.@fourthtired;
			enablenpc "Tire#race02_4_1";
			enablenpc "Tire#race02_4_2";
			enablenpc "Tire#race02_4_3";
			enablenpc "Tire#race02_4_4";
			enablenpc "Tire#race02_4_5";
		}
		else {
			set $@mon_r02_tire4,.@fourthtired;
			enablenpc "Tire#race02_4_1";
			enablenpc "Tire#race02_4_2";
			enablenpc "Tire#race02_4_3";
			enablenpc "Tire#race02_4_4";
			enablenpc "Tire#race02_4_5";
			enablenpc "Tire#race02_4_6";
		}
	}
	//-------------------------------------------------------------
	// Monster No. 5, Deviruchi
	//-------------------------------------------------------------
	set .@fifthline,rand(1,70);
	if ((.@fifthline > 0) && (.@fifthline < 11)) {
		set $@mon_r02_luk5,.@fifthline;
		enablenpc "Luk#race02_5_5";
		set .@fifthtired,rand(50,60);
		if (.@fifthtired > 49) && (.@fifthtired < 61) {
			set $@mon_r02_tire5,.@fifthtired;
			enablenpc "Tire#race02_5_1";
		}
	}
	else if ((.@fifthline > 10) && (.@fifthline < 31)) {
		set $@mon_r02_luk5,.@fifthline;
		enablenpc "Luk#race02_5_5";
		set .@fifthtired,rand(40,60);
		if (.@fifthtired > 49) && (.@fifthtired < 61) {
			set $@mon_r02_tire5,.@fifthtired;
			enablenpc "Tire#race02_5_1";
		}
		else {
			set $@mon_r02_tire5,.@fifthtired;
			enablenpc "Tire#race02_5_1";
			enablenpc "Tire#race02_5_2";
		}
	}
	else if ((.@fifthline > 20) && (.@fifthline < 41)) {
		set $@mon_r02_luk5,.@fifthline;
		enablenpc "Luk#race02_5_1";
		set .@fifthtired,rand(30,50);
		if (.@fifthtired > 39) && (.@fifthtired < 51) {
			set $@mon_r02_tire5,.@fifthtired;
			enablenpc "Tire#race02_5_1";
			enablenpc "Tire#race02_5_2";
		}
		else {
			set $@mon_r02_tire5,.@fifthtired;
			enablenpc "Tire#race02_5_1";
			enablenpc "Tire#race02_5_2";
			enablenpc "Tire#race02_5_3";
		}
	}
	else if ((.@fifthline > 40) && (.@fifthline < 51)) {
		set $@mon_r02_luk5,.@fifthline;
		enablenpc "Luk#race02_5_1";
		enablenpc "Luk#race02_5_2";
		set .@fifthtired,rand(20,40);
		if (.@fifthtired > 29) && (.@fifthtired < 41) {
			set $@mon_r02_tire5,.@fifthtired;
			enablenpc "Tire#race02_5_1";
			enablenpc "Tire#race02_5_2";
			enablenpc "Tire#race02_5_3";
		}
		else {
			set $@mon_r02_tire5,.@fifthtired;
			enablenpc "Tire#race02_5_1";
			enablenpc "Tire#race02_5_2";
			enablenpc "Tire#race02_5_3";
			enablenpc "Tire#race02_5_4";
		}
	}
	else if ((.@fifthline > 50) && (.@fifthline < 61)) {
		set $@mon_r02_luk5,.@fifthline;
		enablenpc "Luk#race02_5_1";
		enablenpc "Luk#race02_5_2";
		enablenpc "Luk#race02_5_3";
		set .@fifthtired,rand(10,30);
		if (.@fifthtired > 19) && (.@fifthtired < 31) {
			set $@mon_r02_tire5,.@fifthtired;
			enablenpc "Tire#race02_5_1";
			enablenpc "Tire#race02_5_2";
			enablenpc "Tire#race02_5_3";
			enablenpc "Tire#race02_5_4";
		}
		else {
			set $@mon_r02_tire5,.@fifthtired;
			enablenpc "Tire#race02_5_1";
			enablenpc "Tire#race02_5_2";
			enablenpc "Tire#race02_5_3";
			enablenpc "Tire#race02_5_4";
			enablenpc "Tire#race02_5_5";
		}
	}
	else if ((.@fifthline > 60) && (.@fifthline < 71)) {
		set $@mon_r02_luk5,.@fifthline;
		enablenpc "Luk#race02_5_1";
		enablenpc "Luk#race02_5_2";
		enablenpc "Luk#race02_5_3";
		enablenpc "Luk#race02_5_4";
		set .@fifthtired,rand(0,20);
		if (.@fifthtired > 9) && (.@fifthtired < 21) {
			set $@mon_r02_tire5,.@fifthtired;
			enablenpc "Tire#race02_5_1";
			enablenpc "Tire#race02_5_2";
			enablenpc "Tire#race02_5_3";
			enablenpc "Tire#race02_5_4";
			enablenpc "Tire#race02_5_5";
		}
		else {
			set $@mon_r02_tire5,.@fifthtired;
			enablenpc "Tire#race02_5_1";
			enablenpc "Tire#race02_5_2";
			enablenpc "Tire#race02_5_3";
			enablenpc "Tire#race02_5_4";
			enablenpc "Tire#race02_5_5";
			enablenpc "Tire#race02_5_6";
		}
	}
	else {
		set $@mon_r02_luk5,.@fifthline;
		enablenpc "Luk#race02_5_1";
		enablenpc "Luk#race02_5_2";
		enablenpc "Luk#race02_5_3";
		enablenpc "Luk#race02_5_4";
		set .@fifthtired,rand(0,20);
		if (.@fifthtired > 9) && (.@fifthtired < 21) {
			set $@mon_r02_tire5,.@fifthtired;
			enablenpc "Tire#race02_5_1";
			enablenpc "Tire#race02_5_2";
			enablenpc "Tire#race02_5_3";
			enablenpc "Tire#race02_5_4";
			enablenpc "Tire#race02_5_5";
		}
		else {
			set $@mon_r02_tire5,.@fifthtired;
			enablenpc "Tire#race02_5_1";
			enablenpc "Tire#race02_5_2";
			enablenpc "Tire#race02_5_3";
			enablenpc "Tire#race02_5_4";
			enablenpc "Tire#race02_5_5";
			enablenpc "Tire#race02_5_6";
		}
	}
	//-------------------------------------------------------------
	// Monster No. 6, Baphomet Jr.
	//-------------------------------------------------------------
	set .@sixthline,rand(1,70);
	if ((.@sixthline > 0) && (.@sixthline < 11)) {
		set $@mon_r02_luk6,.@sixthline;
		enablenpc "Luk#race02_6_5";
		enablenpc "Luk#race02_6_6";
		set .@sixthtired,rand(50,60);
		if (.@sixthtired > 49) && (.@sixthtired < 61) {
			set $@mon_r02_tire6,.@sixthtired;
			enablenpc "Tire#race02_6_1";
		}
	}
	else if ((.@sixthline > 10) && (.@sixthline < 31)) {
		set $@mon_r02_luk6,.@sixthline;
		enablenpc "Luk#race02_6_5";
		set .@sixthtired,rand(40,60);
		if (.@sixthtired > 49) && (.@sixthtired < 61) {
			set $@mon_r02_tire6,.@sixthtired;
			enablenpc "Tire#race02_6_1";
		}
		else {
			set $@mon_r02_tire6,.@sixthtired;
			enablenpc "Tire#race02_6_1";
			enablenpc "Tire#race02_6_2";
		}
	}
	else if ((.@sixthline > 20) && (.@sixthline < 41)) {
		set $@mon_r02_luk6,.@sixthline;
		enablenpc "Luk#race02_6_1";
		set .@sixthtired,rand(30,50);
		if (.@sixthtired > 39) && (.@sixthtired < 51) {
			set $@mon_r02_tire6,.@sixthtired;
			enablenpc "Tire#race02_6_1";
			enablenpc "Tire#race02_6_2";
		}
		else {
			set $@mon_r02_tire6,.@sixthtired;
			enablenpc "Tire#race02_6_1";
			enablenpc "Tire#race02_6_2";
			enablenpc "Tire#race02_6_3";
		}
	}
	else if ((.@sixthline > 40) && (.@sixthline < 51)) {
		set $@mon_r02_luk6,.@sixthline;
		enablenpc "Luk#race02_6_1";
		enablenpc "Luk#race02_6_2";
		set .@sixthtired,rand(20,40);
		if (.@sixthtired > 29) && (.@sixthtired < 41) {
			set $@mon_r02_tire6,.@sixthtired;
			enablenpc "Tire#race02_6_1";
			enablenpc "Tire#race02_6_2";
			enablenpc "Tire#race02_6_3";
		}
		else {
			set $@mon_r02_tire6,.@sixthtired;
			enablenpc "Tire#race02_6_1";
			enablenpc "Tire#race02_6_2";
			enablenpc "Tire#race02_6_3";
			enablenpc "Tire#race02_6_4";
		}
	}
	else if ((.@sixthline > 50) && (.@sixthline < 61)) {
		set $@mon_r02_luk6,.@sixthline;
		enablenpc "Luk#race02_6_1";
		enablenpc "Luk#race02_6_2";
		enablenpc "Luk#race02_6_3";
		set .@sixthtired,rand(10,30);
		if (.@sixthtired > 19) && (.@sixthtired < 31) {
			set $@mon_r02_tire6,.@sixthtired;
			enablenpc "Tire#race02_6_1";
			enablenpc "Tire#race02_6_2";
			enablenpc "Tire#race02_6_3";
			enablenpc "Tire#race02_6_4";
		}
		else {
			set $@mon_r02_tire6,.@sixthtired;
			enablenpc "Tire#race02_6_1";
			enablenpc "Tire#race02_6_2";
			enablenpc "Tire#race02_6_3";
			enablenpc "Tire#race02_6_4";
			enablenpc "Tire#race02_6_5";
		}
	}
	else if ((.@sixthline > 60) && (.@sixthline < 71)) {
		set $@mon_r02_luk6,.@sixthline;
		enablenpc "Luk#race02_6_1";
		enablenpc "Luk#race02_6_2";
		enablenpc "Luk#race02_6_3";
		enablenpc "Luk#race02_6_4";
		set .@sixthtired,rand(0,20);
		if (.@sixthtired > 9) && (.@sixthtired < 21) {
			set $@mon_r02_tire6,.@sixthtired;
			enablenpc "Tire#race02_6_1";
			enablenpc "Tire#race02_6_2";
			enablenpc "Tire#race02_6_3";
			enablenpc "Tire#race02_6_4";
			enablenpc "Tire#race02_6_5";
		}
		else {
			set $@mon_r02_tire6,.@sixthtired;
			enablenpc "Tire#race02_6_1";
			enablenpc "Tire#race02_6_2";
			enablenpc "Tire#race02_6_3";
			enablenpc "Tire#race02_6_4";
			enablenpc "Tire#race02_6_5";
			enablenpc "Tire#race02_6_6";
		}
	}
	else {
		set $@mon_r02_luk6,.@sixthline;
		enablenpc "Luk#race02_6_1";
		enablenpc "Luk#race02_6_2";
		enablenpc "Luk#race02_6_3";
		enablenpc "Luk#race02_6_4";
		set .@sixthtired,rand(0,20);
		if (.@sixthtired > 9) && (.@sixthtired < 21) {
			set $@mon_r02_tire6,.@sixthtired;
			enablenpc "Tire#race02_6_1";
			enablenpc "Tire#race02_6_2";
			enablenpc "Tire#race02_6_3";
			enablenpc "Tire#race02_6_4";
			enablenpc "Tire#race02_6_5";
		}
		else {
			set $@mon_r02_tire6,.@sixthtired;
			enablenpc "Tire#race02_6_1";
			enablenpc "Tire#race02_6_2";
			enablenpc "Tire#race02_6_3";
			enablenpc "Tire#race02_6_4";
			enablenpc "Tire#race02_6_5";
			enablenpc "Tire#race02_6_6";
		}
	}
	end;

OnDisable:
	disablenpc "TrapGlobal#race02";
	donpcevent "starting#race02_1::OnDisable";
	donpcevent "starting#race02_2::OnDisable";
	donpcevent "starting#race02_3::OnDisable";
	donpcevent "starting#race02_4::OnDisable";
	donpcevent "starting#race02_5::OnDisable";
	donpcevent "starting#race02_6::OnDisable";
	end;
}

p_track02,56,38,0	script	starting#race02_1	-1,0,0,{
	end;

OnInit:
	disablenpc "starting#race02_1";
	end;

OnDisable:
	disablenpc "starting#race02_1";
	disablenpc "Luk#race02_1_1";
	disablenpc "Luk#race02_1_2";
	disablenpc "Luk#race02_1_3";
	disablenpc "Luk#race02_1_4";
	disablenpc "Luk#race02_1_5";
	disablenpc "Luk#race02_1_6";
	disablenpc "Tire#race02_1_1";
	disablenpc "Tire#race02_1_2";
	disablenpc "Tire#race02_1_3";
	disablenpc "Tire#race02_1_4";
	disablenpc "Tire#race02_1_5";
	disablenpc "Tire#race02_1_6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 11) {
		sc_start SC_WALKSPEED,5000,60;
	}
	else if (.@start > 10) && (.@start < 21) {
		sc_start SC_WALKSPEED,5000,70;
	}
	else if (.@start > 20) && (.@start < 31) {
		sc_start SC_WALKSPEED,5000,80;
	}
	else if (.@start > 30) && (.@start < 41) {
		sc_start SC_WALKSPEED,5000,90;
	}
	else if (.@start > 40) && (.@start < 51) {
		sc_start SC_WALKSPEED,5000,100;
	}
	else if (.@start > 50) && (.@start < 61) {
		sc_start SC_WALKSPEED,5000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,5000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,5000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,5000,140;
	}
	else {
		sc_start SC_WALKSPEED,5000,150;
	}
	end;
}

p_track02,33,38,0	script	Luk#race02_1_1	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_1_1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,37,38,0	script	Luk#race02_1_2	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_1_2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,53,38,0	script	Luk#race02_1_3	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_1_3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,45,38,0	script	Luk#race02_1_4	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_1_4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,49,38,0	script	Luk#race02_1_5	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_1_5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track02,41,38,0	script	Luk#race02_1_6	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_1_6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track02,43,38,0	script	Tire#race02_1_1	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_1_1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,39,38,0	script	Tire#race02_1_2	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_1_2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,35,38,0	script	Tire#race02_1_3	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_1_3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,55,38,0	script	Tire#race02_1_4	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_1_4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,51,38,0	script	Tire#race02_1_5	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_1_5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,47,38,0	script	Tire#race02_1_6	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_1_6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,56,36,0	script	starting#race02_2	-1,0,0,{
	end;

OnInit:
	disablenpc "starting#race02_2";
	end;

OnDisable:
	disablenpc "starting#race02_2";
	disablenpc "Luk#race02_2_1";
	disablenpc "Luk#race02_2_1";
	disablenpc "Luk#race02_2_1";
	disablenpc "Luk#race02_2_4";
	disablenpc "Luk#race02_2_5";
	disablenpc "Luk#race02_2_6";
	disablenpc "Tire#race02_2_1";
	disablenpc "Tire#race02_2_2";
	disablenpc "Tire#race02_2_3";
	disablenpc "Tire#race02_2_4";
	disablenpc "Tire#race02_2_5";
	disablenpc "Tire#race02_2_6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 11) {
		sc_start SC_WALKSPEED,5000,60;
	}
	else if (.@start > 10) && (.@start < 21) {
		sc_start SC_WALKSPEED,5000,70;
	}
	else if (.@start > 20) && (.@start < 31) {
		sc_start SC_WALKSPEED,5000,80;
	}
	else if (.@start > 30) && (.@start < 41) {
		sc_start SC_WALKSPEED,5000,90;
	}
	else if (.@start > 40) && (.@start < 51) {
		sc_start SC_WALKSPEED,5000,100;
	}
	else if (.@start > 50) && (.@start < 61) {
		sc_start SC_WALKSPEED,5000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,5000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,5000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,5000,140;
	}
	else {
		sc_start SC_WALKSPEED,5000,150;
	}
	end;
}

p_track02,33,36,0	script	Luk#race02_2_1	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_2_1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,37,36,0	script	Luk#race02_2_2	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_2_2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,53,36,0	script	Luk#race02_2_3	-1,0,0,{
OnInit:
	disablenpc "Luk#race02_2_3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,45,36,0	script	Luk#race02_2_4	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_2_4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,49,36,0	script	Luk#race02_2_5	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_2_5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track02,41,36,0	script	Luk#race02_2_6	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_2_6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track02,43,36,0	script	Tire#race02_2_1	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_2_1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,39,36,0	script	Tire#race02_2_2	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_2_2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,35,36,0	script	Tire#race02_2_3	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_2_3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,55,36,0	script	Tire#race02_2_4	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_2_4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,51,36,0	script	Tire#race02_2_5	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_2_5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,47,36,0	script	Tire#race02_2_6	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_2_6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,56,34,0	script	starting#race02_3	-1,0,0,{
	end;

OnInit:
	disablenpc "starting#race02_3";
	end;

OnDisable:
	disablenpc "starting#race02_3";
	disablenpc "Luk#race02_3_1";
	disablenpc "Luk#race02_3_2";
	disablenpc "Luk#race02_3_3";
	disablenpc "Luk#race02_3_4";
	disablenpc "Luk#race02_3_5";
	disablenpc "Luk#race02_3_6";
	disablenpc "Tire#race02_3_1";
	disablenpc "Tire#race02_3_2";
	disablenpc "Tire#race02_3_3";
	disablenpc "Tire#race02_3_4";
	disablenpc "Tire#race02_3_5";
	disablenpc "Tire#race02_3_6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 11) {
		sc_start SC_WALKSPEED,5000,60;
	}
	else if (.@start > 10) && (.@start < 21) {
		sc_start SC_WALKSPEED,5000,70;
	}
	else if (.@start > 20) && (.@start < 31) {
		sc_start SC_WALKSPEED,5000,80;
	}
	else if (.@start > 30) && (.@start < 41) {
		sc_start SC_WALKSPEED,5000,90;
	}
	else if (.@start > 40) && (.@start < 51) {
		sc_start SC_WALKSPEED,5000,100;
	}
	else if (.@start > 50) && (.@start < 61) {
		sc_start SC_WALKSPEED,5000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,5000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,5000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,5000,140;
	}
	else {
		sc_start SC_WALKSPEED,5000,150;
	}
	end;
}

p_track02,33,34,0	script	Luk#race02_3_1	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_3_1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,37,34,0	script	Luk#race02_3_2	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_3_2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,53,34,0	script	Luk#race02_3_3	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_3_3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,45,34,0	script	Luk#race02_3_4	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_3_4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,49,34,0	script	Luk#race02_3_5	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_3_5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track02,41,34,0	script	Luk#race02_3_6	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_3_6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track02,43,34,0	script	Tire#race02_3_1	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_3_1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,39,34,0	script	Tire#race02_3_2	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_3_2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,35,34,0	script	Tire#race02_3_3	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_3_3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,55,34,0	script	Tire#race02_3_4	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_3_4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,51,34,0	script	Tire#race02_3_5	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_3_5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,47,34,0	script	Tire#race02_3_6	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_3_6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,56,32,0	script	starting#race02_4	-1,0,0,{
	end;

OnInit:
	disablenpc "starting#race02_4";
	end;

OnEnable:
	enablenpc "starting#race02_4";
	end;

OnDisable:
	disablenpc "starting#race02_4";
	disablenpc "Luk#race02_4_1";
	disablenpc "Luk#race02_4_2";
	disablenpc "Luk#race02_4_3";
	disablenpc "Luk#race02_4_4";
	disablenpc "Luk#race02_4_5";
	disablenpc "Luk#race02_4_6";
	disablenpc "Tire#race02_4_1";
	disablenpc "Tire#race02_4_2";
	disablenpc "Tire#race02_4_3";
	disablenpc "Tire#race02_4_4";
	disablenpc "Tire#race02_4_5";
	disablenpc "Tire#race02_4_6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 11) {
		sc_start SC_WALKSPEED,5000,60;
	}
	else if (.@start > 10) && (.@start < 21) {
		sc_start SC_WALKSPEED,5000,70;
	}
	else if (.@start > 20) && (.@start < 31) {
		sc_start SC_WALKSPEED,5000,80;
	}
	else if (.@start > 30) && (.@start < 41) {
		sc_start SC_WALKSPEED,5000,90;
	}
	else if (.@start > 40) && (.@start < 51) {
		sc_start SC_WALKSPEED,5000,100;
	}
	else if (.@start > 50) && (.@start < 61) {
		sc_start SC_WALKSPEED,5000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,5000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,5000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,5000,140;
	}
	else {
		sc_start SC_WALKSPEED,5000,150;
	}
	end;
}

p_track02,33,32,0	script	Luk#race02_4_1	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_4_1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,37,32,0	script	Luk#race02_4_2	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_4_2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,53,32,0	script	Luk#race02_4_3	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_4_3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,45,32,0	script	Luk#race02_4_4	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_4_4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,49,32,0	script	Luk#race02_4_5	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_4_5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track02,41,32,0	script	Luk#race02_4_6	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_4_6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track02,43,32,0	script	Tire#race02_4_1	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_4_1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,39,32,0	script	Tire#race02_4_2	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_4_2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,35,32,0	script	Tire#race02_4_3	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_4_3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,55,32,0	script	Tire#race02_4_4	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_4_4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,51,32,0	script	Tire#race02_4_5	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_4_5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,47,32,0	script	Tire#race02_4_6	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_4_6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,56,30,0	script	starting#race02_5	-1,0,0,{
	end;

OnInit:
	disablenpc "starting#race02_5";
	end;

OnEnable:
	enablenpc "starting#race02_5";
	end;

OnDisable:
	disablenpc "starting#race02_5";
	disablenpc "Luk#race02_5_1";
	disablenpc "Luk#race02_5_2";
	disablenpc "Luk#race02_5_3";
	disablenpc "Luk#race02_5_4";
	disablenpc "Luk#race02_5_5";
	disablenpc "Luk#race02_5_6";
	disablenpc "Tire#race02_5_1";
	disablenpc "Tire#race02_5_2";
	disablenpc "Tire#race02_5_3";
	disablenpc "Tire#race02_5_4";
	disablenpc "Tire#race02_5_5";
	disablenpc "Tire#race02_5_6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 11) {
		sc_start SC_WALKSPEED,5000,60;
	}
	else if (.@start > 10) && (.@start < 21) {
		sc_start SC_WALKSPEED,5000,70;
	}
	else if (.@start > 20) && (.@start < 31) {
		sc_start SC_WALKSPEED,5000,80;
	}
	else if (.@start > 30) && (.@start < 41) {
		sc_start SC_WALKSPEED,5000,90;
	}
	else if (.@start > 40) && (.@start < 51) {
		sc_start SC_WALKSPEED,5000,100;
	}
	else if (.@start > 50) && (.@start < 61) {
		sc_start SC_WALKSPEED,5000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,5000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,5000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,5000,140;
	}
	else {
		sc_start SC_WALKSPEED,5000,150;
	}
	end;
}

p_track02,33,30,0	script	Luk#race02_5_1	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_5_1";
	end;

OnEnable:
	enablenpc "Luk#race02_5_1";
	end;

OnDisable:
	disablenpc "Luk#race02_5_1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,37,30,0	script	Luk#race02_5_2	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_5_2";
	end;

OnEnable:
	enablenpc "Luk#race02_5_2";
	end;

OnDisable:
	disablenpc "Luk#race02_5_2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,53,30,0	script	Luk#race02_5_3	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_5_3";
	end;

OnEnable:
	enablenpc "Luk#race02_5_3";
	end;

OnDisable:
	disablenpc "Luk#race02_5_3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,45,30,0	script	Luk#race02_5_4	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_5_4";
	end;

OnEnable:
	enablenpc "Luk#race02_5_4";
	end;

OnDisable:
	disablenpc "Luk#race02_5_4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,49,30,0	script	Luk#race02_5_5	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_5_5";
	end;

OnEnable:
	enablenpc "Luk#race02_5_5";
	end;

OnDisable:
	disablenpc "Luk#race02_5_5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track02,41,30,0	script	Luk#race02_5_6	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_5_6";
	end;

OnEnable:
	enablenpc "Luk#race02_5_6";
	end;

OnDisable:
	disablenpc "Luk#race02_5_6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track02,43,30,0	script	Tire#race02_5_1	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_5_1";
	end;

OnEnable:
	enablenpc "Tire#race02_5_1";
	end;

OnDisable:
	disablenpc "Tire#race02_5_1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,39,30,0	script	Tire#race02_5_2	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_5_2";
	end;

OnEnable:
	enablenpc "Tire#race02_5_2";
	end;

OnDisable:
	disablenpc "Tire#race02_5_2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,35,30,0	script	Tire#race02_5_3	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_5_3";
	end;

OnEnable:
	enablenpc "Tire#race02_5_3";
	end;

OnDisable:
	disablenpc "Tire#race02_5_3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,55,30,0	script	Tire#race02_5_4	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_5_4";
	end;

OnEnable:
	enablenpc "Tire#race02_5_4";
	end;

OnDisable:
	disablenpc "Tire#race02_5_4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,51,30,0	script	Tire#race02_5_5	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_5_5";
	end;

OnEnable:
	enablenpc "Tire#race02_5_5";
	end;

OnDisable:
	disablenpc "Tire#race02_5_5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,47,30,0	script	Tire#race02_5_6	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_5_6";
	end;

OnEnable:
	enablenpc "Tire#race02_5_6";
	end;

OnDisable:
	disablenpc "Tire#race02_5_6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,56,28,0	script	starting#race02_6	-1,0,0,{
	end;

OnInit:
	disablenpc "starting#race02_6";
	end;

OnEnable:
	enablenpc "starting#race02_6";
	end;

OnDisable:
	disablenpc "starting#race02_6";
	disablenpc "Luk#race02_6_1";
	disablenpc "Luk#race02_6_2";
	disablenpc "Luk#race02_6_3";
	disablenpc "Luk#race02_6_4";
	disablenpc "Luk#race02_6_5";
	disablenpc "Luk#race02_6_6";
	disablenpc "Tire#race02_6_1";
	disablenpc "Tire#race02_6_2";
	disablenpc "Tire#race02_6_3";
	disablenpc "Tire#race02_6_4";
	disablenpc "Tire#race02_6_5";
	disablenpc "Tire#race02_6_6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 11) {
		sc_start SC_WALKSPEED,5000,60;
	}
	else if (.@start > 10) && (.@start < 21) {
		sc_start SC_WALKSPEED,5000,70;
	}
	else if (.@start > 20) && (.@start < 31) {
		sc_start SC_WALKSPEED,5000,80;
	}
	else if (.@start > 30) && (.@start < 41) {
		sc_start SC_WALKSPEED,5000,90;
	}
	else if (.@start > 40) && (.@start < 51) {
		sc_start SC_WALKSPEED,5000,100;
	}
	else if (.@start > 50) && (.@start < 61) {
		sc_start SC_WALKSPEED,5000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,5000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,5000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,5000,140;
	}
	else {
		sc_start SC_WALKSPEED,5000,150;
	}
	end;
}

p_track02,33,28,0	script	Luk#race02_6_1	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_6_1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,37,28,0	script	Luk#race02_6_2	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_6_2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,53,28,0	script	Luk#race02_6_3	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_6_3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,45,28,0	script	Luk#race02_6_4	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_6_4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_WALKSPEED,10000,110;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_WALKSPEED,10000,120;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_WALKSPEED,10000,130;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_WALKSPEED,10000,140;
	}
	else {
		sc_start SC_WALKSPEED,10000,150;
	}
	end;
}

p_track02,49,28,0	script	Luk#race02_6_5	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_6_5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track02,41,28,0	script	Luk#race02_6_6	-1,0,0,{
	end;

OnInit:
	disablenpc "Luk#race02_6_6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_STUN,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_STUN,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_STUN,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_STUN,4000,0;
	}
	end;
}

p_track02,43,28,0	script	Tire#race02_6_1	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_6_1";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,39,28,0	script	Tire#race02_6_2	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_6_2";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,35,28,0	script	Tire#race02_6_3	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_6_3";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,55,28,0	script	Tire#race02_6_4	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_6_4";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,51,28,0	script	Tire#race02_6_5	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_6_5";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

p_track02,47,28,0	script	Tire#race02_6_6	-1,0,0,{
	end;

OnInit:
	disablenpc "Tire#race02_6_6";
	end;

OnTouchNPC:
	set .@start,rand(1,100);
	if (.@start > 0) && (.@start < 61) {
		sc_start SC_SLEEP,1000,0;
	}
	else if (.@start > 60) && (.@start < 71) {
		sc_start SC_SLEEP,2000,0;
	}
	else if (.@start > 70) && (.@start < 81) {
		sc_start SC_SLEEP,3000,0;
	}
	else if (.@start > 80) && (.@start < 91) {
		sc_start SC_SLEEP,4000,0;
	}
	end;
}

//============================================================
// NPCs for Redeeming Price Medals (Einbroch and Hugel)
//============================================================
ein_in01,85,208,5	script	Ei'felle#repay01	854,{
	if (ein_medal01 < 1) {
		mes "[Ei'felle]";
		mes "Curses! We need to deliver";
		mes "what our customers ordered,";
		mes "but we've been making nothing";
		mes "but shipshod products! If we";
		mes "only had that metal, we could";
		mes "pump up our product quality!";
		next;
		select("What metal are you talking about?");
		mes "[Ei'felle]";
		mes "There's a small village";
		mes "at the outskirts of the";
		mes "Schwaltzvalt Republic that";
		mes "gives these special medals";
		mes "that are made of this metal";
		mes "which we desperately need...";
		next;
		mes "[Ei'felle]";
		mes "We've sent one of our best";
		mes "guildsmen to get some of those";
		mes "medals for us, but he hasn't";
		mes "reported back to us quite yet.";
		mes "I'm getting pretty anxious...";
		next;
		mes "[Ei'felle]";
		mes "I mean, we need a whole";
		mes "lot of that metal to fill out";
		mes "our orders and finish our";
		mes "manufacturing research,";
		mes "but so far, none of us have";
		mes "been able to get any medals...";
		next;
		if (countitem(7515) > 0) {
			mes "["+ strcharinfo(0) +"]";
			mes "Oh! Are you talking";
			mes "about the medals that";
			mes "they give as rewards in";
			mes "the Monster Race Arena?";
			mes "I have some of those.";
			next;
			mes "[Ei'felle]";
			mes "Huh? Show them to me...";
			mes "Yes! That's exactly what";
			mes "we need! Would you please";
			mes "donate your medals so that we";
			mes "can finally make some quality";
			mes "products for our customers?";
			next;
			callsub S_Reward;
			end;
		}
		else {
			mes "[Ei'felle]";
			mes "If you happen to obtain any";
			mes "medals from the Monster";
			mes "Race Arena in Hugel, then";
			mes "please bring some of them";
			mes "to me. I'll be sure to repay";
			mes "you for your kindness...";
			close;
		}
	}
	else if ((ein_medal01 > 499) && (ein_medal01 < 1000)) {
		if (checkweight(1201,1) == 0) {
			mes "[Ei'felle]";
			mes "Goodness, you're carrying";
			mes "so many things with you!";
			mes "You'd better put some of";
			mes "it away in Kafra Storage";
			mes "before you're overwhelmed";
			mes "by the bulk of your items!";
			close;
		}
		mes "[Ei'felle]";
		mes "Ah, welcome back! I've finally";
		mes "made a breakthrough in my";
		mes "metal research! Look, I've";
		mes "developed this Glittering";
		mes "Jacket! It's lightweight and";
		mes "very durable, you see?";
		next;
		mes "[Ei'felle]";
		mes "I wouldn't be able to have";
		mes "completed this without your";
		mes "help. Now, would you like to";
		mes "receive this Glittering Jacket";
		mes "as my way of repaying you?";
		next;
		switch(select("Accept:Wait for Further Development")) {
		case 1:
			callsub S_BonusReward,500,2319;
			end;
		case 2:
			mes "[Ei'felle]";
			mes "Ah, I see. You'd rather wait";
			mes "until we develop something";
			mes "more to your liking. In that";
			mes "case, would you please donate";
			mes "more medals to my research?";
			mes "We're always low on them...";
			next;
			break;
		}
		if (countitem(7515) > 0) {
			mes "[Ei'felle]";
			mes "The other Blacksmith";
			mes "Guildsmen are doing their";
			mes "best to collect Prize Medals";
			mes "in Hugel, but they keep failing";
			mes "to win them! If you have any";
			mes "medals, then may I have some?";
			next;
			callsub S_Reward;
			end;
		}
		else {
			mes "[Ei'felle]";
			mes "If you happen to obtain any";
			mes "medals from the Monster";
			mes "Race Arena in Hugel, then";
			mes "please bring some of them";
			mes "to me. I'll be sure to repay";
			mes "you for your kindness...";
			close;
		}
	}
	else if ((ein_medal01 > 999) && (ein_medal01 < 1500)) {
		if (checkweight(1201,1) == 0) {
			mes "[Ei'felle]";
			mes "Goodness, you're carrying";
			mes "so many things with you!";
			mes "You'd better put some of";
			mes "it away in Kafra Storage";
			mes "before you're overwhelmed";
			mes "by the bulk of your items!";
			close;
		}
		mes "[Ei'felle]";
		mes "Oh, you're back!";
		mes "Thanks to all the medals";
		mes "that you've donated, I'm now";
		mes "able to manufacture a set";
		mes "of slotted armor imbued";
		mes "with a property of your choice.";
		next;
		mes "[Ei'felle]";
		mes "If you'd like, I can repay you";
		mes "now by creating a set of slotted elemental armor for you, or we";
		mes "can wait for you to donate more";
		mes "medals until I can develop";
		mes "something else for you.";
		next;
		switch(select("Accept Armor:Can I have something else?:Wait for Further Development")) {
		case 1:
			mes "[Ei'felle]";
			mes "I can manufacture one set of";
			mes "slotted Armor imbued with the";
			mes "Fire, Earth, Wind, or Water";
			mes "property. Which property would";
			mes "you like your armor to have?";
			next;
			switch(select("Fire Property:Earth Property:Wind Property:Water Property")) {
			case 1:
				callsub S_BonusReward,1000,2345;
				end;
			case 2:
				callsub S_BonusReward,1000,2351;
				end;
			case 3:
				callsub S_BonusReward,1000,2349;
				end;
			case 4:
				callsub S_BonusReward,1000,2347;
				end;
			}
		case 2:
			mes "[Ei'felle]";
			mes "Something else...?";
			mes "Oh, you must mean";
			mes "the Glittering Jacket that";
			mes "I developed earlier. After";
			mes "all, I have any other items";
			mes "to offer you for now...";
			next;
			callsub S_BonusReward,500,2319;
			end;
		case 3:
			mes "[Ei'felle]";
			mes "Ah, I see. You'd rather wait";
			mes "until we develop something";
			mes "more to your liking. In that";
			mes "case, would you please donate";
			mes "more medals to my research?";
			mes "We're always low on them...";
			next;
			break;
		}
		if (countitem(7515) > 0) {
			mes "[Ei'felle]";
			mes "The other Blacksmith";
			mes "Guildsmen are doing their";
			mes "best to collect Prize Medals";
			mes "in Hugel, but they keep failing";
			mes "to win them! If you have any";
			mes "medals, then may I have some?";
			next;
			callsub S_Reward;
			end;
		}
		else {
			mes "[Ei'felle]";
			mes "If you happen to obtain any";
			mes "medals from the Monster";
			mes "Race Arena in Hugel, then";
			mes "please bring some of them";
			mes "to me. I'll be sure to repay";
			mes "you for your kindness...";
			close;
		}
	}
	else if (ein_medal01 > 1499) {
		if (checkweight(1201,1) == 0) {
			mes "[Ei'felle]";
			mes "Goodness, you're carrying";
			mes "so many things with you!";
			mes "You'd better put some of";
			mes "it away in Kafra Storage";
			mes "before you're overwhelmed";
			mes "by the bulk of your items!";
			close;
		}
		mes "[Ei'felle]";
		mes "Ah, you're back! I've";
		mes "extracted all the metal";
		mes "from the medals you've";
		mes "given me, and I think I have";
		mes "enough to create a Level 4";
		mes "Weapon. Isn't that incredible?";
		next;
		mes "[Ei'felle]";
		mes "If you like, I can create";
		mes "one of these weapons for you";
		mes "as my way of repaying you for";
		mes "your help. What do you think?";
		next;
		switch(select("Yes, I want a Level 4 Weapon.:Can I have something else?")) {
		case 1:
			mes "[Ei'felle]";
			mes "Great, great!";
			mes "Now, which kind of";
			mes "Level 4 Weapon would";
			mes "you like? It won't do";
			mes "you much good if you";
			mes "can't equip it, right?";
			next;
			switch(select("Dagger:One Handed Sword:Two Handed Sword:Axe:Mace:Bow:Staff:Book:Spear:Katar:Knuckle:Whip:Musical Instrument")) {
			case 1:
				mes "[Ei'felle]";
				mes "So you want a Dagger?";
				mes "Which Level 4 Dagger";
				mes "would you like me to create?";
				next;
				switch(select("Ginnungagap:Grimtooth:Dragon Killer:Mail Breaker:Bazerald:Sword Breaker:Ice Pick:Sucsamad:Kitchen Knife:Azoth:Exorciser:Assassin Dagger:Moonlight Dagger:Weeder Knife:Cursed Dagger:Dagger of Counter:Combat Knife:Fortune Sword:Cancel")) {
				case 1:
					callsub S_BonusReward,1500,13002;
					end;
				case 2:
					callsub S_BonusReward,1500,1237;
					end;
				case 3:
					callsub S_BonusReward,1500,13001;
					end;
				case 4:
					callsub S_BonusReward,1500,1225;
					end;
				case 5:
					callsub S_BonusReward,1500,1231;
					end;
				case 6:
					callsub S_BonusReward,1500,1224;
					end;
				case 7:
					callsub S_BonusReward,1500,1230;
					end;
				case 8:
					callsub S_BonusReward,1500,1236;
					end;
				case 9:
					callsub S_BonusReward,1500,1229;
					end;
				case 10:
					callsub S_BonusReward,1500,1235;
					end;
				case 11:
					callsub S_BonusReward,1500,1233;
					end;
				case 12:
					callsub S_BonusReward,1500,1232;
					end;
				case 13:
					callsub S_BonusReward,1500,1234;
					end;
				case 14:
					callsub S_BonusReward,1500,1227;
					end;
				case 15:
					callsub S_BonusReward,1500,1241;
					end;
				case 16:
					callsub S_BonusReward,1500,1242;
					end;
				case 17:
					callsub S_BonusReward,1500,1228;
					end;
				case 18:
					callsub S_BonusReward,1500,1223;
					end;
				case 19:
					break;
				}
				break;
			case 2:
				mes "[Ei'felle]";
				mes "So you'd like to have";
				mes "a One Handed Sword?";
				mes "Please choose which";
				mes "Level 4 Weapon that";
				mes "you want me to create.";
				next;
				switch(select("Nagan:Immaterial Sword:Mysteltainn:Byeollungum:Star Dust Blade:Caesar's Sword:Ice Falchion:Excalibur:Edge:Cutlus:Solar Sword:Tirfing:Fireblend:Cancel")) {
				case 1:
					callsub S_BonusReward,1500,1130;
					end;
				case 2:
					callsub S_BonusReward,1500,1141;
					end;
				case 3:
					callsub S_BonusReward,1500,1138;
					end;
				case 4:
					callsub S_BonusReward,1500,1140;
					end;
				case 5:
					callsub S_BonusReward,1500,1148;
					end;
				case 6:
					callsub S_BonusReward,1500,1134;
					end;
				case 7:
					callsub S_BonusReward,1500,1131;
					end;
				case 8:
					callsub S_BonusReward,1500,1137;
					end;
				case 9:
					callsub S_BonusReward,1500,1132;
					end;
				case 10:
					callsub S_BonusReward,1500,1135;
					end;
				case 11:
					callsub S_BonusReward,1500,1136;
					end;
				case 12:
					callsub S_BonusReward,1500,1139;
					end;
				case 13:
					callsub S_BonusReward,1500,1133;
					end;
				case 14:
					break;
				}
				break;
			case 3:
				mes "[Ei'felle]";
				mes "So you'd like to have";
				mes "a Two Handed Sword?";
				mes "Please choose which";
				mes "Level 4 Weapon that";
				mes "you want me to create.";
				next;
				switch(select("Dragon Slayer:Masamune:Muramasa:Schweizersabel:Executioner:Zweihander:Katzbalger:Cancel")) {
				case 1:
					callsub S_BonusReward,1500,1166;
					end;
				case 2:
					callsub S_BonusReward,1500,1165;
					end;
				case 3:
					callsub S_BonusReward,1500,1164;
					end;
				case 4:
					callsub S_BonusReward,1500,1167;
					end;
				case 5:
					callsub S_BonusReward,1500,1169;
					end;
				case 6:
					callsub S_BonusReward,1500,1168;
					end;
				case 7:
					callsub S_BonusReward,1500,1170;
					end;
				case 8:
					break;
				}
				break;
			case 4:
				mes "[Ei'felle]";
				mes "So you'd like to have";
				mes "an Axe? Please choose";
				mes "which Level 4 Weapon";
				mes "that you want me to create.";
				next;
				switch(select("Great Axe:Guillotine:Light Epsilon:Bloody Axe:Sabbath:Slaughter:Cleaver:Tomahawk:Cancel")) {
				case 1:
					callsub S_BonusReward,1500,1364;
					end;
				case 2:
					callsub S_BonusReward,1500,1369;
					end;
				case 3:
					callsub S_BonusReward,1500,1366;
					end;
				case 4:
					callsub S_BonusReward,1500,1363;
					end;
				case 5:
					callsub S_BonusReward,1500,1365;
					end;
				case 6:
					callsub S_BonusReward,1500,1367;
					end;
				case 7:
					callsub S_BonusReward,1500,1305;
					end;
				case 8:
					callsub S_BonusReward,1500,1368;
					end;
				case 9:
					break;
				}
				break;
			case 5:
				mes "[Ei'felle]";
				mes "So you'd like to have";
				mes "a Mace? Please choose";
				mes "which Level 4 Weapon";
				mes "that you want me to create.";
				next;
				switch(select("Golden Mace:Grand Cross:Long Mace:Spike:Slash:Quadrille:Cancel")) {
				case 1:
					callsub S_BonusReward,1500,1524;
					end;
				case 2:
					callsub S_BonusReward,1500,1528;
					end;
				case 3:
					callsub S_BonusReward,1500,1525;
					end;
				case 4:
					callsub S_BonusReward,1500,1523;
					end;
				case 5:
					callsub S_BonusReward,1500,1526;
					end;
				case 6:
					callsub S_BonusReward,1500,1527;
					end;
				case 7:
					break;
				}
				break;
			case 6:
				mes "[Ei'felle]";
				mes "So you'd like to have";
				mes "a Bow? Please choose";
				mes "which Level 4 Weapon";
				mes "that you want me to create.";
				next;
				switch(select("Roguemaster's Bow:Dragon Wing:Rudra's Bow:Ballista:Cancel")) {
				case 1:
					callsub S_BonusReward,1500,1719;
					end;
				case 2:
					callsub S_BonusReward,1500,1724;
					end;
				case 3:
					callsub S_BonusReward,1500,1720;
					end;
				case 4:
					callsub S_BonusReward,1500,1722;
					end;
				case 5:
					break;
				}
				break;
			case 7:
				mes "[Ei'felle]";
				mes "So you'd like to have";
				mes "a Staff? Please choose";
				mes "which Level 4 Weapon";
				mes "that you want me to create.";
				next;
				switch(select("Wing Staff:Wizardry Staff:Cancel")) {
				case 1:
					callsub S_BonusReward,1500,1616;
					end;
				case 2:
					callsub S_BonusReward,1500,1473;
					end;
				case 3:
					break;
				}
				break;
			case 8:
				mes "[Ei'felle]";
				mes "So you'd like to have";
				mes "a Book? Please choose";
				mes "which Level 4 Weapon";
				mes "that you want me to create.";
				next;
				switch(select("Legacy of Dragon:Book of the Apocalypse:Girl's Diary:Hardcover Book:Cancel")) {
				case 1:
					callsub S_BonusReward,1500,1559;
					end;
				case 2:
					callsub S_BonusReward,1500,1557;
					end;
				case 3:
					callsub S_BonusReward,1500,1558;
					end;
				case 4:
					callsub S_BonusReward,1500,1561;
					end;
				case 5:
					break;
				}
				break;
			case 9:
				mes "[Ei'felle]";
				mes "So you'd like to have a";
				mes "Spear? Please choose";
				mes "which Level 4 Weapon";
				mes "that you want me to create.";
				next;
				switch(select("Gae Bolg:Gelerdria:Gungnir:Skewer:Longinus's Spear:Brionac:Bill Guisarme:Zephyrus:Crescent Scythe:Tjungkuletti:Hellfire:Cancel")) {
				case 1:
					callsub S_BonusReward,1500,1474;
					end;
				case 2:
					callsub S_BonusReward,1500,1414;
					end;
				case 3:
					callsub S_BonusReward,1500,1413;
					end;
				case 4:
					callsub S_BonusReward,1500,1415;
					end;
				case 5:
					callsub S_BonusReward,1500,1469;
					end;
				case 6:
					callsub S_BonusReward,1500,1470;
					end;
				case 7:
					callsub S_BonusReward,1500,1467;
					end;
				case 8:
					callsub S_BonusReward,1500,1468;
					end;
				case 9:
					callsub S_BonusReward,1500,1466;
					end;
				case 10:
					callsub S_BonusReward,1500,1416;
					end;
				case 11:
					callsub S_BonusReward,1500,1471;
					end;
				case 12:
					break;
				}
				break;
			case 10:
				mes "[Ei'felle]";
				mes "So you'd like to have a";
				mes "Katar? Please choose";
				mes "which Level 4 Weapon";
				mes "that you want me to create.";
				next;
				switch(select("Infiltrator:Bloody Roar:Unholy Touch:Cancel")) {
				case 1:
					callsub S_BonusReward,1500,1261;
					end;
				case 2:
					callsub S_BonusReward,1500,1265;
					end;
				case 3:
					callsub S_BonusReward,1500,1263;
					end;
				case 4:
					break;
				}
				break;
			case 11:
				mes "[Ei'felle]";
				mes "So you'd like to have a";
				mes "Knuckle? Please choose";
				mes "which Level 4 Weapon";
				mes "that you want me to create.";
				next;
				switch(select("Hatii Claw:Berserk:Kaiser Knuckle:Cancel")) {
				case 1:
					callsub S_BonusReward,1500,1815;
					end;
				case 2:
					callsub S_BonusReward,1500,1814;
					end;
				case 3:
					callsub S_BonusReward,1500,1813;
					end;
				case 4:
					break;
				}
				break;
			case 12:
				mes "[Ei'felle]";
				mes "So you'd like to have a";
				mes "Whip? Please choose";
				mes "which Level 4 Weapon";
				mes "that you want me to create.";
				next;
				switch(select("Lariat:Rapture Rose:Blade Whip:Chemeti:Queen's Whip:Cancel")) {
				case 1:
					callsub S_BonusReward,1500,1962;
					end;
				case 2:
					callsub S_BonusReward,1500,1963;
					end;
				case 3:
					callsub S_BonusReward,1500,1969;
					end;
				case 4:
					callsub S_BonusReward,1500,1964;
					end;
				case 5:
					callsub S_BonusReward,1500,1970;
					end;
				case 6:
					break;
				}
				break;
			case 13:
				mes "[Ei'felle]";
				mes "So you'd like to have a";
				mes "Musical Instrument? Please";
				mes "choose which Level 4 Weapon";
				mes "that you want me to create.";
				next;
				switch(select("Oriental Lute:Electric Guitar:Cancel")) {
				case 1:
					callsub S_BonusReward,1500,1918;
					end;
				case 2:
					callsub S_BonusReward,1500,1913;
					end;
				case 3:
					break;
				}
				break;
			}
			break;
		case 2:
			mes "[Ei'felle]";
			mes "Something else?";
			mes "Oh, alright then, would";
			mes "you like to have a Glittering";
			mes "Jacket, or a set of slotted";
			mes "elemental Armor? Please go";
			mes "ahead and make your choice~";
			next;
			switch(select("Glittering Jacket:Fire Property Armor:Earth Property Armor:Wind Property Armor:Water Property Armor:Cancel")) {
			case 1:
				callsub S_BonusReward,500,2319;
				end;
			case 2:
				callsub S_BonusReward,1000,2345;
				end;
			case 3:
				callsub S_BonusReward,1000,2351;
				end;
			case 4:
				callsub S_BonusReward,1000,2349;
				end;
			case 5:
				callsub S_BonusReward,1000,2347;
				end;
			case 6:
				break;
			}
			break;
		}
	}
	else {
		mes "[Ei'felle]";
		mes "Oh, how have you been?";
		mes "Thank you so much for";
		mes "donating so many medals,";
		mes "they've been helpful in my";
		mes "research. Still, I need more";
		mes "and more of them everyday...";
		next;
		if (countitem(7515) > 0) {
			mes "[Ei'felle]";
			mes "The other Blacksmith";
			mes "Guildsmen are doing their";
			mes "best to collect Prize Medals";
			mes "in Hugel, but they keep failing";
			mes "to win them! If you have any";
			mes "medals, then may I have some?";
			next;
			callsub S_Reward;
			end;
		}
		else {
			mes "[Ei'felle]";
			mes "If you happen to obtain any";
			mes "medals from the Monster";
			mes "Race Arena in Hugel, then";
			mes "please bring some of them";
			mes "to me. I'll be sure to repay";
			mes "you for your kindness...";
			close;
		}
	}
	close;

S_Reward:
	switch(select("Sure:No")) {
	case 1:
		mes "[Ei'felle]";
		mes "Oh, thank you so much!";
		mes "I can use the metal in those";
		mes "medals to produce some high";
		mes "quality products. Now, how";
		mes "shall I repay you for giving me";
		mes "some of your Prize Medals?";
		next;
		switch(select("Base Experience:Job Experience:No, I'm just glad to help.:How's your research progressing?")) {
		case 1:
			mes "[Ei'felle]";
			mes "You just want to improve";
			mes "yourself, huh? Well, I dunno";
			mes "if you want to get stronger,";
			mes "smarter, or faster, but I can";
			mes "coach you on some visualization if you like. Now, relax with me~";
			mes "physical development.";
			next;
			mes "[Ei'felle]";
			mes "Focus... and believe.";
			mes "Believe that you are";
			mes "becoming what you want";
			mes "to be! B-believe... with";
			mes "all of your freakin' heart!";
			emotion e_omg,1;
			emotion e_omg;
			next;
			mes "[Ei'felle]";
			mes "*Phew* How's that?";
			mes "Now do you see the";
			mes "power of hope?";
			delitem 7515,1; //Marvelous_Medal
			if (BaseLevel < 21)
				getexp 200,0;
			else if ((BaseLevel > 20) && (BaseLevel < 31))
				getexp 300,0;
			else if ((BaseLevel > 30) && (BaseLevel < 41))
				getexp 1000,0;
			else if ((BaseLevel > 40) && (BaseLevel < 51))
				getexp 1800,0;
			else if ((BaseLevel > 50) && (BaseLevel < 61))
				getexp 2500,0;
			else if ((BaseLevel > 60) && (BaseLevel < 71))
				getexp 4700,0;
			else if ((BaseLevel > 70) && (BaseLevel < 81))
				getexp 5500,0;
			else if ((BaseLevel > 80) && (BaseLevel < 96))
				getexp 7000,0;
			else if ((BaseLevel > 95) && (BaseLevel < 111))
				getexp 8800,0;
			else if ((BaseLevel > 110) && (BaseLevel < 126))
				getexp 10900,0;
			else if ((BaseLevel > 125) && (BaseLevel < 141))
				getexp 13300,0;
			else
				getexp 16000,0;
			close;
		case 2:
			mes "[Ei'felle]";
			mes "You want to become more";
			mes "competent in your job? Um...";
			mes "Alright, we can do that. Just";
			mes "meditate with me, and we'll go";
			mes "do some imagery work together.";
			mes "I'm real good at this you know.";
			next;
			mes "[Ei'felle]";
			mes "J-just... visualize";
			mes "yourself... being...";
			mes "t-totally... awesome!";
			mes "You've gotta see it, and";
			mes "you've gotta feel it in your";
			mes "freakin' heart and mind!";
			emotion e_omg,1;
			emotion e_omg;
			next;
			mes "[Ei'felle]";
			mes "Yeap, it doesn't matter";
			mes "if it's real or imagined...";
			mes "Your mind will work on";
			mes "whatever you feed it.";
			mes "Placebos and psychosomatic symptoms-- it all ties together.";
			delitem 7515,1; //Marvelous_Medal
			if (BaseLevel < 21)
				getexp 0,150;
			else if ((BaseLevel > 20) && (BaseLevel < 31))
				getexp 0,200;
			else if ((BaseLevel > 30) && (BaseLevel < 41))
				getexp 0,750;
			else if ((BaseLevel > 40) && (BaseLevel < 51))
				getexp 0,1800;
			else if ((BaseLevel > 50) && (BaseLevel < 61))
				getexp 0,2500;
			else if ((BaseLevel > 60) && (BaseLevel < 71))
				getexp 0,3525;
			else if ((BaseLevel > 70) && (BaseLevel < 81))
				getexp 0,4125;
			else if ((BaseLevel > 80) && (BaseLevel < 96)) 
				getexp 0,5250;
			else if ((BaseLevel > 95) && (BaseLevel < 111))
				getexp 0,6600;
			else if ((BaseLevel > 110) && (BaseLevel < 126))
				getexp 0,8175;
			else if ((BaseLevel > 125) && (BaseLevel < 141))
				getexp 0,9975;
			else
				getexp 0,12000;
			close;
		case 3:
			mes "[Ei'felle]";
			mes "What th--?! You sure";
			mes "you don't want anything?";
			mes "Hm, well, I think it's kind";
			mes "of bad karma if I don't give";
			mes "you anything in return, so...";
			mes "Think of something. Quick.";
			next;
			mes "["+ strcharinfo(0) +"]";
			mes "Er, just use the medals";
			mes "to further your manufacturing";
			mes "research, and then you can";
			mes "pay me back if your develop";
			mes "something new. It's, um, like";
			mes "an investment in your work!";
			next;
			mes "[Ei'felle]";
			mes "Yeah... Yeah.";
			mes "Okay, I see where";
			mes "you're coming from.";
			mes "That's pretty smart.";
			mes "Okay, I'll repay you when";
			mes "we develop something new!";
			next;
			mes "[Ei'felle]";
			mes "Anyway, I need as many";
			mes "medals as I can get as";
			mes "soon as I can. How many";
			mes "medals do you think you";
			mes "can give me right now?";
			next;
			switch(select("Take them all.:How about this much?:No, I changed my mind.")) {
			case 1:
				mes "[Ei'felle]";
				mes "Th-thank you!";
				mes "Thank you so much!";
				mes "Your help will greatly";
				mes "advance my research,";
				mes "and I promise to repay";
				mes "you as soon as I can!";
				set .@medals,countitem(7515);
				delitem 7515,.@medals; //Marvelous_Medal
				set ein_medal01,ein_medal01+.@medals;
				close;
			case 2:
				mes "[Ei'felle]";
				mes "Alright, please enter the";
				mes "number of medals that";
				mes "you're willing to give me.";
				mes "Please don't enter any";
				mes "number greater than 100.";
				next;
				while(1) {
					input .@input;
					if (.@input == 0) {
						mes "[Ei'felle]";
						mes "Aw, so you've decided";
						mes "to cancel? Well, it's your";
						mes "choice, but I'm still so";
						mes "disappointed. Please come";
						mes "back if you change your mind...";
						close;
					}
					else if (.@input < 0 || .@input > 100) {
						mes "[Ei'felle]";
						mes "Remember, you can only";
						mes "enter a number from 1 to 100.";
						mes "If you want to give me more";
						mes "medals, then perhaps you";
						mes "should just give them all to me~ ^FFFFFF ^000000";
						next;
					}
					else
						break;
				}
				if (countitem(7515) < .@input) {
					mes "[Ei'felle]";
					mes "I'm sorry, but I don't";
					mes "think you have that many";
					mes "medals with you. Make sure";
					mes "that you offer me an amount of";
					mes "medals that you actually have.";
					emotion e_heh;
					close;
				}
				else {
					mes "[Ei'felle]";
					mes "Th-thank you!";
					mes "Thank you so much!";
					mes "Your help will greatly";
					mes "advance my research,";
					mes "and I promise to repay";
					mes "you as soon as I can!";
					delitem 7515,.@input; //Marvelous_Medal
					set ein_medal01,ein_medal01+.@input;
					close;
				}
			case 3:
				mes "[Ei'felle]";
				mes "Oh, alright...";
				mes "Still, I really need";
				mes "those medals, so if you";
				mes "change your mind, please";
				mes "come back as soon as you can.";
				close;
			}
			delitem 7515,1; //Marvelous_Medal
			set ein_medal01,1;
			close;
		case 4:
			mes "[Ei'felle]";
			mes "Well, I've been able to";
			mes "create a Glittering Jacket";
			mes "using the medals that you've";
			mes "brought to me. But I just know";
			mes "I can make something better";
			mes "if you'd bring me more!";
			next;
			mes "[Ei'felle]";
			mes "As of now, I have the metal";
			mes "from ^FF0000"+ ein_medal01 +"^000000 Prizes Medals that";
			mes "you've donated to me. The more";
			mes "that you bring, the closer I can get to making a new breakthrough!";
			close;
		}
	case 2:
		mes "[Ei'felle]";
		mes "Oh, alright...";
		mes "Still, I really need";
		mes "those medals, so if you";
		mes "change your mind, please";
		mes "come back as soon as you can.";
		emotion e_sob;
		close;
	}

S_BonusReward:
	mes "[Ei'felle]";
	if (getarg(1) == 2319) {
		mes "Do you really want";
		mes "this "+getitemname(getarg(1))+"?";
		mes "You may want to forego this";
		mes "reward in favor of getting";
		mes "something better later...";
	}
	else if ((getarg(1) == 2345) || (getarg(1) == 2347) || (getarg(1) == 2349) || (getarg(1) == 2351)) {
		mes "Are you sure that you want";
		mes "to accept this set of slotted";
		if (getarg(1) == 2345)
			mes "Fire property Armor? If you do,";
		else if (getarg(1) == 2351)
			mes "Earth property Armor? If you do,";
		else if (getarg(1) == 2349)
			mes "Wind property Armor? If you do,";
		else if (getarg(1) == 2347)
			mes "Water property Armor? If you do,";
		mes "I'll need more medals from you";
		mes "to make further advancements";
		mes "in my manufacturing research.";
	}
	else {
		mes "So you wish to have a";
		mes getitemname(getarg(1))+"? If you choose";
		mes "to have this Level 4 Weapon,";
		mes "I'll need to melt many of the";
		mes "medals that you've donated";
		mes "to me. Shall we proceed?";
	}
	next;
	switch(select("Decline:Accept")) {
	case 1:
		mes "["+ strcharinfo(0) +"]";
		mes "W-wait, I changed my";
		mes "mind. Would it be fine";
		mes "if I asked you to give";
		mes "me a reward later?";
		next;
		mes "[Ei'felle]";
		if (!getiteminfo(getarg(1),13)) { //use item level to determine if the item is armor (no weapon level)
			mes "Of course, of course.";
			mes "Remember, if you donate";
			mes "more medals to me, then";
			mes "I'll be able to create items";
			mes "of higher quality for you~";
		}
		else {
			mes "I don't think I can develop";
			mes "anything better than these Level 4 Weapons, but after making";
			mes "such a big investment, you should decide on what you want carefully.";
		}
		close;
	case 2:
		mes "[Ei'felle]";
		if (getarg(1) == 2319) {
			mes "Here you are, I trust that";
			mes "this "+getitemname(getarg(1))+" will";
			mes "serve you well. Thank you";
			mes "for your help, and I hope that";
			mes "you'll continue to donate your";
			mes "medals for my metal research~";
		}
		else if ((getarg(1) == 2345) || (getarg(1) == 2347) || (getarg(1) == 2349) || (getarg(1) == 2351)) {
			mes "Great choice! I'm sure";
			if (getarg(1) == 2345)
				mes "that this set of slotted Fire";
			else if (getarg(1) == 2351)
				mes "that this set of slotted Earth";
			else if (getarg(1) == 2349)
				mes "that this set of slotted Wind";
			else if (getarg(1) == 2347)
				mes "that this set of slotted Water";
			mes "property Armor will serve you";
			mes "well. Thank you for your help,";
			mes "and if you get more medals,";
			mes "please donate them to me~";
		}
		else {
			mes "Once again, I'd like to";
			mes "thank you for providing";
			mes "me with all of those medals.";
			mes "I imagine it must have been";
			mes "difficult. In any case, I would";
			mes "appreciate your continued help~";
		}
		set ein_medal01,ein_medal01-getarg(0);
		getitem getarg(1),1;
		close;
	}

}
	
hugel,71,83,4	script	Wayne	900,{
	if (checkweight(1201,1) == 0) {
		mes "[Wayne]";
		mes "Hold on a second...";
		mes "If you want to exchange";
		mes "your Prize Medals for items,";
		mes "you'd better free up more space";
		mes "in your Inventory first. Why don't you use your Kafra Storage?";
		close;
	}
	mes "[Wayne]";
	mes "Hello, there! Ever wonder";
	mes "what you could do with all";
	mes "the Prize Medals you can win";
	mes "in Monster Race Arena? You";
	mes "can donate them in Einbroch";
	mes "to the Blacksmith Guild...";
	next;
	mes "[Wayne]";
	mes "...Or you can exchange them";
	mes "for items, right here and right";
	mes "now, with me. As always, the";
	mes "choice is really up to you.";
	next;
	switch(select("Prize Medal Exchange:Cancel")) {
	case 1:
		if (checkweight(909,550) == 0) {
			mes "[Wayne]";
			mes "Hold on a second...";
			mes "If you want to exchange";
			mes "your Prize Medals for items,";
			mes "you'd better free up more space";
			mes "in your Inventory first. Why don't you use your Kafra Storage?";
			close;
		}
		else {
			mes "[Wayne]";
			mes "Now, how many Prize Medals";
			mes "would you like to exchange?";
			mes "It doesn't take a genius to";
			mes "figure out that you can get";
			mes "more valuable items by trading";
			mes "more Prize Medals at a time.";
			next;
			switch(select("1 Prize Medal:3 Prize Medals:7 Prize Medals:8 Prize Medals:16 Prize Medals:25 Prize Medals:42 Prize Medals:59 Prize Medals")) {
			case 1:
				mes "[Wayne]";
				mes "Now, please choose";
				mes "which of the following item";
				mes "sets that you'd like to receive";
				mes "in exchange for 1 Prize Medal.";
				next;
				switch(select("2 Hinale Leaflets:2 Aloe Leaflets:1 Mastela Fruit:5 Witch Starsands:4 Condensed Red Potions")) {
				case 1:
					if (countitem(7515) < 1) {
						mes "[Wayne]";
						mes "Hey, you don't have";
						mes "enough Prize Medals with";
						mes "you. Go and get some more";
						mes "if you want to exchange";
						mes "them with me for anything.";
						close;
					}
					else {
						mes "[Wayne]";
						mes "There you go~";
						mes "Thanks for using my";
						mes "service, and I hope that";
						mes "you come visit me again";
						mes "soon. Enjoy the monster";
						mes "races, fair adventurer~";
						delitem 7515,1; //Marvelous_Medal
						getitem 520,2; //Leaflet_Of_Hinal
						close;
					}
				case 2:
					if (countitem(7515) < 1) {
						mes "[Wayne]";
						mes "Hey, you don't have";
						mes "enough Prize Medals with";
						mes "you. Go and get some more";
						mes "if you want to exchange";
						mes "them with me for anything.";
						close;
					}
					else {
						mes "[Wayne]";
						mes "There you go~";
						mes "Thanks for using my";
						mes "service, and I hope that";
						mes "you come visit me again";
						mes "soon. Enjoy the monster";
						mes "races, fair adventurer~";
						delitem 7515,1; //Marvelous_Medal
						getitem 521,2; //Leaflet_Of_Aloe
						close;
					}
				case 3:
					if (countitem(7515) < 1) {
						mes "[Wayne]";
						mes "Hey, you don't have";
						mes "enough Prize Medals with";
						mes "you. Go and get some more";
						mes "if you want to exchange";
						mes "them with me for anything.";
						close;
					}
					else {
						mes "[Wayne]";
						mes "There you go~";
						mes "Thanks for using my";
						mes "service, and I hope that";
						mes "you come visit me again";
						mes "soon. Enjoy the monster";
						mes "races, fair adventurer~";
						delitem 7515,1; //Marvelous_Medal
						getitem 522,1; //Fruit_Of_Mastela
						close;
					}
				case 4:
					if (countitem(7515) < 1) {
						mes "[Wayne]";
						mes "Hey, you don't have";
						mes "enough Prize Medals with";
						mes "you. Go and get some more";
						mes "if you want to exchange";
						mes "them with me for anything.";
						close;
					}
					else {
						mes "[Wayne]";
						mes "There you go~";
						mes "Thanks for using my";
						mes "service, and I hope that";
						mes "you come visit me again";
						mes "soon. Enjoy the monster";
						mes "races, fair adventurer~";
						delitem 7515,1; //Marvelous_Medal
						getitem 1061,5; //Starsand_Of_Witch
						close;
					}
				case 5:
					if (countitem(7515) < 1) {
						mes "[Wayne]";
						mes "Hey, you don't have";
						mes "enough Prize Medals with";
						mes "you. Go and get some more";
						mes "if you want to exchange";
						mes "them with me for anything.";
						close;
					}
					else {
						mes "[Wayne]";
						mes "There you go~";
						mes "Thanks for using my";
						mes "service, and I hope that";
						mes "you come visit me again";
						mes "soon. Enjoy the monster";
						mes "races, fair adventurer~";
						delitem 7515,1; //Marvelous_Medal
						getitem 545,4; //Red_Slim_Potion
						close;
					}
				}
			case 2:
				mes "[Wayne]";
				mes "Now, please choose";
				mes "which of the following item";
				mes "sets that you'd like to receive";
				mes "in exchange for 3 Prize Medals.";
				next;
				switch(select("1 Royal Jelly:6 Holy Waters")) {
				case 1:
					if (countitem(7515) < 3) {
						mes "[Wayne]";
						mes "Hey, you don't have";
						mes "enough Prize Medals with";
						mes "you. Go and get some more";
						mes "if you want to exchange";
						mes "them with me for anything.";
						close;
					}
					else {
						mes "[Wayne]";
						mes "There you go~";
						mes "Thanks for using my";
						mes "service, and I hope that";
						mes "you come visit me again";
						mes "soon. Enjoy the monster";
						mes "races, fair adventurer~";
						delitem 7515,3; //Marvelous_Medal
						getitem 526,1; //Royal_Jelly
						close;
					}
				case 2:
					if (countitem(7515) < 3) {
						mes "[Wayne]";
						mes "Hey, you don't have";
						mes "enough Prize Medals with";
						mes "you. Go and get some more";
						mes "if you want to exchange";
						mes "them with me for anything.";
						close;
					}
					else {
						mes "[Wayne]";
						mes "There you go~";
						mes "Thanks for using my";
						mes "service, and I hope that";
						mes "you come visit me again";
						mes "soon. Enjoy the monster";
						mes "races, fair adventurer~";
						delitem 7515,3; //Marvelous_Medal
						getitem 523,6; //Holy_Water
						close;
					}
				}
			case 3:
				mes "[Wayne]";
				mes "Now, please choose";
				mes "which of the following item";
				mes "sets that you'd like to receive";
				mes "in exchange for 7 Prize Medals.";
				next;
				switch(select("1 Cookie Bag:1 First Aid Kit")) {
				case 1:
					if (countitem(7515) < 7) {
						mes "[Wayne]";
						mes "Hey, you don't have";
						mes "enough Prize Medals with";
						mes "you. Go and get some more";
						mes "if you want to exchange";
						mes "them with me for anything.";
						close;
					}
					else {
						mes "[Wayne]";
						mes "There you go~";
						mes "Thanks for using my";
						mes "service, and I hope that";
						mes "you come visit me again";
						mes "soon. Enjoy the monster";
						mes "races, fair adventurer~";
						delitem 7515,7; //Marvelous_Medal
						getitem 12130,1; //Cookie_Bag
						close;
					}
				case 2:
					if (countitem(7515) < 7) {
						mes "[Wayne]";
						mes "Hey, you don't have";
						mes "enough Prize Medals with";
						mes "you. Go and get some more";
						mes "if you want to exchange";
						mes "them with me for anything.";
						close;
					}
					else {
						mes "[Wayne]";
						mes "There you go~";
						mes "Thanks for using my";
						mes "service, and I hope that";
						mes "you come visit me again";
						mes "soon. Enjoy the monster";
						mes "races, fair adventurer~";
						delitem 7515,7; //Marvelous_Medal
						getitem 12110,1; //First_Aid_Kit
						close;
					}
				}
			case 4:
				mes "[Wayne]";
				mes "Now, please choose";
				mes "which of the following item";
				mes "sets that you'd like to receive";
				mes "in exchange for 8 Prize Medals. Well, we have only 1 set, but...";
				next;
				select("1 Gift Box");
				if (countitem(7515) < 8) {
					mes "[Wayne]";
					mes "Hey, you don't have";
					mes "enough Prize Medals with";
					mes "you. Go and get some more";
					mes "if you want to exchange";
					mes "them with me for anything.";
					close;
				}
				else {
					mes "[Wayne]";
					mes "There you go~";
					mes "Thanks for using my";
					mes "service, and I hope that";
					mes "you come visit me again";
					mes "soon. Enjoy the monster";
					mes "races, fair adventurer~";
					delitem 7515,8; //Marvelous_Medal
					getitem 644,1; //Gift_Box
					close;
				}
			case 5:
				mes "[Wayne]";
				mes "Now, please choose";
				mes "which of the following item";
				mes "sets that you'd like to receive";
				mes "in exchange for 16 Prize Medals. Well, we have only 1 set, but...";
				next;
				select("1 Old Blue Box");
				if (countitem(7515) < 16) {
					mes "[Wayne]";
					mes "Hey, you don't have";
					mes "enough Prize Medals with";
					mes "you. Go and get some more";
					mes "if you want to exchange";
					mes "them with me for anything.";
					close;
				}
				else {
					mes "[Wayne]";
					mes "There you go~";
					mes "Thanks for using my";
					mes "service, and I hope that";
					mes "you come visit me again";
					mes "soon. Enjoy the monster";
					mes "races, fair adventurer~";
					delitem 7515,16; //Marvelous_Medal
					getitem 603,1; //Old_Blue_Box
					close;
				}
			case 6:
				mes "[Wayne]";
				mes "Now, please choose";
				mes "which of the following item";
				mes "sets that you'd like to receive";
				mes "in exchange for 25 Prize Medals. Well, we have only 1 set, but...";
				next;
				select("1 Taming Gift Set");
				if (countitem(7515) < 25) {
					mes "[Wayne]";
					mes "Hey, you don't have";
					mes "enough Prize Medals with";
					mes "you. Go and get some more";
					mes "if you want to exchange";
					mes "them with me for anything.";
					close;
				}
				else {
					mes "[Wayne]";
					mes "There you go~";
					mes "Thanks for using my";
					mes "service, and I hope that";
					mes "you come visit me again";
					mes "soon. Enjoy the monster";
					mes "races, fair adventurer~";
					delitem 7515,25; //Marvelous_Medal
					getitem 12105,1; //Set_Of_Taiming_Item
					close;
				}
			case 7:
				mes "[Wayne]";
				mes "Now, please choose";
				mes "which of the following item";
				mes "sets that you'd like to receive";
				mes "in exchange for 42 Prize Medals. Well, we have only 1 set, but...";
				next;
				select("1 Old Purple Box");
				if (countitem(7515) < 42) {
					mes "[Wayne]";
					mes "Hey, you don't have";
					mes "enough Prize Medals with";
					mes "you. Go and get some more";
					mes "if you want to exchange";
					mes "them with me for anything.";
					close;
				}
				else {
					mes "[Wayne]";
					mes "There you go~";
					mes "Thanks for using my";
					mes "service, and I hope that";
					mes "you come visit me again";
					mes "soon. Enjoy the monster";
					mes "races, fair adventurer~";
					delitem 7515,42; //Marvelous_Medal
					getitem 617,1; //Old_Violet_Box
					close;
				}
			case 8:
				mes "[Wayne]";
				mes "Now, please choose";
				mes "which of the following item";
				mes "sets that you'd like to receive";
				mes "in exchange for 59 Prize Medals. Well, we have only 1 set, but...";
				next;
				select("1 Poring Box");
				if (countitem(7515) < 59) {
					mes "[Wayne]";
					mes "Hey, you don't have";
					mes "enough Prize Medals with";
					mes "you. Go and get some more";
					mes "if you want to exchange";
					mes "them with me for anything.";
					close;
				}
				else {
					mes "[Wayne]";
					mes "There you go~";
					mes "Thanks for using my";
					mes "service, and I hope that";
					mes "you come visit me again";
					mes "soon. Enjoy the monster";
					mes "races, fair adventurer~";
					delitem 7515,59; //Marvelous_Medal
					getitem 12109,1; //Poring_Box
					close;
				}
			}
		}
	case 2:
		mes "[Wayne]";
		mes "Well, just keep in mind";
		mes "that you can always come";
		mes "to me to trade in your Prize";
		mes "Medals for consumable items.";
		mes "That guy in Einbroch? Not sure";
		mes "what he'd give you for them...";
		next;
		mes "[Wayne]";
		mes "All I know is that he";
		mes "needs a whole lot of medals";
		mes "for the work that he's doing.";
		mes "Still, I hear that he just may";
		mes "make your donations worth";
		mes "all your effort, you know?";
		close;
	}
}

//============================================================
// Monstrer Race Affiliated NPCs
//============================================================
airplane,246,47,1	script	Eocatt#decoy01	878,{
	mes "[Eocatt]";
	mes "There's an old, humble";
	mes "village on the outskirts of";
	mes "the Schwaltzvalt Republic.";
	mes "It was just a tiny blip on the";
	mes "map until they opened up";
	mes "their Monster Race Arena!";
	next;
	mes "[Eocatt]";
	mes "If you win wagers on the";
	mes "monster race games, you'll";
	mes "be rewarded with these Prize";
	mes "Medals that are made of some";
	mes "really rare metal. I hear this metal's in demand in Einbroch...";
	next;
	mes "[Eocatt]";
	mes "Right, right...";
	mes "I remember now, the";
	mes "town was named Hugel.";
	mes "I'm sure there's other fun";
	mes "things to do there, but I'm sure that the Race Arena is a must!";
	close;
}

hugel,85,93,5	script	Mudie#dummy01	866,{
	mes "[Mudie]";
	mes "The Monster Races";
	mes "are probably the biggest";
	mes "attraction here in Hugel.";
	mes "We don't have much else";
	mes "going on here, I'm afraid.";
	next;
	mes "[Mudie]";
	mes "If you want to go visit";
	mes "the Monster Race Arena,";
	mes "just head towards the";
	mes "7 'o clock direction on";
	mes "your Mini-Map, and look for";
	mes "the hill surrounded by a fence.";
	next;
	mes "[Mudie]";
	mes "You should find the arena";
	mes "somewhere around that area.";
	mes "Anyway, if you want to wager";
	mes "or just watch the races, just";
	mes "ask one of the Eckar brothers. I hope you enjoy our little town~";
	close;
}

p_track02,32,45,5	script	Eccentric Scholar#double	755,{
	mes "[Eccentric Scholar]";
	mes "Let's see now...";
	mes "Monster 1's average speed";
	mes "and luck, as affected by";
	mes "wind resistance, fatigue...";
	mes "What's the approximate";
	mes "probability of winning...?";
	next;
	mes "[Eccentric Scholar]";
	mes "Crunch it into my";
	mes "algorithm... Carry the two...";
	mes "Wait, how many significant";
	mes "figures should I be using?";
	mes "Ah, right, 7, to account for x,";
	mes "a value representing--";
	next;
	mes "["+ strcharinfo(0) +"]";
	mes "Excuse me, but";
	mes "what are you doing?";
	next;
	mes "[Eccentric Scholar]";
	mes "S-silence!";
	mes "I must complete";
	mes "my calculations!";
	mes "Now, where was I...?";
	specialeffect EF_CLAYMORE;
	emotion e_an;
	close;
}

p_track02,69,31,1	script	Blacksmith Guildsman#dou	726,{
	if ($@mon_time_2_2 == 0) {
		mes "[Blacksmith Guildsman]";
		mes "How many times must";
		mes "I wager on these races?!";
		mes "I haven't won even once!";
		mes "Oh, I must have the worst";
		mes "luck in wagering history!";
		emotion e_sob;
		next;
		mes "[Blacksmith Guildsman]";
		mes "I've been assigned by my";
		mes "guild to bring back some";
		mes "Prize Medals to Einbroch...";
		mes "They're apparently made";
		mes "with some rare metal, but...";
		mes "It's too hard for me to win~!";
		emotion e_swt2;
		close;
	}
	else {
		mes "[Blacksmith Guildsman]";
		mes "Run! Go go go!";
		mes "I need to win some";
		mes "medals! Otherwise, I'll";
		mes "be too ashamed to return";
		mes "home to Einbroch! F-faster!";
		emotion e_korea;
		close;
	}
}

p_track02,53,45,3	script	Valiant Knight#double	733,{
	mes "[Valiant Knight]";
	mes "Hey, have you been";
	mes "wagering on the races?";
	mes "If you've got a hot tip, then";
	mes "would you share it with me?";
	mes "I've won some wagers... But";
	mes "I really wanna win more!";
	next;
	mes "[Valiant Knight]";
	mes "Hah hah! It's like I tell";
	mes "those Blacksmiths! If they";
	mes "don't wanna lose all the time,";
	mes "then they should just bet on the same monster. Me? I always";
	mes "bet on the black Deviruchi~";
	next;
	mes "[Valiant Knight]";
	mes "You too...!";
	mes "Always bet";
	mes "on Deviruchi!";
	emotion e_no1;
	close;
}

p_track01,27,47,5	script	Drunkard#single	853,{
	mes "[Familiar Drunkard]";
	mes "Grrr...! ^333333*Hiccup*^000000";
	mes "I just gotta win this";
	mes "next game! I hafta do it!";
	mes "Hey, you! Which number is";
	mes "your lucky number? Huh?";
	next;
	mes "["+ strcharinfo(0) +"]";
	mes "I, er...";
	next;
	mes "[Familiar Drunkard]";
	mes "C'mon, I need your";
	mes "lucky number cuz I ran";
	mes "out of mine! Tell me!";
	mes "Tell me! ^333333*Hiccup~*^000000";
	close;
}

p_track01,69,31,1	script	Blacksmith Guildsman#sin	107,{
	mes "[Blacksmith Guildsman]";
	mes "How can this be so hard?";
	mes "Why can't I win at least";
	mes "one of these races? Argh!";
	mes "I can't go back until I get";
	mes "at least one Prize Medal!";
	next;
	mes "[Blacksmith Guildsman]";
	mes "Yeah, I've been assigned";
	mes "by the Einbroch Factory to";
	mes "get some Prize Medals since";
	mes "they're made of this rare medal. But it looks like they picked";
	mes "the wrong guy for this job...";
	next;
	mes "[Blacksmith Guildsman]";
	mes "I mean, I've been here";
	mes "forever and I haven't won";
	mes "anything yet! Hey, do me";
	mes "a favor and give any extra";
	mes "Prize Medals you might have";
	mes "to the Einbroch Factory, okay?";
	close;
}

p_track01,45,42,3	script	Absent Minded Man#single	881,{
	mes "[Absent Minded Man]";
	mes "Say, are you here to bet";
	mes "on the monster races? I've";
	mes "come all the way here, just";
	mes "because some strange man";
	mes "asked me to win medals. It's";
	mes "the only reason I'm in Hugel...";
	next;
	mes "[Absent Minded Man]";
	mes "But I've made more than";
	mes "100 wagers, and haven't won";
	mes "any of them! I mean, if I bet";
	mes "on the same monster 6 times,";
	mes "I should win at least once,";
	mes "right? What's going on?!";
	close;
}