Back to "summon" tags

Poison Necromancer by Aeos

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