Skip to content
Outlands Hub

Razor script

jaseowns Auto Necro Summoner flexibility edit

by Hayes · 1408 lines
Download

One hotkey mage cycle, nox, poison by Jaseowns 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 out for details:…

MagicMeditationDiscordance
jaseowns Auto Necro Summoner flexibility edit.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/9bf8ec53-b8f4-4cf1-825c-6dbdbe919f4d for latest2# Automation by Jaseowns3## Script: jaseowns Auto Necro Summoner flexibility edit4## Created by: Hayes#32965#############################################6 7# One hotkey mage cycle, nox, poison by Jaseowns8# UO Outlands - https://youtu.be/K3bVPhHcInE9# 10# Cooldowns are live, so this script now attempts to display those11# Make cooldowns match the names of skills 12# (check out for details: https://youtu.be/s8rRk2Bu1jQ)13#14// 12/11/202215// - Added Necro symbol count and additional necro spells (blood oath, pain spike)16// - Added cast triggers for all the spells17// - Added Necro wither to summon (if correct necro skill)18// 12/10/2022 19// - If you kill a mob and are low mana, we now target the next one and send the pets while med20// 12/9/2022 21// - Added discordance checks22// - Added mushroom usage throughout the script 23// - Better summoning of pets when they die24// - Added customized spam cooldown to prevent overhead spam25// - Make sure herding goes off26// November27// - Add heal to top of script during search of target 28// - made a way to skip certain casts29// 30##################31## Always room for improvment, thanks for watching!32############33 34# Set this to one, if you want to cast poison once no matter what35# If you have 100 poisoning and want Lethal, set this to 036@setvar! castPoisonAnyway 037 38# We will spam mind blast when other skills are on cooldown39# If you set this to 0 it will use flamestrike40# If you set this to 1 it will use mind blast41# If you set this to 2 it will alternate between the two42@setvar! spamMindBlastOverFlamestrike 243 44# This will auto replay this script if you want it too45@setvar! autoBotEnabled 146 47# Update this variable to 1 for ALL KILL48# Update this variable to 0 for target nearest49@setvar! setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster 050 51###############52###  Choose your spells53######54@setvar! castCurse 155@setvar! castManadrain 156@setvar! castLightning 157@setvar! castFireball 158@setvar! castHarm 159@setvar! castMagicArrow 160 61### Buffs62@setvar! castBless 163@setvar! castMagicShield 164@setvar! castReactiveArmor 165# Drink Magic resist potion (only if magic shield buff not found)66@setvar! drinkMagicResistPot 1 67 68###############69###  Choose your necro spells (ignored if less then required necro skill)70######71@setvar! castEvilOmen 172@setvar! castCorpseSkin 173@setvar! castVampiricEmbrace 174@setvar! castMindRot 075@setvar! castBloodOath 076@setvar! castPainSpike 077 78###############79### Edit these cooldowns to match your wizard grimoire80######81@setvar! canYouMakeAMushroom 182@setvar! cdLightning 2000083@setvar! cdMagicArrow 2000084@setvar! cdHarm 2000085@setvar! cdFireball 2000086 87###############88### Necro Cooldowns89######90@setvar! cdEvilOmen 3100091@setvar! cdVampiricEmbrace 3100092@setvar! cdCorpseSkin 3100093@setvar! cdMindRot 3100094@setvar! cdWither 3100095@setvar! cdVengefulSpirit 3100096@setvar! cdBloodOath 3100097@setvar! cdPainSpike 6100098 99#### Buff Cooldowns100@setvar! cdMushroom 60000101@setvar! cdMagicShield 60000102@setvar! cdReactiveArmor 60000103@setvar! cdMeditation 10000104@setvar! cdMeditationMini 3000105@setvar! cdKillTarget 60000106 107#### Random cooldowns108@setvar! cdPreventOverheadSpam 2000109 110#### Pet Names, unique to you111if not listexists petNameList112    createlist petNameList113endif114if list petNameList = 0115    pushlist petNameList "BeyondSausage"116    pushlist petNameList "CageFreeHens"117    pushlist petNameList "InstantPotUltra"118    pushlist petNameList "AirFryerLid"119    pushlist petNameList "KingArthurFlour"120    pushlist petNameList "BisquickBaking"121endif122 123##################################################################124# 125#   Hopefully you do not have to edit after this :)126#127##################################################################128 129if not gumpexists 622436516 and skill "Necromancy" >= 50130    say '[NecromancyHotbar'131    wait 500132endif133 134// Make sure we have a spell book attached135if findlayer self righthand as item136    // do nothing137elseif findtype "3834" backpack as item138    dclick item139else 140    overhead "Spellbook not found" 34141endif142 143// Setting current necro symbols - checks again it the attack loop144@setvar! necroSymbols 12145if gumpexists 622436516 and skill "Necromancy" >= 50146    if ingump "12/" 622436516147        @setvar! necroSymbols 12148    elseif ingump "11/" 622436516149        @setvar! necroSymbols 11150    elseif ingump "10/" 622436516151        @setvar! necroSymbols 10152    elseif ingump "9/" 622436516153        @setvar! necroSymbols 9154    elseif ingump "8/" 622436516155        @setvar! necroSymbols 8156    elseif ingump "7/" 622436516157        @setvar! necroSymbols 7158    elseif ingump "6/" 622436516159        @setvar! necroSymbols 6160    elseif ingump "5/" 622436516161        @setvar! necroSymbols 5162    elseif ingump "4/" 622436516163        @setvar! necroSymbols 4164    elseif ingump "3/" 622436516165        @setvar! necroSymbols 3166    elseif ingump "2/" 622436516167        @setvar! necroSymbols 2168    elseif ingump "1/" 622436516169        @setvar! necroSymbols 1170    elseif ingump "0/" 622436516171        @setvar! necroSymbols 0172    endif173endif174 175if not timerexists reactiveArmorTimer176    createtimer reactiveArmorTimer177    settimer reactiveArmorTimer cdMagicShield178endif179 180if not timerexists magicShieldTimer181    createtimer magicShieldTimer182    settimer magicShieldTimer cdMagicShield183endif184 185if not timerexists magicMushroomTimer186    createtimer magicMushroomTimer187    settimer magicMushroomTimer cdMushroom188endif189 190if not timerexists magicArrowTimer191    createtimer magicArrowTimer192    settimer magicArrowTimer cdMagicArrow193endif194 195if not timerexists lightningTimer196    createtimer lightningTimer197    settimer lightningTimer cdLightning198endif199 200if not timerexists harmTimer201    createtimer harmTimer202    settimer harmTimer cdHarm203endif204 205if not timerexists fireballTimer206    createtimer fireballTimer207    settimer fireballTimer cdFireball208endif209 210if not timerexists evilOmenTimer211    createtimer evilOmenTimer212    settimer evilOmenTimer cdEvilOmen213endif214 215if not timerexists vampiricEmbraceTimer216    createtimer vampiricEmbraceTimer217    settimer vampiricEmbraceTimer cdVampiricEmbrace218endif219 220if not timerexists corpseSkinTimer221    createtimer corpseSkinTimer222    settimer corpseSkinTimer cdCorpseSkin223endif224 225if not timerexists mindRotTimer226    createtimer mindRotTimer227    settimer mindRotTimer cdMindRot228endif229 230if not timerexists meditiationTimer231    createtimer meditiationTimer232    settimer meditiationTimer cdMeditation233endif234 235if not timerexists killTargetTimer236    createtimer killTargetTimer237    settimer killTargetTimer cdKillTarget238endif239 240if not timerexists witherTimer241    createtimer witherTimer242    settimer witherTimer cdWither243endif244 245if not timerexists vengefulSpiritTimer246    createtimer vengefulSpiritTimer247    settimer vengefulSpiritTimer cdVengefulSpirit248endif249 250if not timerexists bloodOathTimer251    createtimer bloodOathTimer252    settimer bloodOathTimer cdBloodOath253endif254 255if not timerexists painSpikeTimer256    createtimer painSpikeTimer257    settimer painSpikeTimer cdPainSpike258endif259 260if not timerexists preventOverheadSpamTimer261    createtimer preventOverheadSpamTimer262    settimer preventOverheadSpamTimer cdPreventOverheadSpam263endif264 265if not varexist myEarthPet266    @setvar! myEarthPet 0267endif268if not varexist myWaterPet269    @setvar! myWaterPet 0270endif271if not varexist mySummonAnimalPet272    @setvar! mySummonAnimalPet 0273endif274 275// make sure we have enough symbols to summon (6 for wither + vengful spirit)276if skill "Necromancy" >= 90277    while followers < 4 and 6 > necroSymbols278        // we already have vengeful spirit active, skip the check279        if timer vengefulSpiritTimer < cdVengefulSpirit280           break281        endif282        if diffhits >= 30283            if targetexists 284                hotkey 'Cancel Current Target'285            endif286            while not targetexists 'beneficial'287                if diffhits >= 60288                    cast 'Heal'289                else290                    cast 'Greater Heal'                291                endif292                wait 50293                if hp = maxhp294                    hotkey '> Interrupt'295                    break296                endif297            endwhile298            if targetexists 'beneficial'299                hotkey 'Target Self'300            endif301        endif302        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam303            overhead "waiting for symbols" 88304            settimer preventOverheadSpamTimer 0305        endif306        if gumpexists 622436516 and skill "Necromancy" >= 50307            if ingump "12/" 622436516308                @setvar! necroSymbols 12309            elseif ingump "11/" 622436516310                @setvar! necroSymbols 11311            elseif ingump "10/" 622436516312                @setvar! necroSymbols 10313            elseif ingump "9/" 622436516314                @setvar! necroSymbols 9315            elseif ingump "8/" 622436516316                @setvar! necroSymbols 8317            elseif ingump "7/" 622436516318                @setvar! necroSymbols 7319            elseif ingump "6/" 622436516320                @setvar! necroSymbols 6321            elseif ingump "5/" 622436516322                @setvar! necroSymbols 5323            elseif ingump "4/" 622436516324                @setvar! necroSymbols 4325            elseif ingump "3/" 622436516326                @setvar! necroSymbols 3327            elseif ingump "2/" 622436516328                @setvar! necroSymbols 2329            elseif ingump "1/" 622436516330                @setvar! necroSymbols 1331            elseif ingump "0/" 622436516332                @setvar! necroSymbols 0333            endif334        endif335    endwhile336endif337 338if diffhits < 30339    if followers = 0340        @setvar! followCount 0341    elseif followers = 1342        @setvar! followCount 1343    elseif followers = 2344        @setvar! followCount 2345    elseif followers = 3346        @setvar! followCount 3347    elseif followers = 4348        @setvar! followCount 4349    elseif followers = 5350        @setvar! followCount 5351    endif352    if dead myEarthPet or not find myEarthPet ground -1 -1 12353        if followers < 4354            while mana < 50355                if diffhits >= 30356                    replay357                endif358                if timer preventOverheadSpamTimer >= cdPreventOverheadSpam359                    overhead "waiting for mana" 88360                    settimer preventOverheadSpamTimer 0361                endif362                if not findbuff "Actively Meditating"363                    useskill "meditation"364                endif365                wait 200366            endwhile367            if skill "Necromancy" >= 50 and timer vengefulSpiritTimer >= cdVengefulSpirit368                yell "[VengefulSpirit"369                settimer vengefulSpiritTimer 0370                wait 500371            endif372            while followers = followCount373                cast "earth elemental"374                wait 500375                if skill "Necromancy" >= 90 and timer witherTimer >= cdWither376                    yell "[Wither"377                    settimer witherTimer 0378                endif379                if diffhits >= 30380                    hotkey '> Interrupt'381                    replay382                    break383                endif384            endwhile385            // 158 - an ancient mummy386            if findtype 158 ground -1 -1 6 as myPet387                if noto myPet = "friend" and list petNameList > 0388                    overhead "Renaming..."389                    foreach petName in petNameList390                        rename myPet petName391                        break392                    endfor393                    poplist petNameList "front"394                endif395                @setvar! myEarthPet myPet396                say "all guard me"397                replay398            endif399        endif400    endif401endif402 403if diffhits < 30404    if followers = 0405        @setvar! followCount 0406    elseif followers = 1407        @setvar! followCount 1408    elseif followers = 2409        @setvar! followCount 2410    elseif followers = 3411        @setvar! followCount 3412    elseif followers = 4413        @setvar! followCount 4414    elseif followers = 5415        @setvar! followCount 5416    endif417    if dead myWaterPet or not find myWaterPet ground -1 -1 12418        if followers < 4419            while mana < 50420                if diffhits >= 30421                    replay422                endif423                if timer preventOverheadSpamTimer >= cdPreventOverheadSpam424                    overhead "waiting for mana" 88425                    settimer preventOverheadSpamTimer 0426                endif427                if not findbuff "Actively Meditating"428                    useskill "meditation"429                endif430                wait 200431            endwhile432            if timer vengefulSpiritTimer >= cdVengefulSpirit433                yell "[VengefulSpirit"434                settimer vengefulSpiritTimer 0435                wait 500436            endif437            while followers = followCount438                cast "fire elemental"439                wait 500440                if timer witherTimer >= cdWither441                    yell "[Wither"442                    settimer witherTimer 0443                endif444                if diffhits >= 30445                    hotkey '> Interrupt'446                    break447                endif448            endwhile449            // 24 - a lich450            if findtype 24 ground -1 -1 6 as myPet451                if noto myPet = "friend" and list petNameList > 0452                    overhead "Renaming..."453                    foreach petName in petNameList454                        rename myPet petName455                        break456                    endfor457                    poplist petNameList "front"458                endif459                @setvar! myWaterPet myPet460                say "all guard me"461                replay462            endif463        endif464    endif465endif466 467if followers = 4 and diffhits < 30468    while mana < 14469        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam470            overhead "waiting for mana" 88471            settimer preventOverheadSpamTimer 0472        endif473        if diffhits >= 30474            replay475        endif476        if not findbuff "Actively Meditating"477            useskill "meditation"478        endif479        wait 200480    endwhile481    if timer vengefulSpiritTimer >= cdVengefulSpirit482        yell "[VengefulSpirit"483        settimer vengefulSpiritTimer 0484        wait 200485    endif486    while followers = followCount487        cast 'Summ. Creature'488        wait 500489        if diffhits >= 30490            hotkey '> Interrupt'491            replay492        endif493    endwhile        494    say "all guard me"495endif496 497if diffhits >= 30498    if targetexists 499        hotkey 'Cancel Current Target'500    endif501    while not targetexists 'beneficial'502        if diffhits >= 60503            cast 'Heal'504        else505            cast 'Greater Heal'                506        endif507        wait 50508        if hp = maxhp509            hotkey '> Interrupt'510            break511        endif512    endwhile513    if targetexists 'beneficial'514        target self515    endif516    replay517endif518 519# Eat food if we got it520if not findbuff "food" and findtype "tray" backpack as jood521    dclick jood522    wait 200523endif524 525# Use Taste ID if possible526if skill "Taste Identification" >= 50 and not findbuff "herb" and timer meditiationTimer >= 11000 527    useskill 'tasteidentification'528    wft 500529    target backpack530    settimer meditiationTimer 0531endif532 533if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 1534    say "all kill"535    wait 200536    while targetexists 537        // wait538        wait 50539    endwhile540else541    hotkey 'Target Closest Non-Friendly Monster'542    wait 200543    if insysmsg "No one matching that was found"544        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam545            overhead "found no one" 34546            settimer preventOverheadSpamTimer 0547        endif548        if autoBotEnabled = 1549            wait 500550            replay551        endif552        stop553    elseif not find lasttarget ground -1 -1 8554        overhead "� �� HERE �� �" 88 lasttarget555        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam556            overhead "Move closer, more then 8 tiles away" 34557            settimer preventOverheadSpamTimer 0558        endif559        if autoBotEnabled = 1560            wait 500561            replay562        endif563        stop564    else565        overhead "� �� HERE �� �" 88 lasttarget566    endif    567endif568 569@setvar myKillTarget lasttarget 570 571if not varexist myPreviousKillTarget572    @setvar myPreviousKillTarget 0     573endif574 575getlabel myKillTarget desc576overhead desc577 578if not varexist myEarthPet or dead myEarthPet579    overhead "Resummoning" 34580    if findtype "an ancient mummy" ground -1 -1 10 as maybePet581        if noto maybePet = "friend"582            @setvar! myEarthPet maybePet583            replay584        endif585    endif586else587    menu myEarthPet 2588    wft 500589    target myKillTarget590endif591 592if diffhits >= 30 and mana > 12593    while not targetexists594        if diffhits >= 60595            cast 'Heal'596        else597            cast 'Greater Heal'                598        endif599        wait 50600        if hp = maxhp601            hotkey '> Interrupt'602            break603        endif604    endwhile605    if targetexists606        target self607    endif608elseif castBless = 1 and str <= 100609    while not targetexists610        cast 'Bless'611        wait 50612        if diffhits >= 30613            hotkey '> Interrupt'614            break615        endif616    endwhile617    if targetexists618        target self619    endif620endif621 622if not listexists myCursedTargets623    createlist myCursedTargets624endif625 626if not listexists myManaDrainTargets627    createlist myManaDrainTargets628endif629 630if find myKillTarget -1 -1 12 as killy631    if myKillTarget = myPreviousKillTarget632        // do nothing633    else634        635        // Herding using crook636        if skill "Herding" > 0 and findtype 3713 backpack as jrook637            dclick jrook638            wft 500639            target killy640        endif641 642        if inlist myManaDrainTargets myKillTarget643            overhead "Target currently mana drained" 88644            // do nothing645        elseif castManadrain = 0646            // do nothing 647        else648            while not targetexists and not dead myKillTarget649                if diffhits < 30650                    cast 'mana drain'651                    wait 50652                elseif diffhits >= 30 653                    hotkey '> Interrupt'654                    break655                endif656            endwhile657            if targetexists658                target myKillTarget659                pushlist myManaDrainTargets myKillTarget660                settimer killTargetTimer 0661                wait 500662            endif663        endif664        665        if inlist myCursedTargets myKillTarget666            overhead "Target currently cursed" 88667            // do nothing668        elseif castCurse = 0669            // do nothing670        else671            while not targetexists and not dead myKillTarget672                if diffhits < 30673                    cast 'Curse'674                    wait 50675                elseif diffhits >= 30 676                    hotkey '> Interrupt'677                    break678                endif679            endwhile680            if targetexists681                target myKillTarget682                pushlist myCursedTargets myKillTarget683                settimer killTargetTimer 0684                wait 500685            endif686        endif687        @setvar myPreviousKillTarget myKillTarget688    endif689else690    overhead "Out of range" 34691endif692 693 694clearsysmsg 695 696say "all guard"697 698@setvar! isLethalPoison 0699@setvar! isDiscorded 0700@setvar! isHerded 0701 702while not dead myKillTarget and find myKillTarget -1 -1 12 as killy703 704    if skill "Herding" > 0 and isHerded = 0 and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook705        dclick jrook706        wft 500707        target myKillTarget708        settimer meditiationTimer 8000709        @setvar! isHerded 1710    endif711    712    if gumpexists 622436516 and skill "Necromancy" >= 50713        if ingump "12/" 622436516714            @setvar! necroSymbols 12715        elseif ingump "11/" 622436516716            @setvar! necroSymbols 11717        elseif ingump "10/" 622436516718            @setvar! necroSymbols 10719        elseif ingump "9/" 622436516720            @setvar! necroSymbols 9721        elseif ingump "8/" 622436516722            @setvar! necroSymbols 8723        elseif ingump "7/" 622436516724            @setvar! necroSymbols 7725        elseif ingump "6/" 622436516726            @setvar! necroSymbols 6727        elseif ingump "5/" 622436516728            @setvar! necroSymbols 5729        elseif ingump "4/" 622436516730            @setvar! necroSymbols 4731        elseif ingump "3/" 622436516732            @setvar! necroSymbols 3733        elseif ingump "2/" 622436516734            @setvar! necroSymbols 2735        elseif ingump "1/" 622436516736            @setvar! necroSymbols 1737        elseif ingump "0/" 622436516738            @setvar! necroSymbols 0739        endif740    endif741    742    if skill "Discordance" >= 50 743        if isDiscorded = 0744            getlabel myKillTarget discordDesc745            if "discord" in discordDesc746                @setvar! isDiscorded 1747            elseif timer meditiationTimer >= 11000 748                useskill 'Discordance'749                wft 500750                if insysmsg "What instrument"751                    if findtype "bamboo flute" backpack as inny752                        target inny753                    elseif findtype "tambourine" backpack as inny754                        target inny755                    elseif findtype "drum" backpack as inny756                        target inny757                    elseif findtype "lute" backpack as inny758                        target inny759                    elseif findtype "harp" backpack as inny760                        target inny761                    elseif findtype "lap harp" backpack as inny762                        target inny763                    else764                        overhead "I do not have an inny" 34765                        @setvar! isDiscorded 1766                    endif767                    wft 500768                endif769                if targetexists 770                    target myKillTarget771                    overhead "Discorded" 88 myKillTarget772                endif773                settimer meditiationTimer 5000774            endif775        endif776        777        if not findbuff "song of discordance" and timer meditiationTimer >= 11000778            useskill 'Discordance'779            wft 500780            if insysmsg "What instrument"781                if findtype "bamboo flute" backpack as inny782                    target inny783                elseif findtype "tambourine" backpack as inny784                    target inny785                elseif findtype "drum" backpack as inny786                    target inny787                elseif findtype "lute" backpack as inny788                    target inny789                elseif findtype "harp" backpack as inny790                    target inny791                elseif findtype "lap harp" backpack as inny792                    target inny793                else794                    overhead "I do not have an inny" 34795                    @setvar! isDiscorded 1796                endif797                wft 500798            endif799            target backpack800            settimer meditiationTimer 0801        endif    802    endif803    804    if followers < 4805        replay806    elseif castBloodOath = 1 and timer bloodOathTimer >= cdBloodOath and 5 < necroSymbols807        yell "[BloodOath"808        settimer bloodOathTimer 0809        if gumpexists 622436516810            if ingump "12/" 622436516811                @setvar! necroSymbols 12812            elseif ingump "11/" 622436516813                @setvar! necroSymbols 11814            elseif ingump "10/" 622436516815                @setvar! necroSymbols 10816            elseif ingump "9/" 622436516817                @setvar! necroSymbols 9818            elseif ingump "8/" 622436516819                @setvar! necroSymbols 8820            elseif ingump "7/" 622436516821                @setvar! necroSymbols 7822            elseif ingump "6/" 622436516823                @setvar! necroSymbols 6824            elseif ingump "5/" 622436516825                @setvar! necroSymbols 5826            elseif ingump "4/" 622436516827                @setvar! necroSymbols 4828            elseif ingump "3/" 622436516829                @setvar! necroSymbols 3830            elseif ingump "2/" 622436516831                @setvar! necroSymbols 2832            elseif ingump "1/" 622436516833                @setvar! necroSymbols 1834            elseif ingump "0/" 622436516835                @setvar! necroSymbols 0836            endif837        endif838    endif839 840    if insysmsg "Target cannot be seen." 841        overhead "Target not in line of sight" 34842        replay843    endif 844    845    if castMagicShield = 1 and timer magicShieldTimer >= cdMagicShield and not findbuff "Magic Reflection"846        cast "Magic Reflection"847        wait 1000848    elseif drinkMagicResistPot = 1 and not findbuff "Magic Reflection" and not findbuff "Magic Resist Potion" and findtype "Black Potion" backpack as pot849        dclick pot850        wait 200851    endif852 853    if findbuff "Magic Reflection"854        settimer magicShieldTimer 0855    endif856    857    if castReactiveArmor = 1 and timer reactiveArmorTimer >= cdReactiveArmor and not findbuff "Reactive Armor"858        cast "Reactive Armor"859        wait 200860    endif861 862    if findbuff "Reactive Armor"863        settimer reactiveArmorTimer 0864    endif865    if castCorpseSkin = 1 and timer corpseSkinTimer >= cdCorpseSkin and skill "Necromancy" >= 65 and timer meditiationTimer >= cdMeditationMini and 2 < necroSymbols866        yell "[CorpseSkin"867        settimer corpseSkinTimer 0868        cooldown CorpseSkin cdCorpseSkin869        wait 500870        if gumpexists 622436516871            if ingump "12/" 622436516872                @setvar! necroSymbols 12873            elseif ingump "11/" 622436516874                @setvar! necroSymbols 11875            elseif ingump "10/" 622436516876                @setvar! necroSymbols 10877            elseif ingump "9/" 622436516878                @setvar! necroSymbols 9879            elseif ingump "8/" 622436516880                @setvar! necroSymbols 8881            elseif ingump "7/" 622436516882                @setvar! necroSymbols 7883            elseif ingump "6/" 622436516884                @setvar! necroSymbols 6885            elseif ingump "5/" 622436516886                @setvar! necroSymbols 5887            elseif ingump "4/" 622436516888                @setvar! necroSymbols 4889            elseif ingump "3/" 622436516890                @setvar! necroSymbols 3891            elseif ingump "2/" 622436516892                @setvar! necroSymbols 2893            elseif ingump "1/" 622436516894                @setvar! necroSymbols 1895            elseif ingump "0/" 622436516896                @setvar! necroSymbols 0897            endif898        endif899    endif900    901    if skill "poisoning" >= 100 or castPoisonAnyway = 1902        if timer meditiationTimer >= cdMeditationMini903            if castMindRot = 1 and timer mindRotTimer >= cdMindRot and skill "Necromancy" >= 75 and 3 < necroSymbols 904                yell "[MindRot"905                settimer mindRotTimer 0906                wait 500907                if gumpexists 622436516908                    if ingump "12/" 622436516909                        @setvar! necroSymbols 12910                    elseif ingump "11/" 622436516911                        @setvar! necroSymbols 11912                    elseif ingump "10/" 622436516913                        @setvar! necroSymbols 10914                    elseif ingump "9/" 622436516915                        @setvar! necroSymbols 9916                    elseif ingump "8/" 622436516917                        @setvar! necroSymbols 8918                    elseif ingump "7/" 622436516919                        @setvar! necroSymbols 7920                    elseif ingump "6/" 622436516921                        @setvar! necroSymbols 6922                    elseif ingump "5/" 622436516923                        @setvar! necroSymbols 5924                    elseif ingump "4/" 622436516925                        @setvar! necroSymbols 4926                    elseif ingump "3/" 622436516927                        @setvar! necroSymbols 3928                    elseif ingump "2/" 622436516929                        @setvar! necroSymbols 2930                    elseif ingump "1/" 622436516931                        @setvar! necroSymbols 1932                    elseif ingump "0/" 622436516933                        @setvar! necroSymbols 0934                    endif935                endif936            endif937            938            while isLethalPoison = 0939                940                if insysmsg "Target cannot be seen." 941                    overhead "Target not in line of sight" 34942                    replay943                endif 944            945                getlabel myKillTarget desc2946                overhead desc2 66947                // poison lethal948                if "Lethal" in desc2949                    @setvar! isLethalPoison 1950                    break951                elseif castPoisonAnyway = 1 and "Ticks" in desc2952                    @setvar! isLethalPoison 1953                    break954                elseif castPoisonAnyway = 1 and "Poison" in desc2955                    @setvar! isLethalPoison 1956                    break957                elseif diffhits >= 30 958                    // need a heal959                    break960                elseif mana >= 9961                    while not targetexists962                        cast 'poison'963                        wait 50964                        if dead myKillTarget965                            hotkey '> Interrupt'966                            replay967                        endif968                    endwhile969                    target myKillTarget970                    wait 200971                    if insysmsg "Target cannot be seen." 972                         overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 34973                         @setvar! isLethalPoison 1974                    endif 975                else976                    wait 200977                endif978            endwhile979        endif980    endif981    982    if castEvilOmen = 1 and timer evilOmenTimer >= cdEvilOmen and skill "Necromancy" >= 60 and timer meditiationTimer >= cdMeditationMini and 2 < necroSymbols983        yell "[EvilOmen"984        settimer evilOmenTimer 0985        cooldown EvilOmen cdEvilOmen986        wait 500987        if gumpexists 622436516988            if ingump "12/" 622436516989                @setvar! necroSymbols 12990            elseif ingump "11/" 622436516991                @setvar! necroSymbols 11992            elseif ingump "10/" 622436516993                @setvar! necroSymbols 10994            elseif ingump "9/" 622436516995                @setvar! necroSymbols 9996            elseif ingump "8/" 622436516997                @setvar! necroSymbols 8998            elseif ingump "7/" 622436516999                @setvar! necroSymbols 71000            elseif ingump "6/" 6224365161001                @setvar! necroSymbols 61002            elseif ingump "5/" 6224365161003                @setvar! necroSymbols 51004            elseif ingump "4/" 6224365161005                @setvar! necroSymbols 41006            elseif ingump "3/" 6224365161007                @setvar! necroSymbols 31008            elseif ingump "2/" 6224365161009                @setvar! necroSymbols 21010            elseif ingump "1/" 6224365161011                @setvar! necroSymbols 11012            elseif ingump "0/" 6224365161013                @setvar! necroSymbols 01014            endif1015        endif1016    endif1017 1018    if castVampiricEmbrace = 1 and timer vampiricEmbraceTimer >= cdVampiricEmbrace and skill "Necromancy" >= 75 and timer meditiationTimer >= cdMeditationMini and 3 < necroSymbols and findtype 8198 ground -1 -1 4 as jorpse1019        yell "[VampiricEmbrace"1020        wft 5001021        target jorpse1022        settimer vampiricEmbraceTimer 01023        cooldown VampiricEmbrace cdVampiricEmbrace1024        wait 5001025        if gumpexists 6224365161026            if ingump "12/" 6224365161027                @setvar! necroSymbols 121028            elseif ingump "11/" 6224365161029                @setvar! necroSymbols 111030            elseif ingump "10/" 6224365161031                @setvar! necroSymbols 101032            elseif ingump "9/" 6224365161033                @setvar! necroSymbols 91034            elseif ingump "8/" 6224365161035                @setvar! necroSymbols 81036            elseif ingump "7/" 6224365161037                @setvar! necroSymbols 71038            elseif ingump "6/" 6224365161039                @setvar! necroSymbols 61040            elseif ingump "5/" 6224365161041                @setvar! necroSymbols 51042            elseif ingump "4/" 6224365161043                @setvar! necroSymbols 41044            elseif ingump "3/" 6224365161045                @setvar! necroSymbols 31046            elseif ingump "2/" 6224365161047                @setvar! necroSymbols 21048            elseif ingump "1/" 6224365161049                @setvar! necroSymbols 11050            elseif ingump "0/" 6224365161051                @setvar! necroSymbols 01052            endif1053        endif1054    endif1055    1056 1057    if castPainSpike = 1 and timer painSpikeTimer >= cdPainSpike and skill "Necromancy" >= 95 and timer meditiationTimer >= cdMeditationMini and 5 < necroSymbols and findtype 8198 ground -1 -1 6 as jorpse1058        yell "[PainSpike"1059        wft 5001060        target myKillTarget1061        wait 2001062        if insysmsg "You do not see any corpses"1063            overhead "No corpse in range" 341064        else1065            settimer painSpikeTimer 01066            cooldown PainSpike cdPainSpike            1067        endif1068        if gumpexists 6224365161069            if ingump "12/" 6224365161070                @setvar! necroSymbols 121071            elseif ingump "11/" 6224365161072                @setvar! necroSymbols 111073            elseif ingump "10/" 6224365161074                @setvar! necroSymbols 101075            elseif ingump "9/" 6224365161076                @setvar! necroSymbols 91077            elseif ingump "8/" 6224365161078                @setvar! necroSymbols 81079            elseif ingump "7/" 6224365161080                @setvar! necroSymbols 71081            elseif ingump "6/" 6224365161082                @setvar! necroSymbols 61083            elseif ingump "5/" 6224365161084                @setvar! necroSymbols 51085            elseif ingump "4/" 6224365161086                @setvar! necroSymbols 41087            elseif ingump "3/" 6224365161088                @setvar! necroSymbols 31089            elseif ingump "2/" 6224365161090                @setvar! necroSymbols 21091            elseif ingump "1/" 6224365161092                @setvar! necroSymbols 11093            elseif ingump "0/" 6224365161094                @setvar! necroSymbols 01095            endif1096        endif1097    endif1098   1099    if find myKillTarget -1 -1 12 as killy1100       // do nothing1101    else1102        overhead "Out of range" 341103        break1104    endif1105    1106    if poisoned1107        if findtype "Orange Potion" backpack as pot 1108            dclick pot1109            wait 2001110        else1111            while not targetexists1112                if not poisoned1113                    hotkey '> Interrupt'1114                    break1115                else1116                    cast 'Cure'1117                    wait 501118                endif 1119            endwhile1120            if targetexists1121                target self1122                wait 5001123            endif1124        endif1125    endif1126 1127    if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy1128        overhead "Eating shrooms" 661129        dclick mushy1130        settimer magicMushroomTimer 01131    endif1132    1133    if castLightning = 1 and diffhits < 30 and mana >= 12 and timer lightningTimer >= cdLightning and timer meditiationTimer >= cdMeditationMini1134        while not targetexists1135            if dead myKillTarget or diffhits >= 301136                hotkey '> Interrupt'1137                break1138            else1139                cast 'Lightning'1140                wait 501141            endif 1142        endwhile1143        if targetexists1144            target myKillTarget1145            settimer lightningTimer 01146            cooldown Lightning cdLightning1147            wait 5001148        endif1149    endif1150  1151    if castMagicArrow = 1 and diffhits < 30 and mana >= 5 and timer magicArrowTimer >= cdMagicArrow and timer meditiationTimer >= cdMeditationMini1152        while not targetexists1153            if dead myKillTarget or diffhits >= 301154                hotkey '> Interrupt'1155                break1156            else1157                cast 'magic arrow'1158                wait 501159            endif 1160        endwhile1161        if targetexists1162            target myKillTarget1163            settimer magicArrowTimer 01164            cooldown MagicArrow cdMagicArrow1165            wait 5001166        endif1167    endif1168 1169    if castHarm = 1 and diffhits < 30 and mana >= 9 and timer harmTimer >= cdHarm and timer meditiationTimer >= cdMeditationMini1170        while not targetexists1171            if dead myKillTarget or diffhits >= 301172                hotkey '> Interrupt'1173                break1174            else1175                cast 'harm'1176                wait 501177            endif 1178        endwhile1179        if targetexists1180            target myKillTarget1181            settimer harmTimer 01182            cooldown Harm cdHarm1183            wait 5001184        endif1185    endif1186 1187    if castFireball = 1 and diffhits < 30 and mana >= 12 and timer fireballTimer >= cdFireball and timer meditiationTimer >= cdMeditationMini1188        while not targetexists1189            if dead myKillTarget or diffhits >= 301190                hotkey '> Interrupt'1191                break1192            else1193                cast 'fireball'1194                wait 501195            endif 1196        endwhile1197        if targetexists1198            target myKillTarget1199            settimer fireballTimer 01200            cooldown Fireball cdFireball1201            wait 5001202        endif1203    endif1204    1205    if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy1206        overhead "Eating mushroom" 661207        dclick mushy1208        settimer magicMushroomTimer 01209    endif1210    1211    if diffhits >= 301212            1213        if findtype "Yellow Potion" backpack as pot 1214            getlabel pot desc1215            if "next usable" in desc1216                // do nothing1217            else1218                dclick pot1219                wait 2001220            endif1221        endif1222 1223        if diffhits >= 30 and mana >= 121224            while not targetexists1225                if diffhits >= 601226                    cast 'Heal'1227                else1228                    cast 'Greater Heal'                1229                endif1230                wait 501231                if hp = maxhp1232                    hotkey '> Interrupt'1233                    break1234                endif1235            endwhile1236            if targetexists1237                target self1238                wait 501239            endif1240        endif1241    elseif mana < 55 and findbuff "actively meditating" 1242        // wait for mana1243    elseif timer meditiationTimer < cdMeditationMini and findbuff "actively meditating" 1244        // wait for mana1245    elseif spamMindBlastOverFlamestrike = 1 mana > 421246        while not targetexists and mana > 401247            if dead myKillTarget or diffhits >= 301248                hotkey '> Interrupt'1249                break1250            else1251                cast 'Mind Blast'1252                wait 501253            endif 1254        endwhile1255        if targetexists1256            target myKillTarget1257            wait 5001258        endif1259        elseif spamMindBlastOverFlamestrike = 2 mana > 421260        while not targetexists and mana > 401261            if dead myKillTarget or diffhits >= 301262                hotkey '> Interrupt'1263                break1264            else1265                cast 'Mind Blast'1266                wait 501267            endif 1268        endwhile1269        if targetexists1270            target myKillTarget1271            wait 5001272        endif1273        while not targetexists and mana > 401274            if dead myKillTarget or diffhits >= 301275                hotkey '> Interrupt'1276                break1277            else1278                cast 'Flamestrike'1279                wait 501280            endif 1281        endwhile1282        if targetexists1283            target myKillTarget1284            wait 5001285        endif1286    elseif mana > 421287        while not targetexists and mana > 401288        1289            if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy1290                overhead "Eating mushroom" 661291                dclick mushy1292                settimer magicMushroomTimer 01293            endif1294    1295            if dead myKillTarget or diffhits >= 301296                hotkey '> Interrupt'1297                break1298            else1299                cast 'Flamestrike'1300                wait 501301            endif 1302        endwhile1303        if targetexists1304            target myKillTarget1305            wait 5001306        endif1307    elseif not findbuff "actively meditating" and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy1308        overhead "Eating mushroom" 661309        dclick mushy1310        settimer magicMushroomTimer 01311    elseif not findbuff "actively meditating" and timer meditiationTimer >= cdMeditation1312        say "all guard me"1313        useskill 'meditation'1314        settimer meditiationTimer 01315        wait 5001316    endif1317    wait 501318endwhile1319wait 5001320if targetexists 1321    hotkey 'Cancel Current Target'1322endif1323if not findbuff "actively meditating" 1324    say "all guard me"1325endif1326while mana < 501327    if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 01328        hotkey 'Target Closest Non-Friendly Monster'1329        wait 2001330        if insysmsg "No one matching that was found"1331            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1332                overhead "no next target" 341333                settimer preventOverheadSpamTimer 01334            endif1335        elseif not find lasttarget ground -1 -1 81336            overhead "� �� NEXT TARGET HERE �� �" 88 lasttarget1337            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1338                overhead "Move closer, more then 8 tiles away" 341339                settimer preventOverheadSpamTimer 01340            endif1341        else1342            overhead "� �� NEXT TARGET HERE �� �" 88 lasttarget1343            attack lasttarget1344        endif    1345    endif1346    if diffhits >= 301347        if findtype "Yellow Potion" backpack as pot 1348            getlabel pot desc1349            if "next usable" in desc1350                // do nothing1351            else1352                dclick pot1353                wait 2001354            endif1355        endif1356        if diffhits >= 30 and mana >= 121357            while not targetexists1358                if diffhits >= 601359                    cast 'Heal'1360                else1361                    cast 'Greater Heal'                1362                endif1363                wait 501364                if hp = maxhp1365                    hotkey '> Interrupt'1366                    break1367                endif1368            endwhile1369            if targetexists1370                target self1371                wait 501372            endif1373        endif1374    endif1375    if not findbuff "actively meditating" 1376        useskill 'meditation'1377    endif1378    wait 5001379endwhile1380if canYouMakeAMushroom = 1 and counttype "mushroom" backpack < 51381    while counttype "mushroom" backpack < 151382        cast "Create Food"1383        wait 2001384        if diffhits >= 30 or counttype "mushroom" backpack = 01385            break1386        endif1387    endwhile1388endif1389if castVampiricEmbrace = 1 and timer vampiricEmbraceTimer >= cdVampiricEmbrace and skill "Necromancy" >= 70 and findtype 8198 ground -1 -1 4 as jorpse1390    say "[VampiricEmbrace"1391    wft 5001392    target jorpse1393    settimer vampiricEmbraceTimer 01394    cooldown VampiricEmbrace cdVampiricEmbrace1395endif1396 1397if timer killTargetTimer >= cdKillTarget1398    overhead "Curse and mana drain target cleared" 341399    removelist myCursedTargets      1400    removelist myManaDrainTargets1401endif1402   1403if autoBotEnabled = 11404    replay1405endif1406 1407// thanks for using a Jaseowns script!1408// https://www.youtube.com/jaseowns