-
Notifications
You must be signed in to change notification settings - Fork 22
/
mage-bot.razor
2701 lines (2472 loc) · 101 KB
/
mage-bot.razor
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
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
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# One hotkey mage cycle, nox, poison by Jaseowns
# UO Outlands - https://outlands.uorazorscripts.com/mage-bot
#
# Version: v8.3.0
#
#
// 04/05/2023
// - adding timer to cannot be seen
#
##################
## Always room for improvment, thanks for watching!
############
# continue to fight the same target even after summons
# target not seen - (warmode maybe?)
@setvar! minimumWaitForPing 200
# make sure you add a friends list called: IgnoreMobs
@setvar! didYouSetupIgnoreMobs 0
# Do you want to use the new FindType code? Use 1 here
# Else it will use the Target Closest Mon functionality
@setvar! useFindTypeToTargetMonster 1
# after a kill you must have this amount of mana to continue to next target
@setvar! minimumManaToCast 40
# Set this to one, if you want to cast poison once no matter what
# If you have 100 poisoning and want Lethal, set this to 0
@setvar! castPoisonAnyway 0
# This will auto replay this script if you want it too
@setvar! autoBotEnabled 1
# Update this variable to 1 for ALL KILL
# Update this variable to 0 for target nearest
@setvar! setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster 0
################################
###### Random abilities
################
@setvar! automaticallySkinCorpses 1
@setvar! manaReserve 50
@setvar! cdRetryBasedOnTargetNotSeen 2000
# Ultimate Summoner Hotkey Choose your summons by Jaseowns
# UO Outlands
# This is part of the mage bot, but you can have it
# as its own hotkey
###############
### Choose your summons
######
@setvar! breakSpellCastAndResummonIfLessThanXFollowers 4
@setvar! renamePets 1
# Earth: 0, 1, 2
@setvar! castSummonEarthElementalCount 0
@setvar! castSummonMummyCount 1
# Fire: 0, 1, 2
@setvar! castSummonFireElementalCount 0
@setvar! castSummonLichCount 0
# Demon: 0, 1, 2
@setvar! castSummonDemonCount 0
@setvar! castSummonThrallCount 1
# Air: 0, 1, 2
@setvar! castSummonAirCount 0
@setvar! castSummonFiendCount 0
# Water: 0, 1, 2
@setvar! castSummonWaterCount 0
@setvar! castSummonRagWitchCount 0
# Creature: 0, 1, 2, 3, 4, 5
@setvar! castSummonCreatureCount 1
# Energy Vortex: 0, 1
@setvar! castEnergyVortexCount 0
@setvar! castJackalSpiritCount 0
# Blade Spirit: 0, 1
@setvar! castBladeSpiritCount 0
@setvar! castSkeletalHuskCount 0
###############
### Choose your spells
######
@setvar! castCurse 0
@setvar! castManadrain 0
@setvar! castLightning 1
@setvar! castFireball 0
@setvar! castHarm 1
@setvar! castMagicArrow 1
# When other spells are on cooldown, do you want to cast Ebolt, MindBlast, Flamestrike or all three
@setvar! castEbolt 1
@setvar! castMindBlast 1
@setvar! castFlamestrike 0
################################
###### Heal Controllers
################
@setvar! hpCheckToTriggerGreaterHealSpell 30
@setvar! hpCheckToTriggerMiniEmergencyHealSpell 60
@setvar! hpCheckToTriggerHealPotion 45
################################
###### Potion Controllers
################
@setvar! automaticallyDrinkStrPotIfOverWeight 1
# Drink Magic resist potion (only if magic shield buff not found)
@setvar! automaticallyDrinkMagicPot 1
@setvar! automaticallyDrinkHealPot 1
@setvar! automaticallyDrinkCurePot 1
#@setvar! automaticallyDrinkRefreshPot 1
@setvar! hpCheckToTriggerCurePotion 45
#@setvar! stamDiffCheckToTriggerRedPotion 10
### Buffs
@setvar! castBless 0
@setvar! castMagicShield 1
@setvar! castReactiveArmor 1
###############
### Choose your necro spells (ignored if less then required necro skill)
######
@setvar! castEvilOmen 1
@setvar! castCorpseSkin 1
@setvar! castVampiricEmbrace 0
@setvar! castMindRot 1
@setvar! castPoisonStrike 1
@setvar! castBloodOath 1
@setvar! castPainSpike 1
@setvar! requireWitherBeforeSummons 0
###############
### Edit these cooldowns to match your wizard grimoire
######
@setvar! canYouMakeAMushroom 1
@setvar! cdLightning 20000
@setvar! cdMagicArrow 20000
@setvar! cdHarm 20000
@setvar! cdFireball 60000
@setvar! cdAutoHealTamerPet 15000
###############
### Necro Cooldowns
######
@setvar! cdEvilOmen 30500
@setvar! cdVampiricEmbrace 30500
@setvar! cdCorpseSkin 30500
@setvar! cdMindRot 30500
@setvar! cdWither 30500
@setvar! cdVengefulSpirit 30500
@setvar! cdBloodOath 30500
@setvar! cdPainSpike 30500
@setvar! cdPoisonStrike 30500
#### Buff Cooldowns
@setvar! cdMushroom 61000
@setvar! cdMagicShield 61000
@setvar! cdReactiveArmor 61000
@setvar! cdMeditation 10000
@setvar! cdMeditationMini 3000
@setvar! cdKillTarget 60000
#### Random cooldowns
@setvar! cdPreventOverheadSpam 2000
@setvar! cdSkinningCheck 3000
@setvar! cdCleansingBrew 125000
#### Mushroom count (I like a lot of shroomies)
@setvar! makeThisManyMushroomsCount 15
@setvar! butOnlyIHaveLessThenThisCount 5
@setvar! patrolPetEvenIfLastTargetIsBeyondEightTiles 1
if counttype "gold coin" backpack as total
if diffweight < 10 and 10000 < total
overhead "Warning: {{total}} gold and no weight!" 34
endif
endif
#### Pet Names, unique to you
if not listexists petNameList
createlist petNameList
endif
if list petNameList = 0
pushlist petNameList "jaseneccy"
pushlist petNameList "jaseyoutube"
pushlist petNameList "jaseytfollow"
pushlist petNameList "jaseytfollower"
pushlist petNameList "jasesubscribed"
pushlist petNameList "jaseoutlands"
pushlist petNameList "jaseuorazorscripts"
pushlist petNameList "jaseyoutuber"
pushlist petNameList "jasefunez"
pushlist petNameList "jasetwitch"
pushlist petNameList "jasesubscribe"
pushlist petNameList "jasefueoz"
endif
##################################################################
#
# Hopefully you do not have to edit after this :)
#
##################################################################
if not varexist JaseOwns
overhead "v8.3.0" 34
overhead "uorazorscripts.com/mage-bot" 34
say "This script was brought to you by youtube.com/Jaseowns" 88
wait 500
@setvar! JaseOwns 1
endif
if didYouSetupIgnoreMobs = 0 and useFindTypeToTargetMonster = 0
overhead "For this script to work, make sure you add a friends list called: IgnoreMobs" 34
sysmsg "For this script to work, make sure you add a friends list called: IgnoreMobs" 34
wait 1500
overhead "Click Friends Tab -> [checkmark] enabled -> [checkmark] Next/Prev Target ignores 'IgnoreMobs'" 88
sysmsg "Click Friends Tab -> [checkmark] enabled -> [checkmark] Next/Prev Target ignores 'IgnoreMobs'" 88
wait 5000
overhead "If everything is setup, update didYouSetupIgnoreMobs to 1"
sysmsg "If everything is setup, update didYouSetupIgnoreMobs to 1"
wait 5000
replay
endif
if dead
overhead "Rip" 34
for 10
if gumpexists 2957810225
gumpresponse 1 2957810225
break
endif
wait 500
endfor
replay
endif
@setvar! tamerModeEngaged 0
if skill "Animal Taming" > 50
@setvar! tamerModeEngaged 1
if not varexist jaseTankPet or not find jaseTankPet ground -1 -1 12
overhead "Select your tank pet" 88
@setvar! jaseTankPet
endif
endif
if weight >= maxweight and not findbuff "strength" and automaticallyDrinkStrPotIfOverWeight = 1 and findtype "white potion" backpack as pot
dclick pot
wait 200
endif
if not gumpexists 622436516 and skill "Necromancy" >= 50
say '[NecromancyHotbar'
wait 500
endif
if skill "Tracking" > 0
if not findbuff "tracking"
clearsysmsg
while not gumpexists 4267467659
useskill 'tracking'
wait minimumWaitForPing
endwhile
if gumpexists 4267467659
while not insysmsg "You will now hunt all hostile players."
gumpresponse 8 4267467659
waitforgump 4267467659 5000
endwhile
gumpresponse 6 4267467659
wait minimumWaitForPing
endif
gumpclose 4267467659
endif
endif
if not timerexists skinningCheckTimer
settimer skinningCheckTimer cdSkinningCheck
endif
if not timerexists retryBasedOnTargetNotSeenTimer
settimer retryBasedOnTargetNotSeenTimer cdRetryBasedOnTargetNotSeen
endif
if automaticallySkinCorpses = 1 and findtype "corpse" ground -1 -1 2 as jorpse
if findtype "Elven Spellblade" backpack and timer skinningCheckTimer >= cdSkinningCheck
while not targetexists
useskill 'forensicevaluation'
endwhile
if targetexists beneficial or targetexists neutral
hotkey "Target Self"
wait minimumWaitForPing
settimer skinningCheckTimer 0
@ignore jorpse
endif
endif
endif
// Make sure we have a spell book attached
if findlayer self righthand as item
// do nothing
elseif findtype "3834" backpack as item
getlabel item spellBookDesc
if "blessed" in spellBookDesc
@ignore item
else
dclick item
endif
else
overhead "No book bro!" 34
endif
// Setting current necro symbols - checks again it the attack loop
@setvar! necroSymbols 12
if gumpexists 622436516 and skill "Necromancy" >= 50
if ingump "12/" 622436516
@setvar! necroSymbols 12
elseif ingump "13/" 622436516
@setvar! necroSymbols 13
elseif ingump "14/" 622436516
@setvar! necroSymbols 14
elseif ingump "15/" 622436516
@setvar! necroSymbols 15
elseif ingump "16/" 622436516
@setvar! necroSymbols 16
elseif ingump "17/" 622436516
@setvar! necroSymbols 17
elseif ingump "18/" 622436516
@setvar! necroSymbols 18
elseif ingump "19/" 622436516
@setvar! necroSymbols 19
elseif ingump "20/" 622436516
@setvar! necroSymbols 20
elseif ingump "21/" 622436516
@setvar! necroSymbols 21
elseif ingump "11/" 622436516
@setvar! necroSymbols 11
elseif ingump "10/" 622436516
@setvar! necroSymbols 10
elseif ingump "9/" 622436516
@setvar! necroSymbols 9
elseif ingump "8/" 622436516
@setvar! necroSymbols 8
elseif ingump "7/" 622436516
@setvar! necroSymbols 7
elseif ingump "6/" 622436516
@setvar! necroSymbols 6
elseif ingump "5/" 622436516
@setvar! necroSymbols 5
elseif ingump "4/" 622436516
@setvar! necroSymbols 4
elseif ingump "3/" 622436516
@setvar! necroSymbols 3
elseif ingump "2/" 622436516
@setvar! necroSymbols 2
elseif ingump "1/" 622436516
@setvar! necroSymbols 1
elseif ingump "0/" 622436516
@setvar! necroSymbols 0
endif
endif
if not timerexists reactiveArmorTimer
createtimer reactiveArmorTimer
settimer reactiveArmorTimer cdMagicShield
endif
if not timerexists cleansingBrewTimer
settimer cleansingBrewTimer cdCleansingBrew
endif
if not timerexists magicShieldTimer
createtimer magicShieldTimer
settimer magicShieldTimer cdMagicShield
endif
if not timerexists magicMushroomTimer
createtimer magicMushroomTimer
settimer magicMushroomTimer cdMushroom
endif
if not timerexists magicArrowTimer
createtimer magicArrowTimer
settimer magicArrowTimer cdMagicArrow
endif
if not timerexists lightningTimer
createtimer lightningTimer
settimer lightningTimer cdLightning
endif
if not timerexists harmTimer
createtimer harmTimer
settimer harmTimer cdHarm
endif
if not timerexists autoHealTamerPet
createtimer autoHealTamerPet
settimer autoHealTamerPet cdAutoHealTamerPet
endif
if not timerexists fireballTimer
createtimer fireballTimer
settimer fireballTimer cdFireball
endif
if not timerexists evilOmenTimer
createtimer evilOmenTimer
settimer evilOmenTimer cdEvilOmen
endif
if not timerexists vampiricEmbraceTimer
createtimer vampiricEmbraceTimer
settimer vampiricEmbraceTimer cdVampiricEmbrace
endif
if not timerexists corpseSkinTimer
createtimer corpseSkinTimer
settimer corpseSkinTimer cdCorpseSkin
endif
if not timerexists mindRotTimer
createtimer mindRotTimer
settimer mindRotTimer cdMindRot
endif
if not timerexists meditiationTimer
createtimer meditiationTimer
settimer meditiationTimer cdMeditation
endif
if not timerexists killTargetTimer
createtimer killTargetTimer
settimer killTargetTimer cdKillTarget
endif
if not timerexists witherTimer
createtimer witherTimer
settimer witherTimer cdWither
endif
if not timerexists vengefulSpiritTimer
createtimer vengefulSpiritTimer
settimer vengefulSpiritTimer cdVengefulSpirit
endif
if not timerexists bloodOathTimer
createtimer bloodOathTimer
settimer bloodOathTimer cdBloodOath
endif
if not timerexists painSpikeTimer
createtimer painSpikeTimer
settimer painSpikeTimer cdPainSpike
endif
if not timerexists poisonStrikeTimer
createtimer poisonStrikeTimer
settimer poisonStrikeTimer cdPoisonStrike
endif
if not timerexists preventOverheadSpamTimer
createtimer preventOverheadSpamTimer
settimer preventOverheadSpamTimer cdPreventOverheadSpam
endif
@setvar! cdPreventSpamNecroAbilities 750
if not timerexists preventSpamNecroAbilitiesTimer
createtimer preventSpamNecroAbilitiesTimer
settimer preventSpamNecroAbilitiesTimer cdPreventSpamNecroAbilities
endif
if not varexist myEarthPet
@setvar! myEarthPet 0
endif
// make sure we have enough symbols to summon (6 for wither + vengful spirit)
if skill "Necromancy" >= 90 and requireWitherBeforeSummons = 1
while followers < 4 and 6 > necroSymbols
// we already have vengeful spirit active, skip the check
if timer vengefulSpiritTimer < cdVengefulSpirit
break
endif
if diffhits >= hpCheckToTriggerGreaterHealSpell
if targetexists
hotkey 'Cancel Current Target'
endif
while not targetexists 'beneficial'
if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell
cast 'Heal'
else
cast 'Greater Heal'
endif
wait 50
if hp = maxhp
hotkey '> Interrupt'
break
endif
endwhile
if targetexists 'beneficial'
hotkey 'Target Self'
endif
endif
if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
overhead "waiting for symbols" 88
settimer preventOverheadSpamTimer 0
endif
if gumpexists 622436516 and skill "Necromancy" >= 50
if ingump "12/" 622436516
@setvar! necroSymbols 12
elseif ingump "13/" 622436516
@setvar! necroSymbols 13
elseif ingump "14/" 622436516
@setvar! necroSymbols 14
elseif ingump "15/" 622436516
@setvar! necroSymbols 15
elseif ingump "16/" 622436516
@setvar! necroSymbols 16
elseif ingump "17/" 622436516
@setvar! necroSymbols 17
elseif ingump "18/" 622436516
@setvar! necroSymbols 18
elseif ingump "19/" 622436516
@setvar! necroSymbols 19
elseif ingump "20/" 622436516
@setvar! necroSymbols 20
elseif ingump "21/" 622436516
@setvar! necroSymbols 21
elseif ingump "11/" 622436516
@setvar! necroSymbols 11
elseif ingump "10/" 622436516
@setvar! necroSymbols 10
elseif ingump "9/" 622436516
@setvar! necroSymbols 9
elseif ingump "8/" 622436516
@setvar! necroSymbols 8
elseif ingump "7/" 622436516
@setvar! necroSymbols 7
elseif ingump "6/" 622436516
@setvar! necroSymbols 6
elseif ingump "5/" 622436516
@setvar! necroSymbols 5
elseif ingump "4/" 622436516
@setvar! necroSymbols 4
elseif ingump "3/" 622436516
@setvar! necroSymbols 3
elseif ingump "2/" 622436516
@setvar! necroSymbols 2
elseif ingump "1/" 622436516
@setvar! necroSymbols 1
elseif ingump "0/" 622436516
@setvar! necroSymbols 0
endif
endif
endwhile
endif
if diffhits >= hpCheckToTriggerGreaterHealSpell
if targetexists
hotkey 'Cancel Current Target'
endif
while not targetexists 'beneficial'
if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell
cast 'Heal'
else
cast 'Greater Heal'
endif
wait 50
if hp = maxhp
hotkey '> Interrupt'
break
endif
endwhile
if targetexists 'beneficial'
hotkey "Target Self"
endif
replay
endif
if renamePets = 0
clearlist petNameList
endif
if castSummonFireElementalCount > 0 and castSummonLichCount > 0
overhead "I am not going to do that. Update lich/fire to one or the other." 34
sysmsg "I am not going to do that. Update lich/fire to one or the other." 34
wait 2000
replay
elseif castSummonEarthElementalCount > 0 and castSummonMummyCount > 0
overhead "I am not going to do that. Update earth/mummy to one or the other." 34
sysmsg "I am not going to do that. Update earth/mummy to one or the other." 34
wait 2000
replay
elseif castSummonDemonCount > 0 and castSummonThrallCount > 0
overhead "I am not going to do that. Update demon/thrall to one or the other." 34
sysmsg "I am not going to do that. Update demon/thrall to one or the other." 34
wait 2000
replay
elseif castSummonAirCount > 0 and castSummonFiendCount > 0
overhead "I am not going to do that. Update air/fiend to one or the other." 34
sysmsg "I am not going to do that. Update air/fiend to one or the other." 34
wait 2000
replay
elseif castSummonWaterCount > 0 and castSummonRagWitchCount > 0
overhead "I am not going to do that. Update water/witch to one or the other." 34
sysmsg "I am not going to do that. Update water/witch to one or the other." 34
wait 2000
replay
endif
if not gumpexists 622436516 and skill "Necromancy" >= 50
say '[NecromancyHotbar'
wait 500
endif
if not varexist myMainTankPet
@setvar! myMainTankPet 0
endif
if not varexist fireOne
@setvar! fireOne 0
endif
if not varexist fireTwo
@setvar! fireTwo 0
endif
if not varexist earthOne
@setvar! earthOne 0
endif
if not varexist earthTwo
@setvar! earthTwo 0
endif
if not varexist demonOne
@setvar! demonOne 0
endif
if not varexist demonTwo
@setvar! demonTwo 0
endif
if not varexist airOne
@setvar! airOne 0
endif
if not varexist airTwo
@setvar! airTwo 0
endif
if not varexist waterOne
@setvar! waterOne 0
endif
if not varexist waterTwo
@setvar! waterTwo 0
endif
if not varexist evOne
@setvar! evOne 0
endif
if not varexist bsOne
@setvar! bsOne 0
endif
removelist summonList
createlist summonList
if followers = 0
@setvar! followCount 0
elseif followers = 1
@setvar! followCount 1
elseif followers = 2
@setvar! followCount 2
elseif followers = 3
@setvar! followCount 3
elseif followers = 4
@setvar! followCount 4
elseif followers = 5
@setvar! followCount 5
endif
if castSummonEarthElementalCount > 0 or castSummonMummyCount > 0
if dead earthOne or not find earthOne ground -1 -1 18
if followers < 4
pushlist summonList "Earth Elemental"
@setvar! earthOne 1
endif
endif
if castSummonEarthElementalCount > 1 or castSummonMummyCount > 1
if dead earthTwo or not find earthTwo ground -1 -1 18
if followers < 4
pushlist summonList "Earth Elemental"
@setvar! earthTwo 1
endif
endif
endif
endif
if castSummonFireElementalCount > 0 or castSummonLichCount > 0
if dead fireOne or not find fireOne ground -1 -1 18
if followers < 4
pushlist summonList "Fire Elemental"
@setvar! fireOne 1
endif
endif
if castSummonFireElementalCount > 1 or castSummonLichCount > 1
if dead fireTwo or not find fireTwo ground -1 -1 18
if followers < 4
pushlist summonList "Fire Elemental"
@setvar! fireTwo 1
endif
endif
endif
endif
if castSummonDemonCount > 0 or castSummonThrallCount > 0
if dead demonOne or not find demonOne ground -1 -1 18
if followers < 4
pushlist summonList "Summon Daemon"
@setvar! demonOne 1
endif
endif
if castSummonDemonCount > 1 or castSummonThrallCount > 1
if dead demonTwo or not find demonTwo ground -1 -1 18
if followers < 4
pushlist summonList "Summon Daemon"
@setvar! demonTwo 1
endif
endif
endif
endif
if castSummonAirCount > 0 or castSummonFiendCount > 0
if dead airOne or not find airOne ground -1 -1 18
if followers < 4
pushlist summonList "Air Elemental"
@setvar! airOne 1
endif
endif
if castSummonAirCount > 1 or castSummonFiendCount > 1
if dead airTwo or not find airTwo ground -1 -1 18
if followers < 4
pushlist summonList "Air Elemental"
@setvar! airTwo 1
endif
endif
endif
endif
if castSummonWaterCount > 0 or castSummonRagWitchCount > 0
if dead waterOne or not find waterOne ground -1 -1 18
if followers < 4
pushlist summonList "Water Elemental"
@setvar! waterOne 1
endif
endif
if castSummonWaterCount > 1 or castSummonRagWitchCount > 1
if dead waterTwo or not find waterTwo ground -1 -1 18
if followers < 4
pushlist summonList "Water Elemental"
@setvar! waterTwo 1
endif
endif
endif
endif
if castEnergyVortexCount > 0 or castJackalSpiritCount > 0
if dead evOne or not find evOne ground -1 -1 18
if followers < 5
pushlist summonList "Energy Vortex"
@setvar! evOne 1
endif
endif
endif
if castBladeSpiritCount > 0 or castSkeletalHuskCount > 0
if dead bsOne or not find bsOne ground -1 -1 18
if followers < 5
pushlist summonList "Blade Spirits"
@setvar! bsOne 1
endif
endif
endif
if followers < 5
if castSummonCreatureCount = 1
pushlist summonList "Summ. Creature"
elseif castSummonCreatureCount = 2
pushlist summonList "Summ. Creature"
pushlist summonList "Summ. Creature"
elseif castSummonCreatureCount = 3
pushlist summonList "Summ. Creature"
pushlist summonList "Summ. Creature"
pushlist summonList "Summ. Creature"
elseif castSummonCreatureCount = 4
pushlist summonList "Summ. Creature"
pushlist summonList "Summ. Creature"
pushlist summonList "Summ. Creature"
pushlist summonList "Summ. Creature"
elseif castSummonCreatureCount = 5
pushlist summonList "Summ. Creature"
pushlist summonList "Summ. Creature"
pushlist summonList "Summ. Creature"
pushlist summonList "Summ. Creature"
pushlist summonList "Summ. Creature"
endif
while targetexists
hotkey 'Cancel Current Target'
wait 200
endwhile
endif
foreach summon in summonList
if followers < 5
overhead "Casting Summon: {{summon}}" 88
while mana < 50
if timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy
overhead "Eating shrooms" 66
dclick mushy
@setvar! jase_shrooms mushy
wait 200
if insysmsg "You consume a magic mushroom and restore some mana."
settimer magicMushroomTimer 0
elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"
settimer magicMushroomTimer 30000
endif
endif
if diffhits >= hpCheckToTriggerGreaterHealSpell
replay
endif
if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
overhead "waiting for mana" 88
settimer preventOverheadSpamTimer 0
endif
if not findbuff "Actively Meditating"
useskill "meditation"
endif
wait 200
endwhile
@setvar! needVengefulSpirit 0
if summon = "Earth Elemental" and castSummonMummyCount > 0
@setvar! needVengefulSpirit 1
elseif summon = "Fire Elemental" and castSummonLichCount > 0
@setvar! needVengefulSpirit 1
elseif summon = "Summon Daemon" and castSummonThrallCount > 0
@setvar! needVengefulSpirit 1
elseif summon = "Air Elemental" and castSummonFiendCount > 0
@setvar! needVengefulSpirit 1
elseif summon = "Water Elemental" and castSummonRagWitchCount > 0
@setvar! needVengefulSpirit 1
elseif summon = "Summ. Creature" and skill "Necromancy" >= 50
@setvar! needVengefulSpirit 1
elseif summon = "Energy Vortex" and castJackalSpiritCount > 0
@setvar! needVengefulSpirit 1
elseif summon = "Blade Spirits" and castSkeletalHuskCount > 0
@setvar! needVengefulSpirit 1
elseif timer vengefulSpiritTimer <= cdVengefulSpirit and skill "Necromancy" >= 50
if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
overhead "Waiting for spirit to go away" 88
settimer preventOverheadSpamTimer 0
endif
replay
endif
if needVengefulSpirit = 1
if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50
yell "[VengefulSpirit"
settimer vengefulSpiritTimer 0
wait 500
endif
elseif timer vengefulSpiritTimer <= cdVengefulSpirit and skill "Necromancy" >= 50
if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
overhead "Waiting for spirit to go away" 88
settimer preventOverheadSpamTimer 0
endif
replay
endif
if followers = 0
@setvar! followCount 0
elseif followers = 1
@setvar! followCount 1
elseif followers = 2
@setvar! followCount 2
elseif followers = 3
@setvar! followCount 3
elseif followers = 4
@setvar! followCount 4
elseif followers = 5
@setvar! followCount 5
endif
if summon = "Summ. Creature" or summon = "Blade Spirits"
// these only take 1 - so keep trying to cast
elseif followers >= 4
// if we already at 4, skip to next summon
break
endif
while followers = followCount
if followers = 5
break
endif
cast summon
wft 500
if targetexists
hotkey "Target Self"
wait 200
endif
if timer witherTimer >= cdWither and skill "Necromancy" >= 95
yell "[Wither"
settimer witherTimer 0
endif
if diffhits >= hpCheckToTriggerGreaterHealSpell
if targetexists
hotkey "Cancel Current target"
endif
overhead "Need a heal!"
hotkey '> Interrupt'
while diffhits >= hpCheckToTriggerGreaterHealSpell and mana > 12
while not targetexists beneficial
if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell
cast 'Heal'
else
cast 'Greater Heal'
endif
wait 50
endwhile
while targetexists beneficial
hotkey "Target Self"
wait 50
endwhile
endwhile
endif
endwhile
wait 200
@setvar! myFreshlySummonedPet 0
// 158 - an ancient mummy
// 14 - an earth elemental
if summon = "Earth Elemental" and findtype 158|14 ground -1 -1 2 as myPet
@setvar! myFreshlySummonedPet myPet
if earthOne = 1
@setvar! earthOne myPet
elseif earthTwo = 1
@setvar! earthTwo myPet
endif
// 24 - a lich
// 15 - a fire elemental
elseif summon = "Fire Elemental" and findtype 24|15 ground -1 -1 2 as myPet
@setvar! myFreshlySummonedPet myPet
if fireOne = 1
@setvar! fireOne myPet
elseif fireTwo = 1
@setvar! fireTwo myPet
endif
// 9 - a deamon
// 722 - a vampire thrall
elseif summon = "Summon Daemon" and findtype 9|722 ground -1 -1 2 as myPet
@setvar! myFreshlySummonedPet myPet
if demonOne = 1
@setvar! demonOne myPet
elseif demonTwo = 1
@setvar! demonTwo myPet
endif
// 16 - water elemental
// 740 - a rage witch
elseif summon = "Water Elemental" and findtype 16|740 ground -1 -1 2 as myPet
@setvar! myFreshlySummonedPet myPet
if waterOne = 1
@setvar! waterOne myPet
elseif waterTwo = 1
@setvar! waterTwo myPet
endif
// 13 - air elemental
// 306 - a skeletal fiend
elseif summon = "Air Elemental" and findtype 13|306 ground -1 -1 2 as myPet