Skip to content
Outlands Hub

Razor script

Mod: Mage Bot v10.1.0 by Daklue Herding spamable

by daklue · 3114 lines
Download

One hotkey mage cycle, nox, poison by Jaseowns UO Outlands - https://outlands.uorazorscripts.com/mage-bot 8/18/2023 - add new target system - nearest/ next Always room for improvment, thanks for watching!

CombatMagicMeditationDiscordancePeacemakingHerdingTracking
Mod Mage Bot v1010 by Daklue Herding spamable.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/e54546c9-b244-4def-9bff-f1a51f847fea for latest2# Automation by Jaseowns3## Script: Mod: Mage Bot v10.1.0 by Daklue Herding spamable4## Created by: daklue#05#############################################6 7# One hotkey mage cycle, nox, poison by Jaseowns8# UO Outlands - https://outlands.uorazorscripts.com/mage-bot9#10# Version: v10.1.011#12#    13// 8/18/202314//  - add new target system - nearest/ next15#16##################17## Always room for improvment, thanks for watching!18############19 20 21# continue to fight the same target even after summons22# target not seen - (warmode maybe?)23@setvar! minimumWaitForPing 20024 25# make sure you add a friends list called: IgnoreMobs26@setvar! didYouSetupIgnoreMobs 027 28 29// 0 you choose (all kill)30// 1 will target nearest31// 2 will be find type32// 3 will be target next (newest one 8/14/2023)33@setvar! useTargetSystem 234 35# Do you want to use the new FindType code? Use 1 here36# Do you want to use the Target Nearest / Next? Use 2 here37# Else it will use the Target Closest Mon functionality 38@setvar! useFindTypeToTargetMonster 239 40# after a kill you must have this amount of mana to continue to next target41@setvar! minimumManaToCast 55 42 43# Set this to one, if you want to cast poison once no matter what44# If you have 100 poisoning and want Lethal, set this to 045@setvar! castPoisonAnyway 046 47# This will auto replay this script if you want it too48@setvar! autoBotEnabled 149 50 51# Update this variable to 1 for ALL KILL52# Update this variable to 0 for target nearest53@setvar! setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster 054 55################################56###### Random abilities57################58@setvar! automaticallySkinCorpses 159@setvar! manaReserve 5060@setvar! cdRetryBasedOnTargetNotSeen 200061 62# Ultimate Summoner Hotkey Choose your summons by Jaseowns63# UO Outlands64# This is part of the mage bot, but you can have it65# as its own hotkey66 67###############68###  Choose your summons69######70@setvar! breakSpellCastAndResummonIfLessThanXFollowers 471@setvar! renamePets 072 73# Earth: 0, 1, 274@setvar! castSummonEarthElementalCount 075@setvar! castSummonMummyCount 176 77# Fire: 0, 1, 278@setvar! castSummonFireElementalCount 079@setvar! castSummonLichCount 180 81# Demon: 0, 1, 282@setvar! castSummonDemonCount 083@setvar! castSummonThrallCount 084 85# Air: 0, 1, 286@setvar! castSummonAirCount 087@setvar! castSummonFiendCount 088 89# Water: 0, 1, 290@setvar! castSummonWaterCount 091@setvar! castSummonRagWitchCount 092 93# Creature: 0, 1, 2, 3, 4, 594@setvar! castSummonCreatureCount 095 96# Energy Vortex: 0, 197@setvar! castEnergyVortexCount 098@setvar! castJackalSpiritCount 099 100# Blade Spirit: 0, 1101@setvar! castBladeSpiritCount 0102@setvar! castSkeletalHuskCount 0103 104###############105###  Choose your spells106######107@setvar! castCurse 1108@setvar! castManadrain 0109@setvar! castManaVampire 0110@setvar! castLightning 1111@setvar! castChainLightning 0112@setvar! castFireball 1113@setvar! castHarm 1114@setvar! castMagicArrow 1115# When other spells are on cooldown, do you want to cast Ebolt, MindBlast, Flamestrike or all three116@setvar! castEbolt 1117@setvar! castMindBlast 1118@setvar! castFlamestrike 0119 120 121################################122###### Heal Controllers123################124@setvar! hpCheckToTriggerGreaterHealSpell 30125@setvar! hpCheckToTriggerMiniEmergencyHealSpell 60126@setvar! hpCheckToTriggerHealPotion 45127        128################################129###### Potion Controllers130################131@setvar! automaticallyDrinkStrPotIfOverWeight 1132# Drink Magic resist potion (only if magic shield buff not found)133@setvar! automaticallyDrinkMagicPot 1134@setvar! automaticallyDrinkHealPot 1135@setvar! automaticallyDrinkCurePot 1136#@setvar! automaticallyDrinkRefreshPot 1137 138@setvar! hpCheckToTriggerCurePotion 45139#@setvar! stamDiffCheckToTriggerRedPotion 10140 141 142### Buffs143@setvar! castBless 0144@setvar! castArchProtection 0145@setvar! castMagicShield 1146@setvar! castReactiveArmor 1147 148if skill "Inscription" >= 50149    @setvar! castBless 1150    @setvar! castArchProtection 1151endif152 153 154###############155###  Choose your necro spells (ignored if less then required necro skill)156######157@setvar! castEvilOmen 1158@setvar! castCorpseSkin 1159@setvar! castVampiricEmbrace 1160@setvar! castMindRot 1161@setvar! castPoisonStrike 1162@setvar! castBloodOath 1163@setvar! castPainSpike 1164@setvar! requireWitherBeforeSummons 0165 166###############167### Edit these cooldowns to match your wizard grimoire168######169@setvar! canYouMakeAMushroom 1170@setvar! cdLightning 20000171@setvar! cdChainLightning 60000172@setvar! cdMagicArrow 20000173@setvar! cdHarm 20000174@setvar! cdFireball 20000175 176@setvar! cdAutoHealTamerPet 15000177 178###############179### Necro Cooldowns180######181@setvar! cdEvilOmen 30500182@setvar! cdVampiricEmbrace 30500183@setvar! cdCorpseSkin 30500184@setvar! cdMindRot 30500185@setvar! cdWither 30500186@setvar! cdVengefulSpirit 30500187@setvar! cdBloodOath 30500188@setvar! cdPainSpike 30500189@setvar! cdPoisonStrike 30500190 191#### Buff Cooldowns192@setvar! cdMushroom 61000193@setvar! cdMagicShield 61000194@setvar! cdReactiveArmor 61000195@setvar! cdMeditation 10000196@setvar! cdMeditationMini 3000197@setvar! cdKillTarget 60000198 199#### Random cooldowns200@setvar! cdPreventOverheadSpam 2000201@setvar! cdSkinningCheck 3000202@setvar! cdCleansingBrew 125000203@setvar! cdHerdingTimer 4000 204 205#### Mushroom count (I like a lot of shroomies)206@setvar! makeThisManyMushroomsCount 15207@setvar! butOnlyIHaveLessThenThisCount 5208 209#### This will send in pet for out of range targets210@setvar! patrolPetEvenIfLastTargetIsBeyondEightTiles 1211 212if counttype "gold coin" backpack as total213    if diffweight < 10 and 10000 < total214        overhead "Warning: {{total}} gold and no weight!" 34215    endif216endif217    218#### Pet Names, unique to you219if not listexists petNameList220    createlist petNameList221endif222if list petNameList = 0223    pushlist petNameList "jaseneccy"224    pushlist petNameList "jaseyoutube"225    pushlist petNameList "jaseytfollow"226    pushlist petNameList "jaseytfollower"227    pushlist petNameList "jasesubscribed"228    pushlist petNameList "jaseoutlands"229    pushlist petNameList "jaseuorazorscripts"230    pushlist petNameList "jaseyoutuber"231    pushlist petNameList "jasefunez"232    pushlist petNameList "jasetwitch"233    pushlist petNameList "jasesubscribe"234    pushlist petNameList "jasefueoz"235endif236 237@setvar! jaseDebugMode 0238 239##################################################################240# 241#   Hopefully you do not have to edit after this :)242#243##################################################################244 245if didYouSetupIgnoreMobs = 0 and useFindTypeToTargetMonster = 0246    overhead "For this script to work, make sure you add a friends list called: IgnoreMobs" 34247    sysmsg  "For this script to work, make sure you add a friends list called: IgnoreMobs" 34248    wait 1500249    overhead "Click Friends Tab -> [checkmark] enabled -> [checkmark] Next/Prev Target ignores 'IgnoreMobs'" 88250    sysmsg "Click Friends Tab -> [checkmark] enabled -> [checkmark] Next/Prev Target ignores 'IgnoreMobs'" 88251    wait 5000252    overhead "If everything is setup, update didYouSetupIgnoreMobs to 1"253    sysmsg "If everything is setup, update didYouSetupIgnoreMobs to 1"254    wait 5000255    replay256endif257 258if dead 259    overhead "Rip" 34260    for 10261        if gumpexists 2957810225262            gumpresponse 1 2957810225263            break264        endif        265        wait 500266    endfor267    replay268endif269 270@setvar! tamerModeEngaged 0271 272if skill "Animal Taming" > 50273    @setvar! tamerModeEngaged 1274    if not varexist jaseTankPet or not find jaseTankPet ground -1 -1 12275        overhead "Select your tank pet" 88276        @setvar! jaseTankPet    277    endif278endif279 280if weight >= maxweight and not findbuff "strength" and automaticallyDrinkStrPotIfOverWeight = 1 and findtype "white potion" backpack as pot281    dclick pot282    wait 200283endif284 285if not gumpexists 622436516 and skill "Necromancy" >= 50286    say '[NecromancyHotbar'287    wait 500288endif289 290if skill "Tracking" > 0291    if not findbuff "tracking"292        clearsysmsg293        while not gumpexists 4267467659294            useskill 'tracking'295            wait minimumWaitForPing296        endwhile297        if gumpexists 4267467659298            while not insysmsg "You will now hunt all hostile players."299                gumpresponse 8 4267467659300                waitforgump 4267467659 5000301            endwhile302            gumpresponse 6 4267467659303            wait minimumWaitForPing304        endif305        gumpclose 4267467659306    endif307endif308 309if not timerexists skinningCheckTimer310    settimer skinningCheckTimer cdSkinningCheck311endif312 313if not timerexists retryBasedOnTargetNotSeenTimer314    settimer retryBasedOnTargetNotSeenTimer cdRetryBasedOnTargetNotSeen315endif316 317 318if automaticallySkinCorpses = 1 and findtype "corpse" ground -1 -1 2 as jorpse319    if findtype "Elven Spellblade" backpack and timer skinningCheckTimer >= cdSkinningCheck 320        while not targetexists 321            useskill 'forensicevaluation'322        endwhile323        if targetexists beneficial or targetexists neutral324            hotkey "Target Self"325            wait minimumWaitForPing326            settimer skinningCheckTimer 0327            @ignore jorpse328        endif329    endif330endif331 332// Make sure we have a spell book attached333if findlayer self righthand as item334    // do nothing335elseif findtype "3834" backpack as item336    getlabel item spellBookDesc337    if "blessed" in spellBookDesc338        @ignore item339    else340        dclick item    341    endif342else 343    overhead "No book bro!" 34344endif345 346// Setting current necro symbols - checks again it the attack loop347@setvar! necroSymbols 12348if gumpexists 622436516 and skill "Necromancy" >= 50349    if ingump "12/" 622436516350        @setvar! necroSymbols 12351    elseif ingump "13/" 622436516352        @setvar! necroSymbols 13353    elseif ingump "14/" 622436516354        @setvar! necroSymbols 14355    elseif ingump "15/" 622436516356        @setvar! necroSymbols 15357    elseif ingump "16/" 622436516358        @setvar! necroSymbols 16359    elseif ingump "17/" 622436516360        @setvar! necroSymbols 17361    elseif ingump "18/" 622436516362        @setvar! necroSymbols 18363    elseif ingump "19/" 622436516364        @setvar! necroSymbols 19365    elseif ingump "20/" 622436516366        @setvar! necroSymbols 20367    elseif ingump "21/" 622436516368        @setvar! necroSymbols 21369    elseif ingump "11/" 622436516370        @setvar! necroSymbols 11371    elseif ingump "10/" 622436516372        @setvar! necroSymbols 10373    elseif ingump "9/" 622436516374        @setvar! necroSymbols 9375    elseif ingump "8/" 622436516376        @setvar! necroSymbols 8377    elseif ingump "7/" 622436516378        @setvar! necroSymbols 7379    elseif ingump "6/" 622436516380        @setvar! necroSymbols 6381    elseif ingump "5/" 622436516382        @setvar! necroSymbols 5383    elseif ingump "4/" 622436516384        @setvar! necroSymbols 4385    elseif ingump "3/" 622436516386        @setvar! necroSymbols 3387    elseif ingump "2/" 622436516388        @setvar! necroSymbols 2389    elseif ingump "1/" 622436516390        @setvar! necroSymbols 1391    elseif ingump "0/" 622436516392        @setvar! necroSymbols 0393    endif394endif395 396if not timerexists reactiveArmorTimer397    createtimer reactiveArmorTimer398    settimer reactiveArmorTimer cdMagicShield399endif400 401if not timerexists cleansingBrewTimer402    settimer cleansingBrewTimer cdCleansingBrew403endif404 405if not timerexists magicShieldTimer406    createtimer magicShieldTimer407    settimer magicShieldTimer cdMagicShield408endif409 410if not timerexists magicMushroomTimer411    createtimer magicMushroomTimer412    settimer magicMushroomTimer cdMushroom413endif414 415if not timerexists magicArrowTimer416    createtimer magicArrowTimer417    settimer magicArrowTimer cdMagicArrow418endif419 420if not timerexists lightningTimer421    createtimer lightningTimer422    settimer lightningTimer cdLightning423endif424 425if not timerexists chainLightningTimer426    settimer chainLightningTimer cdChainLightning427endif428 429if not timerexists harmTimer430    createtimer harmTimer431    settimer harmTimer cdHarm432endif433 434if not timerexists autoHealTamerPet435    createtimer autoHealTamerPet436    settimer autoHealTamerPet cdAutoHealTamerPet437endif438 439if not timerexists fireballTimer440    createtimer fireballTimer441    settimer fireballTimer cdFireball442endif443 444if not timerexists evilOmenTimer445    createtimer evilOmenTimer446    settimer evilOmenTimer cdEvilOmen447endif448 449if not timerexists vampiricEmbraceTimer450    createtimer vampiricEmbraceTimer451    settimer vampiricEmbraceTimer cdVampiricEmbrace452endif453 454if not timerexists corpseSkinTimer455    createtimer corpseSkinTimer456    settimer corpseSkinTimer cdCorpseSkin457endif458 459if not timerexists mindRotTimer460    createtimer mindRotTimer461    settimer mindRotTimer cdMindRot462endif463 464if not timerexists meditiationTimer465    createtimer meditiationTimer466    settimer meditiationTimer cdMeditation467endif468 469if not timerexists killTargetTimer470    createtimer killTargetTimer471    settimer killTargetTimer cdKillTarget472endif473 474if not timerexists witherTimer475    createtimer witherTimer476    settimer witherTimer cdWither477endif478 479if not timerexists vengefulSpiritTimer480    createtimer vengefulSpiritTimer481    settimer vengefulSpiritTimer cdVengefulSpirit482endif483 484if not timerexists bloodOathTimer485    createtimer bloodOathTimer486    settimer bloodOathTimer cdBloodOath487endif488 489if not timerexists painSpikeTimer490    createtimer painSpikeTimer491    settimer painSpikeTimer cdPainSpike492endif493 494if not timerexists poisonStrikeTimer495    createtimer poisonStrikeTimer496    settimer poisonStrikeTimer cdPoisonStrike497endif498 499if not timerexists preventOverheadSpamTimer500    createtimer preventOverheadSpamTimer501    settimer preventOverheadSpamTimer cdPreventOverheadSpam502endif503 504if not timerexists HerdTimer505    createtimer HerdTimer506    settimer HerdTimer cdHerdingTimer507endif508 509@setvar! cdPreventSpamNecroAbilities 750510if not timerexists preventSpamNecroAbilitiesTimer511    createtimer preventSpamNecroAbilitiesTimer512    settimer preventSpamNecroAbilitiesTimer cdPreventSpamNecroAbilities513endif514 515if not varexist myEarthPet516    @setvar! myEarthPet 0517endif518 519// make sure we have enough symbols to summon (6 for wither + vengful spirit)520if skill "Necromancy" >= 90 and requireWitherBeforeSummons = 1521    while followers < 4 and 6 > necroSymbols522        // we already have vengeful spirit active, skip the check523        if timer vengefulSpiritTimer < cdVengefulSpirit524           break525        endif526        if diffhits >= hpCheckToTriggerGreaterHealSpell527            if targetexists 528                hotkey 'Cancel Current Target'529            endif530            while not targetexists 'beneficial'531                if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell532                    cast 'Heal'533                else534                    cast 'Greater Heal'                535                endif536                wait 50537                if hp = maxhp538                    hotkey '> Interrupt'539                    break540                endif541            endwhile542            if targetexists 'beneficial'543                hotkey 'Target Self'544            endif545        endif546        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam547            overhead "waiting for symbols" 88548            settimer preventOverheadSpamTimer 0549        endif550        if gumpexists 622436516 and skill "Necromancy" >= 50551            if ingump "12/" 622436516552                @setvar! necroSymbols 12553            elseif ingump "13/" 622436516554                @setvar! necroSymbols 13555            elseif ingump "14/" 622436516556                @setvar! necroSymbols 14557            elseif ingump "15/" 622436516558                @setvar! necroSymbols 15559            elseif ingump "16/" 622436516560                @setvar! necroSymbols 16561            elseif ingump "17/" 622436516562                @setvar! necroSymbols 17563            elseif ingump "18/" 622436516564                @setvar! necroSymbols 18565            elseif ingump "19/" 622436516566                @setvar! necroSymbols 19567            elseif ingump "20/" 622436516568                @setvar! necroSymbols 20569            elseif ingump "21/" 622436516570                @setvar! necroSymbols 21571            elseif ingump "11/" 622436516572                @setvar! necroSymbols 11573            elseif ingump "10/" 622436516574                @setvar! necroSymbols 10575            elseif ingump "9/" 622436516576                @setvar! necroSymbols 9577            elseif ingump "8/" 622436516578                @setvar! necroSymbols 8579            elseif ingump "7/" 622436516580                @setvar! necroSymbols 7581            elseif ingump "6/" 622436516582                @setvar! necroSymbols 6583            elseif ingump "5/" 622436516584                @setvar! necroSymbols 5585            elseif ingump "4/" 622436516586                @setvar! necroSymbols 4587            elseif ingump "3/" 622436516588                @setvar! necroSymbols 3589            elseif ingump "2/" 622436516590                @setvar! necroSymbols 2591            elseif ingump "1/" 622436516592                @setvar! necroSymbols 1593            elseif ingump "0/" 622436516594                @setvar! necroSymbols 0595            endif596        endif597    endwhile598endif599 600 601if diffhits >= hpCheckToTriggerGreaterHealSpell602    if targetexists 603        hotkey 'Cancel Current Target'604    endif605    while not targetexists 'beneficial'606        if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell607            cast 'Heal'608        else609            cast 'Greater Heal'                610        endif611        wait 50612        if hp = maxhp613            hotkey '> Interrupt'614            break615        endif616    endwhile617    if targetexists 'beneficial'618        hotkey "Target Self"619    endif620    replay621endif622 623if renamePets = 0624    clearlist petNameList625endif626 627if castSummonFireElementalCount > 0 and castSummonLichCount > 0628    overhead "I am not going to do that. Update lich/fire to one or the other." 34629    sysmsg "I am not going to do that. Update lich/fire to one or the other." 34630    wait 2000631    replay632elseif castSummonEarthElementalCount > 0 and castSummonMummyCount > 0633    overhead "I am not going to do that. Update earth/mummy to one or the other." 34634    sysmsg "I am not going to do that. Update earth/mummy to one or the other." 34635    wait 2000636    replay637elseif castSummonDemonCount > 0 and castSummonThrallCount > 0638    overhead "I am not going to do that. Update demon/thrall to one or the other." 34639    sysmsg "I am not going to do that. Update demon/thrall to one or the other." 34640    wait 2000641    replay642elseif castSummonAirCount > 0 and castSummonFiendCount > 0643    overhead "I am not going to do that. Update air/fiend to one or the other." 34644    sysmsg "I am not going to do that. Update air/fiend to one or the other." 34645    wait 2000646    replay647elseif castSummonWaterCount > 0 and castSummonRagWitchCount > 0648    overhead "I am not going to do that. Update water/witch to one or the other." 34649    sysmsg "I am not going to do that. Update water/witch to one or the other." 34650    wait 2000651    replay652endif653 654if not gumpexists 622436516 and skill "Necromancy" >= 50655    say '[NecromancyHotbar'656    wait 500657endif658 659if not varexist myMainTankPet660    @setvar! myMainTankPet 0661endif662 663if not varexist fireOne664    @setvar! fireOne 0665endif666 667if not varexist fireTwo668    @setvar! fireTwo 0669endif670 671if not varexist earthOne672    @setvar! earthOne 0673endif674 675if not varexist earthTwo676    @setvar! earthTwo 0677endif678 679if not varexist demonOne680    @setvar! demonOne 0681endif682 683if not varexist demonTwo684    @setvar! demonTwo 0685endif686 687if not varexist airOne688    @setvar! airOne 0689endif690 691if not varexist airTwo692    @setvar! airTwo 0693endif694 695if not varexist waterOne696    @setvar! waterOne 0697endif698 699if not varexist waterTwo700    @setvar! waterTwo 0701endif702 703if not varexist evOne704    @setvar! evOne 0705endif706 707if not varexist bsOne708    @setvar! bsOne 0709endif710 711removelist summonList712createlist summonList713    714if followers = 0715    @setvar! followCount 0716elseif followers = 1717    @setvar! followCount 1718elseif followers = 2719    @setvar! followCount 2720elseif followers = 3721    @setvar! followCount 3722elseif followers = 4723    @setvar! followCount 4724elseif followers = 5725    @setvar! followCount 5726endif727 728if castSummonEarthElementalCount > 0 or castSummonMummyCount > 0729    if dead earthOne or not find earthOne ground -1 -1 18730        if followers < 4731            pushlist summonList "Earth Elemental"732            @setvar! earthOne 1733        endif734    endif735    if castSummonEarthElementalCount > 1 or castSummonMummyCount > 1736        if dead earthTwo or not find earthTwo ground -1 -1 18737            if followers < 4738                pushlist summonList "Earth Elemental"739                @setvar! earthTwo 1740            endif741        endif742    endif743endif744 745if castSummonFireElementalCount > 0 or castSummonLichCount > 0746    if dead fireOne or not find fireOne ground -1 -1 18747        if followers < 4748            pushlist summonList "Fire Elemental"749            @setvar! fireOne 1750        endif751    endif752    if castSummonFireElementalCount > 1 or castSummonLichCount > 1753        if dead fireTwo or not find fireTwo ground -1 -1 18754            if followers < 4755                pushlist summonList "Fire Elemental"756                @setvar! fireTwo 1757            endif758        endif759    endif760endif761 762if castSummonDemonCount > 0 or castSummonThrallCount > 0763    if dead demonOne or not find demonOne ground -1 -1 18764        if followers < 4765            pushlist summonList "Summon Daemon"766            @setvar! demonOne 1767        endif768    endif769    if castSummonDemonCount > 1 or castSummonThrallCount > 1770        if dead demonTwo or not find demonTwo ground -1 -1 18771            if followers < 4772                pushlist summonList "Summon Daemon"773                @setvar! demonTwo 1774            endif775        endif776    endif777endif778 779if castSummonAirCount > 0 or castSummonFiendCount > 0780    if dead airOne or not find airOne ground -1 -1 18781        if followers < 4782            pushlist summonList "Air Elemental"783            @setvar! airOne 1784        endif785    endif786    if castSummonAirCount > 1 or castSummonFiendCount > 1787        if dead airTwo or not find airTwo ground -1 -1 18788            if followers < 4789                pushlist summonList "Air Elemental"790                @setvar! airTwo 1791            endif792        endif793    endif794endif795 796if castSummonWaterCount > 0 or castSummonRagWitchCount > 0797    if dead waterOne or not find waterOne ground -1 -1 18798        if followers < 4799            pushlist summonList "Water Elemental"800            @setvar! waterOne 1801        endif802    endif803    if castSummonWaterCount > 1 or castSummonRagWitchCount > 1804        if dead waterTwo or not find waterTwo ground -1 -1 18805            if followers < 4806                pushlist summonList "Water Elemental"807                @setvar! waterTwo 1808            endif809        endif810    endif811endif812 813if castEnergyVortexCount > 0 or castJackalSpiritCount > 0814    if dead evOne or not find evOne ground -1 -1 18815        if followers < 5816            pushlist summonList "Energy Vortex"817            @setvar! evOne 1818        endif819    endif820endif821 822if castBladeSpiritCount > 0 or castSkeletalHuskCount > 0823    if dead bsOne or not find bsOne ground -1 -1 18824        if followers < 5825            pushlist summonList "Blade Spirits"826            @setvar! bsOne 1827        endif828    endif829endif830 831if followers < 5832    if castSummonCreatureCount = 1833        pushlist summonList "Summ. Creature"834    elseif castSummonCreatureCount = 2835        pushlist summonList "Summ. Creature"836        pushlist summonList "Summ. Creature"837    elseif castSummonCreatureCount = 3838        pushlist summonList "Summ. Creature"839        pushlist summonList "Summ. Creature"840        pushlist summonList "Summ. Creature"841    elseif castSummonCreatureCount = 4842        pushlist summonList "Summ. Creature"843        pushlist summonList "Summ. Creature"844        pushlist summonList "Summ. Creature"845        pushlist summonList "Summ. Creature"846    elseif castSummonCreatureCount = 5847        pushlist summonList "Summ. Creature"848        pushlist summonList "Summ. Creature"849        pushlist summonList "Summ. Creature"850        pushlist summonList "Summ. Creature"851        pushlist summonList "Summ. Creature"852    endif853    while targetexists 854        hotkey 'Cancel Current Target'855        wait 200856    endwhile857endif858 859foreach summon in summonList860    if followers < 5861        overhead "Casting Summon: {{summon}}" 88862        while mana < 50863            if timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy864                overhead "Eating shrooms" 66865                dclick mushy866                @setvar! jase_shrooms mushy867                wait 200868                if insysmsg "You consume a magic mushroom and restore some mana."869                    settimer magicMushroomTimer 0    870                elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"871                    settimer magicMushroomTimer 30000872                endif873            endif874            if diffhits >= hpCheckToTriggerGreaterHealSpell875                replay876            endif877            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam878                overhead "waiting for mana" 88879                settimer preventOverheadSpamTimer 0880            endif881            if not findbuff "Actively Meditating"882                useskill "meditation"883            endif884            wait 200885        endwhile886        887        @setvar! needVengefulSpirit 0888        889        if summon = "Earth Elemental" and castSummonMummyCount > 0890            @setvar! needVengefulSpirit 1891        elseif summon = "Fire Elemental" and castSummonLichCount > 0892            @setvar! needVengefulSpirit 1893        elseif summon = "Summon Daemon" and castSummonThrallCount > 0894            @setvar! needVengefulSpirit 1895        elseif summon = "Air Elemental" and castSummonFiendCount > 0896            @setvar! needVengefulSpirit 1897        elseif summon = "Water Elemental" and castSummonRagWitchCount > 0898            @setvar! needVengefulSpirit 1899        elseif summon = "Summ. Creature" and skill "Necromancy" >= 50900            @setvar! needVengefulSpirit 1901        elseif summon = "Energy Vortex" and castJackalSpiritCount > 0902            @setvar! needVengefulSpirit 1903        elseif summon = "Blade Spirits" and castSkeletalHuskCount > 0904            @setvar! needVengefulSpirit 1905        elseif timer vengefulSpiritTimer <= cdVengefulSpirit and skill "Necromancy" >= 50906            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam907                overhead  "Waiting for spirit to go away" 88908                settimer preventOverheadSpamTimer 0909            endif910            replay911        endif912        913        if needVengefulSpirit = 1914            if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50915                yell "[VengefulSpirit"916                settimer vengefulSpiritTimer 0917                wait 500918            endif919        elseif timer vengefulSpiritTimer <= cdVengefulSpirit and skill "Necromancy" >= 50920            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam921                overhead  "Waiting for spirit to go away" 88922                settimer preventOverheadSpamTimer 0923            endif924            replay925        endif926 927        if followers = 0928            @setvar! followCount 0929        elseif followers = 1930            @setvar! followCount 1931        elseif followers = 2932            @setvar! followCount 2933        elseif followers = 3934            @setvar! followCount 3935        elseif followers = 4936            @setvar! followCount 4937        elseif followers = 5938            @setvar! followCount 5939        endif940        941        if summon = "Summ. Creature" or summon = "Blade Spirits"942            // these only take 1 - so keep trying to cast943        elseif followers >= 4944            // if we already at 4, skip to next summon945            break946        endif947        948        949        while followers = followCount950            if followers = 5951                break952            endif953            cast summon954            wft 500955            if targetexists 956                hotkey "Target Self"957                wait 200958            endif959            if timer witherTimer >= cdWither and skill "Necromancy" >= 95960                yell "[Wither"961                settimer witherTimer 0962            endif963            if diffhits >= hpCheckToTriggerGreaterHealSpell964                if targetexists 965                    hotkey "Cancel Current target"966                endif967                overhead "Need a heal!"968                hotkey '> Interrupt'969                while diffhits >= hpCheckToTriggerGreaterHealSpell and mana > 12970                    while not targetexists beneficial971                        if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell972                            cast 'Heal'973                        else974                            cast 'Greater Heal'                975                        endif976                        wait 50977                    endwhile978                    while targetexists beneficial979                        hotkey "Target Self"980                        wait 50981                    endwhile982                endwhile983            endif984        endwhile985        wait 200986        987        @setvar! myFreshlySummonedPet 0988 989        // 158 - an ancient mummy990        // 14 - an earth elemental991        if summon = "Earth Elemental" and findtype 158|14 ground -1 -1 2 as myPet992            @setvar! myFreshlySummonedPet myPet993            if earthOne = 1994                @setvar! earthOne myPet995            elseif earthTwo = 1996                @setvar! earthTwo myPet997            endif998        // 24 - a lich999        // 15 - a fire elemental1000        elseif summon = "Fire Elemental" and findtype 24|15 ground -1 -1 2 as myPet1001            @setvar! myFreshlySummonedPet myPet1002            if fireOne = 11003                @setvar! fireOne myPet1004            elseif fireTwo = 11005                @setvar! fireTwo myPet1006            endif1007        // 9 - a deamon1008        // 722 - a vampire thrall1009        elseif summon = "Summon Daemon" and findtype 9|722 ground -1 -1 2 as myPet1010            @setvar! myFreshlySummonedPet myPet1011            if demonOne = 11012                @setvar! demonOne myPet1013            elseif demonTwo = 11014                @setvar! demonTwo myPet1015            endif1016        // 16 - water elemental1017        // 740 - a rage witch1018        elseif summon = "Water Elemental" and findtype 16|740 ground -1 -1 2 as myPet1019            @setvar! myFreshlySummonedPet myPet1020            if waterOne = 11021                @setvar! waterOne myPet1022            elseif waterTwo = 11023                @setvar! waterTwo myPet1024            endif1025        // 13 - air elemental1026        // 306 - a skeletal fiend1027        elseif summon = "Air Elemental" and findtype 13|306 ground -1 -1 2 as myPet1028            @setvar! myFreshlySummonedPet myPet1029            if airOne = 11030                @setvar! airOne myPet1031            elseif airTwo = 11032                @setvar! airTwo myPet1033            endif1034        elseif summon = "Summ. Creature"1035            // TODO: gather all summon creature types1036            1037        // 13 - an energy vortex1038        // 391 - a jackal spirit1039        elseif summon = "Energy Vortex" and findtype 13|391 ground -1 -1 2 as myPet1040            @setvar! myFreshlySummonedPet myPet1041            if evOne = 11042                @setvar! evOne myPet1043            endif1044        // 574 - a blade spirit1045        // 309 - a skeletal husk1046        elseif summon = "Blade Spirits" and findtype 574|309 ground -1 -1 2 as myPet1047            @setvar! myFreshlySummonedPet myPet1048            if bsOne = 11049                @setvar! bsOne myPet1050            endif1051        endif1052        1053        if summon = "Summ. Creature"1054           overhead "Creature summoned!" 881055        elseif myFreshlySummonedPet = 01056           overhead "Not found" 881057        else1058            if noto myFreshlySummonedPet = "friend" and list petNameList > 01059                overhead "Renaming..." 771060                foreach petName in petNameList1061                    overhead "Rename to {{petName}}..." 66 myFreshlySummonedPet1062                    rename myFreshlySummonedPet petName1063                    wait 2001064                    if insysmsg "That name is unacceptable."1065                        overhead "Unable to name pet: {{petName}}" 341066                        sysmsg "Unable to name pet: {{petName}}" 341067                    endif1068                    break1069                endfor1070                poplist petNameList "front"1071            endif1072            overhead "New Pet: {{summon}}" 88 myFreshlySummonedPet1073            if summon = "Energy Vortex" or summon = "Blade Spirits"1074                // do nothing1075            elseif skill "herding" > 01076                // guard1077                menu myFreshlySummonedPet 41078            else1079                // guard1080                menu myFreshlySummonedPet 31081            endif1082            @ignore myFreshlySummonedPet1083        endif1084        wait 5001085    else1086        break1087    endif1088endfor1089 1090if dead myMainTankPet1091    if not dead earthOne1092        @setvar! myMainTankPet earthOne1093    elseif not dead earthTwo1094        @setvar! myMainTankPet earthTwo1095    elseif not dead waterOne1096        @setvar! myMainTankPet waterOne1097    elseif not dead waterTwo1098        @setvar! myMainTankPet waterTwo1099    elseif not dead demonOne1100        @setvar! myMainTankPet demonOne1101    elseif not dead demonTwo1102        @setvar! myMainTankPet demonTwo1103    elseif not dead fireOne1104        @setvar! myMainTankPet fireOne1105    elseif not dead fireTwo1106        @setvar! myMainTankPet fireTwo1107    elseif not dead airOne1108        @setvar! myMainTankPet airOne1109    elseif not dead airTwo1110        @setvar! myMainTankPet airTwo1111    endif1112endif1113 1114if not varexist lastCannotBeSeen1115    @setvar! lastCannotBeSeen 01116endif1117 1118if lastCannotBeSeen != 0 and dead lastCannotBeSeen1119    @setvar! lastCannotBeSeen 01120    @setvar! lastCannotBeSeenLoopIndex 01121endif1122 1123# Eat food if we got it1124if not findbuff "food" and findtype "tray" backpack as jood1125    dclick jood1126    wait 2001127endif1128 1129if targetexists harmful1130    hotkey "Cancel current target"1131endif1132 1133if useTargetSystem = 01134    say "all kill"1135    wait 2001136    while targetexists 1137        // wait1138        wait 501139    endwhile1140    1141    @setvar myKillTarget lasttarget 1142elseif useTargetSystem = 11143    hotkey 'Target Closest Non-Friendly Monster'1144    wait 2001145    if insysmsg "No one matching that was found"1146        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1147            overhead "found no one" 341148            settimer preventOverheadSpamTimer 01149        endif1150        if autoBotEnabled = 11151            wait 5001152            replay1153        endif1154        stop1155    elseif not find lasttarget ground -1 -1 101156    1157        @setvar checkForSummons lasttarget 1158        getlabel checkForSummons checkForSummonsDesc1159    1160        if "(summoned" in checkForSummonsDesc or "(bonded" in checkForSummonsDesc or "the battle trainer" in checkForSummonsDesc1161            overhead "� Player pet - IGNORE �" 77 lasttarget1162            while not targetexists 1163                hotkey 'Add Target To: IgnoreMobs'1164                wait 2001165            endwhile1166            target myKillTarget 1167            replay1168        endif    1169    1170        overhead "� � OUT OF RANGE � �" 88 lasttarget1171        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1172            overhead "Move closer, more then 8 tiles away" 341173            settimer preventOverheadSpamTimer 01174        endif1175        if autoBotEnabled = 11176            wait 5001177            replay1178        endif1179        stop1180    else1181        1182        @setvar checkForSummons lasttarget 1183        getlabel checkForSummons checkForSummonsDesc1184    1185        if "(summoned" in checkForSummonsDesc or "(bonded" in checkForSummonsDesc or "the battle trainer" in checkForSummonsDesc1186            overhead "� Player pet - IGNORE �" 77 lasttarget1187            while not targetexists 1188                hotkey 'Add Target To: IgnoreMobs'1189                wait 2001190            endwhile1191            target myKillTarget 1192            replay1193        endif    1194        1195        overhead "� �� HERE �� �" 88 lasttarget1196    endif    1197    1198    @setvar myKillTarget lasttarget 1199    1200elseif useTargetSystem = 21201 1202    // do find type     1203    if jaseDebugMode = 11204        overhead "do find type"1205    endif1206    1207    //@setvar! mobDiff 01208    1209    // should we cast spells1210    // should our pets kill it only?1211    // do we need to debuff the mob?1212        // boss - do we want to do manadrain vs mana vampire1213        1214        // targeting 1215        1216    @setvar! myFindTypeMob 01217    1218    if findtype 141|34|843|1081|44|42|68|88|28|159|11|631|612|281|280|313|385|21|727|689|735|74|400|732|24|776|39|400|215|717|51|716|14|12|60|37|37|21|155|14|138|787|787|395|79|259|783|782|781|58|715|738|727|1419|1504|310|99|113|214|736|204|158|29|75|9|59|61|16|303|306|30|241|730|393|17|314|48|21|721|53|42|1069|287|59|58|401|16|778|715|47|725|169|317|213|384|373|734|23|27|25|705|728|37|779|775|173|92|98|80|388|98|287|302|73|720|252|8|392|9|14|319|4|386|22|9|16|400|400|401|401|401|401|49|96|8|315|303|309|386|169|37|777|59|718|61|718|9|104|266|12|60|12|60|393|721|31|400|401|12|60|778|393|251|12|60|37|826|154|264|39|9|128|176|374|738|169|315|393|776|734|317|13|720|225|305|401|131|94|93|244|16|318|392|393|310|372|309|49|130|83|130|753|59|114|116|830|26|778|400|401|26|81|48|732|779|723|4|387|150|334|385|261|1069|390|304|379|307|729|384|160|74|400|400|400|9|4|784|400|400|400|400|401|4|391|214|13|724|206|16|293|40|43|24|24|285|705|199|199|829|256|160|573|259|400|776|263|375|9|241|39|39|206|202|380|13|30|8|51|4|154|16|312|79|148|401|204|1069|73|748|86|85|87|86|782|781|400|401|401|400|401|400|400|401|401|401|401|401|400|789|316|401|120|832|108|396|393|401|401|757|401|400|401|756|401|763|730|716|16|16|787|740|3|401|75|9|59|400|401|401|401|401|400|400|401|401|400|400|401|21|970|92|16|270|970|400|401|401|401|37|270|37|1419|1504|251|315|51|741|37|169|717|740|715|14|74|206|242|778|739|776|16|51|304|3|300|29|382|104|306|309|57|50|56|302|59|61|1503|24|14|13|51|252|31|400|390|23|27|400|400|704|689|383|25|293|371|21|705|30|36|8|1419|1504|721|12|60|736|788|69|71|738|72|70|780|242|400|37|737|199|401|400|401|722|317|258|229|300|380|22|59|61|15|42|45|394|1419|1504|47|97|47|285|65|225|73|30|382|739|743|62|733|17|80|18|55|41|317|81|215|31|24|35|400|225|30|3|390|72|9|384|41|58|400|400|119 ground -1 -1 2 as daklue1219        @setvar! myFindTypeMob daklue1220        getlabel myFindTypeMob helperDesc1221        overhead "� �� HERE �� �" 88 myFindTypeMob    1222 1223        if jaseDebugMode = 11224            overhead "� block 1 {{helperDesc}}" 88   1225            hotkey "Get InfoGump"1226            wft 5001227            target myFindTypeMob1228        endif1229        1230    elseif findtype 141|34|843|1081|44|42|68|88|28|159|11|631|612|281|280|313|385|21|727|689|735|74|400|732|24|776|39|400|215|717|51|716|14|12|60|37|37|21|155|14|138|787|787|395|79|259|783|782|781|58|715|738|727|1419|1504|310|99|113|214|736|204|158|29|75|9|59|61|16|303|306|30|241|730|393|17|314|48|21|721|53|42|1069|287|59|58|401|16|778|715|47|725|169|317|213|384|373|734|23|27|25|705|728|37|779|775|173|92|98|80|388|98|287|302|73|720|252|8|392|9|14|319|4|386|22|9|16|400|400|401|401|401|401|49|96|8|315|303|309|386|169|37|777|59|718|61|718|9|104|266|12|60|12|60|393|721|31|400|401|12|60|778|393|251|12|60|37|826|154|264|39|9|128|176|374|738|169|315|393|776|734|317|13|720|225|305|401|131|94|93|244|16|318|392|393|310|372|309|49|130|83|130|753|59|114|116|830|26|778|400|401|26|81|48|732|779|723|4|387|150|334|385|261|1069|390|304|379|307|729|384|160|74|400|400|400|9|4|784|400|400|400|400|401|4|391|214|13|724|206|16|293|40|43|24|24|285|705|199|199|829|256|160|573|259|400|776|263|375|9|241|39|39|206|202|380|13|30|8|51|4|154|16|312|79|148|401|204|1069|73|748|86|85|87|86|782|781|400|401|401|400|401|400|400|401|401|401|401|401|400|789|316|401|120|832|108|396|393|401|401|757|401|400|401|756|401|763|730|716|16|16|787|740|3|401|75|9|59|400|401|401|401|401|400|400|401|401|400|400|401|21|970|92|16|270|970|400|401|401|401|37|270|37|1419|1504|251|315|51|741|37|169|717|740|715|14|74|206|242|778|739|776|16|51|304|3|300|29|382|104|306|309|57|50|56|302|59|61|1503|24|14|13|51|252|31|400|390|23|27|400|400|704|689|383|25|293|371|21|705|30|36|8|1419|1504|721|12|60|736|788|69|71|738|72|70|780|242|400|37|737|199|401|400|401|722|317|258|229|300|380|22|59|61|15|42|45|394|1419|1504|47|97|47|285|65|225|73|30|382|739|743|62|733|17|80|18|55|41|317|81|215|31|24|35|400|225|30|3|390|72|9|384|41|58|400|400|119 ground -1 -1 4 as daklue1231        @setvar! myFindTypeMob daklue1232        getlabel myFindTypeMob helperDesc1233        overhead "� �� HERE �� �" 88 myFindTypeMob1234        if jaseDebugMode = 11235            overhead "� block 2 {{helperDesc}}" 88   1236            hotkey "Get InfoGump"1237            wft 5001238            target myFindTypeMob1239        endif1240        elseif findtype 141|34|843|1081|44|42|68|88|28|159|11|631|612|281|280|313|385|21|727|689|735|74|400|732|24|776|39|400|215|717|51|716|14|12|60|37|37|21|155|14|138|787|787|395|79|259|783|782|781|58|715|738|727|1419|1504|310|99|113|214|736|204|158|29|75|9|59|61|16|303|306|30|241|730|393|17|314|48|21|721|53|42|1069|287|59|58|401|16|778|715|47|725|169|317|213|384|373|734|23|27|25|705|728|37|779|775|173|92|98|80|388|98|287|302|73|720|252|8|392|9|14|319|4|386|22|9|16|400|400|401|401|401|401|49|96|8|315|303|309|386|169|37|777|59|718|61|718|9|104|266|12|60|12|60|393|721|31|400|401|12|60|778|393|251|12|60|37|826|154|264|39|9|128|176|374|738|169|315|393|776|734|317|13|720|225|305|401|131|94|93|244|16|318|392|393|310|372|309|49|130|83|130|753|59|114|116|830|26|778|400|401|26|81|48|732|779|723|4|387|150|334|385|261|1069|390|304|379|307|729|384|160|74|400|400|400|9|4|784|400|400|400|400|401|4|391|214|13|724|206|16|293|40|43|24|24|285|705|199|199|829|256|160|573|259|400|776|263|375|9|241|39|39|206|202|380|13|30|8|51|4|154|16|312|79|148|401|204|1069|73|748|86|85|87|86|782|781|400|401|401|400|401|400|400|401|401|401|401|401|400|789|316|401|120|832|108|396|393|401|401|757|401|400|401|756|401|763|730|716|16|16|787|740|3|401|75|9|59|400|401|401|401|401|400|400|401|401|400|400|401|21|970|92|16|270|970|400|401|401|401|37|270|37|1419|1504|251|315|51|741|37|169|717|740|715|14|74|206|242|778|739|776|16|51|304|3|300|29|382|104|306|309|57|50|56|302|59|61|1503|24|14|13|51|252|31|400|390|23|27|400|400|704|689|383|25|293|371|21|705|30|36|8|1419|1504|721|12|60|736|788|69|71|738|72|70|780|242|400|37|737|199|401|400|401|722|317|258|229|300|380|22|59|61|15|42|45|394|1419|1504|47|97|47|285|65|225|73|30|382|739|743|62|733|17|80|18|55|41|317|81|215|31|24|35|400|225|30|3|390|72|9|384|41|58|400|400|119 ground -1 -1 10 as daklue1241        @setvar! myFindTypeMob daklue1242        getlabel myFindTypeMob helperDesc1243        overhead "� �� HERE �� �" 88 myFindTypeMob1244        if jaseDebugMode = 11245            overhead "� block 3 {{helperDesc}}" 88   1246            hotkey "Get InfoGump"1247            wft 5001248            target myFindTypeMob1249        endif1250    elseif findtype 141|34|843|1081|44|42|68|88|28|159|11|631|612|281|280|313|385|21|727|689|735|74|400|732|24|776|39|400|215|717|51|716|14|12|60|37|37|21|155|14|138|787|787|395|79|259|783|782|781|58|715|738|727|1419|1504|310|99|113|214|736|204|158|29|75|9|59|61|16|303|306|30|241|730|393|17|314|48|21|721|53|42|1069|287|59|58|401|16|778|715|47|725|169|317|213|384|373|734|23|27|25|705|728|37|779|775|173|92|98|80|388|98|287|302|73|720|252|8|392|9|14|319|4|386|22|9|16|400|400|401|401|401|401|49|96|8|315|303|309|386|169|37|777|59|718|61|718|9|104|266|12|60|12|60|393|721|31|400|401|12|60|778|393|251|12|60|37|826|154|264|39|9|128|176|374|738|169|315|393|776|734|317|13|720|225|305|401|131|94|93|244|16|318|392|393|310|372|309|49|130|83|130|753|59|114|116|830|26|778|400|401|26|81|48|732|779|723|4|387|150|334|385|261|1069|390|304|379|307|729|384|160|74|400|400|400|9|4|784|400|400|400|400|401|4|391|214|13|724|206|16|293|40|43|24|24|285|705|199|199|829|256|160|573|259|400|776|263|375|9|241|39|39|206|202|380|13|30|8|51|4|154|16|312|79|148|401|204|1069|73|748|86|85|87|86|782|781|400|401|401|400|401|400|400|401|401|401|401|401|400|789|316|401|120|832|108|396|393|401|401|757|401|400|401|756|401|763|730|716|16|16|787|740|3|401|75|9|59|400|401|401|401|401|400|400|401|401|400|400|401|21|970|92|16|270|970|400|401|401|401|37|270|37|1419|1504|251|315|51|741|37|169|717|740|715|14|74|206|242|778|739|776|16|51|304|3|300|29|382|104|306|309|57|50|56|302|59|61|1503|24|14|13|51|252|31|400|390|23|27|400|400|704|689|383|25|293|371|21|705|30|36|8|1419|1504|721|12|60|736|788|69|71|738|72|70|780|242|400|37|737|199|401|400|401|722|317|258|229|300|380|22|59|61|15|42|45|394|1419|1504|47|97|47|285|65|225|73|30|382|739|743|62|733|17|80|18|55|41|317|81|215|31|24|35|400|225|30|3|390|72|9|384|41|58|400|400|119 ground -1 -1 12 as daklue1251        @setvar! myFindTypeMob daklue1252        overhead "� � OUT OF RANGE � �" 88 daklue1253        getlabel daklue helperDesc1254        if jaseDebugMode = 11255            overhead "� block 4 {{helperDesc}}" 88   1256            hotkey "Get InfoGump"1257            wft 5001258            target myFindTypeMob1259        endif1260        if "(summoned" in helperDesc or "(bonded" in helperDesc or "(tamed" in helperDesc or "the battle trainer" in helperDesc1261            overhead "� Player pet - IGNORE �" 77 daklue1262            ignore daklue1263            replay1264        endif  1265        wait 2001266        1267        if patrolPetEvenIfLastTargetIsBeyondEightTiles = 11268            1269            if not timerexists myPatrolPetTimer1270                settimer myPatrolPetTimer 50001271            endif1272        1273            if not varexist myPatrolPet1274                @setvar! myPatrolPet 01275            endif1276 1277            if find myPatrolPet ground -1 -1 101278                // do nothing1279            elseif find earthOne ground -1 -1 101280                @setvar! myPatrolPet earthOne1281            elseif find earthTwo ground -1 -1 101282                @setvar! myPatrolPet earthTwo1283            elseif find fireOne ground -1 -1 101284                @setvar! myPatrolPet fireOne1285            elseif find fireTwo ground -1 -1 101286                @setvar! myPatrolPet fireTwo1287            elseif find demonOne ground -1 -1 101288                @setvar! myPatrolPet demonOne1289            elseif find demonTwo ground -1 -1 101290                @setvar! myPatrolPet demonTwo1291            elseif find airOne ground -1 -1 101292                @setvar! myPatrolPet airOne1293            elseif find airTwo ground -1 -1 101294                @setvar! myPatrolPet airTwo1295            elseif find waterOne ground -1 -1 101296                @setvar! myPatrolPet waterOne1297            elseif find waterTwo ground -1 -1 101298                @setvar! myPatrolPet waterTwo1299            else1300                 @setvar! myPatrolPet 01301            endif1302 1303            if myPatrolPet = 01304                // do nothing1305            elseif timer myPatrolPetTimer >= 50001306                overhead "� SEND IN PATROL PET �" 77 myFindTypeMob    1307                if skill "Herding" > 01308                    menu myPatrolPet 31309                else1310                    menu myPatrolPet 21311                endif1312                wft 5001313                target myFindTypeMob1314                settimer myPatrolPetTimer 01315            endif1316        1317        endif 1318        1319        replay1320    else1321        if jaseDebugMode = 11322            overhead "� block 5" 88   1323        endif1324        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1325            overhead "Found type found no one" 341326            settimer preventOverheadSpamTimer 01327        endif1328        wait 2001329        replay1330    endif1331    1332    if myFindTypeMob = 01333        wait 200 1334        replay1335    elseif dead myFindTypeMob1336        wait 200 1337        replay1338    else1339        getlabel myFindTypeMob checkForSummonsDesc1340        overhead "Found: {{checkForSummonsDesc}}" 88 myFindTypeMob1341 1342        if "(summoned" in checkForSummonsDesc or "(bonded" in checkForSummonsDesc or "(tamed" in checkForSummonsDesc or "the battle trainer" in checkForSummonsDesc1343            overhead "� Player pet - IGNORE �" 77 myFindTypeMob1344            @ignore myFindTypeMob1345            replay1346        endif    1347 1348        if noto myFindTypeMob = "friend"1349            @ignore myFindTypeMob1350            replay1351        elseif noto myFindTypeMob = "innocent"1352            @ignore myFindTypeMob1353            replay1354        elseif noto myFindTypeMob = "hostile" or noto myFindTypeMob = "criminal"1355            //overhead "Gray" 881356        elseif noto myFindTypeMob = "murderer"1357            //overhead "Red" 341358        elseif noto myFindTypeMob = "enemy"1359            //overhead "Orange" 341360        elseif noto daklue = "invulnerable"1361            @ignore myFindTypeMob1362            replay1363        else1364            overhead "Unknown" 341365            wait 5001366            @ignore myFindTypeMob1367            replay1368        endif1369                1370        @setvar! myKillTarget myFindTypeMob1371    endif1372elseif useTargetSystem = 31373    1374    hotkey 'Next Non-Friendly Monster Target'1375    wait 2001376    if insysmsg "No one matching that was found"1377        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1378            overhead "found no one" 341379            settimer preventOverheadSpamTimer 01380        endif1381        if autoBotEnabled = 11382            wait 5001383            replay1384        endif1385        stop1386    else1387        1388        @setvar checkForSummons lasttarget 1389        getlabel checkForSummons checkForSummonsDesc1390        1391        if "(summoned" in checkForSummonsDesc or "(bonded" in checkForSummonsDesc or "the battle trainer" in checkForSummonsDesc1392            overhead "� Player pet - IGNORE �" 77 lasttarget1393            replay1394        endif    1395    1396        if find lasttarget ground -1 -1 81397            // we ready1398            overhead "� �� HERE �� �" 88 lasttarget 1399        elseif find lasttarget ground -1 -1 121400            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1401                overhead "Move closer, more then 8 tiles away" 341402                settimer preventOverheadSpamTimer 01403            endif1404            overhead "� � OUT OF RANGE � �" 88 lasttarget1405            1406            if patrolPetEvenIfLastTargetIsBeyondEightTiles = 11407                1408                if not timerexists myPatrolPetTimer1409                    settimer myPatrolPetTimer 50001410                endif1411            1412                if not varexist myPatrolPet1413                    @setvar! myPatrolPet 01414                endif1415 1416                if find myPatrolPet ground -1 -1 101417                    // do nothing1418                elseif find earthOne ground -1 -1 101419                    @setvar! myPatrolPet earthOne1420                elseif find earthTwo ground -1 -1 101421                    @setvar! myPatrolPet earthTwo1422                elseif find fireOne ground -1 -1 101423                    @setvar! myPatrolPet fireOne1424                elseif find fireTwo ground -1 -1 101425                    @setvar! myPatrolPet fireTwo1426                elseif find demonOne ground -1 -1 101427                    @setvar! myPatrolPet demonOne1428                elseif find demonTwo ground -1 -1 101429                    @setvar! myPatrolPet demonTwo1430                elseif find airOne ground -1 -1 101431                    @setvar! myPatrolPet airOne1432                elseif find airTwo ground -1 -1 101433                    @setvar! myPatrolPet airTwo1434                elseif find waterOne ground -1 -1 101435                    @setvar! myPatrolPet waterOne1436                elseif find waterTwo ground -1 -1 101437                    @setvar! myPatrolPet waterTwo1438                else1439                     @setvar! myPatrolPet 01440                endif1441 1442                if myPatrolPet = 01443                    // do nothing1444                elseif timer myPatrolPetTimer >= 50001445                    overhead "� SEND IN PATROL PET �" 77 myFindTypeMob    1446                    if skill "Herding" > 01447                        menu myPatrolPet 31448                    else1449                        menu myPatrolPet 21450                    endif1451                    wft 5001452                    target lasttarget1453                    settimer myPatrolPetTimer 01454                endif1455            1456            endif 1457            1458            if autoBotEnabled = 11459                wait 5001460                replay1461            endif1462            stop1463        else1464            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1465                overhead "Next mob too far" 341466                settimer preventOverheadSpamTimer 01467            endif1468            wait 2001469            replay1470        endif1471    endif    1472    1473    @setvar myKillTarget lasttarget 1474endif1475 1476 1477if not varexist myPreviousKillTarget1478    @setvar myPreviousKillTarget 0     1479endif1480 1481getlabel myKillTarget desc1482overhead desc1483 1484if "(summoned" in desc or "(bonded" in desc or "(tame" in desc or "the battle trainer" in desc1485    overhead "� Player pet - IGNORE �" 77 lasttarget1486    while not targetexists 1487        hotkey 'Add Target To: IgnoreMobs'1488        wait 2001489    endwhile1490    target myKillTarget 1491    replay1492endif    1493 1494if not varexist myEarthPet or dead myEarthPet1495    if not dead earthOne1496        @setvar! myEarthPet earthOne1497    elseif not dead earthTwo1498        @setvar! myEarthPet earthTwo1499    endif1500endif1501 1502if tamerModeEngaged = 11503    // jaseTankPet patrol maybe1504    // overhead "We are a tamer"1505elseif find myEarthPet ground -1 -1 121506    menu myEarthPet 21507    wft 5001508    target myKillTarget1509    wait 2001510    if insysmsg "Target cannot be seen." 1511        if lastCannotBeSeen = 01512            @setvar! lastCannotBeSeen myKillTarget1513        endif1514    else1515        @setvar! lastCannotBeSeen 01516    endif1517endif1518 1519if diffhits >= hpCheckToTriggerGreaterHealSpell and mana > 121520    while not targetexists beneficial1521        if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell1522            cast 'Heal'1523        else1524            cast 'Greater Heal'                1525        endif1526        wait 501527        if hp = maxhp1528            hotkey '> Interrupt'1529            break1530        endif1531    endwhile1532    if targetexists beneficial1533        hotkey "Target Self"1534    endif1535elseif castArchProtection = 1 and not findbuff "protection" and followers >= 4 1536    while not targetexists1537        cast 'Arch Protection'1538        wait 501539        if diffhits >= hpCheckToTriggerGreaterHealSpell1540            hotkey '> Interrupt'1541            break1542        endif1543    endwhile1544    if targetexists1545        target self1546    endif1547elseif castBless = 1 and str <= 100 and followers >= 4 1548    while not targetexists beneficial1549        cast 'Bless'1550        wait 501551        if diffhits >= hpCheckToTriggerGreaterHealSpell1552            hotkey '> Interrupt'1553            break1554        endif1555    endwhile1556    if targetexists beneficial1557        target self1558    endif1559endif1560 1561if not listexists myCursedTargets1562    createlist myCursedTargets1563endif1564 1565if not listexists myManaDrainTargets1566    createlist myManaDrainTargets1567endif1568 1569if not listexists myManaVampireTargets1570    createlist myManaVampireTargets1571endif1572 1573 1574if not varexist lastCannotBeSeenLoopIndex1575    @setvar! lastCannotBeSeenLoopIndex 01576endif1577 1578 1579if lastCannotBeSeen = myKillTarget1580    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1581        overhead "Target not seen, waiting.."  341582        settimer preventOverheadSpamTimer 01583    endif1584    wait 2001585    //overhead "{{lastCannotBeSeenLoopIndex}} : {{retryBasedOnTargetNotSeenTimer}}"1586    if lastCannotBeSeenLoopIndex = 01587        @setvar! lastCannotBeSeenLoopIndex 11588    endif1589    if timer retryBasedOnTargetNotSeenTimer >= cdRetryBasedOnTargetNotSeen1590        settimer retryBasedOnTargetNotSeenTimer 0    1591        @setvar! lastCannotBeSeen 01592    else1593        replay1594    endif1595    1596elseif find myKillTarget -1 -1 12 as killy1597    if myKillTarget = myPreviousKillTarget1598        // do nothing1599    else1600        1601        // Herding using crook1602        if skill "Herding" > 0 and findtype 3713 backpack as jrook1603            dclick jrook1604            wft 5001605            target killy1606        endif1607 1608        if inlist myManaVampireTargets myKillTarget1609            overhead "We already mana vampired this guy" 881610            // do nothing1611        elseif castManaVampire = 01612            // do nothing 1613        elseif followers >= 4 and mana >= manaReserve1614            while not targetexists harmful1615                if dead myKillTarget1616                    hotkey '> Interrupt'1617                    break1618                elseif diffhits < 301619                    if skill "Herding" > 0 and isHerded = 0 and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook1620                        dclick jrook1621                        wft 5001622                        target myKillTarget1623                        settimer meditiationTimer 80001624                        @setvar! isHerded 11625                    endif1626                    cast 'mana vampire'1627                    wait 501628                elseif diffhits >= hpCheckToTriggerGreaterHealSpell or dead myKillTarget1629                    hotkey '> Interrupt'1630                    break1631                endif1632            endwhile1633            if targetexists harmful1634                target myKillTarget1635                pushlist myManaVampireTargets myKillTarget1636                settimer killTargetTimer 01637                wait 5001638                if insysmsg "Target cannot be seen." 1639                    @setvar! lastCannotBeSeen myKillTarget1640                    overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341641                    replay1642                endif1643            endif1644            if targetexists harmful1645                hotkey "Cancel current target"1646            endif1647        endif1648        1649        if inlist myManaDrainTargets myKillTarget1650            overhead "We already mana drained this guy" 881651            // do nothing1652        elseif castManadrain = 01653            // do nothing 1654        elseif followers >= 4 and mana >= manaReserve1655            while not targetexists harmful1656                if dead myKillTarget1657                    hotkey '> Interrupt'1658                    break1659                elseif diffhits < 301660                     if skill "Herding" > 0 and isHerded = 0 and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook1661                        dclick jrook1662                        wft 5001663                        target myKillTarget1664                        settimer meditiationTimer 80001665                        @setvar! isHerded 11666                    endif1667                    cast 'mana drain'1668                    wait 501669                elseif diffhits >= hpCheckToTriggerGreaterHealSpell or dead myKillTarget1670                    hotkey '> Interrupt'1671                    break1672                endif1673            endwhile1674            if targetexists harmful1675                target myKillTarget1676                pushlist myManaDrainTargets myKillTarget1677                settimer killTargetTimer 01678                wait 5001679                if insysmsg "Target cannot be seen." 1680                    @setvar! lastCannotBeSeen myKillTarget1681                    overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341682                    replay1683                endif1684            endif1685            if targetexists harmful1686                hotkey "Cancel current target"1687            endif1688        endif1689        1690        if inlist myCursedTargets myKillTarget1691            overhead "We already cursed this guy" 881692            // do nothing1693        elseif castCurse = 01694            // do nothing1695        elseif followers >= 4 and mana >= manaReserve1696            while not targetexists harmful and not dead myKillTarget1697                if diffhits < 301698                     if skill "Herding" > 0 and isHerded = 0 and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook1699                        dclick jrook1700                        wft 5001701                        target myKillTarget1702                        settimer meditiationTimer 80001703                        @setvar! isHerded 11704                    endif1705                    cast 'Curse'1706                    wait 501707                elseif diffhits >= hpCheckToTriggerGreaterHealSpell1708                    hotkey '> Interrupt'1709                    break1710                endif1711            endwhile1712            if targetexists harmful1713                target myKillTarget1714                pushlist myCursedTargets myKillTarget1715                settimer killTargetTimer 01716                wait 5001717                if insysmsg "Target cannot be seen." 1718                    @setvar! lastCannotBeSeen myKillTarget1719                    overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341720                    replay1721                endif1722            else1723                hotkey '> Interrupt'1724            endif1725            if targetexists harmful1726                hotkey "Cancel current target"1727            endif1728        endif1729        @setvar myPreviousKillTarget myKillTarget1730    endif1731else1732    overhead "Out of range" 341733endif1734 1735 1736clearsysmsg 1737 1738say "all guard"1739 1740@setvar! isLethalPoison 01741@setvar! isHerded 01742 1743if skill "Peacemaking" >= 50 1744    @setvar! isPeaced 01745else1746    @setvar! isPeaced 1    1747endif1748 1749if skill "Discordance" >= 50 1750  @setvar! isDiscorded 01751else1752  @setvar! isDiscorded 1  1753endif1754 1755while not dead myKillTarget and find myKillTarget -1 -1 12 as killy1756 1757    for 51758 1759        if findbuff "bleed" or findbuff "disease"1760            if timer cleansingBrewTimer >= cdCleansingBrew and findtype 50675 backpack 2935 as jrew1761                dclick jrew1762                wait minimumWaitForPing 1763                settimer cleansingBrewTimer 01764            endif1765        endif1766 1767        // lost a follower1768        if followers < breakSpellCastAndResummonIfLessThanXFollowers1769            replay1770        endif1771        1772        if weight >= maxweight and not findbuff "strength" and automaticallyDrinkStrPotIfOverWeight = 1 and findtype "white potion" backpack as pot1773            dclick pot1774            wait 2001775        endif1776    1777        if dead myKillTarget1778            break1779        elseif insysmsg "Target cannot be seen." 1780            @setvar! lastCannotBeSeen myKillTarget1781            overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341782            replay1783        elseif find myKillTarget -1 -1 12 as killy1784            // do nothing - in range to kill1785        else1786            break1787        endif1788    1789        if skill "Herding" > 0 and isHerded = 0 and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook1790            dclick jrook1791            wft 5001792            target myKillTarget1793            settimer meditiationTimer 80001794            @setvar! isHerded 11795        endif1796        1797        if gumpexists 622436516 and skill "Necromancy" >= 501798            if ingump "12/" 6224365161799                @setvar! necroSymbols 121800            elseif ingump "13/" 6224365161801                @setvar! necroSymbols 131802            elseif ingump "14/" 6224365161803                @setvar! necroSymbols 141804            elseif ingump "15/" 6224365161805                @setvar! necroSymbols 151806            elseif ingump "16/" 6224365161807                @setvar! necroSymbols 161808            elseif ingump "17/" 6224365161809                @setvar! necroSymbols 171810            elseif ingump "18/" 6224365161811                @setvar! necroSymbols 181812            elseif ingump "19/" 6224365161813                @setvar! necroSymbols 191814            elseif ingump "20/" 6224365161815                @setvar! necroSymbols 201816            elseif ingump "21/" 6224365161817                @setvar! necroSymbols 211818            elseif ingump "11/" 6224365161819                @setvar! necroSymbols 111820            elseif ingump "10/" 6224365161821                @setvar! necroSymbols 101822            elseif ingump "9/" 6224365161823                @setvar! necroSymbols 91824            elseif ingump "8/" 6224365161825                @setvar! necroSymbols 81826            elseif ingump "7/" 6224365161827                @setvar! necroSymbols 71828            elseif ingump "6/" 6224365161829                @setvar! necroSymbols 61830            elseif ingump "5/" 6224365161831                @setvar! necroSymbols 51832            elseif ingump "4/" 6224365161833                @setvar! necroSymbols 41834            elseif ingump "3/" 6224365161835                @setvar! necroSymbols 31836            elseif ingump "2/" 6224365161837                @setvar! necroSymbols 21838            elseif ingump "1/" 6224365161839                @setvar! necroSymbols 11840            elseif ingump "0/" 6224365161841                @setvar! necroSymbols 01842            endif1843        endif1844        1845        if skill "Discordance" >= 50 1846            if isDiscorded = 01847                getlabel myKillTarget discordDesc1848                if "discord" in discordDesc1849                    @setvar! isDiscorded 11850                elseif timer meditiationTimer >= 11000 1851                    useskill 'Discordance'1852                    wft 5001853                    if insysmsg "What instrument"1854                        if findtype "bamboo flute" backpack as inny1855                            target inny1856                        elseif findtype "tambourine" backpack as inny1857                            target inny1858                        elseif findtype "drum" backpack as inny1859                            target inny1860                        elseif findtype "lute" backpack as inny1861                            target inny1862                        elseif findtype "harp" backpack as inny1863                            target inny1864                        elseif findtype "lap harp" backpack as inny1865                            target inny1866                        else1867                            overhead "I do not have an inny" 341868                            @setvar! isDiscorded 11869                        endif1870                        wft 5001871                    endif1872                    if targetexists 1873                        target myKillTarget1874                        overhead "Discorded" 88 myKillTarget1875                    endif1876                    settimer meditiationTimer 50001877                endif1878            endif1879            1880            if not findbuff "song of discordance" and timer meditiationTimer >= 110001881                useskill 'Discordance'1882                wft 5001883                if insysmsg "What instrument"1884                    if findtype "bamboo flute" backpack as inny1885                        target inny1886                    elseif findtype "tambourine" backpack as inny1887                        target inny1888                    elseif findtype "drum" backpack as inny1889                        target inny1890                    elseif findtype "lute" backpack as inny1891                        target inny1892                    elseif findtype "harp" backpack as inny1893                        target inny1894                    elseif findtype "lap harp" backpack as inny1895                        target inny1896                    else1897                        overhead "I do not have an inny" 341898                        @setvar! isDiscorded 11899                    endif1900                    wft 5001901                endif1902                target backpack1903                settimer meditiationTimer 01904            endif    1905        endif1906        1907        if skill "Peacemaking" >= 50 1908            if isPeaced = 01909                getlabel myKillTarget peaceDesc1910                if "pacified" in peaceDesc1911                    @setvar! isPeaced 11912                elseif timer meditiationTimer >= 11000 1913                    useskill 'Peacemaking'1914                    wft 5001915                    if insysmsg "What instrument"1916                        if findtype "bamboo flute" backpack as inny1917                            target inny1918                        elseif findtype "tambourine" backpack as inny1919                            target inny1920                        elseif findtype "drum" backpack as inny1921                            target inny1922                        elseif findtype "lute" backpack as inny1923                            target inny1924                        elseif findtype "harp" backpack as inny1925                            target inny1926                        elseif findtype "lap harp" backpack as inny1927                            target inny1928                        else1929                            overhead "I do not have an inny" 341930                            @setvar! isPeaced 11931                        endif1932                        wft 5001933                    endif1934                    if targetexists 1935                        target myKillTarget1936                        overhead "Peacemaed" 88 myKillTarget1937                    endif1938                    settimer meditiationTimer 50001939                endif1940            endif1941            1942            if not findbuff "song of peacemaking" and timer meditiationTimer >= 110001943                useskill 'Peacemaking'1944                wft 5001945                if insysmsg "What instrument"1946                    if findtype "bamboo flute" backpack as inny1947                        target inny1948                    elseif findtype "tambourine" backpack as inny1949                        target inny1950                    elseif findtype "drum" backpack as inny1951                        target inny1952                    elseif findtype "lute" backpack as inny1953                        target inny1954                    elseif findtype "harp" backpack as inny1955                        target inny1956                    elseif findtype "lap harp" backpack as inny1957                        target inny1958                    else1959                        overhead "I do not have an inny" 341960                        @setvar! isPeaced 11961                    endif1962                    wft 5001963                endif1964                target backpack1965                settimer meditiationTimer 01966            endif    1967        endif1968 1969        if castMagicShield = 1 and timer magicShieldTimer >= cdMagicShield and not findbuff "Magic Reflection"1970            if mana >= manaReserve1971                cast "Magic Reflection"1972                wait 10001973            endif1974        elseif automaticallyDrinkMagicPot = 1 and not findbuff "Magic Reflection" and not findbuff "Magic Resist Potion" and findtype "Black Potion" backpack as pot1975            dclick pot1976            wait 2001977        endif1978 1979        if findbuff "Magic Reflection"1980            settimer magicShieldTimer 01981        endif1982        1983        if castReactiveArmor = 1 and timer reactiveArmorTimer >= cdReactiveArmor and not findbuff "Reactive Armor"1984            if mana >= manaReserve1985                cast "Reactive Armor"1986                wait 2001987            endif1988        endif1989 1990        if findbuff "Reactive Armor"1991            settimer reactiveArmorTimer 01992        endif1993        1994        if skill "poisoning" >= 100 or castPoisonAnyway = 11995            if timer meditiationTimer >= cdMeditationMini and mana >= manaReserve1996                if castMindRot = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer mindRotTimer >= cdMindRot and skill "Necromancy" >= 75 and 3 < necroSymbols 1997                    yell "[MindRot"1998                    settimer preventSpamNecroAbilitiesTimer 01999                    settimer mindRotTimer 02000                    wait 5002001                    if gumpexists 6224365162002                        if ingump "12/" 6224365162003                            @setvar! necroSymbols 122004                        elseif ingump "13/" 6224365162005                            @setvar! necroSymbols 132006                        elseif ingump "14/" 6224365162007                            @setvar! necroSymbols 142008                        elseif ingump "15/" 6224365162009                            @setvar! necroSymbols 152010                        elseif ingump "16/" 6224365162011                            @setvar! necroSymbols 162012                        elseif ingump "17/" 6224365162013                            @setvar! necroSymbols 172014                        elseif ingump "18/" 6224365162015                            @setvar! necroSymbols 182016                        elseif ingump "19/" 6224365162017                            @setvar! necroSymbols 192018                        elseif ingump "20/" 6224365162019                            @setvar! necroSymbols 202020                        elseif ingump "21/" 6224365162021                            @setvar! necroSymbols 212022                        elseif ingump "11/" 6224365162023                            @setvar! necroSymbols 112024                        elseif ingump "10/" 6224365162025                            @setvar! necroSymbols 102026                        elseif ingump "9/" 6224365162027                            @setvar! necroSymbols 92028                        elseif ingump "8/" 6224365162029                            @setvar! necroSymbols 82030                        elseif ingump "7/" 6224365162031                            @setvar! necroSymbols 72032                        elseif ingump "6/" 6224365162033                            @setvar! necroSymbols 62034                        elseif ingump "5/" 6224365162035                            @setvar! necroSymbols 52036                        elseif ingump "4/" 6224365162037                            @setvar! necroSymbols 42038                        elseif ingump "3/" 6224365162039                            @setvar! necroSymbols 32040                        elseif ingump "2/" 6224365162041                            @setvar! necroSymbols 22042                        elseif ingump "1/" 6224365162043                            @setvar! necroSymbols 12044                        elseif ingump "0/" 6224365162045                            @setvar! necroSymbols 02046                        endif2047                    endif2048                endif2049                2050                                2051                getlabel myKillTarget desc22052                overhead desc22053                2054                if castPoisonStrike = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer poisonStrikeTimer >= cdPoisonStrike and skill "Necromancy" >= 55 and 1 < necroSymbols 2055                    if "Ticks" in desc22056                        if "[8" in desc2 or "[7" in desc2 or "[6" in desc2  or "[5" in desc2  or "[4" in desc2  or "[3" in desc2  or "[2" in desc2  or "[1 " in desc2 2057                            yell "[PoisonStrike"2058                            wft 5002059                            target myKillTarget2060                            wait 2002061                            settimer preventSpamNecroAbilitiesTimer 02062                            settimer poisonStrikeTimer 02063                            wait 5002064                            if gumpexists 6224365162065                                if ingump "12/" 6224365162066                                    @setvar! necroSymbols 122067                                elseif ingump "13/" 6224365162068                                    @setvar! necroSymbols 132069                                elseif ingump "14/" 6224365162070                                    @setvar! necroSymbols 142071                                elseif ingump "15/" 6224365162072                                    @setvar! necroSymbols 152073                                elseif ingump "16/" 6224365162074                                    @setvar! necroSymbols 162075                                elseif ingump "17/" 6224365162076                                    @setvar! necroSymbols 172077                                elseif ingump "18/" 6224365162078                                    @setvar! necroSymbols 182079                                elseif ingump "19/" 6224365162080                                    @setvar! necroSymbols 192081                                elseif ingump "20/" 6224365162082                                    @setvar! necroSymbols 202083                                elseif ingump "21/" 6224365162084                                    @setvar! necroSymbols 212085                                elseif ingump "11/" 6224365162086                                    @setvar! necroSymbols 112087                                elseif ingump "10/" 6224365162088                                    @setvar! necroSymbols 102089                                elseif ingump "9/" 6224365162090                                    @setvar! necroSymbols 92091                                elseif ingump "8/" 6224365162092                                    @setvar! necroSymbols 82093                                elseif ingump "7/" 6224365162094                                    @setvar! necroSymbols 72095                                elseif ingump "6/" 6224365162096                                    @setvar! necroSymbols 62097                                elseif ingump "5/" 6224365162098                                    @setvar! necroSymbols 52099                                elseif ingump "4/" 6224365162100                                    @setvar! necroSymbols 42101                                elseif ingump "3/" 6224365162102                                    @setvar! necroSymbols 32103                                elseif ingump "2/" 6224365162104                                    @setvar! necroSymbols 22105                                elseif ingump "1/" 6224365162106                                    @setvar! necroSymbols 12107                                elseif ingump "0/" 6224365162108                                    @setvar! necroSymbols 02109                                endif2110                            endif2111                        endif2112                    endif2113                endif2114                2115                if isLethalPoison = 02116                    2117                    if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2118                        overhead "Eating shrooms" 662119                        dclick mushy2120                        @setvar! jase_shrooms mushy2121                        wait 2002122                        if insysmsg "You consume a magic mushroom and restore some mana."2123                            settimer magicMushroomTimer 0  2124                        elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2125                            settimer magicMushroomTimer 300002126                        endif2127                    endif2128                2129                    if insysmsg "Target cannot be seen." 2130                        @setvar! lastCannotBeSeen myKillTarget2131                        overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342132                        replay2133                    endif 2134 2135                    // poison lethal2136                    if "Lethal" in desc22137                        @setvar! isLethalPoison 12138                        break2139                    elseif castPoisonAnyway = 1 and "Ticks" in desc22140                        @setvar! isLethalPoison 12141                        break2142                    elseif castPoisonAnyway = 1 and "Poison" in desc22143                        @setvar! isLethalPoison 12144                        break2145                    elseif diffhits >= hpCheckToTriggerGreaterHealSpell 2146                        // need a heal2147                        break2148                    elseif mana >= 92149                        while not targetexists harmful2150                            cast 'poison'2151                            wait 502152                            if dead myKillTarget2153                                hotkey '> Interrupt'2154                                replay2155                            endif2156                        endwhile2157                        target myKillTarget2158                        wait 2002159                        if insysmsg "Target cannot be seen." 2160                            @setvar! lastCannotBeSeen myKillTarget2161                             overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342162                             @setvar! isLethalPoison 12163                        endif 2164                    else2165                        wait 2002166                    endif2167                endif2168            endif2169        endif2170        2171        if castCorpseSkin = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer corpseSkinTimer >= cdCorpseSkin and skill "Necromancy" >= 65 and timer meditiationTimer >= cdMeditationMini and 2 < necroSymbols and mana >= manaReserve2172            yell "[CorpseSkin"2173            settimer preventSpamNecroAbilitiesTimer 02174            settimer corpseSkinTimer 02175            cooldown CorpseSkin cdCorpseSkin2176            wait 5002177            if gumpexists 6224365162178                if ingump "12/" 6224365162179                    @setvar! necroSymbols 122180                elseif ingump "13/" 6224365162181                    @setvar! necroSymbols 132182                elseif ingump "14/" 6224365162183                    @setvar! necroSymbols 142184                elseif ingump "15/" 6224365162185                    @setvar! necroSymbols 152186                elseif ingump "16/" 6224365162187                    @setvar! necroSymbols 162188                elseif ingump "17/" 6224365162189                    @setvar! necroSymbols 172190                elseif ingump "18/" 6224365162191                    @setvar! necroSymbols 182192                elseif ingump "19/" 6224365162193                    @setvar! necroSymbols 192194                elseif ingump "20/" 6224365162195                    @setvar! necroSymbols 202196                elseif ingump "21/" 6224365162197                    @setvar! necroSymbols 212198                elseif ingump "11/" 6224365162199                    @setvar! necroSymbols 112200                elseif ingump "10/" 6224365162201                    @setvar! necroSymbols 102202                elseif ingump "9/" 6224365162203                    @setvar! necroSymbols 92204                elseif ingump "8/" 6224365162205                    @setvar! necroSymbols 82206                elseif ingump "7/" 6224365162207                    @setvar! necroSymbols 72208                elseif ingump "6/" 6224365162209                    @setvar! necroSymbols 62210                elseif ingump "5/" 6224365162211                    @setvar! necroSymbols 52212                elseif ingump "4/" 6224365162213                    @setvar! necroSymbols 42214                elseif ingump "3/" 6224365162215                    @setvar! necroSymbols 32216                elseif ingump "2/" 6224365162217                    @setvar! necroSymbols 22218                elseif ingump "1/" 6224365162219                    @setvar! necroSymbols 12220                elseif ingump "0/" 6224365162221                    @setvar! necroSymbols 02222                endif2223            endif2224        endif2225            2226        if castBloodOath = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and skill "Necromancy" >= 80 and timer bloodOathTimer >= cdBloodOath and 5 < necroSymbols and mana >= manaReserve2227            yell "[BloodOath"2228            settimer preventSpamNecroAbilitiesTimer 02229            settimer bloodOathTimer 02230            if gumpexists 6224365162231                if ingump "12/" 6224365162232                    @setvar! necroSymbols 122233                elseif ingump "13/" 6224365162234                    @setvar! necroSymbols 132235                elseif ingump "14/" 6224365162236                    @setvar! necroSymbols 142237                elseif ingump "15/" 6224365162238                    @setvar! necroSymbols 152239                elseif ingump "16/" 6224365162240                    @setvar! necroSymbols 162241                elseif ingump "17/" 6224365162242                    @setvar! necroSymbols 172243                elseif ingump "18/" 6224365162244                    @setvar! necroSymbols 182245                elseif ingump "19/" 6224365162246                    @setvar! necroSymbols 192247                elseif ingump "20/" 6224365162248                    @setvar! necroSymbols 202249                elseif ingump "21/" 6224365162250                    @setvar! necroSymbols 212251                elseif ingump "11/" 6224365162252                    @setvar! necroSymbols 112253                elseif ingump "10/" 6224365162254                    @setvar! necroSymbols 102255                elseif ingump "9/" 6224365162256                    @setvar! necroSymbols 92257                elseif ingump "8/" 6224365162258                    @setvar! necroSymbols 82259                elseif ingump "7/" 6224365162260                    @setvar! necroSymbols 72261                elseif ingump "6/" 6224365162262                    @setvar! necroSymbols 62263                elseif ingump "5/" 6224365162264                    @setvar! necroSymbols 52265                elseif ingump "4/" 6224365162266                    @setvar! necroSymbols 42267                elseif ingump "3/" 6224365162268                    @setvar! necroSymbols 32269                elseif ingump "2/" 6224365162270                    @setvar! necroSymbols 22271                elseif ingump "1/" 6224365162272                    @setvar! necroSymbols 12273                elseif ingump "0/" 6224365162274                    @setvar! necroSymbols 02275                endif2276            endif2277        endif2278        2279        if castEvilOmen = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer evilOmenTimer >= cdEvilOmen and skill "Necromancy" >= 60 and timer meditiationTimer >= cdMeditationMini and 2 < necroSymbols and mana >= manaReserve2280            yell "[EvilOmen"2281            settimer evilOmenTimer 02282            settimer preventSpamNecroAbilitiesTimer 02283            cooldown EvilOmen cdEvilOmen2284            wait 5002285            if gumpexists 6224365162286                if ingump "12/" 6224365162287                    @setvar! necroSymbols 122288                elseif ingump "13/" 6224365162289                    @setvar! necroSymbols 132290                elseif ingump "14/" 6224365162291                    @setvar! necroSymbols 142292                elseif ingump "15/" 6224365162293                    @setvar! necroSymbols 152294                elseif ingump "16/" 6224365162295                    @setvar! necroSymbols 162296                elseif ingump "17/" 6224365162297                    @setvar! necroSymbols 172298                elseif ingump "18/" 6224365162299                    @setvar! necroSymbols 182300                elseif ingump "19/" 6224365162301                    @setvar! necroSymbols 192302                elseif ingump "20/" 6224365162303                    @setvar! necroSymbols 202304                elseif ingump "21/" 6224365162305                    @setvar! necroSymbols 212306                elseif ingump "11/" 6224365162307                    @setvar! necroSymbols 112308                elseif ingump "10/" 6224365162309                    @setvar! necroSymbols 102310                elseif ingump "9/" 6224365162311                    @setvar! necroSymbols 92312                elseif ingump "8/" 6224365162313                    @setvar! necroSymbols 82314                elseif ingump "7/" 6224365162315                    @setvar! necroSymbols 72316                elseif ingump "6/" 6224365162317                    @setvar! necroSymbols 62318                elseif ingump "5/" 6224365162319                    @setvar! necroSymbols 52320                elseif ingump "4/" 6224365162321                    @setvar! necroSymbols 42322                elseif ingump "3/" 6224365162323                    @setvar! necroSymbols 32324                elseif ingump "2/" 6224365162325                    @setvar! necroSymbols 22326                elseif ingump "1/" 6224365162327                    @setvar! necroSymbols 12328                elseif ingump "0/" 6224365162329                    @setvar! necroSymbols 02330                endif2331            endif2332        endif2333        2334        if castVampiricEmbrace = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer vampiricEmbraceTimer >= cdVampiricEmbrace and skill "Necromancy" >= 75 and timer meditiationTimer >= cdMeditationMini and 3 < necroSymbols and findtype 8198 ground -1 -1 4 as jorpse2335            yell "[VampiricEmbrace"2336            wft 5002337            target jorpse2338            settimer preventSpamNecroAbilitiesTimer 02339            settimer vampiricEmbraceTimer 02340            cooldown VampiricEmbrace cdVampiricEmbrace2341            wait 5002342            if gumpexists 6224365162343                if ingump "12/" 6224365162344                    @setvar! necroSymbols 122345                elseif ingump "13/" 6224365162346                    @setvar! necroSymbols 132347                elseif ingump "14/" 6224365162348                    @setvar! necroSymbols 142349                elseif ingump "15/" 6224365162350                    @setvar! necroSymbols 152351                elseif ingump "16/" 6224365162352                    @setvar! necroSymbols 162353                elseif ingump "17/" 6224365162354                    @setvar! necroSymbols 172355                elseif ingump "18/" 6224365162356                    @setvar! necroSymbols 182357                elseif ingump "19/" 6224365162358                    @setvar! necroSymbols 192359                elseif ingump "20/" 6224365162360                    @setvar! necroSymbols 202361                elseif ingump "21/" 6224365162362                    @setvar! necroSymbols 212363                elseif ingump "11/" 6224365162364                    @setvar! necroSymbols 112365                elseif ingump "10/" 6224365162366                    @setvar! necroSymbols 102367                elseif ingump "9/" 6224365162368                    @setvar! necroSymbols 92369                elseif ingump "8/" 6224365162370                    @setvar! necroSymbols 82371                elseif ingump "7/" 6224365162372                    @setvar! necroSymbols 72373                elseif ingump "6/" 6224365162374                    @setvar! necroSymbols 62375                elseif ingump "5/" 6224365162376                    @setvar! necroSymbols 52377                elseif ingump "4/" 6224365162378                    @setvar! necroSymbols 42379                elseif ingump "3/" 6224365162380                    @setvar! necroSymbols 32381                elseif ingump "2/" 6224365162382                    @setvar! necroSymbols 22383                elseif ingump "1/" 6224365162384                    @setvar! necroSymbols 12385                elseif ingump "0/" 6224365162386                    @setvar! necroSymbols 02387                endif2388            endif2389        endif2390        2391        if castPainSpike = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer painSpikeTimer >= cdPainSpike and skill "Necromancy" >= 95 and timer meditiationTimer >= cdMeditationMini and 5 < necroSymbols and findtype 8198 ground -1 -1 6 as jorpse2392            yell "[PainSpike"2393            wft 5002394            target myKillTarget2395            wait 2002396            settimer preventSpamNecroAbilitiesTimer 02397            if insysmsg "You do not see any corpses"2398                // do nothing2399            else2400                settimer painSpikeTimer 02401                cooldown PainSpike cdPainSpike            2402            endif2403            if gumpexists 6224365162404                if ingump "12/" 6224365162405                    @setvar! necroSymbols 122406                elseif ingump "13/" 6224365162407                    @setvar! necroSymbols 132408                elseif ingump "14/" 6224365162409                    @setvar! necroSymbols 142410                elseif ingump "15/" 6224365162411                    @setvar! necroSymbols 152412                elseif ingump "16/" 6224365162413                    @setvar! necroSymbols 162414                elseif ingump "17/" 6224365162415                    @setvar! necroSymbols 172416                elseif ingump "18/" 6224365162417                    @setvar! necroSymbols 182418                elseif ingump "19/" 6224365162419                    @setvar! necroSymbols 192420                elseif ingump "20/" 6224365162421                    @setvar! necroSymbols 202422                elseif ingump "21/" 6224365162423                    @setvar! necroSymbols 212424                elseif ingump "11/" 6224365162425                    @setvar! necroSymbols 112426                elseif ingump "10/" 6224365162427                    @setvar! necroSymbols 102428                elseif ingump "9/" 6224365162429                    @setvar! necroSymbols 92430                elseif ingump "8/" 6224365162431                    @setvar! necroSymbols 82432                elseif ingump "7/" 6224365162433                    @setvar! necroSymbols 72434                elseif ingump "6/" 6224365162435                    @setvar! necroSymbols 62436                elseif ingump "5/" 6224365162437                    @setvar! necroSymbols 52438                elseif ingump "4/" 6224365162439                    @setvar! necroSymbols 42440                elseif ingump "3/" 6224365162441                    @setvar! necroSymbols 32442                elseif ingump "2/" 6224365162443                    @setvar! necroSymbols 22444                elseif ingump "1/" 6224365162445                    @setvar! necroSymbols 12446                elseif ingump "0/" 6224365162447                    @setvar! necroSymbols 02448                endif2449            endif2450        endif2451        2452        if diffhits >= hpCheckToTriggerHealPotion 2453            if findtype "Yellow Potion" backpack as pot 2454                getlabel pot desc2455                if "next usable" in desc2456                    // do nothing2457                else2458                    dclick pot2459                    wait 5002460                endif2461            endif2462        endif2463        2464        if diffhits >= hpCheckToTriggerGreaterHealSpell and mana >= 122465            while not targetexists beneficial2466                if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell2467                    cast 'Heal'2468                else2469                    cast 'Greater Heal'                2470                endif2471                wait 502472                if hp = maxhp2473                    hotkey '> Interrupt'2474                    break2475                endif2476            endwhile2477            if targetexists beneficial2478                hotkey "Target Self"2479                wait 502480            endif2481        endif2482        2483        if poisoned2484            if automaticallyDrinkCurePot = 1 and diffhits >= hpCheckToTriggerCurePotion and findtype "Orange Potion" backpack as pot 2485                dclick pot2486                wait 2002487            endif2488            2489            while not targetexists beneficial2490                if not poisoned2491                    hotkey '> Interrupt'2492                    break2493                else2494                    cast 'Cure'2495                    wait 502496                endif 2497            endwhile2498            if targetexists beneficial2499                hotkey "Target Self"2500                wait 5002501            endif2502        endif2503 2504        if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2505            overhead "Eating shrooms" 662506            dclick mushy2507            @setvar! jase_shrooms mushy2508            wait 2002509            if insysmsg "You consume a magic mushroom and restore some mana."2510                settimer magicMushroomTimer 0    2511            elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2512                settimer magicMushroomTimer 300002513            endif2514        endif2515        2516        2517        2518        if index = 02519                    2520            if castLightning = 1 and diffhits < 30 and mana >= 12 and timer lightningTimer >= cdLightning and timer meditiationTimer >= cdMeditationMini and mana >= manaReserve2521                while not targetexists harmful2522                    if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2523                        hotkey '> Interrupt'2524                        break2525                    else2526                        if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2527                            dclick jrook2528                            wft 5002529                            target myKillTarget2530                            settimer meditiationTimer 80002531                            settimer HerdTimer 02532                            cooldown Herding cdHerdingTimer2533                        endif2534                        cast 'Lightning'2535                        wait 502536                    endif 2537                endwhile2538                if targetexists harmful2539                    target myKillTarget2540                    settimer lightningTimer 02541                    cooldown Lightning cdLightning2542                    wait 5002543                endif2544            endif2545        2546        elseif index = 12547        2548            if castMagicArrow = 1 and diffhits < 30 and mana >= 5 and timer magicArrowTimer >= cdMagicArrow and timer meditiationTimer >= cdMeditationMini and mana >= manaReserve2549                while not targetexists harmful2550                    if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2551                        hotkey '> Interrupt'2552                        break2553                    else2554                         if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2555                            dclick jrook2556                            wft 5002557                            target myKillTarget2558                            settimer meditiationTimer 80002559                            settimer HerdTimer 02560                            cooldown Herding cdHerdingTimer2561                        endif2562                        cast 'magic arrow'2563                        wait 502564                    endif 2565                endwhile2566                if targetexists harmful2567                    target myKillTarget2568                    settimer magicArrowTimer 02569                    cooldown MagicArrow cdMagicArrow2570                    wait 5002571                endif2572            endif2573            2574        elseif index = 22575                2576            if castHarm = 1 and diffhits < 30 and mana >= 9 and timer harmTimer >= cdHarm and timer meditiationTimer >= cdMeditationMini and mana >= manaReserve2577                while not targetexists harmful2578                    if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2579                        hotkey '> Interrupt'2580                        break2581                    else2582                        if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2583                            dclick jrook2584                            wft 5002585                            target myKillTarget2586                            settimer meditiationTimer 80002587                            settimer HerdTimer 02588                            cooldown Herding cdHerdingTimer2589                        endif2590                        cast 'harm'2591                        wait 502592                    endif 2593                endwhile2594                if targetexists harmful2595                    target myKillTarget2596                    settimer harmTimer 02597                    cooldown Harm cdHarm2598                    wait 5002599                endif2600            endif2601            2602        elseif index = 32603                2604            if castFireball = 1 and diffhits < 30 and mana >= 12 and timer fireballTimer >= cdFireball and timer meditiationTimer >= cdMeditationMini and mana >= manaReserve2605                while not targetexists harmful2606                    if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2607                        hotkey '> Interrupt'2608                        break2609                    else2610                        if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2611                            dclick jrook2612                            wft 5002613                            target myKillTarget2614                            settimer meditiationTimer 80002615                            settimer HerdTimer 02616                            cooldown Herding cdHerdingTimer2617                        endif2618                        cast 'fireball'2619                        wait 502620                    endif 2621                endwhile2622                if targetexists harmful2623                    target myKillTarget2624                    settimer fireballTimer 02625                    cooldown Fireball cdFireball2626                    wait 5002627                endif2628            endif2629 2630        endif2631        2632        if tamerModeEngaged = 12633                2634            if timer autoHealTamerPet >= cdAutoHealTamerPet2635                if not dead jaseTankPet2636                    while not targetexists beneficial2637                        hotkey 'Greater Heal'2638                        wft 2002639                    endwhile2640                else2641                   while not targetexists beneficial2642                        hotkey 'Resurrection'2643                        wft 2002644                        if diffhits >= hpCheckToTriggerGreaterHealSpell2645                            break2646                        endif2647                    endwhile2648                    if targetexists beneficial2649                        target jaseTankPet2650                    endif2651                    while not targetexists beneficial2652                        hotkey 'Greater Heal'2653                        wft 2002654                    endwhile2655                endif2656                if targetexists beneficial2657                    target jaseTankPet2658                    settimer autoHealTamerPet 02659                    cooldown AutoPetHeal cdAutoHealTamerPet2660                endif2661            endif2662            2663        endif2664    2665    endfor2666   2667    if find myKillTarget -1 -1 12 as killy2668       // do nothing2669    else2670        overhead "Out of range" 342671        break2672    endif2673    2674    2675    if diffhits >= hpCheckToTriggerGreaterHealSpell2676            2677        if diffhits >= hpCheckToTriggerHealPotion and findtype "Yellow Potion" backpack as pot 2678            getlabel pot desc2679            if "next usable" in desc2680                // do nothing2681            else2682                dclick pot2683                wait 5002684            endif2685        endif2686 2687        if diffhits >= hpCheckToTriggerGreaterHealSpell and mana >= 122688            while not targetexists beneficial2689                if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell2690                    cast 'Heal'2691                else2692                    cast 'Greater Heal'                2693                endif2694                wait 502695                if hp = maxhp2696                    hotkey '> Interrupt'2697                    break2698                endif2699            endwhile2700            if targetexists beneficial2701                hotkey "Target Self"2702                wait 502703            endif2704        endif2705    elseif mana < 55 and findbuff "actively meditating" 2706        // wait for mana2707    elseif timer meditiationTimer < cdMeditationMini and findbuff "actively meditating" 2708        // wait for mana2709    elseif castChainLightning = 1 and timer chainLightningTimer >= cdChainLightning2710        while not targetexists and mana > 40 and mana >= manaReserve2711            if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2712                overhead "Eating shrooms" 662713                dclick mushy2714                @setvar! jase_shrooms mushy2715                wait 2002716                if insysmsg "You consume a magic mushroom and restore some mana."2717                    settimer magicMushroomTimer 0    2718                elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2719                    settimer magicMushroomTimer 300002720                endif2721            endif2722            if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2723                hotkey '> Interrupt'2724                break2725            else2726                if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2727                            dclick jrook2728                            wft 5002729                            target myKillTarget2730                            settimer meditiationTimer 80002731                            settimer HerdTimer 02732                            cooldown Herding cdHerdingTimer2733                        endif2734                cast 'Chain Lightning'2735                wait 502736            endif 2737        endwhile2738        if targetexists2739            target myKillTarget2740            wait 5002741            if insysmsg "Target cannot be seen." 2742                @setvar! lastCannotBeSeen myKillTarget2743                overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342744                replay2745            endif2746            settimer chainLightningTimer 02747            cooldown ChainLightning cdChainLightning2748        endif2749    elseif castEbolt = 1 and mana >= 32 and mana >= manaReserve2750        while not targetexists harmful and mana > 30 and mana >= manaReserve2751            if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2752                overhead "Eating shrooms" 662753                dclick mushy2754                @setvar! jase_shrooms mushy2755                wait 2002756                if insysmsg "You consume a magic mushroom and restore some mana."2757                    settimer magicMushroomTimer 0    2758                elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2759                    settimer magicMushroomTimer 300002760                endif2761            endif2762            if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2763                hotkey '> Interrupt'2764                break2765            else2766                if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2767                            dclick jrook2768                            wft 5002769                            target myKillTarget2770                            settimer meditiationTimer 80002771                            settimer HerdTimer 02772                            cooldown Herding cdHerdingTimer2773                        endif2774                cast 'Energy Bolt'2775                wait 502776            endif 2777        endwhile2778        if targetexists harmful2779            target myKillTarget2780            wait 5002781            if insysmsg "Target cannot be seen." 2782                @setvar! lastCannotBeSeen myKillTarget2783                overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342784                replay2785            endif2786        endif2787    2788        if castMindBlast = 1 and mana >= 32 and mana >= manaReserve2789            while not targetexists harmful and mana > 302790                if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2791                    overhead "Eating shrooms" 662792                    dclick mushy2793                    @setvar! jase_shrooms mushy2794                    wait 2002795                    if insysmsg "You consume a magic mushroom and restore some mana."2796                        settimer magicMushroomTimer 0    2797                    elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2798                        settimer magicMushroomTimer 300002799                    endif2800                endif2801                if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2802                    hotkey '> Interrupt'2803                    break2804                else2805                    if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2806                        dclick jrook2807                        wft 5002808                        target myKillTarget2809                        settimer meditiationTimer 80002810                        settimer HerdTimer 02811                        cooldown Herding cdHerdingTimer2812                    endif2813                    cast 'Mind Blast'2814                    wait 502815                endif 2816            endwhile2817            if targetexists harmful2818                target myKillTarget2819                wait 5002820                if insysmsg "Target cannot be seen." 2821                    @setvar! lastCannotBeSeen myKillTarget2822                    overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342823                    replay2824                endif2825            endif2826        endif2827        if castFlamestrike = 1 and mana > 42 and mana >= manaReserve2828            while not targetexists harmful and mana > 402829            2830                if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2831                    overhead "Eating shrooms" 662832                    dclick mushy2833                    @setvar! jase_shrooms mushy2834                    wait 2002835                    if insysmsg "You consume a magic mushroom and restore some mana."2836                        settimer magicMushroomTimer 02837                    elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2838                        settimer magicMushroomTimer 30000    2839                    endif2840                endif2841        2842                if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2843                    hotkey '> Interrupt'2844                    break2845                else2846                    if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2847                        dclick jrook2848                        wft 5002849                        target myKillTarget2850                        settimer meditiationTimer 80002851                        settimer HerdTimer 02852                        cooldown Herding cdHerdingTimer2853                    endif2854                    cast 'Flamestrike'2855                    wait 502856                endif 2857            endwhile2858            if targetexists harmful2859                target myKillTarget2860                wait 5002861                if insysmsg "Target cannot be seen." 2862                    @setvar! lastCannotBeSeen myKillTarget2863                    overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342864                    replay2865                endif2866            endif2867        endif2868    elseif castMindBlast = 1 and mana >= 32 and mana >= manaReserve2869        while not targetexists harmful and mana > 302870            if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2871                overhead "Eating shrooms" 662872                dclick mushy2873                @setvar! jase_shrooms mushy2874                wait 2002875                if insysmsg "You consume a magic mushroom and restore some mana."2876                    settimer magicMushroomTimer 0    2877                elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2878                    settimer magicMushroomTimer 300002879                endif2880            endif2881            if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2882                hotkey '> Interrupt'2883                break2884            else2885                if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2886                    dclick jrook2887                    wft 5002888                    target myKillTarget2889                    settimer meditiationTimer 80002890                    settimer HerdTimer 02891                    cooldown Herding cdHerdingTimer2892                endif2893                cast 'Mind Blast'2894                wait 502895            endif 2896        endwhile2897        if targetexists harmful2898            target myKillTarget2899            wait 5002900            if insysmsg "Target cannot be seen." 2901                @setvar! lastCannotBeSeen myKillTarget2902                overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342903                replay2904            endif2905        endif2906        if castFlamestrike = 1 and mana > 42 and mana >= manaReserve2907            while not targetexists harmful and mana > 402908            2909                if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2910                    overhead "Eating shrooms" 662911                    dclick mushy2912                    @setvar! jase_shrooms mushy2913                    wait 2002914                    if insysmsg "You consume a magic mushroom and restore some mana."2915                        settimer magicMushroomTimer 0    2916                    elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2917                        settimer magicMushroomTimer 300002918                    endif2919                endif2920        2921                if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2922                    hotkey '> Interrupt'2923                    break2924                else2925                    if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2926                        dclick jrook2927                        wft 5002928                        target myKillTarget2929                        settimer meditiationTimer 80002930                        settimer HerdTimer 02931                        cooldown Herding cdHerdingTimer2932                    endif2933                    cast 'Flamestrike'2934                    wait 502935                endif 2936            endwhile2937            if targetexists harmful2938                target myKillTarget2939                wait 5002940                if insysmsg "Target cannot be seen." 2941                    @setvar! lastCannotBeSeen myKillTarget2942                    overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342943                    replay2944                endif2945            endif2946        endif2947    elseif castFlamestrike = 1 and mana > 42 and mana >= manaReserve2948        while not targetexists harmful and mana > 402949        2950            if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2951                overhead "Eating shrooms" 662952                dclick mushy2953                @setvar! jase_shrooms mushy2954                wait 2002955                if insysmsg "You consume a magic mushroom and restore some mana."2956                    settimer magicMushroomTimer 0    2957                elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2958                    settimer magicMushroomTimer 300002959                endif2960            endif2961    2962            if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2963                hotkey '> Interrupt'2964                break2965            else2966                 if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2967                        dclick jrook2968                        wft 5002969                        target myKillTarget2970                        settimer meditiationTimer 80002971                        settimer HerdTimer 02972                        cooldown Herding cdHerdingTimer2973                    endif2974                cast 'Flamestrike'2975                wait 502976            endif 2977        endwhile2978        if targetexists harmful2979            target myKillTarget2980            wait 5002981            if insysmsg "Target cannot be seen." 2982                @setvar! lastCannotBeSeen myKillTarget2983                overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342984                replay2985            endif2986        endif2987    elseif not findbuff "actively meditating" and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2988        overhead "Eating shrooms" 662989        dclick mushy2990        @setvar! jase_shrooms mushy2991        wait 2002992        if insysmsg "You consume a magic mushroom and restore some mana."2993            settimer magicMushroomTimer 0    2994        elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2995            settimer magicMushroomTimer 300002996        endif2997        elseif not findbuff "actively meditating" and timer meditiationTimer >= cdMeditation and isDiscorded = 1 and isPeaced = 12998        if followers > 02999            say "all guard me"3000        endif3001        useskill 'meditation'3002        settimer meditiationTimer 03003        wait 5003004    endif3005    wait 503006endwhile3007wait 5003008if targetexists 3009    hotkey 'Cancel Current Target'3010endif3011if not findbuff "actively meditating" 3012    if automaticallySkinCorpses = 1 and findtype "corpse" ground -1 -1 2 as jorpse3013        if findtype "Elven Spellblade" backpack3014            while not targetexists neutral3015                useskill 'forensicevaluation'3016            endwhile3017            if targetexists neutral3018                hotkey "Target Self"3019                wait minimumWaitForPing3020                @ignore jorpse3021            endif3022        endif3023    endif3024    if followers > 03025        say "all guard me"3026    endif3027endif3028while mana < minimumManaToCast3029    if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 03030        hotkey 'Target Closest Non-Friendly Monster'3031        wait 2003032        if insysmsg "No one matching that was found"3033            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam3034                overhead "no next target" 343035                settimer preventOverheadSpamTimer 03036            endif3037        elseif not find lasttarget ground -1 -1 83038            overhead "� NEXT TARGET HERE �" 88 lasttarget3039            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam3040                overhead "Move closer, more then 8 tiles away" 343041                settimer preventOverheadSpamTimer 03042            endif3043        else3044            overhead "� NEXT TARGET HERE �" 88 lasttarget3045            attack lasttarget3046        endif    3047    endif3048    if diffhits >= hpCheckToTriggerGreaterHealSpell3049        if diffhits >= hpCheckToTriggerHealPotion and findtype "Yellow Potion" backpack as pot 3050            getlabel pot desc3051            if "next usable" in desc3052                // do nothing3053            else3054                dclick pot3055                wait 6503056            endif3057        endif3058        if diffhits >= hpCheckToTriggerGreaterHealSpell and mana >= 123059            while not targetexists beneficial3060                if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell3061                    cast 'Heal'3062                else3063                    cast 'Greater Heal'                3064                endif3065                wait 503066                if hp = maxhp3067                    hotkey '> Interrupt'3068                    break3069                endif3070            endwhile3071            if targetexists beneficial3072                hotkey "Target Self"3073                wait 503074            endif3075        endif3076    endif3077    if not findbuff "actively meditating" 3078        useskill 'meditation'3079    endif3080    wait 5003081endwhile3082if canYouMakeAMushroom = 1 and counttype "mushroom" backpack < butOnlyIHaveLessThenThisCount3083    if mana >= manaReserve3084        while counttype "mushroom" backpack < makeThisManyMushroomsCount3085            cast "Create Food"3086            wait 2003087            if diffhits >= 20 or counttype "mushroom" backpack = 03088                break3089            endif3090        endwhile3091    endif3092endif3093if castVampiricEmbrace = 1 and timer vampiricEmbraceTimer >= cdVampiricEmbrace and skill "Necromancy" >= 70 and findtype 8198 ground -1 -1 4 as jorpse3094    say "[VampiricEmbrace"3095    wft 5003096    target jorpse3097    settimer vampiricEmbraceTimer 03098    cooldown VampiricEmbrace cdVampiricEmbrace3099endif3100if castSummonEarthElementalCount = 1 or castSummonFireElementalCount = 1 or castSummonDemonCount = 1 or castSummonAirCount = 1 or castSummonWaterCount = 13101    useskill "spiritspeak"3102    settimer meditiationTimer 80003103endif3104if timer killTargetTimer >= cdKillTarget3105    overhead "We cleared curse and mana drain targets" 343106    removelist myCursedTargets      3107    removelist myManaDrainTargets3108    removelist myManaVampireTargets3109endif3110   3111if autoBotEnabled = 13112    replay3113endif3114