Skip to content
Outlands Hub

Razor script

Uo Autobot Necro Mage summon script by jaseowns with Hellzy edits

by liveonce · 2256 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
Uo Autobot Necro Mage summon script by jaseowns with Hellzy edits.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/a76714d8-365c-4b0c-a18f-740efad90b34 for latest2# Automation by Jaseowns3## Script: Uo Autobot Necro Mage summon script by jaseowns with Hellzy edits4## Created by: liveonce#04825#############################################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// 12/26/202219// - updated poison strike and how it deals with poison20// - added earth elemental as pet only instead of mummy21// 12/21/202222// - fixed bug with mindblast and two lich summons23// 12/17/202224// - V2 of AutoBot created.  Idea is to leverage things from mining script25##################26## Always room for improvment, thanks for watching!27############28 29# Set this to one, if you want to cast poison once no matter what30# If you have 100 poisoning and want Lethal, set this to 031@setvar! castPoisonAnyway 032 33# This will auto replay this script if you want it too34@setvar! autoBotEnabled 135 36# Update this variable to 1 for ALL KILL37# Update this variable to 0 for target nearest38@setvar! setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster 039 40###############41###  Choose your summons42######43@setvar! castSummonFireElementalCount 244@setvar! castSummonCreatureCount 145@setvar! castSummonEarthElementalCount 046@setvar! castSummonEarthElementalAsMummy 047 48 49 50###############51###  Choose your spells52######53@setvar! castCurse 154@setvar! castManadrain 055@setvar! castLightning 156@setvar! castFireball 157@setvar! castHarm 158@setvar! castMagicArrow 159# When other spells are on cooldown, do you want to cast MindBlast or Flamestrike or both60@setvar! castMindBlast 061@setvar! castFlamestrike 162 63### Buffs64@setvar! castBless 165@setvar! castMagicShield 166@setvar! castReactiveArmor 167# Drink Magic resist potion (only if magic shield buff not found)68@setvar! drinkMagicResistPot 169 70###############71###  Choose your necro spells (ignored if less then required necro skill)72######73@setvar! castEvilOmen 174@setvar! castCorpseSkin 175@setvar! castVampiricEmbrace 076@setvar! castMindRot 177@setvar! castPoisonStrike 178@setvar! castBloodOath 179@setvar! castPainSpike 180@setvar! requireWitherBeforeSummons 081 82###############83### Edit these cooldowns to match your wizard grimoire84######85@setvar! canYouMakeAMushroom 186@setvar! cdLightning 2000087@setvar! cdMagicArrow 2000088@setvar! cdHarm 2000089@setvar! cdFireball 2000090 91###############92### Necro Cooldowns93######94@setvar! cdEvilOmen 3050095@setvar! cdVampiricEmbrace 3050096@setvar! cdCorpseSkin 3050097@setvar! cdMindRot 3050098@setvar! cdWither 3050099@setvar! cdVengefulSpirit 30500100@setvar! cdBloodOath 30500101@setvar! cdPainSpike 30500102@setvar! cdPoisonStrike 30500103 104 105#### Buff Cooldowns106@setvar! cdMushroom 61000107@setvar! cdMagicShield 61000108@setvar! cdReactiveArmor 61000109@setvar! cdMeditation 10000110@setvar! cdMeditationMini 3000111@setvar! cdKillTarget 60000112 113#### Random cooldowns114@setvar! cdPreventOverheadSpam 2000115 116#### Mushroom count (I like a lot of shroomies)117@setvar! makeThisManyMushroomsCount 15118@setvar! butOnlyIHaveLessThenThisCount 5119 120@setvar! patrolPetEvenIfLastTargetIsBeyondEightTiles 1121 122if counttype "gold coin" backpack as total123    if 10000 < total124        overhead "Warning: {{total}} gold!" 34125    endif126endif127 128if findtype "dungeon torch" backpack as item129    overhead "Holy crap!" 88    130    say "I got one!" 88131    overhead "I got one!" 88132elseif findtype 30580 backpack as item133    overhead "Holy crap!" 88    134    say "I got one!" 88135    overhead "I got one!" 88136endif137    138 139#### Pet Names, unique to you140if not listexists petNameList141    createlist petNameList142endif143if list petNameList = 0144    pushlist petNameList "jaseneccy"145    pushlist petNameList "jaseyoutube"146    pushlist petNameList "jaseytfollow"147    pushlist petNameList "jaseytfollower"148    pushlist petNameList "jasesubscribed"149    pushlist petNameList "jaseoutlands"150    pushlist petNameList "jaseuorazorscripts"151    pushlist petNameList "jaseyoutuber"152    pushlist petNameList "jasefunez"153    pushlist petNameList "jasetwitch"154    pushlist petNameList "jasesubscribe"155    pushlist petNameList "jasefueoz"156endif157 158 159##################################################################160# 161#   Hopefully you do not have to edit after this :)162#163##################################################################164 165if not varexist JaseOwns166    overhead "v2.2.2 Hellzy edit 1/2/23" 34167    overhead "uorazorscripts.com/mage-bot" 34168    say "This script was brought to you by youtube.com/Jaseowns and Hellzy" 88169    wait 500170    @setvar! JaseOwns 1171endif172 173if not gumpexists 622436516 and skill "Necromancy" >= 50174    say '[NecromancyHotbar'175    wait 500176endif177 178// Make sure we have a spell book attached179if findlayer self righthand as item180    // do nothing181elseif findtype "3834" backpack as item182    dclick item183else 184    overhead "No book bro!" 34185endif186#if dead myKillTarget and targetexists and diffhits < 30 and not poisoned187#    hotkey 'Cancel Current Target'188#    say 'all guard me'189#endif190 191// Setting current necro symbols - checks again it the attack loop192@setvar! necroSymbols 12193if gumpexists 622436516 and skill "Necromancy" >= 50194    if ingump "12/" 622436516195        @setvar! necroSymbols 12196    elseif ingump "13/" 622436516197        @setvar! necroSymbols 13198    elseif ingump "14/" 622436516199        @setvar! necroSymbols 14200    elseif ingump "15/" 622436516201        @setvar! necroSymbols 15202    elseif ingump "16/" 622436516203        @setvar! necroSymbols 16204    elseif ingump "17/" 622436516205        @setvar! necroSymbols 17206    elseif ingump "18/" 622436516207        @setvar! necroSymbols 18208    elseif ingump "19/" 622436516209        @setvar! necroSymbols 19210    elseif ingump "20/" 622436516211        @setvar! necroSymbols 20212    elseif ingump "21/" 622436516213        @setvar! necroSymbols 21214    elseif ingump "11/" 622436516215        @setvar! necroSymbols 11216    elseif ingump "10/" 622436516217        @setvar! necroSymbols 10218    elseif ingump "9/" 622436516219        @setvar! necroSymbols 9220    elseif ingump "8/" 622436516221        @setvar! necroSymbols 8222    elseif ingump "7/" 622436516223        @setvar! necroSymbols 7224    elseif ingump "6/" 622436516225        @setvar! necroSymbols 6226    elseif ingump "5/" 622436516227        @setvar! necroSymbols 5228    elseif ingump "4/" 622436516229        @setvar! necroSymbols 4230    elseif ingump "3/" 622436516231        @setvar! necroSymbols 3232    elseif ingump "2/" 622436516233        @setvar! necroSymbols 2234    elseif ingump "1/" 622436516235        @setvar! necroSymbols 1236    elseif ingump "0/" 622436516237        @setvar! necroSymbols 0238    endif239endif240 241if not timerexists reactiveArmorTimer242    createtimer reactiveArmorTimer243    settimer reactiveArmorTimer cdMagicShield244endif245 246if not timerexists magicShieldTimer247    createtimer magicShieldTimer248    settimer magicShieldTimer cdMagicShield249endif250 251if not timerexists magicMushroomTimer252    createtimer magicMushroomTimer253    settimer magicMushroomTimer cdMushroom254endif255 256if not timerexists magicArrowTimer257    createtimer magicArrowTimer258    settimer magicArrowTimer cdMagicArrow259endif260 261if not timerexists lightningTimer262    createtimer lightningTimer263    settimer lightningTimer cdLightning264endif265 266if not timerexists harmTimer267    createtimer harmTimer268    settimer harmTimer cdHarm269endif270 271if not timerexists fireballTimer272    createtimer fireballTimer273    settimer fireballTimer cdFireball274endif275 276if not timerexists evilOmenTimer277    createtimer evilOmenTimer278    settimer evilOmenTimer cdEvilOmen279endif280 281if not timerexists vampiricEmbraceTimer282    createtimer vampiricEmbraceTimer283    settimer vampiricEmbraceTimer cdVampiricEmbrace284endif285 286if not timerexists corpseSkinTimer287    createtimer corpseSkinTimer288    settimer corpseSkinTimer cdCorpseSkin289endif290 291if not timerexists mindRotTimer292    createtimer mindRotTimer293    settimer mindRotTimer cdMindRot294endif295 296if not timerexists meditiationTimer297    createtimer meditiationTimer298    settimer meditiationTimer cdMeditation299endif300 301if not timerexists killTargetTimer302    createtimer killTargetTimer303    settimer killTargetTimer cdKillTarget304endif305 306if not timerexists witherTimer307    createtimer witherTimer308    settimer witherTimer cdWither309endif310 311if not timerexists vengefulSpiritTimer312    createtimer vengefulSpiritTimer313    settimer vengefulSpiritTimer cdVengefulSpirit314endif315 316if not timerexists bloodOathTimer317    createtimer bloodOathTimer318    settimer bloodOathTimer cdBloodOath319endif320 321if not timerexists painSpikeTimer322    createtimer painSpikeTimer323    settimer painSpikeTimer cdPainSpike324endif325 326if not timerexists poisonStrikeTimer327    createtimer poisonStrikeTimer328    settimer poisonStrikeTimer cdPoisonStrike329endif330 331if not timerexists preventOverheadSpamTimer332    createtimer preventOverheadSpamTimer333    settimer preventOverheadSpamTimer cdPreventOverheadSpam334endif335 336@setvar! cdPreventSpamNecroAbilities 750337if not timerexists preventSpamNecroAbilitiesTimer338    createtimer preventSpamNecroAbilitiesTimer339    settimer preventSpamNecroAbilitiesTimer cdPreventSpamNecroAbilities340endif341 342if not varexist myEarthPet343    @setvar! myEarthPet 0344endif345if diffhits >= 30346            if targetexists 347                hotkey 'Cancel Current Target'348            endif349            while not targetexists 'beneficial'350                if diffhits >= 60351                    cast 'Heal'352                else353                    cast 'Greater Heal'                354                endif355                wait 50356                if hp = maxhp357                    hotkey '> Interrupt'358                    break359                endif360            endwhile361            if targetexists 'beneficial'362                hotkey 'Target Self'363            endif364        endif365        366        if poisoned367            #overhead "Were poisoned"368            if findtype "Orange Potion" backpack369                while poisoned and findtype "Orange Potion" backpack kpot 370                dclick pot371                wait 100372                endwhile373            else374                375                if not poisoned376                      hotkey '> Interrupt'377                      replay378                else379                    overhead "Casting Cure"380                   while poisoned and diffhits <= 30 and not targetexists 381                        cast 'Cure'382                        wait 50383                    endwhile384                endif 385                386                if targetexists387                    target self388                    wait 500389                endif390                391            endif392        endif393// make sure we have enough symbols to summon (6 for wither + vengful spirit)394if skill "Necromancy" >= 90 and requireWitherBeforeSummons = 1395    while followers < 4 and 6 > necroSymbols396        // we already have vengeful spirit active, skip the check397        if timer vengefulSpiritTimer < cdVengefulSpirit398           break399        endif400        401        402            403        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam404            overhead "waiting for symbols" 88405            settimer preventOverheadSpamTimer 0406        endif407        if gumpexists 622436516 and skill "Necromancy" >= 50408            if ingump "12/" 622436516409                @setvar! necroSymbols 12410            elseif ingump "13/" 622436516411                @setvar! necroSymbols 13412            elseif ingump "14/" 622436516413                @setvar! necroSymbols 14414            elseif ingump "15/" 622436516415                @setvar! necroSymbols 15416            elseif ingump "16/" 622436516417                @setvar! necroSymbols 16418            elseif ingump "17/" 622436516419                @setvar! necroSymbols 17420            elseif ingump "18/" 622436516421                @setvar! necroSymbols 18422            elseif ingump "19/" 622436516423                @setvar! necroSymbols 19424            elseif ingump "20/" 622436516425                @setvar! necroSymbols 20426            elseif ingump "21/" 622436516427                @setvar! necroSymbols 21428            elseif ingump "11/" 622436516429                @setvar! necroSymbols 11430            elseif ingump "10/" 622436516431                @setvar! necroSymbols 10432            elseif ingump "9/" 622436516433                @setvar! necroSymbols 9434            elseif ingump "8/" 622436516435                @setvar! necroSymbols 8436            elseif ingump "7/" 622436516437                @setvar! necroSymbols 7438            elseif ingump "6/" 622436516439                @setvar! necroSymbols 6440            elseif ingump "5/" 622436516441                @setvar! necroSymbols 5442            elseif ingump "4/" 622436516443                @setvar! necroSymbols 4444            elseif ingump "3/" 622436516445                @setvar! necroSymbols 3446            elseif ingump "2/" 622436516447                @setvar! necroSymbols 2448            elseif ingump "1/" 622436516449                @setvar! necroSymbols 1450            elseif ingump "0/" 622436516451                @setvar! necroSymbols 0452            endif453        endif454    endwhile455endif456 457 458if not varexist lichOne459    @setvar! lichOne 0460endif461 462if not varexist lichTwo463    @setvar! lichTwo 0464endif465 466if not varexist earthOne467    @setvar! earthOne 0468endif469 470if not varexist earthTwo471    @setvar! earthTwo 0472endif473 474if lichOne = creatureOne or lichTwo = creatureOne or earthOne = creatureOne or earthTwo = creatureOne475    overhead "Duplicated"476    unsetvar creatureOne477endif478 479if diffhits >= 30480    if targetexists 481        hotkey 'Cancel Current Target'482    endif483    while not targetexists 'beneficial'484        if diffhits >= 60485            cast 'Heal'486        else487            cast 'Greater Heal'                488        endif489        wait 50490        if hp = maxhp491            hotkey '> Interrupt'492            break493        endif494    endwhile495    if targetexists 'beneficial'496        target self497    endif498    replay499endif500 501 502if castSummonEarthElementalCount > 0503    if diffhits < 30504        if followers = 0505            @setvar! followCount 0506        elseif followers = 1507            @setvar! followCount 1508        elseif followers = 2509            @setvar! followCount 2510        elseif followers = 3511            @setvar! followCount 3512        elseif followers = 4513            @setvar! followCount 4514        elseif followers = 5515            @setvar! followCount 5516        endif517        if dead earthOne or not find earthOne ground -1 -1 12518            if followers < 4519                while mana < 50520                    if diffhits >= 30521                        replay522                    endif523                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam524                        overhead "waiting for mana" 88525                        settimer preventOverheadSpamTimer 0526                    endif527                    if not findbuff "Actively Meditating"528                        useskill "meditation"529                    endif530                    wait 200531                endwhile532                533                if castSummonEarthElementalAsMummy = 1534                    if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50535                        yell "[VengefulSpirit"536                        settimer vengefulSpiritTimer 0537                        wait 500538                    endif539                elseif timer vengefulSpiritTimer <= cdVengefulSpirit and skill "Necromancy" >= 50540                    overhead  "Waiting for spirit to go away" 541                    replay542                endif543                while followers = followCount544                    cast "Earth elemental"545                    wait 500546                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95547                        yell "[Wither"548                        settimer witherTimer 0549                    endif550                    if diffhits >= 30551                        hotkey '> Interrupt'552                        break553                    endif554                endwhile555                // 158 - an ancient mummy556                // 14 - an earth elemental557                if findtype 158|14 ground -1 -1 6 as myPet558                    if noto myPet = "friend" and list petNameList > 0559                        overhead "Renaming..."560                        foreach petName in petNameList561                            rename myPet petName562                            break563                        endfor564                        poplist petNameList "front"565                    endif566                    @setvar! earthOne myPet567                    say "all guard me"568                    replay569                endif570            endif571        endif572    endif573    574    if diffhits < 30 and castSummonEarthElementalCount > 1575        if followers = 0576            @setvar! followCount 0577        elseif followers = 1578            @setvar! followCount 1579        elseif followers = 2580            @setvar! followCount 2581        elseif followers = 3582            @setvar! followCount 3583        elseif followers = 4584            @setvar! followCount 4585        elseif followers = 5586            @setvar! followCount 5587        endif588        if dead earthTwo or not find earthTwo ground -1 -1 12589            if followers < 4590                while mana < 50591                    if diffhits >= 30592                        replay593                    endif594                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam595                        overhead "waiting for mana" 88596                        settimer preventOverheadSpamTimer 0597                    endif598                    if not findbuff "Actively Meditating"599                        useskill "meditation"600                    endif601                    wait 200602                endwhile603                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50604                    yell "[VengefulSpirit"605                    settimer vengefulSpiritTimer 0606                    wait 500607                endif608                while followers = followCount609                    cast "Earth elemental"610                    wait 500611                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95612                        yell "[Wither"613                        settimer witherTimer 0614                    endif615                    if diffhits >= 30616                        hotkey '> Interrupt'617                        break618                    endif619                endwhile620                // 158 - an ancient mummy621                // 14 - an earth elemental622                if findtype 158|14 ground -1 -1 6 as myPet623                    if noto myPet = "friend" and list petNameList > 0624                        overhead "Renaming..."625                        foreach petName in petNameList626                            rename myPet petName627                            break628                        endfor629                        poplist petNameList "front"630                    endif631                    @setvar! earthTwo myPet632                    say "all guard me"633                    #replay634                endif635            endif636        endif637    endif638endif639 640 641if castSummonFireElementalCount > 0642    if diffhits < 30643    644        if lichOne = 0 645            // do nothing646        elseif lichOne = lichTwo647            overhead "Duplicated"648            unsetvar lichOne649        endif650        651        if followers = 0652            @setvar! followCount 0653        elseif followers = 1654            @setvar! followCount 1655        elseif followers = 2656            @setvar! followCount 2657        elseif followers = 3658            @setvar! followCount 3659        elseif followers = 4660            @setvar! followCount 4661        elseif followers = 5662            @setvar! followCount 5663        endif664        if dead lichOne or not find lichOne ground -1 -1 12 or dead lichTwo665            if followers < 4666                while mana < 50667                    if diffhits >= 30668                        replay669                    endif670                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam671                        overhead "waiting for mana" 88672                        settimer preventOverheadSpamTimer 0673                    endif674                    if not findbuff "Actively Meditating"675                        useskill "meditation"676                    endif677                    wait 200678                endwhile679                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50680                    yell "[VengefulSpirit"681                    settimer vengefulSpiritTimer 0682                    wait 500683                endif684                @ignore lichTwo685                while followers = followCount686                    if targetexists 687                        hotkey 'Cancel Current Target'688                endif689                    cast "fire elemental"690                    wait 500691                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95692                        yell "[Wither"693                        settimer witherTimer 0694                    endif695                    if diffhits >= 30696                        hotkey '> Interrupt'697                        break698                    endif699                endwhile700                // 24 - a lich701                // 15 - a fire elemental702                if findtype 24|15 ground -1 -1 6 as myPet703                    if noto myPet = "friend" and list petNameList > 0704                        overhead "Renaming..."705                        foreach petName in petNameList706                            rename myPet petName707                            break708                        endfor709                        poplist petNameList "front"710                    endif711                    @setvar! lichOne myPet712                    overhead "Lich One Set" 88 lichOne713                    say "all guard me"714                    @clearignore 715                    #replay716                endif717            endif718        endif719    endif720    721    if diffhits < 30 and castSummonFireElementalCount > 1722        if followers = 0723            @setvar! followCount 0724        elseif followers = 1725            @setvar! followCount 1726        elseif followers = 2727            @setvar! followCount 2728        elseif followers = 3729            @setvar! followCount 3730        elseif followers = 4731            @setvar! followCount 4732        elseif followers = 5733            @setvar! followCount 5734        endif735        if dead lichTwo or not find lichTwo ground -1 -1 12 or dead lichOne736            if followers < 4737                while mana < 50738                    if diffhits >= 30739                        replay740                    endif741                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam742                        overhead "waiting for mana" 88743                        settimer preventOverheadSpamTimer 0744                    endif745                    if not findbuff "Actively Meditating"746                        useskill "meditation"747                    endif748                    wait 200749                endwhile750                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50751                    yell "[VengefulSpirit"752                    settimer vengefulSpiritTimer 0753                    wait 500754                endif755                @ignore lichOne756                while followers = followCount757                     if targetexists 758                        hotkey 'Cancel Current Target'759                     endif760                    cast "fire elemental"761                    wait 500762                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95763                        yell "[Wither"764                        settimer witherTimer 0765                    endif766                    if diffhits >= 30767                        hotkey '> Interrupt'768                        break769                    endif770                endwhile771                // 24 - a lich772                // 15 - a fire elemental773                if findtype 24|15 ground -1 -1 6 as myPet774                    if noto myPet = "friend" and list petNameList > 0775                        overhead "Renaming..."776                        foreach petName in petNameList777                            rename myPet petName778                            break779                        endfor780                        poplist petNameList "front"781                    endif782                    @clearignore783                    @setvar! lichTwo myPet784                    overhead "Lich Two Set" 88 lichTwo785                    say "all guard me"786                    #replay787                endif788                789            endif790        endif791    endif792endif793 794if castSummonCreatureCount = 0795    // do nothing796elseif castSummonCreatureCount = 1 and not dead creatureOne797    // do nothing798elseif castSummonCreatureCount = 1799    if followers = 4 and diffhits < 30800        if followers = 0801            @setvar! followCount 0802        elseif followers = 1803            @setvar! followCount 1804        elseif followers = 2805            @setvar! followCount 2806        elseif followers = 3807            @setvar! followCount 3808        elseif followers = 4809            @setvar! followCount 4810        elseif followers = 5811            @setvar! followCount 5812        endif813        while mana < 14814            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam815                overhead "waiting for mana" 88816                settimer preventOverheadSpamTimer 0817            endif818            if diffhits >= 30819                replay820            endif821            if not findbuff "Actively Meditating"822                useskill "meditation"823            endif824            wait 200825        endwhile826        if timer vengefulSpiritTimer >= cdVengefulSpirit827            yell "[VengefulSpirit"828            settimer vengefulSpiritTimer 0829            wait 200830        endif831        while followers = followCount832                 if targetexists 833                        hotkey 'Cancel Current Target'834                endif835            cast 'Summ. Creature'836            wait 500837            if diffhits >= 30838                hotkey '> Interrupt'839                replay840            endif841        endwhile        842        say "all guard me"843    endif844else845    for 6846        if index = 0847            // do nothing848        else849            if diffhits < 30850                @setvar! needToSummon 0851                if index = 1852                    if dead creatureOne or not find creatureOne ground -1 -1 12853                        @setvar! needToSummon 1854                    endif855                elseif index = 2856                    if dead creatureTwo or not find creatureTwo ground -1 -1 12857                        @setvar! needToSummon 1858                    endif859                elseif index = 3860                    if dead creatureThree or not find creatureThree ground -1 -1 12861                        @setvar! needToSummon 1862                    endif863                elseif index = 4864                    if dead creatureFour or not find creatureFour ground -1 -1 12865                        @setvar! needToSummon 1866                    endif867                elseif index = 5868                    if dead creatureFive or not find creatureFive ground -1 -1 12869                        @setvar! needToSummon 1870                    endif871                endif872            873                if needToSummon = 1874                    if followers = 0875                        @setvar! followCount 0876                    elseif followers = 1877                        @setvar! followCount 1878                    elseif followers = 2879                        @setvar! followCount 2880                    elseif followers = 3881                        @setvar! followCount 3882                    elseif followers = 4883                        @setvar! followCount 4884                    elseif followers = 5885                        @setvar! followCount 5886                    endif887                   888                    while mana < 50889                        if diffhits >= 30890                            replay891                        endif892                        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam893                            overhead "waiting for mana" 88894                            settimer preventOverheadSpamTimer 0895                        endif896                        if not findbuff "Actively Meditating"897                            useskill "meditation"898                        endif899                        wait 200900                    endwhile901                    if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50902                        yell "[VengefulSpirit"903                        settimer vengefulSpiritTimer 0904                        wait 500905                    endif906                    while followers = followCount907                        cast "Summ. Creature"908                        wait 500909                        if timer witherTimer >= cdWither and skill "Necromancy" >= 95910                            yell "[Wither"911                            settimer witherTimer 0912                        endif913                        if diffhits >= 30914                            hotkey '> Interrupt'915                            break916                        endif917                    endwhile918                    hotkey 'Next Friendly Monster Target'919                    @setvar! checkLastTarget lasttarget920                    if checkLastTarget = earthOne921                        hotkey 'Next Friendly Monster Target'922                        @setvar! checkLastTarget lasttarget 923                    endif924                    925                    if checkLastTarget = earthTwo926                       hotkey 'Next Friendly Monster Target'927                       @setvar! checkLastTarget lasttarget 928                    endif929                    930                    if checkLastTarget = lichOne931                       hotkey 'Next Friendly Monster Target'932                       @setvar! checkLastTarget lasttarget 933                    endif934                    935                    if checkLastTarget = lichTwo936                       hotkey 'Next Friendly Monster Target'937                       @setvar! checkLastTarget lasttarget 938                    endif939                    @setvar! creatureOne checkLastTarget940                    941                    if find checkLastTarget ground -1 -1 6 as myPet942                        if noto myPet = "friend" and list petNameList > 0943                            overhead "Renaming..."944                            foreach petName in petNameList945                                rename myPet petName946                                break947                            endfor948                            poplist petNameList "front"949                        endif950                        if index = 1951                            if dead creatureOne or not find creatureOne ground -1 -1 12952                                @setvar! creatureOne myPet953                            endif954                        elseif index = 2955                            if dead creatureTwo or not find creatureTwo ground -1 -1 12956                                @setvar! creatureTwo myPet957                            endif958                        elseif index = 3959                            if dead creatureThree or not find creatureThree ground -1 -1 12960                                @setvar! creatureThree myPet961                            endif962                        elseif index = 4963                            if dead creatureFour or not find creatureFour ground -1 -1 12964                                @setvar! creatureFour myPet965                            endif966                        elseif index = 5967                            if dead creatureFive or not find creatureFive ground -1 -1 12968                                @setvar! creatureFive myPet969                            endif970                        endif971                    endif972                endif973            endif974        endif975        if index = castSummonCreatureCount976            break977        endif978    endfor979endif980 981# Eat food if we got it982if not findbuff "food" and findtype "tray" backpack as jood983    dclick jood984    wait 200985endif986 987# Use Taste ID if possible988if skill "Taste Identification" >= 50 and not findbuff "herb" and timer meditiationTimer >= 11000 989    useskill 'tasteidentification'990    wft 500991    target backpack992    settimer meditiationTimer 0993endif994 995if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 1996    say "all kill"997    wait 200998    while targetexists 999        // wait1000        wait 501001    endwhile1002else1003    hotkey 'Target Closest Non-Friendly Monster'1004    wait 2001005    1006 1007    if insysmsg "No one matching that was found" 1008        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1009            overhead "found no one" 341010            settimer preventOverheadSpamTimer 01011        endif1012        if autoBotEnabled = 11013            wait 5001014            replay1015        endif1016        stop1017            1018        elseif not find lasttarget ground -1 -1 91019        overhead "� � OUT OF RANGE � �" 88 lasttarget1020        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1021            overhead "Move closer, more then 9 tiles away" 341022            settimer preventOverheadSpamTimer 01023        endif1024        if patrolPetEvenIfLastTargetIsBeyondEightTiles = 1 and find myEarthPet ground -1 -1 121025            menu myEarthPet 21026            wft 5001027            target lasttarget1028        endif1029        1030        if autoBotEnabled = 11031            wait 5001032            replay1033        endif1034        stop1035    else1036        overhead "� �� HERE �� �" 88 lasttarget1037    endif    1038endif1039 1040 1041 @setvar myKillTarget lasttarget 1042 1043 1044getlabel myKillTarget descPet1045#overhead descPet1046 1047if "(summoned)" in descPet or "(bonded)" in descPet1048    overhead "Player pet, replaying..."1049    replay1050endif1051    1052 1053if not varexist myPreviousKillTarget1054    @setvar myPreviousKillTarget 0     1055endif1056 1057getlabel myKillTarget desc1058overhead desc myKillTarget1059 1060 1061if not varexist myEarthPet or dead myEarthPet1062    if not dead earthOne1063        @setvar! myEarthPet earthOne1064    elseif not dead earthTwo1065        @setvar! myEarthPet earthTwo1066    endif1067endif1068 1069if find myEarthPet ground -1 -1 121070    menu myEarthPet 21071    wft 5001072    target myKillTarget1073endif1074 1075#target myKillTarget1076say 'all kill'1077wft 2001078target myKillTarget1079 1080if diffhits >= 30 and mana > 121081    while not targetexists1082        if diffhits >= 601083            cast 'Heal'1084        else1085            cast 'Greater Heal'                1086        endif1087        wait 501088        if hp = maxhp1089            hotkey '> Interrupt'1090            break1091        endif1092    endwhile1093    if targetexists1094        target self1095    endif1096elseif castBless = 1 and str <= 100 and followers >= 4 1097    while not targetexists and mana > 121098        cast 'Bless'1099        wait 501100        if diffhits >= 301101            hotkey '> Interrupt'1102            break1103        endif1104    endwhile1105    if targetexists1106        target self1107    endif1108endif1109 1110if not listexists myCursedTargets1111    createlist myCursedTargets1112endif1113 1114if not listexists myManaDrainTargets1115    createlist myManaDrainTargets1116endif1117 1118if find myKillTarget -1 -1 12 as killy1119    if myKillTarget = myPreviousKillTarget1120        // do nothing1121    else1122        1123        // Herding using crook1124        if skill "Herding" > 0 and findtype 3713 backpack as jrook1125            dclick jrook1126            wft 5001127            target killy1128        endif1129 1130        if inlist myManaDrainTargets myKillTarget1131            overhead "We already mana drained this guy" 881132            // do nothing1133        elseif castManadrain = 01134            // do nothing 1135        elseif followers >= 4 1136            while not targetexists and not dead myKillTarget1137                if diffhits < 301138                    cast 'mana drain'1139                    wait 501140                elseif diffhits >= 30 1141                    hotkey '> Interrupt'1142                    break1143                endif1144            endwhile1145            if targetexists1146                target myKillTarget1147                pushlist myManaDrainTargets myKillTarget1148                settimer killTargetTimer 01149                wait 5001150            endif1151        endif1152        1153        if inlist myCursedTargets myKillTarget1154            overhead "We already cursed this guy" 881155            // do nothing1156        elseif castCurse = 01157            // do nothing1158        elseif followers >= 4 1159            1160            if diffhits < 30 1161            if find myKillTarget ground -1 -1 101162                while not targetexists and not dead myKillTarget and diffhits <= 301163                        cast 'Curse'1164                        wait 501165                    endwhile1166                    else1167                        overhead 'target is more than 10 squares away, get closer to curse'1168                    endif1169                elseif diffhits >= 30 1170                    hotkey '> Interrupt'1171                    break1172                endif1173            1174            if targetexists1175                target myKillTarget1176                pushlist myCursedTargets myKillTarget1177                settimer killTargetTimer 01178                wait 5001179            endif1180        endif1181        @setvar myPreviousKillTarget myKillTarget1182    endif1183else1184    overhead "Out of range" 341185endif1186 1187 1188clearsysmsg 1189 1190say "all guard"1191 1192@setvar! isLethalPoison 01193@setvar! isDiscorded 01194@setvar! isHerded 01195 1196while not dead myKillTarget and find myKillTarget -1 -1 12 as killy1197 1198    for 51199        // lost a follower1200        if followers < 41201            overhead 'lost a pet'1202            replay1203        endif1204    1205        if dead myKillTarget1206            break1207        elseif insysmsg "Target cannot be seen." 1208            overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341209            replay1210        elseif find myKillTarget -1 -1 12 as killy1211            // do nothing - in range to kill1212        else1213            break1214        endif1215    1216        if skill "Herding" > 0 and isHerded = 0 and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook1217            dclick jrook1218            wft 5001219            target myKillTarget1220            settimer meditiationTimer 80001221            @setvar! isHerded 11222        endif1223        1224        if gumpexists 622436516 and skill "Necromancy" >= 501225            if ingump "12/" 6224365161226                @setvar! necroSymbols 121227            elseif ingump "13/" 6224365161228                @setvar! necroSymbols 131229            elseif ingump "14/" 6224365161230                @setvar! necroSymbols 141231            elseif ingump "15/" 6224365161232                @setvar! necroSymbols 151233            elseif ingump "16/" 6224365161234                @setvar! necroSymbols 161235            elseif ingump "17/" 6224365161236                @setvar! necroSymbols 171237            elseif ingump "18/" 6224365161238                @setvar! necroSymbols 181239            elseif ingump "19/" 6224365161240                @setvar! necroSymbols 191241            elseif ingump "20/" 6224365161242                @setvar! necroSymbols 201243            elseif ingump "21/" 6224365161244                @setvar! necroSymbols 211245            elseif ingump "11/" 6224365161246                @setvar! necroSymbols 111247            elseif ingump "10/" 6224365161248                @setvar! necroSymbols 101249            elseif ingump "9/" 6224365161250                @setvar! necroSymbols 91251            elseif ingump "8/" 6224365161252                @setvar! necroSymbols 81253            elseif ingump "7/" 6224365161254                @setvar! necroSymbols 71255            elseif ingump "6/" 6224365161256                @setvar! necroSymbols 61257            elseif ingump "5/" 6224365161258                @setvar! necroSymbols 51259            elseif ingump "4/" 6224365161260                @setvar! necroSymbols 41261            elseif ingump "3/" 6224365161262                @setvar! necroSymbols 31263            elseif ingump "2/" 6224365161264                @setvar! necroSymbols 21265            elseif ingump "1/" 6224365161266                @setvar! necroSymbols 11267            elseif ingump "0/" 6224365161268                @setvar! necroSymbols 01269            endif1270        endif1271        1272        if skill "Discordance" >= 50 1273            if isDiscorded = 01274                getlabel myKillTarget discordDesc1275                if "discord" in discordDesc1276                    @setvar! isDiscorded 11277                elseif timer meditiationTimer >= 11000 1278                    useskill 'Discordance'1279                    wft 5001280                    if insysmsg "What instrument"1281                        if findtype "bamboo flute" backpack as inny1282                            target inny1283                        elseif findtype "tambourine" backpack as inny1284                            target inny1285                        elseif findtype "drum" backpack as inny1286                            target inny1287                        elseif findtype "lute" backpack as inny1288                            target inny1289                        elseif findtype "harp" backpack as inny1290                            target inny1291                        elseif findtype "lap harp" backpack as inny1292                            target inny1293                        else1294                            overhead "I do not have an inny" 341295                            @setvar! isDiscorded 11296                        endif1297                        wft 5001298                    endif1299                    if targetexists 1300                        target myKillTarget1301                        overhead "Discorded" 88 myKillTarget1302                    endif1303                    settimer meditiationTimer 50001304                endif1305            endif1306            1307            if not findbuff "song of discordance" and timer meditiationTimer >= 110001308                useskill 'Discordance'1309                wft 5001310                if insysmsg "What instrument"1311                    if findtype "bamboo flute" backpack as inny1312                        target inny1313                    elseif findtype "tambourine" backpack as inny1314                        target inny1315                    elseif findtype "drum" backpack as inny1316                        target inny1317                    elseif findtype "lute" backpack as inny1318                        target inny1319                    elseif findtype "harp" backpack as inny1320                        target inny1321                    elseif findtype "lap harp" backpack as inny1322                        target inny1323                    else1324                        overhead "I do not have an inny" 341325                        @setvar! isDiscorded 11326                    endif1327                    wft 5001328                endif1329                target backpack1330                settimer meditiationTimer 01331            endif    1332        endif1333 1334        if castMagicShield = 1 and timer magicShieldTimer >= cdMagicShield and not findbuff "Magic Reflection"1335            cast "Magic Reflection"1336            wait 10001337        elseif drinkMagicResistPot = 1 and not findbuff "Magic Reflection" and not findbuff "Magic Resist Potion" and findtype "Black Potion" backpack as pot1338            dclick pot1339            wait 2001340        endif1341 1342        if findbuff "Magic Reflection"1343            settimer magicShieldTimer 01344        endif1345        1346        if castReactiveArmor = 1 and timer reactiveArmorTimer >= cdReactiveArmor and not findbuff "Reactive Armor"1347            cast "Reactive Armor"1348            wait 2001349        endif1350 1351        if findbuff "Reactive Armor"1352            settimer reactiveArmorTimer 01353        endif1354        1355        if skill "poisoning" >= 100 or castPoisonAnyway = 11356            if timer meditiationTimer >= cdMeditationMini1357                if castMindRot = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer mindRotTimer >= cdMindRot and skill "Necromancy" >= 75 and 3 < necroSymbols 1358                    yell "[MindRot"1359                    settimer preventSpamNecroAbilitiesTimer 01360                    settimer mindRotTimer 01361                    wait 5001362                    if gumpexists 6224365161363                        if ingump "12/" 6224365161364                            @setvar! necroSymbols 121365                        elseif ingump "13/" 6224365161366                            @setvar! necroSymbols 131367                        elseif ingump "14/" 6224365161368                            @setvar! necroSymbols 141369                        elseif ingump "15/" 6224365161370                            @setvar! necroSymbols 151371                        elseif ingump "16/" 6224365161372                            @setvar! necroSymbols 161373                        elseif ingump "17/" 6224365161374                            @setvar! necroSymbols 171375                        elseif ingump "18/" 6224365161376                            @setvar! necroSymbols 181377                        elseif ingump "19/" 6224365161378                            @setvar! necroSymbols 191379                        elseif ingump "20/" 6224365161380                            @setvar! necroSymbols 201381                        elseif ingump "21/" 6224365161382                            @setvar! necroSymbols 211383                        elseif ingump "11/" 6224365161384                            @setvar! necroSymbols 111385                        elseif ingump "10/" 6224365161386                            @setvar! necroSymbols 101387                        elseif ingump "9/" 6224365161388                            @setvar! necroSymbols 91389                        elseif ingump "8/" 6224365161390                            @setvar! necroSymbols 81391                        elseif ingump "7/" 6224365161392                            @setvar! necroSymbols 71393                        elseif ingump "6/" 6224365161394                            @setvar! necroSymbols 61395                        elseif ingump "5/" 6224365161396                            @setvar! necroSymbols 51397                        elseif ingump "4/" 6224365161398                            @setvar! necroSymbols 41399                        elseif ingump "3/" 6224365161400                            @setvar! necroSymbols 31401                        elseif ingump "2/" 6224365161402                            @setvar! necroSymbols 21403                        elseif ingump "1/" 6224365161404                            @setvar! necroSymbols 11405                        elseif ingump "0/" 6224365161406                            @setvar! necroSymbols 01407                        endif1408                    endif1409                endif1410                1411                                1412                getlabel myKillTarget desc21413                overhead desc21414                1415                if castPoisonStrike = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer poisonStrikeTimer >= cdPoisonStrike and skill "Necromancy" >= 55 and 1 < necroSymbols 1416                    if "Ticks" in desc21417                        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 1418                            yell "[PoisonStrike"1419                            wft 5001420                            target myKillTarget1421                            wait 2001422                            settimer preventSpamNecroAbilitiesTimer 01423                            settimer poisonStrikeTimer 01424                            wait 5001425                            if gumpexists 6224365161426                                if ingump "12/" 6224365161427                                    @setvar! necroSymbols 121428                                elseif ingump "13/" 6224365161429                                    @setvar! necroSymbols 131430                                elseif ingump "14/" 6224365161431                                    @setvar! necroSymbols 141432                                elseif ingump "15/" 6224365161433                                    @setvar! necroSymbols 151434                                elseif ingump "16/" 6224365161435                                    @setvar! necroSymbols 161436                                elseif ingump "17/" 6224365161437                                    @setvar! necroSymbols 171438                                elseif ingump "18/" 6224365161439                                    @setvar! necroSymbols 181440                                elseif ingump "19/" 6224365161441                                    @setvar! necroSymbols 191442                                elseif ingump "20/" 6224365161443                                    @setvar! necroSymbols 201444                                elseif ingump "21/" 6224365161445                                    @setvar! necroSymbols 211446                                elseif ingump "11/" 6224365161447                                    @setvar! necroSymbols 111448                                elseif ingump "10/" 6224365161449                                    @setvar! necroSymbols 101450                                elseif ingump "9/" 6224365161451                                    @setvar! necroSymbols 91452                                elseif ingump "8/" 6224365161453                                    @setvar! necroSymbols 81454                                elseif ingump "7/" 6224365161455                                    @setvar! necroSymbols 71456                                elseif ingump "6/" 6224365161457                                    @setvar! necroSymbols 61458                                elseif ingump "5/" 6224365161459                                    @setvar! necroSymbols 51460                                elseif ingump "4/" 6224365161461                                    @setvar! necroSymbols 41462                                elseif ingump "3/" 6224365161463                                    @setvar! necroSymbols 31464                                elseif ingump "2/" 6224365161465                                    @setvar! necroSymbols 21466                                elseif ingump "1/" 6224365161467                                    @setvar! necroSymbols 11468                                elseif ingump "0/" 6224365161469                                    @setvar! necroSymbols 01470                                endif1471                            endif1472                        endif1473                    endif1474                endif1475                1476                1477                1478                if isLethalPoison = 01479                    1480                    if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy1481                        overhead "Eating shrooms" 661482                        dclick mushy1483                        settimer magicMushroomTimer 01484                    endif1485                1486                    if insysmsg "Target cannot be seen." 1487                        overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341488                        replay1489                    endif 1490 1491                    // poison lethal1492                    if "Lethal" in desc21493                        @setvar! isLethalPoison 11494                        break1495                    elseif castPoisonAnyway = 1 and "Ticks" in desc21496                        @setvar! isLethalPoison 11497                        break1498                    elseif castPoisonAnyway = 1 and "Poison" in desc21499                        @setvar! isLethalPoison 11500                        break1501                    elseif diffhits >= 30 1502                        // need a heal1503                        break1504                    elseif mana >= 91505                        while not targetexists1506                            cast 'poison'1507                            wait 501508                            if dead myKillTarget1509                                hotkey '> Interrupt'1510                                replay1511                            endif1512                        endwhile1513                        target myKillTarget1514                        wait 2001515                        if insysmsg "Target cannot be seen." 1516                             overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341517                             @setvar! isLethalPoison 11518                        endif 1519                    else1520                        wait 2001521                    endif1522                endif1523            endif1524        endif1525        1526        if castCorpseSkin = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer corpseSkinTimer >= cdCorpseSkin and skill "Necromancy" >= 65 and timer meditiationTimer >= cdMeditationMini and 2 < necroSymbols1527            yell "[CorpseSkin"1528            settimer preventSpamNecroAbilitiesTimer 01529            settimer corpseSkinTimer 01530            cooldown CorpseSkin cdCorpseSkin1531            wait 5001532            if gumpexists 6224365161533                if ingump "12/" 6224365161534                    @setvar! necroSymbols 121535                elseif ingump "13/" 6224365161536                    @setvar! necroSymbols 131537                elseif ingump "14/" 6224365161538                    @setvar! necroSymbols 141539                elseif ingump "15/" 6224365161540                    @setvar! necroSymbols 151541                elseif ingump "16/" 6224365161542                    @setvar! necroSymbols 161543                elseif ingump "17/" 6224365161544                    @setvar! necroSymbols 171545                elseif ingump "18/" 6224365161546                    @setvar! necroSymbols 181547                elseif ingump "19/" 6224365161548                    @setvar! necroSymbols 191549                elseif ingump "20/" 6224365161550                    @setvar! necroSymbols 201551                elseif ingump "21/" 6224365161552                    @setvar! necroSymbols 211553                elseif ingump "11/" 6224365161554                    @setvar! necroSymbols 111555                elseif ingump "10/" 6224365161556                    @setvar! necroSymbols 101557                elseif ingump "9/" 6224365161558                    @setvar! necroSymbols 91559                elseif ingump "8/" 6224365161560                    @setvar! necroSymbols 81561                elseif ingump "7/" 6224365161562                    @setvar! necroSymbols 71563                elseif ingump "6/" 6224365161564                    @setvar! necroSymbols 61565                elseif ingump "5/" 6224365161566                    @setvar! necroSymbols 51567                elseif ingump "4/" 6224365161568                    @setvar! necroSymbols 41569                elseif ingump "3/" 6224365161570                    @setvar! necroSymbols 31571                elseif ingump "2/" 6224365161572                    @setvar! necroSymbols 21573                elseif ingump "1/" 6224365161574                    @setvar! necroSymbols 11575                elseif ingump "0/" 6224365161576                    @setvar! necroSymbols 01577                endif1578            endif1579        endif1580            1581        if castBloodOath = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer bloodOathTimer >= cdBloodOath and 5 < necroSymbols1582            yell "[BloodOath"1583            settimer preventSpamNecroAbilitiesTimer 01584            settimer bloodOathTimer 01585            if gumpexists 6224365161586                if ingump "12/" 6224365161587                    @setvar! necroSymbols 121588                elseif ingump "13/" 6224365161589                    @setvar! necroSymbols 131590                elseif ingump "14/" 6224365161591                    @setvar! necroSymbols 141592                elseif ingump "15/" 6224365161593                    @setvar! necroSymbols 151594                elseif ingump "16/" 6224365161595                    @setvar! necroSymbols 161596                elseif ingump "17/" 6224365161597                    @setvar! necroSymbols 171598                elseif ingump "18/" 6224365161599                    @setvar! necroSymbols 181600                elseif ingump "19/" 6224365161601                    @setvar! necroSymbols 191602                elseif ingump "20/" 6224365161603                    @setvar! necroSymbols 201604                elseif ingump "21/" 6224365161605                    @setvar! necroSymbols 211606                elseif ingump "11/" 6224365161607                    @setvar! necroSymbols 111608                elseif ingump "10/" 6224365161609                    @setvar! necroSymbols 101610                elseif ingump "9/" 6224365161611                    @setvar! necroSymbols 91612                elseif ingump "8/" 6224365161613                    @setvar! necroSymbols 81614                elseif ingump "7/" 6224365161615                    @setvar! necroSymbols 71616                elseif ingump "6/" 6224365161617                    @setvar! necroSymbols 61618                elseif ingump "5/" 6224365161619                    @setvar! necroSymbols 51620                elseif ingump "4/" 6224365161621                    @setvar! necroSymbols 41622                elseif ingump "3/" 6224365161623                    @setvar! necroSymbols 31624                elseif ingump "2/" 6224365161625                    @setvar! necroSymbols 21626                elseif ingump "1/" 6224365161627                    @setvar! necroSymbols 11628                elseif ingump "0/" 6224365161629                    @setvar! necroSymbols 01630                endif1631            endif1632        endif1633        1634        1635        if castEvilOmen = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer evilOmenTimer >= cdEvilOmen and skill "Necromancy" >= 60 and timer meditiationTimer >= cdMeditationMini and 2 < necroSymbols1636            yell "[EvilOmen"1637            settimer evilOmenTimer 01638            settimer preventSpamNecroAbilitiesTimer 01639            cooldown EvilOmen cdEvilOmen1640            wait 5001641            if gumpexists 6224365161642                if ingump "12/" 6224365161643                    @setvar! necroSymbols 121644                elseif ingump "13/" 6224365161645                    @setvar! necroSymbols 131646                elseif ingump "14/" 6224365161647                    @setvar! necroSymbols 141648                elseif ingump "15/" 6224365161649                    @setvar! necroSymbols 151650                elseif ingump "16/" 6224365161651                    @setvar! necroSymbols 161652                elseif ingump "17/" 6224365161653                    @setvar! necroSymbols 171654                elseif ingump "18/" 6224365161655                    @setvar! necroSymbols 181656                elseif ingump "19/" 6224365161657                    @setvar! necroSymbols 191658                elseif ingump "20/" 6224365161659                    @setvar! necroSymbols 201660                elseif ingump "21/" 6224365161661                    @setvar! necroSymbols 211662                elseif ingump "11/" 6224365161663                    @setvar! necroSymbols 111664                elseif ingump "10/" 6224365161665                    @setvar! necroSymbols 101666                elseif ingump "9/" 6224365161667                    @setvar! necroSymbols 91668                elseif ingump "8/" 6224365161669                    @setvar! necroSymbols 81670                elseif ingump "7/" 6224365161671                    @setvar! necroSymbols 71672                elseif ingump "6/" 6224365161673                    @setvar! necroSymbols 61674                elseif ingump "5/" 6224365161675                    @setvar! necroSymbols 51676                elseif ingump "4/" 6224365161677                    @setvar! necroSymbols 41678                elseif ingump "3/" 6224365161679                    @setvar! necroSymbols 31680                elseif ingump "2/" 6224365161681                    @setvar! necroSymbols 21682                elseif ingump "1/" 6224365161683                    @setvar! necroSymbols 11684                elseif ingump "0/" 6224365161685                    @setvar! necroSymbols 01686                endif1687            endif1688        endif1689        1690        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 jorpse1691            yell "[VampiricEmbrace"1692            wft 5001693            target jorpse1694            settimer preventSpamNecroAbilitiesTimer 01695            settimer vampiricEmbraceTimer 01696            cooldown VampiricEmbrace cdVampiricEmbrace1697            wait 5001698            if gumpexists 6224365161699                if ingump "12/" 6224365161700                    @setvar! necroSymbols 121701                elseif ingump "13/" 6224365161702                    @setvar! necroSymbols 131703                elseif ingump "14/" 6224365161704                    @setvar! necroSymbols 141705                elseif ingump "15/" 6224365161706                    @setvar! necroSymbols 151707                elseif ingump "16/" 6224365161708                    @setvar! necroSymbols 161709                elseif ingump "17/" 6224365161710                    @setvar! necroSymbols 171711                elseif ingump "18/" 6224365161712                    @setvar! necroSymbols 181713                elseif ingump "19/" 6224365161714                    @setvar! necroSymbols 191715                elseif ingump "20/" 6224365161716                    @setvar! necroSymbols 201717                elseif ingump "21/" 6224365161718                    @setvar! necroSymbols 211719                elseif ingump "11/" 6224365161720                    @setvar! necroSymbols 111721                elseif ingump "10/" 6224365161722                    @setvar! necroSymbols 101723                elseif ingump "9/" 6224365161724                    @setvar! necroSymbols 91725                elseif ingump "8/" 6224365161726                    @setvar! necroSymbols 81727                elseif ingump "7/" 6224365161728                    @setvar! necroSymbols 71729                elseif ingump "6/" 6224365161730                    @setvar! necroSymbols 61731                elseif ingump "5/" 6224365161732                    @setvar! necroSymbols 51733                elseif ingump "4/" 6224365161734                    @setvar! necroSymbols 41735                elseif ingump "3/" 6224365161736                    @setvar! necroSymbols 31737                elseif ingump "2/" 6224365161738                    @setvar! necroSymbols 21739                elseif ingump "1/" 6224365161740                    @setvar! necroSymbols 11741                elseif ingump "0/" 6224365161742                    @setvar! necroSymbols 01743                endif1744            endif1745        endif1746        1747        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 jorpse1748            yell "[PainSpike"1749            wft 5001750            target myKillTarget1751            wait 2001752            settimer preventSpamNecroAbilitiesTimer 01753            if insysmsg "You do not see any corpses"1754                // do nothing1755            else1756                settimer painSpikeTimer 01757                cooldown PainSpike cdPainSpike            1758            endif1759            if gumpexists 6224365161760                if ingump "12/" 6224365161761                    @setvar! necroSymbols 121762                elseif ingump "13/" 6224365161763                    @setvar! necroSymbols 131764                elseif ingump "14/" 6224365161765                    @setvar! necroSymbols 141766                elseif ingump "15/" 6224365161767                    @setvar! necroSymbols 151768                elseif ingump "16/" 6224365161769                    @setvar! necroSymbols 161770                elseif ingump "17/" 6224365161771                    @setvar! necroSymbols 171772                elseif ingump "18/" 6224365161773                    @setvar! necroSymbols 181774                elseif ingump "19/" 6224365161775                    @setvar! necroSymbols 191776                elseif ingump "20/" 6224365161777                    @setvar! necroSymbols 201778                elseif ingump "21/" 6224365161779                    @setvar! necroSymbols 211780                elseif ingump "11/" 6224365161781                    @setvar! necroSymbols 111782                elseif ingump "10/" 6224365161783                    @setvar! necroSymbols 101784                elseif ingump "9/" 6224365161785                    @setvar! necroSymbols 91786                elseif ingump "8/" 6224365161787                    @setvar! necroSymbols 81788                elseif ingump "7/" 6224365161789                    @setvar! necroSymbols 71790                elseif ingump "6/" 6224365161791                    @setvar! necroSymbols 61792                elseif ingump "5/" 6224365161793                    @setvar! necroSymbols 51794                elseif ingump "4/" 6224365161795                    @setvar! necroSymbols 41796                elseif ingump "3/" 6224365161797                    @setvar! necroSymbols 31798                elseif ingump "2/" 6224365161799                    @setvar! necroSymbols 21800                elseif ingump "1/" 6224365161801                    @setvar! necroSymbols 11802                elseif ingump "0/" 6224365161803                    @setvar! necroSymbols 01804                endif1805            endif1806        endif1807        1808        if diffhits >= 301809            if findtype "Yellow Potion" backpack as pot 1810                getlabel pot desc1811                if "next usable" in desc1812                    // do nothing1813                else1814                    dclick pot1815                    wait 5001816                endif1817            endif1818 1819            if diffhits >= 30 and mana >= 121820                while not targetexists1821                    if diffhits >= 601822                        cast 'Heal'1823                    else1824                        cast 'Greater Heal'                1825                    endif1826                    wait 501827                    if hp = maxhp1828                        hotkey '> Interrupt'1829                        break1830                    endif1831                endwhile1832                if targetexists1833                    target self1834                    wait 501835                endif1836            endif1837        endif1838        1839        if poisoned1840            overhead "were poisoned"1841            if findtype "Orange Potion" backpack1842                while poisoned and findtype "Orange Potion" backpack as kpot 1843                    dclick kpot1844                    wait 1001845                endwhile1846            else1847                while poisoned and diffhits <= 30 and not targetexists 1848                if not poisoned 1849                        hotkey '> Interrupt'1850                        break1851                    else1852                        cast 'Cure'1853                        wait 501854                    endif 1855                endwhile1856                if targetexists1857                    target self1858                    wait 5001859                endif1860            endif1861        endif1862 1863        if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy1864            overhead "Eating shrooms" 661865            dclick mushy1866            settimer magicMushroomTimer 01867        endif1868        1869        if index = 01870            1871    if castFlamestrike = 1 and mana > 421872        #    while not targetexists and mana > 401873            1874    if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy and not poisoned and timer meditiationTimer >= cdMeditationMini1875                    overhead "Eating shrooms" 661876                    dclick mushy1877                    settimer magicMushroomTimer 01878                endif1879        1880                if followers < 4 or dead myKillTarget or diffhits >= 301881                    hotkey '> Interrupt'1882                    break1883                else1884                    if find myKillTarget ground -1 -1 101885                    while not targetexists and followers >= 4 and not dead myKillTarget and diffhits <= 30 and find myKillTarget ground -1 -1 10 and mana >= 401886                            cast 'Flamestrike'1887                            wait 501888                        endwhile1889                    else1890                        overhead 'Too far away get closer to flamestrike'1891                    endif1892                endif 1893                #endwhile1894            if targetexists1895                target myKillTarget1896                wait 5001897            endif1898        endif1899            1900        elseif index = 11901        1902        if castLightning = 1 and diffhits < 30 and mana >= 12 and timer lightningTimer >= cdLightning and timer meditiationTimer >= cdMeditationMini and not poisoned1903                1904                    if followers < 4 or dead myKillTarget or diffhits >= 301905                        hotkey '> Interrupt'1906                        break1907                    else1908                        if find myKillTarget ground -1 -1 101909                        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   1910                                cast 'Lightning'1911                                wait 501912                            endwhile1913                            else1914                                overhead 'Too far to cast lightning, get closer'1915                         endif1916                    endif 1917                1918                if targetexists1919                    target myKillTarget1920                    settimer lightningTimer 01921                    cooldown Lightning cdLightning1922                    wait 5001923                endif1924            endif1925        1926            elseif index = 21927        1928            if castMagicArrow = 1 and diffhits < 30 and mana >= 5 and timer magicArrowTimer >= cdMagicArrow and timer meditiationTimer >= cdMeditationMini1929                1930                    if followers < 4 or dead myKillTarget or diffhits >= 301931                        hotkey '> Interrupt'1932                        break1933                    else1934                        if find myKillTarget ground -1 -1 101935                        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 >= 51936                            cast 'magic arrow'1937                            wait 501938                            endwhile1939                         else1940                             overhead 'too far away for magic arrow, get closer'1941                         endif1942                    endif 1943                1944                if targetexists1945                    target myKillTarget1946                    settimer magicArrowTimer 01947                    cooldown MagicArrow cdMagicArrow1948                    wait 5001949                endif1950            endif1951            1952            elseif index = 31953                1954            if castHarm = 1 and diffhits < 30 and mana >= 9 and timer harmTimer >= cdHarm and timer meditiationTimer >= cdMeditationMini1955               1956                    if followers < 4 or dead myKillTarget or diffhits >= 301957                        hotkey '> Interrupt'1958                        break1959                    else1960                        if find myKillTarget ground -1 -1 101961                        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 >= 61962                            cast 'harm'1963                            wait 501964                         endwhile1965                        else1966                            overhead 'too far away to cast harm, get closer'1967                        endif1968                    endif 1969                1970                if targetexists1971                    target myKillTarget1972                    settimer harmTimer 01973                    cooldown Harm cdHarm1974                    wait 5001975                endif1976            endif1977            1978            elseif index = 41979                1980            if castFireball = 1 and diffhits < 30 and mana >= 12 and timer fireballTimer >= cdFireball and timer meditiationTimer >= cdMeditationMini1981                1982                    if followers < 4 or dead myKillTarget or diffhits >= 301983                        hotkey '> Interrupt'1984                        break1985                    else1986                        1987                        if find myKillTarget ground -1 -1 101988                            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 >= 91989                                cast 'fireball'1990                                wait 501991                            endwhile1992                        else1993                            overhead 'too far away to fireball, get closer two'1994                        endif1995                    endif 1996                1997                if targetexists1998                    target myKillTarget1999                    settimer fireballTimer 02000                    cooldown Fireball cdFireball2001                    wait 5002002                endif2003            endif2004            2005            elseif index = 52006                2007            if castFireball = 1 and diffhits < 30 and mana >= 12 and timer fireballTimer >= cdFireball and timer meditiationTimer >= cdMeditationMini2008                2009                    if followers < 4 or dead myKillTarget or diffhits >= 302010                        hotkey '> Interrupt'2011                        break2012                    else2013                        if find myKillTarget ground -1 -1 102014                        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 >= 92015                                cast 'fireball'2016                                wait 502017                            endwhile2018                          else2019                              overhead 'too far away to fireball, get closer two'2020                        endif2021                    endif 2022                    2023                if targetexists2024                    target myKillTarget2025                    settimer fireballTimer 02026                    cooldown Fireball cdFireball2027                    wait 5002028                endif2029            endif2030            2031        endif2032    2033    endfor2034   2035    if find myKillTarget -1 -1 12 as killy2036       // do nothing2037    else2038        overhead "Out of range" 342039        break2040    endif2041    2042    2043    if diffhits >= 302044            2045        if findtype "Yellow Potion" backpack as pot 2046            getlabel pot desc2047            if "next usable" in desc2048                // do nothing2049            else2050                dclick pot2051                wait 5002052            endif2053        endif2054 2055        if diffhits >= 30 and mana >= 122056            while not targetexists2057                if diffhits >= 602058                    cast 'Heal'2059                else2060                    cast 'Greater Heal'                2061                endif2062                wait 502063                if hp = maxhp2064                    hotkey '> Interrupt'2065                    break2066                endif2067            endwhile2068            if targetexists2069                target self2070                wait 502071            endif2072        endif2073    elseif mana < 55 and findbuff "actively meditating" 2074        // wait for mana2075    elseif timer meditiationTimer < cdMeditationMini and findbuff "actively meditating" 2076        // wait for mana2077    elseif castMindBlast = 1 and mana >= 322078        while not targetexists and mana > 302079            if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2080                overhead "Eating shrooms" 662081                dclick mushy2082                settimer magicMushroomTimer 02083            endif2084            if followers < 4 or dead myKillTarget or diffhits >= 302085                2086                hotkey '> Interrupt'2087                break2088            else2089                if  find myKillTarget ground -1 -1 102090                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 >= 142091                    cast 'Mind Blast'2092                    wait 502093                endwhile2094                else 2095                    overhead "Out of range, get closer to cast Mind Blast"2096                endif2097            endif 2098        endwhile2099        if targetexists2100            target myKillTarget2101            wait 5002102        endif2103        if castFlamestrike = 1 and mana > 422104            2105            2106                if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2107                    overhead "Eating shrooms" 662108                    dclick mushy2109                    settimer magicMushroomTimer 02110                endif2111        2112                if followers < 4 or dead myKillTarget or diffhits >= 302113                    hotkey '> Interrupt'2114                    break2115                else2116                    if  find myKillTarget ground -1 -1 102117                    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 >= 402118                        cast 'Flamestrike'2119                        wait 502120                    endwhile2121                    else2122                        overhead "Out of Range, get closer to cast Flamestrike 2"2123                    endif2124                endif 2125            2126            if targetexists2127                target myKillTarget2128                wait 5002129            endif2130        endif2131    elseif not findbuff "actively meditating" and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2132        overhead "Eating shrooms" 662133        dclick mushy2134        settimer magicMushroomTimer 02135    elseif not findbuff "actively meditating" and timer meditiationTimer >= cdMeditation2136        say "all guard me"2137        useskill 'meditation'2138        settimer meditiationTimer 02139        wait 5002140    endif2141    wait 502142endwhile2143wait 5002144if targetexists 2145    hotkey 'Cancel Current Target'2146endif2147if not findbuff "actively meditating" 2148    say "all guard me"2149endif2150#while mana < 502151#    if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 02152#    hotkey 'Next Non-Friendly Monster Target'2153#        wait 4002154#        @setvar! myKillNext lasttarget 2155#        getlabel myKillNext descPet22156#        overhead descPet22157#2158#        if "(summoned)" in descPet or "(bonded)" in descPet 2159#            overhead "Player pet, replaying..." 2160#             replay 2161#        endif     2162#        if insysmsg "No one matching that was found"2163#            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam2164#                overhead "no next target" 342165#                settimer preventOverheadSpamTimer 02166#            endif2167#          elseif not find lasttarget ground -1 -1 92168#            overhead "� NEXT TARGET HERE �" 88 lasttarget2169#            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam2170#                overhead "Move closer, more then 9 tiles away" 342171#                settimer preventOverheadSpamTimer 02172#            endif2173#          elseif "(summoned)" in descPet or "(bonded)" in descPet2174#              overhead "Thats a player pet, skipping 2"2175#          endif2176#                2177#        else2178#            overhead "� NEXT TARGET HERE �" 88 lasttarget2179#            say "all guard me"2180#        #attack lasttarget2181#        endif    2182#    endif2183    if diffhits >= 30 and not dead myKillTarget2184        if findtype "Yellow Potion" backpack as pot 2185            getlabel pot desc2186            if "next usable" in desc2187                // do nothing2188            else2189                dclick pot2190                wait 2002191            endif2192        endif2193        if diffhits >= 30 and mana >= 122194            while not targetexists2195                if diffhits >= 602196                    cast 'Heal'2197                else2198                    cast 'Greater Heal'                2199                endif2200                wait 502201                if hp = maxhp2202                    hotkey '> Interrupt'2203                    break2204                endif2205            endwhile2206            if targetexists2207                target self2208                wait 502209            endif2210        endif2211    endif2212    if not findbuff "actively meditating" 2213        useskill 'meditation'2214    endif2215    wait 5002216    #endwhile2217if canYouMakeAMushroom = 1 and counttype "mushroom" backpack < butOnlyIHaveLessThenThisCount2218    while counttype "mushroom" backpack < makeThisManyMushroomsCount2219        cast "Create Food"2220        wait 2002221        if diffhits >= 20 or counttype "mushroom" backpack = 02222            break2223        endif2224    endwhile2225endif2226if castVampiricEmbrace = 1 and timer vampiricEmbraceTimer >= cdVampiricEmbrace and skill "Necromancy" >= 70 and findtype 8198 ground -1 -1 4 as jorpse2227    say "[VampiricEmbrace"2228    wft 5002229    target jorpse2230    settimer vampiricEmbraceTimer 02231    cooldown VampiricEmbrace cdVampiricEmbrace2232endif2233 2234if timer killTargetTimer >= cdKillTarget2235    overhead "We cleared curse and mana drain targets" 342236    removelist myCursedTargets      2237    removelist myManaDrainTargets2238endif2239   2240if autoBotEnabled = 12241    replay2242endif2243 2244// thanks for using a Jaseowns script!2245// https://www.youtube.com/jaseowns2246    2247    2248    2249    2250    2251    2252    2253    2254    2255    2256// We did it