-
Notifications
You must be signed in to change notification settings - Fork 0
/
wiz08c.go
842 lines (839 loc) · 19 KB
/
wiz08c.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
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
package wiz08c
import "github.com/noxworld-dev/noxscript/ns/v3"
var (
gvar4 ns.ObjectGroupID
gvar5 ns.ObjectGroupID
gvar6 ns.ObjectGroupID
wp7 ns.WaypointID
obj8 ns.ObjectID
obj9 ns.ObjectID
wp10 ns.WaypointID
wp11 ns.WaypointID
gvar12 ns.WallGroupID
gvar13 ns.WallGroupID
wp14 ns.WaypointID
obj15 ns.ObjectID
obj16 ns.ObjectID
obj17 ns.ObjectID
obj18 ns.ObjectID
obj19 ns.ObjectID
obj20 ns.ObjectID
obj21 ns.ObjectID
obj22 ns.ObjectID
wp23 ns.WaypointID
wp24 ns.WaypointID
wp25 ns.WaypointID
wp26 ns.WaypointID
wp27 ns.WaypointID
wp28 ns.WaypointID
wp29 ns.WaypointID
wp30 ns.WaypointID
wp31 ns.WaypointID
gvar32 int
gvar33 [10]ns.ObjectGroupID
gvar34 int
obj35 ns.ObjectID
obj36 [9]ns.ObjectID
gvar37 int
ivar38 int
ivar39 int
ivar40 int
ivar41 int
ivar42 int
ivar43 [10]int
flag44 [10]bool
wp45 [10]ns.WaypointID
str46 [6]string
)
func init() {
gvar37 = 0
ivar38 = 1
ivar39 = 0
ivar40 = 180
ivar41 = 0
ivar42 = 10
}
func ArrowTrapAudio() {
ns.MoveWaypoint(wp7, ns.GetObjectX(ns.GetHost()), ns.GetObjectY(ns.GetHost()))
ns.AudioEvent(ns.BowShoot, wp7)
ns.AudioEvent(ns.CrossBowShoot, wp7)
}
func DisableArrowTrapGroup01() {
ns.ObjectGroupOff(gvar4)
}
func EnableArrowTrapGroup01() {
ns.ObjectGroupOn(gvar4)
ns.FrameTimer(1, DisableArrowTrapGroup01)
}
func DisableArrowTrapGroup02() {
ns.ObjectGroupOff(gvar5)
}
func ActivateArrowTrap02() {
ns.ObjectGroupOn(gvar5)
ns.FrameTimer(1, DisableArrowTrapGroup02)
}
func DisableArrowTrapGroup03() {
ns.ObjectGroupOff(gvar6)
}
func ActivateArrowTrap03() {
ns.ObjectGroupOn(gvar6)
ns.FrameTimer(1, DisableArrowTrapGroup03)
}
func BeholderAttackExit() {
if !(ns.CurrentHealth(obj8) > 0) {
goto LABEL1
}
if ns.IsVisibleTo(obj8, ns.GetHost()) {
goto LABEL1
}
ns.Move(obj8, wp11)
LABEL1:
return
}
func BeholderStay() {
if !ns.IsCaller(obj8) {
goto LABEL1
}
ns.Wander(obj8)
LABEL1:
if !ns.IsCaller(obj9) {
goto LABEL2
}
ns.Wander(obj9)
LABEL2:
return
}
func OpenBoulderHallWall01() {
ns.ObjectOff(ns.GetTrigger())
ns.WallOpen(ns.Wall(104, 162))
}
func OpenBoulderHallWall02() {
ns.ObjectOff(ns.GetTrigger())
ns.WallOpen(ns.Wall(213, 107))
}
func GoldKeyRemoved() {
ns.WallGroupOpen(gvar12)
ns.WallGroupOpen(gvar13)
}
func ReleaseGoldKeyBombers() {
ns.WallGroupOpen(gvar13)
}
func PlayerDeath() {
ns.DeathScreen(8)
}
func InitializeSummoningCircles() {
var v0 int
v0 = 0
for {
if !(v0 < 10) {
goto LABEL1
}
flag44[v0] = true
ivar43[v0] = 0
v0 += 1
}
LABEL1:
str46[0] = "UrchinShaman"
str46[1] = "Mimic"
str46[2] = "Bear"
str46[3] = "Urchin"
str46[4] = "Imp"
str46[5] = "WhiteWolf"
obj35 = ns.Object("SummoningCircleTreasureLight")
obj36[0] = ns.Object("SummoningCircleTreasure01")
obj36[1] = ns.Object("SummoningCircleTreasure02")
obj36[2] = ns.Object("SummoningCircleTreasure03")
obj36[3] = ns.Object("SummoningCircleTreasure04")
obj36[4] = ns.Object("SummoningCircleTreasure05")
obj36[5] = ns.Object("SummoningCircleTreasure06")
obj36[6] = ns.Object("SummoningCircleTreasure07")
obj36[7] = ns.Object("SummoningCircleTreasure08")
obj36[8] = ns.Object("SummoningCircleTreasure09")
wp45[0] = ns.Waypoint("SummoningCircle01WP")
wp45[1] = ns.Waypoint("SummoningCircle02WP")
wp45[2] = ns.Waypoint("SummoningCircle03WP")
wp45[3] = ns.Waypoint("SummoningCircle04WP")
wp45[4] = ns.Waypoint("SummoningCircle05WP")
wp45[5] = ns.Waypoint("SummoningCircle06WP")
wp45[6] = ns.Waypoint("SummoningCircle07WP")
wp45[7] = ns.Waypoint("SummoningCircle08WP")
wp45[8] = ns.Waypoint("SummoningCircle09WP")
wp45[9] = ns.Waypoint("SummoningCircle10WP")
gvar33[0] = ns.ObjectGroup("SummonCircle01Lights")
gvar33[1] = ns.ObjectGroup("SummonCircle02Lights")
gvar33[2] = ns.ObjectGroup("SummonCircle03Lights")
gvar33[3] = ns.ObjectGroup("SummonCircle04Lights")
gvar33[4] = ns.ObjectGroup("SummonCircle05Lights")
gvar33[5] = ns.ObjectGroup("SummonCircle06Lights")
gvar33[6] = ns.ObjectGroup("SummonCircle07Lights")
gvar33[7] = ns.ObjectGroup("SummonCircle08Lights")
gvar33[8] = ns.ObjectGroup("SummonCircle09Lights")
gvar33[9] = ns.ObjectGroup("SummonCircle10Lights")
}
func MapInitialize() {
obj8 = ns.Object("Beholder01")
obj9 = ns.Object("Beholder02")
obj15 = ns.Object("Beholder03")
obj16 = ns.Object("Bat01")
obj17 = ns.Object("StoneBlock01")
obj18 = ns.Object("StoneBlock02")
obj19 = ns.Object("StoneBlock03")
obj20 = ns.Object("StoneBlock04")
obj21 = ns.Object("BomberPitElevator")
obj22 = ns.Object("SpiderPitElevator")
wp23 = ns.Waypoint("StoneBlock01WP")
wp26 = ns.Waypoint("StoneBlock02Home")
wp28 = ns.Waypoint("StoneBlock03Home")
wp25 = ns.Waypoint("StoneBlock02Dest")
wp27 = ns.Waypoint("StoneBlock03Dest")
wp24 = ns.Waypoint("StoneBlock04WP")
wp14 = ns.Waypoint("GoldKeyWP")
wp30 = ns.Waypoint("BomberCreationWP")
wp10 = ns.Waypoint("BomberAudioOrigin")
wp29 = ns.Waypoint("Beholder01SetPieceWP")
wp11 = ns.Waypoint("BeholderRoomExitWP")
wp7 = ns.Waypoint("ArrowTrapAudioOrigin")
wp31 = ns.Waypoint("SecretAudioOrigin")
gvar4 = ns.ObjectGroup("ArrowTrapGroup01")
gvar5 = ns.ObjectGroup("ArrowTrapGroup02")
gvar6 = ns.ObjectGroup("ArrowTrapGroup03")
gvar12 = ns.WallGroup("GoldKeyWalls")
gvar13 = ns.WallGroup("BomberCageWalls")
InitializeSummoningCircles()
}
func MapEntry() {
ns.Music(18, 100)
ns.UnBlind()
}
func EnableSpiderPitElevator() {
if !ns.IsCaller(ns.GetHost()) {
goto LABEL1
}
ns.ObjectOn(obj22)
LABEL1:
return
}
func SecretSFX() {
ns.MoveWaypoint(wp31, ns.GetObjectX(ns.GetHost()), ns.GetObjectY(ns.GetHost()))
ns.AudioEvent(ns.SecretFound, wp31)
}
func Secret01Found() {
ns.ObjectOff(ns.GetTrigger())
ns.PrintToAll("GeneralPrint:SecretFound")
ns.GiveXp(ns.GetHost(), 100)
SecretSFX()
}
func SealTheTempleFX() {
var (
v0 float32
v1 float32
)
v0 = ns.GetObjectX(ns.GetHost())
v1 = ns.GetObjectY(ns.GetHost())
ns.AudioEvent(ns.HugeFoot, wp23)
ns.Effect(ns.JIGGLE, v0, v1, 10, 0)
}
func SealTheTemple() {
ns.ObjectOff(ns.GetTrigger())
ns.Move(obj17, wp23)
ns.Move(obj20, wp24)
ns.AudioEvent(ns.BigGong, wp23)
ns.AudioEvent(ns.SecretWallClose, wp23)
ns.FrameTimer(10, SealTheTempleFX)
}
func EnableElevator() {
ns.ObjectOn(obj21)
}
func ReleasePlayer() {
ns.WideScreen(false)
ns.ClearOwner(obj8)
ns.Frozen(ns.GetHost(), false)
if !(ns.CurrentHealth(obj16) > 0) {
goto LABEL1
}
ns.ObjectOn(obj16)
LABEL1:
ns.Delete(ns.Object("Wiz08a:CharmedWolf01"))
ns.Delete(ns.Object("Wiz08a:CharmedWolf02"))
ns.Delete(ns.Object("Wiz08a:CharmedWolf03"))
ns.Delete(ns.Object("Wiz08a:CharmedWolf04"))
ns.NoWallSound(true)
ns.WallClose(ns.Wall(169, 87))
ns.NoWallSound(false)
ns.FrameTimer(60, EnableElevator)
}
func BeholderSetpieceSEG3() {
ns.FrameTimer(60, ReleasePlayer)
}
func BeholderSetpieceSEG2() {
ns.Move(obj8, wp29)
ns.FrameTimer(180, ReleasePlayer)
}
func BeholderSetpiece() {
ns.SetOwner(ns.GetHost(), obj8)
ns.ObjectOff(ns.GetTrigger())
ns.Frozen(ns.GetHost(), true)
ns.CreatureIdle(ns.GetHost())
ns.WideScreen(true)
if !(ns.CurrentHealth(obj16) > 0) {
goto LABEL1
}
ns.ObjectOff(obj16)
LABEL1:
ns.FrameTimer(60, BeholderSetpieceSEG2)
}
func DisableBomberPitElevator() {
ns.ObjectOff(obj21)
}
func BlockGatesFX() {
var (
v0 float32
v1 float32
)
v0 = ns.GetObjectX(ns.GetHost())
v1 = ns.GetObjectY(ns.GetHost())
ns.AudioEvent(ns.HugeFoot, wp25)
ns.Effect(ns.JIGGLE, v0, v1, 10, 0)
}
func CloseBlockGates() {
ns.Move(obj18, wp25)
ns.Move(obj19, wp27)
ns.AudioEvent(ns.SecretWallClose, wp25)
ns.AudioEvent(ns.SecretWallClose, wp27)
ns.FrameTimer(10, BlockGatesFX)
}
func SealBeholderRoom() {
ns.ObjectOff(ns.GetTrigger())
ns.WallClose(ns.Wall(209, 109))
ns.MoveObject(obj8, ns.GetWaypointX(wp11), ns.GetWaypointY(wp11))
ns.AggressionLevel(obj8, 0.83)
ns.AggressionLevel(obj9, 0.83)
ns.Wander(obj8)
ns.Wander(obj9)
}
func ResetSummonCircle(a1 int) {
flag44[a1] = true
ns.ObjectGroupOn(gvar33[a1])
}
func SummoningCircleCleared(a1 int) {
ivar39 += 1
if ivar39 != 9 {
goto LABEL1
}
ns.PrintToAll("GeneralPrint:SecretFound")
ns.GiveXp(ns.GetHost(), 500)
ns.Effect(ns.BLUE_SPARKS, ns.GetWaypointX(wp45[a1]), ns.GetWaypointY(wp45[a1]), 0, 0)
ns.MoveObject(obj35, ns.GetWaypointX(wp45[a1]), ns.GetWaypointY(wp45[a1]))
ns.MoveObject(obj36[ivar39-1], ns.GetWaypointX(wp45[a1]), ns.GetWaypointY(wp45[a1]))
ns.AudioEvent(ns.SmallGong, wp45[a1])
goto LABEL2
LABEL1:
ns.Effect(ns.BLUE_SPARKS, ns.GetWaypointX(wp45[a1]), ns.GetWaypointY(wp45[a1]), 0, 0)
ns.MoveObject(obj35, ns.GetWaypointX(wp45[a1]), ns.GetWaypointY(wp45[a1]))
ns.MoveObject(obj36[ivar39-1], ns.GetWaypointX(wp45[a1]), ns.GetWaypointY(wp45[a1]))
ns.AudioEvent(ns.BigGong, wp45[a1])
LABEL2:
return
}
func SummonCircle01Activate() {
var (
v0 ns.ObjectID
v1 int
)
gvar37 = 0
if !(ns.IsCaller(ns.GetHost()) && flag44[gvar37] == true) {
goto LABEL1
}
flag44[gvar37] = false
ns.ObjectGroupOff(gvar33[gvar37])
ns.AudioEvent(ns.SummonCast, wp45[gvar37])
ns.Effect(ns.SMOKE_BLAST, ns.GetWaypointX(wp45[gvar37]), ns.GetWaypointY(wp45[gvar37]), 0, 0)
if !(ns.Random(0, 100) <= ivar42) {
goto LABEL2
}
switch v1 = ns.Random(0, 1); v1 {
case 0:
goto LABEL3
case 1:
goto LABEL4
default:
goto LABEL5
}
LABEL3:
v0 = ns.CreateObject("BomberYellow", wp45[gvar37])
ns.TrapSpells(v0, ns.SPELL_METEOR, "", "")
goto LABEL5
LABEL4:
v0 = ns.CreateObject("Bomber", wp45[gvar37])
goto LABEL5
LABEL5:
goto LABEL6
LABEL2:
ivar41 = ns.Random(0, 5)
ns.CreateObject(str46[ivar41], wp45[gvar37])
LABEL6:
ivar43[gvar37] += 1
if !(ivar43[gvar37] > ivar38) {
goto LABEL7
}
ns.FrameTimerWithArg(30, gvar37, SummoningCircleCleared)
goto LABEL1
LABEL7:
ns.FrameTimerWithArg(ivar40, gvar37, ResetSummonCircle)
LABEL1:
return
}
func SummonCircle02Activate() {
var (
v0 ns.ObjectID
v1 int
)
gvar37 = 1
if !(ns.IsCaller(ns.GetHost()) && flag44[gvar37] == true) {
goto LABEL1
}
flag44[gvar37] = false
ns.ObjectGroupOff(gvar33[gvar37])
ns.AudioEvent(ns.SummonCast, wp45[gvar37])
ns.Effect(ns.SMOKE_BLAST, ns.GetWaypointX(wp45[gvar37]), ns.GetWaypointY(wp45[gvar37]), 0, 0)
if !(ns.Random(0, 100) <= ivar42) {
goto LABEL2
}
switch v1 = ns.Random(0, 1); v1 {
case 0:
goto LABEL3
case 1:
goto LABEL4
default:
goto LABEL5
}
LABEL3:
v0 = ns.CreateObject("BomberYellow", wp45[gvar37])
ns.TrapSpells(v0, ns.SPELL_METEOR, "", "")
goto LABEL5
LABEL4:
v0 = ns.CreateObject("Bomber", wp45[gvar37])
goto LABEL5
LABEL5:
goto LABEL6
LABEL2:
ivar41 = ns.Random(0, 5)
ns.CreateObject(str46[ivar41], wp45[gvar37])
LABEL6:
ivar43[gvar37] += 1
if !(ivar43[gvar37] > ivar38) {
goto LABEL7
}
ns.FrameTimerWithArg(30, gvar37, SummoningCircleCleared)
goto LABEL1
LABEL7:
ns.FrameTimerWithArg(ivar40, gvar37, ResetSummonCircle)
LABEL1:
return
}
func SummonCircle03Activate() {
var (
v0 ns.ObjectID
v1 int
)
gvar37 = 2
if !(ns.IsCaller(ns.GetHost()) && flag44[gvar37] == true) {
goto LABEL1
}
flag44[gvar37] = false
ns.ObjectGroupOff(gvar33[gvar37])
ns.AudioEvent(ns.SummonCast, wp45[gvar37])
ns.Effect(ns.SMOKE_BLAST, ns.GetWaypointX(wp45[gvar37]), ns.GetWaypointY(wp45[gvar37]), 0, 0)
if !(ns.Random(0, 100) <= ivar42) {
goto LABEL2
}
switch v1 = ns.Random(0, 1); v1 {
case 0:
goto LABEL3
case 1:
goto LABEL4
default:
goto LABEL5
}
LABEL3:
v0 = ns.CreateObject("BomberYellow", wp45[gvar37])
ns.TrapSpells(v0, ns.SPELL_METEOR, "", "")
goto LABEL5
LABEL4:
v0 = ns.CreateObject("Bomber", wp45[gvar37])
goto LABEL5
LABEL5:
goto LABEL6
LABEL2:
ivar41 = ns.Random(0, 5)
ns.CreateObject(str46[ivar41], wp45[gvar37])
LABEL6:
ivar43[gvar37] += 1
if !(ivar43[gvar37] > ivar38) {
goto LABEL7
}
ns.FrameTimerWithArg(30, gvar37, SummoningCircleCleared)
goto LABEL1
LABEL7:
ns.FrameTimerWithArg(ivar40, gvar37, ResetSummonCircle)
LABEL1:
return
}
func SummonCircle04Activate() {
var (
v0 ns.ObjectID
v1 int
)
gvar37 = 3
if !(ns.IsCaller(ns.GetHost()) && flag44[gvar37] == true) {
goto LABEL1
}
flag44[gvar37] = false
ns.ObjectGroupOff(gvar33[gvar37])
ns.AudioEvent(ns.SummonCast, wp45[gvar37])
ns.Effect(ns.SMOKE_BLAST, ns.GetWaypointX(wp45[gvar37]), ns.GetWaypointY(wp45[gvar37]), 0, 0)
if !(ns.Random(0, 100) <= ivar42) {
goto LABEL2
}
switch v1 = ns.Random(0, 1); v1 {
case 0:
goto LABEL3
case 1:
goto LABEL4
default:
goto LABEL5
}
LABEL3:
v0 = ns.CreateObject("BomberYellow", wp45[gvar37])
ns.TrapSpells(v0, ns.SPELL_METEOR, "", "")
goto LABEL5
LABEL4:
v0 = ns.CreateObject("Bomber", wp45[gvar37])
goto LABEL5
LABEL5:
goto LABEL6
LABEL2:
ivar41 = ns.Random(0, 5)
ns.CreateObject(str46[ivar41], wp45[gvar37])
LABEL6:
ivar43[gvar37] += 1
if !(ivar43[gvar37] > ivar38) {
goto LABEL7
}
ns.FrameTimerWithArg(30, gvar37, SummoningCircleCleared)
goto LABEL1
LABEL7:
ns.FrameTimerWithArg(ivar40, gvar37, ResetSummonCircle)
LABEL1:
return
}
func SummonCircle05Activate() {
var (
v0 ns.ObjectID
v1 int
)
gvar37 = 4
if !(ns.IsCaller(ns.GetHost()) && flag44[gvar37] == true) {
goto LABEL1
}
flag44[gvar37] = false
ns.ObjectGroupOff(gvar33[gvar37])
ns.AudioEvent(ns.SummonCast, wp45[gvar37])
ns.Effect(ns.SMOKE_BLAST, ns.GetWaypointX(wp45[gvar37]), ns.GetWaypointY(wp45[gvar37]), 0, 0)
if !(ns.Random(0, 100) <= ivar42) {
goto LABEL2
}
switch v1 = ns.Random(0, 1); v1 {
case 0:
goto LABEL3
case 1:
goto LABEL4
default:
goto LABEL5
}
LABEL3:
v0 = ns.CreateObject("BomberYellow", wp45[gvar37])
ns.TrapSpells(v0, ns.SPELL_METEOR, "", "")
goto LABEL5
LABEL4:
v0 = ns.CreateObject("Bomber", wp45[gvar37])
goto LABEL5
LABEL5:
goto LABEL6
LABEL2:
ivar41 = ns.Random(0, 5)
ns.CreateObject(str46[ivar41], wp45[gvar37])
LABEL6:
ivar43[gvar37] += 1
if !(ivar43[gvar37] > ivar38) {
goto LABEL7
}
ns.FrameTimerWithArg(30, gvar37, SummoningCircleCleared)
goto LABEL1
LABEL7:
ns.FrameTimerWithArg(ivar40, gvar37, ResetSummonCircle)
LABEL1:
return
}
func SummonCircle06Activate() {
var (
v0 ns.ObjectID
v1 int
)
gvar37 = 5
if !(ns.IsCaller(ns.GetHost()) && flag44[gvar37] == true) {
goto LABEL1
}
flag44[gvar37] = false
ns.ObjectGroupOff(gvar33[gvar37])
ns.AudioEvent(ns.SummonCast, wp45[gvar37])
ns.Effect(ns.SMOKE_BLAST, ns.GetWaypointX(wp45[gvar37]), ns.GetWaypointY(wp45[gvar37]), 0, 0)
if !(ns.Random(0, 100) <= ivar42) {
goto LABEL2
}
switch v1 = ns.Random(0, 1); v1 {
case 0:
goto LABEL3
case 1:
goto LABEL4
default:
goto LABEL5
}
LABEL3:
v0 = ns.CreateObject("BomberYellow", wp45[gvar37])
ns.TrapSpells(v0, ns.SPELL_METEOR, "", "")
goto LABEL5
LABEL4:
v0 = ns.CreateObject("Bomber", wp45[gvar37])
goto LABEL5
LABEL5:
goto LABEL6
LABEL2:
ivar41 = ns.Random(0, 5)
ns.CreateObject(str46[ivar41], wp45[gvar37])
LABEL6:
ivar43[gvar37] += 1
if !(ivar43[gvar37] > ivar38) {
goto LABEL7
}
ns.FrameTimerWithArg(30, gvar37, SummoningCircleCleared)
goto LABEL1
LABEL7:
ns.FrameTimerWithArg(ivar40, gvar37, ResetSummonCircle)
LABEL1:
return
}
func SummonCircle07Activate() {
var (
v0 ns.ObjectID
v1 int
)
gvar37 = 6
if !(ns.IsCaller(ns.GetHost()) && flag44[gvar37] == true) {
goto LABEL1
}
flag44[gvar37] = false
ns.ObjectGroupOff(gvar33[gvar37])
ns.AudioEvent(ns.SummonCast, wp45[gvar37])
ns.Effect(ns.SMOKE_BLAST, ns.GetWaypointX(wp45[gvar37]), ns.GetWaypointY(wp45[gvar37]), 0, 0)
if !(ns.Random(0, 100) <= ivar42) {
goto LABEL2
}
switch v1 = ns.Random(0, 1); v1 {
case 0:
goto LABEL3
case 1:
goto LABEL4
default:
goto LABEL5
}
LABEL3:
v0 = ns.CreateObject("BomberYellow", wp45[gvar37])
ns.TrapSpells(v0, ns.SPELL_METEOR, "", "")
goto LABEL5
LABEL4:
v0 = ns.CreateObject("Bomber", wp45[gvar37])
goto LABEL5
LABEL5:
goto LABEL6
LABEL2:
ivar41 = ns.Random(0, 5)
ns.CreateObject(str46[ivar41], wp45[gvar37])
LABEL6:
ivar43[gvar37] += 1
if !(ivar43[gvar37] > ivar38) {
goto LABEL7
}
ns.FrameTimerWithArg(30, gvar37, SummoningCircleCleared)
goto LABEL1
LABEL7:
ns.FrameTimerWithArg(ivar40, gvar37, ResetSummonCircle)
LABEL1:
return
}
func SummonCircle08Activate() {
var (
v0 ns.ObjectID
v1 int
)
gvar37 = 7
if !(ns.IsCaller(ns.GetHost()) && flag44[gvar37] == true) {
goto LABEL1
}
flag44[gvar37] = false
ns.ObjectGroupOff(gvar33[gvar37])
ns.AudioEvent(ns.SummonCast, wp45[gvar37])
ns.Effect(ns.SMOKE_BLAST, ns.GetWaypointX(wp45[gvar37]), ns.GetWaypointY(wp45[gvar37]), 0, 0)
if !(ns.Random(0, 100) <= ivar42) {
goto LABEL2
}
switch v1 = ns.Random(0, 1); v1 {
case 0:
goto LABEL3
case 1:
goto LABEL4
default:
goto LABEL5
}
LABEL3:
v0 = ns.CreateObject("BomberYellow", wp45[gvar37])
ns.TrapSpells(v0, ns.SPELL_METEOR, "", "")
goto LABEL5
LABEL4:
v0 = ns.CreateObject("Bomber", wp45[gvar37])
goto LABEL5
LABEL5:
goto LABEL6
LABEL2:
ivar41 = ns.Random(0, 5)
ns.CreateObject(str46[ivar41], wp45[gvar37])
LABEL6:
ivar43[gvar37] += 1
if !(ivar43[gvar37] > ivar38) {
goto LABEL7
}
ns.FrameTimerWithArg(30, gvar37, SummoningCircleCleared)
goto LABEL1
LABEL7:
ns.FrameTimerWithArg(ivar40, gvar37, ResetSummonCircle)
LABEL1:
return
}
func SummonCircle09Activate() {
var (
v0 ns.ObjectID
v1 int
)
gvar37 = 8
if !(ns.IsCaller(ns.GetHost()) && flag44[gvar37] == true) {
goto LABEL1
}
flag44[gvar37] = false
ns.ObjectGroupOff(gvar33[gvar37])
ns.AudioEvent(ns.SummonCast, wp45[gvar37])
ns.Effect(ns.SMOKE_BLAST, ns.GetWaypointX(wp45[gvar37]), ns.GetWaypointY(wp45[gvar37]), 0, 0)
if !(ns.Random(0, 100) <= ivar42) {
goto LABEL2
}
switch v1 = ns.Random(0, 1); v1 {
case 0:
goto LABEL3
case 1:
goto LABEL4
default:
goto LABEL5
}
LABEL3:
v0 = ns.CreateObject("BomberYellow", wp45[gvar37])
ns.TrapSpells(v0, ns.SPELL_METEOR, "", "")
goto LABEL5
LABEL4:
v0 = ns.CreateObject("Bomber", wp45[gvar37])
goto LABEL5
LABEL5:
goto LABEL6
LABEL2:
ivar41 = ns.Random(0, 5)
ns.CreateObject(str46[ivar41], wp45[gvar37])
LABEL6:
ivar43[gvar37] += 1
if !(ivar43[gvar37] > ivar38) {
goto LABEL7
}
ns.FrameTimerWithArg(30, gvar37, SummoningCircleCleared)
goto LABEL1
LABEL7:
ns.FrameTimerWithArg(ivar40, gvar37, ResetSummonCircle)
LABEL1:
return
}
func SummonCircle10Activate() {
var (
v0 ns.ObjectID
v1 int
)
gvar37 = 9
if !(ns.IsCaller(ns.GetHost()) && flag44[gvar37] == true) {
goto LABEL1
}
flag44[gvar37] = false
ns.ObjectGroupOff(gvar33[gvar37])
ns.AudioEvent(ns.SummonCast, wp45[gvar37])
ns.Effect(ns.SMOKE_BLAST, ns.GetWaypointX(wp45[gvar37]), ns.GetWaypointY(wp45[gvar37]), 0, 0)
if !(ns.Random(0, 100) <= ivar42) {
goto LABEL2
}
switch v1 = ns.Random(0, 1); v1 {
case 0:
goto LABEL3
case 1:
goto LABEL4
default:
goto LABEL5
}
LABEL3:
v0 = ns.CreateObject("BomberYellow", wp45[gvar37])
ns.TrapSpells(v0, ns.SPELL_METEOR, "", "")
goto LABEL5
LABEL4:
v0 = ns.CreateObject("Bomber", wp45[gvar37])
goto LABEL5
LABEL5:
goto LABEL6
LABEL2:
ivar41 = ns.Random(0, 5)
ns.CreateObject(str46[ivar41], wp45[gvar37])
LABEL6:
ivar43[gvar37] += 1
if !(ivar43[gvar37] > ivar38) {
goto LABEL7
}
ns.FrameTimerWithArg(30, gvar37, SummoningCircleCleared)
goto LABEL1
LABEL7:
ns.FrameTimerWithArg(ivar40, gvar37, ResetSummonCircle)
LABEL1:
return
}
func EnableBomberPitElevator() {
if !ns.IsCaller(ns.GetHost()) {
goto LABEL1
}
ns.ObjectOn(obj21)
LABEL1:
return
}
func OpenBomberPitExit() {
ns.ObjectOff(ns.GetTrigger())
ns.WallOpen(ns.Wall(159, 109))
}
func OnEvent(typ string) {
switch typ {
case "PlayerDeath":
PlayerDeath()
case "MapInitialize":
MapInitialize()
case "MapEntry":
MapEntry()
}
}