Skip to content
Outlands Hub

Razor script

WIP: Dexxer/Mage/Necro Hybrid

by KikRox268 · 1109 lines
Download

This script is a copy and paste of 2 different Jaseowns scripts. This is not a script made by Jaseowns! I just want to clarify that.

CombatMagic
WIP DexxerMageNecro Hybrid.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/dde7f21c-b222-4d6b-aa94-e17c82238a88 for latest2# Automation by Jaseowns3## Script: WIP: Dexxer/Mage/Necro Hybrid4## Created by: KikRox268#63725#############################################6 7#This script is a copy and paste of 2 different Jaseowns scripts. This is not a script made by Jaseowns! I just want to clarify that. 8 9# Dexxer Bot by Jaseowns10# UO Outlands11#######12# Working on this during the live streams: Monday / Wednesday / Friday13# https://youtube.com/jaseowns/live14#######15# Basic Heal and Chivalry abilties to heal by Jaseowns16# UO Outlands17@setvar! cdPreventOverheadSpam 200018 19# Check potion buffs controllers20@setvar! checkStr 121@setvar! checkDex 122@setvar! checkMagic 123@setvar! checkHealPot 124@setvar! checkCurePot 125@setvar! checkRefreshPot 126 27# These control when the potion will be drank28# Edit to your liking29@setvar! hpCheckToTriggerHealPotion 3530@setvar! hpCheckToTriggerCurePotion 4031@setvar! stamCheckToTriggerRedPotion 2032 33# Automatically Select Next Target34@setvar! autoTargetNextMob 135 36@setvar! minimumWaitForPing 20037 38# make sure you add a friends list called: IgnoreMobs39@setvar! didYouSetupIgnoreMobs 140 41 42 43###############44###  Choose your summons45######46@setvar! castSummonFireElementalCount 147@setvar! castSummonCreatureCount 148@setvar! castSummonEarthElementalCount 149@setvar! castSummonEarthElementalAsMummy 150 51###############52###  Choose your necro spells (ignored if less then required necro skill)53######54@setvar! castEvilOmen 055@setvar! castCorpseSkin 056@setvar! castVampiricEmbrace 157@setvar! castMindRot 058@setvar! castPoisonStrike 059@setvar! castBloodOath 160@setvar! castPainSpike 061@setvar! requireWitherBeforeSummons 162 63###############64### Necro Cooldowns65######66@setvar! cdEvilOmen 3050067@setvar! cdVampiricEmbrace 3050068@setvar! cdCorpseSkin 3050069@setvar! cdMindRot 3050070@setvar! cdWither 3050071@setvar! cdVengefulSpirit 3050072@setvar! cdBloodOath 3050073@setvar! cdPainSpike 3050074@setvar! cdPoisonStrike 3050075 76@setvar! patrolPetEvenIfLastTargetIsBeyondEightTiles 177@setvar! cdKillTarget 6000078@setvar! cdMeditation 1000079 80if counttype "gold coin" backpack as total81    if 10000 < total82        overhead "Warning: {{total}} gold!" 3483    endif84endif85 86#### Pet Names, unique to you87if not listexists petNameList88    createlist petNameList89endif90if list petNameList = 091    pushlist petNameList "NecroMummy"92    pushlist petNameList "NecroLich"93    pushlist petNameList "NecroCreature"94endif95 96 97##############################################98###########  DO NOT EDIT BELOW THIS99#######100 101if not varexist jaseowns102    overhead "v2.3.0" 34103    overhead "uorazorscripts.com/mage-bot" 34104    say "This script was brought to you by youtube.com/Jaseowns" 88105    wait 500106    @setvar! jaseowns 1107endif108 109if didYouSetupIgnoreMobs = 0110    overhead "For this script to work, make sure you add a friends list called: IgnoreMobs" 34111    sysmsg  "For this script to work, make sure you add a friends list called: IgnoreMobs" 34112    wait 1500113    overhead "Click Friends Tab -> [checkmark] enabled -> [checkmark] Next/Prev Target ignores 'IgnoreMobs'" 88114    sysmsg "Click Friends Tab -> [checkmark] enabled -> [checkmark] Next/Prev Target ignores 'IgnoreMobs'" 88115    wait 5000116    overhead "If everything is setup, update didYouSetupIgnoreMobs to 1"117    sysmsg "If everything is setup, update didYouSetupIgnoreMobs to 1"118    wait 5000119    replay120endif121 122if dead 123    overhead "Rip" 34124    wait 5000125    replay126endif127 128if not findtype "White Potion" backpack129    @setvar! checkStr 0130endif131 132if not findtype "Blue Potion" backpack133    @setvar! checkDex 0134endif135 136if not findtype "Black Potion" backpack137    @setvar! checkMagic 0138endif139 140if not timerexists preventOverheadSpamTimer141    createtimer preventOverheadSpamTimer142    settimer preventOverheadSpamTimer cdPreventOverheadSpam143endif144 145@setvar! myKillTarget 0 146@setvar! targetInRange 0 147 148if not varexist myPreviousKillTarget149    @setvar myPreviousKillTarget 0     150endif151 152if autoTargetNextMob = 1153    @hotkey 'Target Closest Non-Friendly Monster'154    wait minimumWaitForPing155    if insysmsg "No one matching that was found"156        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam157            overhead "found no one" 34158            settimer preventOverheadSpamTimer 0159        endif160    else161        @setvar! myKillTarget lasttarget 162    endif    163    164    if myKillTarget = 0165        // do nothing166    elseif not find lasttarget ground -1 -1 1167        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam168            overhead "� � OUT OF RANGE � �" 88 lasttarget169            settimer preventOverheadSpamTimer 0170        endif171        if find lasttarget ground -1 -1 8172            attack lasttarget 173        endif174    else175        @setvar! targetInRange 1176        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam177            overhead "� �� HERE �� �" 88 lasttarget    178            settimer preventOverheadSpamTimer 0179        endif180        attack lasttarget 181    endif182elseif dead myKillTarget183    @hotkey 'Target Closest Non-Friendly Monster'184    wait minimumWaitForPing185    if insysmsg "No one matching that was found"186        // do nothing187    else188        @setvar! myKillTarget lasttarget 189        if myKillTarget = 0190            // do nothing191        elseif not find lasttarget ground -1 -1 1192            // do nothing193        else194            @setvar! targetInRange 1195        endif196    endif    197elseif find myKillTarget ground -1 -1 1198    @setvar! targetInRange 1199endif200 201 202 203if targetInRange = 1204    # Eat food if we got it205    if not findbuff "food" and findtype "tray" backpack as jood206        dclick jood207        wait minimumWaitForPing208    endif209    210# Use Taste ID if possible211if skill "Taste Identification" >= 50 and not findbuff "herb" and timer meditiationTimer >= 11000 212    useskill 'tasteidentification'213    wft 500214    target backpack215    settimer meditiationTimer 0216endif    217 218    @setvar! needStrBuff 0219    @setvar! needDexBuff 0220    @setvar! needMagicBuff 0221    @setvar! needHealPot 0222    @setvar! needCurePot 0223    @setvar! needRefreshPot 0224 225    if checkStr = 1 and not findbuff "Strength"226        @setvar! needStrBuff 1227    endif228 229    if checkDex = 1 and not findbuff "Agility"230        @setvar! needDexBuff 1 231    endif232 233    if checkMagic = 1 and not findbuff "Magic Resist Potion"234        @setvar! needMagicBuff 1 235    endif236 237    if checkHealPot = 1 and hp <= hpCheckToTriggerHealPotion238        @setvar! needHealPot 1 239    endif240 241    if checkCurePot = 1 and poisoned and hp <= hpCheckToTriggerCurePotion242        @setvar! needCurePot 1 243    endif244 245    if checkRefreshPot = 1 and stam <= stamCheckToTriggerRedPotion246        @setvar! needRefreshPot 1 247    endif248 249    if needStrBuff = 1 and not findtype "White Potion" backpack250        @setvar! needStrBuff 0251    endif252 253    if needDexBuff = 1 and not findtype "Blue Potion" backpack254        @setvar! needDexBuff 0255    endif256 257    if needMagicBuff = 1 and not findtype "Black Potion" backpack258        @setvar! needMagicBuff 0259    endif260 261    if needHealPot = 1 and not findtype "Yellow Potion" backpack262        @setvar! needHealPot 0263    endif264 265    if needCurePot = 1 and not findtype "Orange Potion" backpack266        @setvar! needCurePot 0267    endif268 269    if needRefreshPot = 1 and not findtype "Red Potion" backpack270        @setvar! needRefreshPot 0271    endif272    273    @setvar! jaseCanDrinkPotion 0274 275    if needStrBuff = 1 or needDexBuff = 1 or needMagicBuff = 1 or needHealPot = 1 or needCurePot = 1 or needRefreshPot = 1276 277        @setvar! jaseRightHand 0278        @setvar! jaseLeftHand 0279        @setvar! needTwoHandSwap 0280        @setvar! needShieldSwap 0281 282        if jaseCanDrinkPotion = 1283            // do nothing284        else285            if needTwoHandSwap = 1286                if skill "Swordsmanship" > 0 and findtype "cutlass|broadsword|scimitar|viking sword|longsword|katana" backpack as item287                    dclick item288                    wait minimumWaitForPing289                elseif skill "Mace Fighting" > 0 and findtype "maul|war axe|war mace|mace|hammer pick|club" backpack as item290                    dclick item291                    wait minimumWaitForPing292                elseif skill "Fencing" > 0 and findtype "kryss|war fork|dagger" backpack as item293                    dclick item294                    wait minimumWaitForPing295                elseif skill "Archery" > 0 and findtype "crossbow" backpack as item296                    dclick item297                    wait minimumWaitForPing298                else299                    hotkey 'Arm/Disarm Left Hand'    300                    wait minimumWaitForPing301                endif302                @setvar! jaseCanDrinkPotion 1303            elseif needShieldSwap = 1304                hotkey 'Arm/Disarm Left Hand'305                @setvar! jaseCanDrinkPotion 1306                wait minimumWaitForPing307            endif308        endif309 310        if jaseCanDrinkPotion = 1311            312            if needHealPot = 1313                if findtype "Yellow Potion" backpack as jotion314                    overhead "chug heal"315                    dclick jotion316                    wait minimumWaitForPing317                else318                    overhead "No Heal potion found!" 34319                endif320            endif321            322            if needCurePot = 1323                if findtype "Orange Potion" backpack as jotion324                    overhead "chug cure"325                    dclick jotion326                    wait minimumWaitForPing327                else328                    overhead "No Cure potion found!" 34329                endif330            endif331            332            if needRefreshPot = 1333                if findtype "Red Potion" backpack as jotion334                    overhead "chug refresh"335                    dclick jotion336                    wait minimumWaitForPing337                else338                    overhead "No Refresh potion found!" 34339                endif340            endif341        342            if needStrBuff = 1343                if findtype "White Potion" backpack as jotion344                    overhead "chug"345                    dclick jotion346                    wait minimumWaitForPing347                else348                    overhead "No STR potion found!" 34349                endif350            endif351            352            if needDexBuff = 1353                if findtype "Blue Potion" backpack as jotion354                    overhead "chug"355                    dclick jotion356                    wait minimumWaitForPing357                else358                    overhead "No AGI potion found!" 34359                endif360            endif361            362            if needMagicBuff = 1363                if findtype "Black Potion" backpack as jotion364                    overhead "chug"365                    dclick jotion366                    wait minimumWaitForPing367                else368                    overhead "No MR potion found!" 34369                endif370            endif371 372            if needTwoHandSwap = 1373                dclick jaseLeftHand374                wait minimumWaitForPing375            elseif needShieldSwap = 1376                hotkey 'Arm/Disarm Left Hand'377            endif378        endif379    endif380    381endif382 383if skill "Camping" > 0384    if not findbuff "campfire"385        overhead "Camping Buff" 88386        if not findtype "campfire" ground -1 -1 2 and findtype "kindling" as jindling387            dclick jindling388            wait minimumWaitForPing389        endif390        if not findtype "campfire" ground -1 -1 2391            overhead "We have camping, but can not make a campfire!" 34392        else393            overhead "Make sure you stand by your camp fire!" 88394        endif395    endif396endif397wait 200398 399if not gumpexists 622436516 and skill "Necromancy" >= 50400    say '[NecromancyHotbar'401    wait 500402endif403 404// Setting current necro symbols - checks again it the attack loop405@setvar! necroSymbols 12406if gumpexists 622436516 and skill "Necromancy" >= 50407    if ingump "12/" 622436516408        @setvar! necroSymbols 12409    elseif ingump "13/" 622436516410        @setvar! necroSymbols 13411    elseif ingump "14/" 622436516412        @setvar! necroSymbols 14413    elseif ingump "15/" 622436516414        @setvar! necroSymbols 15415    elseif ingump "16/" 622436516416        @setvar! necroSymbols 16417    elseif ingump "17/" 622436516418        @setvar! necroSymbols 17419    elseif ingump "18/" 622436516420        @setvar! necroSymbols 18421    elseif ingump "19/" 622436516422        @setvar! necroSymbols 19423    elseif ingump "20/" 622436516424        @setvar! necroSymbols 20425    elseif ingump "21/" 622436516426        @setvar! necroSymbols 21427    elseif ingump "11/" 622436516428        @setvar! necroSymbols 11429    elseif ingump "10/" 622436516430        @setvar! necroSymbols 10431    elseif ingump "9/" 622436516432        @setvar! necroSymbols 9433    elseif ingump "8/" 622436516434        @setvar! necroSymbols 8435    elseif ingump "7/" 622436516436        @setvar! necroSymbols 7437    elseif ingump "6/" 622436516438        @setvar! necroSymbols 6439    elseif ingump "5/" 622436516440        @setvar! necroSymbols 5441    elseif ingump "4/" 622436516442        @setvar! necroSymbols 4443    elseif ingump "3/" 622436516444        @setvar! necroSymbols 3445    elseif ingump "2/" 622436516446        @setvar! necroSymbols 2447    elseif ingump "1/" 622436516448        @setvar! necroSymbols 1449    elseif ingump "0/" 622436516450        @setvar! necroSymbols 0451    endif452endif453 454if not timerexists evilOmenTimer455    createtimer evilOmenTimer456    settimer evilOmenTimer cdEvilOmen457endif458 459if not timerexists vampiricEmbraceTimer460    createtimer vampiricEmbraceTimer461    settimer vampiricEmbraceTimer cdVampiricEmbrace462endif463 464if not timerexists corpseSkinTimer465    createtimer corpseSkinTimer466    settimer corpseSkinTimer cdCorpseSkin467endif468 469if not timerexists mindRotTimer470    createtimer mindRotTimer471    settimer mindRotTimer cdMindRot472endif473 474if not timerexists killTargetTimer475    createtimer killTargetTimer476    settimer killTargetTimer cdKillTarget477endif478 479if not timerexists witherTimer480    createtimer witherTimer481    settimer witherTimer cdWither482endif483 484if not timerexists vengefulSpiritTimer485    createtimer vengefulSpiritTimer486    settimer vengefulSpiritTimer cdVengefulSpirit487endif488 489if not timerexists bloodOathTimer490    createtimer bloodOathTimer491    settimer bloodOathTimer cdBloodOath492endif493 494if not timerexists meditiationTimer495    createtimer meditiationTimer496    settimer meditiationTimer cdMeditation497endif498 499if not timerexists preventOverheadSpamTimer500    createtimer preventOverheadSpamTimer501    settimer preventOverheadSpamTimer cdPreventOverheadSpam502endif503 504@setvar! cdPreventSpamNecroAbilities 750505if not timerexists preventSpamNecroAbilitiesTimer506    createtimer preventSpamNecroAbilitiesTimer507    settimer preventSpamNecroAbilitiesTimer cdPreventSpamNecroAbilities508endif509 510if not varexist myEarthPet511    @setvar! myEarthPet 0512endif513 514// make sure we have enough symbols to summon (6 for wither + vengful spirit)515if skill "Necromancy" >= 90 and requireWitherBeforeSummons = 1516    while followers < 4 and 6 > necroSymbols517        // we already have vengeful spirit active, skip the check518        if timer vengefulSpiritTimer < cdVengefulSpirit519           break520        endif521        if diffhits >= 30522            if targetexists 523                hotkey 'Cancel Current Target'524            endif525            while not targetexists 'beneficial'526                if diffhits >= 60527                    cast 'Heal'528                else529                    cast 'Greater Heal'                530                endif531                wait 50532                if hp = maxhp533                    hotkey '> Interrupt'534                    break535                endif536            endwhile537            if targetexists 'beneficial'538                hotkey 'Target Self'539            endif540        endif541        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam542            overhead "waiting for symbols" 88543            settimer preventOverheadSpamTimer 0544        endif545        if gumpexists 622436516 and skill "Necromancy" >= 50546            if ingump "12/" 622436516547                @setvar! necroSymbols 12548            elseif ingump "13/" 622436516549                @setvar! necroSymbols 13550            elseif ingump "14/" 622436516551                @setvar! necroSymbols 14552            elseif ingump "15/" 622436516553                @setvar! necroSymbols 15554            elseif ingump "16/" 622436516555                @setvar! necroSymbols 16556            elseif ingump "17/" 622436516557                @setvar! necroSymbols 17558            elseif ingump "18/" 622436516559                @setvar! necroSymbols 18560            elseif ingump "19/" 622436516561                @setvar! necroSymbols 19562            elseif ingump "20/" 622436516563                @setvar! necroSymbols 20564            elseif ingump "21/" 622436516565                @setvar! necroSymbols 21566            elseif ingump "11/" 622436516567                @setvar! necroSymbols 11568            elseif ingump "10/" 622436516569                @setvar! necroSymbols 10570            elseif ingump "9/" 622436516571                @setvar! necroSymbols 9572            elseif ingump "8/" 622436516573                @setvar! necroSymbols 8574            elseif ingump "7/" 622436516575                @setvar! necroSymbols 7576            elseif ingump "6/" 622436516577                @setvar! necroSymbols 6578            elseif ingump "5/" 622436516579                @setvar! necroSymbols 5580            elseif ingump "4/" 622436516581                @setvar! necroSymbols 4582            elseif ingump "3/" 622436516583                @setvar! necroSymbols 3584            elseif ingump "2/" 622436516585                @setvar! necroSymbols 2586            elseif ingump "1/" 622436516587                @setvar! necroSymbols 1588            elseif ingump "0/" 622436516589                @setvar! necroSymbols 0590            endif591        endif592    endwhile593endif594 595 596if not varexist lichOne597    @setvar! lichOne 0598endif599 600if not varexist lichTwo601    @setvar! lichTwo 0602endif603 604if not varexist earthOne605    @setvar! earthOne 0606endif607 608if not varexist earthTwo609    @setvar! earthTwo 0610endif611 612if lichOne = creatureOne or lichTwo = creatureOne or earthOne = creatureOne or earthTwo = creatureOne613    overhead "Duplicated"614    unsetvar creatureOne615endif616 617if diffhits >= 30618    if targetexists 619        hotkey 'Cancel Current Target'620    endif621    while not targetexists 'beneficial'622        if diffhits >= 60623            cast 'Heal'624        else625            cast 'Greater Heal'                626        endif627     if skill "Swordsmanship" > 0 and findtype "cutlass|broadsword|scimitar|viking sword|longsword|katana" backpack as item628        dclick item629        wait minimumWaitForPing630     endif   631        wait 50632        if hp = maxhp633            hotkey '> Interrupt'634            break635        endif636    endwhile637    if targetexists 'beneficial'638        target self639    endif640    replay641endif642 643 644if castSummonEarthElementalCount > 0645    if diffhits < 30646        if followers = 0647            @setvar! followCount 0648        elseif followers = 1649            @setvar! followCount 1650        elseif followers = 2651            @setvar! followCount 2652        elseif followers = 3653            @setvar! followCount 3654        elseif followers = 4655            @setvar! followCount 4656        elseif followers = 5657            @setvar! followCount 5658        endif659        if dead earthOne or not find earthOne ground -1 -1 12660            if followers < 4661                while mana < 50662                    if diffhits >= 30663                        replay664                    endif665                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam666                        overhead "waiting for mana" 88667                        settimer preventOverheadSpamTimer 0668                    endif669                    wait 200670                endwhile671                672                if castSummonEarthElementalAsMummy = 1673                    if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50674                        yell "[VengefulSpirit"675                        settimer vengefulSpiritTimer 0676                        wait 500677                    endif678                elseif timer vengefulSpiritTimer <= cdVengefulSpirit and skill "Necromancy" >= 50679                    overhead  "Waiting for spirit to go away" 680                    replay681                endif682                while followers = followCount683                    cast "Earth elemental"684                    wait 500685                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95686                        yell "[Wither"687                        settimer witherTimer 0688                    endif689                    if diffhits >= 30690                        hotkey '> Interrupt'691                        break692                    endif693                endwhile694                    if skill "Swordsmanship" > 0 and findtype "cutlass|broadsword|scimitar|viking sword|longsword|katana" backpack as item695                    dclick item696                    wait minimumWaitForPing697                // 158 - an ancient mummy698                // 14 - an earth elemental699                if findtype 158|14 ground -1 -1 6 as myPet700                    if noto myPet = "friend" and list petNameList > 0701                        overhead "Renaming..."702                        foreach petName in petNameList703                            rename myPet petName704                            break705                        endfor706                        poplist petNameList "front"707                    endif708                    @setvar! earthOne myPet709                    say "all guard me"710                    replay711                endif712            endif713        endif714    endif715    716    if diffhits < 30 and castSummonEarthElementalCount > 1717        if followers = 0718            @setvar! followCount 0719        elseif followers = 1720            @setvar! followCount 1721        elseif followers = 2722            @setvar! followCount 2723        elseif followers = 3724            @setvar! followCount 3725        elseif followers = 4726            @setvar! followCount 4727        elseif followers = 5728            @setvar! followCount 5729        endif730        if dead earthTwo or not find earthTwo ground -1 -1 12731            if followers < 4732                while mana < 50733                    if diffhits >= 30734                        replay735                    endif736                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam737                        overhead "waiting for mana" 88738                        settimer preventOverheadSpamTimer 0739                    endif740                    wait 200741                endwhile742                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50743                    yell "[VengefulSpirit"744                    settimer vengefulSpiritTimer 0745                    wait 500746                endif747                while followers = followCount748                    cast "Earth elemental"749                    wait 500750                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95751                        yell "[Wither"752                        settimer witherTimer 0753                    endif754                    if diffhits >= 30755                        hotkey '> Interrupt'756                        break757                    endif758                endwhile759                    if skill "Swordsmanship" > 0 and findtype "cutlass|broadsword|scimitar|viking sword|longsword|katana" backpack as item760                    dclick item761                    wait minimumWaitForPing762                // 158 - an ancient mummy763                // 14 - an earth elemental764                if findtype 158|14 ground -1 -1 6 as myPet765                    if noto myPet = "friend" and list petNameList > 0766                        overhead "Renaming..."767                        foreach petName in petNameList768                            rename myPet petName769                            break770                        endfor771                        poplist petNameList "front"772                    endif773                    @setvar! earthTwo myPet774                    say "all guard me"775                    replay776                endif777            endif778        endif779    endif780endif781 782 783if castSummonFireElementalCount > 0784    if diffhits < 30785    786        if lichOne = 0 787            // do nothing788        elseif lichOne = lichTwo789            overhead "Duplicated"790            unsetvar lichOne791        endif792        793        if followers = 0794            @setvar! followCount 0795        elseif followers = 1796            @setvar! followCount 1797        elseif followers = 2798            @setvar! followCount 2799        elseif followers = 3800            @setvar! followCount 3801        elseif followers = 4802            @setvar! followCount 4803        elseif followers = 5804            @setvar! followCount 5805        endif806        if dead lichOne or not find lichOne ground -1 -1 12807            if followers < 4808                while mana < 50809                    if diffhits >= 30810                        replay811                    endif812                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam813                        overhead "waiting for mana" 88814                        settimer preventOverheadSpamTimer 0815                    endif816                    wait 200817                endwhile818                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50819                    yell "[VengefulSpirit"820                    settimer vengefulSpiritTimer 0821                    wait 500822                endif823                @ignore lichTwo824                while followers = followCount825                    cast "fire elemental"826                    wait 500827                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95828                        yell "[Wither"829                        settimer witherTimer 0830                    endif831                    if diffhits >= 30832                        hotkey '> Interrupt'833                        break834                    endif835                endwhile836                    if skill "Swordsmanship" > 0 and findtype "cutlass|broadsword|scimitar|viking sword|longsword|katana" backpack as item837                    dclick item838                    wait minimumWaitForPing839                // 24 - a lich840                // 15 - a fire elemental841                if findtype 24|15 ground -1 -1 6 as myPet842                    if noto myPet = "friend" and list petNameList > 0843                        overhead "Renaming..."844                        foreach petName in petNameList845                            rename myPet petName846                            break847                        endfor848                        poplist petNameList "front"849                    endif850                    @setvar! lichOne myPet851                    overhead "Lich One Set" 88 lichOne852                    say "all guard me"853                    @clearignore 854                    replay855                endif856            endif857        endif858    endif859    860    if diffhits < 30 and castSummonFireElementalCount > 1861        if followers = 0862            @setvar! followCount 0863        elseif followers = 1864            @setvar! followCount 1865        elseif followers = 2866            @setvar! followCount 2867        elseif followers = 3868            @setvar! followCount 3869        elseif followers = 4870            @setvar! followCount 4871        elseif followers = 5872            @setvar! followCount 5873        endif874        if dead lichTwo or not find lichTwo ground -1 -1 12875            if followers < 4876                while mana < 50877                    if diffhits >= 30878                        replay879                    endif880                    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam881                        overhead "waiting for mana" 88882                        settimer preventOverheadSpamTimer 0883                    endif884                    wait 200885                endwhile886                if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50887                    yell "[VengefulSpirit"888                    settimer vengefulSpiritTimer 0889                    wait 500890                endif891                @ignore lichOne892                while followers = followCount893                    cast "fire elemental"894                    wait 500895                    if timer witherTimer >= cdWither and skill "Necromancy" >= 95896                        yell "[Wither"897                        settimer witherTimer 0898                    endif899                    if diffhits >= 30900                        hotkey '> Interrupt'901                        break902                    endif903                endwhile904                    if skill "Swordsmanship" > 0 and findtype "cutlass|broadsword|scimitar|viking sword|longsword|katana" backpack as item905                    dclick item906                    wait minimumWaitForPing                907                // 24 - a lich908                // 15 - a fire elemental909                if findtype 24|15 ground -1 -1 6 as myPet910                    if noto myPet = "friend" and list petNameList > 0911                        overhead "Renaming..."912                        foreach petName in petNameList913                            rename myPet petName914                            break915                        endfor916                        poplist petNameList "front"917                    endif918                    @clearignore919                    @setvar! lichTwo myPet920                    overhead "Lich Two Set" 88 lichTwo921                    say "all guard me"922                    replay923                endif924                925            endif926        endif927    endif928endif929 930if castSummonCreatureCount = 0931    // do nothing932elseif castSummonCreatureCount = 1 and not dead creatureOne933    // do nothing934elseif castSummonCreatureCount = 1935    if followers = 4 and diffhits < 30936        if followers = 0937            @setvar! followCount 0938        elseif followers = 1939            @setvar! followCount 1940        elseif followers = 2941            @setvar! followCount 2942        elseif followers = 3943            @setvar! followCount 3944        elseif followers = 4945            @setvar! followCount 4946        elseif followers = 5947            @setvar! followCount 5948        endif949        while mana < 14950            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam951                overhead "waiting for mana" 88952                settimer preventOverheadSpamTimer 0953            endif954            if diffhits >= 30955                replay956            endif957            wait 200958        endwhile959        if timer vengefulSpiritTimer >= cdVengefulSpirit960            yell "[VengefulSpirit"961            settimer vengefulSpiritTimer 0962            wait 200963        endif964        while followers = followCount965            cast 'Summ. Creature'966            wait 500967            if diffhits >= 30968                hotkey '> Interrupt'969                replay970            endif971        endwhile972            if skill "Swordsmanship" > 0 and findtype "cutlass|broadsword|scimitar|viking sword|longsword|katana" backpack as item973            dclick item974            wait minimumWaitForPing        975        say "all guard me"976            endif977        endif    978else979    for 6980        if index = 0981            // do nothing982        else983            if diffhits < 30984                @setvar! needToSummon 0985                if index = 1986                    if dead creatureOne or not find creatureOne ground -1 -1 12987                        @setvar! needToSummon 1988                    endif989                elseif index = 2990                    if dead creatureTwo or not find creatureTwo ground -1 -1 12991                        @setvar! needToSummon 1992                    endif993                elseif index = 3994                    if dead creatureThree or not find creatureThree ground -1 -1 12995                        @setvar! needToSummon 1996                    endif997                elseif index = 4998                    if dead creatureFour or not find creatureFour ground -1 -1 12999                        @setvar! needToSummon 11000                    endif1001                elseif index = 51002                    if dead creatureFive or not find creatureFive ground -1 -1 121003                        @setvar! needToSummon 11004                    endif1005                endif1006            1007                if needToSummon = 11008                    if followers = 01009                        @setvar! followCount 01010                    elseif followers = 11011                        @setvar! followCount 11012                    elseif followers = 21013                        @setvar! followCount 21014                    elseif followers = 31015                        @setvar! followCount 31016                    elseif followers = 41017                        @setvar! followCount 41018                    elseif followers = 51019                        @setvar! followCount 51020                    endif1021                   1022                    while mana < 501023                        if diffhits >= 301024                            replay1025                        endif1026                        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1027                            overhead "waiting for mana" 881028                            settimer preventOverheadSpamTimer 01029                        endif1030                        wait 2001031                    endwhile1032                    if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 501033                        yell "[VengefulSpirit"1034                        settimer vengefulSpiritTimer 01035                        wait 5001036                    endif1037   1038                    hotkey 'Next Friendly Monster Target'1039                    @setvar! checkLastTarget lasttarget1040                    if checkLastTarget = earthOne1041                        hotkey 'Next Friendly Monster Target'1042                        @setvar! checkLastTarget lasttarget 1043                    endif1044                    1045                    if checkLastTarget = earthTwo1046                       hotkey 'Next Friendly Monster Target'1047                       @setvar! checkLastTarget lasttarget 1048                    endif1049                    1050                    if checkLastTarget = lichOne1051                       hotkey 'Next Friendly Monster Target'1052                       @setvar! checkLastTarget lasttarget 1053                    endif1054                    1055                    if checkLastTarget = lichTwo1056                       hotkey 'Next Friendly Monster Target'1057                       @setvar! checkLastTarget lasttarget 1058                    endif1059                    @setvar! creatureOne checkLastTarget1060                    1061                    if find checkLastTarget ground -1 -1 6 as myPet1062                        if noto myPet = "friend" and list petNameList > 01063                            overhead "Renaming..."1064                            foreach petName in petNameList1065                                rename myPet petName1066                                break1067                            endfor1068                            poplist petNameList "front"1069                        endif1070                        if index = 11071                            if dead creatureOne or not find creatureOne ground -1 -1 121072                                @setvar! creatureOne myPet1073                            endif1074                        elseif index = 21075                            if dead creatureTwo or not find creatureTwo ground -1 -1 121076                                @setvar! creatureTwo myPet1077                            endif1078                        elseif index = 31079                            if dead creatureThree or not find creatureThree ground -1 -1 121080                                @setvar! creatureThree myPet1081                            endif1082                        elseif index = 41083                            if dead creatureFour or not find creatureFour ground -1 -1 121084                                @setvar! creatureFour myPet1085                            endif1086                        elseif index = 51087                            if dead creatureFive or not find creatureFive ground -1 -1 121088                                @setvar! creatureFive myPet1089                            endif1090                        endif1091                    endif1092                endif1093            endif1094        endif1095        if index = castSummonCreatureCount1096            break1097        endif1098    endfor1099endif1100 1101if castVampiricEmbrace = 1 and timer vampiricEmbraceTimer >= cdVampiricEmbrace and skill "Necromancy" >= 70 and findtype 8198 ground -1 -1 4 as jorpse1102    say "[VampiricEmbrace"1103    wft 5001104    target jorpse1105    settimer vampiricEmbraceTimer 01106    cooldown VampiricEmbrace cdVampiricEmbrace1107endif1108 1109loop