Ultimate Magery Summoner Nox Necro Discord + Peacemaking w/ Buffs Autobot Hotkey by dave5678

Description: Jaseowns Ultimate script with Peacemaking and Discord

1# One hotkey mage cycle, nox, poison by Jaseowns
2# UO Outlands - https://outlands.uorazorscripts.com/mage-bot
3# 
4# Cooldowns are live, so this script now attempts to display those
5# Make cooldowns match the names of skills 
6# (check out for details: https://outlands.uorazorscripts.com/mage-bot)
7#
8# VERISON: v2.3.0
9#
10#    
11// 01/07/2023
12// - control mana break requirement
13// - fix pet selection to avoid others summoned pets (reds/grays)
14// - must setup IgnoreMobs friends list and checkbox Ignore 
15// 12/26/2022
16// - updated poison strike and how it deals with poison
17// - added earth elemental as pet only instead of mummy
18// 12/21/2022
19// - fixed bug with mindblast and two lich summons
20// 12/17/2022
21// - V2 of AutoBot created.  Idea is to leverage things from mining script
22##################
23## Always room for improvment, thanks for watching!
24############
25
26# make sure you add a friends list called: IgnoreMobs
27@setvar! didYouSetupIgnoreMobs 1
28
29# after a kill you must have this amount of mana to continue to next target
30@setvar! minimumManaToCast 40 
31
32# Set this to one, if you want to cast poison once no matter what
33# If you have 100 poisoning and want Lethal, set this to 0
34@setvar! castPoisonAnyway 0
35
36# This will auto replay this script if you want it too
37@setvar! autoBotEnabled 1
38
39# Update this variable to 1 for ALL KILL
40# Update this variable to 0 for target nearest
41@setvar! setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster 0
42
43###############
44###  Choose your summons
45######
46@setvar! castSummonFireElementalCount 2
47@setvar! castSummonCreatureCount 1
48@setvar! castSummonEarthElementalCount 0
49@setvar! castSummonEarthElementalAsMummy 0
50
51###############
52###  Choose your spells
53######
54@setvar! castCurse 1
55@setvar! castManadrain 1
56@setvar! castLightning 1
57@setvar! castFireball 1
58@setvar! castHarm 1
59@setvar! castMagicArrow 1
60# When other spells are on cooldown, do you want to cast MindBlast or Flamestrike or both
61@setvar! castMindBlast 0
62@setvar! castFlamestrike 1
63
64### Buffs
65@setvar! castBless 0
66@setvar! castMagicShield 1
67@setvar! castReactiveArmor 1
68# Drink Magic resist potion (only if magic shield buff not found)
69@setvar! drinkMagicResistPot 1
70
71###############
72###  Choose your necro spells (ignored if less then required necro skill)
73######
74@setvar! castEvilOmen 1
75@setvar! castCorpseSkin 0
76@setvar! castVampiricEmbrace 0
77@setvar! castMindRot 0
78@setvar! castPoisonStrike 0
79@setvar! castBloodOath 0
80@setvar! castPainSpike 1
81@setvar! requireWitherBeforeSummons 1
82
83###############
84### Edit these cooldowns to match your wizard grimoire
85######
86@setvar! canYouMakeAMushroom 1
87@setvar! cdLightning 60000
88@setvar! cdMagicArrow 60000
89@setvar! cdHarm 60000
90@setvar! cdFireball 60000
91
92###############
93### Necro Cooldowns
94######
95@setvar! cdEvilOmen 30500
96@setvar! cdVampiricEmbrace 30500
97@setvar! cdCorpseSkin 30500
98@setvar! cdMindRot 30500
99@setvar! cdWither 30500
100@setvar! cdVengefulSpirit 30500
101@setvar! cdBloodOath 30500
102@setvar! cdPainSpike 30500
103@setvar! cdPoisonStrike 30500
104
105
106#### Buff Cooldowns
107@setvar! cdMushroom 61000
108@setvar! cdMagicShield 61000
109@setvar! cdReactiveArmor 61000
110@setvar! cdMeditation 10000
111@setvar! cdMeditationMini 3000
112@setvar! cdKillTarget 60000
113
114#### Random cooldowns
115@setvar! cdPreventOverheadSpam 2000
116
117#### Mushroom count (I like a lot of shroomies)
118@setvar! makeThisManyMushroomsCount 15
119@setvar! butOnlyIHaveLessThenThisCount 5
120
121@setvar! patrolPetEvenIfLastTargetIsBeyondEightTiles 1
122
123if counttype "gold coin" backpack as total
124    if 10000 < total
125        overhead "Warning: {{total}} gold!" 34
126    endif
127endif
128
129if findtype "dungeon torch" backpack as item
130    overhead "Holy crap!" 88    
131    say "I got one!" 88
132    overhead "I got one!" 88
133elseif findtype 30580 backpack as item
134    overhead "Holy crap!" 88    
135    say "I got one!" 88
136    overhead "I got one!" 88
137endif
138    
139
140#### Pet Names, unique to you
141#if not listexists petNameList
142    removelist petNameList
143	createlist petNameList
144#endif
145if list petNameList = 0
146    pushlist petNameList "ThatDude"
147    pushlist petNameList "ThisDude"
148    pushlist petNameList "ThisMan"
149    pushlist petNameList "ThatMan"
150endif
151
152#### Bard stuff
153@setvar! isDiscBuffed 0
154@setvar! isPeaceBuffed 0
155		
156			if not findbuff "song of discordance"
157                useskill 'Discordance'
158                wft 500
159                if insysmsg "What instrument"
160                    if findtype "bamboo flute" backpack as inny
161                        target inny
162                    elseif findtype "tambourine" backpack as inny
163                        target inny
164                    elseif findtype "drum" backpack as inny
165                        target inny
166                    elseif findtype "lute" backpack as inny
167                        target inny
168                    elseif findtype "harp" backpack as inny
169                        target inny
170                    elseif findtype "lap harp" backpack as inny
171                        target inny
172                    else
173                        overhead "I do not have an inny" 34
174                    endif
175                    wft 500
176                endif
177                target backpack
178				@setvar! isDiscBuffed 1
179                settimer discTimer 0
180            endif    
181            
182			if not findbuff "song of peacemaking"
183                useskill 'Peacemaking'
184                wft 500
185                if insysmsg "What instrument"
186                    if findtype "bamboo flute" backpack as inny
187                        target inny
188                    elseif findtype "tambourine" backpack as inny
189                        target inny
190                    elseif findtype "drum" backpack as inny
191                        target inny
192                    elseif findtype "lute" backpack as inny
193                        target inny
194                    elseif findtype "harp" backpack as inny
195                        target inny
196                    elseif findtype "lap harp" backpack as inny
197                        target inny
198                    else
199                        overhead "I do not have an inny" 34
200                    endif
201                    wft 500
202                endif
203                target backpack
204                settimer peaceTimer 0
205				@setvar! isPeaceBuffed 1
206            endif
207
208
209##################################################################
210# 
211#   Hopefully you do not have to edit after this :)
212#
213##################################################################
214
215if didYouSetupIgnoreMobs = 0
216    overhead "For this script to work, make sure you add a friends list called: IgnoreMobs" 34
217    sysmsg  "For this script to work, make sure you add a friends list called: IgnoreMobs" 34
218    wait 1500
219    overhead "Click Friends Tab -> [checkmark] enabled -> [checkmark] Next/Prev Target ignores 'IgnoreMobs'" 88
220    sysmsg "Click Friends Tab -> [checkmark] enabled -> [checkmark] Next/Prev Target ignores 'IgnoreMobs'" 88
221    wait 5000
222    overhead "If everything is setup, update didYouSetupIgnoreMobs to 1"
223    sysmsg "If everything is setup, update didYouSetupIgnoreMobs to 1"
224    wait 5000
225    replay
226endif
227
228if not gumpexists 622436516 and skill "Necromancy" >= 50
229    say '[NecromancyHotbar'
230    wait 500
231endif
232
233// Make sure we have a spell book attached
234if findlayer self righthand as item
235    // do nothing
236elseif findtype "3834" backpack as item
237    dclick item
238else 
239    overhead "No book bro!" 34
240endif
241
242// Setting current necro symbols - checks again it the attack loop
243@setvar! necroSymbols 12
244if gumpexists 622436516 and skill "Necromancy" >= 50
245    if ingump "12/" 622436516
246        @setvar! necroSymbols 12
247    elseif ingump "13/" 622436516
248        @setvar! necroSymbols 13
249    elseif ingump "14/" 622436516
250        @setvar! necroSymbols 14
251    elseif ingump "15/" 622436516
252        @setvar! necroSymbols 15
253    elseif ingump "16/" 622436516
254        @setvar! necroSymbols 16
255    elseif ingump "17/" 622436516
256        @setvar! necroSymbols 17
257    elseif ingump "18/" 622436516
258        @setvar! necroSymbols 18
259    elseif ingump "19/" 622436516
260        @setvar! necroSymbols 19
261    elseif ingump "20/" 622436516
262        @setvar! necroSymbols 20
263    elseif ingump "21/" 622436516
264        @setvar! necroSymbols 21
265    elseif ingump "11/" 622436516
266        @setvar! necroSymbols 11
267    elseif ingump "10/" 622436516
268        @setvar! necroSymbols 10
269    elseif ingump "9/" 622436516
270        @setvar! necroSymbols 9
271    elseif ingump "8/" 622436516
272        @setvar! necroSymbols 8
273    elseif ingump "7/" 622436516
274        @setvar! necroSymbols 7
275    elseif ingump "6/" 622436516
276        @setvar! necroSymbols 6
277    elseif ingump "5/" 622436516
278        @setvar! necroSymbols 5
279    elseif ingump "4/" 622436516
280        @setvar! necroSymbols 4
281    elseif ingump "3/" 622436516
282        @setvar! necroSymbols 3
283    elseif ingump "2/" 622436516
284        @setvar! necroSymbols 2
285    elseif ingump "1/" 622436516
286        @setvar! necroSymbols 1
287    elseif ingump "0/" 622436516
288        @setvar! necroSymbols 0
289    endif
290endif
291
292if not timerexists reactiveArmorTimer
293    createtimer reactiveArmorTimer
294    settimer reactiveArmorTimer cdMagicShield
295endif
296
297if not timerexists magicShieldTimer
298    createtimer magicShieldTimer
299    settimer magicShieldTimer cdMagicShield
300endif
301
302if not timerexists magicMushroomTimer
303    createtimer magicMushroomTimer
304    settimer magicMushroomTimer cdMushroom
305endif
306
307if not timerexists magicArrowTimer
308    createtimer magicArrowTimer
309    settimer magicArrowTimer cdMagicArrow
310endif
311
312if not timerexists lightningTimer
313    createtimer lightningTimer
314    settimer lightningTimer cdLightning
315endif
316
317if not timerexists harmTimer
318    createtimer harmTimer
319    settimer harmTimer cdHarm
320endif
321
322if not timerexists fireballTimer
323    createtimer fireballTimer
324    settimer fireballTimer cdFireball
325endif
326
327if not timerexists evilOmenTimer
328    createtimer evilOmenTimer
329    settimer evilOmenTimer cdEvilOmen
330endif
331
332if not timerexists vampiricEmbraceTimer
333    createtimer vampiricEmbraceTimer
334    settimer vampiricEmbraceTimer cdVampiricEmbrace
335endif
336
337if not timerexists corpseSkinTimer
338    createtimer corpseSkinTimer
339    settimer corpseSkinTimer cdCorpseSkin
340endif
341
342if not timerexists mindRotTimer
343    createtimer mindRotTimer
344    settimer mindRotTimer cdMindRot
345endif
346
347if not timerexists meditiationTimer
348    createtimer meditiationTimer
349    settimer meditiationTimer cdMeditation
350endif
351
352if not timerexists peaceTimer
353    createtimer peaceTimer
354    settimer peaceTimer cdPeaceMaking
355endif
356
357if not timerexists discTimer
358    createtimer discTimer
359    settimer peaceTimer cdDiscordance
360endif
361
362if not timerexists killTargetTimer
363    createtimer killTargetTimer
364    settimer killTargetTimer cdKillTarget
365endif
366
367if not timerexists witherTimer
368    createtimer witherTimer
369    settimer witherTimer cdWither
370endif
371
372if not timerexists vengefulSpiritTimer
373    createtimer vengefulSpiritTimer
374    settimer vengefulSpiritTimer cdVengefulSpirit
375endif
376
377if not timerexists bloodOathTimer
378    createtimer bloodOathTimer
379    settimer bloodOathTimer cdBloodOath
380endif
381
382if not timerexists painSpikeTimer
383    createtimer painSpikeTimer
384    settimer painSpikeTimer cdPainSpike
385endif
386
387if not timerexists poisonStrikeTimer
388    createtimer poisonStrikeTimer
389    settimer poisonStrikeTimer cdPoisonStrike
390endif
391
392if not timerexists preventOverheadSpamTimer
393    createtimer preventOverheadSpamTimer
394    settimer preventOverheadSpamTimer cdPreventOverheadSpam
395endif
396
397@setvar! cdPreventSpamNecroAbilities 750
398if not timerexists preventSpamNecroAbilitiesTimer
399    createtimer preventSpamNecroAbilitiesTimer
400    settimer preventSpamNecroAbilitiesTimer cdPreventSpamNecroAbilities
401endif
402
403if not varexist myEarthPet
404    @setvar! myEarthPet 0
405endif
406
407// make sure we have enough symbols to summon (6 for wither + vengful spirit)
408if skill "Necromancy" >= 90 and requireWitherBeforeSummons = 1
409    while followers < 4 and 6 > necroSymbols
410        // we already have vengeful spirit active, skip the check
411        if timer vengefulSpiritTimer < cdVengefulSpirit
412           break
413        endif
414        if diffhits >= 30
415            if targetexists 
416                hotkey 'Cancel Current Target'
417            endif
418            while not targetexists 'beneficial'
419                if diffhits >= 60
420                    cast 'Heal'
421                else
422                    cast 'Greater Heal'                
423                endif
424                wait 50
425                if hp = maxhp
426                    hotkey '> Interrupt'
427                    break
428                endif
429            endwhile
430            if targetexists 'beneficial'
431                hotkey 'Target Self'
432            endif
433        endif
434        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
435            overhead "waiting for symbols" 88
436            settimer preventOverheadSpamTimer 0
437        endif
438        if gumpexists 622436516 and skill "Necromancy" >= 50
439            if ingump "12/" 622436516
440                @setvar! necroSymbols 12
441            elseif ingump "13/" 622436516
442                @setvar! necroSymbols 13
443            elseif ingump "14/" 622436516
444                @setvar! necroSymbols 14
445            elseif ingump "15/" 622436516
446                @setvar! necroSymbols 15
447            elseif ingump "16/" 622436516
448                @setvar! necroSymbols 16
449            elseif ingump "17/" 622436516
450                @setvar! necroSymbols 17
451            elseif ingump "18/" 622436516
452                @setvar! necroSymbols 18
453            elseif ingump "19/" 622436516
454                @setvar! necroSymbols 19
455            elseif ingump "20/" 622436516
456                @setvar! necroSymbols 20
457            elseif ingump "21/" 622436516
458                @setvar! necroSymbols 21
459            elseif ingump "11/" 622436516
460                @setvar! necroSymbols 11
461            elseif ingump "10/" 622436516
462                @setvar! necroSymbols 10
463            elseif ingump "9/" 622436516
464                @setvar! necroSymbols 9
465            elseif ingump "8/" 622436516
466                @setvar! necroSymbols 8
467            elseif ingump "7/" 622436516
468                @setvar! necroSymbols 7
469            elseif ingump "6/" 622436516
470                @setvar! necroSymbols 6
471            elseif ingump "5/" 622436516
472                @setvar! necroSymbols 5
473            elseif ingump "4/" 622436516
474                @setvar! necroSymbols 4
475            elseif ingump "3/" 622436516
476                @setvar! necroSymbols 3
477            elseif ingump "2/" 622436516
478                @setvar! necroSymbols 2
479            elseif ingump "1/" 622436516
480                @setvar! necroSymbols 1
481            elseif ingump "0/" 622436516
482                @setvar! necroSymbols 0
483            endif
484        endif
485    endwhile
486endif
487
488
489if not varexist lichOne
490    @setvar! lichOne 0
491endif
492
493if not varexist lichTwo
494    @setvar! lichTwo 0
495endif
496
497if not varexist earthOne
498    @setvar! earthOne 0
499endif
500
501if not varexist earthTwo
502    @setvar! earthTwo 0
503endif
504
505if lichOne = creatureOne or lichTwo = creatureOne or earthOne = creatureOne or earthTwo = creatureOne
506    overhead "Duplicated"
507    unsetvar creatureOne
508endif
509
510if diffhits >= 30
511    if targetexists 
512        hotkey 'Cancel Current Target'
513    endif
514    while not targetexists 'beneficial'
515        if diffhits >= 60
516            cast 'Heal'
517        else
518            cast 'Greater Heal'                
519        endif
520        wait 50
521        if hp = maxhp
522            hotkey '> Interrupt'
523            break
524        endif
525    endwhile
526    if targetexists 'beneficial'
527        target self
528    endif
529    replay
530endif
531
532
533if castSummonEarthElementalCount > 0
534    if diffhits < 30
535        if followers = 0
536            @setvar! followCount 0
537        elseif followers = 1
538            @setvar! followCount 1
539        elseif followers = 2
540            @setvar! followCount 2
541        elseif followers = 3
542            @setvar! followCount 3
543        elseif followers = 4
544            @setvar! followCount 4
545        elseif followers = 5
546            @setvar! followCount 5
547        endif
548        if dead earthOne or not find earthOne ground -1 -1 12
549            if followers < 4
550                while mana < 50
551                    if diffhits >= 30
552                        replay
553                    endif
554                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
555                        overhead "waiting for mana" 88
556                        settimer preventOverheadSpamTimer 0
557                    endif
558                    if not findbuff "Actively Meditating"
559                        useskill "meditation"
560                    endif
561                    wait 200
562                endwhile
563                
564                if castSummonEarthElementalAsMummy = 1
565                    if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50
566                        yell "[VengefulSpirit"
567                        settimer vengefulSpiritTimer 0
568                        wait 500
569                    endif
570                elseif timer vengefulSpiritTimer <= cdVengefulSpirit and skill "Necromancy" >= 50
571                    overhead  "Waiting for spirit to go away" 
572                    replay
573                endif
574                while followers = followCount
575                    cast "Earth elemental"
576                    wait 500
577                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95
578                        yell "[Wither"
579                        settimer witherTimer 0
580                    endif
581                    if diffhits >= 30
582                        hotkey '> Interrupt'
583                        break
584                    endif
585                endwhile
586                // 158 - an ancient mummy
587                // 14 - an earth elemental
588                if findtype 158|14 ground -1 -1 6 as myPet
589                    if noto myPet = "friend" and list petNameList > 0
590                        overhead "Renaming..."
591                        foreach petName in petNameList
592                            rename myPet petName
593                            break
594                        endfor
595                        poplist petNameList "front"
596                    endif
597                    @setvar! earthOne myPet
598                    say "all guard me"
599                    replay
600                endif
601            endif
602        endif
603    endif
604    
605    if diffhits < 30 and castSummonEarthElementalCount > 1
606        if followers = 0
607            @setvar! followCount 0
608        elseif followers = 1
609            @setvar! followCount 1
610        elseif followers = 2
611            @setvar! followCount 2
612        elseif followers = 3
613            @setvar! followCount 3
614        elseif followers = 4
615            @setvar! followCount 4
616        elseif followers = 5
617            @setvar! followCount 5
618        endif
619        if dead earthTwo or not find earthTwo ground -1 -1 12
620            if followers < 4
621                while mana < 50
622                    if diffhits >= 30
623                        replay
624                    endif
625                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
626                        overhead "waiting for mana" 88
627                        settimer preventOverheadSpamTimer 0
628                    endif
629                    if not findbuff "Actively Meditating"
630                        useskill "meditation"
631                    endif
632                    wait 200
633                endwhile
634                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50
635                    yell "[VengefulSpirit"
636                    settimer vengefulSpiritTimer 0
637                    wait 500
638                endif
639                while followers = followCount
640                    cast "Earth elemental"
641                    wait 500
642                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95
643                        yell "[Wither"
644                        settimer witherTimer 0
645                    endif
646                    if diffhits >= 30
647                        hotkey '> Interrupt'
648                        break
649                    endif
650                endwhile
651                // 158 - an ancient mummy
652                // 14 - an earth elemental
653                if findtype 158|14 ground -1 -1 6 as myPet
654                    if noto myPet = "friend" and list petNameList > 0
655                        overhead "Renaming..."
656                        foreach petName in petNameList
657                            rename myPet petName
658                            break
659                        endfor
660                        poplist petNameList "front"
661                    endif
662                    @setvar! earthTwo myPet
663                    say "all guard me"
664                    replay
665                endif
666            endif
667        endif
668    endif
669endif
670
671
672if castSummonFireElementalCount > 0
673    if diffhits < 30
674    
675        if lichOne = 0 
676            // do nothing
677        elseif lichOne = lichTwo
678            overhead "Duplicated"
679            unsetvar lichOne
680        endif
681        
682        if followers = 0
683            @setvar! followCount 0
684        elseif followers = 1
685            @setvar! followCount 1
686        elseif followers = 2
687            @setvar! followCount 2
688        elseif followers = 3
689            @setvar! followCount 3
690        elseif followers = 4
691            @setvar! followCount 4
692        elseif followers = 5
693            @setvar! followCount 5
694        endif
695        if dead lichOne or not find lichOne ground -1 -1 12
696            if followers < 4
697                while mana < 50
698                    if diffhits >= 30
699                        replay
700                    endif
701                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
702                        overhead "waiting for mana" 88
703                        settimer preventOverheadSpamTimer 0
704                    endif
705                    if not findbuff "Actively Meditating"
706                        useskill "meditation"
707                    endif
708                    wait 200
709                endwhile
710                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50
711                    yell "[VengefulSpirit"
712                    settimer vengefulSpiritTimer 0
713                    wait 500
714                endif
715                @ignore lichTwo
716                while followers = followCount
717                    cast "fire elemental"
718                    wait 500
719                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95
720                        yell "[Wither"
721                        settimer witherTimer 0
722                    endif
723                    if diffhits >= 30
724                        hotkey '> Interrupt'
725                        break
726                    endif
727                endwhile
728                // 24 - a lich
729                // 15 - a fire elemental
730                if findtype 24|15 ground -1 -1 6 as myPet
731                    if noto myPet = "friend" and list petNameList > 0
732                        overhead "Renaming..."
733                        foreach petName in petNameList
734                            rename myPet petName
735                            break
736                        endfor
737                        poplist petNameList "front"
738                    endif
739                    @setvar! lichOne myPet
740                    overhead "Lich One Set" 88 lichOne
741                    say "all guard me"
742                    @clearignore 
743                    replay
744                endif
745            endif
746        endif
747    endif
748    
749    if diffhits < 30 and castSummonFireElementalCount > 1
750        if followers = 0
751            @setvar! followCount 0
752        elseif followers = 1
753            @setvar! followCount 1
754        elseif followers = 2
755            @setvar! followCount 2
756        elseif followers = 3
757            @setvar! followCount 3
758        elseif followers = 4
759            @setvar! followCount 4
760        elseif followers = 5
761            @setvar! followCount 5
762        endif
763        if dead lichTwo or not find lichTwo ground -1 -1 12
764            if followers < 4
765                while mana < 50
766                    if diffhits >= 30
767                        replay
768                    endif
769                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
770                        overhead "waiting for mana" 88
771                        settimer preventOverheadSpamTimer 0
772                    endif
773                    if not findbuff "Actively Meditating"
774                        useskill "meditation"
775                    endif
776                    wait 200
777                endwhile
778                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50
779                    yell "[VengefulSpirit"
780                    settimer vengefulSpiritTimer 0
781                    wait 500
782                endif
783                @ignore lichOne
784                while followers = followCount
785                    cast "fire elemental"
786                    wait 500
787                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95
788                        yell "[Wither"
789                        settimer witherTimer 0
790                    endif
791                    if diffhits >= 30
792                        hotkey '> Interrupt'
793                        break
794                    endif
795                endwhile
796                // 24 - a lich
797                // 15 - a fire elemental
798                if findtype 24|15 ground -1 -1 6 as myPet
799                    if noto myPet = "friend" and list petNameList > 0
800                        overhead "Renaming..."
801                        foreach petName in petNameList
802                            rename myPet petName
803                            break
804                        endfor
805                        poplist petNameList "front"
806                    endif
807                    @clearignore
808                    @setvar! lichTwo myPet
809                    overhead "Lich Two Set" 88 lichTwo
810                    say "all guard me"
811                    replay
812                endif
813                
814            endif
815        endif
816    endif
817endif
818
819if castSummonCreatureCount = 0
820    // do nothing
821elseif castSummonCreatureCount = 1 and not dead creatureOne
822    // do nothing
823elseif castSummonCreatureCount = 1
824    if followers = 4 and diffhits < 30
825        if followers = 0
826            @setvar! followCount 0
827        elseif followers = 1
828            @setvar! followCount 1
829        elseif followers = 2
830            @setvar! followCount 2
831        elseif followers = 3
832            @setvar! followCount 3
833        elseif followers = 4
834            @setvar! followCount 4
835        elseif followers = 5
836            @setvar! followCount 5
837        endif
838        while mana < 14
839            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
840                overhead "waiting for mana" 88
841                settimer preventOverheadSpamTimer 0
842            endif
843            if diffhits >= 30
844                replay
845            endif
846            if not findbuff "Actively Meditating"
847                useskill "meditation"
848            endif
849            wait 200
850        endwhile
851        if timer vengefulSpiritTimer >= cdVengefulSpirit
852            yell "[VengefulSpirit"
853            settimer vengefulSpiritTimer 0
854            wait 200
855        endif
856        while followers = followCount
857            cast 'Summ. Creature'
858            wait 500
859            if diffhits >= 30
860                hotkey '> Interrupt'
861                replay
862            endif
863        endwhile        
864        say "all guard me"
865    endif
866else
867    for 6
868        if index = 0
869            // do nothing
870        else
871            if diffhits < 30
872                @setvar! needToSummon 0
873                if index = 1
874                    if dead creatureOne or not find creatureOne ground -1 -1 12
875                        @setvar! needToSummon 1
876                    endif
877                elseif index = 2
878                    if dead creatureTwo or not find creatureTwo ground -1 -1 12
879                        @setvar! needToSummon 1
880                    endif
881                elseif index = 3
882                    if dead creatureThree or not find creatureThree ground -1 -1 12
883                        @setvar! needToSummon 1
884                    endif
885                elseif index = 4
886                    if dead creatureFour or not find creatureFour ground -1 -1 12
887                        @setvar! needToSummon 1
888                    endif
889                elseif index = 5
890                    if dead creatureFive or not find creatureFive ground -1 -1 12
891                        @setvar! needToSummon 1
892                    endif
893                endif
894            
895                if needToSummon = 1
896                    if followers = 0
897                        @setvar! followCount 0
898                    elseif followers = 1
899                        @setvar! followCount 1
900                    elseif followers = 2
901                        @setvar! followCount 2
902                    elseif followers = 3
903                        @setvar! followCount 3
904                    elseif followers = 4
905                        @setvar! followCount 4
906                    elseif followers = 5
907                        @setvar! followCount 5
908                    endif
909                   
910                    while mana < 50
911                        if diffhits >= 30
912                            replay
913                        endif
914                        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
915                            overhead "waiting for mana" 88
916                            settimer preventOverheadSpamTimer 0
917                        endif
918                        if not findbuff "Actively Meditating"
919                            useskill "meditation"
920                        endif
921                        wait 200
922                    endwhile
923                    if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50
924                        yell "[VengefulSpirit"
925                        settimer vengefulSpiritTimer 0
926                        wait 500
927                    endif
928                    while followers = followCount
929                        cast "Summ. Creature"
930                        wait 500
931                        if timer witherTimer >= cdWither and skill "Necromancy" >= 95
932                            yell "[Wither"
933                            settimer witherTimer 0
934                        endif
935                        if diffhits >= 30
936                            hotkey '> Interrupt'
937                            break
938                        endif
939                    endwhile
940                    hotkey 'Next Friendly Monster Target'
941                    @setvar! checkLastTarget lasttarget
942                    if checkLastTarget = earthOne
943                        hotkey 'Next Friendly Monster Target'
944                        @setvar! checkLastTarget lasttarget 
945                    endif
946                    
947                    if checkLastTarget = earthTwo
948                       hotkey 'Next Friendly Monster Target'
949                       @setvar! checkLastTarget lasttarget 
950                    endif
951                    
952                    if checkLastTarget = lichOne
953                       hotkey 'Next Friendly Monster Target'
954                       @setvar! checkLastTarget lasttarget 
955                    endif
956                    
957                    if checkLastTarget = lichTwo
958                       hotkey 'Next Friendly Monster Target'
959                       @setvar! checkLastTarget lasttarget 
960                    endif
961                    @setvar! creatureOne checkLastTarget
962                    
963                    if find checkLastTarget ground -1 -1 6 as myPet
964                        if noto myPet = "friend" and list petNameList > 0
965                            overhead "Renaming..."
966                            foreach petName in petNameList
967                                rename myPet petName
968                                break
969                            endfor
970                            poplist petNameList "front"
971                        endif
972                        if index = 1
973                            if dead creatureOne or not find creatureOne ground -1 -1 12
974                                @setvar! creatureOne myPet
975                            endif
976                        elseif index = 2
977                            if dead creatureTwo or not find creatureTwo ground -1 -1 12
978                                @setvar! creatureTwo myPet
979                            endif
980                        elseif index = 3
981                            if dead creatureThree or not find creatureThree ground -1 -1 12
982                                @setvar! creatureThree myPet
983                            endif
984                        elseif index = 4
985                            if dead creatureFour or not find creatureFour ground -1 -1 12
986                                @setvar! creatureFour myPet
987                            endif
988                        elseif index = 5
989                            if dead creatureFive or not find creatureFive ground -1 -1 12
990                                @setvar! creatureFive myPet
991                            endif
992                        endif
993                    endif
994                endif
995            endif
996        endif
997        if index = castSummonCreatureCount
998            break
999        endif
1000    endfor
1001endif
1002
1003# Eat food if we got it
1004if not findbuff "food" and findtype "tray" backpack as jood
1005    dclick jood
1006    wait 200
1007endif
1008
1009if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 1
1010    say "all kill"
1011    wait 200
1012    while targetexists 
1013        // wait
1014        wait 50
1015    endwhile
1016else
1017    hotkey 'Target Closest Non-Friendly Monster'
1018    wait 200
1019    if insysmsg "No one matching that was found"
1020        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
1021            overhead "found no one" 34
1022            settimer preventOverheadSpamTimer 0
1023        endif
1024        if autoBotEnabled = 1
1025            wait 500
1026            replay
1027        endif
1028        stop
1029    elseif not find lasttarget ground -1 -1 8
1030    
1031        @setvar checkForSummons lasttarget 
1032        getlabel checkForSummons checkForSummonsDesc
1033    
1034        if "(summoned" in checkForSummonsDesc or "(bonded" in checkForSummonsDesc
1035            overhead "▼ Player pet - IGNORE ▼" 77 lasttarget
1036            while not targetexists 
1037                hotkey 'Add Target To: IgnoreMobs'
1038                wait 200
1039            endwhile
1040            target myKillTarget 
1041            replay
1042        endif    
1043    
1044        overhead "● ▼ OUT OF RANGE ▼ ●" 88 lasttarget
1045        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
1046            overhead "Move closer, more then 8 tiles away" 34
1047            settimer preventOverheadSpamTimer 0
1048        endif
1049        if patrolPetEvenIfLastTargetIsBeyondEightTiles = 1 and find myEarthPet ground -1 -1 12
1050            menu myEarthPet 2
1051            wft 500
1052            target lasttarget
1053        endif
1054        if autoBotEnabled = 1
1055            wait 500
1056            replay
1057        endif
1058        stop
1059    else
1060        overhead "● ▼▼ HERE ▼▼ ●" 88 lasttarget
1061    endif    
1062endif
1063
1064@setvar myKillTarget lasttarget 
1065
1066if not varexist myPreviousKillTarget
1067    @setvar myPreviousKillTarget 0     
1068endif
1069
1070getlabel myKillTarget desc
1071overhead desc
1072
1073if "(summoned" in desc or "(bonded" in desc
1074    overhead "▼ Player pet - IGNORE ▼" 77 lasttarget
1075    while not targetexists 
1076        hotkey 'Add Target To: IgnoreMobs'
1077        wait 200
1078    endwhile
1079    target myKillTarget 
1080    replay
1081endif    
1082
1083if not varexist myEarthPet or dead myEarthPet
1084    if not dead earthOne
1085        @setvar! myEarthPet earthOne
1086    elseif not dead earthTwo
1087        @setvar! myEarthPet earthTwo
1088    endif
1089endif
1090
1091if find myEarthPet ground -1 -1 12
1092    menu myEarthPet 2
1093    wft 500
1094    target myKillTarget
1095endif
1096
1097
1098if diffhits >= 30 and mana > 12
1099    while not targetexists
1100        if diffhits >= 60
1101            cast 'Heal'
1102        else
1103            cast 'Greater Heal'                
1104        endif
1105        wait 50
1106        if hp = maxhp
1107            hotkey '> Interrupt'
1108            break
1109        endif
1110    endwhile
1111    if targetexists
1112        target self
1113    endif
1114elseif castBless = 1 and str <= 100 and followers >= 4 
1115    while not targetexists
1116        cast 'Bless'
1117        wait 50
1118        if diffhits >= 30
1119            hotkey '> Interrupt'
1120            break
1121        endif
1122    endwhile
1123    if targetexists
1124        target self
1125    endif
1126endif
1127
1128if not listexists myCursedTargets
1129    createlist myCursedTargets
1130endif
1131
1132if not listexists myManaDrainTargets
1133    createlist myManaDrainTargets
1134endif
1135
1136if find myKillTarget -1 -1 12 as killy
1137    if myKillTarget = myPreviousKillTarget
1138        // do nothing
1139    else
1140        
1141        // Herding using crook
1142        if skill "Herding" > 0 and findtype 3713 backpack as jrook
1143            dclick jrook
1144            wft 500
1145            target killy
1146        endif
1147
1148        if inlist myManaDrainTargets myKillTarget
1149            overhead "We already mana drained this guy" 88
1150            // do nothing
1151        elseif castManadrain = 0
1152            // do nothing 
1153        elseif followers >= 4 
1154            while not targetexists and not dead myKillTarget
1155                if diffhits < 30
1156                    cast 'mana drain'
1157                    wait 50
1158                elseif diffhits >= 30 
1159                    hotkey '> Interrupt'
1160                    break
1161                endif
1162            endwhile
1163            if targetexists
1164                target myKillTarget
1165                pushlist myManaDrainTargets myKillTarget
1166                settimer killTargetTimer 0
1167                wait 500
1168            endif
1169        endif
1170        
1171        if inlist myCursedTargets myKillTarget
1172            overhead "We already cursed this guy" 88
1173            // do nothing
1174        elseif castCurse = 0
1175            // do nothing
1176        elseif followers >= 4 
1177            while not targetexists and not dead myKillTarget
1178                if diffhits < 30
1179                    cast 'Curse'
1180                    wait 50
1181                elseif diffhits >= 30 
1182                    hotkey '> Interrupt'
1183                    break
1184                endif
1185            endwhile
1186            if targetexists
1187                target myKillTarget
1188                pushlist myCursedTargets myKillTarget
1189                settimer killTargetTimer 0
1190                wait 500
1191            endif
1192        endif
1193        @setvar myPreviousKillTarget myKillTarget
1194    endif
1195else
1196    overhead "Out of range" 34
1197endif
1198
1199
1200clearsysmsg 
1201
1202say "all guard"
1203
1204@setvar! isLethalPoison 0
1205@setvar! isDiscorded 0
1206@setvar! isHerded 0
1207@setvar! isPeaced 0
1208
1209while not dead myKillTarget and find myKillTarget -1 -1 12 as killy
1210
1211    for 5
1212        // lost a follower
1213        if followers < 4
1214            replay
1215        endif
1216    
1217        if dead myKillTarget
1218            break
1219        elseif insysmsg "Target cannot be seen." 
1220            overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 34
1221            replay
1222        elseif find myKillTarget -1 -1 12 as killy
1223            // do nothing - in range to kill
1224        else
1225            break
1226        endif
1227          
1228        if gumpexists 622436516 and skill "Necromancy" >= 50
1229            if ingump "12/" 622436516
1230                @setvar! necroSymbols 12
1231            elseif ingump "13/" 622436516
1232                @setvar! necroSymbols 13
1233            elseif ingump "14/" 622436516
1234                @setvar! necroSymbols 14
1235            elseif ingump "15/" 622436516
1236                @setvar! necroSymbols 15
1237            elseif ingump "16/" 622436516
1238                @setvar! necroSymbols 16
1239            elseif ingump "17/" 622436516
1240                @setvar! necroSymbols 17
1241            elseif ingump "18/" 622436516
1242                @setvar! necroSymbols 18
1243            elseif ingump "19/" 622436516
1244                @setvar! necroSymbols 19
1245            elseif ingump "20/" 622436516
1246                @setvar! necroSymbols 20
1247            elseif ingump "21/" 622436516
1248                @setvar! necroSymbols 21
1249            elseif ingump "11/" 622436516
1250                @setvar! necroSymbols 11
1251            elseif ingump "10/" 622436516
1252                @setvar! necroSymbols 10
1253            elseif ingump "9/" 622436516
1254                @setvar! necroSymbols 9
1255            elseif ingump "8/" 622436516
1256                @setvar! necroSymbols 8
1257            elseif ingump "7/" 622436516
1258                @setvar! necroSymbols 7
1259            elseif ingump "6/" 622436516
1260                @setvar! necroSymbols 6
1261            elseif ingump "5/" 622436516
1262                @setvar! necroSymbols 5
1263            elseif ingump "4/" 622436516
1264                @setvar! necroSymbols 4
1265            elseif ingump "3/" 622436516
1266                @setvar! necroSymbols 3
1267            elseif ingump "2/" 622436516
1268                @setvar! necroSymbols 2
1269            elseif ingump "1/" 622436516
1270                @setvar! necroSymbols 1
1271            elseif ingump "0/" 622436516
1272                @setvar! necroSymbols 0
1273            endif
1274        endif
1275        
1276        if skill "Discordance" >= 50 and skill "Peacemaking" >= 50
1277            if isDiscorded = 0
1278                getlabel myKillTarget discordDesc
1279                if "discord" in discordDesc
1280                    @setvar! isDiscorded 1
1281                elseif timer meditiationTimer >= 11000 
1282                    useskill 'Discordance'
1283                    wft 500
1284                    if insysmsg "What instrument"
1285                        if findtype "bamboo flute" backpack as inny
1286                            target inny
1287                        elseif findtype "tambourine" backpack as inny
1288                            target inny
1289                        elseif findtype "drum" backpack as inny
1290                            target inny
1291                        elseif findtype "lute" backpack as inny
1292                            target inny
1293                        elseif findtype "harp" backpack as inny
1294                            target inny
1295                        elseif findtype "lap harp" backpack as inny
1296                            target inny
1297                        else
1298                            overhead "I do not have an inny" 34
1299                            @setvar! isDiscorded 1
1300                        endif
1301                        wft 500
1302                    endif
1303                    if targetexists 
1304                        target myKillTarget
1305                        overhead "Discorded" 88 myKillTarget
1306                    endif
1307                    settimer meditiationTimer 5000
1308                endif
1309            endif
1310
1311            if isPeaced = 0
1312                getlabel myKillTarget peaceDesc
1313                if "peace" in peaceDesc
1314                    @setvar! isPeaced 1
1315                elseif timer meditiationTimer >= 11000 
1316                    useskill 'Peacemaking'
1317                    wft 500
1318                    if insysmsg "What instrument"
1319                        if findtype "bamboo flute" backpack as inny
1320                            target inny
1321                        elseif findtype "tambourine" backpack as inny
1322                            target inny
1323                        elseif findtype "drum" backpack as inny
1324                            target inny
1325                        elseif findtype "lute" backpack as inny
1326                            target inny
1327                        elseif findtype "harp" backpack as inny
1328                            target inny
1329                        elseif findtype "lap harp" backpack as inny
1330                            target inny
1331                        else
1332                            overhead "I do not have an inny" 34
1333                            @setvar! isPeaced 1
1334                        endif
1335                        wft 500
1336                    endif
1337                    if targetexists 
1338                        target myKillTarget
1339                        overhead "Peaced" 88 myKillTarget
1340                    endif
1341                    settimer meditiationTimer 5000
1342                endif
1343            endif
1344		endif
1345			
1346
1347		
1348
1349        if castMagicShield = 1 and timer magicShieldTimer >= cdMagicShield and not findbuff "Magic Reflection"
1350            cast "Magic Reflection"
1351            wait 1000
1352        elseif drinkMagicResistPot = 1 and not findbuff "Magic Reflection" and not findbuff "Magic Resist Potion" and findtype "Black Potion" backpack as pot
1353            dclick pot
1354            wait 200
1355        endif
1356
1357        if findbuff "Magic Reflection"
1358            settimer magicShieldTimer 0
1359        endif
1360        
1361        if castReactiveArmor = 1 and timer reactiveArmorTimer >= cdReactiveArmor and not findbuff "Reactive Armor"
1362            cast "Reactive Armor"
1363            wait 200
1364        endif
1365
1366        if findbuff "Reactive Armor"
1367            settimer reactiveArmorTimer 0
1368        endif
1369        
1370        if skill "poisoning" >= 100 or castPoisonAnyway = 1
1371            if timer meditiationTimer >= cdMeditationMini
1372                if castMindRot = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer mindRotTimer >= cdMindRot and skill "Necromancy" >= 75 and 3 < necroSymbols 
1373                    yell "[MindRot"
1374                    settimer preventSpamNecroAbilitiesTimer 0
1375                    settimer mindRotTimer 0
1376                    wait 500
1377                    if gumpexists 622436516
1378                        if ingump "12/" 622436516
1379                            @setvar! necroSymbols 12
1380                        elseif ingump "13/" 622436516
1381                            @setvar! necroSymbols 13
1382                        elseif ingump "14/" 622436516
1383                            @setvar! necroSymbols 14
1384                        elseif ingump "15/" 622436516
1385                            @setvar! necroSymbols 15
1386                        elseif ingump "16/" 622436516
1387                            @setvar! necroSymbols 16
1388                        elseif ingump "17/" 622436516
1389                            @setvar! necroSymbols 17
1390                        elseif ingump "18/" 622436516
1391                            @setvar! necroSymbols 18
1392                        elseif ingump "19/" 622436516
1393                            @setvar! necroSymbols 19
1394                        elseif ingump "20/" 622436516
1395                            @setvar! necroSymbols 20
1396                        elseif ingump "21/" 622436516
1397                            @setvar! necroSymbols 21
1398                        elseif ingump "11/" 622436516
1399                            @setvar! necroSymbols 11
1400                        elseif ingump "10/" 622436516
1401                            @setvar! necroSymbols 10
1402                        elseif ingump "9/" 622436516
1403                            @setvar! necroSymbols 9
1404                        elseif ingump "8/" 622436516
1405                            @setvar! necroSymbols 8
1406                        elseif ingump "7/" 622436516
1407                            @setvar! necroSymbols 7
1408                        elseif ingump "6/" 622436516
1409                            @setvar! necroSymbols 6
1410                        elseif ingump "5/" 622436516
1411                            @setvar! necroSymbols 5
1412                        elseif ingump "4/" 622436516
1413                            @setvar! necroSymbols 4
1414                        elseif ingump "3/" 622436516
1415                            @setvar! necroSymbols 3
1416                        elseif ingump "2/" 622436516
1417                            @setvar! necroSymbols 2
1418                        elseif ingump "1/" 622436516
1419                            @setvar! necroSymbols 1
1420                        elseif ingump "0/" 622436516
1421                            @setvar! necroSymbols 0
1422                        endif
1423                    endif
1424                endif
1425                
1426                                
1427                getlabel myKillTarget desc2
1428                overhead desc2
1429                
1430                if castPoisonStrike = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer poisonStrikeTimer >= cdPoisonStrike and skill "Necromancy" >= 55 and 1 < necroSymbols 
1431                    if "Ticks" in desc2
1432                        if "[8" in desc2 or "[7" in desc2 or "[6" in desc2  or "[5" in desc2  or "[4" in desc2  or "[3" in desc2  or "[2" in desc2  or "[1 " in desc2 
1433                            yell "[PoisonStrike"
1434                            wft 500
1435                            target myKillTarget
1436                            wait 200
1437                            settimer preventSpamNecroAbilitiesTimer 0
1438                            settimer poisonStrikeTimer 0
1439                            wait 500
1440                            if gumpexists 622436516
1441                                if ingump "12/" 622436516
1442                                    @setvar! necroSymbols 12
1443                                elseif ingump "13/" 622436516
1444                                    @setvar! necroSymbols 13
1445                                elseif ingump "14/" 622436516
1446                                    @setvar! necroSymbols 14
1447                                elseif ingump "15/" 622436516
1448                                    @setvar! necroSymbols 15
1449                                elseif ingump "16/" 622436516
1450                                    @setvar! necroSymbols 16
1451                                elseif ingump "17/" 622436516
1452                                    @setvar! necroSymbols 17
1453                                elseif ingump "18/" 622436516
1454                                    @setvar! necroSymbols 18
1455                                elseif ingump "19/" 622436516
1456                                    @setvar! necroSymbols 19
1457                                elseif ingump "20/" 622436516
1458                                    @setvar! necroSymbols 20
1459                                elseif ingump "21/" 622436516
1460                                    @setvar! necroSymbols 21
1461                                elseif ingump "11/" 622436516
1462                                    @setvar! necroSymbols 11
1463                                elseif ingump "10/" 622436516
1464                                    @setvar! necroSymbols 10
1465                                elseif ingump "9/" 622436516
1466                                    @setvar! necroSymbols 9
1467                                elseif ingump "8/" 622436516
1468                                    @setvar! necroSymbols 8
1469                                elseif ingump "7/" 622436516
1470                                    @setvar! necroSymbols 7
1471                                elseif ingump "6/" 622436516
1472                                    @setvar! necroSymbols 6
1473                                elseif ingump "5/" 622436516
1474                                    @setvar! necroSymbols 5
1475                                elseif ingump "4/" 622436516
1476                                    @setvar! necroSymbols 4
1477                                elseif ingump "3/" 622436516
1478                                    @setvar! necroSymbols 3
1479                                elseif ingump "2/" 622436516
1480                                    @setvar! necroSymbols 2
1481                                elseif ingump "1/" 622436516
1482                                    @setvar! necroSymbols 1
1483                                elseif ingump "0/" 622436516
1484                                    @setvar! necroSymbols 0
1485                                endif
1486                            endif
1487                        endif
1488                    endif
1489                endif
1490                
1491                
1492                
1493                if isLethalPoison = 0
1494                    
1495                    if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy
1496                        overhead "Eating shrooms" 66
1497                        dclick mushy
1498                        settimer magicMushroomTimer 0
1499                    endif
1500                
1501                    if insysmsg "Target cannot be seen." 
1502                        overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 34
1503                        replay
1504                    endif 
1505
1506                    // poison lethal
1507                    if "Lethal" in desc2
1508                        @setvar! isLethalPoison 1
1509                        break
1510                    elseif castPoisonAnyway = 1 and "Ticks" in desc2
1511                        @setvar! isLethalPoison 1
1512                        break
1513                    elseif castPoisonAnyway = 1 and "Poison" in desc2
1514                        @setvar! isLethalPoison 1
1515                        break
1516                    elseif diffhits >= 30 
1517                        // need a heal
1518                        break
1519                    elseif mana >= 9
1520                        while not targetexists
1521                            cast 'poison'
1522                            wait 50
1523                            if dead myKillTarget
1524                                hotkey '> Interrupt'
1525                                replay
1526                            endif
1527                        endwhile
1528                        target myKillTarget
1529                        wait 200
1530                        if insysmsg "Target cannot be seen." 
1531                             overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 34
1532                             @setvar! isLethalPoison 1
1533                        endif 
1534                    else
1535                        wait 200
1536                    endif
1537                endif
1538            endif
1539        endif
1540        
1541        if castCorpseSkin = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer corpseSkinTimer >= cdCorpseSkin and skill "Necromancy" >= 65 and timer meditiationTimer >= cdMeditationMini and 2 < necroSymbols
1542            yell "[CorpseSkin"
1543            settimer preventSpamNecroAbilitiesTimer 0
1544            settimer corpseSkinTimer 0
1545            cooldown CorpseSkin cdCorpseSkin
1546            wait 500
1547            if gumpexists 622436516
1548                if ingump "12/" 622436516
1549                    @setvar! necroSymbols 12
1550                elseif ingump "13/" 622436516
1551                    @setvar! necroSymbols 13
1552                elseif ingump "14/" 622436516
1553                    @setvar! necroSymbols 14
1554                elseif ingump "15/" 622436516
1555                    @setvar! necroSymbols 15
1556                elseif ingump "16/" 622436516
1557                    @setvar! necroSymbols 16
1558                elseif ingump "17/" 622436516
1559                    @setvar! necroSymbols 17
1560                elseif ingump "18/" 622436516
1561                    @setvar! necroSymbols 18
1562                elseif ingump "19/" 622436516
1563                    @setvar! necroSymbols 19
1564                elseif ingump "20/" 622436516
1565                    @setvar! necroSymbols 20
1566                elseif ingump "21/" 622436516
1567                    @setvar! necroSymbols 21
1568                elseif ingump "11/" 622436516
1569                    @setvar! necroSymbols 11
1570                elseif ingump "10/" 622436516
1571                    @setvar! necroSymbols 10
1572                elseif ingump "9/" 622436516
1573                    @setvar! necroSymbols 9
1574                elseif ingump "8/" 622436516
1575                    @setvar! necroSymbols 8
1576                elseif ingump "7/" 622436516
1577                    @setvar! necroSymbols 7
1578                elseif ingump "6/" 622436516
1579                    @setvar! necroSymbols 6
1580                elseif ingump "5/" 622436516
1581                    @setvar! necroSymbols 5
1582                elseif ingump "4/" 622436516
1583                    @setvar! necroSymbols 4
1584                elseif ingump "3/" 622436516
1585                    @setvar! necroSymbols 3
1586                elseif ingump "2/" 622436516
1587                    @setvar! necroSymbols 2
1588                elseif ingump "1/" 622436516
1589                    @setvar! necroSymbols 1
1590                elseif ingump "0/" 622436516
1591                    @setvar! necroSymbols 0
1592                endif
1593            endif
1594        endif
1595            
1596        if castBloodOath = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer bloodOathTimer >= cdBloodOath and 5 < necroSymbols
1597            yell "[BloodOath"
1598            settimer preventSpamNecroAbilitiesTimer 0
1599            settimer bloodOathTimer 0
1600            if gumpexists 622436516
1601                if ingump "12/" 622436516
1602                    @setvar! necroSymbols 12
1603                elseif ingump "13/" 622436516
1604                    @setvar! necroSymbols 13
1605                elseif ingump "14/" 622436516
1606                    @setvar! necroSymbols 14
1607                elseif ingump "15/" 622436516
1608                    @setvar! necroSymbols 15
1609                elseif ingump "16/" 622436516
1610                    @setvar! necroSymbols 16
1611                elseif ingump "17/" 622436516
1612                    @setvar! necroSymbols 17
1613                elseif ingump "18/" 622436516
1614                    @setvar! necroSymbols 18
1615                elseif ingump "19/" 622436516
1616                    @setvar! necroSymbols 19
1617                elseif ingump "20/" 622436516
1618                    @setvar! necroSymbols 20
1619                elseif ingump "21/" 622436516
1620                    @setvar! necroSymbols 21
1621                elseif ingump "11/" 622436516
1622                    @setvar! necroSymbols 11
1623                elseif ingump "10/" 622436516
1624                    @setvar! necroSymbols 10
1625                elseif ingump "9/" 622436516
1626                    @setvar! necroSymbols 9
1627                elseif ingump "8/" 622436516
1628                    @setvar! necroSymbols 8
1629                elseif ingump "7/" 622436516
1630                    @setvar! necroSymbols 7
1631                elseif ingump "6/" 622436516
1632                    @setvar! necroSymbols 6
1633                elseif ingump "5/" 622436516
1634                    @setvar! necroSymbols 5
1635                elseif ingump "4/" 622436516
1636                    @setvar! necroSymbols 4
1637                elseif ingump "3/" 622436516
1638                    @setvar! necroSymbols 3
1639                elseif ingump "2/" 622436516
1640                    @setvar! necroSymbols 2
1641                elseif ingump "1/" 622436516
1642                    @setvar! necroSymbols 1
1643                elseif ingump "0/" 622436516
1644                    @setvar! necroSymbols 0
1645                endif
1646            endif
1647        endif
1648        
1649        
1650        if castEvilOmen = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer evilOmenTimer >= cdEvilOmen and skill "Necromancy" >= 60 and timer meditiationTimer >= cdMeditationMini and 2 < necroSymbols
1651            yell "[EvilOmen"
1652            settimer evilOmenTimer 0
1653            settimer preventSpamNecroAbilitiesTimer 0
1654            cooldown EvilOmen cdEvilOmen
1655            wait 500
1656            if gumpexists 622436516
1657                if ingump "12/" 622436516
1658                    @setvar! necroSymbols 12
1659                elseif ingump "13/" 622436516
1660                    @setvar! necroSymbols 13
1661                elseif ingump "14/" 622436516
1662                    @setvar! necroSymbols 14
1663                elseif ingump "15/" 622436516
1664                    @setvar! necroSymbols 15
1665                elseif ingump "16/" 622436516
1666                    @setvar! necroSymbols 16
1667                elseif ingump "17/" 622436516
1668                    @setvar! necroSymbols 17
1669                elseif ingump "18/" 622436516
1670                    @setvar! necroSymbols 18
1671                elseif ingump "19/" 622436516
1672                    @setvar! necroSymbols 19
1673                elseif ingump "20/" 622436516
1674                    @setvar! necroSymbols 20
1675                elseif ingump "21/" 622436516
1676                    @setvar! necroSymbols 21
1677                elseif ingump "11/" 622436516
1678                    @setvar! necroSymbols 11
1679                elseif ingump "10/" 622436516
1680                    @setvar! necroSymbols 10
1681                elseif ingump "9/" 622436516
1682                    @setvar! necroSymbols 9
1683                elseif ingump "8/" 622436516
1684                    @setvar! necroSymbols 8
1685                elseif ingump "7/" 622436516
1686                    @setvar! necroSymbols 7
1687                elseif ingump "6/" 622436516
1688                    @setvar! necroSymbols 6
1689                elseif ingump "5/" 622436516
1690                    @setvar! necroSymbols 5
1691                elseif ingump "4/" 622436516
1692                    @setvar! necroSymbols 4
1693                elseif ingump "3/" 622436516
1694                    @setvar! necroSymbols 3
1695                elseif ingump "2/" 622436516
1696                    @setvar! necroSymbols 2
1697                elseif ingump "1/" 622436516
1698                    @setvar! necroSymbols 1
1699                elseif ingump "0/" 622436516
1700                    @setvar! necroSymbols 0
1701                endif
1702            endif
1703        endif
1704        
1705        if castVampiricEmbrace = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer vampiricEmbraceTimer >= cdVampiricEmbrace and skill "Necromancy" >= 75 and timer meditiationTimer >= cdMeditationMini and 3 < necroSymbols and findtype 8198 ground -1 -1 4 as jorpse
1706            yell "[VampiricEmbrace"
1707            wft 500
1708            target jorpse
1709            settimer preventSpamNecroAbilitiesTimer 0
1710            settimer vampiricEmbraceTimer 0
1711            cooldown VampiricEmbrace cdVampiricEmbrace
1712            wait 500
1713            if gumpexists 622436516
1714                if ingump "12/" 622436516
1715                    @setvar! necroSymbols 12
1716                elseif ingump "13/" 622436516
1717                    @setvar! necroSymbols 13
1718                elseif ingump "14/" 622436516
1719                    @setvar! necroSymbols 14
1720                elseif ingump "15/" 622436516
1721                    @setvar! necroSymbols 15
1722                elseif ingump "16/" 622436516
1723                    @setvar! necroSymbols 16
1724                elseif ingump "17/" 622436516
1725                    @setvar! necroSymbols 17
1726                elseif ingump "18/" 622436516
1727                    @setvar! necroSymbols 18
1728                elseif ingump "19/" 622436516
1729                    @setvar! necroSymbols 19
1730                elseif ingump "20/" 622436516
1731                    @setvar! necroSymbols 20
1732                elseif ingump "21/" 622436516
1733                    @setvar! necroSymbols 21
1734                elseif ingump "11/" 622436516
1735                    @setvar! necroSymbols 11
1736                elseif ingump "10/" 622436516
1737                    @setvar! necroSymbols 10
1738                elseif ingump "9/" 622436516
1739                    @setvar! necroSymbols 9
1740                elseif ingump "8/" 622436516
1741                    @setvar! necroSymbols 8
1742                elseif ingump "7/" 622436516
1743                    @setvar! necroSymbols 7
1744                elseif ingump "6/" 622436516
1745                    @setvar! necroSymbols 6
1746                elseif ingump "5/" 622436516
1747                    @setvar! necroSymbols 5
1748                elseif ingump "4/" 622436516
1749                    @setvar! necroSymbols 4
1750                elseif ingump "3/" 622436516
1751                    @setvar! necroSymbols 3
1752                elseif ingump "2/" 622436516
1753                    @setvar! necroSymbols 2
1754                elseif ingump "1/" 622436516
1755                    @setvar! necroSymbols 1
1756                elseif ingump "0/" 622436516
1757                    @setvar! necroSymbols 0
1758                endif
1759            endif
1760        endif
1761        
1762        if castPainSpike = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer painSpikeTimer >= cdPainSpike and skill "Necromancy" >= 95 and timer meditiationTimer >= cdMeditationMini and 5 < necroSymbols and findtype 8198 ground -1 -1 6 as jorpse
1763            yell "[PainSpike"
1764            wft 500
1765            target myKillTarget
1766            wait 200
1767            settimer preventSpamNecroAbilitiesTimer 0
1768            if insysmsg "You do not see any corpses"
1769                // do nothing
1770            else
1771                settimer painSpikeTimer 0
1772                cooldown PainSpike cdPainSpike            
1773            endif
1774            if gumpexists 622436516
1775                if ingump "12/" 622436516
1776                    @setvar! necroSymbols 12
1777                elseif ingump "13/" 622436516
1778                    @setvar! necroSymbols 13
1779                elseif ingump "14/" 622436516
1780                    @setvar! necroSymbols 14
1781                elseif ingump "15/" 622436516
1782                    @setvar! necroSymbols 15
1783                elseif ingump "16/" 622436516
1784                    @setvar! necroSymbols 16
1785                elseif ingump "17/" 622436516
1786                    @setvar! necroSymbols 17
1787                elseif ingump "18/" 622436516
1788                    @setvar! necroSymbols 18
1789                elseif ingump "19/" 622436516
1790                    @setvar! necroSymbols 19
1791                elseif ingump "20/" 622436516
1792                    @setvar! necroSymbols 20
1793                elseif ingump "21/" 622436516
1794                    @setvar! necroSymbols 21
1795                elseif ingump "11/" 622436516
1796                    @setvar! necroSymbols 11
1797                elseif ingump "10/" 622436516
1798                    @setvar! necroSymbols 10
1799                elseif ingump "9/" 622436516
1800                    @setvar! necroSymbols 9
1801                elseif ingump "8/" 622436516
1802                    @setvar! necroSymbols 8
1803                elseif ingump "7/" 622436516
1804                    @setvar! necroSymbols 7
1805                elseif ingump "6/" 622436516
1806                    @setvar! necroSymbols 6
1807                elseif ingump "5/" 622436516
1808                    @setvar! necroSymbols 5
1809                elseif ingump "4/" 622436516
1810                    @setvar! necroSymbols 4
1811                elseif ingump "3/" 622436516
1812                    @setvar! necroSymbols 3
1813                elseif ingump "2/" 622436516
1814                    @setvar! necroSymbols 2
1815                elseif ingump "1/" 622436516
1816                    @setvar! necroSymbols 1
1817                elseif ingump "0/" 622436516
1818                    @setvar! necroSymbols 0
1819                endif
1820            endif
1821        endif
1822        
1823        if diffhits >= 30
1824            if findtype "Yellow Potion" backpack as pot 
1825                getlabel pot desc
1826                if "next usable" in desc
1827                    // do nothing
1828                else
1829                    dclick pot
1830                    wait 500
1831                endif
1832            endif
1833
1834            if diffhits >= 30 and mana >= 12
1835                while not targetexists
1836                    if diffhits >= 60
1837                        cast 'Heal'
1838                    else
1839                        cast 'Greater Heal'                
1840                    endif
1841                    wait 50
1842                    if hp = maxhp
1843                        hotkey '> Interrupt'
1844                        break
1845                    endif
1846                endwhile
1847                if targetexists
1848                    target self
1849                    wait 50
1850                endif
1851            endif
1852        endif
1853        
1854        if poisoned
1855            if findtype "Orange Potion" backpack as pot 
1856                dclick pot
1857                wait 200
1858            else
1859                while not targetexists
1860                    if not poisoned
1861                        hotkey '> Interrupt'
1862                        break
1863                    else
1864                        cast 'Cure'
1865                        wait 50
1866                    endif 
1867                endwhile
1868                if targetexists
1869                    target self
1870                    wait 500
1871                endif
1872            endif
1873        endif
1874
1875        if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy
1876            overhead "Eating shrooms" 66
1877            dclick mushy
1878            settimer magicMushroomTimer 0
1879        endif
1880        
1881        if index = 0
1882                    
1883            if castLightning = 1 and diffhits < 30 and mana >= 12 and timer lightningTimer >= cdLightning and timer meditiationTimer >= cdMeditationMini
1884                while not targetexists
1885                    if followers < 4 or dead myKillTarget or diffhits >= 30
1886                        hotkey '> Interrupt'
1887                        break
1888                    else
1889                        cast 'Lightning'
1890                        wait 50
1891                    endif 
1892                endwhile
1893                if targetexists
1894                    target myKillTarget
1895                    settimer lightningTimer 0
1896                    cooldown Lightning cdLightning
1897                    wait 500
1898                endif
1899            endif
1900        
1901        elseif index = 1
1902        
1903            if castMagicArrow = 1 and diffhits < 30 and mana >= 5 and timer magicArrowTimer >= cdMagicArrow and timer meditiationTimer >= cdMeditationMini
1904                while not targetexists
1905                    if followers < 4 or dead myKillTarget or diffhits >= 30
1906                        hotkey '> Interrupt'
1907                        break
1908                    else
1909                        cast 'magic arrow'
1910                        wait 50
1911                    endif 
1912                endwhile
1913                if targetexists
1914                    target myKillTarget
1915                    settimer magicArrowTimer 0
1916                    cooldown MagicArrow cdMagicArrow
1917                    wait 500
1918                endif
1919            endif
1920            
1921        elseif index = 2
1922                
1923            if castHarm = 1 and diffhits < 30 and mana >= 9 and timer harmTimer >= cdHarm and timer meditiationTimer >= cdMeditationMini
1924                while not targetexists
1925                    if followers < 4 or dead myKillTarget or diffhits >= 30
1926                        hotkey '> Interrupt'
1927                        break
1928                    else
1929                        cast 'harm'
1930                        wait 50
1931                    endif 
1932                endwhile
1933                if targetexists
1934                    target myKillTarget
1935                    settimer harmTimer 0
1936                    cooldown Harm cdHarm
1937                    wait 500
1938                endif
1939            endif
1940            
1941        elseif index = 3
1942                
1943            if castFireball = 1 and diffhits < 30 and mana >= 12 and timer fireballTimer >= cdFireball and timer meditiationTimer >= cdMeditationMini
1944                while not targetexists
1945                    if followers < 4 or dead myKillTarget or diffhits >= 30
1946                        hotkey '> Interrupt'
1947                        break
1948                    else
1949                        cast 'fireball'
1950                        wait 50
1951                    endif 
1952                endwhile
1953                if targetexists
1954                    target myKillTarget
1955                    settimer fireballTimer 0
1956                    cooldown Fireball cdFireball
1957                    wait 500
1958                endif
1959            endif
1960            
1961        elseif index = 4
1962                
1963            if castFireball = 1 and diffhits < 30 and mana >= 12 and timer fireballTimer >= cdFireball and timer meditiationTimer >= cdMeditationMini
1964                while not targetexists
1965                    if followers < 4 or dead myKillTarget or diffhits >= 30
1966                        hotkey '> Interrupt'
1967                        break
1968                    else
1969                        cast 'fireball'
1970                        wait 50
1971                    endif 
1972                endwhile
1973                if targetexists
1974                    target myKillTarget
1975                    settimer fireballTimer 0
1976                    cooldown Fireball cdFireball
1977                    wait 500
1978                endif
1979            endif
1980            
1981        endif
1982    
1983    endfor
1984   
1985    if find myKillTarget -1 -1 12 as killy
1986       // do nothing
1987    else
1988        overhead "Out of range" 34
1989        break
1990    endif
1991    
1992    
1993    if diffhits >= 30
1994            
1995        if findtype "Yellow Potion" backpack as pot 
1996            getlabel pot desc
1997            if "next usable" in desc
1998                // do nothing
1999            else
2000                dclick pot
2001                wait 500
2002            endif
2003        endif
2004
2005        if diffhits >= 30 and mana >= 12
2006            while not targetexists
2007                if diffhits >= 60
2008                    cast 'Heal'
2009                else
2010                    cast 'Greater Heal'                
2011                endif
2012                wait 50
2013                if hp = maxhp
2014                    hotkey '> Interrupt'
2015                    break
2016                endif
2017            endwhile
2018            if targetexists
2019                target self
2020                wait 50
2021            endif
2022        endif
2023    elseif mana < 55 and findbuff "actively meditating" 
2024        // wait for mana
2025    elseif timer meditiationTimer < cdMeditationMini and findbuff "actively meditating" 
2026        // wait for mana
2027    elseif castMindBlast = 1 and mana >= 32
2028        while not targetexists and mana > 30
2029            if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy
2030                overhead "Eating shrooms" 66
2031                dclick mushy
2032                settimer magicMushroomTimer 0
2033            endif
2034            if followers < 4 or dead myKillTarget or diffhits >= 30
2035                hotkey '> Interrupt'
2036                break
2037            else
2038                cast 'Mind Blast'
2039                wait 50
2040            endif 
2041        endwhile
2042        if targetexists
2043            target myKillTarget
2044            wait 500
2045        endif
2046        if castFlamestrike = 1 and mana > 42
2047            while not targetexists and mana > 40
2048            
2049                if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy
2050                    overhead "Eating shrooms" 66
2051                    dclick mushy
2052                    settimer magicMushroomTimer 0
2053                endif
2054        
2055                if followers < 4 or dead myKillTarget or diffhits >= 30
2056                    hotkey '> Interrupt'
2057                    break
2058                else
2059                    cast 'Flamestrike'
2060                    wait 50
2061                endif 
2062            endwhile
2063            if targetexists
2064                target myKillTarget
2065                wait 500
2066            endif
2067        endif
2068    elseif castFlamestrike = 1 and mana > 42
2069        while not targetexists and mana > 40
2070        
2071            if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy
2072                overhead "Eating shrooms" 66
2073                dclick mushy
2074                settimer magicMushroomTimer 0
2075            endif
2076    
2077            if followers < 4 or dead myKillTarget or diffhits >= 30
2078                hotkey '> Interrupt'
2079                break
2080            else
2081                cast 'Flamestrike'
2082                wait 50
2083            endif 
2084        endwhile
2085        if targetexists
2086            target myKillTarget
2087            wait 500
2088        endif
2089    elseif not findbuff "actively meditating" and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy
2090        overhead "Eating shrooms" 66
2091        dclick mushy
2092        settimer magicMushroomTimer 0
2093    elseif not findbuff "actively meditating" and timer meditiationTimer >= cdMeditation
2094        say "all guard me"
2095        useskill 'meditation'
2096        settimer meditiationTimer 0
2097        wait 500
2098    endif
2099    wait 50
2100endwhile
2101wait 500
2102if targetexists 
2103    hotkey 'Cancel Current Target'
2104endif
2105if not findbuff "actively meditating" 
2106    say "all guard me"
2107endif
2108while mana < minimumManaToCast
2109    if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 0
2110        hotkey 'Target Closest Non-Friendly Monster'
2111        wait 200
2112        if insysmsg "No one matching that was found"
2113            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
2114                overhead "no next target" 34
2115                settimer preventOverheadSpamTimer 0
2116            endif
2117        elseif not find lasttarget ground -1 -1 8
2118            overhead "▼ NEXT TARGET HERE ▼" 88 lasttarget
2119            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
2120                overhead "Move closer, more then 8 tiles away" 34
2121                settimer preventOverheadSpamTimer 0
2122            endif
2123        else
2124            overhead "▼ NEXT TARGET HERE ▼" 88 lasttarget
2125            attack lasttarget
2126        endif    
2127    endif
2128    if diffhits >= 30
2129        if findtype "Yellow Potion" backpack as pot 
2130            getlabel pot desc
2131            if "next usable" in desc
2132                // do nothing
2133            else
2134                dclick pot
2135                wait 200
2136            endif
2137        endif
2138        if diffhits >= 30 and mana >= 12
2139            while not targetexists
2140                if diffhits >= 60
2141                    cast 'Heal'
2142                else
2143                    cast 'Greater Heal'                
2144                endif
2145                wait 50
2146                if hp = maxhp
2147                    hotkey '> Interrupt'
2148                    break
2149                endif
2150            endwhile
2151            if targetexists
2152                target self
2153                wait 50
2154            endif
2155        endif
2156    endif
2157    if not findbuff "actively meditating" 
2158        useskill 'meditation'
2159    endif
2160    wait 500
2161endwhile
2162if canYouMakeAMushroom = 1 and counttype "mushroom" backpack < butOnlyIHaveLessThenThisCount
2163    while counttype "mushroom" backpack < makeThisManyMushroomsCount
2164        cast "Create Food"
2165        wait 200
2166        if diffhits >= 20 or counttype "mushroom" backpack = 0
2167            break
2168        endif
2169    endwhile
2170endif
2171if castVampiricEmbrace = 1 and timer vampiricEmbraceTimer >= cdVampiricEmbrace and skill "Necromancy" >= 70 and findtype 8198 ground -1 -1 4 as jorpse
2172    say "[VampiricEmbrace"
2173    wft 500
2174    target jorpse
2175    settimer vampiricEmbraceTimer 0
2176    cooldown VampiricEmbrace cdVampiricEmbrace
2177endif
2178if castSummonEarthElementalAsMummy = 0
2179    useskill "spiritspeak"
2180    settimer meditiationTimer 8000
2181endif
2182if timer killTargetTimer >= cdKillTarget
2183    overhead "We cleared curse and mana drain targets" 34
2184    removelist myCursedTargets      
2185    removelist myManaDrainTargets
2186endif
2187   
2188if autoBotEnabled = 1
2189    replay
2190endif
2191
2192// thanks for using a Jaseowns script!
2193// https://www.youtube.com/jaseowns   
2194// We did it
2195// Senor Borracho v2