Skip to content
Outlands Hub

Razor script

SenorBorracho

by .dave5678 · 2240 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.

Jaseowns scrip edited by Hellzy, includes pet check protection, a few escapes due to poisoning and healing- additional usage of flamestrike. Untested with mindblast. One hotkey mage cycle, nox, poison by Jaseowns UO Outlands -…

TamingHealingMagicHealingMeditationDiscordancePoisoning
SenorBorracho.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/223e5ec5-2df8-4a7a-96ad-65428298db90 for latest2# Automation by Jaseowns3## Script: SenorBorracho4## Created by: .dave5678#05#############################################6 7# Jaseowns scrip edited by Hellzy, includes pet check protection, a few escapes due to poisoning and healing- additional usage of flamestrike. Untested with mindblast.8# One hotkey mage cycle, nox, poison by Jaseowns 9# UO Outlands - https://outlands.uorazorscripts.com/mage-bot10# 11# Cooldowns are live, so this script now attempts to display those12# Make cooldowns match the names of skills 13# (check out for details: https://outlands.uorazorscripts.com/mage-bot)14#15# VERISON: v2.2.216#17# 18// 1/15/2024 - SenorBorracho19// - fixed discord buff and kill target discordance   20// 12/26/202221// - updated poison strike and how it deals with poison22// - added earth elemental as pet only instead of mummy23// 12/21/202224// - fixed bug with mindblast and two lich summons25// 12/17/202226// - V2 of AutoBot created.  Idea is to leverage things from mining script27##################28## Always room for improvment, thanks for watching!29############30 31# Set this to one, if you want to cast poison once no matter what32# If you have 100 poisoning and want Lethal, set this to 033@setvar! castPoisonAnyway 034 35# This will auto replay this script if you want it too36@setvar! autoBotEnabled 137 38# Update this variable to 1 for ALL KILL39# Update this variable to 0 for target nearest40@setvar! setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster 041 42###############43###  Choose your summons44######45@setvar! castSummonFireElementalCount 146@setvar! castSummonCreatureCount 147@setvar! castSummonEarthElementalCount 148@setvar! castSummonEarthElementalAsMummy 149 50 51 52###############53###  Choose your spells54######55@setvar! castCurse 056@setvar! castManadrain 157@setvar! castLightning 058@setvar! castFireball 059@setvar! castHarm 160@setvar! castMagicArrow 161# When other spells are on cooldown, do you want to cast MindBlast or Flamestrike or both62@setvar! castMindBlast 063@setvar! castFlamestrike 164 65### Buffs66@setvar! castBless 167@setvar! castMagicShield 168@setvar! castReactiveArmor 169# Drink Magic resist potion (only if magic shield buff not found)70@setvar! drinkMagicResistPot 171 72###############73###  Choose your necro spells (ignored if less then required necro skill)74######75@setvar! castEvilOmen 176@setvar! castCorpseSkin 177@setvar! castVampiricEmbrace 078@setvar! castMindRot 179@setvar! castPoisonStrike 180@setvar! castBloodOath 181@setvar! castPainSpike 182@setvar! requireWitherBeforeSummons 083 84###############85### Edit these cooldowns to match your wizard grimoire86######87@setvar! canYouMakeAMushroom 188@setvar! cdLightning 6000089@setvar! cdMagicArrow 6000090@setvar! cdHarm 6000091@setvar! cdFireball 6000092 93###############94### Necro Cooldowns95######96@setvar! cdEvilOmen 3050097@setvar! cdVampiricEmbrace 3050098@setvar! cdCorpseSkin 3050099@setvar! cdMindRot 30500100@setvar! cdWither 30500101@setvar! cdVengefulSpirit 30500102@setvar! cdBloodOath 30500103@setvar! cdPainSpike 30500104@setvar! cdPoisonStrike 30500105 106 107#### Buff Cooldowns108@setvar! cdMushroom 61000109@setvar! cdMagicShield 61000110@setvar! cdReactiveArmor 61000111@setvar! cdMeditation 10000112@setvar! cdMeditationMini 3000113@setvar! cdKillTarget 60000114 115#### Random cooldowns116@setvar! cdPreventOverheadSpam 2000117 118#### Mushroom count (I like a lot of shroomies)119@setvar! makeThisManyMushroomsCount 15120@setvar! butOnlyIHaveLessThenThisCount 5121 122@setvar! patrolPetEvenIfLastTargetIsBeyondEightTiles 1123 124if counttype "gold coin" backpack as total125    if 10000 < total126        overhead "Warning: {{total}} gold!" 34127    endif128endif129 130if findtype "dungeon torch" backpack as item131    overhead "Holy crap!" 88    132    say "I got one!" 88133    overhead "I got one!" 88134elseif findtype 30580 backpack as item135    overhead "Holy crap!" 88    136    say "I got one!" 88137    overhead "I got one!" 88138endif139    140 141#### Pet Names, unique to you142if not listexists petNameList143    createlist petNameList144endif145if list petNameList = 0146    pushlist petNameList "dude"147    pushlist petNameList "bro"148endif149 150 151##################################################################152# 153#   Hopefully you do not have to edit after this :)154#155##################################################################156 157if not gumpexists 622436516 and skill "Necromancy" >= 50158    say '[NecromancyHotbar'159    wait 500160endif161 162// Make sure we have a spell book attached163if findlayer self righthand as item164    // do nothing165elseif findtype "3834" backpack as item166    dclick item167else 168    overhead "No book bro!" 34169endif170#if dead myKillTarget and targetexists and diffhits < 30 and not poisoned171#    hotkey 'Cancel Current Target'172#    say 'all guard me'173#endif174 175// Setting current necro symbols - checks again it the attack loop176@setvar! necroSymbols 12177if gumpexists 622436516 and skill "Necromancy" >= 50178    if ingump "12/" 622436516179        @setvar! necroSymbols 12180    elseif ingump "13/" 622436516181        @setvar! necroSymbols 13182    elseif ingump "14/" 622436516183        @setvar! necroSymbols 14184    elseif ingump "15/" 622436516185        @setvar! necroSymbols 15186    elseif ingump "16/" 622436516187        @setvar! necroSymbols 16188    elseif ingump "17/" 622436516189        @setvar! necroSymbols 17190    elseif ingump "18/" 622436516191        @setvar! necroSymbols 18192    elseif ingump "19/" 622436516193        @setvar! necroSymbols 19194    elseif ingump "20/" 622436516195        @setvar! necroSymbols 20196    elseif ingump "21/" 622436516197        @setvar! necroSymbols 21198    elseif ingump "11/" 622436516199        @setvar! necroSymbols 11200    elseif ingump "10/" 622436516201        @setvar! necroSymbols 10202    elseif ingump "9/" 622436516203        @setvar! necroSymbols 9204    elseif ingump "8/" 622436516205        @setvar! necroSymbols 8206    elseif ingump "7/" 622436516207        @setvar! necroSymbols 7208    elseif ingump "6/" 622436516209        @setvar! necroSymbols 6210    elseif ingump "5/" 622436516211        @setvar! necroSymbols 5212    elseif ingump "4/" 622436516213        @setvar! necroSymbols 4214    elseif ingump "3/" 622436516215        @setvar! necroSymbols 3216    elseif ingump "2/" 622436516217        @setvar! necroSymbols 2218    elseif ingump "1/" 622436516219        @setvar! necroSymbols 1220    elseif ingump "0/" 622436516221        @setvar! necroSymbols 0222    endif223endif224 225if not timerexists reactiveArmorTimer226    createtimer reactiveArmorTimer227    settimer reactiveArmorTimer cdMagicShield228endif229 230if not timerexists magicShieldTimer231    createtimer magicShieldTimer232    settimer magicShieldTimer cdMagicShield233endif234 235if not timerexists magicMushroomTimer236    createtimer magicMushroomTimer237    settimer magicMushroomTimer cdMushroom238endif239 240if not timerexists magicArrowTimer241    createtimer magicArrowTimer242    settimer magicArrowTimer cdMagicArrow243endif244 245if not timerexists lightningTimer246    createtimer lightningTimer247    settimer lightningTimer cdLightning248endif249 250if not timerexists harmTimer251    createtimer harmTimer252    settimer harmTimer cdHarm253endif254 255if not timerexists fireballTimer256    createtimer fireballTimer257    settimer fireballTimer cdFireball258endif259 260if not timerexists evilOmenTimer261    createtimer evilOmenTimer262    settimer evilOmenTimer cdEvilOmen263endif264 265if not timerexists vampiricEmbraceTimer266    createtimer vampiricEmbraceTimer267    settimer vampiricEmbraceTimer cdVampiricEmbrace268endif269 270if not timerexists corpseSkinTimer271    createtimer corpseSkinTimer272    settimer corpseSkinTimer cdCorpseSkin273endif274 275if not timerexists mindRotTimer276    createtimer mindRotTimer277    settimer mindRotTimer cdMindRot278endif279 280if not timerexists meditiationTimer281    createtimer meditiationTimer282    settimer meditiationTimer cdMeditation283endif284 285if not timerexists killTargetTimer286    createtimer killTargetTimer287    settimer killTargetTimer cdKillTarget288endif289 290if not timerexists witherTimer291    createtimer witherTimer292    settimer witherTimer cdWither293endif294 295if not timerexists vengefulSpiritTimer296    createtimer vengefulSpiritTimer297    settimer vengefulSpiritTimer cdVengefulSpirit298endif299 300if not timerexists bloodOathTimer301    createtimer bloodOathTimer302    settimer bloodOathTimer cdBloodOath303endif304 305if not timerexists painSpikeTimer306    createtimer painSpikeTimer307    settimer painSpikeTimer cdPainSpike308endif309 310if not timerexists poisonStrikeTimer311    createtimer poisonStrikeTimer312    settimer poisonStrikeTimer cdPoisonStrike313endif314 315if not timerexists preventOverheadSpamTimer316    createtimer preventOverheadSpamTimer317    settimer preventOverheadSpamTimer cdPreventOverheadSpam318endif319 320@setvar! cdPreventSpamNecroAbilities 750321if not timerexists preventSpamNecroAbilitiesTimer322    createtimer preventSpamNecroAbilitiesTimer323    settimer preventSpamNecroAbilitiesTimer cdPreventSpamNecroAbilities324endif325 326if not varexist myEarthPet327    @setvar! myEarthPet 0328endif329if diffhits >= 30330            if targetexists 331                hotkey 'Cancel Current Target'332            endif333            while not targetexists 'beneficial'334                if diffhits >= 60335                    cast 'Heal'336                else337                    cast 'Greater Heal'                338                endif339                wait 50340                if hp = maxhp341                    hotkey '> Interrupt'342                    break343                endif344            endwhile345            if targetexists 'beneficial'346                hotkey 'Target Self'347            endif348        endif349        350        if poisoned351            #overhead "Were poisoned"352            if findtype "Orange Potion" backpack353                while poisoned and findtype "Orange Potion" backpack kpot 354                dclick pot355                wait 100356                endwhile357            else358                359                if not poisoned360                      hotkey '> Interrupt'361                      replay362                else363                    overhead "Casting Cure"364                   while poisoned and diffhits <= 30 and not targetexists 365                        cast 'Cure'366                        wait 50367                    endwhile368                endif 369                370                if targetexists371                    target self372                    wait 500373                endif374                375            endif376        endif377// make sure we have enough symbols to summon (6 for wither + vengful spirit)378if skill "Necromancy" >= 90 and requireWitherBeforeSummons = 1379    while followers < 4 and 6 > necroSymbols380        // we already have vengeful spirit active, skip the check381        if timer vengefulSpiritTimer < cdVengefulSpirit382           break383        endif384        385        386            387        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam388            overhead "waiting for symbols" 88389            settimer preventOverheadSpamTimer 0390        endif391        if gumpexists 622436516 and skill "Necromancy" >= 50392            if ingump "12/" 622436516393                @setvar! necroSymbols 12394            elseif ingump "13/" 622436516395                @setvar! necroSymbols 13396            elseif ingump "14/" 622436516397                @setvar! necroSymbols 14398            elseif ingump "15/" 622436516399                @setvar! necroSymbols 15400            elseif ingump "16/" 622436516401                @setvar! necroSymbols 16402            elseif ingump "17/" 622436516403                @setvar! necroSymbols 17404            elseif ingump "18/" 622436516405                @setvar! necroSymbols 18406            elseif ingump "19/" 622436516407                @setvar! necroSymbols 19408            elseif ingump "20/" 622436516409                @setvar! necroSymbols 20410            elseif ingump "21/" 622436516411                @setvar! necroSymbols 21412            elseif ingump "11/" 622436516413                @setvar! necroSymbols 11414            elseif ingump "10/" 622436516415                @setvar! necroSymbols 10416            elseif ingump "9/" 622436516417                @setvar! necroSymbols 9418            elseif ingump "8/" 622436516419                @setvar! necroSymbols 8420            elseif ingump "7/" 622436516421                @setvar! necroSymbols 7422            elseif ingump "6/" 622436516423                @setvar! necroSymbols 6424            elseif ingump "5/" 622436516425                @setvar! necroSymbols 5426            elseif ingump "4/" 622436516427                @setvar! necroSymbols 4428            elseif ingump "3/" 622436516429                @setvar! necroSymbols 3430            elseif ingump "2/" 622436516431                @setvar! necroSymbols 2432            elseif ingump "1/" 622436516433                @setvar! necroSymbols 1434            elseif ingump "0/" 622436516435                @setvar! necroSymbols 0436            endif437        endif438    endwhile439endif440 441 442if not varexist lichOne443    @setvar! lichOne 0444endif445 446if not varexist lichTwo447    @setvar! lichTwo 0448endif449 450if not varexist earthOne451    @setvar! earthOne 0452endif453 454if not varexist earthTwo455    @setvar! earthTwo 0456endif457 458if lichOne = creatureOne or lichTwo = creatureOne or earthOne = creatureOne or earthTwo = creatureOne459    overhead "Duplicated"460    unsetvar creatureOne461endif462 463if diffhits >= 30464    if targetexists 465        hotkey 'Cancel Current Target'466    endif467    while not targetexists 'beneficial'468        if diffhits >= 60469            cast 'Heal'470        else471            cast 'Greater Heal'                472        endif473        wait 50474        if hp = maxhp475            hotkey '> Interrupt'476            break477        endif478    endwhile479    if targetexists 'beneficial'480        target self481    endif482    replay483endif484 485 486if castSummonEarthElementalCount > 0487    if diffhits < 30488        if followers = 0489            @setvar! followCount 0490        elseif followers = 1491            @setvar! followCount 1492        elseif followers = 2493            @setvar! followCount 2494        elseif followers = 3495            @setvar! followCount 3496        elseif followers = 4497            @setvar! followCount 4498        elseif followers = 5499            @setvar! followCount 5500        endif501        if dead earthOne or not find earthOne ground -1 -1 12502            if followers < 4503                while mana < 50504                    if diffhits >= 30505                        replay506                    endif507                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam508                        overhead "waiting for mana" 88509                        settimer preventOverheadSpamTimer 0510                    endif511                    if not findbuff "Actively Meditating"512                        useskill "meditation"513                    endif514                    wait 200515                endwhile516                517                if castSummonEarthElementalAsMummy = 1518                    if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50519                        yell "[VengefulSpirit"520                        settimer vengefulSpiritTimer 0521                        wait 500522                    endif523                elseif timer vengefulSpiritTimer <= cdVengefulSpirit and skill "Necromancy" >= 50524                    overhead  "Waiting for spirit to go away" 525                    replay526                endif527                while followers = followCount528                    cast "Earth elemental"529                    wait 500530                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95531                        yell "[Wither"532                        settimer witherTimer 0533                    endif534                    if diffhits >= 30535                        hotkey '> Interrupt'536                        break537                    endif538                endwhile539                // 158 - an ancient mummy540                // 14 - an earth elemental541                if findtype 158|14 ground -1 -1 6 as myPet542                    if noto myPet = "friend" and list petNameList > 0543                        overhead "Renaming..."544                        foreach petName in petNameList545                            rename myPet petName546                            break547                        endfor548                        poplist petNameList "front"549                    endif550                    @setvar! earthOne myPet551                    say "all guard me"552                    replay553                endif554            endif555        endif556    endif557    558    if diffhits < 30 and castSummonEarthElementalCount > 1559        if followers = 0560            @setvar! followCount 0561        elseif followers = 1562            @setvar! followCount 1563        elseif followers = 2564            @setvar! followCount 2565        elseif followers = 3566            @setvar! followCount 3567        elseif followers = 4568            @setvar! followCount 4569        elseif followers = 5570            @setvar! followCount 5571        endif572        if dead earthTwo or not find earthTwo ground -1 -1 12573            if followers < 4574                while mana < 50575                    if diffhits >= 30576                        replay577                    endif578                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam579                        overhead "waiting for mana" 88580                        settimer preventOverheadSpamTimer 0581                    endif582                    if not findbuff "Actively Meditating"583                        useskill "meditation"584                    endif585                    wait 200586                endwhile587                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50588                    yell "[VengefulSpirit"589                    settimer vengefulSpiritTimer 0590                    wait 500591                endif592                while followers = followCount593                    cast "Earth elemental"594                    wait 500595                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95596                        yell "[Wither"597                        settimer witherTimer 0598                    endif599                    if diffhits >= 30600                        hotkey '> Interrupt'601                        break602                    endif603                endwhile604                // 158 - an ancient mummy605                // 14 - an earth elemental606                if findtype 158|14 ground -1 -1 6 as myPet607                    if noto myPet = "friend" and list petNameList > 0608                        overhead "Renaming..."609                        foreach petName in petNameList610                            rename myPet petName611                            break612                        endfor613                        poplist petNameList "front"614                    endif615                    @setvar! earthTwo myPet616                    say "all guard me"617                    #replay618                endif619            endif620        endif621    endif622endif623 624 625if castSummonFireElementalCount > 0626    if diffhits < 30627    628        if lichOne = 0 629            // do nothing630        elseif lichOne = lichTwo631            overhead "Duplicated"632            unsetvar lichOne633        endif634        635        if followers = 0636            @setvar! followCount 0637        elseif followers = 1638            @setvar! followCount 1639        elseif followers = 2640            @setvar! followCount 2641        elseif followers = 3642            @setvar! followCount 3643        elseif followers = 4644            @setvar! followCount 4645        elseif followers = 5646            @setvar! followCount 5647        endif648        if dead lichOne or not find lichOne ground -1 -1 12 or dead lichTwo649            if followers < 4650                while mana < 50651                    if diffhits >= 30652                        replay653                    endif654                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam655                        overhead "waiting for mana" 88656                        settimer preventOverheadSpamTimer 0657                    endif658                    if not findbuff "Actively Meditating"659                        useskill "meditation"660                    endif661                    wait 200662                endwhile663                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50664                    yell "[VengefulSpirit"665                    settimer vengefulSpiritTimer 0666                    wait 500667                endif668                @ignore lichTwo669                while followers = followCount670                    if targetexists 671                        hotkey 'Cancel Current Target'672                endif673                    cast "fire elemental"674                    wait 500675                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95676                        yell "[Wither"677                        settimer witherTimer 0678                    endif679                    if diffhits >= 30680                        hotkey '> Interrupt'681                        break682                    endif683                endwhile684                // 24 - a lich685                // 15 - a fire elemental686                if findtype 24|15 ground -1 -1 6 as myPet687                    if noto myPet = "friend" and list petNameList > 0688                        overhead "Renaming..."689                        foreach petName in petNameList690                            rename myPet petName691                            break692                        endfor693                        poplist petNameList "front"694                    endif695                    @setvar! lichOne myPet696                    overhead "Lich One Set" 88 lichOne697                    say "all guard me"698                    @clearignore 699                    #replay700                endif701            endif702        endif703    endif704    705    if diffhits < 30 and castSummonFireElementalCount > 1706        if followers = 0707            @setvar! followCount 0708        elseif followers = 1709            @setvar! followCount 1710        elseif followers = 2711            @setvar! followCount 2712        elseif followers = 3713            @setvar! followCount 3714        elseif followers = 4715            @setvar! followCount 4716        elseif followers = 5717            @setvar! followCount 5718        endif719        if dead lichTwo or not find lichTwo ground -1 -1 12 or dead lichOne720            if followers < 4721                while mana < 50722                    if diffhits >= 30723                        replay724                    endif725                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam726                        overhead "waiting for mana" 88727                        settimer preventOverheadSpamTimer 0728                    endif729                    if not findbuff "Actively Meditating"730                        useskill "meditation"731                    endif732                    wait 200733                endwhile734                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50735                    yell "[VengefulSpirit"736                    settimer vengefulSpiritTimer 0737                    wait 500738                endif739                @ignore lichOne740                while followers = followCount741                     if targetexists 742                        hotkey 'Cancel Current Target'743                     endif744                    cast "fire elemental"745                    wait 500746                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95747                        yell "[Wither"748                        settimer witherTimer 0749                    endif750                    if diffhits >= 30751                        hotkey '> Interrupt'752                        break753                    endif754                endwhile755                // 24 - a lich756                // 15 - a fire elemental757                if findtype 24|15 ground -1 -1 6 as myPet758                    if noto myPet = "friend" and list petNameList > 0759                        overhead "Renaming..."760                        foreach petName in petNameList761                            rename myPet petName762                            break763                        endfor764                        poplist petNameList "front"765                    endif766                    @clearignore767                    @setvar! lichTwo myPet768                    overhead "Lich Two Set" 88 lichTwo769                    say "all guard me"770                    #replay771                endif772                773            endif774        endif775    endif776endif777 778if castSummonCreatureCount = 0779    // do nothing780elseif castSummonCreatureCount = 1 and not dead creatureOne781    // do nothing782elseif castSummonCreatureCount = 1783    if followers = 4 and diffhits < 30784        if followers = 0785            @setvar! followCount 0786        elseif followers = 1787            @setvar! followCount 1788        elseif followers = 2789            @setvar! followCount 2790        elseif followers = 3791            @setvar! followCount 3792        elseif followers = 4793            @setvar! followCount 4794        elseif followers = 5795            @setvar! followCount 5796        endif797        while mana < 14798            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam799                overhead "waiting for mana" 88800                settimer preventOverheadSpamTimer 0801            endif802            if diffhits >= 30803                replay804            endif805            if not findbuff "Actively Meditating"806                useskill "meditation"807            endif808            wait 200809        endwhile810        if timer vengefulSpiritTimer >= cdVengefulSpirit811            yell "[VengefulSpirit"812            settimer vengefulSpiritTimer 0813            wait 200814        endif815        while followers = followCount816                 if targetexists 817                        hotkey 'Cancel Current Target'818                endif819            cast 'Summ. Creature'820            wait 500821            if diffhits >= 30822                hotkey '> Interrupt'823                replay824            endif825        endwhile        826        say "all guard me"827    endif828else829    for 6830        if index = 0831            // do nothing832        else833            if diffhits < 30834                @setvar! needToSummon 0835                if index = 1836                    if dead creatureOne or not find creatureOne ground -1 -1 12837                        @setvar! needToSummon 1838                    endif839                elseif index = 2840                    if dead creatureTwo or not find creatureTwo ground -1 -1 12841                        @setvar! needToSummon 1842                    endif843                elseif index = 3844                    if dead creatureThree or not find creatureThree ground -1 -1 12845                        @setvar! needToSummon 1846                    endif847                elseif index = 4848                    if dead creatureFour or not find creatureFour ground -1 -1 12849                        @setvar! needToSummon 1850                    endif851                elseif index = 5852                    if dead creatureFive or not find creatureFive ground -1 -1 12853                        @setvar! needToSummon 1854                    endif855                endif856            857                if needToSummon = 1858                    if followers = 0859                        @setvar! followCount 0860                    elseif followers = 1861                        @setvar! followCount 1862                    elseif followers = 2863                        @setvar! followCount 2864                    elseif followers = 3865                        @setvar! followCount 3866                    elseif followers = 4867                        @setvar! followCount 4868                    elseif followers = 5869                        @setvar! followCount 5870                    endif871                   872                    while mana < 50873                        if diffhits >= 30874                            replay875                        endif876                        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam877                            overhead "waiting for mana" 88878                            settimer preventOverheadSpamTimer 0879                        endif880                        if not findbuff "Actively Meditating"881                            useskill "meditation"882                        endif883                        wait 200884                    endwhile885                    if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50886                        yell "[VengefulSpirit"887                        settimer vengefulSpiritTimer 0888                        wait 500889                    endif890                    while followers = followCount891                        cast "Summ. Creature"892                        wait 500893                        if timer witherTimer >= cdWither and skill "Necromancy" >= 95894                            yell "[Wither"895                            settimer witherTimer 0896                        endif897                        if diffhits >= 30898                            hotkey '> Interrupt'899                            break900                        endif901                    endwhile902                    hotkey 'Next Friendly Monster Target'903                    @setvar! checkLastTarget lasttarget904                    if checkLastTarget = earthOne905                        hotkey 'Next Friendly Monster Target'906                        @setvar! checkLastTarget lasttarget 907                    endif908                    909                    if checkLastTarget = earthTwo910                       hotkey 'Next Friendly Monster Target'911                       @setvar! checkLastTarget lasttarget 912                    endif913                    914                    if checkLastTarget = lichOne915                       hotkey 'Next Friendly Monster Target'916                       @setvar! checkLastTarget lasttarget 917                    endif918                    919                    if checkLastTarget = lichTwo920                       hotkey 'Next Friendly Monster Target'921                       @setvar! checkLastTarget lasttarget 922                    endif923                    @setvar! creatureOne checkLastTarget924                    925                    if find checkLastTarget ground -1 -1 6 as myPet926                        if noto myPet = "friend" and list petNameList > 0927                            overhead "Renaming..."928                            foreach petName in petNameList929                                rename myPet petName930                                break931                            endfor932                            poplist petNameList "front"933                        endif934                        if index = 1935                            if dead creatureOne or not find creatureOne ground -1 -1 12936                                @setvar! creatureOne myPet937                            endif938                        elseif index = 2939                            if dead creatureTwo or not find creatureTwo ground -1 -1 12940                                @setvar! creatureTwo myPet941                            endif942                        elseif index = 3943                            if dead creatureThree or not find creatureThree ground -1 -1 12944                                @setvar! creatureThree myPet945                            endif946                        elseif index = 4947                            if dead creatureFour or not find creatureFour ground -1 -1 12948                                @setvar! creatureFour myPet949                            endif950                        elseif index = 5951                            if dead creatureFive or not find creatureFive ground -1 -1 12952                                @setvar! creatureFive myPet953                            endif954                        endif955                    endif956                endif957            endif958        endif959        if index = castSummonCreatureCount960            break961        endif962    endfor963endif964 965# Eat food if we got it966if not findbuff "food" and findtype "tray" backpack as jood967    dclick jood968    wait 200969endif970 971# Use Taste ID if possible972if skill "Taste Identification" >= 50 and not findbuff "herb" and timer meditiationTimer >= 11000 973    useskill 'tasteidentification'974    wft 500975    target backpack976    settimer meditiationTimer 0977endif978 979if not findbuff "song of discordance" and timer meditiationTimer >= 11000980    useskill 'Discordance'981    wft 500982    if insysmsg "What instrument"983        if findtype "bamboo flute" backpack as inny984            target inny985        elseif findtype "tambourine" backpack as inny986            target inny987        elseif findtype "drum" backpack as inny988            target inny989        elseif findtype "lute" backpack as inny990            target inny991        elseif findtype "harp" backpack as inny992            target inny993        elseif findtype "lap harp" backpack as inny994            target inny995        else996            overhead "I do not have an inny" 34997            @setvar! isDiscorded 1998        endif999        wft 5001000    endif1001    target backpack1002    settimer meditiationTimer 01003endif  1004            1005if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 11006    say "all kill"1007    wait 2001008    while targetexists 1009        // wait1010        wait 501011    endwhile1012else1013    hotkey 'Target Closest Non-Friendly Monster'1014    wait 2001015    1016 1017    if insysmsg "No one matching that was found" 1018        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1019            overhead "found no one" 341020            settimer preventOverheadSpamTimer 01021        endif1022        if autoBotEnabled = 11023            wait 5001024            replay1025        endif1026        stop1027            1028        elseif not find lasttarget ground -1 -1 91029        overhead "� � OUT OF RANGE � �" 88 lasttarget1030        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1031            overhead "Move closer, more then 9 tiles away" 341032            settimer preventOverheadSpamTimer 01033        endif1034        if patrolPetEvenIfLastTargetIsBeyondEightTiles = 1 and find myEarthPet ground -1 -1 121035            menu myEarthPet 21036            wft 5001037            target lasttarget1038        endif1039        1040        if autoBotEnabled = 11041            wait 5001042            replay1043        endif1044        stop1045    else1046        overhead "� �� HERE �� �" 88 lasttarget1047    endif    1048endif1049 1050 1051 @setvar myKillTarget lasttarget 1052 1053 1054getlabel myKillTarget descPet1055#overhead descPet1056 1057if "(summoned)" in descPet or "(bonded)" in descPet1058    overhead "Player pet, replaying..."1059    replay1060endif1061    1062 1063if not varexist myPreviousKillTarget1064    @setvar myPreviousKillTarget 0     1065endif1066 1067getlabel myKillTarget desc1068overhead desc myKillTarget1069 1070 1071if not varexist myEarthPet or dead myEarthPet1072    if not dead earthOne1073        @setvar! myEarthPet earthOne1074    elseif not dead earthTwo1075        @setvar! myEarthPet earthTwo1076    endif1077endif1078 1079if find myEarthPet ground -1 -1 121080    menu myEarthPet 21081    wft 5001082    target myKillTarget1083endif1084 1085#target myKillTarget1086say 'all kill'1087wft 2001088target myKillTarget1089 1090if diffhits >= 30 and mana > 121091    while not targetexists1092        if diffhits >= 601093            cast 'Heal'1094        else1095            cast 'Greater Heal'                1096        endif1097        wait 501098        if hp = maxhp1099            hotkey '> Interrupt'1100            break1101        endif1102    endwhile1103    if targetexists1104        target self1105    endif1106elseif castBless = 1 and str <= 100 and followers >= 4 1107    while not targetexists and mana > 121108        cast 'Bless'1109        wait 501110        if diffhits >= 301111            hotkey '> Interrupt'1112            break1113        endif1114    endwhile1115    if targetexists1116        target self1117    endif1118endif1119 1120if not listexists myCursedTargets1121    createlist myCursedTargets1122endif1123 1124if not listexists myManaDrainTargets1125    createlist myManaDrainTargets1126endif1127@setvar! isDiscorded 01128 1129if find myKillTarget -1 -1 12 as killy1130    if myKillTarget = myPreviousKillTarget1131        // do nothing1132    else1133        1134    #        // Herding using crook1135    #   if skill "Herding" > 0 and findtype 3713 backpack as jrook1136    #       dclick jrook1137    #       wft 5001138    #       target killy1139    #   endif1140        if skill "Discordance" >= 50 1141            if isDiscorded = 01142                getlabel myKillTarget discordDesc1143                if "discord" in discordDesc1144                    @setvar! isDiscorded 11145                elseif timer meditiationTimer >= 11000 1146                    useskill 'Discordance'1147                    wft 5001148                    if insysmsg "What instrument"1149                        if findtype "bamboo flute" backpack as inny1150                            target inny1151                        elseif findtype "tambourine" backpack as inny1152                            target inny1153                        elseif findtype "drum" backpack as inny1154                            target inny1155                        elseif findtype "lute" backpack as inny1156                            target inny1157                        elseif findtype "harp" backpack as inny1158                            target inny1159                        elseif findtype "lap harp" backpack as inny1160                            target inny1161                        else1162                            overhead "I do not have an inny" 341163                            @setvar! isDiscorded 11164                        endif1165                        wft 5001166                    endif1167                    if targetexists 1168                        target myKillTarget1169                        overhead "Discorded" 88 myKillTarget1170                    endif1171                    settimer meditiationTimer 50001172                endif1173            endif1174        if inlist myManaDrainTargets myKillTarget1175            overhead "We already mana drained this guy" 881176            // do nothing1177        elseif castManadrain = 01178            // do nothing 1179        elseif followers >= 4 1180            while not targetexists and not dead myKillTarget1181                if diffhits < 301182                    cast 'mana drain'1183                    wait 501184                elseif diffhits >= 30 1185                    hotkey '> Interrupt'1186                    break1187                endif1188            endwhile1189            if targetexists1190                target myKillTarget1191                pushlist myManaDrainTargets myKillTarget1192                settimer killTargetTimer 01193                wait 5001194            endif1195        endif1196        1197        if inlist myCursedTargets myKillTarget1198            overhead "We already cursed this guy" 881199            // do nothing1200        elseif castCurse = 01201            // do nothing1202        elseif followers >= 4 1203            1204            if diffhits < 30 1205            if find myKillTarget ground -1 -1 101206                while not targetexists and not dead myKillTarget and diffhits <= 301207                        cast 'Curse'1208                        wait 501209                    endwhile1210                    else1211                        overhead 'target is more than 10 squares away, get closer to curse'1212                    endif1213                elseif diffhits >= 30 1214                    hotkey '> Interrupt'1215                    break1216                endif1217            1218            if targetexists1219                target myKillTarget1220                pushlist myCursedTargets myKillTarget1221                settimer killTargetTimer 01222                wait 5001223            endif1224        endif1225        @setvar myPreviousKillTarget myKillTarget1226    endif1227else1228    overhead "Out of range" 341229endif1230 1231 1232clearsysmsg 1233 1234say "all guard"1235 1236@setvar! isLethalPoison 01237 1238@setvar! isHerded 01239 1240while not dead myKillTarget and find myKillTarget -1 -1 12 as killy1241 1242    for 51243        // lost a follower1244        if followers < 41245            overhead 'lost a pet'1246            replay1247        endif1248    1249        if dead myKillTarget1250            break1251        elseif insysmsg "Target cannot be seen." 1252            overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341253            replay1254        elseif find myKillTarget -1 -1 12 as killy1255            // do nothing - in range to kill1256        else1257            break1258        endif1259    1260        #    if skill "Herding" > 0 and isHerded = 0 and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook1261        #   dclick jrook1262        #   wft 5001263        #   target myKillTarget1264        #   settimer meditiationTimer 80001265        #   @setvar! isHerded 11266        #   endif1267        1268        if gumpexists 622436516 and skill "Necromancy" >= 501269            if ingump "12/" 6224365161270                @setvar! necroSymbols 121271            elseif ingump "13/" 6224365161272                @setvar! necroSymbols 131273            elseif ingump "14/" 6224365161274                @setvar! necroSymbols 141275            elseif ingump "15/" 6224365161276                @setvar! necroSymbols 151277            elseif ingump "16/" 6224365161278                @setvar! necroSymbols 161279            elseif ingump "17/" 6224365161280                @setvar! necroSymbols 171281            elseif ingump "18/" 6224365161282                @setvar! necroSymbols 181283            elseif ingump "19/" 6224365161284                @setvar! necroSymbols 191285            elseif ingump "20/" 6224365161286                @setvar! necroSymbols 201287            elseif ingump "21/" 6224365161288                @setvar! necroSymbols 211289            elseif ingump "11/" 6224365161290                @setvar! necroSymbols 111291            elseif ingump "10/" 6224365161292                @setvar! necroSymbols 101293            elseif ingump "9/" 6224365161294                @setvar! necroSymbols 91295            elseif ingump "8/" 6224365161296                @setvar! necroSymbols 81297            elseif ingump "7/" 6224365161298                @setvar! necroSymbols 71299            elseif ingump "6/" 6224365161300                @setvar! necroSymbols 61301            elseif ingump "5/" 6224365161302                @setvar! necroSymbols 51303            elseif ingump "4/" 6224365161304                @setvar! necroSymbols 41305            elseif ingump "3/" 6224365161306                @setvar! necroSymbols 31307            elseif ingump "2/" 6224365161308                @setvar! necroSymbols 21309            elseif ingump "1/" 6224365161310                @setvar! necroSymbols 11311            elseif ingump "0/" 6224365161312                @setvar! necroSymbols 01313            endif1314        endif1315        1316 1317 1318        if castMagicShield = 1 and timer magicShieldTimer >= cdMagicShield and not findbuff "Magic Reflection"1319            cast "Magic Reflection"1320            wait 10001321        elseif drinkMagicResistPot = 1 and not findbuff "Magic Reflection" and not findbuff "Magic Resist Potion" and findtype "Black Potion" backpack as pot1322            dclick pot1323            wait 2001324        endif1325 1326        if findbuff "Magic Reflection"1327            settimer magicShieldTimer 01328        endif1329        1330        if castReactiveArmor = 1 and timer reactiveArmorTimer >= cdReactiveArmor and not findbuff "Reactive Armor"1331            cast "Reactive Armor"1332            wait 2001333        endif1334 1335        if findbuff "Reactive Armor"1336            settimer reactiveArmorTimer 01337        endif1338        1339        if skill "poisoning" >= 100 or castPoisonAnyway = 11340            if timer meditiationTimer >= cdMeditationMini1341                if castMindRot = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer mindRotTimer >= cdMindRot and skill "Necromancy" >= 75 and 3 < necroSymbols 1342                    yell "[MindRot"1343                    settimer preventSpamNecroAbilitiesTimer 01344                    settimer mindRotTimer 01345                    wait 5001346                    if gumpexists 6224365161347                        if ingump "12/" 6224365161348                            @setvar! necroSymbols 121349                        elseif ingump "13/" 6224365161350                            @setvar! necroSymbols 131351                        elseif ingump "14/" 6224365161352                            @setvar! necroSymbols 141353                        elseif ingump "15/" 6224365161354                            @setvar! necroSymbols 151355                        elseif ingump "16/" 6224365161356                            @setvar! necroSymbols 161357                        elseif ingump "17/" 6224365161358                            @setvar! necroSymbols 171359                        elseif ingump "18/" 6224365161360                            @setvar! necroSymbols 181361                        elseif ingump "19/" 6224365161362                            @setvar! necroSymbols 191363                        elseif ingump "20/" 6224365161364                            @setvar! necroSymbols 201365                        elseif ingump "21/" 6224365161366                            @setvar! necroSymbols 211367                        elseif ingump "11/" 6224365161368                            @setvar! necroSymbols 111369                        elseif ingump "10/" 6224365161370                            @setvar! necroSymbols 101371                        elseif ingump "9/" 6224365161372                            @setvar! necroSymbols 91373                        elseif ingump "8/" 6224365161374                            @setvar! necroSymbols 81375                        elseif ingump "7/" 6224365161376                            @setvar! necroSymbols 71377                        elseif ingump "6/" 6224365161378                            @setvar! necroSymbols 61379                        elseif ingump "5/" 6224365161380                            @setvar! necroSymbols 51381                        elseif ingump "4/" 6224365161382                            @setvar! necroSymbols 41383                        elseif ingump "3/" 6224365161384                            @setvar! necroSymbols 31385                        elseif ingump "2/" 6224365161386                            @setvar! necroSymbols 21387                        elseif ingump "1/" 6224365161388                            @setvar! necroSymbols 11389                        elseif ingump "0/" 6224365161390                            @setvar! necroSymbols 01391                        endif1392                    endif1393                endif1394                1395                                1396                getlabel myKillTarget desc21397                overhead desc21398                1399                if castPoisonStrike = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer poisonStrikeTimer >= cdPoisonStrike and skill "Necromancy" >= 55 and 1 < necroSymbols 1400                    if "Ticks" in desc21401                        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 1402                            yell "[PoisonStrike"1403                            wft 5001404                            target myKillTarget1405                            wait 2001406                            settimer preventSpamNecroAbilitiesTimer 01407                            settimer poisonStrikeTimer 01408                            wait 5001409                            if gumpexists 6224365161410                                if ingump "12/" 6224365161411                                    @setvar! necroSymbols 121412                                elseif ingump "13/" 6224365161413                                    @setvar! necroSymbols 131414                                elseif ingump "14/" 6224365161415                                    @setvar! necroSymbols 141416                                elseif ingump "15/" 6224365161417                                    @setvar! necroSymbols 151418                                elseif ingump "16/" 6224365161419                                    @setvar! necroSymbols 161420                                elseif ingump "17/" 6224365161421                                    @setvar! necroSymbols 171422                                elseif ingump "18/" 6224365161423                                    @setvar! necroSymbols 181424                                elseif ingump "19/" 6224365161425                                    @setvar! necroSymbols 191426                                elseif ingump "20/" 6224365161427                                    @setvar! necroSymbols 201428                                elseif ingump "21/" 6224365161429                                    @setvar! necroSymbols 211430                                elseif ingump "11/" 6224365161431                                    @setvar! necroSymbols 111432                                elseif ingump "10/" 6224365161433                                    @setvar! necroSymbols 101434                                elseif ingump "9/" 6224365161435                                    @setvar! necroSymbols 91436                                elseif ingump "8/" 6224365161437                                    @setvar! necroSymbols 81438                                elseif ingump "7/" 6224365161439                                    @setvar! necroSymbols 71440                                elseif ingump "6/" 6224365161441                                    @setvar! necroSymbols 61442                                elseif ingump "5/" 6224365161443                                    @setvar! necroSymbols 51444                                elseif ingump "4/" 6224365161445                                    @setvar! necroSymbols 41446                                elseif ingump "3/" 6224365161447                                    @setvar! necroSymbols 31448                                elseif ingump "2/" 6224365161449                                    @setvar! necroSymbols 21450                                elseif ingump "1/" 6224365161451                                    @setvar! necroSymbols 11452                                elseif ingump "0/" 6224365161453                                    @setvar! necroSymbols 01454                                endif1455                            endif1456                        endif1457                    endif1458                endif1459                1460                1461                1462                if isLethalPoison = 01463                    1464                    if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy1465                        overhead "Eating shrooms" 661466                        dclick mushy1467                        settimer magicMushroomTimer 01468                    endif1469                1470                    if insysmsg "Target cannot be seen." 1471                        overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341472                        replay1473                    endif 1474 1475                    // poison lethal1476                    if "Lethal" in desc21477                        @setvar! isLethalPoison 11478                        break1479                    elseif castPoisonAnyway = 1 and "Ticks" in desc21480                        @setvar! isLethalPoison 11481                        break1482                    elseif castPoisonAnyway = 1 and "Poison" in desc21483                        @setvar! isLethalPoison 11484                        break1485                    elseif diffhits >= 30 1486                        // need a heal1487                        break1488                    elseif mana >= 91489                        while not targetexists1490                            cast 'poison'1491                            wait 501492                            if dead myKillTarget1493                                hotkey '> Interrupt'1494                                replay1495                            endif1496                        endwhile1497                        target myKillTarget1498                        wait 2001499                        if insysmsg "Target cannot be seen." 1500                             overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341501                             @setvar! isLethalPoison 11502                        endif 1503                    else1504                        wait 2001505                    endif1506                endif1507            endif1508        endif1509        1510        if castCorpseSkin = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer corpseSkinTimer >= cdCorpseSkin and skill "Necromancy" >= 65 and timer meditiationTimer >= cdMeditationMini and 2 < necroSymbols1511            yell "[CorpseSkin"1512            settimer preventSpamNecroAbilitiesTimer 01513            settimer corpseSkinTimer 01514            cooldown CorpseSkin cdCorpseSkin1515            wait 5001516            if gumpexists 6224365161517                if ingump "12/" 6224365161518                    @setvar! necroSymbols 121519                elseif ingump "13/" 6224365161520                    @setvar! necroSymbols 131521                elseif ingump "14/" 6224365161522                    @setvar! necroSymbols 141523                elseif ingump "15/" 6224365161524                    @setvar! necroSymbols 151525                elseif ingump "16/" 6224365161526                    @setvar! necroSymbols 161527                elseif ingump "17/" 6224365161528                    @setvar! necroSymbols 171529                elseif ingump "18/" 6224365161530                    @setvar! necroSymbols 181531                elseif ingump "19/" 6224365161532                    @setvar! necroSymbols 191533                elseif ingump "20/" 6224365161534                    @setvar! necroSymbols 201535                elseif ingump "21/" 6224365161536                    @setvar! necroSymbols 211537                elseif ingump "11/" 6224365161538                    @setvar! necroSymbols 111539                elseif ingump "10/" 6224365161540                    @setvar! necroSymbols 101541                elseif ingump "9/" 6224365161542                    @setvar! necroSymbols 91543                elseif ingump "8/" 6224365161544                    @setvar! necroSymbols 81545                elseif ingump "7/" 6224365161546                    @setvar! necroSymbols 71547                elseif ingump "6/" 6224365161548                    @setvar! necroSymbols 61549                elseif ingump "5/" 6224365161550                    @setvar! necroSymbols 51551                elseif ingump "4/" 6224365161552                    @setvar! necroSymbols 41553                elseif ingump "3/" 6224365161554                    @setvar! necroSymbols 31555                elseif ingump "2/" 6224365161556                    @setvar! necroSymbols 21557                elseif ingump "1/" 6224365161558                    @setvar! necroSymbols 11559                elseif ingump "0/" 6224365161560                    @setvar! necroSymbols 01561                endif1562            endif1563        endif1564            1565        if castBloodOath = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer bloodOathTimer >= cdBloodOath and 5 < necroSymbols1566            yell "[BloodOath"1567            settimer preventSpamNecroAbilitiesTimer 01568            settimer bloodOathTimer 01569            if gumpexists 6224365161570                if ingump "12/" 6224365161571                    @setvar! necroSymbols 121572                elseif ingump "13/" 6224365161573                    @setvar! necroSymbols 131574                elseif ingump "14/" 6224365161575                    @setvar! necroSymbols 141576                elseif ingump "15/" 6224365161577                    @setvar! necroSymbols 151578                elseif ingump "16/" 6224365161579                    @setvar! necroSymbols 161580                elseif ingump "17/" 6224365161581                    @setvar! necroSymbols 171582                elseif ingump "18/" 6224365161583                    @setvar! necroSymbols 181584                elseif ingump "19/" 6224365161585                    @setvar! necroSymbols 191586                elseif ingump "20/" 6224365161587                    @setvar! necroSymbols 201588                elseif ingump "21/" 6224365161589                    @setvar! necroSymbols 211590                elseif ingump "11/" 6224365161591                    @setvar! necroSymbols 111592                elseif ingump "10/" 6224365161593                    @setvar! necroSymbols 101594                elseif ingump "9/" 6224365161595                    @setvar! necroSymbols 91596                elseif ingump "8/" 6224365161597                    @setvar! necroSymbols 81598                elseif ingump "7/" 6224365161599                    @setvar! necroSymbols 71600                elseif ingump "6/" 6224365161601                    @setvar! necroSymbols 61602                elseif ingump "5/" 6224365161603                    @setvar! necroSymbols 51604                elseif ingump "4/" 6224365161605                    @setvar! necroSymbols 41606                elseif ingump "3/" 6224365161607                    @setvar! necroSymbols 31608                elseif ingump "2/" 6224365161609                    @setvar! necroSymbols 21610                elseif ingump "1/" 6224365161611                    @setvar! necroSymbols 11612                elseif ingump "0/" 6224365161613                    @setvar! necroSymbols 01614                endif1615            endif1616        endif1617        1618        1619        if castEvilOmen = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer evilOmenTimer >= cdEvilOmen and skill "Necromancy" >= 60 and timer meditiationTimer >= cdMeditationMini and 2 < necroSymbols1620            yell "[EvilOmen"1621            settimer evilOmenTimer 01622            settimer preventSpamNecroAbilitiesTimer 01623            cooldown EvilOmen cdEvilOmen1624            wait 5001625            if gumpexists 6224365161626                if ingump "12/" 6224365161627                    @setvar! necroSymbols 121628                elseif ingump "13/" 6224365161629                    @setvar! necroSymbols 131630                elseif ingump "14/" 6224365161631                    @setvar! necroSymbols 141632                elseif ingump "15/" 6224365161633                    @setvar! necroSymbols 151634                elseif ingump "16/" 6224365161635                    @setvar! necroSymbols 161636                elseif ingump "17/" 6224365161637                    @setvar! necroSymbols 171638                elseif ingump "18/" 6224365161639                    @setvar! necroSymbols 181640                elseif ingump "19/" 6224365161641                    @setvar! necroSymbols 191642                elseif ingump "20/" 6224365161643                    @setvar! necroSymbols 201644                elseif ingump "21/" 6224365161645                    @setvar! necroSymbols 211646                elseif ingump "11/" 6224365161647                    @setvar! necroSymbols 111648                elseif ingump "10/" 6224365161649                    @setvar! necroSymbols 101650                elseif ingump "9/" 6224365161651                    @setvar! necroSymbols 91652                elseif ingump "8/" 6224365161653                    @setvar! necroSymbols 81654                elseif ingump "7/" 6224365161655                    @setvar! necroSymbols 71656                elseif ingump "6/" 6224365161657                    @setvar! necroSymbols 61658                elseif ingump "5/" 6224365161659                    @setvar! necroSymbols 51660                elseif ingump "4/" 6224365161661                    @setvar! necroSymbols 41662                elseif ingump "3/" 6224365161663                    @setvar! necroSymbols 31664                elseif ingump "2/" 6224365161665                    @setvar! necroSymbols 21666                elseif ingump "1/" 6224365161667                    @setvar! necroSymbols 11668                elseif ingump "0/" 6224365161669                    @setvar! necroSymbols 01670                endif1671            endif1672        endif1673        1674        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 jorpse1675            yell "[VampiricEmbrace"1676            wft 5001677            target jorpse1678            settimer preventSpamNecroAbilitiesTimer 01679            settimer vampiricEmbraceTimer 01680            cooldown VampiricEmbrace cdVampiricEmbrace1681            wait 5001682            if gumpexists 6224365161683                if ingump "12/" 6224365161684                    @setvar! necroSymbols 121685                elseif ingump "13/" 6224365161686                    @setvar! necroSymbols 131687                elseif ingump "14/" 6224365161688                    @setvar! necroSymbols 141689                elseif ingump "15/" 6224365161690                    @setvar! necroSymbols 151691                elseif ingump "16/" 6224365161692                    @setvar! necroSymbols 161693                elseif ingump "17/" 6224365161694                    @setvar! necroSymbols 171695                elseif ingump "18/" 6224365161696                    @setvar! necroSymbols 181697                elseif ingump "19/" 6224365161698                    @setvar! necroSymbols 191699                elseif ingump "20/" 6224365161700                    @setvar! necroSymbols 201701                elseif ingump "21/" 6224365161702                    @setvar! necroSymbols 211703                elseif ingump "11/" 6224365161704                    @setvar! necroSymbols 111705                elseif ingump "10/" 6224365161706                    @setvar! necroSymbols 101707                elseif ingump "9/" 6224365161708                    @setvar! necroSymbols 91709                elseif ingump "8/" 6224365161710                    @setvar! necroSymbols 81711                elseif ingump "7/" 6224365161712                    @setvar! necroSymbols 71713                elseif ingump "6/" 6224365161714                    @setvar! necroSymbols 61715                elseif ingump "5/" 6224365161716                    @setvar! necroSymbols 51717                elseif ingump "4/" 6224365161718                    @setvar! necroSymbols 41719                elseif ingump "3/" 6224365161720                    @setvar! necroSymbols 31721                elseif ingump "2/" 6224365161722                    @setvar! necroSymbols 21723                elseif ingump "1/" 6224365161724                    @setvar! necroSymbols 11725                elseif ingump "0/" 6224365161726                    @setvar! necroSymbols 01727                endif1728            endif1729        endif1730        1731        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 jorpse1732            yell "[PainSpike"1733            wft 5001734            target myKillTarget1735            wait 2001736            settimer preventSpamNecroAbilitiesTimer 01737            if insysmsg "You do not see any corpses"1738                // do nothing1739            else1740                settimer painSpikeTimer 01741                cooldown PainSpike cdPainSpike            1742            endif1743            if gumpexists 6224365161744                if ingump "12/" 6224365161745                    @setvar! necroSymbols 121746                elseif ingump "13/" 6224365161747                    @setvar! necroSymbols 131748                elseif ingump "14/" 6224365161749                    @setvar! necroSymbols 141750                elseif ingump "15/" 6224365161751                    @setvar! necroSymbols 151752                elseif ingump "16/" 6224365161753                    @setvar! necroSymbols 161754                elseif ingump "17/" 6224365161755                    @setvar! necroSymbols 171756                elseif ingump "18/" 6224365161757                    @setvar! necroSymbols 181758                elseif ingump "19/" 6224365161759                    @setvar! necroSymbols 191760                elseif ingump "20/" 6224365161761                    @setvar! necroSymbols 201762                elseif ingump "21/" 6224365161763                    @setvar! necroSymbols 211764                elseif ingump "11/" 6224365161765                    @setvar! necroSymbols 111766                elseif ingump "10/" 6224365161767                    @setvar! necroSymbols 101768                elseif ingump "9/" 6224365161769                    @setvar! necroSymbols 91770                elseif ingump "8/" 6224365161771                    @setvar! necroSymbols 81772                elseif ingump "7/" 6224365161773                    @setvar! necroSymbols 71774                elseif ingump "6/" 6224365161775                    @setvar! necroSymbols 61776                elseif ingump "5/" 6224365161777                    @setvar! necroSymbols 51778                elseif ingump "4/" 6224365161779                    @setvar! necroSymbols 41780                elseif ingump "3/" 6224365161781                    @setvar! necroSymbols 31782                elseif ingump "2/" 6224365161783                    @setvar! necroSymbols 21784                elseif ingump "1/" 6224365161785                    @setvar! necroSymbols 11786                elseif ingump "0/" 6224365161787                    @setvar! necroSymbols 01788                endif1789            endif1790        endif1791        1792        if diffhits >= 301793            if findtype "Yellow Potion" backpack as pot 1794                getlabel pot desc1795                if "next usable" in desc1796                    // do nothing1797                else1798                    dclick pot1799                    wait 5001800                endif1801            endif1802 1803            if diffhits >= 30 and mana >= 121804                while not targetexists1805                    if diffhits >= 601806                        cast 'Heal'1807                    else1808                        cast 'Greater Heal'                1809                    endif1810                    wait 501811                    if hp = maxhp1812                        hotkey '> Interrupt'1813                        break1814                    endif1815                endwhile1816                if targetexists1817                    target self1818                    wait 501819                endif1820            endif1821        endif1822        1823        if poisoned1824            overhead "were poisoned"1825            if findtype "Orange Potion" backpack1826                while poisoned and findtype "Orange Potion" backpack as kpot 1827                    dclick kpot1828                    wait 1001829                endwhile1830            else1831                while poisoned and diffhits <= 30 and not targetexists 1832                if not poisoned 1833                        hotkey '> Interrupt'1834                        break1835                    else1836                        cast 'Cure'1837                        wait 501838                    endif 1839                endwhile1840                if targetexists1841                    target self1842                    wait 5001843                endif1844            endif1845        endif1846 1847        if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy1848            overhead "Eating shrooms" 661849            dclick mushy1850            settimer magicMushroomTimer 01851        endif1852        1853        if index = 01854            1855    if castFlamestrike = 1 and mana > 421856        #    while not targetexists and mana > 401857            1858    if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy and not poisoned and timer meditiationTimer >= cdMeditationMini1859                    overhead "Eating shrooms" 661860                    dclick mushy1861                    settimer magicMushroomTimer 01862                endif1863        1864                if followers < 4 or dead myKillTarget or diffhits >= 301865                    hotkey '> Interrupt'1866                    break1867                else1868                    if find myKillTarget ground -1 -1 101869                    while not targetexists and followers >= 4 and not dead myKillTarget and diffhits <= 30 and find myKillTarget ground -1 -1 10 and mana >= 401870                            cast 'Flamestrike'1871                            wait 501872                        endwhile1873                    else1874                        overhead 'Too far away get closer to flamestrike'1875                    endif1876                endif 1877                #endwhile1878            if targetexists1879                target myKillTarget1880                wait 5001881            endif1882        endif1883            1884        elseif index = 11885        1886        if castLightning = 1 and diffhits < 30 and mana >= 12 and timer lightningTimer >= cdLightning and timer meditiationTimer >= cdMeditationMini and not poisoned1887                1888                    if followers < 4 or dead myKillTarget or diffhits >= 301889                        hotkey '> Interrupt'1890                        break1891                    else1892                        if find myKillTarget ground -1 -1 101893                        while not targetexists and followers >= 4 and not dead myKillTarget and diffhits <= 30 and find myKillTarget ground -1 -1 10 and not poisoned and mana >= 11   1894                                cast 'Lightning'1895                                wait 501896                            endwhile1897                            else1898                                overhead 'Too far to cast lightning, get closer'1899                         endif1900                    endif 1901                1902                if targetexists1903                    target myKillTarget1904                    settimer lightningTimer 01905                    cooldown Lightning cdLightning1906                    wait 5001907                endif1908            endif1909        1910            elseif index = 21911        1912            if castMagicArrow = 1 and diffhits < 30 and mana >= 5 and timer magicArrowTimer >= cdMagicArrow and timer meditiationTimer >= cdMeditationMini1913                1914                    if followers < 4 or dead myKillTarget or diffhits >= 301915                        hotkey '> Interrupt'1916                        break1917                    else1918                        if find myKillTarget ground -1 -1 101919                        while not targetexists and followers >= 4 and not dead myKillTarget and diffhits <= 30 and find myKillTarget ground -1 -1 10 and not poisoned and mana >= 51920                            cast 'magic arrow'1921                            wait 501922                            endwhile1923                         else1924                             overhead 'too far away for magic arrow, get closer'1925                         endif1926                    endif 1927                1928                if targetexists1929                    target myKillTarget1930                    settimer magicArrowTimer 01931                    cooldown MagicArrow cdMagicArrow1932                    wait 5001933                endif1934            endif1935            1936            elseif index = 31937                1938            if castHarm = 1 and diffhits < 30 and mana >= 9 and timer harmTimer >= cdHarm and timer meditiationTimer >= cdMeditationMini1939               1940                    if followers < 4 or dead myKillTarget or diffhits >= 301941                        hotkey '> Interrupt'1942                        break1943                    else1944                        if find myKillTarget ground -1 -1 101945                        while not targetexists and followers >= 4 and not dead myKillTarget and diffhits <= 30 and find myKillTarget ground -1 -1 10 and not poisoned and mana >= 61946                            cast 'harm'1947                            wait 501948                         endwhile1949                        else1950                            overhead 'too far away to cast harm, get closer'1951                        endif1952                    endif 1953                1954                if targetexists1955                    target myKillTarget1956                    settimer harmTimer 01957                    cooldown Harm cdHarm1958                    wait 5001959                endif1960            endif1961            1962            elseif index = 41963                1964            if castFireball = 1 and diffhits < 30 and mana >= 12 and timer fireballTimer >= cdFireball and timer meditiationTimer >= cdMeditationMini1965                1966                    if followers < 4 or dead myKillTarget or diffhits >= 301967                        hotkey '> Interrupt'1968                        break1969                    else1970                        1971                        if find myKillTarget ground -1 -1 101972                            while not targetexists and followers >= 4 and not dead myKillTarget and diffhits <= 30 and find myKillTarget ground -1 -1 10 and not poisoned and mana >= 91973                                cast 'fireball'1974                                wait 501975                            endwhile1976                        else1977                            overhead 'too far away to fireball, get closer two'1978                        endif1979                    endif 1980                1981                if targetexists1982                    target myKillTarget1983                    settimer fireballTimer 01984                    cooldown Fireball cdFireball1985                    wait 5001986                endif1987            endif1988            1989            elseif index = 51990                1991            if castFireball = 1 and diffhits < 30 and mana >= 12 and timer fireballTimer >= cdFireball and timer meditiationTimer >= cdMeditationMini1992                1993                    if followers < 4 or dead myKillTarget or diffhits >= 301994                        hotkey '> Interrupt'1995                        break1996                    else1997                        if find myKillTarget ground -1 -1 101998                        while not targetexists and followers >= 4 and not dead myKillTarget and diffhits <= 30 and find myKillTarget ground -1 -1 10 and not poisoned and mana >= 91999                                cast 'fireball'2000                                wait 502001                            endwhile2002                          else2003                              overhead 'too far away to fireball, get closer two'2004                        endif2005                    endif 2006                    2007                if targetexists2008                    target myKillTarget2009                    settimer fireballTimer 02010                    cooldown Fireball cdFireball2011                    wait 5002012                endif2013            endif2014            2015        endif2016    2017    endfor2018   2019    if find myKillTarget -1 -1 12 as killy2020       // do nothing2021    else2022        overhead "Out of range" 342023        break2024    endif2025    2026    2027    if diffhits >= 302028            2029        if findtype "Yellow Potion" backpack as pot 2030            getlabel pot desc2031            if "next usable" in desc2032                // do nothing2033            else2034                dclick pot2035                wait 5002036            endif2037        endif2038 2039        if diffhits >= 30 and mana >= 122040            while not targetexists2041                if diffhits >= 602042                    cast 'Heal'2043                else2044                    cast 'Greater Heal'                2045                endif2046                wait 502047                if hp = maxhp2048                    hotkey '> Interrupt'2049                    break2050                endif2051            endwhile2052            if targetexists2053                target self2054                wait 502055            endif2056        endif2057    elseif mana < 55 and findbuff "actively meditating" 2058        // wait for mana2059    elseif timer meditiationTimer < cdMeditationMini and findbuff "actively meditating" 2060        // wait for mana2061    elseif castMindBlast = 1 and mana >= 322062        while not targetexists and mana > 302063            if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2064                overhead "Eating shrooms" 662065                dclick mushy2066                settimer magicMushroomTimer 02067            endif2068            if followers < 4 or dead myKillTarget or diffhits >= 302069                2070                hotkey '> Interrupt'2071                break2072            else2073                if  find myKillTarget ground -1 -1 102074                while not targetexists and followers >= 4 and not dead myKillTarget and diffhits <= 30 and find myKillTarget ground -1 -1 10 and not poisoned and mana >= 142075                    cast 'Mind Blast'2076                    wait 502077                endwhile2078                else 2079                    overhead "Out of range, get closer to cast Mind Blast"2080                endif2081            endif 2082        endwhile2083        if targetexists2084            target myKillTarget2085            wait 5002086        endif2087        if castFlamestrike = 1 and mana > 422088            2089            2090                if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2091                    overhead "Eating shrooms" 662092                    dclick mushy2093                    settimer magicMushroomTimer 02094                endif2095        2096                if followers < 4 or dead myKillTarget or diffhits >= 302097                    hotkey '> Interrupt'2098                    break2099                else2100                    if  find myKillTarget ground -1 -1 102101                    while not targetexists and followers >= 4 and not dead myKillTarget and diffhits <= 30 and find myKillTarget ground -1 -1 10 and not poisoned and mana >= 402102                        cast 'Flamestrike'2103                        wait 502104                    endwhile2105                    else2106                        overhead "Out of Range, get closer to cast Flamestrike 2"2107                    endif2108                endif 2109            2110            if targetexists2111                target myKillTarget2112                wait 5002113            endif2114        endif2115    elseif not findbuff "actively meditating" and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2116        overhead "Eating shrooms" 662117        dclick mushy2118        settimer magicMushroomTimer 02119    elseif not findbuff "actively meditating" and timer meditiationTimer >= cdMeditation2120        say "all guard me"2121        useskill 'meditation'2122        settimer meditiationTimer 02123        wait 5002124    endif2125    wait 502126endwhile2127wait 5002128if targetexists 2129    hotkey 'Cancel Current Target'2130endif2131if not findbuff "actively meditating" 2132    say "all guard me"2133endif2134#while mana < 502135#    if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 02136#    hotkey 'Next Non-Friendly Monster Target'2137#        wait 4002138#        @setvar! myKillNext lasttarget 2139#        getlabel myKillNext descPet22140#        overhead descPet22141#2142#        if "(summoned)" in descPet or "(bonded)" in descPet 2143#            overhead "Player pet, replaying..." 2144#             replay 2145#        endif     2146#        if insysmsg "No one matching that was found"2147#            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam2148#                overhead "no next target" 342149#                settimer preventOverheadSpamTimer 02150#            endif2151#          elseif not find lasttarget ground -1 -1 92152#            overhead "� NEXT TARGET HERE �" 88 lasttarget2153#            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam2154#                overhead "Move closer, more then 9 tiles away" 342155#                settimer preventOverheadSpamTimer 02156#            endif2157#          elseif "(summoned)" in descPet or "(bonded)" in descPet2158#              overhead "Thats a player pet, skipping 2"2159#          endif2160#                2161#        else2162#            overhead "� NEXT TARGET HERE �" 88 lasttarget2163#            say "all guard me"2164#        #attack lasttarget2165#        endif    2166#    endif2167    if diffhits >= 30 and not dead myKillTarget2168        if findtype "Yellow Potion" backpack as pot 2169            getlabel pot desc2170            if "next usable" in desc2171                // do nothing2172            else2173                dclick pot2174                wait 2002175            endif2176        endif2177        if diffhits >= 30 and mana >= 122178            while not targetexists2179                if diffhits >= 602180                    cast 'Heal'2181                else2182                    cast 'Greater Heal'                2183                endif2184                wait 502185                if hp = maxhp2186                    hotkey '> Interrupt'2187                    break2188                endif2189            endwhile2190            if targetexists2191                target self2192                wait 502193            endif2194        endif2195    endif2196    if not findbuff "actively meditating" 2197        useskill 'meditation'2198    endif2199    wait 5002200    #endwhile2201if canYouMakeAMushroom = 1 and counttype "mushroom" backpack < butOnlyIHaveLessThenThisCount2202    while counttype "mushroom" backpack < makeThisManyMushroomsCount2203        cast "Create Food"2204        wait 2002205        if diffhits >= 20 or counttype "mushroom" backpack = 02206            break2207        endif2208    endwhile2209endif2210if castVampiricEmbrace = 1 and timer vampiricEmbraceTimer >= cdVampiricEmbrace and skill "Necromancy" >= 70 and findtype 8198 ground -1 -1 4 as jorpse2211    say "[VampiricEmbrace"2212    wft 5002213    target jorpse2214    settimer vampiricEmbraceTimer 02215    cooldown VampiricEmbrace cdVampiricEmbrace2216endif2217 2218if timer killTargetTimer >= cdKillTarget2219    overhead "We cleared curse and mana drain targets" 342220    removelist myCursedTargets      2221    removelist myManaDrainTargets2222endif2223   2224if autoBotEnabled = 12225    replay2226endif2227 2228// thanks for using a Jaseowns script!2229// https://www.youtube.com/jaseowns2230    2231    2232    2233    2234    2235    2236    2237    2238    2239    2240// We did it