Skip to content
Outlands Hub

Razor script

Willobe's edit of Jaseowns Ultimate Magery Summoner Nox Necro script With Summon logic

by Willobe · 1316 lines
Download

One hotkey mage cycle, nox, poison by Jaseowns UO Outlands - https://youtu.be/K3bVPhHcInE - Added Summon logic and organizer - by Willobe

MagicOrganizingMageryMeditation
Willobes edit of Jaseowns Ultimate Magery Summoner Nox Necro script With Summon logic.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/2cf71367-f0bf-4ffa-821d-9604de8bc059 for latest2# Automation by Jaseowns3## Script: Willobe's edit of Jaseowns Ultimate Magery Summoner Nox Necro script With Summon logic4## Created by: Willobe#57505#############################################6 7# One hotkey mage cycle, nox, poison by Jaseowns8# UO Outlands - https://youtu.be/K3bVPhHcInE9# - Added Summon logic and organizer - by Willobe    10 11// Beta client for cooldowns12// cooldowns for mushrooms, mana vampire and healpots13// for now using timers14 15# Set this to one, if you want to cast poison once no matter what16# If you have 100 poisoning and want Lethal, set this to 017@setvar! castPoisonAnyway 118 19# We will spam mind blast when other skills are on cooldown20# If you set this to 0 it will use flamestrike21@setvar! spamMindBlastOverFlamestrike 122 23# This will auto replay this script if you want it too24@setvar! autoBotEnabled 125 26# This will make sure you have bless on27@setvar! blessYourself 128 29# Update this variable to 1 for ALL KILL30# Update this variable to 0 for target nearest31@setvar! setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster 132 33###############34### Edit these cooldowns to match your wizard grimoire35######36@setvar! canYouMakeAMushroom 137@setvar! cdLightning 4000038@setvar! cdMagicArrow 2000039@setvar! cdHarm 2000040@setvar! cdFireball 6000041 42###############43### Necro Cooldowns44######45@setvar! cdEvilOmen 3000046@setvar! cdVampiricEmbrace 3000047@setvar! cdCorpseSkin 3000048@setvar! cdMindRot 3000049@setvar! cdVengSpirit 3000050@setvar! cdWither 3000051#### Necro Symbols52@setvar! necro_has_enough_symbols 053#### Buff Cooldowns54@setvar! cdMushroom 6000055@setvar! cdMagicShield 6000056@setvar! cdReactiveArmor 6000057 58########59###### Summon Type  - 2 Larger and 1 small total of 5 follower count60####61## Select Larger Summon Type (2 follower slots)62## 0= none, 1 = Air Elemental(a Skeletal Fiend), 2 = Summon Daemon(A Vampire Thrall), 3 = Earth Elemental(An Ancient Mummy), 4 = Fire Elemental(A Lich), 5 = Water Elemental(A Rag Witch)63@setvar! summonLargeOne 364@setvar! summonLargeTwo 465 66##Select Smaller Summon Type (1 Follower slot)67## 0 = none, 1 = Summon Creature (random undead), 2 = Blade Spirits(A Skeletal Husk) *Only one Allowed* 68@setvar! summonSmallOne 169 70#####71##### Orangize loot in your back at the end of the loop like to move reagents you loot to your satchel72##73## If set to 0 then do not run organizer, otherwise setup your organizer number in razor 1-2074@setvar! organizerNumber 2075 76 77 78##################################################################79# 80#   Hopefully you do not have to edit after this :)81#82##################################################################83 84 85// Make sure we have a spell book attached86if findlayer self righthand as item87    // do nothing88elseif findtype "3834" backpack as item89    dclick item90else 91    overhead "No book bro!" 3492endif93 94if not timerexists reactiveArmorTimer95    createtimer reactiveArmorTimer96    settimer reactiveArmorTimer cdMagicShield97endif98 99if not timerexists magicShieldTimer100    createtimer magicShieldTimer101    settimer magicShieldTimer cdMagicShield102endif103 104if not timerexists magicMushroomTimer105    createtimer magicMushroomTimer106    settimer magicMushroomTimer cdMushroom107endif108 109if not timerexists magicArrowTimer110    createtimer magicArrowTimer111    settimer magicArrowTimer cdMagicArrow112endif113 114if not timerexists lightningTimer115    createtimer lightningTimer116    settimer lightningTimer cdLightning117endif118 119if not timerexists harmTimer120    createtimer harmTimer121    settimer harmTimer cdHarm122endif123 124if not timerexists fireballTimer125    createtimer fireballTimer126    settimer fireballTimer cdFireball127endif128 129if not timerexists evilOmenTimer130    createtimer evilOmenTimer131    settimer evilOmenTimer cdEvilOmen132endif133 134if not timerexists vampiricEmbraceTimer135    createtimer vampiricEmbraceTimer136    settimer vampiricEmbraceTimer cdVampiricEmbrace137endif138 139if not timerexists corpseSkinTimer140    createtimer corpseSkinTimer141    settimer corpseSkinTimer cdCorpseSkin142endif143 144if not timerexists mindRotTimer145    createtimer mindRotTimer146    settimer mindRotTimer cdMindRot147endif148 149if not timerexists vengSpiritTimer150    createtimer vengSpiritTimer151    settimer vengSpiritTimer cdVengSpirit152endif153 154if not timerexists witherTimer155    createtimer witherTimer156    settimer witherTimer cdWither157endif158 159 160 161# Eat food if we got it  "tray"162if not findbuff "food" and findtype 2429 backpack as jood163    dclick jood164    wait 200165endif166 167 168# Use Taste ID if possible169if skill "Taste Identification" >= 50 and not findbuff "herb"170    useskill 'tasteidentification'171    wft 500172    target backpack173endif174 175 176# Check to ensure there are enough unholy symbols 177if not gumpexists 622436516178    say "[necromancyhotbar"179    wait 500180endif181 182if ingump "12/" 622436516183        @setvar! necro_has_enough_symbols 12184elseif ingump "11/" 622436516185        @setvar! necro_has_enough_symbols 11186elseif ingump "10/" 622436516187        @setvar! necro_has_enough_symbols 10188elseif ingump "9/" 622436516189        @setvar! necro_has_enough_symbols 9190elseif ingump "8/" 622436516191        @setvar! necro_has_enough_symbols 8192elseif ingump "7/" 622436516193        @setvar! necro_has_enough_symbols 7194elseif ingump "6/" 622436516195        @setvar! necro_has_enough_symbols 6196elseif ingump "5/" 622436516197        @setvar! necro_has_enough_symbols 5198elseif ingump "4/" 622436516199        @setvar! necro_has_enough_symbols 4200elseif ingump "3/" 622436516201        @setvar! necro_has_enough_symbols 3202elseif ingump "2/" 622436516203        @setvar! necro_has_enough_symbols 2204elseif ingump "1/" 622436516205        @setvar! necro_has_enough_symbols 1206elseif ingump "0/" 622436516207        @setvar! necro_has_enough_symbols 0208endif209 210# logic of the Vengeful Spirit ability so you summon when its up to ensure you get an undead211 212if timer vengSpiritTimer >= cdVengSpirit213        @setvar! vengSpiritRdy 1214elseif timer vengSpiritTimer < 25000215        @setvar! vengSpiritRdy 2216else 217    @setvar! vengSpiritRdy 0218endif219 220# time to check for our summons221 222if witherTimer > cdwither and necro_has_enough_symbols >= 6223        say '[Wither'224        settimer witherTimer 0225        wait 650 226    endif227 228if poisoned229        if findtype "Orange Potion" backpack as pot 230            dclick pot231            wait 200232        else233            while not targetexists234                if not poisoned235                    hotkey '> Interrupt'236                    break237                else238                    cast 'Cure'239                    wait 50240                endif 241            endwhile242            if targetexists243                target self244                wait 500245            endif246        endif247endif248 249if diffhits >= 30 and mana > 12250    while not targetexists251        if diffhits >= 60252            cast 'Heal'253        else254            cast 'Greater Heal'                255        endif256        wait 50257        if hp = maxhp258            hotkey '> Interrupt'259            break260        endif261    endwhile262    if targetexists263        target self264    endif265endif266 267if mana < 55268    if not findbuff "actively meditating" and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy269        overhead "Eatting shrooms" 66270        dclick mushy271        settimer magicMushroomTimer 0272    elseif not findbuff "actively meditating"273        overhead 'Meditating'274        useskill 'meditation'275        wait 650276    endif277endif278 279if summonLargeOne > 0280    281    if not varexist myFirstSummon or dead myFirstSummon282        283        if summonLargeOne = 1284            285            if findtype 'a Skeletal Fiend' ground -1 -1 10 as maybePet286                if noto maybePet = "friend"287                    overhead 'Found a Skeletal Fiend' 88288                    @setvar! myFirstSummon maybePet289                    @ignore maybePet290                    replay291                endif292            endif293            overhead "Your Skeletal Fiend is dead..." 34294            295            if vengSpiritRdy = 0296                overhead 'Vengeful Spirit not Rdy' 33297                wait 1000298                replay   299            endif300            301            if followers < 4302                if mana > 50 or witherTimer < cdwither303                    if vengSpiritRdy = 1 and necro_has_enough_symbols > 0304                        say '[VengefulSpirit'305                        settimer vengSpiritTimer 0306                        wait 500307                        cast 'Air Elemental'308                        overhead 'Summoning a Skeletal Fiend'309                        wait 4250310                        replay311                    elseif vengSpiritRdy = 2312                        cast 'Air Elemental'313                        overhead 'Summoning a Skeletal Fiend'314                        wait 4250315                        replay316                    endif317                else 318                    overhead 'Waiting on Mana'319                    wait 1000320                    replay   321                endif322            endif323            324        elseif summonLargeOne = 2325            326            if findtype 'A Vampire Thrall' ground -1 -1 10 as maybePet327                if noto maybePet = "friend"328                    overhead 'Found a Vampire Thrall' 88329                    @setvar! myFirstSummon maybePet330                    @ignore maybePet331                    replay332                endif333            endif334            335            overhead "Your Vampire Thrall is dead..." 34336            337            if vengSpiritRdy = 0338                overhead 'Vengeful Spirit not Rdy' 33339                wait 1000340                replay   341            endif342            343            if followers < 4344                if mana > 50 or witherTimer < cdwither345                    if vengSpiritRdy = 1 and necro_has_enough_symbols > 0346                        say '[VengefulSpirit'347                        settimer vengSpiritTimer 0348                        wait 500349                        cast 'Summon Daemon'350                        overhead 'Summoning a Vampire Thrall'351                        wait 4250352                        replay353                    elseif vengSpiritRdy = 2354                        cast 'Summon Daemon'355                        overhead 'Summoning a Vampire Thrall'356                        wait 4250357                        replay358                    endif359                else 360                    overhead 'Waiting on Mana'361                    wait 1000362                    replay   363                endif364            endif365            366        elseif summonLargeOne = 3367            368            if findtype 'an Ancient Mummy' ground -1 -1 10 as maybePet369                if noto maybePet = "friend"370                    overhead 'Found an Ancient Mummy' 88371                    @setvar! myFirstSummon maybePet372                    @ignore maybePet373                    replay374                endif375            endif    376            377            overhead "Your Ancient Mummy is dead..." 34    378            379            if vengSpiritRdy = 0380                overhead 'Vengeful Spirit not Rdy' 33381                wait 1000382                replay   383            endif384            385            if followers < 4386                if mana > 50 or witherTimer < cdwither387                    if vengSpiritRdy = 1 and necro_has_enough_symbols > 0388                        say '[VengefulSpirit'389                        settimer vengSpiritTimer 0390                        wait 500391                        cast 'Earth Elemental'392                        overhead 'Summoning an Ancient Mummy'393                        wait 4250394                        replay395                    elseif vengSpiritRdy = 2396                        cast 'Earth Elemental'397                        overhead 'Summoning an Ancient Mummy'398                        wait 4250399                        replay400                    endif401                else 402                    overhead 'Waiting on Mana'403                    wait 1000404                    replay   405                endif406            endif407            408        elseif summonLargeOne = 4409           410            if findtype 'A Lich' ground -1 -1 10 as maybePet411                if noto maybePet = "friend"412                    overhead 'Found a Lich' 88413                    @setvar! myFirstSummon maybePet414                    @ignore maybePet415                    replay416                endif417            endif418            419            overhead "Your Lich is dead..." 34420            421            if vengSpiritRdy = 0422                overhead 'Vengeful Spirit not Rdy' 33423                wait 1000424                replay   425            endif426            427            if followers < 4428                if mana > 50 or witherTimer < cdwither429                    if vengSpiritRdy = 1 and necro_has_enough_symbols > 0430                        say '[VengefulSpirit'431                        settimer vengSpiritTimer 0432                        wait 500433                        cast 'Fire Elemental'434                        overhead 'Summoning a Lich'435                        wait 4250436                        replay437                    elseif vengSpiritRdy = 2438                        cast 'Fire Elemental'439                        overhead 'Summoning a Lich'440                        wait 4250441                        replay442                    endif443                else 444                    overhead 'Waiting on Mana'445                    wait 1000446                    replay   447                endif448            endif449           450        elseif summonLargeOne = 5451            452            if findtype 'a Rag Witch' ground -1 -1 10 as maybePet453                if noto maybePet = "friend"454                    overhead 'Found a Rag Witch' 88455                    @setvar! myFirstSummon maybePet456                    @ignore maybePet457                    replay458                endif459            endif460            461            overhead "Your Rag Witch is dead..." 34462            463            if vengSpiritRdy = 0464                overhead 'Vengeful Spirit not Rdy' 33465                wait 1000466                replay   467            endif468            469            if followers < 4470                if mana > 50 or witherTimer < cdwither471                    if vengSpiritRdy = 1 and necro_has_enough_symbols > 0472                        say '[VengefulSpirit'473                        settimer vengSpiritTimer 0474                        wait 500475                        cast 'Water Elemental'476                        overhead 'Summoning a Rag Witch'477                        wait 4250478                        replay479                    elseif vengSpiritRdy = 2480                        cast 'Water Elemental'481                        overhead 'Summoning a Rag Witch'482                        wait 4250483                        replay484                    endif485                else 486                    overhead 'Waiting on Mana'487                    wait 1000488                    replay   489                endif490            endif           491        endif492    else493        menu myFirstSummon 3494        wft 750495    endif496        497endif498 499if summonLargeTwo > 0500 501    if not varexist mySecondSummon or dead mySecondSummon502        503        if summonLargeTwo = 1504            if findtype 'a Skeletal Fiend' ground -1 -1 10 as maybePet505                if noto maybePet = "friend"506                    overhead 'Found a Skeletal Fiend' 88507                    @setvar! mySecondSummon maybePet508                    @ignore maybePet509                    replay510                endif511            endif512            513            overhead "Your Skeletal Fiend is dead..." 34514            515            if vengSpiritRdy = 0516                overhead 'Vengeful Spirit not Rdy' 33517                wait 1000518                replay   519            endif520            521            if followers < 4522                if mana > 50 or witherTimer < cdwither523                    if vengSpiritRdy = 1 and necro_has_enough_symbols > 0524                        say '[VengefulSpirit'525                        settimer vengSpiritTimer 0526                        wait 500527                        cast 'Air Elemental'528                        overhead 'Summoning a Skeletal Fiend'529                        wait 4250530                        replay531                    elseif vengSpiritRdy = 2532                        cast 'Air Elemental'533                        overhead 'Summoning a Skeletal Fiend'534                        wait 4250535                        replay536                    endif537                else 538                    overhead 'Waiting on Mana'539                    wait 1000540                    replay   541                endif542            endif543            544        elseif summonLargeTwo = 2545            546            if findtype 'A Vampire Thrall' ground -1 -1 10 as maybePet547                if noto maybePet = "friend" 548                    overhead 'Found a Vampire Thrall' 88549                    @setvar! mySecondSummon maybePet550                    @ignore maybePet551                    replay552                endif553            endif554            555            overhead "Your Vampire Thrall is dead..." 34556            557            if vengSpiritRdy = 0558                overhead 'Vengeful Spirit not Rdy' 33559                wait 1000560                replay   561            endif562            563            if followers < 4564                if mana > 50 or witherTimer < cdwither565                    if vengSpiritRdy = 1 and necro_has_enough_symbols > 0566                        say '[VengefulSpirit'567                        settimer vengSpiritTimer 0568                        wait 500569                        cast 'Summon Daemon'570                        overhead 'Summoning a Vampire Thrall'571                        wait 4250572                        replay573                    elseif vengSpiritRdy = 2574                        cast 'Summon Daemon'575                        overhead 'Summoning a Vampire Thrall'576                        wait 4250577                        replay578                    endif579                else 580                    overhead 'Waiting on Mana'581                    wait 1000582                    replay   583                endif584            endif585            586        elseif summonLargeTwo = 3587            if findtype 'an Ancient Mummy' ground -1 -1 10 as maybePet588                if noto maybePet = "friend" 589                    overhead 'Found an Ancient Mummy' 88590                    @setvar! mySecondSummon maybePet591                    @ignore maybePet592                    replay593                endif594            endif595            596            overhead "Your Ancient Mummy is dead..." 34597            598            if vengSpiritRdy = 0599                overhead 'Vengeful Spirit not Rdy' 33600                wait 1000601                replay   602            endif603            604            if followers < 4605                if mana > 50 or witherTimer < cdwither606                    if vengSpiritRdy = 1 and necro_has_enough_symbols > 0607                        say '[VengefulSpirit'608                        settimer vengSpiritTimer 0609                        wait 500610                        cast 'Earth Elemental'611                        overhead 'Summoning an Ancient Mummy'612                        wait 4250613                        replay614                    elseif vengSpiritRdy = 2615                        cast 'Earth Elemental'616                        overhead 'Summoning an Ancient Mummy'617                        wait 4250618                        replay619                    endif620                else 621                    overhead 'Waiting on Mana'622                    wait 1000623                    replay   624                endif625            endif626            627        elseif summonLargeTwo = 4628 629            if findtype 'A Lich' ground -1 -1 10 as maybePet630                if noto maybePet = "friend" 631                    overhead 'Found a Lich' 88632                    @setvar! mySecondSummon maybePet633                    @ignore maybePet634                    replay635                endif636            endif637            overhead "Your Lich is dead..." 34638            if vengSpiritRdy = 0639                overhead 'Vengeful Spirit not Rdy' 33640                wait 1000641                replay   642            endif643            644            if followers < 4645                if mana > 50 or witherTimer < cdwither646                    if vengSpiritRdy = 1 and necro_has_enough_symbols > 0647                        say '[VengefulSpirit'648                        settimer vengSpiritTimer 0649                        wait 500650                        cast 'Fire Elemental'651                        overhead 'Summoning a Lich'652                        wait 4250653                        replay654                    elseif vengSpiritRdy = 2655                        cast 'Fire Elemental'656                        overhead 'Summoning a Lich'657                        wait 4250658                        replay659                    endif660                else 661                    overhead 'Waiting on Mana'662                    wait 1000663                    replay   664                endif665            endif666            667        elseif summonLargeTwo = 5668 669            if findtype 'a Rag Witch' ground -1 -1 10 as maybePet670                if noto maybePet = "friend" 671                    overhead 'Found a Rag Witch' 88672                    @setvar! mySecondSummon maybePet673                    @ignore maybePet674                    replay675                endif676            endif677            overhead "Your Rag Witch is dead..." 34678            if vengSpiritRdy = 0679                overhead 'Vengeful Spirit not Rdy' 33680                wait 1000681                replay   682            endif683            684            if followers < 4685                if mana > 50 or witherTimer < cdwither686                    if vengSpiritRdy = 1 and necro_has_enough_symbols > 0687                        say '[VengefulSpirit'688                        settimer vengSpiritTimer 0689                        wait 500690                        cast 'Water Elemental'691                        overhead 'Summoning a Rag Witch'692                        wait 4250693                        replay694                    elseif vengSpiritRdy = 2695                        cast 'Water Elemental'696                        overhead 'Summoning a Rag Witch'697                        wait 4250698                        replay699                    endif700                else 701                    overhead 'Waiting on Mana'702                    wait 1000703                    replay   704                endif705            endif706            707        endif708    else709        //say 'All Guard Me'710        menu mySecondSummon 3711        wft 750712        target self //myKillTarget713    endif714        715endif716 717if summonSmallOne > 0 718    if not varexist mySmallSummon or dead mySmallSummon719        if summonSmallOne = 1720            if findtype "a ghoul" ground -1 -1 10 as maybePet721                overhead "Found a small undead.. maybe?" 88722                if noto maybePet = "friend"723                    @setvar! mySmallSummon maybePet724                    replay725                endif726            elseif findtype "a skeleton" ground -1 -1 10 as maybePet727                if noto maybePet = "friend"728                @setvar! mySmallSummon maybePet729                replay730            endif731            elseif findtype "a zombie" ground -1 -1 10 as maybePet732                overhead "Found a small undead.. maybe?" 88733                if noto maybePet = "friend"734                    @setvar! mySmallSummon maybePet735                    replay736                endif737            elseif findtype "a corpse eater" ground -1 -1 10 as maybePet738                overhead "Found a small undead.. maybe?" 88739                if noto maybePet = "friend"740                    @setvar! mySmallSummon maybePet741                    replay742                endif743            elseif findtype "a skeletal knight" ground -1 -1 10 as maybePet744                overhead "Found a small undead.. maybe?" 88745                if noto maybePet = "friend"746                    @setvar! mySmallSummon maybePet747                    replay748                endif    749            elseif findtype "a skeletal mage" ground -1 -1 10 as maybePet750                overhead "Found a small undead.. maybe?" 88751                if noto maybePet = "friend"752                    @setvar! mySmallSummon maybePet753                    replay754                endif    755            endif756            757            overhead "Your Small Summon is dead..." 34758            759            if vengSpiritRdy = 0760                overhead 'Vengeful Spirit not Rdy' 33761                wait 1000762                replay   763            endif764            765            if followers < 5766                if mana > 25 or witherTimer < cdwither767                    if vengSpiritRdy = 1  and necro_has_enough_symbols > 0768                        say '[VengefulSpirit'769                        settimer vengSpiritTimer 0770                        wait 500771                        cast 'Summ. Creature'772                        overhead 'Summoning Small Undead'773                        wait 4250774                        replay775                    elseif vengSpiritRdy = 2776                        cast 'Summ. Creature'777                        overhead 'Summoning Small Undead'778                        wait 4250779                        replay780                    endif781                else 782                    overhead 'Waiting on Mana'783                    wait 1000784                    replay   785                endif786                787        elseif summonSmallOne = 2788            if findtype "a Skeletal Husk" ground -1 -1 10 as maybePet789                overhead "Found a Skeletal Husk" 88790                if noto maybePet = "friend"791                    @setvar! mySmallSummon maybePet792                    replay793                endif    794            endif795            796            overhead "Your Skeletal Husk is dead..." 34797            798            if vengSpiritRdy = 0799                overhead 'Vengeful Spirit not Rdy' 33800                wait 1000801                replay   802            endif803            804            if followers < 5805                if mana > 25 or witherTimer < cdwither806                    if vengSpiritRdy = 1  and necro_has_enough_symbols > 0807                        say '[VengefulSpirit'808                        settimer vengSpiritTimer 0809                        wait 500810                        cast 'Blade Spirits'811                        overhead 'Summoning a Skeletal Husk'812                        wait 4250813                        replay814                    elseif vengSpiritRdy = 2815                        cast 'Blade Spirits'816                        overhead 'Summoning a Skeletal Husk'817                        wait 4250818                        replay819                    endif820                else 821                    overhead 'Waiting on Mana'822                    wait 1000823                    replay   824                endif825            endif826        endif827    else828        menu mySmallSummon 3829        wft 650830        target self831    endif832endif833 834wait 250835@clearignore836 837###### end summon logic838########################################839if mana < 55840    if not findbuff "actively meditating" and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy841        overhead "Eatting shrooms" 66842        dclick mushy843        settimer magicMushroomTimer 0844    elseif not findbuff "actively meditating"845        useskill 'meditation'846        wait 1000847    endif848endif849 850 851if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 1852    say "All Kill"853    wait 200854    while targetexists 855        // wait856        wait 50857    endwhile858    //set lasttarget859else860    hotkey 'Target Closest Non-Friendly Monster'861    wait 200862    if insysmsg "No one matching that was found"863        overhead "Found No One" 34864        if autoBotEnabled = 1865            wait 500866            replay867        endif868        stop869    endif    870endif871 872@setvar myKillTarget lasttarget 873 874if not varexist myPreviousKillTarget875    @setvar myPreviousKillTarget 0     876endif877 878getlabel myKillTarget desc879overhead desc880 881 882if poisoned883        if findtype "Orange Potion" backpack as pot 884            dclick pot885            wait 200886        else887            while not targetexists888                if not poisoned889                    hotkey '> Interrupt'890                    break891                else892                    cast 'Cure'893                    wait 50894                endif 895            endwhile896            if targetexists897                target self898                wait 500899            endif900        endif901endif902 903if diffhits >= 30 and mana > 12904    while not targetexists905        if diffhits >= 60906            cast 'Heal'907        else908            cast 'Greater Heal'                909        endif910        wait 50911        if hp = maxhp912            hotkey '> Interrupt'913            break914        endif915    endwhile916    if targetexists917        target self918    endif919elseif blessYourself = 1 and str <= 100920    while not targetexists921        cast 'Bless'922        wait 50923        if diffhits >= 30924            hotkey '> Interrupt'925            break926        endif927    endwhile928    if targetexists929        target self930    endif931endif932 933if find myKillTarget -1 -1 12 as killy934    if myKillTarget = myPreviousKillTarget935    // do nothing936    else937        938        // Herding using crook939        if skill "Herding" > 0 and findtype 3713 backpack as jrook940            dclick jrook941            wft 500942            target killy943        endif944        945        while not targetexists and not dead myKillTarget946            if diffhits < 30947                cast 'Curse'948                wait 50949            elseif diffhits >= 30 950                hotkey '> Interrupt'951                break952            endif953        endwhile954        if targetexists955            target myKillTarget956            wait 500957        endif958 959 960        while not targetexists and not dead myKillTarget961            if diffhits < 30962                cast 'mana drain'963                wait 50964            elseif diffhits >= 30 965                hotkey '> Interrupt'966                break967            endif 968        endwhile969        if targetexists970            target myKillTarget971            wait 500972        endif973        @setvar myPreviousKillTarget myKillTarget974    endif975else976    overhead "Out of range" 34977endif978 979clearsysmsg 980 981say "All Guard Me"982 983@setvar! isLethalPoison 0984 985while not dead myKillTarget and find myKillTarget -1 -1 12 as killy986 987    if insysmsg "Target cannot be seen." 988        overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 34989        replay990    endif 991    992    if timer magicShieldTimer >= cdMagicShield and not findbuff "Magic Reflection"993        cast "Magic Reflection"994        wait 1000995    elseif not findbuff "Magic Reflection" and not findbuff "Magic Resist Potion" and findtype "Black Potion" backpack as pot996        dclick pot997        wait 200998    endif999 1000    if findbuff "Magic Reflection"1001        settimer magicShieldTimer 01002    endif1003    1004    if timer reactiveArmorTimer >= cdReactiveArmor and not findbuff "Reactive Armor"1005        cast "Reactive Armor"1006        wait 2001007    endif1008 1009    if findbuff "Reactive Armor"1010        settimer reactiveArmorTimer 01011    endif1012 1013    if timer corpseSkinTimer >= cdCorpseSkin and skill "Necromancy" >= 651014        overhead "Should be CorpseSkin!" 341015        say "[CorpseSkin"1016        settimer corpseSkinTimer 01017        wait 5001018    endif1019    1020    if skill "poisoning" >= 100 or castPoisonAnyway = 11021 1022        if timer mindRotTimer >= cdMindRot and skill "Necromancy" >= 751023            overhead "Should be mind rotting!" 341024            say "[MindRot"1025            settimer mindRotTimer 01026            wait 5001027        endif1028        1029        while isLethalPoison = 01030            1031            if insysmsg "Target cannot be seen." 1032                overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341033                replay1034            endif 1035        1036            getlabel myKillTarget desc21037            overhead desc2 661038            // poison lethal1039            if "Lethal" in desc21040                @setvar! isLethalPoison 11041                break1042            elseif castPoisonAnyway = 1 and "Ticks" in desc21043                @setvar! isLethalPoison 11044                break1045            elseif castPoisonAnyway = 1 and "Poison" in desc21046                @setvar! isLethalPoison 11047                break1048            elseif diffhits >= 30 1049                // need a heal1050                break1051            elseif mana >= 91052                while not targetexists1053                    cast 'poison'1054                    wait 501055                    if dead myKillTarget1056                        hotkey '> Interrupt'1057                        replay1058                    endif1059                endwhile1060                target myKillTarget1061                wait 2001062                if insysmsg "Target cannot be seen." 1063                     overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341064                     @setvar! isLethalPoison 11065                endif 1066            else1067                wait 2001068            endif1069        endwhile1070    endif1071    if timer evilOmenTimer >= cdEvilOmen and skill "Necromancy" >= 601072        say "[EvilOmen"1073        settimer evilOmenTimer 01074        wait 2001075    endif1076 1077    if timer vampiricEmbraceTimer >= cdVampiricEmbrace and skill "Necromancy" >= 75 and findtype 8198 ground -1 -1 4 as jorpse1078        say "[VampiricEmbrace"1079        wft 5001080        target jorpse1081        settimer vampiricEmbraceTimer 01082    endif1083   1084    if find myKillTarget -1 -1 12 as killy1085       // do nothing1086    else1087        overhead "Out of range" 341088        break1089    endif1090    1091    if poisoned1092        if findtype "Orange Potion" backpack as pot 1093            dclick pot1094            wait 2001095        else1096            while not targetexists1097                if not poisoned1098                    hotkey '> Interrupt'1099                    break1100                else1101                    cast 'Cure'1102                    wait 501103                endif 1104            endwhile1105            if targetexists1106                target self1107                wait 5001108            endif1109        endif1110    endif1111 1112    1113    if diffhits < 30 and mana >= 12 and timer lightningTimer >= cdLightning1114        while not targetexists1115            if dead myKillTarget or diffhits >= 301116                hotkey '> Interrupt'1117                break1118            else1119                cast 'Lightning'1120                wait 501121            endif 1122        endwhile1123        if targetexists1124            target myKillTarget1125            settimer lightningTimer 01126            wait 5001127        endif1128    endif1129 1130    if diffhits < 30 and mana >= 5 and timer magicArrowTimer >= cdMagicArrow1131        while not targetexists1132            if dead myKillTarget or diffhits >= 301133                hotkey '> Interrupt'1134                break1135            else1136                cast 'magic arrow'1137                wait 501138            endif 1139        endwhile1140        if targetexists1141            target myKillTarget1142            settimer magicArrowTimer 01143            wait 5001144        endif1145    endif1146 1147    if diffhits < 30 and mana >= 9 and timer harmTimer >= cdHarm1148        while not targetexists1149            if dead myKillTarget or diffhits >= 301150                hotkey '> Interrupt'1151                break1152            else1153                cast 'harm'1154                wait 501155            endif 1156        endwhile1157        if targetexists1158            target myKillTarget1159            settimer harmTimer 01160            wait 5001161        endif1162    endif1163 1164    if diffhits < 30 and mana >= 12 and timer fireballTimer >= cdFireball1165        while not targetexists1166            if dead myKillTarget or diffhits >= 301167                hotkey '> Interrupt'1168                break1169            else1170                cast 'fireball'1171                wait 501172            endif 1173        endwhile1174        if targetexists1175            target myKillTarget1176            settimer fireballTimer 01177            wait 5001178        endif1179    endif1180    1181    if diffhits >= 301182            1183        if findtype "Yellow Potion" backpack as pot 1184            getlabel pot desc1185            if "next usable" in desc1186                // do nothing1187            else1188                dclick pot1189                wait 2001190            endif1191        endif1192 1193        if diffhits >= 30 and mana >= 121194            while not targetexists1195                if diffhits >= 601196                    cast 'Heal'1197                else1198                    cast 'Greater Heal'                1199                endif1200                wait 501201                if hp = maxhp1202                    hotkey '> Interrupt'1203                    break1204                endif1205            endwhile1206            if targetexists1207                target self1208                wait 501209            endif1210        endif1211    elseif mana < 55 and findbuff "actively meditating" 1212        // wait for mana1213    elseif spamMindBlastOverFlamestrike = 1 mana > 421214        while not targetexists and mana > 401215            if dead myKillTarget or diffhits >= 301216                hotkey '> Interrupt'1217                break1218            else1219                cast 'Mind Blast'1220                wait 501221            endif 1222        endwhile1223        if targetexists1224            target myKillTarget1225            wait 5001226        endif1227    elseif mana > 421228        while not targetexists and mana > 401229            if dead myKillTarget or diffhits >= 301230                hotkey '> Interrupt'1231                break1232            else1233                cast 'Flamestrike'1234                wait 501235            endif 1236        endwhile1237        if targetexists1238            target myKillTarget1239            wait 5001240        endif1241    elseif not findbuff "actively meditating" and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy1242        overhead "Eatting shrooms" 661243        dclick mushy1244        settimer magicMushroomTimer 01245    elseif not findbuff "actively meditating" 1246        useskill 'meditation'1247        wait 5001248    endif1249    wait 501250 1251########1252###    If your summons die restart to resummon1253 1254    if summonLargeOne > 0 and dead myFirstSummon1255        //replay1256        overhead 'Summon Large One Dead'1257    elseif summonLargeTwo > 0 and dead mySecondSummon1258        //replay1259        overhead 'Summon Large Two Dead'1260    elseif summonSmallOne > 0 and dead mySmallSummon1261        //replay1262        overhead 'Summon Small Dead'1263    endif1264    1265###1266####### 1267 1268endwhile1269 1270wait 5001271if targetexists 1272    hotkey 'Cancel Current Target'1273endif1274say "All Guard Me"1275if canYouMakeAMushroom = 1 and counttype "mushroom" backpack < 51276    while counttype "mushroom" backpack < 151277        cast "Create Food"1278        wait 2001279        if counttype "mushroom" backpack = 01280            break1281        endif1282    endwhile1283endif1284 1285if timer vampiricEmbraceTimer >= cdVampiricEmbrace and skill "Necromancy" >= 70 and findtype 8198 ground -1 -1 4 as jorpse1286    say "[VampiricEmbrace"1287    wft 5001288    target //self jorpse1289    settimer vampiricEmbraceTimer 01290endif1291 1292##########1293### Organizer1294 1295if organizerNumber > 01296    organizer organizerNumber1297endif1298 1299###1300##########1301 1302while mana < 501303    if not findbuff "actively meditating" and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy1304        overhead "Eatting shrooms" 661305        dclick mushy1306        settimer magicMushroomTimer 01307    elseif not findbuff "actively meditating"1308        overhead 'Meditating'1309        useskill 'meditation'1310        wait 5001311    endif1312endwhile1313   1314if autoBotEnabled = 11315    replay1316endif