Skip to content
Outlands Hub

Razor script

Poison Necromancer

by Aeos · 2207 lines
Download

One hotkey mage cycle, nox, poison by Jaseowns Added Poisoning Necro logic by Aeos UO Outlands - https://youtu.be/K3bVPhHcInE Cooldowns are live, so this script now attempts to display those Make cooldowns match the names of skills (check…

MagicMeditationDiscordancePoisoning
Poison Necromancer.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/11d78007-5707-4dcf-a972-3bf65150ac9f for latest2# Automation by Jaseowns3## Script: Poison Necromancer4## Created by: Aeos#67985#############################################6 7# One hotkey mage cycle, nox, poison by Jaseowns8# Added Poisoning Necro logic by Aeos9# UO Outlands - https://youtu.be/K3bVPhHcInE10# 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://youtu.be/s8rRk2Bu1jQ)14#15// 12/29/202216// - Added ability to set mana to fight with17// - Added poison necro logic18// 12/16/202219// - Added torch lookup20// 12/14/202221// - Overhead if over certain about of gold22// 12/13/202223// - Added mushroom count checks as a variable (see makeThisManyMushroomsCount)24// - Added a small timer around using necro abilities to prevent usage from not triggering25// - Added follower check before casting spell rotations to save mana for resummon26// 12/12/202227// - Added summon count ability (multiple liches for example)28// - Fixed necro symbol count for death aspect29// 12/11/202230// - Added Necro symbol count and additional necro spells (blood oath, pain spike)31// - Added cast triggers for all the spells - choose your adventures32// - Moved buffs to triggers as well33// - Automatic wither to Necro summon (if correct necro skill)34// 12/10/2022 35// - If you kill a mob and are low mana, we now target the next one and send the pets while med36// 12/9/2022 37// - Added discordance checks38// - Added mushroom usage throughout the script 39// - Better summoning of pets when they die40// - Added customized spam cooldown to prevent overhead spam41// - Make sure herding goes off42// November43// - Add heal to top of script during search of target 44// - made a way to skip certain casts45// 46##################47## Always room for improvment, thanks for watching!48############49 50# Set this to one, if you want to cast poison once no matter what51# If you have 100 poisoning and want Lethal, set this to 052# Set Poison tries to the amount of times to try to upgrade poison53@setvar! castPoisonAnyway 054@setvar! lethalPoisonUpgradeTries 255 56# This will auto replay this script if you want it too57@setvar! autoBotEnabled 158 59# Update this variable to 1 for ALL KILL60# Update this variable to 0 for target nearest61@setvar! setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster 062 63###############64###  Choose your summons65######66@setvar! castSummonFireElementalCount 167@setvar! castSummonCreatureCount 168@setvar! castSummonEarthElementalCount 169 70###############71###  Choose your spells72######73@setvar! castCurse 174@setvar! castManadrain 075@setvar! castLightning 176@setvar! castFireball 177@setvar! castHarm 178@setvar! castMagicArrow 179# When other spells are on cooldown, do you want to cast MindBlast or Flamestrike or both80@setvar! castMindBlast 181@setvar! castFlamestrike 082 83###############84###  Choose your mana amount to fight with85######86@setvar! manaToFight 5087 88### Buffs89@setvar! castBless 190@setvar! castMagicShield 191@setvar! castReactiveArmor 192# Drink Magic resist potion (only if magic shield buff not found)93@setvar! drinkMagicResistPot 094 95###############96###  Choose your necro spells (ignored if less then required necro skill)97######98@setvar! castEvilOmen 199@setvar! castCorpseSkin 1100@setvar! castVampiricEmbrace 1101@setvar! castMindRot 1102@setvar! castBloodOath 1103@setvar! castPainSpike 1104@setvar! castPoisonStrike 1105 106###############107### Edit these cooldowns to match your wizard grimoire108### Eat a mushroom automatically or not - eatMushy109######110@setvar! canYouMakeAMushroom 1111@setvar! eatMushy 1112@setvar! cdLightning 20000113@setvar! cdMagicArrow 20000114@setvar! cdHarm 20000115@setvar! cdFireball 60000116 117###############118### Necro Cooldowns119######120@setvar! cdEvilOmen 30500121@setvar! cdVampiricEmbrace 30500122@setvar! cdCorpseSkin 30500123@setvar! cdMindRot 30500124@setvar! cdWither 30500125@setvar! cdVengefulSpirit 30500126@setvar! cdBloodOath 30500127@setvar! cdPainSpike 30500128@setvar! cdPoisonStrike 30500129 130#### Buff Cooldowns131@setvar! cdMushroom 60000132@setvar! cdMagicShield 60000133@setvar! cdReactiveArmor 60000134@setvar! cdMeditation 10000135@setvar! cdMeditationMini 3000136@setvar! cdKillTarget 60000137 138#### Random cooldowns139@setvar! cdPreventOverheadSpam 2000140 141#### Mushroom count (I like a lot of shroomies)142@setvar! makeThisManyMushroomsCount 15143@setvar! butOnlyIHaveLessThenThisCount 5144 145@setvar! patrolPetEvenIfLastTargetIsBeyondEightTiles 1146 147if counttype "gold coin" backpack as total148    if 10000 < total149        overhead "Warning: {{total}} gold!" 34150    endif151endif152 153if findtype "dungeon torch" backpack as item154    overhead "Holy crap!" 88    155    say "I got one!" 88156    overhead "I got one!" 88157elseif findtype 30580 backpack as item158    overhead "Holy crap!" 88    159    say "I got one!" 88160    overhead "I got one!" 88161endif162    163 164#### Pet Names, unique to you165if not listexists petNameList166    createlist petNameList167endif168if list petNameList = 0169    pushlist petNameList "a"170    pushlist petNameList "b"171    pushlist petNameList "c"172    pushlist petNameList "d"173    pushlist petNameList "e"174    pushlist petNameList "f"175endif176 177 178##################################################################179# 180#   Hopefully you do not have to edit after this :)181#182##################################################################183 184if not varexist JaseOwns185    say "This script was brought to you by youtube.com/Jaseowns" 88186    overhead "uorazorscripts.com" 34187    wait 500188    @setvar! JaseOwns 1189endif190 191if not gumpexists 622436516 and skill "Necromancy" >= 50192    say '[NecromancyHotbar'193    wait 500194endif195 196// Make sure we have a spell book attached197if findlayer self righthand as item198    // do nothing199elseif findtype "3834" backpack as item200    dclick item201else 202    overhead "No book bro!" 34203endif204 205// Setting current necro symbols - checks again it the attack loop206@setvar! necroSymbols 12207if gumpexists 622436516 and skill "Necromancy" >= 50208    if ingump "12/" 622436516209        @setvar! necroSymbols 12210    elseif ingump "13/" 622436516211        @setvar! necroSymbols 13212    elseif ingump "14/" 622436516213        @setvar! necroSymbols 14214    elseif ingump "15/" 622436516215        @setvar! necroSymbols 15216    elseif ingump "16/" 622436516217        @setvar! necroSymbols 16218    elseif ingump "17/" 622436516219        @setvar! necroSymbols 17220    elseif ingump "18/" 622436516221        @setvar! necroSymbols 18222    elseif ingump "19/" 622436516223        @setvar! necroSymbols 19224    elseif ingump "20/" 622436516225        @setvar! necroSymbols 20226    elseif ingump "21/" 622436516227        @setvar! necroSymbols 21228    elseif ingump "11/" 622436516229        @setvar! necroSymbols 11230    elseif ingump "10/" 622436516231        @setvar! necroSymbols 10232    elseif ingump "9/" 622436516233        @setvar! necroSymbols 9234    elseif ingump "8/" 622436516235        @setvar! necroSymbols 8236    elseif ingump "7/" 622436516237        @setvar! necroSymbols 7238    elseif ingump "6/" 622436516239        @setvar! necroSymbols 6240    elseif ingump "5/" 622436516241        @setvar! necroSymbols 5242    elseif ingump "4/" 622436516243        @setvar! necroSymbols 4244    elseif ingump "3/" 622436516245        @setvar! necroSymbols 3246    elseif ingump "2/" 622436516247        @setvar! necroSymbols 2248    elseif ingump "1/" 622436516249        @setvar! necroSymbols 1250    elseif ingump "0/" 622436516251        @setvar! necroSymbols 0252    endif253endif254 255if not timerexists reactiveArmorTimer256    createtimer reactiveArmorTimer257    settimer reactiveArmorTimer cdMagicShield258endif259 260if not timerexists magicShieldTimer261    createtimer magicShieldTimer262    settimer magicShieldTimer cdMagicShield263endif264 265if not timerexists magicMushroomTimer266    createtimer magicMushroomTimer267    settimer magicMushroomTimer cdMushroom268endif269 270if not timerexists magicArrowTimer271    createtimer magicArrowTimer272    settimer magicArrowTimer cdMagicArrow273endif274 275if not timerexists lightningTimer276    createtimer lightningTimer277    settimer lightningTimer cdLightning278endif279 280if not timerexists harmTimer281    createtimer harmTimer282    settimer harmTimer cdHarm283endif284 285if not timerexists fireballTimer286    createtimer fireballTimer287    settimer fireballTimer cdFireball288endif289 290if not timerexists evilOmenTimer291    createtimer evilOmenTimer292    settimer evilOmenTimer cdEvilOmen293endif294 295if not timerexists vampiricEmbraceTimer296    createtimer vampiricEmbraceTimer297    settimer vampiricEmbraceTimer cdVampiricEmbrace298endif299 300if not timerexists corpseSkinTimer301    createtimer corpseSkinTimer302    settimer corpseSkinTimer cdCorpseSkin303endif304 305if not timerexists mindRotTimer306    createtimer mindRotTimer307    settimer mindRotTimer cdMindRot308endif309 310if not timerexists meditiationTimer311    createtimer meditiationTimer312    settimer meditiationTimer cdMeditation313endif314 315if not timerexists killTargetTimer316    createtimer killTargetTimer317    settimer killTargetTimer cdKillTarget318endif319 320if not timerexists witherTimer321    createtimer witherTimer322    settimer witherTimer cdWither323endif324 325if not timerexists vengefulSpiritTimer326    createtimer vengefulSpiritTimer327    settimer vengefulSpiritTimer cdVengefulSpirit328endif329 330if not timerexists bloodOathTimer331    createtimer bloodOathTimer332    settimer bloodOathTimer cdBloodOath333endif334 335if not timerexists painSpikeTimer336    createtimer painSpikeTimer337    settimer painSpikeTimer cdPainSpike338endif339 340if not timerexists poisonStrikeTimer341    createtimer poisonStrikeTimer342    settimer poisonStrikeTimer cdPoisonStrike343endif344 345if not timerexists preventOverheadSpamTimer346    createtimer preventOverheadSpamTimer347    settimer preventOverheadSpamTimer cdPreventOverheadSpam348endif349 350@setvar! cdPreventSpamNecroAbilities 750351if not timerexists preventSpamNecroAbilitiesTimer352    createtimer preventSpamNecroAbilitiesTimer353    settimer preventSpamNecroAbilitiesTimer cdPreventSpamNecroAbilities354endif355 356if not varexist myEarthPet357    @setvar! myEarthPet 0358endif359 360// make sure we have enough symbols to summon (6 for wither + vengful spirit)361if skill "Necromancy" >= 90362    while followers < 4 and 6 > necroSymbols363        // we already have vengeful spirit active, skip the check364        if timer vengefulSpiritTimer < cdVengefulSpirit365           break366        endif367        if diffhits >= 30368            if targetexists 369                hotkey 'Cancel Current Target'370            endif371            while not targetexists 'beneficial'372                if diffhits >= 60373                    cast 'Heal'374                else375                    cast 'Greater Heal'                376                endif377                wait 50378                if hp = maxhp379                    hotkey '> Interrupt'380                    break381                endif382            endwhile383            if targetexists 'beneficial'384                hotkey 'Target Self'385            endif386        endif387        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 > 1487    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                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50517                    yell "[VengefulSpirit"518                    settimer vengefulSpiritTimer 0519                    wait 500520                endif521                while followers = followCount522                    cast "Earth elemental"523                    wait 500524                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95525                        yell "[Wither"526                        settimer witherTimer 0527                    endif528                    if diffhits >= 30529                        hotkey '> Interrupt'530                        break531                    endif532                endwhile533                // 158 - an ancient mummy534                // 14 - an earth elemental535                if findtype 158|14 ground -1 -1 6 as myPet536                    if noto myPet = "friend" and list petNameList > 0537                        overhead "Renaming..."538                        foreach petName in petNameList539                            rename myPet petName540                            break541                        endfor542                        poplist petNameList "front"543                    endif544                    @setvar! earthOne myPet545                    say "all guard me"546                    replay547                endif548            endif549        endif550    endif551    552    if diffhits < 30553        if followers = 0554            @setvar! followCount 0555        elseif followers = 1556            @setvar! followCount 1557        elseif followers = 2558            @setvar! followCount 2559        elseif followers = 3560            @setvar! followCount 3561        elseif followers = 4562            @setvar! followCount 4563        elseif followers = 5564            @setvar! followCount 5565        endif566        if dead earthTwo or not find earthTwo ground -1 -1 12567            if followers < 4568                while mana < 50569                    if diffhits >= 30570                        replay571                    endif572                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam573                        overhead "waiting for mana" 88574                        settimer preventOverheadSpamTimer 0575                    endif576                    if not findbuff "Actively Meditating"577                        useskill "meditation"578                    endif579                    wait 200580                endwhile581                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50582                    yell "[VengefulSpirit"583                    settimer vengefulSpiritTimer 0584                    wait 500585                endif586                while followers = followCount587                    cast "Earth elemental"588                    wait 500589                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95590                        yell "[Wither"591                        settimer witherTimer 0592                    endif593                    if diffhits >= 30594                        hotkey '> Interrupt'595                        break596                    endif597                endwhile598                // 158 - an ancient mummy599                // 14 - an earth elemental600                if findtype 158|14 ground -1 -1 6 as myPet601                    if noto myPet = "friend" and list petNameList > 0602                        overhead "Renaming..."603                        foreach petName in petNameList604                            rename myPet petName605                            break606                        endfor607                        poplist petNameList "front"608                    endif609                    @setvar! earthTwo myPet610                    say "all guard me"611                    replay612                endif613            endif614        endif615    endif616 617elseif castSummonEarthElementalCount = 1618    if diffhits < 30619        if followers = 0620            @setvar! followCount 0621        elseif followers = 1622            @setvar! followCount 1623        elseif followers = 2624            @setvar! followCount 2625        elseif followers = 3626            @setvar! followCount 3627        elseif followers = 4628            @setvar! followCount 4629        elseif followers = 5630            @setvar! followCount 5631        endif632        if dead earthOne or not find earthOne ground -1 -1 12633            if followers < 4634                while mana < 50635                    if diffhits >= 30636                        replay637                    endif638                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam639                        overhead "waiting for mana" 88640                        settimer preventOverheadSpamTimer 0641                    endif642                    if not findbuff "Actively Meditating"643                        useskill "meditation"644                    endif645                    wait 200646                endwhile647                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50648                    yell "[VengefulSpirit"649                    settimer vengefulSpiritTimer 0650                    wait 500651                endif652                while followers = followCount653                    cast "Earth elemental"654                    wait 500655                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95656                        yell "[Wither"657                        settimer witherTimer 0658                    endif659                    if diffhits >= 30660                        hotkey '> Interrupt'661                        break662                    endif663                endwhile664                // 158 - an ancient mummy665                // 14 - an earth elemental666                if findtype 158|14 ground -1 -1 6 as myPet667                    if noto myPet = "friend" and list petNameList > 0668                        overhead "Renaming..."669                        foreach petName in petNameList670                            rename myPet petName671                            break672                        endfor673                        poplist petNameList "front"674                    endif675                    @setvar! earthOne myPet676                    say "all guard me"677                    replay678                endif679            endif680        endif681    endif682endif683 684 685if castSummonFireElementalCount > 1686    if diffhits < 30687        if followers = 0688            @setvar! followCount 0689        elseif followers = 1690            @setvar! followCount 1691        elseif followers = 2692            @setvar! followCount 2693        elseif followers = 3694            @setvar! followCount 3695        elseif followers = 4696            @setvar! followCount 4697        elseif followers = 5698            @setvar! followCount 5699        endif700        if dead lichOne or not find lichOne ground -1 -1 12701            if followers < 4702                while mana < 50703                    if diffhits >= 30704                        replay705                    endif706                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam707                        overhead "waiting for mana" 88708                        settimer preventOverheadSpamTimer 0709                    endif710                    if not findbuff "Actively Meditating"711                        useskill "meditation"712                    endif713                    wait 200714                endwhile715                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50716                    yell "[VengefulSpirit"717                    settimer vengefulSpiritTimer 0718                    wait 500719                endif720                while followers = followCount721                    cast "fire elemental"722                    wait 500723                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95724                        yell "[Wither"725                        settimer witherTimer 0726                    endif727                    if diffhits >= 30728                        hotkey '> Interrupt'729                        break730                    endif731                endwhile732                // 24 - a lich733                // 15 - a fire elemental734                if findtype 24|15 ground -1 -1 6 as myPet735                    if noto myPet = "friend" and list petNameList > 0736                        overhead "Renaming..."737                        foreach petName in petNameList738                            rename myPet petName739                            break740                        endfor741                        poplist petNameList "front"742                    endif743                    @setvar! lichOne myPet744                    say "all guard me"745                    replay746                endif747            endif748        endif749    endif750    751    if diffhits < 30752        if followers = 0753            @setvar! followCount 0754        elseif followers = 1755            @setvar! followCount 1756        elseif followers = 2757            @setvar! followCount 2758        elseif followers = 3759            @setvar! followCount 3760        elseif followers = 4761            @setvar! followCount 4762        elseif followers = 5763            @setvar! followCount 5764        endif765        if dead lichTwo or not find lichTwo ground -1 -1 12766            if followers < 4767                while mana < 50768                    if diffhits >= 30769                        replay770                    endif771                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam772                        overhead "waiting for mana" 88773                        settimer preventOverheadSpamTimer 0774                    endif775                    if not findbuff "Actively Meditating"776                        useskill "meditation"777                    endif778                    wait 200779                endwhile780                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50781                    yell "[VengefulSpirit"782                    settimer vengefulSpiritTimer 0783                    wait 500784                endif785                while followers = followCount786                    cast "fire elemental"787                    wait 500788                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95789                        yell "[Wither"790                        settimer witherTimer 0791                    endif792                    if diffhits >= 30793                        hotkey '> Interrupt'794                        break795                    endif796                endwhile797                // 24 - a lich798                // 15 - a fire elemental799                if findtype 24|15 ground -1 -1 6 as myPet800                    if noto myPet = "friend" and list petNameList > 0801                        overhead "Renaming..."802                        foreach petName in petNameList803                            rename myPet petName804                            break805                        endfor806                        poplist petNameList "front"807                    endif808                    @setvar! lichTwo myPet809                    say "all guard me"810                    replay811                endif812            endif813        endif814    endif815 816elseif castSummonFireElementalCount = 1817    if diffhits < 30818        if followers = 0819            @setvar! followCount 0820        elseif followers = 1821            @setvar! followCount 1822        elseif followers = 2823            @setvar! followCount 2824        elseif followers = 3825            @setvar! followCount 3826        elseif followers = 4827            @setvar! followCount 4828        elseif followers = 5829            @setvar! followCount 5830        endif831        if dead lichOne or not find lichOne ground -1 -1 12832            if followers < 4833                while mana < 50834                    if diffhits >= 30835                        replay836                    endif837                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam838                        overhead "waiting for mana" 88839                        settimer preventOverheadSpamTimer 0840                    endif841                    if not findbuff "Actively Meditating"842                        useskill "meditation"843                    endif844                    wait 200845                endwhile846                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50847                    yell "[VengefulSpirit"848                    settimer vengefulSpiritTimer 0849                    wait 500850                endif851                while followers = followCount852                    cast "fire elemental"853                    wait 500854                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95855                        yell "[Wither"856                        settimer witherTimer 0857                    endif858                    if diffhits >= 30859                        hotkey '> Interrupt'860                        break861                    endif862                endwhile863                // 24 - a lich864                // 15 - a fire elemental865                if findtype 24|15 ground -1 -1 6 as myPet866                    if noto myPet = "friend" and list petNameList > 0867                        overhead "Renaming..."868                        foreach petName in petNameList869                            rename myPet petName870                            break871                        endfor872                        poplist petNameList "front"873                    endif874                    @setvar! lichOne myPet875                    say "all guard me"876                    replay877                endif878            endif879        endif880    endif881endif882 883if castSummonCreatureCount = 0884    // do nothing885elseif castSummonCreatureCount = 1 and not dead creatureOne886    // do nothing887elseif castSummonCreatureCount = 1888    if followers = 4 and diffhits < 30889        if followers = 0890            @setvar! followCount 0891        elseif followers = 1892            @setvar! followCount 1893        elseif followers = 2894            @setvar! followCount 2895        elseif followers = 3896            @setvar! followCount 3897        elseif followers = 4898            @setvar! followCount 4899        elseif followers = 5900            @setvar! followCount 5901        endif902        while mana < 14903            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam904                overhead "waiting for mana" 88905                settimer preventOverheadSpamTimer 0906            endif907            if diffhits >= 30908                replay909            endif910            if not findbuff "Actively Meditating"911                useskill "meditation"912            endif913            wait 200914        endwhile915        if timer vengefulSpiritTimer >= cdVengefulSpirit916            yell "[VengefulSpirit"917            settimer vengefulSpiritTimer 0918            wait 200919        endif920        while followers = followCount921            cast 'Summ. Creature'922            wait 500923            if diffhits >= 30924                hotkey '> Interrupt'925                replay926            endif927        endwhile        928        say "all guard me"929    endif930else931    for 6932        if index = 0933            // do nothing934        else935            if diffhits < 30936                @setvar! needToSummon 0937                if index = 1938                    if dead creatureOne or not find creatureOne ground -1 -1 12939                        @setvar! needToSummon 1940                    endif941                elseif index = 2942                    if dead creatureTwo or not find creatureTwo ground -1 -1 12943                        @setvar! needToSummon 1944                    endif945                elseif index = 3946                    if dead creatureThree or not find creatureThree ground -1 -1 12947                        @setvar! needToSummon 1948                    endif949                elseif index = 4950                    if dead creatureFour or not find creatureFour ground -1 -1 12951                        @setvar! needToSummon 1952                    endif953                elseif index = 5954                    if dead creatureFive or not find creatureFive ground -1 -1 12955                        @setvar! needToSummon 1956                    endif957                endif958            959                if needToSummon = 1960                    if followers = 0961                        @setvar! followCount 0962                    elseif followers = 1963                        @setvar! followCount 1964                    elseif followers = 2965                        @setvar! followCount 2966                    elseif followers = 3967                        @setvar! followCount 3968                    elseif followers = 4969                        @setvar! followCount 4970                    elseif followers = 5971                        @setvar! followCount 5972                    endif973                   974                    while mana < 50975                        if diffhits >= 30976                            replay977                        endif978                        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam979                            overhead "waiting for mana" 88980                            settimer preventOverheadSpamTimer 0981                        endif982                        if not findbuff "Actively Meditating"983                            useskill "meditation"984                        endif985                        wait 200986                    endwhile987                    if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50988                        yell "[VengefulSpirit"989                        settimer vengefulSpiritTimer 0990                        wait 500991                    endif992                    while followers = followCount993                        cast "Summ. Creature"994                        wait 500995                        if timer witherTimer >= cdWither and skill "Necromancy" >= 95996                            yell "[Wither"997                            settimer witherTimer 0998                        endif999                        if diffhits >= 301000                            hotkey '> Interrupt'1001                            break1002                        endif1003                    endwhile1004                    hotkey 'Next Friendly Monster Target'1005                    @setvar! checkLastTarget lasttarget1006                    if checkLastTarget = earthOne1007                        hotkey 'Next Friendly Monster Target'1008                        @setvar! checkLastTarget lasttarget 1009                    endif1010                    1011                    if checkLastTarget = earthTwo1012                       hotkey 'Next Friendly Monster Target'1013                       @setvar! checkLastTarget lasttarget 1014                    endif1015                    1016                    if checkLastTarget = lichOne1017                       hotkey 'Next Friendly Monster Target'1018                       @setvar! checkLastTarget lasttarget 1019                    endif1020                    1021                    if checkLastTarget = lichTwo1022                       hotkey 'Next Friendly Monster Target'1023                       @setvar! checkLastTarget lasttarget 1024                    endif1025                    @setvar! creatureOne checkLastTarget1026                    1027                    if find checkLastTarget ground -1 -1 6 as myPet1028                        if noto myPet = "friend" and list petNameList > 01029                            overhead "Renaming..."1030                            foreach petName in petNameList1031                                rename myPet petName1032                                break1033                            endfor1034                            poplist petNameList "front"1035                        endif1036                        if index = 11037                            if dead creatureOne or not find creatureOne ground -1 -1 121038                                @setvar! creatureOne myPet1039                            endif1040                        elseif index = 21041                            if dead creatureTwo or not find creatureTwo ground -1 -1 121042                                @setvar! creatureTwo myPet1043                            endif1044                        elseif index = 31045                            if dead creatureThree or not find creatureThree ground -1 -1 121046                                @setvar! creatureThree myPet1047                            endif1048                        elseif index = 41049                            if dead creatureFour or not find creatureFour ground -1 -1 121050                                @setvar! creatureFour myPet1051                            endif1052                        elseif index = 51053                            if dead creatureFive or not find creatureFive ground -1 -1 121054                                @setvar! creatureFive myPet1055                            endif1056                        endif1057                    endif1058                endif1059            endif1060        endif1061        if index = castSummonCreatureCount1062            break1063        endif1064    endfor1065endif1066 1067# Eat food if we got it1068if not findbuff "food" and findtype "tray" backpack as jood1069    dclick jood1070    wait 2001071endif1072 1073# Use Taste ID if possible1074if skill "Taste Identification" >= 50 and not findbuff "herb" and timer meditiationTimer >= 11000 1075    useskill 'tasteidentification'1076    wft 5001077    target backpack1078    settimer meditiationTimer 01079endif1080 1081if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 11082    say "all kill"1083    wait 2001084    while targetexists 1085        // wait1086        wait 501087    endwhile1088else1089    hotkey 'Target Closest Non-Friendly Monster'1090    wait 2001091    if insysmsg "No one matching that was found"1092        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1093            overhead "found no one" 341094            settimer preventOverheadSpamTimer 01095        endif1096        if autoBotEnabled = 11097            wait 5001098            replay1099        endif1100        stop1101    elseif not find lasttarget ground -1 -1 81102        overhead "� � OUT OF RANGE � �" 88 lasttarget1103        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1104            overhead "Move closer, more then 8 tiles away" 341105            settimer preventOverheadSpamTimer 01106        endif1107        if patrolPetEvenIfLastTargetIsBeyondEightTiles = 1 and find myEarthPet ground -1 -1 121108            menu myEarthPet 21109            wft 5001110            target lasttarget1111        endif1112        if autoBotEnabled = 11113            wait 5001114            replay1115        endif1116        stop1117    else1118        overhead "� �� HERE �� �" 88 lasttarget1119    endif    1120endif1121 1122@setvar myKillTarget lasttarget 1123 1124if not varexist myPreviousKillTarget1125    @setvar myPreviousKillTarget 0     1126endif1127 1128getlabel myKillTarget desc1129overhead desc1130 1131if not varexist myEarthPet or dead myEarthPet1132    if not dead earthOne1133        @setvar! myEarthPet earthOne1134    elseif not dead earthTwo1135        @setvar! myEarthPet earthTwo1136    endif1137endif1138 1139if find myEarthPet ground -1 -1 121140    menu myEarthPet 21141    wft 5001142    target myKillTarget1143endif1144 1145 1146if diffhits >= 30 and mana > 121147    while not targetexists1148        if diffhits >= 601149            cast 'Heal'1150        else1151            cast 'Greater Heal'                1152        endif1153        wait 501154        if hp = maxhp1155            hotkey '> Interrupt'1156            break1157        endif1158    endwhile1159    if targetexists1160        target self1161    endif1162elseif castBless = 1 and str <= 100 and followers >= 4 1163    while not targetexists1164        cast 'Bless'1165        wait 501166        if diffhits >= 301167            hotkey '> Interrupt'1168            break1169        endif1170    endwhile1171    if targetexists1172        target self1173    endif1174endif1175 1176if not listexists myCursedTargets1177    createlist myCursedTargets1178endif1179 1180if not listexists myManaDrainTargets1181    createlist myManaDrainTargets1182endif1183 1184if find myKillTarget -1 -1 12 as killy1185    if myKillTarget = myPreviousKillTarget1186        // do nothing1187    else1188        1189        // Herding using crook1190        if skill "Herding" > 0 and findtype 3713 backpack as jrook1191            dclick jrook1192            wft 5001193            target killy1194        endif1195 1196        if inlist myManaDrainTargets myKillTarget1197            overhead "We already mana drained this guy" 881198            // do nothing1199        elseif castManadrain = 01200            // do nothing 1201        elseif followers >= 4 1202            while not targetexists and not dead myKillTarget1203                if diffhits < 301204                    cast 'mana drain'1205                    wait 501206                elseif diffhits >= 30 1207                    hotkey '> Interrupt'1208                    break1209                endif1210            endwhile1211            if targetexists1212                target myKillTarget1213                pushlist myManaDrainTargets myKillTarget1214                settimer killTargetTimer 01215                wait 5001216            endif1217        endif1218        1219        if inlist myCursedTargets myKillTarget1220            overhead "We already cursed this guy" 881221            // do nothing1222        elseif castCurse = 01223            // do nothing1224        elseif followers >= 4 1225            while not targetexists and not dead myKillTarget1226                if diffhits < 301227                    cast 'Curse'1228                    wait 501229                elseif diffhits >= 30 1230                    hotkey '> Interrupt'1231                    break1232                endif1233            endwhile1234            if targetexists1235                target myKillTarget1236                pushlist myCursedTargets myKillTarget1237                settimer killTargetTimer 01238                wait 5001239            endif1240        endif1241        @setvar myPreviousKillTarget myKillTarget1242    endif1243else1244    overhead "Out of range" 341245endif1246 1247 1248clearsysmsg 1249 1250say "all guard"1251 1252@setvar! isLethalPoison 01253@setvar! isDiscorded 01254@setvar! isHerded 01255 1256while not dead myKillTarget and find myKillTarget -1 -1 12 as killy1257 1258    if skill "Herding" > 0 and isHerded = 0 and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook1259        dclick jrook1260        wft 5001261        target myKillTarget1262        settimer meditiationTimer 80001263        @setvar! isHerded 11264    endif1265    1266    if gumpexists 622436516 and skill "Necromancy" >= 501267        if ingump "12/" 6224365161268            @setvar! necroSymbols 121269        elseif ingump "13/" 6224365161270            @setvar! necroSymbols 131271        elseif ingump "14/" 6224365161272            @setvar! necroSymbols 141273        elseif ingump "15/" 6224365161274            @setvar! necroSymbols 151275        elseif ingump "16/" 6224365161276            @setvar! necroSymbols 161277        elseif ingump "17/" 6224365161278            @setvar! necroSymbols 171279        elseif ingump "18/" 6224365161280            @setvar! necroSymbols 181281        elseif ingump "19/" 6224365161282            @setvar! necroSymbols 191283        elseif ingump "20/" 6224365161284            @setvar! necroSymbols 201285        elseif ingump "21/" 6224365161286            @setvar! necroSymbols 211287        elseif ingump "11/" 6224365161288            @setvar! necroSymbols 111289        elseif ingump "10/" 6224365161290            @setvar! necroSymbols 101291        elseif ingump "9/" 6224365161292            @setvar! necroSymbols 91293        elseif ingump "8/" 6224365161294            @setvar! necroSymbols 81295        elseif ingump "7/" 6224365161296            @setvar! necroSymbols 71297        elseif ingump "6/" 6224365161298            @setvar! necroSymbols 61299        elseif ingump "5/" 6224365161300            @setvar! necroSymbols 51301        elseif ingump "4/" 6224365161302            @setvar! necroSymbols 41303        elseif ingump "3/" 6224365161304            @setvar! necroSymbols 31305        elseif ingump "2/" 6224365161306            @setvar! necroSymbols 21307        elseif ingump "1/" 6224365161308            @setvar! necroSymbols 11309        elseif ingump "0/" 6224365161310            @setvar! necroSymbols 01311        endif1312    endif1313    1314    if skill "Discordance" >= 50 1315        if isDiscorded = 01316            getlabel myKillTarget discordDesc1317            if "discord" in discordDesc1318                @setvar! isDiscorded 11319            elseif timer meditiationTimer >= 11000 1320                useskill 'Discordance'1321                wft 5001322                if insysmsg "What instrument"1323                    if findtype "bamboo flute" backpack as inny1324                        target inny1325                    elseif findtype "tambourine" backpack as inny1326                        target inny1327                    elseif findtype "drum" backpack as inny1328                        target inny1329                    elseif findtype "lute" backpack as inny1330                        target inny1331                    elseif findtype "harp" backpack as inny1332                        target inny1333                    elseif findtype "lap harp" backpack as inny1334                        target inny1335                    else1336                        overhead "I do not have an inny" 341337                        @setvar! isDiscorded 11338                    endif1339                    wft 5001340                endif1341                if targetexists 1342                    target myKillTarget1343                    overhead "Discorded" 88 myKillTarget1344                endif1345                settimer meditiationTimer 50001346            endif1347        endif1348        1349        if not findbuff "song of discordance" and timer meditiationTimer >= 110001350            useskill 'Discordance'1351            wft 5001352            if insysmsg "What instrument"1353                if findtype "bamboo flute" backpack as inny1354                    target inny1355                elseif findtype "tambourine" backpack as inny1356                    target inny1357                elseif findtype "drum" backpack as inny1358                    target inny1359                elseif findtype "lute" backpack as inny1360                    target inny1361                elseif findtype "harp" backpack as inny1362                    target inny1363                elseif findtype "lap harp" backpack as inny1364                    target inny1365                else1366                    overhead "I do not have an inny" 341367                    @setvar! isDiscorded 11368                endif1369                wft 5001370            endif1371            target backpack1372            settimer meditiationTimer 01373        endif    1374    endif1375 1376    if followers < 41377        replay1378    endif1379 1380    if insysmsg "Target cannot be seen." 1381        overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341382        replay1383    endif 1384    1385    if castMagicShield = 1 and timer magicShieldTimer >= cdMagicShield and not findbuff "Magic Reflection"1386        cast "Magic Reflection"1387        wait 10001388    elseif drinkMagicResistPot = 1 and not findbuff "Magic Reflection" and not findbuff "Magic Resist Potion" and findtype "Black Potion" backpack as pot1389        dclick pot1390        wait 2001391    endif1392 1393    if findbuff "Magic Reflection"1394        settimer magicShieldTimer 01395    endif1396    1397    if castReactiveArmor = 1 and timer reactiveArmorTimer >= cdReactiveArmor and not findbuff "Reactive Armor"1398        cast "Reactive Armor"1399        wait 2001400    endif1401 1402    if findbuff "Reactive Armor"1403        settimer reactiveArmorTimer 01404    endif1405    if castCorpseSkin = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer corpseSkinTimer >= cdCorpseSkin and skill "Necromancy" >= 65 and timer meditiationTimer >= cdMeditationMini and 2 < necroSymbols1406        yell "[CorpseSkin"1407        settimer preventSpamNecroAbilitiesTimer 01408        settimer corpseSkinTimer 01409        cooldown CorpseSkin cdCorpseSkin1410        wait 5001411        if gumpexists 6224365161412            if ingump "12/" 6224365161413                @setvar! necroSymbols 121414            elseif ingump "13/" 6224365161415                @setvar! necroSymbols 131416            elseif ingump "14/" 6224365161417                @setvar! necroSymbols 141418            elseif ingump "15/" 6224365161419                @setvar! necroSymbols 151420            elseif ingump "16/" 6224365161421                @setvar! necroSymbols 161422            elseif ingump "17/" 6224365161423                @setvar! necroSymbols 171424            elseif ingump "18/" 6224365161425                @setvar! necroSymbols 181426            elseif ingump "19/" 6224365161427                @setvar! necroSymbols 191428            elseif ingump "20/" 6224365161429                @setvar! necroSymbols 201430            elseif ingump "21/" 6224365161431                @setvar! necroSymbols 211432            elseif ingump "11/" 6224365161433                @setvar! necroSymbols 111434            elseif ingump "10/" 6224365161435                @setvar! necroSymbols 101436            elseif ingump "9/" 6224365161437                @setvar! necroSymbols 91438            elseif ingump "8/" 6224365161439                @setvar! necroSymbols 81440            elseif ingump "7/" 6224365161441                @setvar! necroSymbols 71442            elseif ingump "6/" 6224365161443                @setvar! necroSymbols 61444            elseif ingump "5/" 6224365161445                @setvar! necroSymbols 51446            elseif ingump "4/" 6224365161447                @setvar! necroSymbols 41448            elseif ingump "3/" 6224365161449                @setvar! necroSymbols 31450            elseif ingump "2/" 6224365161451                @setvar! necroSymbols 21452            elseif ingump "1/" 6224365161453                @setvar! necroSymbols 11454            elseif ingump "0/" 6224365161455                @setvar! necroSymbols 01456            endif1457        endif1458    endif1459    1460    if castBloodOath = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer bloodOathTimer >= cdBloodOath and 5 < necroSymbols1461        yell "[BloodOath"1462        settimer preventSpamNecroAbilitiesTimer 01463        settimer bloodOathTimer 01464        if gumpexists 6224365161465            if ingump "12/" 6224365161466                @setvar! necroSymbols 121467            elseif ingump "13/" 6224365161468                @setvar! necroSymbols 131469            elseif ingump "14/" 6224365161470                @setvar! necroSymbols 141471            elseif ingump "15/" 6224365161472                @setvar! necroSymbols 151473            elseif ingump "16/" 6224365161474                @setvar! necroSymbols 161475            elseif ingump "17/" 6224365161476                @setvar! necroSymbols 171477            elseif ingump "18/" 6224365161478                @setvar! necroSymbols 181479            elseif ingump "19/" 6224365161480                @setvar! necroSymbols 191481            elseif ingump "20/" 6224365161482                @setvar! necroSymbols 201483            elseif ingump "21/" 6224365161484                @setvar! necroSymbols 211485            elseif ingump "11/" 6224365161486                @setvar! necroSymbols 111487            elseif ingump "10/" 6224365161488                @setvar! necroSymbols 101489            elseif ingump "9/" 6224365161490                @setvar! necroSymbols 91491            elseif ingump "8/" 6224365161492                @setvar! necroSymbols 81493            elseif ingump "7/" 6224365161494                @setvar! necroSymbols 71495            elseif ingump "6/" 6224365161496                @setvar! necroSymbols 61497            elseif ingump "5/" 6224365161498                @setvar! necroSymbols 51499            elseif ingump "4/" 6224365161500                @setvar! necroSymbols 41501            elseif ingump "3/" 6224365161502                @setvar! necroSymbols 31503            elseif ingump "2/" 6224365161504                @setvar! necroSymbols 21505            elseif ingump "1/" 6224365161506                @setvar! necroSymbols 11507            elseif ingump "0/" 6224365161508                @setvar! necroSymbols 01509            endif1510        endif1511    endif1512    1513    if skill "poisoning" >= 100 or castPoisonAnyway = 11514        if timer meditiationTimer >= cdMeditationMini1515            if castMindRot = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer mindRotTimer >= cdMindRot and skill "Necromancy" >= 75 and 3 < necroSymbols 1516                yell "[MindRot"1517                settimer preventSpamNecroAbilitiesTimer 01518                settimer mindRotTimer 01519                wait 5001520                if gumpexists 6224365161521                    if ingump "12/" 6224365161522                        @setvar! necroSymbols 121523                    elseif ingump "13/" 6224365161524                        @setvar! necroSymbols 131525                    elseif ingump "14/" 6224365161526                        @setvar! necroSymbols 141527                    elseif ingump "15/" 6224365161528                        @setvar! necroSymbols 151529                    elseif ingump "16/" 6224365161530                        @setvar! necroSymbols 161531                    elseif ingump "17/" 6224365161532                        @setvar! necroSymbols 171533                    elseif ingump "18/" 6224365161534                        @setvar! necroSymbols 181535                    elseif ingump "19/" 6224365161536                        @setvar! necroSymbols 191537                    elseif ingump "20/" 6224365161538                        @setvar! necroSymbols 201539                    elseif ingump "21/" 6224365161540                        @setvar! necroSymbols 211541                    elseif ingump "11/" 6224365161542                        @setvar! necroSymbols 111543                    elseif ingump "10/" 6224365161544                        @setvar! necroSymbols 101545                    elseif ingump "9/" 6224365161546                        @setvar! necroSymbols 91547                    elseif ingump "8/" 6224365161548                        @setvar! necroSymbols 81549                    elseif ingump "7/" 6224365161550                        @setvar! necroSymbols 71551                    elseif ingump "6/" 6224365161552                        @setvar! necroSymbols 61553                    elseif ingump "5/" 6224365161554                        @setvar! necroSymbols 51555                    elseif ingump "4/" 6224365161556                        @setvar! necroSymbols 41557                    elseif ingump "3/" 6224365161558                        @setvar! necroSymbols 31559                    elseif ingump "2/" 6224365161560                        @setvar! necroSymbols 21561                    elseif ingump "1/" 6224365161562                        @setvar! necroSymbols 11563                    elseif ingump "0/" 6224365161564                        @setvar! necroSymbols 01565                    endif1566                endif1567            endif1568            1569            while isLethalPoison = 01570                if index = lethalPoisonUpgradeTries1571                    @setvar! isLethalPoison 11572                    break1573                endif1574                1575                if insysmsg "Target cannot be seen." 1576                    overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341577                    replay1578                endif 1579            1580                getlabel myKillTarget desc21581                overhead desc2 661582                // poison lethal1583                if "Lethal" in desc21584                    @setvar! isLethalPoison 11585                    break1586                elseif castPoisonAnyway = 1 and "Ticks" in desc21587                    @setvar! isLethalPoison 11588                    break1589                elseif castPoisonAnyway = 1 and "Poison" in desc21590                    @setvar! isLethalPoison 11591                    break1592                elseif diffhits >= 30 1593                    // need a heal1594                    break1595                elseif mana >= 91596                    while not targetexists1597                        cast 'poison'1598                        wait 501599                        if dead myKillTarget1600                            hotkey '> Interrupt'1601                            replay1602                        endif1603                    endwhile1604                    target myKillTarget1605                    wait 2001606                    if insysmsg "Target cannot be seen." 1607                         overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341608                         @setvar! isLethalPoison 11609                    endif 1610                else1611                    wait 2001612                endif1613            endwhile            1614        endif1615    endif1616    1617    if castEvilOmen = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer evilOmenTimer >= cdEvilOmen and skill "Necromancy" >= 60 and timer meditiationTimer >= cdMeditationMini and 2 < necroSymbols1618        yell "[EvilOmen"1619        settimer evilOmenTimer 01620        settimer preventSpamNecroAbilitiesTimer 01621        cooldown EvilOmen cdEvilOmen1622        wait 5001623        if gumpexists 6224365161624            if ingump "12/" 6224365161625                @setvar! necroSymbols 121626            elseif ingump "13/" 6224365161627                @setvar! necroSymbols 131628            elseif ingump "14/" 6224365161629                @setvar! necroSymbols 141630            elseif ingump "15/" 6224365161631                @setvar! necroSymbols 151632            elseif ingump "16/" 6224365161633                @setvar! necroSymbols 161634            elseif ingump "17/" 6224365161635                @setvar! necroSymbols 171636            elseif ingump "18/" 6224365161637                @setvar! necroSymbols 181638            elseif ingump "19/" 6224365161639                @setvar! necroSymbols 191640            elseif ingump "20/" 6224365161641                @setvar! necroSymbols 201642            elseif ingump "21/" 6224365161643                @setvar! necroSymbols 211644            elseif ingump "11/" 6224365161645                @setvar! necroSymbols 111646            elseif ingump "10/" 6224365161647                @setvar! necroSymbols 101648            elseif ingump "9/" 6224365161649                @setvar! necroSymbols 91650            elseif ingump "8/" 6224365161651                @setvar! necroSymbols 81652            elseif ingump "7/" 6224365161653                @setvar! necroSymbols 71654            elseif ingump "6/" 6224365161655                @setvar! necroSymbols 61656            elseif ingump "5/" 6224365161657                @setvar! necroSymbols 51658            elseif ingump "4/" 6224365161659                @setvar! necroSymbols 41660            elseif ingump "3/" 6224365161661                @setvar! necroSymbols 31662            elseif ingump "2/" 6224365161663                @setvar! necroSymbols 21664            elseif ingump "1/" 6224365161665                @setvar! necroSymbols 11666            elseif ingump "0/" 6224365161667                @setvar! necroSymbols 01668            endif1669        endif1670    endif1671 1672    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 jorpse1673        yell "[VampiricEmbrace"1674        wft 5001675        target jorpse1676        settimer preventSpamNecroAbilitiesTimer 01677        settimer vampiricEmbraceTimer 01678        cooldown VampiricEmbrace cdVampiricEmbrace1679        wait 5001680        if gumpexists 6224365161681            if ingump "12/" 6224365161682                @setvar! necroSymbols 121683            elseif ingump "13/" 6224365161684                @setvar! necroSymbols 131685            elseif ingump "14/" 6224365161686                @setvar! necroSymbols 141687            elseif ingump "15/" 6224365161688                @setvar! necroSymbols 151689            elseif ingump "16/" 6224365161690                @setvar! necroSymbols 161691            elseif ingump "17/" 6224365161692                @setvar! necroSymbols 171693            elseif ingump "18/" 6224365161694                @setvar! necroSymbols 181695            elseif ingump "19/" 6224365161696                @setvar! necroSymbols 191697            elseif ingump "20/" 6224365161698                @setvar! necroSymbols 201699            elseif ingump "21/" 6224365161700                @setvar! necroSymbols 211701            elseif ingump "11/" 6224365161702                @setvar! necroSymbols 111703            elseif ingump "10/" 6224365161704                @setvar! necroSymbols 101705            elseif ingump "9/" 6224365161706                @setvar! necroSymbols 91707            elseif ingump "8/" 6224365161708                @setvar! necroSymbols 81709            elseif ingump "7/" 6224365161710                @setvar! necroSymbols 71711            elseif ingump "6/" 6224365161712                @setvar! necroSymbols 61713            elseif ingump "5/" 6224365161714                @setvar! necroSymbols 51715            elseif ingump "4/" 6224365161716                @setvar! necroSymbols 41717            elseif ingump "3/" 6224365161718                @setvar! necroSymbols 31719            elseif ingump "2/" 6224365161720                @setvar! necroSymbols 21721            elseif ingump "1/" 6224365161722                @setvar! necroSymbols 11723            elseif ingump "0/" 6224365161724                @setvar! necroSymbols 01725            endif1726        endif1727    endif1728 1729    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 jorpse1730        yell "[PainSpike"1731        wft 5001732        target myKillTarget1733        wait 2001734        settimer preventSpamNecroAbilitiesTimer 01735        if insysmsg "You do not see any corpses"1736            // do nothing1737        else1738            settimer painSpikeTimer 01739            cooldown PainSpike cdPainSpike            1740        endif1741        if gumpexists 6224365161742            if ingump "12/" 6224365161743                @setvar! necroSymbols 121744            elseif ingump "13/" 6224365161745                @setvar! necroSymbols 131746            elseif ingump "14/" 6224365161747                @setvar! necroSymbols 141748            elseif ingump "15/" 6224365161749                @setvar! necroSymbols 151750            elseif ingump "16/" 6224365161751                @setvar! necroSymbols 161752            elseif ingump "17/" 6224365161753                @setvar! necroSymbols 171754            elseif ingump "18/" 6224365161755                @setvar! necroSymbols 181756            elseif ingump "19/" 6224365161757                @setvar! necroSymbols 191758            elseif ingump "20/" 6224365161759                @setvar! necroSymbols 201760            elseif ingump "21/" 6224365161761                @setvar! necroSymbols 211762            elseif ingump "11/" 6224365161763                @setvar! necroSymbols 111764            elseif ingump "10/" 6224365161765                @setvar! necroSymbols 101766            elseif ingump "9/" 6224365161767                @setvar! necroSymbols 91768            elseif ingump "8/" 6224365161769                @setvar! necroSymbols 81770            elseif ingump "7/" 6224365161771                @setvar! necroSymbols 71772            elseif ingump "6/" 6224365161773                @setvar! necroSymbols 61774            elseif ingump "5/" 6224365161775                @setvar! necroSymbols 51776            elseif ingump "4/" 6224365161777                @setvar! necroSymbols 41778            elseif ingump "3/" 6224365161779                @setvar! necroSymbols 31780            elseif ingump "2/" 6224365161781                @setvar! necroSymbols 21782            elseif ingump "1/" 6224365161783                @setvar! necroSymbols 11784            elseif ingump "0/" 6224365161785                @setvar! necroSymbols 01786            endif1787        endif1788    endif1789   1790    if find myKillTarget -1 -1 12 as killy1791       // do nothing1792    else1793        overhead "Out of range" 341794        break1795    endif1796    1797    while poisoned1798        if findtype "Orange Potion" backpack as pot 1799            dclick pot1800            wait 10001801        else1802            while not targetexists1803                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                if not poisoned1822                    hotkey '> Interrupt'1823                    break1824                else1825                    cast 'Cure'1826                    wait 501827                endif 1828            endwhile1829            if targetexists1830                target self1831                wait 5001832            endif1833        endif1834    endwhile1835 1836    if eatMushy = 1 and diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy1837        overhead "Eatting shrooms" 661838        dclick mushy1839        settimer magicMushroomTimer 01840    endif1841    1842    if castLightning = 1 and diffhits < 30 and mana >= 12 and timer lightningTimer >= cdLightning and timer meditiationTimer >= cdMeditationMini1843        while not targetexists1844            if followers < 4 or dead myKillTarget or diffhits >= 301845                hotkey '> Interrupt'1846                break1847            else1848                cast 'Lightning'1849                wait 501850            endif 1851        endwhile1852        if targetexists1853            target myKillTarget1854            settimer lightningTimer 01855            cooldown Lightning cdLightning1856            wait 5001857        endif1858    endif1859  1860    if castMagicArrow = 1 and diffhits < 30 and mana >= 5 and timer magicArrowTimer >= cdMagicArrow and timer meditiationTimer >= cdMeditationMini1861        while not targetexists1862            if followers < 4 or dead myKillTarget or diffhits >= 301863                hotkey '> Interrupt'1864                break1865            else1866                cast 'magic arrow'1867                wait 501868            endif 1869        endwhile1870        if targetexists1871            target myKillTarget1872            settimer magicArrowTimer 01873            cooldown MagicArrow cdMagicArrow1874            wait 5001875        endif1876    endif1877 1878    if castHarm = 1 and diffhits < 30 and mana >= 9 and timer harmTimer >= cdHarm and timer meditiationTimer >= cdMeditationMini1879        while not targetexists1880            if followers < 4 or dead myKillTarget or diffhits >= 301881                hotkey '> Interrupt'1882                break1883            else1884                cast 'harm'1885                wait 501886            endif 1887        endwhile1888        if targetexists1889            target myKillTarget1890            settimer harmTimer 01891            cooldown Harm cdHarm1892            wait 5001893        endif1894    endif1895 1896    if castFireball = 1 and diffhits < 30 and mana >= 12 and timer fireballTimer >= cdFireball and timer meditiationTimer >= cdMeditationMini1897        while not targetexists1898            if followers < 4 or dead myKillTarget or diffhits >= 301899                hotkey '> Interrupt'1900                break1901            else1902                cast 'fireball'1903                wait 501904            endif 1905        endwhile1906        if targetexists1907            target myKillTarget1908            settimer fireballTimer 01909            cooldown Fireball cdFireball1910            wait 5001911        endif1912    endif1913    1914    # Poison strike is moved to occur after spell dump, so disease may have been applied from a spell. In short: more damage.1915    getlabel myKillTarget desc21916    // Make sure target is at least poisoned1917    if castPoisonStrike = 1 and "Ticks" in desc2 1918        wait 500 //Added because sometimes diseases from corpse skin aren't triggered yet1919        if timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer poisonStrikeTimer >= cdPoisonStrike and skill "Necromancy" >= 55 and timer meditiationTimer >= cdMeditationMini and 1 <= necroSymbols1920            yell "[PoisonStrike"1921            wft 5001922            target myKillTarget1923            wait 2001924            settimer preventSpamNecroAbilitiesTimer 01925            settimer poisonStrikeTimer 01926            cooldown PoisonStrike cdPoisonStrike1927            1928            if gumpexists 6224365161929                if ingump "12/" 6224365161930                    @setvar! necroSymbols 121931                elseif ingump "13/" 6224365161932                    @setvar! necroSymbols 131933                elseif ingump "14/" 6224365161934                    @setvar! necroSymbols 141935                elseif ingump "15/" 6224365161936                    @setvar! necroSymbols 151937                elseif ingump "16/" 6224365161938                    @setvar! necroSymbols 161939                elseif ingump "17/" 6224365161940                    @setvar! necroSymbols 171941                elseif ingump "18/" 6224365161942                    @setvar! necroSymbols 181943                elseif ingump "19/" 6224365161944                    @setvar! necroSymbols 191945                elseif ingump "20/" 6224365161946                    @setvar! necroSymbols 201947                elseif ingump "21/" 6224365161948                    @setvar! necroSymbols 211949                elseif ingump "11/" 6224365161950                    @setvar! necroSymbols 111951                elseif ingump "10/" 6224365161952                    @setvar! necroSymbols 101953                elseif ingump "9/" 6224365161954                    @setvar! necroSymbols 91955                elseif ingump "8/" 6224365161956                    @setvar! necroSymbols 81957                elseif ingump "7/" 6224365161958                    @setvar! necroSymbols 71959                elseif ingump "6/" 6224365161960                    @setvar! necroSymbols 61961                elseif ingump "5/" 6224365161962                    @setvar! necroSymbols 51963                elseif ingump "4/" 6224365161964                    @setvar! necroSymbols 41965                elseif ingump "3/" 6224365161966                    @setvar! necroSymbols 31967                elseif ingump "2/" 6224365161968                    @setvar! necroSymbols 21969                elseif ingump "1/" 6224365161970                    @setvar! necroSymbols 11971                elseif ingump "0/" 6224365161972                    @setvar! necroSymbols 01973                endif1974            endif1975        endif1976    endif1977    1978    if eatMushy = 1 and diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy1979        overhead "Eatting shrooms" 661980        dclick mushy1981        settimer magicMushroomTimer 01982    endif1983    1984    if diffhits >= 301985            1986        if findtype "Yellow Potion" backpack as pot 1987            getlabel pot desc1988            if "next usable" in desc1989                // do nothing1990            else1991                dclick pot1992                wait 5001993            endif1994        endif1995 1996        if diffhits >= 30 and mana >= 121997            while not targetexists1998                if diffhits >= 601999                    cast 'Heal'2000                else2001                    cast 'Greater Heal'                2002                endif2003                wait 502004                if hp = maxhp2005                    hotkey '> Interrupt'2006                    break2007                endif2008            endwhile2009            if targetexists2010                target self2011                wait 502012            endif2013        endif2014    elseif mana < 55 and findbuff "actively meditating" 2015        // wait for mana2016    elseif timer meditiationTimer < cdMeditationMini and findbuff "actively meditating" 2017        // wait for mana2018    elseif castMindBlast = 1 mana >= 322019        while not targetexists and mana > 302020            if eatMushy = 1 and diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2021                overhead "Eatting shrooms" 662022                dclick mushy2023                settimer magicMushroomTimer 02024            endif2025            if followers < 4 or dead myKillTarget or diffhits >= 302026                hotkey '> Interrupt'2027                break2028            else2029                cast 'Mind Blast'2030                wait 502031            endif 2032        endwhile2033        if targetexists2034            target myKillTarget2035            wait 5002036        endif2037        if castFlamestrike = 1 and mana > 422038            while not targetexists and mana > 402039            2040                if eatMushy = 1 and diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2041                    overhead "Eatting shrooms" 662042                    dclick mushy2043                    settimer magicMushroomTimer 02044                endif2045        2046                if followers < 4 or dead myKillTarget or diffhits >= 302047                    hotkey '> Interrupt'2048                    break2049                else2050                    cast 'Flamestrike'2051                    wait 502052                endif 2053            endwhile2054            if targetexists2055                target myKillTarget2056                wait 5002057            endif2058        endif2059    elseif castFlamestrike = 1 and mana > 422060        while not targetexists and mana > 402061        2062            if eatMushy = 1 and diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2063                overhead "Eatting shrooms" 662064                dclick mushy2065                settimer magicMushroomTimer 02066            endif2067    2068            if followers < 4 or dead myKillTarget or diffhits >= 302069                hotkey '> Interrupt'2070                break2071            else2072                cast 'Flamestrike'2073                wait 502074            endif 2075        endwhile2076        if targetexists2077            target myKillTarget2078            wait 5002079        endif2080    elseif not findbuff "actively meditating" and eatMushy = 1 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2081        overhead "Eatting shrooms" 662082        dclick mushy2083        settimer magicMushroomTimer 02084    elseif not findbuff "actively meditating" and timer meditiationTimer >= cdMeditation2085        say "all guard me"2086        useskill 'meditation'2087        settimer meditiationTimer 02088        wait 5002089    endif2090    wait 502091endwhile2092wait 5002093if targetexists 2094    hotkey 'Cancel Current Target'2095endif2096if not findbuff "actively meditating" 2097    say "all guard me"2098endif2099while mana < manaToFight         2100    if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 02101        hotkey 'Target Closest Non-Friendly Monster'2102        wait 2002103        if insysmsg "No one matching that was found"2104            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam2105                overhead "no next target" 342106                settimer preventOverheadSpamTimer 02107            endif2108        elseif not find lasttarget ground -1 -1 82109            overhead "� NEXT TARGET HERE �" 88 lasttarget2110            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam2111                overhead "Move closer, more then 8 tiles away" 342112                settimer preventOverheadSpamTimer 02113                @setvar myKillTarget lasttarget 2114            endif2115        else2116            overhead "� NEXT TARGET HERE �" 88 lasttarget2117            attack lasttarget2118            @setvar myKillTarget lasttarget 2119        endif2120            //Poison monster while we meditate2121            getlabel myKillTarget desc22122            overhead desc2 662123            2124            if "Ticks" in desc22125                // Its already poisoned do nothing2126                wait 5002127                else2128                    if mana >= 92129                        if not dead myKillTarget2130                        cast 'poison'2131                        wait 502132                            if dead myKillTarget2133                                hotkey '> Interrupt'2134                                replay2135                            endif2136                        endif2137                        target myKillTarget2138                        wait 2002139                        if insysmsg "Target cannot be seen." 2140                             overhead "TARGET CANNOT BE SEEN" 342141                        endif 2142                    endif2143            endif2144    endif2145    if diffhits >= 302146        if findtype "Yellow Potion" backpack as pot 2147            getlabel pot desc2148            if "next usable" in desc2149                // do nothing2150            else2151                dclick pot2152                wait 2002153            endif2154        endif2155        if diffhits >= 30 and mana >= 122156            while not targetexists2157                if diffhits >= 602158                    cast 'Heal'2159                else2160                    cast 'Greater Heal'                2161                endif2162                wait 502163                if hp = maxhp2164                    hotkey '> Interrupt'2165                    break2166                endif2167            endwhile2168            if targetexists2169                target self2170                wait 502171            endif2172        endif2173    endif2174    if not findbuff "actively meditating" 2175        useskill 'meditation'2176    endif2177    wait 5002178endwhile2179if canYouMakeAMushroom = 1 and counttype "mushroom" backpack < butOnlyIHaveLessThenThisCount2180    while counttype "mushroom" backpack < makeThisManyMushroomsCount2181        cast "Create Food"2182        wait 2002183        if diffhits >= 20 or counttype "mushroom" backpack = 02184            break2185        endif2186    endwhile2187endif2188if castVampiricEmbrace = 1 and timer vampiricEmbraceTimer >= cdVampiricEmbrace and skill "Necromancy" >= 70 and findtype 8198 ground -1 -1 4 as jorpse2189    say "[VampiricEmbrace"2190    wft 5002191    target jorpse2192    settimer vampiricEmbraceTimer 02193    cooldown VampiricEmbrace cdVampiricEmbrace2194endif2195 2196if timer killTargetTimer >= cdKillTarget2197    overhead "We cleared curse and mana drain targets" 342198    removelist myCursedTargets      2199    removelist myManaDrainTargets2200endif2201   2202if autoBotEnabled = 12203    replay2204endif2205 2206// thanks for using a Jaseowns script!2207// https://www.youtube.com/jaseowns