Skip to content
Outlands Hub

Razor script

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

by dave5678 · 2201 lines
Download

Compatibility unverified

This community Razor script has not been tested in game by the Hub. Read its setup and client requirements before use.

One hotkey mage cycle, nox, poison by Jaseowns UO Outlands - https://outlands.uorazorscripts.com/mage-bot Cooldowns are live, so this script now attempts to display those Make cooldowns match the names of skills (check out for details:…

BardMagicMageryMeditationDiscordancePeacemaking
Ultimate Magery Summoner Nox Necro Discord Peacemaking w Buffs Autobot Hotkey.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/e314383f-cdae-4302-993b-a48174b375e6 for latest2# Automation by Jaseowns3## Script: Ultimate Magery Summoner Nox Necro Discord + Peacemaking w/ Buffs Autobot Hotkey4## Created by: dave5678#26615#############################################6 7# One hotkey mage cycle, nox, poison by Jaseowns8# UO Outlands - https://outlands.uorazorscripts.com/mage-bot9# 10# Cooldowns are live, so this script now attempts to display those11# Make cooldowns match the names of skills 12# (check out for details: https://outlands.uorazorscripts.com/mage-bot)13#14# VERISON: v2.3.015#16#    17// 01/07/202318// - control mana break requirement19// - fix pet selection to avoid others summoned pets (reds/grays)20// - must setup IgnoreMobs friends list and checkbox Ignore 21// 12/26/202222// - updated poison strike and how it deals with poison23// - added earth elemental as pet only instead of mummy24// 12/21/202225// - fixed bug with mindblast and two lich summons26// 12/17/202227// - V2 of AutoBot created.  Idea is to leverage things from mining script28##################29## Always room for improvment, thanks for watching!30############31 32# make sure you add a friends list called: IgnoreMobs33@setvar! didYouSetupIgnoreMobs 134 35# after a kill you must have this amount of mana to continue to next target36@setvar! minimumManaToCast 40 37 38# Set this to one, if you want to cast poison once no matter what39# If you have 100 poisoning and want Lethal, set this to 040@setvar! castPoisonAnyway 041 42# This will auto replay this script if you want it too43@setvar! autoBotEnabled 144 45# Update this variable to 1 for ALL KILL46# Update this variable to 0 for target nearest47@setvar! setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster 048 49###############50###  Choose your summons51######52@setvar! castSummonFireElementalCount 253@setvar! castSummonCreatureCount 154@setvar! castSummonEarthElementalCount 055@setvar! castSummonEarthElementalAsMummy 056 57###############58###  Choose your spells59######60@setvar! castCurse 161@setvar! castManadrain 162@setvar! castLightning 163@setvar! castFireball 164@setvar! castHarm 165@setvar! castMagicArrow 166# When other spells are on cooldown, do you want to cast MindBlast or Flamestrike or both67@setvar! castMindBlast 068@setvar! castFlamestrike 169 70### Buffs71@setvar! castBless 072@setvar! castMagicShield 173@setvar! castReactiveArmor 174# Drink Magic resist potion (only if magic shield buff not found)75@setvar! drinkMagicResistPot 176 77###############78###  Choose your necro spells (ignored if less then required necro skill)79######80@setvar! castEvilOmen 181@setvar! castCorpseSkin 082@setvar! castVampiricEmbrace 083@setvar! castMindRot 084@setvar! castPoisonStrike 085@setvar! castBloodOath 086@setvar! castPainSpike 187@setvar! requireWitherBeforeSummons 188 89###############90### Edit these cooldowns to match your wizard grimoire91######92@setvar! canYouMakeAMushroom 193@setvar! cdLightning 6000094@setvar! cdMagicArrow 6000095@setvar! cdHarm 6000096@setvar! cdFireball 6000097 98###############99### Necro Cooldowns100######101@setvar! cdEvilOmen 30500102@setvar! cdVampiricEmbrace 30500103@setvar! cdCorpseSkin 30500104@setvar! cdMindRot 30500105@setvar! cdWither 30500106@setvar! cdVengefulSpirit 30500107@setvar! cdBloodOath 30500108@setvar! cdPainSpike 30500109@setvar! cdPoisonStrike 30500110 111 112#### Buff Cooldowns113@setvar! cdMushroom 61000114@setvar! cdMagicShield 61000115@setvar! cdReactiveArmor 61000116@setvar! cdMeditation 10000117@setvar! cdMeditationMini 3000118@setvar! cdKillTarget 60000119 120#### Random cooldowns121@setvar! cdPreventOverheadSpam 2000122 123#### Mushroom count (I like a lot of shroomies)124@setvar! makeThisManyMushroomsCount 15125@setvar! butOnlyIHaveLessThenThisCount 5126 127@setvar! patrolPetEvenIfLastTargetIsBeyondEightTiles 1128 129if counttype "gold coin" backpack as total130    if 10000 < total131        overhead "Warning: {{total}} gold!" 34132    endif133endif134 135if findtype "dungeon torch" backpack as item136    overhead "Holy crap!" 88    137    say "I got one!" 88138    overhead "I got one!" 88139elseif findtype 30580 backpack as item140    overhead "Holy crap!" 88    141    say "I got one!" 88142    overhead "I got one!" 88143endif144    145 146#### Pet Names, unique to you147#if not listexists petNameList148    removelist petNameList149	createlist petNameList150#endif151if list petNameList = 0152    pushlist petNameList "ThatDude"153    pushlist petNameList "ThisDude"154    pushlist petNameList "ThisMan"155    pushlist petNameList "ThatMan"156endif157 158#### Bard stuff159@setvar! isDiscBuffed 0160@setvar! isPeaceBuffed 0161		162			if not findbuff "song of discordance"163                useskill 'Discordance'164                wft 500165                if insysmsg "What instrument"166                    if findtype "bamboo flute" backpack as inny167                        target inny168                    elseif findtype "tambourine" backpack as inny169                        target inny170                    elseif findtype "drum" backpack as inny171                        target inny172                    elseif findtype "lute" backpack as inny173                        target inny174                    elseif findtype "harp" backpack as inny175                        target inny176                    elseif findtype "lap harp" backpack as inny177                        target inny178                    else179                        overhead "I do not have an inny" 34180                    endif181                    wft 500182                endif183                target backpack184				@setvar! isDiscBuffed 1185                settimer discTimer 0186            endif    187            188			if not findbuff "song of peacemaking"189                useskill 'Peacemaking'190                wft 500191                if insysmsg "What instrument"192                    if findtype "bamboo flute" backpack as inny193                        target inny194                    elseif findtype "tambourine" backpack as inny195                        target inny196                    elseif findtype "drum" backpack as inny197                        target inny198                    elseif findtype "lute" backpack as inny199                        target inny200                    elseif findtype "harp" backpack as inny201                        target inny202                    elseif findtype "lap harp" backpack as inny203                        target inny204                    else205                        overhead "I do not have an inny" 34206                    endif207                    wft 500208                endif209                target backpack210                settimer peaceTimer 0211				@setvar! isPeaceBuffed 1212            endif213 214 215##################################################################216# 217#   Hopefully you do not have to edit after this :)218#219##################################################################220 221if didYouSetupIgnoreMobs = 0222    overhead "For this script to work, make sure you add a friends list called: IgnoreMobs" 34223    sysmsg  "For this script to work, make sure you add a friends list called: IgnoreMobs" 34224    wait 1500225    overhead "Click Friends Tab -> [checkmark] enabled -> [checkmark] Next/Prev Target ignores 'IgnoreMobs'" 88226    sysmsg "Click Friends Tab -> [checkmark] enabled -> [checkmark] Next/Prev Target ignores 'IgnoreMobs'" 88227    wait 5000228    overhead "If everything is setup, update didYouSetupIgnoreMobs to 1"229    sysmsg "If everything is setup, update didYouSetupIgnoreMobs to 1"230    wait 5000231    replay232endif233 234if not gumpexists 622436516 and skill "Necromancy" >= 50235    say '[NecromancyHotbar'236    wait 500237endif238 239// Make sure we have a spell book attached240if findlayer self righthand as item241    // do nothing242elseif findtype "3834" backpack as item243    dclick item244else 245    overhead "No book bro!" 34246endif247 248// Setting current necro symbols - checks again it the attack loop249@setvar! necroSymbols 12250if gumpexists 622436516 and skill "Necromancy" >= 50251    if ingump "12/" 622436516252        @setvar! necroSymbols 12253    elseif ingump "13/" 622436516254        @setvar! necroSymbols 13255    elseif ingump "14/" 622436516256        @setvar! necroSymbols 14257    elseif ingump "15/" 622436516258        @setvar! necroSymbols 15259    elseif ingump "16/" 622436516260        @setvar! necroSymbols 16261    elseif ingump "17/" 622436516262        @setvar! necroSymbols 17263    elseif ingump "18/" 622436516264        @setvar! necroSymbols 18265    elseif ingump "19/" 622436516266        @setvar! necroSymbols 19267    elseif ingump "20/" 622436516268        @setvar! necroSymbols 20269    elseif ingump "21/" 622436516270        @setvar! necroSymbols 21271    elseif ingump "11/" 622436516272        @setvar! necroSymbols 11273    elseif ingump "10/" 622436516274        @setvar! necroSymbols 10275    elseif ingump "9/" 622436516276        @setvar! necroSymbols 9277    elseif ingump "8/" 622436516278        @setvar! necroSymbols 8279    elseif ingump "7/" 622436516280        @setvar! necroSymbols 7281    elseif ingump "6/" 622436516282        @setvar! necroSymbols 6283    elseif ingump "5/" 622436516284        @setvar! necroSymbols 5285    elseif ingump "4/" 622436516286        @setvar! necroSymbols 4287    elseif ingump "3/" 622436516288        @setvar! necroSymbols 3289    elseif ingump "2/" 622436516290        @setvar! necroSymbols 2291    elseif ingump "1/" 622436516292        @setvar! necroSymbols 1293    elseif ingump "0/" 622436516294        @setvar! necroSymbols 0295    endif296endif297 298if not timerexists reactiveArmorTimer299    createtimer reactiveArmorTimer300    settimer reactiveArmorTimer cdMagicShield301endif302 303if not timerexists magicShieldTimer304    createtimer magicShieldTimer305    settimer magicShieldTimer cdMagicShield306endif307 308if not timerexists magicMushroomTimer309    createtimer magicMushroomTimer310    settimer magicMushroomTimer cdMushroom311endif312 313if not timerexists magicArrowTimer314    createtimer magicArrowTimer315    settimer magicArrowTimer cdMagicArrow316endif317 318if not timerexists lightningTimer319    createtimer lightningTimer320    settimer lightningTimer cdLightning321endif322 323if not timerexists harmTimer324    createtimer harmTimer325    settimer harmTimer cdHarm326endif327 328if not timerexists fireballTimer329    createtimer fireballTimer330    settimer fireballTimer cdFireball331endif332 333if not timerexists evilOmenTimer334    createtimer evilOmenTimer335    settimer evilOmenTimer cdEvilOmen336endif337 338if not timerexists vampiricEmbraceTimer339    createtimer vampiricEmbraceTimer340    settimer vampiricEmbraceTimer cdVampiricEmbrace341endif342 343if not timerexists corpseSkinTimer344    createtimer corpseSkinTimer345    settimer corpseSkinTimer cdCorpseSkin346endif347 348if not timerexists mindRotTimer349    createtimer mindRotTimer350    settimer mindRotTimer cdMindRot351endif352 353if not timerexists meditiationTimer354    createtimer meditiationTimer355    settimer meditiationTimer cdMeditation356endif357 358if not timerexists peaceTimer359    createtimer peaceTimer360    settimer peaceTimer cdPeaceMaking361endif362 363if not timerexists discTimer364    createtimer discTimer365    settimer peaceTimer cdDiscordance366endif367 368if not timerexists killTargetTimer369    createtimer killTargetTimer370    settimer killTargetTimer cdKillTarget371endif372 373if not timerexists witherTimer374    createtimer witherTimer375    settimer witherTimer cdWither376endif377 378if not timerexists vengefulSpiritTimer379    createtimer vengefulSpiritTimer380    settimer vengefulSpiritTimer cdVengefulSpirit381endif382 383if not timerexists bloodOathTimer384    createtimer bloodOathTimer385    settimer bloodOathTimer cdBloodOath386endif387 388if not timerexists painSpikeTimer389    createtimer painSpikeTimer390    settimer painSpikeTimer cdPainSpike391endif392 393if not timerexists poisonStrikeTimer394    createtimer poisonStrikeTimer395    settimer poisonStrikeTimer cdPoisonStrike396endif397 398if not timerexists preventOverheadSpamTimer399    createtimer preventOverheadSpamTimer400    settimer preventOverheadSpamTimer cdPreventOverheadSpam401endif402 403@setvar! cdPreventSpamNecroAbilities 750404if not timerexists preventSpamNecroAbilitiesTimer405    createtimer preventSpamNecroAbilitiesTimer406    settimer preventSpamNecroAbilitiesTimer cdPreventSpamNecroAbilities407endif408 409if not varexist myEarthPet410    @setvar! myEarthPet 0411endif412 413// make sure we have enough symbols to summon (6 for wither + vengful spirit)414if skill "Necromancy" >= 90 and requireWitherBeforeSummons = 1415    while followers < 4 and 6 > necroSymbols416        // we already have vengeful spirit active, skip the check417        if timer vengefulSpiritTimer < cdVengefulSpirit418           break419        endif420        if diffhits >= 30421            if targetexists 422                hotkey 'Cancel Current Target'423            endif424            while not targetexists 'beneficial'425                if diffhits >= 60426                    cast 'Heal'427                else428                    cast 'Greater Heal'                429                endif430                wait 50431                if hp = maxhp432                    hotkey '> Interrupt'433                    break434                endif435            endwhile436            if targetexists 'beneficial'437                hotkey 'Target Self'438            endif439        endif440        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam441            overhead "waiting for symbols" 88442            settimer preventOverheadSpamTimer 0443        endif444        if gumpexists 622436516 and skill "Necromancy" >= 50445            if ingump "12/" 622436516446                @setvar! necroSymbols 12447            elseif ingump "13/" 622436516448                @setvar! necroSymbols 13449            elseif ingump "14/" 622436516450                @setvar! necroSymbols 14451            elseif ingump "15/" 622436516452                @setvar! necroSymbols 15453            elseif ingump "16/" 622436516454                @setvar! necroSymbols 16455            elseif ingump "17/" 622436516456                @setvar! necroSymbols 17457            elseif ingump "18/" 622436516458                @setvar! necroSymbols 18459            elseif ingump "19/" 622436516460                @setvar! necroSymbols 19461            elseif ingump "20/" 622436516462                @setvar! necroSymbols 20463            elseif ingump "21/" 622436516464                @setvar! necroSymbols 21465            elseif ingump "11/" 622436516466                @setvar! necroSymbols 11467            elseif ingump "10/" 622436516468                @setvar! necroSymbols 10469            elseif ingump "9/" 622436516470                @setvar! necroSymbols 9471            elseif ingump "8/" 622436516472                @setvar! necroSymbols 8473            elseif ingump "7/" 622436516474                @setvar! necroSymbols 7475            elseif ingump "6/" 622436516476                @setvar! necroSymbols 6477            elseif ingump "5/" 622436516478                @setvar! necroSymbols 5479            elseif ingump "4/" 622436516480                @setvar! necroSymbols 4481            elseif ingump "3/" 622436516482                @setvar! necroSymbols 3483            elseif ingump "2/" 622436516484                @setvar! necroSymbols 2485            elseif ingump "1/" 622436516486                @setvar! necroSymbols 1487            elseif ingump "0/" 622436516488                @setvar! necroSymbols 0489            endif490        endif491    endwhile492endif493 494 495if not varexist lichOne496    @setvar! lichOne 0497endif498 499if not varexist lichTwo500    @setvar! lichTwo 0501endif502 503if not varexist earthOne504    @setvar! earthOne 0505endif506 507if not varexist earthTwo508    @setvar! earthTwo 0509endif510 511if lichOne = creatureOne or lichTwo = creatureOne or earthOne = creatureOne or earthTwo = creatureOne512    overhead "Duplicated"513    unsetvar creatureOne514endif515 516if diffhits >= 30517    if targetexists 518        hotkey 'Cancel Current Target'519    endif520    while not targetexists 'beneficial'521        if diffhits >= 60522            cast 'Heal'523        else524            cast 'Greater Heal'                525        endif526        wait 50527        if hp = maxhp528            hotkey '> Interrupt'529            break530        endif531    endwhile532    if targetexists 'beneficial'533        target self534    endif535    replay536endif537 538 539if castSummonEarthElementalCount > 0540    if diffhits < 30541        if followers = 0542            @setvar! followCount 0543        elseif followers = 1544            @setvar! followCount 1545        elseif followers = 2546            @setvar! followCount 2547        elseif followers = 3548            @setvar! followCount 3549        elseif followers = 4550            @setvar! followCount 4551        elseif followers = 5552            @setvar! followCount 5553        endif554        if dead earthOne or not find earthOne ground -1 -1 12555            if followers < 4556                while mana < 50557                    if diffhits >= 30558                        replay559                    endif560                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam561                        overhead "waiting for mana" 88562                        settimer preventOverheadSpamTimer 0563                    endif564                    if not findbuff "Actively Meditating"565                        useskill "meditation"566                    endif567                    wait 200568                endwhile569                570                if castSummonEarthElementalAsMummy = 1571                    if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50572                        yell "[VengefulSpirit"573                        settimer vengefulSpiritTimer 0574                        wait 500575                    endif576                elseif timer vengefulSpiritTimer <= cdVengefulSpirit and skill "Necromancy" >= 50577                    overhead  "Waiting for spirit to go away" 578                    replay579                endif580                while followers = followCount581                    cast "Earth elemental"582                    wait 500583                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95584                        yell "[Wither"585                        settimer witherTimer 0586                    endif587                    if diffhits >= 30588                        hotkey '> Interrupt'589                        break590                    endif591                endwhile592                // 158 - an ancient mummy593                // 14 - an earth elemental594                if findtype 158|14 ground -1 -1 6 as myPet595                    if noto myPet = "friend" and list petNameList > 0596                        overhead "Renaming..."597                        foreach petName in petNameList598                            rename myPet petName599                            break600                        endfor601                        poplist petNameList "front"602                    endif603                    @setvar! earthOne myPet604                    say "all guard me"605                    replay606                endif607            endif608        endif609    endif610    611    if diffhits < 30 and castSummonEarthElementalCount > 1612        if followers = 0613            @setvar! followCount 0614        elseif followers = 1615            @setvar! followCount 1616        elseif followers = 2617            @setvar! followCount 2618        elseif followers = 3619            @setvar! followCount 3620        elseif followers = 4621            @setvar! followCount 4622        elseif followers = 5623            @setvar! followCount 5624        endif625        if dead earthTwo or not find earthTwo ground -1 -1 12626            if followers < 4627                while mana < 50628                    if diffhits >= 30629                        replay630                    endif631                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam632                        overhead "waiting for mana" 88633                        settimer preventOverheadSpamTimer 0634                    endif635                    if not findbuff "Actively Meditating"636                        useskill "meditation"637                    endif638                    wait 200639                endwhile640                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50641                    yell "[VengefulSpirit"642                    settimer vengefulSpiritTimer 0643                    wait 500644                endif645                while followers = followCount646                    cast "Earth elemental"647                    wait 500648                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95649                        yell "[Wither"650                        settimer witherTimer 0651                    endif652                    if diffhits >= 30653                        hotkey '> Interrupt'654                        break655                    endif656                endwhile657                // 158 - an ancient mummy658                // 14 - an earth elemental659                if findtype 158|14 ground -1 -1 6 as myPet660                    if noto myPet = "friend" and list petNameList > 0661                        overhead "Renaming..."662                        foreach petName in petNameList663                            rename myPet petName664                            break665                        endfor666                        poplist petNameList "front"667                    endif668                    @setvar! earthTwo myPet669                    say "all guard me"670                    replay671                endif672            endif673        endif674    endif675endif676 677 678if castSummonFireElementalCount > 0679    if diffhits < 30680    681        if lichOne = 0 682            // do nothing683        elseif lichOne = lichTwo684            overhead "Duplicated"685            unsetvar lichOne686        endif687        688        if followers = 0689            @setvar! followCount 0690        elseif followers = 1691            @setvar! followCount 1692        elseif followers = 2693            @setvar! followCount 2694        elseif followers = 3695            @setvar! followCount 3696        elseif followers = 4697            @setvar! followCount 4698        elseif followers = 5699            @setvar! followCount 5700        endif701        if dead lichOne or not find lichOne ground -1 -1 12702            if followers < 4703                while mana < 50704                    if diffhits >= 30705                        replay706                    endif707                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam708                        overhead "waiting for mana" 88709                        settimer preventOverheadSpamTimer 0710                    endif711                    if not findbuff "Actively Meditating"712                        useskill "meditation"713                    endif714                    wait 200715                endwhile716                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50717                    yell "[VengefulSpirit"718                    settimer vengefulSpiritTimer 0719                    wait 500720                endif721                @ignore lichTwo722                while followers = followCount723                    cast "fire elemental"724                    wait 500725                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95726                        yell "[Wither"727                        settimer witherTimer 0728                    endif729                    if diffhits >= 30730                        hotkey '> Interrupt'731                        break732                    endif733                endwhile734                // 24 - a lich735                // 15 - a fire elemental736                if findtype 24|15 ground -1 -1 6 as myPet737                    if noto myPet = "friend" and list petNameList > 0738                        overhead "Renaming..."739                        foreach petName in petNameList740                            rename myPet petName741                            break742                        endfor743                        poplist petNameList "front"744                    endif745                    @setvar! lichOne myPet746                    overhead "Lich One Set" 88 lichOne747                    say "all guard me"748                    @clearignore 749                    replay750                endif751            endif752        endif753    endif754    755    if diffhits < 30 and castSummonFireElementalCount > 1756        if followers = 0757            @setvar! followCount 0758        elseif followers = 1759            @setvar! followCount 1760        elseif followers = 2761            @setvar! followCount 2762        elseif followers = 3763            @setvar! followCount 3764        elseif followers = 4765            @setvar! followCount 4766        elseif followers = 5767            @setvar! followCount 5768        endif769        if dead lichTwo or not find lichTwo ground -1 -1 12770            if followers < 4771                while mana < 50772                    if diffhits >= 30773                        replay774                    endif775                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam776                        overhead "waiting for mana" 88777                        settimer preventOverheadSpamTimer 0778                    endif779                    if not findbuff "Actively Meditating"780                        useskill "meditation"781                    endif782                    wait 200783                endwhile784                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50785                    yell "[VengefulSpirit"786                    settimer vengefulSpiritTimer 0787                    wait 500788                endif789                @ignore lichOne790                while followers = followCount791                    cast "fire elemental"792                    wait 500793                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95794                        yell "[Wither"795                        settimer witherTimer 0796                    endif797                    if diffhits >= 30798                        hotkey '> Interrupt'799                        break800                    endif801                endwhile802                // 24 - a lich803                // 15 - a fire elemental804                if findtype 24|15 ground -1 -1 6 as myPet805                    if noto myPet = "friend" and list petNameList > 0806                        overhead "Renaming..."807                        foreach petName in petNameList808                            rename myPet petName809                            break810                        endfor811                        poplist petNameList "front"812                    endif813                    @clearignore814                    @setvar! lichTwo myPet815                    overhead "Lich Two Set" 88 lichTwo816                    say "all guard me"817                    replay818                endif819                820            endif821        endif822    endif823endif824 825if castSummonCreatureCount = 0826    // do nothing827elseif castSummonCreatureCount = 1 and not dead creatureOne828    // do nothing829elseif castSummonCreatureCount = 1830    if followers = 4 and diffhits < 30831        if followers = 0832            @setvar! followCount 0833        elseif followers = 1834            @setvar! followCount 1835        elseif followers = 2836            @setvar! followCount 2837        elseif followers = 3838            @setvar! followCount 3839        elseif followers = 4840            @setvar! followCount 4841        elseif followers = 5842            @setvar! followCount 5843        endif844        while mana < 14845            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam846                overhead "waiting for mana" 88847                settimer preventOverheadSpamTimer 0848            endif849            if diffhits >= 30850                replay851            endif852            if not findbuff "Actively Meditating"853                useskill "meditation"854            endif855            wait 200856        endwhile857        if timer vengefulSpiritTimer >= cdVengefulSpirit858            yell "[VengefulSpirit"859            settimer vengefulSpiritTimer 0860            wait 200861        endif862        while followers = followCount863            cast 'Summ. Creature'864            wait 500865            if diffhits >= 30866                hotkey '> Interrupt'867                replay868            endif869        endwhile        870        say "all guard me"871    endif872else873    for 6874        if index = 0875            // do nothing876        else877            if diffhits < 30878                @setvar! needToSummon 0879                if index = 1880                    if dead creatureOne or not find creatureOne ground -1 -1 12881                        @setvar! needToSummon 1882                    endif883                elseif index = 2884                    if dead creatureTwo or not find creatureTwo ground -1 -1 12885                        @setvar! needToSummon 1886                    endif887                elseif index = 3888                    if dead creatureThree or not find creatureThree ground -1 -1 12889                        @setvar! needToSummon 1890                    endif891                elseif index = 4892                    if dead creatureFour or not find creatureFour ground -1 -1 12893                        @setvar! needToSummon 1894                    endif895                elseif index = 5896                    if dead creatureFive or not find creatureFive ground -1 -1 12897                        @setvar! needToSummon 1898                    endif899                endif900            901                if needToSummon = 1902                    if followers = 0903                        @setvar! followCount 0904                    elseif followers = 1905                        @setvar! followCount 1906                    elseif followers = 2907                        @setvar! followCount 2908                    elseif followers = 3909                        @setvar! followCount 3910                    elseif followers = 4911                        @setvar! followCount 4912                    elseif followers = 5913                        @setvar! followCount 5914                    endif915                   916                    while mana < 50917                        if diffhits >= 30918                            replay919                        endif920                        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam921                            overhead "waiting for mana" 88922                            settimer preventOverheadSpamTimer 0923                        endif924                        if not findbuff "Actively Meditating"925                            useskill "meditation"926                        endif927                        wait 200928                    endwhile929                    if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50930                        yell "[VengefulSpirit"931                        settimer vengefulSpiritTimer 0932                        wait 500933                    endif934                    while followers = followCount935                        cast "Summ. Creature"936                        wait 500937                        if timer witherTimer >= cdWither and skill "Necromancy" >= 95938                            yell "[Wither"939                            settimer witherTimer 0940                        endif941                        if diffhits >= 30942                            hotkey '> Interrupt'943                            break944                        endif945                    endwhile946                    hotkey 'Next Friendly Monster Target'947                    @setvar! checkLastTarget lasttarget948                    if checkLastTarget = earthOne949                        hotkey 'Next Friendly Monster Target'950                        @setvar! checkLastTarget lasttarget 951                    endif952                    953                    if checkLastTarget = earthTwo954                       hotkey 'Next Friendly Monster Target'955                       @setvar! checkLastTarget lasttarget 956                    endif957                    958                    if checkLastTarget = lichOne959                       hotkey 'Next Friendly Monster Target'960                       @setvar! checkLastTarget lasttarget 961                    endif962                    963                    if checkLastTarget = lichTwo964                       hotkey 'Next Friendly Monster Target'965                       @setvar! checkLastTarget lasttarget 966                    endif967                    @setvar! creatureOne checkLastTarget968                    969                    if find checkLastTarget ground -1 -1 6 as myPet970                        if noto myPet = "friend" and list petNameList > 0971                            overhead "Renaming..."972                            foreach petName in petNameList973                                rename myPet petName974                                break975                            endfor976                            poplist petNameList "front"977                        endif978                        if index = 1979                            if dead creatureOne or not find creatureOne ground -1 -1 12980                                @setvar! creatureOne myPet981                            endif982                        elseif index = 2983                            if dead creatureTwo or not find creatureTwo ground -1 -1 12984                                @setvar! creatureTwo myPet985                            endif986                        elseif index = 3987                            if dead creatureThree or not find creatureThree ground -1 -1 12988                                @setvar! creatureThree myPet989                            endif990                        elseif index = 4991                            if dead creatureFour or not find creatureFour ground -1 -1 12992                                @setvar! creatureFour myPet993                            endif994                        elseif index = 5995                            if dead creatureFive or not find creatureFive ground -1 -1 12996                                @setvar! creatureFive myPet997                            endif998                        endif999                    endif1000                endif1001            endif1002        endif1003        if index = castSummonCreatureCount1004            break1005        endif1006    endfor1007endif1008 1009# Eat food if we got it1010if not findbuff "food" and findtype "tray" backpack as jood1011    dclick jood1012    wait 2001013endif1014 1015if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 11016    say "all kill"1017    wait 2001018    while targetexists 1019        // wait1020        wait 501021    endwhile1022else1023    hotkey 'Target Closest Non-Friendly Monster'1024    wait 2001025    if insysmsg "No one matching that was found"1026        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1027            overhead "found no one" 341028            settimer preventOverheadSpamTimer 01029        endif1030        if autoBotEnabled = 11031            wait 5001032            replay1033        endif1034        stop1035    elseif not find lasttarget ground -1 -1 81036    1037        @setvar checkForSummons lasttarget 1038        getlabel checkForSummons checkForSummonsDesc1039    1040        if "(summoned" in checkForSummonsDesc or "(bonded" in checkForSummonsDesc1041            overhead "� Player pet - IGNORE �" 77 lasttarget1042            while not targetexists 1043                hotkey 'Add Target To: IgnoreMobs'1044                wait 2001045            endwhile1046            target myKillTarget 1047            replay1048        endif    1049    1050        overhead "� � OUT OF RANGE � �" 88 lasttarget1051        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1052            overhead "Move closer, more then 8 tiles away" 341053            settimer preventOverheadSpamTimer 01054        endif1055        if patrolPetEvenIfLastTargetIsBeyondEightTiles = 1 and find myEarthPet ground -1 -1 121056            menu myEarthPet 21057            wft 5001058            target lasttarget1059        endif1060        if autoBotEnabled = 11061            wait 5001062            replay1063        endif1064        stop1065    else1066        overhead "� �� HERE �� �" 88 lasttarget1067    endif    1068endif1069 1070@setvar myKillTarget lasttarget 1071 1072if not varexist myPreviousKillTarget1073    @setvar myPreviousKillTarget 0     1074endif1075 1076getlabel myKillTarget desc1077overhead desc1078 1079if "(summoned" in desc or "(bonded" in desc1080    overhead "� Player pet - IGNORE �" 77 lasttarget1081    while not targetexists 1082        hotkey 'Add Target To: IgnoreMobs'1083        wait 2001084    endwhile1085    target myKillTarget 1086    replay1087endif    1088 1089if not varexist myEarthPet or dead myEarthPet1090    if not dead earthOne1091        @setvar! myEarthPet earthOne1092    elseif not dead earthTwo1093        @setvar! myEarthPet earthTwo1094    endif1095endif1096 1097if find myEarthPet ground -1 -1 121098    menu myEarthPet 21099    wft 5001100    target myKillTarget1101endif1102 1103 1104if diffhits >= 30 and mana > 121105    while not targetexists1106        if diffhits >= 601107            cast 'Heal'1108        else1109            cast 'Greater Heal'                1110        endif1111        wait 501112        if hp = maxhp1113            hotkey '> Interrupt'1114            break1115        endif1116    endwhile1117    if targetexists1118        target self1119    endif1120elseif castBless = 1 and str <= 100 and followers >= 4 1121    while not targetexists1122        cast 'Bless'1123        wait 501124        if diffhits >= 301125            hotkey '> Interrupt'1126            break1127        endif1128    endwhile1129    if targetexists1130        target self1131    endif1132endif1133 1134if not listexists myCursedTargets1135    createlist myCursedTargets1136endif1137 1138if not listexists myManaDrainTargets1139    createlist myManaDrainTargets1140endif1141 1142if find myKillTarget -1 -1 12 as killy1143    if myKillTarget = myPreviousKillTarget1144        // do nothing1145    else1146        1147        // Herding using crook1148        if skill "Herding" > 0 and findtype 3713 backpack as jrook1149            dclick jrook1150            wft 5001151            target killy1152        endif1153 1154        if inlist myManaDrainTargets myKillTarget1155            overhead "We already mana drained this guy" 881156            // do nothing1157        elseif castManadrain = 01158            // do nothing 1159        elseif followers >= 4 1160            while not targetexists and not dead myKillTarget1161                if diffhits < 301162                    cast 'mana drain'1163                    wait 501164                elseif diffhits >= 30 1165                    hotkey '> Interrupt'1166                    break1167                endif1168            endwhile1169            if targetexists1170                target myKillTarget1171                pushlist myManaDrainTargets myKillTarget1172                settimer killTargetTimer 01173                wait 5001174            endif1175        endif1176        1177        if inlist myCursedTargets myKillTarget1178            overhead "We already cursed this guy" 881179            // do nothing1180        elseif castCurse = 01181            // do nothing1182        elseif followers >= 4 1183            while not targetexists and not dead myKillTarget1184                if diffhits < 301185                    cast 'Curse'1186                    wait 501187                elseif diffhits >= 30 1188                    hotkey '> Interrupt'1189                    break1190                endif1191            endwhile1192            if targetexists1193                target myKillTarget1194                pushlist myCursedTargets myKillTarget1195                settimer killTargetTimer 01196                wait 5001197            endif1198        endif1199        @setvar myPreviousKillTarget myKillTarget1200    endif1201else1202    overhead "Out of range" 341203endif1204 1205 1206clearsysmsg 1207 1208say "all guard"1209 1210@setvar! isLethalPoison 01211@setvar! isDiscorded 01212@setvar! isHerded 01213@setvar! isPeaced 01214 1215while not dead myKillTarget and find myKillTarget -1 -1 12 as killy1216 1217    for 51218        // lost a follower1219        if followers < 41220            replay1221        endif1222    1223        if dead myKillTarget1224            break1225        elseif insysmsg "Target cannot be seen." 1226            overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341227            replay1228        elseif find myKillTarget -1 -1 12 as killy1229            // do nothing - in range to kill1230        else1231            break1232        endif1233          1234        if gumpexists 622436516 and skill "Necromancy" >= 501235            if ingump "12/" 6224365161236                @setvar! necroSymbols 121237            elseif ingump "13/" 6224365161238                @setvar! necroSymbols 131239            elseif ingump "14/" 6224365161240                @setvar! necroSymbols 141241            elseif ingump "15/" 6224365161242                @setvar! necroSymbols 151243            elseif ingump "16/" 6224365161244                @setvar! necroSymbols 161245            elseif ingump "17/" 6224365161246                @setvar! necroSymbols 171247            elseif ingump "18/" 6224365161248                @setvar! necroSymbols 181249            elseif ingump "19/" 6224365161250                @setvar! necroSymbols 191251            elseif ingump "20/" 6224365161252                @setvar! necroSymbols 201253            elseif ingump "21/" 6224365161254                @setvar! necroSymbols 211255            elseif ingump "11/" 6224365161256                @setvar! necroSymbols 111257            elseif ingump "10/" 6224365161258                @setvar! necroSymbols 101259            elseif ingump "9/" 6224365161260                @setvar! necroSymbols 91261            elseif ingump "8/" 6224365161262                @setvar! necroSymbols 81263            elseif ingump "7/" 6224365161264                @setvar! necroSymbols 71265            elseif ingump "6/" 6224365161266                @setvar! necroSymbols 61267            elseif ingump "5/" 6224365161268                @setvar! necroSymbols 51269            elseif ingump "4/" 6224365161270                @setvar! necroSymbols 41271            elseif ingump "3/" 6224365161272                @setvar! necroSymbols 31273            elseif ingump "2/" 6224365161274                @setvar! necroSymbols 21275            elseif ingump "1/" 6224365161276                @setvar! necroSymbols 11277            elseif ingump "0/" 6224365161278                @setvar! necroSymbols 01279            endif1280        endif1281        1282        if skill "Discordance" >= 50 and skill "Peacemaking" >= 501283            if isDiscorded = 01284                getlabel myKillTarget discordDesc1285                if "discord" in discordDesc1286                    @setvar! isDiscorded 11287                elseif timer meditiationTimer >= 11000 1288                    useskill 'Discordance'1289                    wft 5001290                    if insysmsg "What instrument"1291                        if findtype "bamboo flute" backpack as inny1292                            target inny1293                        elseif findtype "tambourine" backpack as inny1294                            target inny1295                        elseif findtype "drum" backpack as inny1296                            target inny1297                        elseif findtype "lute" backpack as inny1298                            target inny1299                        elseif findtype "harp" backpack as inny1300                            target inny1301                        elseif findtype "lap harp" backpack as inny1302                            target inny1303                        else1304                            overhead "I do not have an inny" 341305                            @setvar! isDiscorded 11306                        endif1307                        wft 5001308                    endif1309                    if targetexists 1310                        target myKillTarget1311                        overhead "Discorded" 88 myKillTarget1312                    endif1313                    settimer meditiationTimer 50001314                endif1315            endif1316 1317            if isPeaced = 01318                getlabel myKillTarget peaceDesc1319                if "peace" in peaceDesc1320                    @setvar! isPeaced 11321                elseif timer meditiationTimer >= 11000 1322                    useskill 'Peacemaking'1323                    wft 5001324                    if insysmsg "What instrument"1325                        if findtype "bamboo flute" backpack as inny1326                            target inny1327                        elseif findtype "tambourine" backpack as inny1328                            target inny1329                        elseif findtype "drum" backpack as inny1330                            target inny1331                        elseif findtype "lute" backpack as inny1332                            target inny1333                        elseif findtype "harp" backpack as inny1334                            target inny1335                        elseif findtype "lap harp" backpack as inny1336                            target inny1337                        else1338                            overhead "I do not have an inny" 341339                            @setvar! isPeaced 11340                        endif1341                        wft 5001342                    endif1343                    if targetexists 1344                        target myKillTarget1345                        overhead "Peaced" 88 myKillTarget1346                    endif1347                    settimer meditiationTimer 50001348                endif1349            endif1350		endif1351			1352 1353		1354 1355        if castMagicShield = 1 and timer magicShieldTimer >= cdMagicShield and not findbuff "Magic Reflection"1356            cast "Magic Reflection"1357            wait 10001358        elseif drinkMagicResistPot = 1 and not findbuff "Magic Reflection" and not findbuff "Magic Resist Potion" and findtype "Black Potion" backpack as pot1359            dclick pot1360            wait 2001361        endif1362 1363        if findbuff "Magic Reflection"1364            settimer magicShieldTimer 01365        endif1366        1367        if castReactiveArmor = 1 and timer reactiveArmorTimer >= cdReactiveArmor and not findbuff "Reactive Armor"1368            cast "Reactive Armor"1369            wait 2001370        endif1371 1372        if findbuff "Reactive Armor"1373            settimer reactiveArmorTimer 01374        endif1375        1376        if skill "poisoning" >= 100 or castPoisonAnyway = 11377            if timer meditiationTimer >= cdMeditationMini1378                if castMindRot = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer mindRotTimer >= cdMindRot and skill "Necromancy" >= 75 and 3 < necroSymbols 1379                    yell "[MindRot"1380                    settimer preventSpamNecroAbilitiesTimer 01381                    settimer mindRotTimer 01382                    wait 5001383                    if gumpexists 6224365161384                        if ingump "12/" 6224365161385                            @setvar! necroSymbols 121386                        elseif ingump "13/" 6224365161387                            @setvar! necroSymbols 131388                        elseif ingump "14/" 6224365161389                            @setvar! necroSymbols 141390                        elseif ingump "15/" 6224365161391                            @setvar! necroSymbols 151392                        elseif ingump "16/" 6224365161393                            @setvar! necroSymbols 161394                        elseif ingump "17/" 6224365161395                            @setvar! necroSymbols 171396                        elseif ingump "18/" 6224365161397                            @setvar! necroSymbols 181398                        elseif ingump "19/" 6224365161399                            @setvar! necroSymbols 191400                        elseif ingump "20/" 6224365161401                            @setvar! necroSymbols 201402                        elseif ingump "21/" 6224365161403                            @setvar! necroSymbols 211404                        elseif ingump "11/" 6224365161405                            @setvar! necroSymbols 111406                        elseif ingump "10/" 6224365161407                            @setvar! necroSymbols 101408                        elseif ingump "9/" 6224365161409                            @setvar! necroSymbols 91410                        elseif ingump "8/" 6224365161411                            @setvar! necroSymbols 81412                        elseif ingump "7/" 6224365161413                            @setvar! necroSymbols 71414                        elseif ingump "6/" 6224365161415                            @setvar! necroSymbols 61416                        elseif ingump "5/" 6224365161417                            @setvar! necroSymbols 51418                        elseif ingump "4/" 6224365161419                            @setvar! necroSymbols 41420                        elseif ingump "3/" 6224365161421                            @setvar! necroSymbols 31422                        elseif ingump "2/" 6224365161423                            @setvar! necroSymbols 21424                        elseif ingump "1/" 6224365161425                            @setvar! necroSymbols 11426                        elseif ingump "0/" 6224365161427                            @setvar! necroSymbols 01428                        endif1429                    endif1430                endif1431                1432                                1433                getlabel myKillTarget desc21434                overhead desc21435                1436                if castPoisonStrike = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer poisonStrikeTimer >= cdPoisonStrike and skill "Necromancy" >= 55 and 1 < necroSymbols 1437                    if "Ticks" in desc21438                        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 1439                            yell "[PoisonStrike"1440                            wft 5001441                            target myKillTarget1442                            wait 2001443                            settimer preventSpamNecroAbilitiesTimer 01444                            settimer poisonStrikeTimer 01445                            wait 5001446                            if gumpexists 6224365161447                                if ingump "12/" 6224365161448                                    @setvar! necroSymbols 121449                                elseif ingump "13/" 6224365161450                                    @setvar! necroSymbols 131451                                elseif ingump "14/" 6224365161452                                    @setvar! necroSymbols 141453                                elseif ingump "15/" 6224365161454                                    @setvar! necroSymbols 151455                                elseif ingump "16/" 6224365161456                                    @setvar! necroSymbols 161457                                elseif ingump "17/" 6224365161458                                    @setvar! necroSymbols 171459                                elseif ingump "18/" 6224365161460                                    @setvar! necroSymbols 181461                                elseif ingump "19/" 6224365161462                                    @setvar! necroSymbols 191463                                elseif ingump "20/" 6224365161464                                    @setvar! necroSymbols 201465                                elseif ingump "21/" 6224365161466                                    @setvar! necroSymbols 211467                                elseif ingump "11/" 6224365161468                                    @setvar! necroSymbols 111469                                elseif ingump "10/" 6224365161470                                    @setvar! necroSymbols 101471                                elseif ingump "9/" 6224365161472                                    @setvar! necroSymbols 91473                                elseif ingump "8/" 6224365161474                                    @setvar! necroSymbols 81475                                elseif ingump "7/" 6224365161476                                    @setvar! necroSymbols 71477                                elseif ingump "6/" 6224365161478                                    @setvar! necroSymbols 61479                                elseif ingump "5/" 6224365161480                                    @setvar! necroSymbols 51481                                elseif ingump "4/" 6224365161482                                    @setvar! necroSymbols 41483                                elseif ingump "3/" 6224365161484                                    @setvar! necroSymbols 31485                                elseif ingump "2/" 6224365161486                                    @setvar! necroSymbols 21487                                elseif ingump "1/" 6224365161488                                    @setvar! necroSymbols 11489                                elseif ingump "0/" 6224365161490                                    @setvar! necroSymbols 01491                                endif1492                            endif1493                        endif1494                    endif1495                endif1496                1497                1498                1499                if isLethalPoison = 01500                    1501                    if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy1502                        overhead "Eating shrooms" 661503                        dclick mushy1504                        settimer magicMushroomTimer 01505                    endif1506                1507                    if insysmsg "Target cannot be seen." 1508                        overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341509                        replay1510                    endif 1511 1512                    // poison lethal1513                    if "Lethal" in desc21514                        @setvar! isLethalPoison 11515                        break1516                    elseif castPoisonAnyway = 1 and "Ticks" in desc21517                        @setvar! isLethalPoison 11518                        break1519                    elseif castPoisonAnyway = 1 and "Poison" in desc21520                        @setvar! isLethalPoison 11521                        break1522                    elseif diffhits >= 30 1523                        // need a heal1524                        break1525                    elseif mana >= 91526                        while not targetexists1527                            cast 'poison'1528                            wait 501529                            if dead myKillTarget1530                                hotkey '> Interrupt'1531                                replay1532                            endif1533                        endwhile1534                        target myKillTarget1535                        wait 2001536                        if insysmsg "Target cannot be seen." 1537                             overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341538                             @setvar! isLethalPoison 11539                        endif 1540                    else1541                        wait 2001542                    endif1543                endif1544            endif1545        endif1546        1547        if castCorpseSkin = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer corpseSkinTimer >= cdCorpseSkin and skill "Necromancy" >= 65 and timer meditiationTimer >= cdMeditationMini and 2 < necroSymbols1548            yell "[CorpseSkin"1549            settimer preventSpamNecroAbilitiesTimer 01550            settimer corpseSkinTimer 01551            cooldown CorpseSkin cdCorpseSkin1552            wait 5001553            if gumpexists 6224365161554                if ingump "12/" 6224365161555                    @setvar! necroSymbols 121556                elseif ingump "13/" 6224365161557                    @setvar! necroSymbols 131558                elseif ingump "14/" 6224365161559                    @setvar! necroSymbols 141560                elseif ingump "15/" 6224365161561                    @setvar! necroSymbols 151562                elseif ingump "16/" 6224365161563                    @setvar! necroSymbols 161564                elseif ingump "17/" 6224365161565                    @setvar! necroSymbols 171566                elseif ingump "18/" 6224365161567                    @setvar! necroSymbols 181568                elseif ingump "19/" 6224365161569                    @setvar! necroSymbols 191570                elseif ingump "20/" 6224365161571                    @setvar! necroSymbols 201572                elseif ingump "21/" 6224365161573                    @setvar! necroSymbols 211574                elseif ingump "11/" 6224365161575                    @setvar! necroSymbols 111576                elseif ingump "10/" 6224365161577                    @setvar! necroSymbols 101578                elseif ingump "9/" 6224365161579                    @setvar! necroSymbols 91580                elseif ingump "8/" 6224365161581                    @setvar! necroSymbols 81582                elseif ingump "7/" 6224365161583                    @setvar! necroSymbols 71584                elseif ingump "6/" 6224365161585                    @setvar! necroSymbols 61586                elseif ingump "5/" 6224365161587                    @setvar! necroSymbols 51588                elseif ingump "4/" 6224365161589                    @setvar! necroSymbols 41590                elseif ingump "3/" 6224365161591                    @setvar! necroSymbols 31592                elseif ingump "2/" 6224365161593                    @setvar! necroSymbols 21594                elseif ingump "1/" 6224365161595                    @setvar! necroSymbols 11596                elseif ingump "0/" 6224365161597                    @setvar! necroSymbols 01598                endif1599            endif1600        endif1601            1602        if castBloodOath = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer bloodOathTimer >= cdBloodOath and 5 < necroSymbols1603            yell "[BloodOath"1604            settimer preventSpamNecroAbilitiesTimer 01605            settimer bloodOathTimer 01606            if gumpexists 6224365161607                if ingump "12/" 6224365161608                    @setvar! necroSymbols 121609                elseif ingump "13/" 6224365161610                    @setvar! necroSymbols 131611                elseif ingump "14/" 6224365161612                    @setvar! necroSymbols 141613                elseif ingump "15/" 6224365161614                    @setvar! necroSymbols 151615                elseif ingump "16/" 6224365161616                    @setvar! necroSymbols 161617                elseif ingump "17/" 6224365161618                    @setvar! necroSymbols 171619                elseif ingump "18/" 6224365161620                    @setvar! necroSymbols 181621                elseif ingump "19/" 6224365161622                    @setvar! necroSymbols 191623                elseif ingump "20/" 6224365161624                    @setvar! necroSymbols 201625                elseif ingump "21/" 6224365161626                    @setvar! necroSymbols 211627                elseif ingump "11/" 6224365161628                    @setvar! necroSymbols 111629                elseif ingump "10/" 6224365161630                    @setvar! necroSymbols 101631                elseif ingump "9/" 6224365161632                    @setvar! necroSymbols 91633                elseif ingump "8/" 6224365161634                    @setvar! necroSymbols 81635                elseif ingump "7/" 6224365161636                    @setvar! necroSymbols 71637                elseif ingump "6/" 6224365161638                    @setvar! necroSymbols 61639                elseif ingump "5/" 6224365161640                    @setvar! necroSymbols 51641                elseif ingump "4/" 6224365161642                    @setvar! necroSymbols 41643                elseif ingump "3/" 6224365161644                    @setvar! necroSymbols 31645                elseif ingump "2/" 6224365161646                    @setvar! necroSymbols 21647                elseif ingump "1/" 6224365161648                    @setvar! necroSymbols 11649                elseif ingump "0/" 6224365161650                    @setvar! necroSymbols 01651                endif1652            endif1653        endif1654        1655        1656        if castEvilOmen = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer evilOmenTimer >= cdEvilOmen and skill "Necromancy" >= 60 and timer meditiationTimer >= cdMeditationMini and 2 < necroSymbols1657            yell "[EvilOmen"1658            settimer evilOmenTimer 01659            settimer preventSpamNecroAbilitiesTimer 01660            cooldown EvilOmen cdEvilOmen1661            wait 5001662            if gumpexists 6224365161663                if ingump "12/" 6224365161664                    @setvar! necroSymbols 121665                elseif ingump "13/" 6224365161666                    @setvar! necroSymbols 131667                elseif ingump "14/" 6224365161668                    @setvar! necroSymbols 141669                elseif ingump "15/" 6224365161670                    @setvar! necroSymbols 151671                elseif ingump "16/" 6224365161672                    @setvar! necroSymbols 161673                elseif ingump "17/" 6224365161674                    @setvar! necroSymbols 171675                elseif ingump "18/" 6224365161676                    @setvar! necroSymbols 181677                elseif ingump "19/" 6224365161678                    @setvar! necroSymbols 191679                elseif ingump "20/" 6224365161680                    @setvar! necroSymbols 201681                elseif ingump "21/" 6224365161682                    @setvar! necroSymbols 211683                elseif ingump "11/" 6224365161684                    @setvar! necroSymbols 111685                elseif ingump "10/" 6224365161686                    @setvar! necroSymbols 101687                elseif ingump "9/" 6224365161688                    @setvar! necroSymbols 91689                elseif ingump "8/" 6224365161690                    @setvar! necroSymbols 81691                elseif ingump "7/" 6224365161692                    @setvar! necroSymbols 71693                elseif ingump "6/" 6224365161694                    @setvar! necroSymbols 61695                elseif ingump "5/" 6224365161696                    @setvar! necroSymbols 51697                elseif ingump "4/" 6224365161698                    @setvar! necroSymbols 41699                elseif ingump "3/" 6224365161700                    @setvar! necroSymbols 31701                elseif ingump "2/" 6224365161702                    @setvar! necroSymbols 21703                elseif ingump "1/" 6224365161704                    @setvar! necroSymbols 11705                elseif ingump "0/" 6224365161706                    @setvar! necroSymbols 01707                endif1708            endif1709        endif1710        1711        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 jorpse1712            yell "[VampiricEmbrace"1713            wft 5001714            target jorpse1715            settimer preventSpamNecroAbilitiesTimer 01716            settimer vampiricEmbraceTimer 01717            cooldown VampiricEmbrace cdVampiricEmbrace1718            wait 5001719            if gumpexists 6224365161720                if ingump "12/" 6224365161721                    @setvar! necroSymbols 121722                elseif ingump "13/" 6224365161723                    @setvar! necroSymbols 131724                elseif ingump "14/" 6224365161725                    @setvar! necroSymbols 141726                elseif ingump "15/" 6224365161727                    @setvar! necroSymbols 151728                elseif ingump "16/" 6224365161729                    @setvar! necroSymbols 161730                elseif ingump "17/" 6224365161731                    @setvar! necroSymbols 171732                elseif ingump "18/" 6224365161733                    @setvar! necroSymbols 181734                elseif ingump "19/" 6224365161735                    @setvar! necroSymbols 191736                elseif ingump "20/" 6224365161737                    @setvar! necroSymbols 201738                elseif ingump "21/" 6224365161739                    @setvar! necroSymbols 211740                elseif ingump "11/" 6224365161741                    @setvar! necroSymbols 111742                elseif ingump "10/" 6224365161743                    @setvar! necroSymbols 101744                elseif ingump "9/" 6224365161745                    @setvar! necroSymbols 91746                elseif ingump "8/" 6224365161747                    @setvar! necroSymbols 81748                elseif ingump "7/" 6224365161749                    @setvar! necroSymbols 71750                elseif ingump "6/" 6224365161751                    @setvar! necroSymbols 61752                elseif ingump "5/" 6224365161753                    @setvar! necroSymbols 51754                elseif ingump "4/" 6224365161755                    @setvar! necroSymbols 41756                elseif ingump "3/" 6224365161757                    @setvar! necroSymbols 31758                elseif ingump "2/" 6224365161759                    @setvar! necroSymbols 21760                elseif ingump "1/" 6224365161761                    @setvar! necroSymbols 11762                elseif ingump "0/" 6224365161763                    @setvar! necroSymbols 01764                endif1765            endif1766        endif1767        1768        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 jorpse1769            yell "[PainSpike"1770            wft 5001771            target myKillTarget1772            wait 2001773            settimer preventSpamNecroAbilitiesTimer 01774            if insysmsg "You do not see any corpses"1775                // do nothing1776            else1777                settimer painSpikeTimer 01778                cooldown PainSpike cdPainSpike            1779            endif1780            if gumpexists 6224365161781                if ingump "12/" 6224365161782                    @setvar! necroSymbols 121783                elseif ingump "13/" 6224365161784                    @setvar! necroSymbols 131785                elseif ingump "14/" 6224365161786                    @setvar! necroSymbols 141787                elseif ingump "15/" 6224365161788                    @setvar! necroSymbols 151789                elseif ingump "16/" 6224365161790                    @setvar! necroSymbols 161791                elseif ingump "17/" 6224365161792                    @setvar! necroSymbols 171793                elseif ingump "18/" 6224365161794                    @setvar! necroSymbols 181795                elseif ingump "19/" 6224365161796                    @setvar! necroSymbols 191797                elseif ingump "20/" 6224365161798                    @setvar! necroSymbols 201799                elseif ingump "21/" 6224365161800                    @setvar! necroSymbols 211801                elseif ingump "11/" 6224365161802                    @setvar! necroSymbols 111803                elseif ingump "10/" 6224365161804                    @setvar! necroSymbols 101805                elseif ingump "9/" 6224365161806                    @setvar! necroSymbols 91807                elseif ingump "8/" 6224365161808                    @setvar! necroSymbols 81809                elseif ingump "7/" 6224365161810                    @setvar! necroSymbols 71811                elseif ingump "6/" 6224365161812                    @setvar! necroSymbols 61813                elseif ingump "5/" 6224365161814                    @setvar! necroSymbols 51815                elseif ingump "4/" 6224365161816                    @setvar! necroSymbols 41817                elseif ingump "3/" 6224365161818                    @setvar! necroSymbols 31819                elseif ingump "2/" 6224365161820                    @setvar! necroSymbols 21821                elseif ingump "1/" 6224365161822                    @setvar! necroSymbols 11823                elseif ingump "0/" 6224365161824                    @setvar! necroSymbols 01825                endif1826            endif1827        endif1828        1829        if diffhits >= 301830            if findtype "Yellow Potion" backpack as pot 1831                getlabel pot desc1832                if "next usable" in desc1833                    // do nothing1834                else1835                    dclick pot1836                    wait 5001837                endif1838            endif1839 1840            if diffhits >= 30 and mana >= 121841                while not targetexists1842                    if diffhits >= 601843                        cast 'Heal'1844                    else1845                        cast 'Greater Heal'                1846                    endif1847                    wait 501848                    if hp = maxhp1849                        hotkey '> Interrupt'1850                        break1851                    endif1852                endwhile1853                if targetexists1854                    target self1855                    wait 501856                endif1857            endif1858        endif1859        1860        if poisoned1861            if findtype "Orange Potion" backpack as pot 1862                dclick pot1863                wait 2001864            else1865                while not targetexists1866                    if not poisoned1867                        hotkey '> Interrupt'1868                        break1869                    else1870                        cast 'Cure'1871                        wait 501872                    endif 1873                endwhile1874                if targetexists1875                    target self1876                    wait 5001877                endif1878            endif1879        endif1880 1881        if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy1882            overhead "Eating shrooms" 661883            dclick mushy1884            settimer magicMushroomTimer 01885        endif1886        1887        if index = 01888                    1889            if castLightning = 1 and diffhits < 30 and mana >= 12 and timer lightningTimer >= cdLightning and timer meditiationTimer >= cdMeditationMini1890                while not targetexists1891                    if followers < 4 or dead myKillTarget or diffhits >= 301892                        hotkey '> Interrupt'1893                        break1894                    else1895                        cast 'Lightning'1896                        wait 501897                    endif 1898                endwhile1899                if targetexists1900                    target myKillTarget1901                    settimer lightningTimer 01902                    cooldown Lightning cdLightning1903                    wait 5001904                endif1905            endif1906        1907        elseif index = 11908        1909            if castMagicArrow = 1 and diffhits < 30 and mana >= 5 and timer magicArrowTimer >= cdMagicArrow and timer meditiationTimer >= cdMeditationMini1910                while not targetexists1911                    if followers < 4 or dead myKillTarget or diffhits >= 301912                        hotkey '> Interrupt'1913                        break1914                    else1915                        cast 'magic arrow'1916                        wait 501917                    endif 1918                endwhile1919                if targetexists1920                    target myKillTarget1921                    settimer magicArrowTimer 01922                    cooldown MagicArrow cdMagicArrow1923                    wait 5001924                endif1925            endif1926            1927        elseif index = 21928                1929            if castHarm = 1 and diffhits < 30 and mana >= 9 and timer harmTimer >= cdHarm and timer meditiationTimer >= cdMeditationMini1930                while not targetexists1931                    if followers < 4 or dead myKillTarget or diffhits >= 301932                        hotkey '> Interrupt'1933                        break1934                    else1935                        cast 'harm'1936                        wait 501937                    endif 1938                endwhile1939                if targetexists1940                    target myKillTarget1941                    settimer harmTimer 01942                    cooldown Harm cdHarm1943                    wait 5001944                endif1945            endif1946            1947        elseif index = 31948                1949            if castFireball = 1 and diffhits < 30 and mana >= 12 and timer fireballTimer >= cdFireball and timer meditiationTimer >= cdMeditationMini1950                while not targetexists1951                    if followers < 4 or dead myKillTarget or diffhits >= 301952                        hotkey '> Interrupt'1953                        break1954                    else1955                        cast 'fireball'1956                        wait 501957                    endif 1958                endwhile1959                if targetexists1960                    target myKillTarget1961                    settimer fireballTimer 01962                    cooldown Fireball cdFireball1963                    wait 5001964                endif1965            endif1966            1967        elseif index = 41968                1969            if castFireball = 1 and diffhits < 30 and mana >= 12 and timer fireballTimer >= cdFireball and timer meditiationTimer >= cdMeditationMini1970                while not targetexists1971                    if followers < 4 or dead myKillTarget or diffhits >= 301972                        hotkey '> Interrupt'1973                        break1974                    else1975                        cast 'fireball'1976                        wait 501977                    endif 1978                endwhile1979                if targetexists1980                    target myKillTarget1981                    settimer fireballTimer 01982                    cooldown Fireball cdFireball1983                    wait 5001984                endif1985            endif1986            1987        endif1988    1989    endfor1990   1991    if find myKillTarget -1 -1 12 as killy1992       // do nothing1993    else1994        overhead "Out of range" 341995        break1996    endif1997    1998    1999    if diffhits >= 302000            2001        if findtype "Yellow Potion" backpack as pot 2002            getlabel pot desc2003            if "next usable" in desc2004                // do nothing2005            else2006                dclick pot2007                wait 5002008            endif2009        endif2010 2011        if diffhits >= 30 and mana >= 122012            while not targetexists2013                if diffhits >= 602014                    cast 'Heal'2015                else2016                    cast 'Greater Heal'                2017                endif2018                wait 502019                if hp = maxhp2020                    hotkey '> Interrupt'2021                    break2022                endif2023            endwhile2024            if targetexists2025                target self2026                wait 502027            endif2028        endif2029    elseif mana < 55 and findbuff "actively meditating" 2030        // wait for mana2031    elseif timer meditiationTimer < cdMeditationMini and findbuff "actively meditating" 2032        // wait for mana2033    elseif castMindBlast = 1 and mana >= 322034        while not targetexists and mana > 302035            if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2036                overhead "Eating shrooms" 662037                dclick mushy2038                settimer magicMushroomTimer 02039            endif2040            if followers < 4 or dead myKillTarget or diffhits >= 302041                hotkey '> Interrupt'2042                break2043            else2044                cast 'Mind Blast'2045                wait 502046            endif 2047        endwhile2048        if targetexists2049            target myKillTarget2050            wait 5002051        endif2052        if castFlamestrike = 1 and mana > 422053            while not targetexists and mana > 402054            2055                if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2056                    overhead "Eating shrooms" 662057                    dclick mushy2058                    settimer magicMushroomTimer 02059                endif2060        2061                if followers < 4 or dead myKillTarget or diffhits >= 302062                    hotkey '> Interrupt'2063                    break2064                else2065                    cast 'Flamestrike'2066                    wait 502067                endif 2068            endwhile2069            if targetexists2070                target myKillTarget2071                wait 5002072            endif2073        endif2074    elseif castFlamestrike = 1 and mana > 422075        while not targetexists and mana > 402076        2077            if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2078                overhead "Eating shrooms" 662079                dclick mushy2080                settimer magicMushroomTimer 02081            endif2082    2083            if followers < 4 or dead myKillTarget or diffhits >= 302084                hotkey '> Interrupt'2085                break2086            else2087                cast 'Flamestrike'2088                wait 502089            endif 2090        endwhile2091        if targetexists2092            target myKillTarget2093            wait 5002094        endif2095    elseif not findbuff "actively meditating" and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2096        overhead "Eating shrooms" 662097        dclick mushy2098        settimer magicMushroomTimer 02099    elseif not findbuff "actively meditating" and timer meditiationTimer >= cdMeditation2100        say "all guard me"2101        useskill 'meditation'2102        settimer meditiationTimer 02103        wait 5002104    endif2105    wait 502106endwhile2107wait 5002108if targetexists 2109    hotkey 'Cancel Current Target'2110endif2111if not findbuff "actively meditating" 2112    say "all guard me"2113endif2114while mana < minimumManaToCast2115    if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 02116        hotkey 'Target Closest Non-Friendly Monster'2117        wait 2002118        if insysmsg "No one matching that was found"2119            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam2120                overhead "no next target" 342121                settimer preventOverheadSpamTimer 02122            endif2123        elseif not find lasttarget ground -1 -1 82124            overhead "� NEXT TARGET HERE �" 88 lasttarget2125            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam2126                overhead "Move closer, more then 8 tiles away" 342127                settimer preventOverheadSpamTimer 02128            endif2129        else2130            overhead "� NEXT TARGET HERE �" 88 lasttarget2131            attack lasttarget2132        endif    2133    endif2134    if diffhits >= 302135        if findtype "Yellow Potion" backpack as pot 2136            getlabel pot desc2137            if "next usable" in desc2138                // do nothing2139            else2140                dclick pot2141                wait 2002142            endif2143        endif2144        if diffhits >= 30 and mana >= 122145            while not targetexists2146                if diffhits >= 602147                    cast 'Heal'2148                else2149                    cast 'Greater Heal'                2150                endif2151                wait 502152                if hp = maxhp2153                    hotkey '> Interrupt'2154                    break2155                endif2156            endwhile2157            if targetexists2158                target self2159                wait 502160            endif2161        endif2162    endif2163    if not findbuff "actively meditating" 2164        useskill 'meditation'2165    endif2166    wait 5002167endwhile2168if canYouMakeAMushroom = 1 and counttype "mushroom" backpack < butOnlyIHaveLessThenThisCount2169    while counttype "mushroom" backpack < makeThisManyMushroomsCount2170        cast "Create Food"2171        wait 2002172        if diffhits >= 20 or counttype "mushroom" backpack = 02173            break2174        endif2175    endwhile2176endif2177if castVampiricEmbrace = 1 and timer vampiricEmbraceTimer >= cdVampiricEmbrace and skill "Necromancy" >= 70 and findtype 8198 ground -1 -1 4 as jorpse2178    say "[VampiricEmbrace"2179    wft 5002180    target jorpse2181    settimer vampiricEmbraceTimer 02182    cooldown VampiricEmbrace cdVampiricEmbrace2183endif2184if castSummonEarthElementalAsMummy = 02185    useskill "spiritspeak"2186    settimer meditiationTimer 80002187endif2188if timer killTargetTimer >= cdKillTarget2189    overhead "We cleared curse and mana drain targets" 342190    removelist myCursedTargets      2191    removelist myManaDrainTargets2192endif2193   2194if autoBotEnabled = 12195    replay2196endif2197 2198// thanks for using a Jaseowns script!2199// https://www.youtube.com/jaseowns   2200// We did it2201// Senor Borracho v2