summaryrefslogtreecommitdiff
path: root/npc/001-1/eventmaster.txt
blob: b3313fe71ba3ffc57cf95c6b811e6917b00f73a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
// TMW2 Script
// Author:
//  Jesusalva, Saulc
// Description:
//  This GM NPC controls spawns and item drops on Aeros
// Monsters are sorted alphabetically, except bif 

001-1,250,20,0	script	Mana Being#001-1	NPC_ALIGE_OUTSIDE_BARREL,{
    function spawner { // (name, ID, amount)
        areamonster("001-1", 171, 0, 339, 158, getarg(0), getarg(1), getarg(2), "Mana Being#001-1::OnAerosMobDeath");
    }

    if (!is_gm()) goto L_Unauthorized;

    @log_spawns=0;
    @log_ratio=$coinsrate;

    mesn;
    mes "Tired of walking the whole Aeros to spawn monsters, I was brought to existence.";

L_Menu:
    mes "";
    mes "Please select operation.";
    menu
        "Abort",L_Close,
        "Start/End Event", L_EventHandler,
        "Spawn",L_Spawn,
        rif(countitem(StrangeCoin) >= 10, "Drop a Toothbrush! (10x Coins)"),L_Drop,
        "Drop a Bronze Gift", L_Bgif,
        "Drop a Silver Gift", L_Sgif,
        "Adjust coins drop rate",L_Rate;

L_Unauthorized:
    dispbottom l("I am too far away to talk. Weird floating thingy...");
    end;

L_Close:
    if (@log_spawns > 0) logmes "spawned "+str(@log_spawns)+" beigns at Aeros.", LOGMES_ATCOMMAND;
    if (@log_ratio != $coinsrate) logmes "set aeros ratio from "+str(@log_ratio)+" to "+str($coinsrate), LOGMES_ATCOMMAND;
    close;

L_Spawn:
    mes "";
    mes "Spawn from a preset (with intended levels) from this menu. Otherwise, use @aeros with same syntax.";
    mes "(agr) means Agressive Monsters on the set, DO NOT ABUSE.";
    next;
    menu
        "Abort", L_Menu,
        "Presets", L_Preset,
        "Normal", L_Norm,
        "Slime", L_Sli,
        "Plants", L_Plants,
        "Aggressive", L_Agr,
        "GM", L_Gm,
        "Boss", L_Boss;


L_Preset:
    select
        "Abort",                                                        // 1
        "20x Piou, Piousee, Ratto, 10x Croc",                           // 2
        "20x Little Blub, 10x Plushroom Field",                         // 3
        "(agr) 5x Tipiu, 10x Cave Maggot, 10x Bat",                    // 4
        "20x Scorpion, 10x Duck, 10x Maggot",                           // 5
        "10x Red Scorpion, 20x Fire Goblin, 5x Mana Ghost",             // 6
        "(agr) 1x Saxso Ghost, 20x House Maggot",                       // 7
        "(agr) 5x Slime Blast, 5x Red Slime, 10x White Slime",          // 8

        "(agr) 5x Mouboo, 4x Bandit, 2x Black Scorpion",                // 9
        "10x Giant Maggot, 10x Cave Snake, 10x Mana Bug",               // 10
        "1x Golden/Night Scorpion, 2x Santa Slime, 5x Copper Slime",    // 11
        "(agr) 2x Fallen Guards",                                       // 12

        "10x Clover Path, 5 groups of 5 random Bifs",                   // 13
        "5x Bifs, 4 groups of 5 random Bifs";                           // 14

    switch (@menu) {
        case 1:
            break;
        case 2:
            spawner(strmobinfo(1, Piou), Piou, 20);
            spawner(strmobinfo(1, Piousee), Piousee, 20);
            spawner(strmobinfo(1, Ratto), Ratto, 20);
            spawner(strmobinfo(1, Croc), Croc, 10);
            @log_spawns=@log_spawns+70;
            break;
        case 3:
            spawner(strmobinfo(1, LittleBlub), LittleBlub, 20);
            spawner(strmobinfo(1, PlushroomField), PlushroomField, 10);
            @log_spawns=@log_spawns+30;
            break;
        case 4:
            spawner(strmobinfo(1, Tipiu), Tipiu, 5);
            spawner(strmobinfo(1, CaveMaggot), CaveMaggot, 10);
            spawner(strmobinfo(1, Bat), Bat, 10);
            @log_spawns=@log_spawns+25;
            break;
        case 5:
            spawner(strmobinfo(1, Scorpion), Scorpion, 20);
            spawner(strmobinfo(1, Duck), Duck, 10);
            spawner(strmobinfo(1, Maggot), Maggot, 10);
            @log_spawns=@log_spawns+40;
            break;
        case 6:
            spawner(strmobinfo(1, RedScorpion), RedScorpion, 10);
            spawner(strmobinfo(1, ManaBug), FireGoblin, 20);
            spawner(strmobinfo(1, ManaGhost), ManaGhost, 5);
            @log_spawns=@log_spawns+35;
            break;
        case 7:
            spawner(strmobinfo(1, SaxsoGhost), SaxsoGhost, 1);
            spawner(strmobinfo(1, HouseMaggot), HouseMaggot, 20);
            @log_spawns=@log_spawns+21;
            break;
        case 8:
            spawner(strmobinfo(1, SlimeBlast), SlimeBlast, 5);
            spawner(strmobinfo(1, RedSlime), RedSlime, 5);
            spawner(strmobinfo(1, WhiteSlime), WhiteSlime, 10);
            @log_spawns=@log_spawns+20;
            break;

        case 9:
            spawner(strmobinfo(1, Mouboo), Mouboo, 5);
            spawner(strmobinfo(1, Bandit), Bandit, 4);
            spawner(strmobinfo(1, BlackScorpion), BlackScorpion, 2);
            @log_spawns=@log_spawns+11;
            break;
        case 10:
            spawner(strmobinfo(1, GiantMaggot), GiantMaggot, 10);
            spawner(strmobinfo(1, CaveSnake), CaveSnake, 10);
            spawner(strmobinfo(1, ManaBug), ManaBug, 10);
            @log_spawns=@log_spawns+30;
            break;
        case 11:
            spawner(strmobinfo(1, GoldenScorpion), GoldenScorpion, 1);
            spawner(strmobinfo(1, NightScorpion), NightScorpion, 1);
            spawner(strmobinfo(1, SantaSlime), SantaSlime, 5);
            spawner(strmobinfo(1, CopperSlime), CopperSlime, 10);
            @log_spawns=@log_spawns+17;
            break;
        case 12:
            spawner(strmobinfo(1, FallenGuard1), FallenGuard1, 1);
            spawner(strmobinfo(1, FallenGuard2), FallenGuard2, 1);
            @log_spawns=@log_spawns+2;
            break;

        //"10x Clover Path, 5 groups of 5 random Bifs",                   // 13
        //"5x Bifs, 4 groups of 5 random Bifs";                           // 14
        case 13:
            spawner(strmobinfo(1, CloverPatch), CloverPatch, 10);
            spawner(l("Mysterious Bif"), rand(1098,1118), 5);
            spawner(l("Mysterious Bif"), rand(1098,1118), 5);
            spawner(l("Mysterious Bif"), rand(1098,1118), 5);
            spawner(l("Mysterious Bif"), rand(1098,1118), 5);
            spawner(l("Mysterious Bif"), rand(1098,1118), 5);
            @log_spawns=@log_spawns+35;
            break;
        case 14:
            spawner(strmobinfo(1, Bif), Bif, 5);
            spawner(l("Mysterious Bif"), rand(1098,1118), 5);
            spawner(l("Mysterious Bif"), rand(1098,1118), 5);
            spawner(l("Mysterious Bif"), rand(1098,1118), 5);
            spawner(l("Mysterious Bif"), rand(1098,1118), 5);
            @log_spawns=@log_spawns+25;
            break;
    }

    if (@menu == 1) goto L_Spawn;
    mes "";
    mes "Completed.";
    mes "Total spawns: "+str(@log_spawns);
    next;
    goto L_Preset;

L_Norm:
    select
        "Abort",                                // 1
        "Alpha Mouboo",                           // 2
        "Bat",                                  // 3
        "Bee",                                  // 4
        "Blub",                                 // 5
        "Candor Scorpion",                       // 6
        "Cave Snake",                            // 7
        "Crafty",                               // 8
        "Croc",                                 // 9
        "Desert Loghead",                        // 10
        "Desert Maggot",                         // 11
        "Duck",                                 // 12
        "Fire Goblin",                           // 13
        "Fluffy",                               // 14
        "Forest Mushroom",                       // 15
        "Little Blub",                           // 16
        "Giant Maggot",                          // 17
        "Golden Scorpion",                       // 18
        "Iced Fluffy",                           // 19
        "LogHead",                              // 20
        "Maggot",                               // 21    
        "Magic Goblin",                          // 22
        "Mana Bug",                              // 23
        "Mana Ghost"                             // 24
        "Moggun",                               // 25
        "Mouboo",                                // 26
        "Ocean Croc",                            // 27
        "Pinkie",                               // 28
        "Piou",                                 // 29
        "Piousse",                              // 30
        "Poison Spiky Mushroom",                  // 31
        "Ratto",                                // 32
        "Red Butterfly",                         // 33
        "Red Mushroom",                          // 34
        "Red Scorpion",                          // 35
        "Scorpion",                             // 36
        "Silk Worm",                             // 37
        "Squirrel",                             // 38
        "Tipiou",                               // 39
        "Toppy Blub",                            // 40
        "Tortuga";

    input .@c, 0, 100;

    switch (@menu) {
        case 1:
            goto L_Spawn;
            break;
        case 2:
            spawner(l("AlphaMouboo"), AlphaMouboo, .@c);
        case 3:
            spawner(l("Bat"), Bat, .@c);
        case 4:
            spawner(l("Bee"), Bee, .@c);
        case 5:
            spawner(l(Blub""), Blub, .@c);
        case 6:
            spawner(l("CandorScorpion"), CandorScorpion, .@c);
        case 7:
            spawner(l("CaveSnake"), CaveSnake, .@c);
        case 8:
            spawner(l("Crafty"), Crafty, .@c);
         case 9:
            spawner(l("Croc"), Croc, .@c);
        case 10:
            spawner(l("DesertLoghead"), DesertLoghead, .@c);
        case 11:
            spawner(l("DesertMaggot"), DesertMaggot, .@c);
        case 12:
            spawner(l("Duck"), Duck, .@c);
        case 13:
            spawner(l("FireGoblin"), FireGoblin, .@c);
        case 14:
            spawner(l("Fluffy"), Fluffy, .@c);
        case 15:
            spawner(l("ForestMushroom"), ForestMushroom, .@c);
        case 16:
            spawner(l("LittleBlub"), LittleBlub, .@c);
        case 17:
            spawner(l("GiantMaggot"), GiantMaggot, .@c);
        case 18:
            spawner(l("GoldenScorpion"), GoldenScorpion, .@c);
        case 19:
            spawner(l("IcedFluffy"), IcedFluffy, .@c);
        case 20:
            spawner(l("LogHead"), LogHead, .@c);
        case 21:
            spawner(l(Maggot"), Maggot, .@c);
        case 22:
            spawner(l("MagicGoblin"), MagicGoblin, .@c);
        case 23:
            spawner(l("ManaBug"), ManaBug, .@c);
        case 24:
            spawner(l("ManaGhost"), ManaGhost, .@c);
        case :25
            spawner(l("Moggun"), Moggun, .@c);
        case 26:
            spawner(l("Mouboo"), Mouboo, .@c);
        case 27:
            spawner(l("OceanCroc"), OceanCroc, .@c);
        case 28:
            spawner(l("Pinkie"), Pinkie, .@c);
        case 29:
            spawner(l("Piou"), Piou, .@c);
        case 30:
            spawner(l("Piousse"), Piousse, .@c);
        case 31:
            spawner(l("PoisonSpikyMushroom"), PoisonSpikyMushroom, .@c);
        case 32:
            spawner(l("Ratto"), Ratto, .@c);
        case 33:
            spawner(l("RedButterfly"), RedButterfly, .@c);
        case 34:
            spawner(l("RedMushroom"), RedMushroom, .@c);
        case 35:
            spawner(l("RedScorpion"), RedScorpion, .@c);
        case 36:
            spawner(l("Squirrel"), Squirrel, .@c);
        case 37:
            spawner(l("Squirrel"), Squirrel, .@c);
        case 38:
            spawner(l("Tipiou"), Tipiou, .@c);
        case 39:
            spawner(l("ToppyBlub"), ToppyBlub, .@c);
        case 40:
            spawner(l("Tortuga"), Tortuga, .@c);                                                                                                                                                                                                                                                                                                                                                                                                                       
    }

    @log_spawns=@log_spawns+.@c;
    mes "";
    mes "Completed.";
    mes "Total spawns: "+str(@log_spawns);
    next;
    goto L_Norm;

L_Sli:
        "Abort",                                        // 1
        "Azul Slime",                                    // 2
        "Blue Slime",                                    // 3
        "Candied Slime",                                 // 4
        "Copper Slime",                                  // 5
        "Green Slime",                                   // 6
        "Lava Slime",                                    // 7
        "Rudolph Slime",                                  // 8
        "Red Slime",                                     // 9
        "Santa Slime",                                   // 10
        "Sea Slime",                                     // 11
        "Slime Blast",                                   // 12
        "White Slime",                                   // 13
        "Yellow Slime";                                  // 14

            input .@c, 0, 100;

    switch (@menu) {
        case 1:
            goto L_Spawn;
            break;
        case 2:
            spawner(l("AzulSlime"), AzulSlime, .@c);
        case 3:
            spawner(l("BlueSlime"), BlueSlime, .@c);
        case 4:
            spawner(l("CandiedSlime"), CandiedSlime, .@c);
        case 5:
            spawner(l("CopperSlime"), CopperSlime, .@c);
        case 6:
            spawner(l("GreenSlime"), GreenSlime, .@c);
        case 7:
            spawner(l("LavaSlime"), LavaSlime, .@c);
        case 8:
            spawner(l("RudolphSlime"), RudolphSlime, .@c);
        case 9:
            spawner(l("RedSlime"), RedSlime, .@c);
        case 10:
            spawner(l("SantaSlime"), SantaSlime, .@c);
        case 11:
            spawner(l("SeaSlime"), SeaSlime, .@c);
        case 12:
            spawner(l("SlimeBlast"), SlimeBlast, .@c);
        case 13:
            spawner(l("WhiteSlime"), WhiteSlime, .@c);
        case 14:
            spawner(l("YellowSlime"), YellowSlime, .@c);

        }

    @log_spawns=@log_spawns+.@c;
    mes "";
    mes "Completed.";
    mes "Total spawns: "+str(@log_spawns);
    next;
    goto L_Sli;        


L_Plants:
    select
        "Abort",                                // 1
        "Chagashroom Field",                     // 2
        "Clover Patch",                          // 3  
        "Cobalt Plant",                          // 4
        "Dummy",                                // 5
        "Gamboge Plant",                          // 6
        "Manana Tree",                           // 7
        "Mauve Plant",                           // 8
        "Plushroom Field",                       // 9
        "Small Ruby Bif",                         // 10
        "Small Topaz Bif",                        // 11
        "Small Emerald Bif",                      // 12
        "Small Diamond Bif",                      // 13
        "Small Amethyst Bif",                     // 14
        "Small Sapphire Bif",                     // 15
        "Ruby Bif",                              // 16
        "Topaz  Bif",                             // 17
        "Emerald Bif",                           // 18
        "Diamond Bif",                           // 19   
        "Amethyst Bif",                          // 20   
        "Sapphire Bif",                          // 21
        "Big Ruby Bif",                            // 22
        "Big Topaz Bif",                          // 23
        "Big Emerald Bif",                        // 24
        "Big Diamond Bif",                        // 25
        "Big Amethyst Bif",                       // 26
        "Big Sapphire Bif";                      // 27

            input .@c, 0, 100;

    switch (@menu) {
        case 1:
            goto L_Spawn;
            break;
        case 2:
            spawner(l("ChagashroomField"), ChagashroomField, .@c);    
        case 3:
            spawner(l("CloverPatch"), CloverPatch, .@c);   
        case 4:
            spawner(l("CobaltPlant"), CobaltPlant, .@c);   
        case 5:
            spawner(l("Dummy"), Dummy, .@c);   
        case 6:
            spawner(l("GambogePlant"), GambogePlant, .@c);   
        case 7:
            spawner(l("MananaTree"), MananaTree, .@c);   
        case 8:
            spawner(l("MauvePlant"), MauvePlant, .@c);   
        case 9:
            spawner(l("PlushroomField"), PlushroomField, .@c);   
        case 10:
            spawner(l("SmallRubyBif"), SmallRubyBif, .@c);   
        case 11:
            spawner(l("SmallTopazBif"), SmallTopazBif, .@c);   
        case 12:
            spawner(l("SmallEmeraldBif"), SmallEmeraldBif, .@c);   
        case 13:
            spawner(l("SmallDiamondBif"), SmallDiamondBif, .@c);   
        case 14:
            spawner(l("SmallAmethystBif"), SmallAmethystBif, .@c);   
        case 15:
            spawner(l("SmallSapphireBif"), SmallSapphireBif, .@c);   
        case 16:
            spawner(l("RubyBif"), RubyBif, .@c);   
        case 17:
            spawner(l("TopazBif"), TopazBif, .@c);   
        case 18:
            spawner(l("EmeraldBif"), EmeraldBif, .@c);   
        case 19:
            spawner(l("DiamondBif"), DiamondBif, .@c);   
        case 20:
            spawner(l("AmethystBif"), AmethystBif, .@c);   
        case 21:
            spawner(l("SapphireBif"), SapphireBif, .@c);   
        case 22:
            spawner(l("BigRubyBif"), BigRubyBif, .@c);   
        case 23:
            spawner(l("BigTopazBif"), BigTopazBif, .@c);   
        case 24:
            spawner(l("BigEmeraldBif"), BigEmeraldBif, .@c);   
        case 25:
            spawner(l("BigDiamondBif"), BigDiamondBif, .@c);   
        case 26:
            spawner(l("BigAmethystBif"), BigAmethystBif, .@c);   
        case 27:
            spawner(l("BigSapphireBif"), BigSapphireBif, .@c);   

            }

    @log_spawns=@log_spawns+.@c;
    mes "";
    mes "Completed.";
    mes "Total spawns: "+str(@log_spawns);
    next;
    goto L_Plant;    


L_Agr:
    select
        "Abort";                                    // 1
        "Angry Red Scorpion",                         // 2
        "Angry Scorpion",                            // 3
        "Bandit",                                   // 4
        "Black Scorpion",                            // 5
        "Cave Maggot",                               // 6
        "Centaur",                                  // 7
        "Dark Lizard",                               // 8
        "Desert Bandit",                             // 9
        "Fallen Guard",                              // 10   
        "Forain",                                   // 11
        "Frostia Guard",                             // 12
        "House Maggot",                               // 13
        "Magic Goblin",                              // 14
        "Mountain Snake",                            // 15
        "Ocean Pirate",                              // 16
        "Sarracenus",                               // 17
        "Skeleton",                                 // 18
        "Snake",                                    // 19
        "Tipiu",                                    // 20
        "Vampire Bat",                               // 21        
        "Wolvern",                                  // 22    
        "Yeti",                                     // 23



            input .@c, 0, 100;

    switch (@menu) {
        case 1:
            goto L_Spawn;
            break;
        case 2:
            spawner(l("AngryRedScorpion"), AngryRedScorpion, .@c);   
        case 3:
            spawner(l("AngryScorpion"), AngryScorpion, .@c);    
        case 4:
            spawner(l("Bandit"), Bandit, .@c);    
        case 5:
            spawner(l("BlackScorpion"), BlackScorpion, .@c);    
        case 6:
            spawner(l("CaveMaggot"), CaveMaggot, .@c);    
        case 7:
            spawner(l("Centaur"), Centaur, .@c);    
        case 8:
            spawner(l("DarkLizard"), DarkLizard, .@c);    
        case 9:
            spawner(l("DesertBandit"), DesertBandit, .@c);    
        case 10:
            spawner(l("FallenGuard"), FallenGuard, .@c);    
        case 11:
            spawner(l("Forain"), Forain, .@c);    
        case 12:
            spawner(l("FrostiaGuard"), FrostiaGuard, .@c);    
        case 13:
            spawner(l("HouseMaggot"), HouseMaggot, .@c);    
        case 14:
            spawner(l("MagicGoblin"), MagicGoblin, .@c);    
        case 15:
            spawner(l("MountainSnake"), MountainSnake, .@c);    
        case 16:
            spawner(l("OceanPirate"), OceanPirate, .@c);    
        case 17:
            spawner(l("Sarracenus"), Sarracenus, .@c);    
        case 18:
            spawner(l("Skeleton"), Skeleton, .@c);    
        case 19:
            spawner(l("Snake"), Snake, .@c);    
        case 20:
            spawner(l("Tipiu"), Tipiu, .@c);    
        case 21:
            spawner(l("VampireBat"), VampireBat, .@c);    
        case 22:
            spawner(l("Wolvern"), Wolvern, .@c);    
        case 23:
            spawner(l("Yeti"), Yeti, .@c);    

            }

    @log_spawns=@log_spawns+.@c;
    mes "";
    mes "Completed.";
    mes "Total spawns: "+str(@log_spawns);
    next;
    goto L_Agr    




    if (@menu == 1) goto L_Spawn;
    mes "";
    mes "Completed.";
    mes "Total spawns: "+str(@log_spawns);
    next;
    goto L_Agr;

L_Gm:
    select
        "Abort",                                                            // 1
        "Bhop Fluffy",                                                       // 2
        "Easter Mouboo",                                                     // 3
        "Evil Scythe",                                                       // 4
        "Jack'O",                                                           // 5
        "Magic Ratto",                                                      // 6
        "Moonshroom",                                                       // 7
        "Small Magic Bif",                                                    // 8
        "Magic Bif",                                                         // 9
        "Big Magic Bif";                                                      // 10


    input .@c, 0, 1000;

    switch (@menu) {
        case 1:
            goto L_Spawn;
            break;
        case 2:
            spawner(l("BhopFluffy"), BhopFluffy, .@c);
        case 3:
            spawner(l("EasterMouboo"), EasterMouboo, .@c);
        case 4:
            spawner(l("EvilScythe"), EvilScythe, .@c);
        case 5:
            spawner(l("Jack'O"), Jack'O, .@c);    
        case 6:
            spawner(l("MagicRatto"), MagicRatto, .@c);   
        case 7:
            spawner(l("Moonshroom"), Moonshroom, .@c);   
        case 8:
            spawner(l("SmallMagicBif"), SmallMagicBif, .@c);   
        case 9:
            spawner(l("MagicBif"), MagicBif, .@c);   
        case 10:
            spawner(l("BigMagicBif"), BigMagicBif, .@c);   
    }

    @log_spawns=@log_spawns+.@c;
    mes "";
    mes "Completed.";
    mes "Total spawns: "+str(@log_spawns);
    next;
    goto L_Gm;

L_Boss:
    select
        "Abort";                                        // 1
        "Giant Mutated Bat"                               // 2
        "Murderer Scorpion",                             // 3
        "Night Scorpion"                                 // 4
        "Saxso Ghost"                                    // 5
        "The Yeti King",                                  // 6

    input .@c, 0, 1000;

    switch (@menu) {
        case 1:
            goto L_Spawn;
            break;
        case :
            spawner(l("GiantMutatedBat"), GiantMutatedBat, .@c);
        case :
            spawner(l("MurdererScorpion"), MurdererScorpion, .@c);
        case :
            spawner(l("NightScorpion"), NightScorpion, .@c);
        case :
            spawner(l("SaxsoGhost"), SaxsoGhost, .@c);
        case :
            spawner(l("TheYetiKing"), TheYetiKing, .@c);

    }

    @log_spawns=@log_spawns+.@c;
    mes "";
    mes "Completed.";
    mes "Total spawns: "+str(@log_spawns);
    next;
    goto L_Boss;


L_Drop:
    delitem(StrangeCoin,10);
    makeitem(Toothbrush, 1, "001-1", rand(171,319), rand(20,138));
    mes "";
    mes "Dropped.";
    next;
    goto L_Menu;

L_Bgif:
    makeitem(BronzeGift, 1, "001-1", rand(171,319), rand(20,138));
    mes "";
    mes "Bronze Gift Dropped.";
    next;
    goto L_Menu;

L_Sgif:
    makeitem(SilverGift, 1, "001-1", rand(171,319), rand(20,138));
    mes "";
    mes "Silver Gift Dropped.";
    next;
    goto L_Menu;

L_Rate:
    mes "";
    mes "Current drop rate: " + str($coinsrate);
    mes "Insert drop rate (from 0 to 10000, capped at 5000 or 50%). Use -1 to disable.";
    input $coinsrate;
    if ($coinsrate > 5000)
        $coinsrate=5000;
    mes "";
    mes "Ratio adjusted.";
    next;
    goto L_Menu;

L_EventHandler:
    if($@GM_EVENT) {
        announce l("The event is over!"), bc_all|bc_npc; // I haven't tested this yet.
        $@GM_EVENT=0;
    } else {
        announce l("The mana bridge to Aeros is open! To participate on event, talk to ##BSoul Menhir##b!"), bc_all|bc_npc;
        channelmes("#world", "An event is happening on Aeros! Hurry up!");
        $@GM_EVENT=1;
    }
    close;

OnAerosMobDeath:
    if ($coinsrate < 0) end;
    // A level 100 monster can have a 4% drop bonus against a level 0 monster.
    // $coinsrate acts stablishing a basic drop value. Advised value: 600 (up to 10% for normal mobs)
    if (rand(10000) <= $coinsrate + (atoi(strmobinfo(3,killedrid))*4))
        getmapxy(.@m$, .@x, .@y, 0);
        makeitem(StrangeCoin, 1, .@m$, .@x, .@y);
    end;

OnInit:
    if ($coinsrate == 0)
        $coinsrate=600; // Default value is 6% + mob str bonus
    end;
}



-	script	@aeros	32767,{
    end;

OnCall:
    if (!is_admin())
        end;
    if (getmapname() != "001-1") {
        dispbottom "This command can only be used at aeros.";
        end;
    }
    //.@atcmd_parameters$ = strtoupper(strip( // nah

    if (.@atcmd_numparameters != 2) {
        dispbottom "Use the numeric ID provided by the wiki. This is a safeguard to ensure you are not overkilling players.";
        dispbottom "Talk to Mana Being for a less fine-grained but much more optimized control over monsters.";
        dispbottom "This command takes exactly this syntax: Mob ID <space> amount.";
        end;
    }

    areamonster("001-1", 171, 0, 339, 158, strmobinfo(1, atoi(.@atcmd_parameters$[0])), atoi(.@atcmd_parameters$[0]), atoi(.@atcmd_parameters$[1]), "Mana Being#001-1::OnAerosMobDeath");
    logmes "@aeros "+strmobinfo(1, atoi(.@atcmd_parameters$[0])) + " " + .@atcmd_parameters$[1], LOGMES_ATCOMMAND;
    dispbottom "All monsters summoned.";

    end;

OnInit:
    bindatcmd "aeros", "@aeros::OnCall", 99, 99, 0;
}