Skip to content
Outlands Hub

Razor script

Ultimate Magery Summoner Nox Necro Discord Tamer Autobot Hotkey (1)

by Jaseowns · 3247 lines
Download

One hotkey mage cycle, nox, poison by Jaseowns UO Outlands - https://outlands.uorazorscripts.com/mage-bot 05/22/2026 - update default findtype to use next target instead of older logic 04/12/2024 - update followers to use…

TamingCombatBardMagicMageryMeditationDiscordancePeacemakingTracking
Ultimate Magery Summoner Nox Necro Discord Tamer Autobot Hotkey 1.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/25b38218-28e5-43d1-b9e1-01de484da5ce for latest2# Automation by Jaseowns3## Script: Ultimate Magery Summoner Nox Necro Discord Tamer Autobot Hotkey (1)4## Created by: Jaseowns#66945#############################################6 7# One hotkey mage cycle, nox, poison by Jaseowns8# UO Outlands - https://outlands.uorazorscripts.com/mage-bot9#10# Version: v12.2.011# 05/22/202612#  - update default findtype  to use next target instead of older logic13# 04/12/202414#  - update followers to use breakSpellCastAndResummonIfLessThanXFollowers15# 06/14/202416#  - allow no pets17# 01/19/202418#  - new target / all kill no skill19#20##################21## Always room for improvment, thanks for watching!22############23 24 25# continue to fight the same target even after summons26# target not seen - (warmode maybe?)27@setvar! minimumWaitForPing 20028 29# make sure you add a friends list called: IgnoreMobs30@setvar! didYouSetupIgnoreMobs 031 32###33# Vet Kit Usage - 5000 or lower means always (increase to use less kits)34##35@setvar! vetKitTimerCD 500036 37 38// 0 you choose (all kill)39// 1 will target nearest40// 2 will be find type41// 3 will be target next (newest one 8/14/2023)42@setvar! useTargetSystem 343 44# Do you want to use the new FindType code? Use 1 here45# Do you want to use the Target Nearest / Next? Use 2 here46# Else it will use the Target Closest Mon functionality 47@setvar! useFindTypeToTargetMonster 148 49# after a kill you must have this amount of mana to continue to next target50@setvar! minimumManaToCast 40 51 52# Set this to one, if you want to cast poison once no matter what53# If you have 100 poisoning and want Lethal, set this to 054@setvar! castPoisonAnyway 055 56# This will auto replay this script if you want it too57@setvar! autoBotEnabled 158 59 60# Update this variable to 1 for ALL KILL61# Update this variable to 0 for target nearest62@setvar! setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster 063 64################################65###### Random abilities66################67@setvar! automaticallySkinCorpses 168@setvar! manaReserve 5069@setvar! cdRetryBasedOnTargetNotSeen 200070 71# Ultimate Summoner Hotkey Choose your summons by Jaseowns72# UO Outlands73# This is part of the mage bot, but you can have it74# as its own hotkey75 76###############77###  Choose your summons78######79@setvar! breakSpellCastAndResummonIfLessThanXFollowers 480@setvar! renamePets 181 82# Earth: 0, 1, 283@setvar! castSummonEarthElementalCount 084@setvar! castSummonMummyCount 185 86# Fire: 0, 1, 287@setvar! castSummonFireElementalCount 088@setvar! castSummonLichCount 089 90# Demon: 0, 1, 291@setvar! castSummonDemonCount 092@setvar! castSummonThrallCount 193 94# Air: 0, 1, 295@setvar! castSummonAirCount 096@setvar! castSummonFiendCount 097 98# Water: 0, 1, 299@setvar! castSummonWaterCount 0100@setvar! castSummonRagWitchCount 0101 102# Creature: 0, 1, 2, 3, 4, 5103@setvar! castSummonCreatureCount 1104 105# Energy Vortex: 0, 1106@setvar! castEnergyVortexCount 0107@setvar! castJackalSpiritCount 0108 109# Blade Spirit: 0, 1110@setvar! castBladeSpiritCount 0111@setvar! castSkeletalHuskCount 0112 113if skill "Arcane" >= 80114    @setvar! breakSpellCastAndResummonIfLessThanXFollowers 0115    # Earth: 0, 1, 2116    @setvar! castSummonEarthElementalCount 0117    @setvar! castSummonMummyCount 0118 119    # Fire: 0, 1, 2120    @setvar! castSummonFireElementalCount 0121    @setvar! castSummonLichCount 0122 123    # Demon: 0, 1, 2124    @setvar! castSummonDemonCount 0125    @setvar! castSummonThrallCount 0126 127    # Air: 0, 1, 2128    @setvar! castSummonAirCount 0129    @setvar! castSummonFiendCount 0130 131    # Water: 0, 1, 2132    @setvar! castSummonWaterCount 0133    @setvar! castSummonRagWitchCount 0134 135    # Creature: 0, 1, 2, 3, 4, 5136    @setvar! castSummonCreatureCount 0137 138    # Energy Vortex: 0, 1139    @setvar! castEnergyVortexCount 0140    @setvar! castJackalSpiritCount 0141 142    # Blade Spirit: 0, 1143    @setvar! castBladeSpiritCount 0144    @setvar! castSkeletalHuskCount 0145endif146 147###############148###  Choose your spells149######150@setvar! castCurse 0151@setvar! castManadrain 0152@setvar! castManaVampire 0153@setvar! castLightning 1154@setvar! castChainLightning 0155@setvar! castFireball 0156@setvar! castHarm 1157@setvar! castMagicArrow 1158# When other spells are on cooldown, do you want to cast Ebolt, MindBlast, Flamestrike or all three159@setvar! castEbolt 1160@setvar! castMindBlast 1161@setvar! castFlamestrike 0162 163 164################################165###### Heal Controllers166################167@setvar! hpCheckToTriggerGreaterHealSpell 30168@setvar! hpCheckToTriggerMiniEmergencyHealSpell 60169@setvar! hpCheckToTriggerHealPotion 45170        171################################172###### Potion Controllers173################174@setvar! automaticallyDrinkStrPotIfOverWeight 1175# Drink Magic resist potion (only if magic shield buff not found)176@setvar! automaticallyDrinkMagicPot 1177@setvar! automaticallyDrinkHealPot 1178@setvar! automaticallyDrinkCurePot 1179#@setvar! automaticallyDrinkRefreshPot 1180 181@setvar! hpCheckToTriggerCurePotion 45182#@setvar! stamDiffCheckToTriggerRedPotion 10183 184 185### Buffs186@setvar! castBless 0187@setvar! castArchProtection 0188@setvar! castMagicShield 1189@setvar! castReactiveArmor 1190 191if skill "Inscription" >= 50192    @setvar! castBless 1193    @setvar! castArchProtection 1194endif195 196 197###############198###  Choose your necro spells (ignored if less then required necro skill)199######200@setvar! castEvilOmen 1201@setvar! castCorpseSkin 1202@setvar! castVampiricEmbrace 0203@setvar! castMindRot 1204@setvar! castPoisonStrike 1205@setvar! castBloodOath 1206@setvar! castPainSpike 1207@setvar! requireWitherBeforeSummons 0208 209###############210### Edit these cooldowns to match your wizard grimoire211######212@setvar! canYouMakeAMushroom 1213@setvar! cdLightning 20000214@setvar! cdChainLightning 60000215@setvar! cdMagicArrow 20000216@setvar! cdHarm 20000217@setvar! cdFireball 60000218 219@setvar! cdAutoHealTamerPet 15000220 221###############222### Necro Cooldowns223######224@setvar! cdEvilOmen 30500225@setvar! cdVampiricEmbrace 30500226@setvar! cdCorpseSkin 30500227@setvar! cdMindRot 30500228@setvar! cdWither 30500229@setvar! cdVengefulSpirit 30500230@setvar! cdBloodOath 30500231@setvar! cdPainSpike 30500232@setvar! cdPoisonStrike 30500233 234#### Buff Cooldowns235@setvar! cdMushroom 61000236@setvar! cdMagicShield 61000237@setvar! cdReactiveArmor 61000238@setvar! cdMeditation 10000239@setvar! cdMeditationMini 3000240@setvar! cdKillTarget 60000241 242#### Random cooldowns243@setvar! cdPreventOverheadSpam 2000244@setvar! cdSkinningCheck 3000245@setvar! cdCleansingBrew 125000246 247#### Mushroom count (I like a lot of shroomies)248@setvar! makeThisManyMushroomsCount 15249@setvar! butOnlyIHaveLessThenThisCount 5250 251#### This will send in pet for out of range targets252@setvar! patrolPetEvenIfLastTargetIsBeyondEightTiles 1253 254if counttype "gold coin" backpack as total255    if diffweight < 10 and 10000 < total256        overhead "Warning: {{total}} gold and no weight!" 34257    endif258endif259    260#### Pet Names, unique to you261if not listexists petNameList262    createlist petNameList263endif264if list petNameList = 0265    pushlist petNameList "jaseneccy"266    pushlist petNameList "jaseyoutube"267    pushlist petNameList "jaseytfollow"268    pushlist petNameList "jaseytfollower"269    pushlist petNameList "jasesubscribed"270    pushlist petNameList "jaseoutlands"271    pushlist petNameList "jaseuorazorscripts"272    pushlist petNameList "jaseyoutuber"273    pushlist petNameList "jasefunez"274    pushlist petNameList "jasetwitch"275    pushlist petNameList "jasesubscribe"276    pushlist petNameList "jasefueoz"277endif278 279@setvar! jaseDebugMode 0280 281 282 283 284 285##################################################################286# 287#   Hopefully you do not have to edit after this :)288#289##################################################################290 291if not varexist JaseOwns292    overhead "v11.2.0" 34293    overhead "uorazorscripts.com/mage-bot" 34294    say "This script was brought to you by youtube.com/Jaseowns" 88295    wait 500296    @setvar! JaseOwns 1297endif298 299#### Herding300if not varexist myAwesomeCrookThatIsActivated301    @setvar! myAwesomeCrookThatIsActivated 0302endif303 304if not find myAwesomeCrookThatIsActivated self305    if skill "Herding" > 0 and findtype 3713 self as firstJrook306        @setvar! isHerdingActive 0307        while isHerdingActive = 0308            if counttype 3713 self > 1309                @clearignore 310                while findtype 3713 self as jrook311                    getlabel jrook multiDesc312                    if 'activated' in multiDesc313                        @setvar! isHerdingActive jrook314                        break315                    endif316                    @ignore jrook317                endwhile318                @clearignore 319                if isHerdingActive = 0320                    dclick firstJrook321                endif322            endif323            324            if isHerdingActive = 0325                getlabel firstJrook desc326                if 'activated' in desc327                    @setvar! isHerdingActive firstJrook328                else329                    dclick firstJrook330                    getlabel firstJrook desc331                    @setvar! isHerdingActive firstJrook332                endif 333            endif334        endwhile335        @setvar! myAwesomeCrookThatIsActivated isHerdingActive336    endif337endif338 339if didYouSetupIgnoreMobs = 0 and useFindTypeToTargetMonster = 0340    overhead "For this script to work, make sure you add a friends list called: IgnoreMobs" 34341    sysmsg  "For this script to work, make sure you add a friends list called: IgnoreMobs" 34342    wait 1500343    overhead "Click Friends Tab -> [checkmark] enabled -> [checkmark] Next/Prev Target ignores 'IgnoreMobs'" 88344    sysmsg "Click Friends Tab -> [checkmark] enabled -> [checkmark] Next/Prev Target ignores 'IgnoreMobs'" 88345    wait 5000346    overhead "If everything is setup, update didYouSetupIgnoreMobs to 1"347    sysmsg "If everything is setup, update didYouSetupIgnoreMobs to 1"348    wait 5000349    replay350endif351 352if dead 353    overhead "Rip" 34354    for 10355        if gumpexists 2957810225356            gumpresponse 1 2957810225357            break358        endif        359        wait 500360    endfor361    replay362endif363 364@setvar! tamerModeEngaged 0365 366if not timerexists vetKitTimer367    settimer vetKitTimer vetKitTimerCD368endif369 370if skill "Veterinary" >= 50 and timer vetKitTimer >= vetKitTimerCD371    if not bandaging and findtype 25750 backpack as item372        dclick item373        wait 200374    endif375    settimer vetKitTimer 0376endif377 378if skill "Animal Taming" > 50379    @setvar! tamerModeEngaged 1380    if not varexist jaseTankPet or not find jaseTankPet ground -1 -1 12381        overhead "Select your tank pet" 88382        @setvar! jaseTankPet    383    endif384    385    if jaseTankPet != 0 and find jaseTankPet ground -1 -1 2 and dead jaseTankPet and mana >= 50386        if targetexists 387            hotkey "Cancel Current Target"388        endif389        while not targetexists beneficial390            hotkey 'Resurrection'391            wft 200392            if diffhits >= hpCheckToTriggerGreaterHealSpell393                break394            endif395        endwhile396        if targetexists beneficial397            target jaseTankPet398        endif399        while not targetexists beneficial and mana >= 12400            hotkey 'Greater Heal'401            wft 200402            if diffhits >= hpCheckToTriggerGreaterHealSpell403                break404            endif405        endwhile406        if targetexists beneficial407            target jaseTankPet408            settimer autoHealTamerPet 0409            cooldown AutoPetHeal cdAutoHealTamerPet410        endif411    endif412 413    414    415endif416 417if weight >= maxweight and not findbuff "strength" and automaticallyDrinkStrPotIfOverWeight = 1 and findtype "white potion" backpack as pot418    dclick pot419    wait 200420endif421 422if not gumpexists 622436516 and skill "Necromancy" >= 50423    say '[NecromancyHotbar'424    wait 500425endif426 427if skill "Tracking" > 0428    if not findbuff "tracking"429        clearsysmsg430        while not gumpexists 4267467659431            useskill 'tracking'432            wait minimumWaitForPing433        endwhile434        if gumpexists 4267467659435            while not insysmsg "You will now hunt all hostile players."436                gumpresponse 8 4267467659437                waitforgump 4267467659 5000438            endwhile439            gumpresponse 6 4267467659440            wait minimumWaitForPing441        endif442        gumpclose 4267467659443    endif444endif445 446if not timerexists skinningCheckTimer447    settimer skinningCheckTimer cdSkinningCheck448endif449 450if not timerexists retryBasedOnTargetNotSeenTimer451    settimer retryBasedOnTargetNotSeenTimer cdRetryBasedOnTargetNotSeen452endif453 454 455if automaticallySkinCorpses = 1 and findtype "corpse" ground -1 -1 2 as jorpse456    if findtype "Elven Spellblade" backpack and timer skinningCheckTimer >= cdSkinningCheck 457        while not targetexists 458            useskill 'forensicevaluation'459        endwhile460        if targetexists beneficial or targetexists neutral461            hotkey "Target Self"462            wait minimumWaitForPing463            settimer skinningCheckTimer 0464            @ignore jorpse465        endif466    endif467endif468 469if skill "Arcane" >= 80470    // do nothing471else472    // Make sure we have a spell book attached473    if findlayer self righthand as item474        // do nothing475    elseif findtype "3834" backpack as item476        getlabel item spellBookDesc477        if "blessed" in spellBookDesc478            @ignore item479        else480            dclick item    481        endif482    else 483        overhead "No book bro!" 34484    endif485endif486 487// Setting current necro symbols - checks again it the attack loop488@setvar! necroSymbols 12489if gumpexists 622436516 and skill "Necromancy" >= 50490    if ingump "12/" 622436516491        @setvar! necroSymbols 12492    elseif ingump "13/" 622436516493        @setvar! necroSymbols 13494    elseif ingump "14/" 622436516495        @setvar! necroSymbols 14496    elseif ingump "15/" 622436516497        @setvar! necroSymbols 15498    elseif ingump "16/" 622436516499        @setvar! necroSymbols 16500    elseif ingump "17/" 622436516501        @setvar! necroSymbols 17502    elseif ingump "18/" 622436516503        @setvar! necroSymbols 18504    elseif ingump "19/" 622436516505        @setvar! necroSymbols 19506    elseif ingump "20/" 622436516507        @setvar! necroSymbols 20508    elseif ingump "21/" 622436516509        @setvar! necroSymbols 21510    elseif ingump "11/" 622436516511        @setvar! necroSymbols 11512    elseif ingump "10/" 622436516513        @setvar! necroSymbols 10514    elseif ingump "9/" 622436516515        @setvar! necroSymbols 9516    elseif ingump "8/" 622436516517        @setvar! necroSymbols 8518    elseif ingump "7/" 622436516519        @setvar! necroSymbols 7520    elseif ingump "6/" 622436516521        @setvar! necroSymbols 6522    elseif ingump "5/" 622436516523        @setvar! necroSymbols 5524    elseif ingump "4/" 622436516525        @setvar! necroSymbols 4526    elseif ingump "3/" 622436516527        @setvar! necroSymbols 3528    elseif ingump "2/" 622436516529        @setvar! necroSymbols 2530    elseif ingump "1/" 622436516531        @setvar! necroSymbols 1532    elseif ingump "0/" 622436516533        @setvar! necroSymbols 0534    endif535endif536 537if not timerexists reactiveArmorTimer538    createtimer reactiveArmorTimer539    settimer reactiveArmorTimer cdMagicShield540endif541 542if not timerexists cleansingBrewTimer543    settimer cleansingBrewTimer cdCleansingBrew544endif545 546if not timerexists magicShieldTimer547    createtimer magicShieldTimer548    settimer magicShieldTimer cdMagicShield549endif550 551if not timerexists magicMushroomTimer552    createtimer magicMushroomTimer553    settimer magicMushroomTimer cdMushroom554endif555 556if not timerexists magicArrowTimer557    createtimer magicArrowTimer558    settimer magicArrowTimer cdMagicArrow559endif560 561if not timerexists lightningTimer562    createtimer lightningTimer563    settimer lightningTimer cdLightning564endif565 566if not timerexists chainLightningTimer567    settimer chainLightningTimer cdChainLightning568endif569 570if not timerexists harmTimer571    createtimer harmTimer572    settimer harmTimer cdHarm573endif574 575if not timerexists autoHealTamerPet576    createtimer autoHealTamerPet577    settimer autoHealTamerPet cdAutoHealTamerPet578endif579 580if not timerexists fireballTimer581    createtimer fireballTimer582    settimer fireballTimer cdFireball583endif584 585if not timerexists evilOmenTimer586    createtimer evilOmenTimer587    settimer evilOmenTimer cdEvilOmen588endif589 590if not timerexists vampiricEmbraceTimer591    createtimer vampiricEmbraceTimer592    settimer vampiricEmbraceTimer cdVampiricEmbrace593endif594 595if not timerexists corpseSkinTimer596    createtimer corpseSkinTimer597    settimer corpseSkinTimer cdCorpseSkin598endif599 600if not timerexists mindRotTimer601    createtimer mindRotTimer602    settimer mindRotTimer cdMindRot603endif604 605if not timerexists jaseowns_SkillTimerCheck606    createtimer jaseowns_SkillTimerCheck607    settimer jaseowns_SkillTimerCheck cdMeditation608endif609 610if not timerexists killTargetTimer611    createtimer killTargetTimer612    settimer killTargetTimer cdKillTarget613endif614 615if not timerexists witherTimer616    createtimer witherTimer617    settimer witherTimer cdWither618endif619 620if not timerexists vengefulSpiritTimer621    createtimer vengefulSpiritTimer622    settimer vengefulSpiritTimer cdVengefulSpirit623endif624 625if not timerexists bloodOathTimer626    createtimer bloodOathTimer627    settimer bloodOathTimer cdBloodOath628endif629 630if not timerexists painSpikeTimer631    createtimer painSpikeTimer632    settimer painSpikeTimer cdPainSpike633endif634 635if not timerexists poisonStrikeTimer636    createtimer poisonStrikeTimer637    settimer poisonStrikeTimer cdPoisonStrike638endif639 640if not timerexists preventOverheadSpamTimer641    createtimer preventOverheadSpamTimer642    settimer preventOverheadSpamTimer cdPreventOverheadSpam643endif644 645@setvar! cdPreventSpamNecroAbilities 750646if not timerexists preventSpamNecroAbilitiesTimer647    createtimer preventSpamNecroAbilitiesTimer648    settimer preventSpamNecroAbilitiesTimer cdPreventSpamNecroAbilities649endif650 651if not varexist myEarthPet652    @setvar! myEarthPet 0653endif654 655// make sure we have enough symbols to summon (6 for wither + vengful spirit)656if skill "Necromancy" >= 90 and requireWitherBeforeSummons = 1657    while followers < breakSpellCastAndResummonIfLessThanXFollowers and 6 > necroSymbols658        // we already have vengeful spirit active, skip the check659        if timer vengefulSpiritTimer < cdVengefulSpirit660           break661        endif662        if diffhits >= hpCheckToTriggerGreaterHealSpell663            if targetexists 664                hotkey 'Cancel Current Target'665            endif666            while not targetexists 'beneficial'667                if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell668                    cast 'Heal'669                else670                    cast 'Greater Heal'                671                endif672                wait 50673                if hp = maxhp674                    hotkey '> Interrupt'675                    break676                endif677            endwhile678            if targetexists 'beneficial'679                hotkey 'Target Self'680            endif681        endif682        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam683            overhead "waiting for symbols" 88684            settimer preventOverheadSpamTimer 0685        endif686        if gumpexists 622436516 and skill "Necromancy" >= 50687            if ingump "12/" 622436516688                @setvar! necroSymbols 12689            elseif ingump "13/" 622436516690                @setvar! necroSymbols 13691            elseif ingump "14/" 622436516692                @setvar! necroSymbols 14693            elseif ingump "15/" 622436516694                @setvar! necroSymbols 15695            elseif ingump "16/" 622436516696                @setvar! necroSymbols 16697            elseif ingump "17/" 622436516698                @setvar! necroSymbols 17699            elseif ingump "18/" 622436516700                @setvar! necroSymbols 18701            elseif ingump "19/" 622436516702                @setvar! necroSymbols 19703            elseif ingump "20/" 622436516704                @setvar! necroSymbols 20705            elseif ingump "21/" 622436516706                @setvar! necroSymbols 21707            elseif ingump "11/" 622436516708                @setvar! necroSymbols 11709            elseif ingump "10/" 622436516710                @setvar! necroSymbols 10711            elseif ingump "9/" 622436516712                @setvar! necroSymbols 9713            elseif ingump "8/" 622436516714                @setvar! necroSymbols 8715            elseif ingump "7/" 622436516716                @setvar! necroSymbols 7717            elseif ingump "6/" 622436516718                @setvar! necroSymbols 6719            elseif ingump "5/" 622436516720                @setvar! necroSymbols 5721            elseif ingump "4/" 622436516722                @setvar! necroSymbols 4723            elseif ingump "3/" 622436516724                @setvar! necroSymbols 3725            elseif ingump "2/" 622436516726                @setvar! necroSymbols 2727            elseif ingump "1/" 622436516728                @setvar! necroSymbols 1729            elseif ingump "0/" 622436516730                @setvar! necroSymbols 0731            endif732        endif733    endwhile734endif735 736 737if diffhits >= hpCheckToTriggerGreaterHealSpell738    if targetexists 739        hotkey 'Cancel Current Target'740    endif741    while not targetexists 'beneficial'742        if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell743            cast 'Heal'744        else745            cast 'Greater Heal'                746        endif747        wait 50748        if hp = maxhp749            hotkey '> Interrupt'750            break751        endif752    endwhile753    if targetexists 'beneficial'754        hotkey "Target Self"755    endif756    replay757endif758 759if renamePets = 0760    clearlist petNameList761endif762 763if castSummonFireElementalCount > 0 and castSummonLichCount > 0764    overhead "I am not going to do that. Update lich/fire to one or the other." 34765    sysmsg "I am not going to do that. Update lich/fire to one or the other." 34766    wait 2000767    replay768elseif castSummonEarthElementalCount > 0 and castSummonMummyCount > 0769    overhead "I am not going to do that. Update earth/mummy to one or the other." 34770    sysmsg "I am not going to do that. Update earth/mummy to one or the other." 34771    wait 2000772    replay773elseif castSummonDemonCount > 0 and castSummonThrallCount > 0774    overhead "I am not going to do that. Update demon/thrall to one or the other." 34775    sysmsg "I am not going to do that. Update demon/thrall to one or the other." 34776    wait 2000777    replay778elseif castSummonAirCount > 0 and castSummonFiendCount > 0779    overhead "I am not going to do that. Update air/fiend to one or the other." 34780    sysmsg "I am not going to do that. Update air/fiend to one or the other." 34781    wait 2000782    replay783elseif castSummonWaterCount > 0 and castSummonRagWitchCount > 0784    overhead "I am not going to do that. Update water/witch to one or the other." 34785    sysmsg "I am not going to do that. Update water/witch to one or the other." 34786    wait 2000787    replay788endif789 790if not gumpexists 622436516 and skill "Necromancy" >= 50791    say '[NecromancyHotbar'792    wait 500793endif794 795if not varexist myMainTankPet796    @setvar! myMainTankPet 0797endif798 799if not varexist fireOne800    @setvar! fireOne 0801endif802 803if not varexist fireTwo804    @setvar! fireTwo 0805endif806 807if not varexist earthOne808    @setvar! earthOne 0809endif810 811if not varexist earthTwo812    @setvar! earthTwo 0813endif814 815if not varexist demonOne816    @setvar! demonOne 0817endif818 819if not varexist demonTwo820    @setvar! demonTwo 0821endif822 823if not varexist airOne824    @setvar! airOne 0825endif826 827if not varexist airTwo828    @setvar! airTwo 0829endif830 831if not varexist waterOne832    @setvar! waterOne 0833endif834 835if not varexist waterTwo836    @setvar! waterTwo 0837endif838 839if not varexist evOne840    @setvar! evOne 0841endif842 843if not varexist bsOne844    @setvar! bsOne 0845endif846 847removelist summonList848createlist summonList849    850if followers = 0851    @setvar! followCount 0852elseif followers = 1853    @setvar! followCount 1854elseif followers = 2855    @setvar! followCount 2856elseif followers = 3857    @setvar! followCount 3858elseif followers = 4859    @setvar! followCount 4860elseif followers = 5861    @setvar! followCount 5862endif863 864if castSummonEarthElementalCount > 0 or castSummonMummyCount > 0865    if dead earthOne or not find earthOne ground -1 -1 18866        if followers < breakSpellCastAndResummonIfLessThanXFollowers867            pushlist summonList "Earth Elemental"868            @setvar! earthOne 1869        endif870    endif871    if castSummonEarthElementalCount > 1 or castSummonMummyCount > 1872        if dead earthTwo or not find earthTwo ground -1 -1 18873            if followers < breakSpellCastAndResummonIfLessThanXFollowers874                pushlist summonList "Earth Elemental"875                @setvar! earthTwo 1876            endif877        endif878    endif879endif880 881if castSummonFireElementalCount > 0 or castSummonLichCount > 0882    if dead fireOne or not find fireOne ground -1 -1 18883        if followers < breakSpellCastAndResummonIfLessThanXFollowers884            pushlist summonList "Fire Elemental"885            @setvar! fireOne 1886        endif887    endif888    if castSummonFireElementalCount > 1 or castSummonLichCount > 1889        if dead fireTwo or not find fireTwo ground -1 -1 18890            if followers < breakSpellCastAndResummonIfLessThanXFollowers891                pushlist summonList "Fire Elemental"892                @setvar! fireTwo 1893            endif894        endif895    endif896endif897 898if castSummonDemonCount > 0 or castSummonThrallCount > 0899    if dead demonOne or not find demonOne ground -1 -1 18900        if followers < breakSpellCastAndResummonIfLessThanXFollowers901            pushlist summonList "Summon Daemon"902            @setvar! demonOne 1903        endif904    endif905    if castSummonDemonCount > 1 or castSummonThrallCount > 1906        if dead demonTwo or not find demonTwo ground -1 -1 18907            if followers < breakSpellCastAndResummonIfLessThanXFollowers908                pushlist summonList "Summon Daemon"909                @setvar! demonTwo 1910            endif911        endif912    endif913endif914 915if castSummonAirCount > 0 or castSummonFiendCount > 0916    if dead airOne or not find airOne ground -1 -1 18917        if followers < breakSpellCastAndResummonIfLessThanXFollowers918            pushlist summonList "Air Elemental"919            @setvar! airOne 1920        endif921    endif922    if castSummonAirCount > 1 or castSummonFiendCount > 1923        if dead airTwo or not find airTwo ground -1 -1 18924            if followers < breakSpellCastAndResummonIfLessThanXFollowers925                pushlist summonList "Air Elemental"926                @setvar! airTwo 1927            endif928        endif929    endif930endif931 932if castSummonWaterCount > 0 or castSummonRagWitchCount > 0933    if dead waterOne or not find waterOne ground -1 -1 18934        if followers < breakSpellCastAndResummonIfLessThanXFollowers935            pushlist summonList "Water Elemental"936            @setvar! waterOne 1937        endif938    endif939    if castSummonWaterCount > 1 or castSummonRagWitchCount > 1940        if dead waterTwo or not find waterTwo ground -1 -1 18941            if followers < breakSpellCastAndResummonIfLessThanXFollowers942                pushlist summonList "Water Elemental"943                @setvar! waterTwo 1944            endif945        endif946    endif947endif948 949if castEnergyVortexCount > 0 or castJackalSpiritCount > 0950    if dead evOne or not find evOne ground -1 -1 18951        if followers < 5952            pushlist summonList "Energy Vortex"953            @setvar! evOne 1954        endif955    endif956endif957 958if castBladeSpiritCount > 0 or castSkeletalHuskCount > 0959    if dead bsOne or not find bsOne ground -1 -1 18960        if followers < 5961            pushlist summonList "Blade Spirits"962            @setvar! bsOne 1963        endif964    endif965endif966 967if followers < 5968    if castSummonCreatureCount = 1969        pushlist summonList "Summ. Creature"970    elseif castSummonCreatureCount = 2971        pushlist summonList "Summ. Creature"972        pushlist summonList "Summ. Creature"973    elseif castSummonCreatureCount = 3974        pushlist summonList "Summ. Creature"975        pushlist summonList "Summ. Creature"976        pushlist summonList "Summ. Creature"977    elseif castSummonCreatureCount = 4978        pushlist summonList "Summ. Creature"979        pushlist summonList "Summ. Creature"980        pushlist summonList "Summ. Creature"981        pushlist summonList "Summ. Creature"982    elseif castSummonCreatureCount = 5983        pushlist summonList "Summ. Creature"984        pushlist summonList "Summ. Creature"985        pushlist summonList "Summ. Creature"986        pushlist summonList "Summ. Creature"987        pushlist summonList "Summ. Creature"988    endif989    while targetexists 990        hotkey 'Cancel Current Target'991        wait 200992    endwhile993endif994 995foreach summon in summonList996    if followers < 5997        overhead "Casting Summon: {{summon}}" 88998        while mana < 50999            if timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy1000                overhead "Eating shrooms" 661001                dclick mushy1002                @setvar! jase_shrooms mushy1003                wait 2001004                if insysmsg "You consume a magic mushroom and restore some mana."1005                    settimer magicMushroomTimer 0    1006                elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"1007                    settimer magicMushroomTimer 300001008                endif1009            endif1010            if diffhits >= hpCheckToTriggerGreaterHealSpell1011                replay1012            endif1013            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1014                overhead "waiting for mana" 881015                settimer preventOverheadSpamTimer 01016            endif1017            if not findbuff "Actively Meditating"1018                useskill "meditation"1019            endif1020            wait 2001021        endwhile1022        1023        @setvar! needVengefulSpirit 01024        1025        if summon = "Earth Elemental" and castSummonMummyCount > 01026            @setvar! needVengefulSpirit 11027        elseif summon = "Fire Elemental" and castSummonLichCount > 01028            @setvar! needVengefulSpirit 11029        elseif summon = "Summon Daemon" and castSummonThrallCount > 01030            @setvar! needVengefulSpirit 11031        elseif summon = "Air Elemental" and castSummonFiendCount > 01032            @setvar! needVengefulSpirit 11033        elseif summon = "Water Elemental" and castSummonRagWitchCount > 01034            @setvar! needVengefulSpirit 11035        elseif summon = "Summ. Creature" and skill "Necromancy" >= 501036            @setvar! needVengefulSpirit 11037        elseif summon = "Energy Vortex" and castJackalSpiritCount > 01038            @setvar! needVengefulSpirit 11039        elseif summon = "Blade Spirits" and castSkeletalHuskCount > 01040            @setvar! needVengefulSpirit 11041        elseif timer vengefulSpiritTimer <= cdVengefulSpirit and skill "Necromancy" >= 501042            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1043                overhead  "Waiting for spirit to go away" 881044                settimer preventOverheadSpamTimer 01045            endif1046            replay1047        endif1048        1049        if needVengefulSpirit = 11050            if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 501051                yell "[VengefulSpirit"1052                settimer vengefulSpiritTimer 01053                wait 5001054            endif1055        elseif timer vengefulSpiritTimer <= cdVengefulSpirit and skill "Necromancy" >= 501056            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1057                overhead  "Waiting for spirit to go away" 881058                settimer preventOverheadSpamTimer 01059            endif1060            replay1061        endif1062 1063        if followers = 01064            @setvar! followCount 01065        elseif followers = 11066            @setvar! followCount 11067        elseif followers = 21068            @setvar! followCount 21069        elseif followers = 31070            @setvar! followCount 31071        elseif followers = 41072            @setvar! followCount 41073        elseif followers = 51074            @setvar! followCount 51075        endif1076        1077        if summon = "Summ. Creature" or summon = "Blade Spirits"1078            // these only take 1 - so keep trying to cast1079        elseif followers >= 41080            // if we already at 4, skip to next summon1081            break1082        endif1083        1084        1085        while followers = followCount1086            if followers = 51087                break1088            endif1089            cast summon1090            wft 5001091            if targetexists 1092                hotkey "Target Self"1093                wait 2001094            endif1095            if timer witherTimer >= cdWither and skill "Necromancy" >= 951096                yell "[Wither"1097                settimer witherTimer 01098            endif1099            if diffhits >= hpCheckToTriggerGreaterHealSpell1100                if targetexists 1101                    hotkey "Cancel Current target"1102                endif1103                overhead "Need a heal!"1104                hotkey '> Interrupt'1105                while diffhits >= hpCheckToTriggerGreaterHealSpell and mana > 121106                    while not targetexists beneficial1107                        if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell1108                            cast 'Heal'1109                        else1110                            cast 'Greater Heal'                1111                        endif1112                        wait 501113                    endwhile1114                    while targetexists beneficial1115                        hotkey "Target Self"1116                        wait 501117                    endwhile1118                endwhile1119            endif1120        endwhile1121        wait 2001122        1123        @setvar! myFreshlySummonedPet 01124 1125        // 158 - an ancient mummy1126        // 14 - an earth elemental1127        if summon = "Earth Elemental" and findtype 158|14 ground -1 -1 2 as myPet1128            @setvar! myFreshlySummonedPet myPet1129            if earthOne = 11130                @setvar! earthOne myPet1131            elseif earthTwo = 11132                @setvar! earthTwo myPet1133            endif1134        // 24 - a lich1135        // 15 - a fire elemental1136        elseif summon = "Fire Elemental" and findtype 24|15 ground -1 -1 2 as myPet1137            @setvar! myFreshlySummonedPet myPet1138            if fireOne = 11139                @setvar! fireOne myPet1140            elseif fireTwo = 11141                @setvar! fireTwo myPet1142            endif1143        // 9 - a deamon1144        // 722 - a vampire thrall1145        elseif summon = "Summon Daemon" and findtype 9|722 ground -1 -1 2 as myPet1146            @setvar! myFreshlySummonedPet myPet1147            if demonOne = 11148                @setvar! demonOne myPet1149            elseif demonTwo = 11150                @setvar! demonTwo myPet1151            endif1152        // 16 - water elemental1153        // 740 - a rage witch1154        elseif summon = "Water Elemental" and findtype 16|740 ground -1 -1 2 as myPet1155            @setvar! myFreshlySummonedPet myPet1156            if waterOne = 11157                @setvar! waterOne myPet1158            elseif waterTwo = 11159                @setvar! waterTwo myPet1160            endif1161        // 13 - air elemental1162        // 306 - a skeletal fiend1163        elseif summon = "Air Elemental" and findtype 13|306 ground -1 -1 2 as myPet1164            @setvar! myFreshlySummonedPet myPet1165            if airOne = 11166                @setvar! airOne myPet1167            elseif airTwo = 11168                @setvar! airTwo myPet1169            endif1170        elseif summon = "Summ. Creature"1171            // TODO: gather all summon creature types1172            1173        // 13 - an energy vortex1174        // 391 - a jackal spirit1175        elseif summon = "Energy Vortex" and findtype 13|391 ground -1 -1 2 as myPet1176            @setvar! myFreshlySummonedPet myPet1177            if evOne = 11178                @setvar! evOne myPet1179            endif1180        // 574 - a blade spirit1181        // 309 - a skeletal husk1182        elseif summon = "Blade Spirits" and findtype 574|309 ground -1 -1 2 as myPet1183            @setvar! myFreshlySummonedPet myPet1184            if bsOne = 11185                @setvar! bsOne myPet1186            endif1187        endif1188        1189        if summon = "Summ. Creature"1190           overhead "Creature summoned!" 881191        elseif myFreshlySummonedPet = 01192           overhead "Not found" 881193        else1194            if noto myFreshlySummonedPet = "friend" and list petNameList > 01195                overhead "Renaming..." 771196                foreach petName in petNameList1197                    overhead "Rename to {{petName}}..." 66 myFreshlySummonedPet1198                    rename myFreshlySummonedPet petName1199                    wait 2001200                    if insysmsg "That name is unacceptable."1201                        overhead "Unable to name pet: {{petName}}" 341202                        sysmsg "Unable to name pet: {{petName}}" 341203                    endif1204                    break1205                endfor1206                poplist petNameList "front"1207            endif1208            overhead "New Pet: {{summon}}" 88 myFreshlySummonedPet1209            if summon = "Energy Vortex" or summon = "Blade Spirits"1210                // do nothing1211            else1212                // guard1213                menu myFreshlySummonedPet 31214            endif1215            @ignore myFreshlySummonedPet1216        endif1217        wait 5001218    else1219        break1220    endif1221endfor1222 1223if dead myMainTankPet1224    if not dead earthOne1225        @setvar! myMainTankPet earthOne1226    elseif not dead earthTwo1227        @setvar! myMainTankPet earthTwo1228    elseif not dead waterOne1229        @setvar! myMainTankPet waterOne1230    elseif not dead waterTwo1231        @setvar! myMainTankPet waterTwo1232    elseif not dead demonOne1233        @setvar! myMainTankPet demonOne1234    elseif not dead demonTwo1235        @setvar! myMainTankPet demonTwo1236    elseif not dead fireOne1237        @setvar! myMainTankPet fireOne1238    elseif not dead fireTwo1239        @setvar! myMainTankPet fireTwo1240    elseif not dead airOne1241        @setvar! myMainTankPet airOne1242    elseif not dead airTwo1243        @setvar! myMainTankPet airTwo1244    endif1245endif1246 1247if not varexist lastCannotBeSeen1248    @setvar! lastCannotBeSeen 01249endif1250 1251if lastCannotBeSeen != 0 and dead lastCannotBeSeen1252    @setvar! lastCannotBeSeen 01253    @setvar! lastCannotBeSeenLoopIndex 01254endif1255 1256# Eat food if we got it1257if not findbuff "food" and findtype "tray" backpack as jood1258    dclick jood1259    wait 2001260endif1261 1262if targetexists harmful1263    hotkey "Cancel current target"1264endif1265 1266if useTargetSystem = 01267    if followers > 01268        say "all kill"1269        wait 2001270    else1271        hotkey "Set Last Target"1272        wait 2001273    endif1274    while targetexists 1275        // wait1276        wait 501277    endwhile1278    1279    @setvar myKillTarget lasttarget 1280elseif useTargetSystem = 11281    hotkey 'Target Closest Non-Friendly Monster'1282    wait 2001283    if insysmsg "No one matching that was found"1284        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1285            overhead "found no one" 341286            settimer preventOverheadSpamTimer 01287        endif1288        if autoBotEnabled = 11289            wait 5001290            replay1291        endif1292        stop1293    elseif not find lasttarget ground -1 -1 101294    1295        @setvar checkForSummons lasttarget 1296        getlabel checkForSummons checkForSummonsDesc1297    1298        if "(summoned" in checkForSummonsDesc or "(bonded" in checkForSummonsDesc or "the battle trainer" in checkForSummonsDesc1299            overhead "� Player pet - IGNORE �" 77 lasttarget1300            while not targetexists 1301                hotkey 'Add Target To: IgnoreMobs'1302                wait 2001303            endwhile1304            target myKillTarget 1305            replay1306        endif    1307    1308        overhead "� � OUT OF RANGE � �" 88 lasttarget1309        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1310            overhead "Move closer, more then 8 tiles away" 341311            settimer preventOverheadSpamTimer 01312        endif1313        if autoBotEnabled = 11314            wait 5001315            replay1316        endif1317        stop1318    else1319        1320        @setvar checkForSummons lasttarget 1321        getlabel checkForSummons checkForSummonsDesc1322    1323        if "(summoned" in checkForSummonsDesc or "(bonded" in checkForSummonsDesc or "the battle trainer" in checkForSummonsDesc1324            overhead "� Player pet - IGNORE �" 77 lasttarget1325            while not targetexists 1326                hotkey 'Add Target To: IgnoreMobs'1327                wait 2001328            endwhile1329            target myKillTarget 1330            replay1331        endif    1332        1333        overhead "� �� HERE �� �" 88 lasttarget1334    endif    1335    1336    @setvar myKillTarget lasttarget 1337    1338elseif useTargetSystem = 21339 1340    // do find type     1341    if jaseDebugMode = 11342        overhead "do find type"1343    endif1344    1345    //@setvar! mobDiff 01346    1347    // should we cast spells1348    // should our pets kill it only?1349    // do we need to debuff the mob?1350        // boss - do we want to do manadrain vs mana vampire1351        1352        // targeting 1353        1354    @setvar! myFindTypeMob 01355    1356    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 daklue1357        @setvar! myFindTypeMob daklue1358        getlabel myFindTypeMob helperDesc1359        overhead "� �� HERE �� �" 88 myFindTypeMob    1360 1361        if jaseDebugMode = 11362            overhead "� block 1 {{helperDesc}}" 88   1363            hotkey "Get InfoGump"1364            wft 5001365            target myFindTypeMob1366        endif1367        1368    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 daklue1369        @setvar! myFindTypeMob daklue1370        getlabel myFindTypeMob helperDesc1371        overhead "� �� HERE �� �" 88 myFindTypeMob1372        if jaseDebugMode = 11373            overhead "� block 2 {{helperDesc}}" 88   1374            hotkey "Get InfoGump"1375            wft 5001376            target myFindTypeMob1377        endif1378    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 8 as daklue1379        @setvar! myFindTypeMob daklue1380        getlabel myFindTypeMob helperDesc1381        overhead "� �� HERE �� �" 88 myFindTypeMob1382        if jaseDebugMode = 11383            overhead "� block 3 {{helperDesc}}" 88   1384            hotkey "Get InfoGump"1385            wft 5001386            target myFindTypeMob1387        endif1388    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 daklue1389        @setvar! myFindTypeMob daklue1390        overhead "� � OUT OF RANGE � �" 88 daklue1391        getlabel daklue helperDesc1392        if jaseDebugMode = 11393            overhead "� block 4 {{helperDesc}}" 88   1394            hotkey "Get InfoGump"1395            wft 5001396            target myFindTypeMob1397        endif1398        if "(summoned" in helperDesc or "(bonded" in helperDesc or "(tamed" in helperDesc or "the battle trainer" in helperDesc1399            overhead "� Player pet - IGNORE �" 77 daklue1400            ignore daklue1401            replay1402        endif  1403        wait 2001404        1405        if patrolPetEvenIfLastTargetIsBeyondEightTiles = 11406            1407            if not timerexists myPatrolPetTimer1408                settimer myPatrolPetTimer 50001409            endif1410        1411            if not varexist myPatrolPet1412                @setvar! myPatrolPet 01413            endif1414 1415            if find myPatrolPet ground -1 -1 101416                // do nothing1417            elseif find earthOne ground -1 -1 101418                @setvar! myPatrolPet earthOne1419            elseif find earthTwo ground -1 -1 101420                @setvar! myPatrolPet earthTwo1421            elseif find fireOne ground -1 -1 101422                @setvar! myPatrolPet fireOne1423            elseif find fireTwo ground -1 -1 101424                @setvar! myPatrolPet fireTwo1425            elseif find demonOne ground -1 -1 101426                @setvar! myPatrolPet demonOne1427            elseif find demonTwo ground -1 -1 101428                @setvar! myPatrolPet demonTwo1429            elseif find airOne ground -1 -1 101430                @setvar! myPatrolPet airOne1431            elseif find airTwo ground -1 -1 101432                @setvar! myPatrolPet airTwo1433            elseif find waterOne ground -1 -1 101434                @setvar! myPatrolPet waterOne1435            elseif find waterTwo ground -1 -1 101436                @setvar! myPatrolPet waterTwo1437            else1438                 @setvar! myPatrolPet 01439            endif1440 1441            if myPatrolPet = 01442                // do nothing1443            elseif timer myPatrolPetTimer >= 50001444                overhead "� SEND IN PATROL PET �" 77 myFindTypeMob    1445                menu myPatrolPet 21446                wft 5001447                target myFindTypeMob1448                settimer myPatrolPetTimer 01449            endif1450        1451        endif 1452        1453        replay1454    else1455        if jaseDebugMode = 11456            overhead "� block 5" 88   1457        endif1458        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1459            overhead "Found type found no one" 341460            settimer preventOverheadSpamTimer 01461        endif1462        wait 2001463        replay1464    endif1465    1466    if myFindTypeMob = 01467        wait 200 1468        replay1469    elseif dead myFindTypeMob1470        wait 200 1471        replay1472    else1473        getlabel myFindTypeMob checkForSummonsDesc1474        overhead "Found: {{checkForSummonsDesc}}" 88 myFindTypeMob1475 1476        if "(summoned" in checkForSummonsDesc or "(bonded" in checkForSummonsDesc or "(tamed" in checkForSummonsDesc or "the battle trainer" in checkForSummonsDesc1477            overhead "� Player pet - IGNORE �" 77 myFindTypeMob1478            @ignore myFindTypeMob1479            replay1480        endif    1481 1482        if noto myFindTypeMob = "friend"1483            @ignore myFindTypeMob1484            replay1485        elseif noto myFindTypeMob = "innocent"1486            @ignore myFindTypeMob1487            replay1488        elseif noto myFindTypeMob = "hostile" or noto myFindTypeMob = "criminal"1489            //overhead "Gray" 881490        elseif noto myFindTypeMob = "murderer"1491            //overhead "Red" 341492        elseif noto myFindTypeMob = "enemy"1493            //overhead "Orange" 341494        elseif noto daklue = "invulnerable"1495            @ignore myFindTypeMob1496            replay1497        else1498            overhead "Unknown" 341499            wait 5001500            @ignore myFindTypeMob1501            replay1502        endif1503                1504        @setvar! myKillTarget myFindTypeMob1505    endif1506elseif useTargetSystem = 31507    1508    hotkey 'Next Non-Friendly Monster Target'1509    wait 2001510    if insysmsg "No one matching that was found"1511        if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1512            overhead "found no one" 341513            settimer preventOverheadSpamTimer 01514        endif1515        if autoBotEnabled = 11516            wait 5001517            replay1518        endif1519        stop1520    else1521        1522        @setvar checkForSummons lasttarget 1523        getlabel checkForSummons checkForSummonsDesc1524        1525        if "(summoned" in checkForSummonsDesc or "(bonded" in checkForSummonsDesc or "the battle trainer" in checkForSummonsDesc1526            overhead "� Player pet - IGNORE �" 77 lasttarget1527            replay1528        endif    1529    1530        if find lasttarget ground -1 -1 81531            // we ready1532            overhead "� �� HERE �� �" 88 lasttarget 1533        elseif find lasttarget ground -1 -1 121534            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1535                overhead "Move closer, more then 8 tiles away" 341536                settimer preventOverheadSpamTimer 01537            endif1538            overhead "� � OUT OF RANGE � �" 88 lasttarget1539            1540            if patrolPetEvenIfLastTargetIsBeyondEightTiles = 11541                1542                if not timerexists myPatrolPetTimer1543                    settimer myPatrolPetTimer 50001544                endif1545            1546                if not varexist myPatrolPet1547                    @setvar! myPatrolPet 01548                endif1549 1550                if find myPatrolPet ground -1 -1 101551                    // do nothing1552                elseif find earthOne ground -1 -1 101553                    @setvar! myPatrolPet earthOne1554                elseif find earthTwo ground -1 -1 101555                    @setvar! myPatrolPet earthTwo1556                elseif find fireOne ground -1 -1 101557                    @setvar! myPatrolPet fireOne1558                elseif find fireTwo ground -1 -1 101559                    @setvar! myPatrolPet fireTwo1560                elseif find demonOne ground -1 -1 101561                    @setvar! myPatrolPet demonOne1562                elseif find demonTwo ground -1 -1 101563                    @setvar! myPatrolPet demonTwo1564                elseif find airOne ground -1 -1 101565                    @setvar! myPatrolPet airOne1566                elseif find airTwo ground -1 -1 101567                    @setvar! myPatrolPet airTwo1568                elseif find waterOne ground -1 -1 101569                    @setvar! myPatrolPet waterOne1570                elseif find waterTwo ground -1 -1 101571                    @setvar! myPatrolPet waterTwo1572                else1573                     @setvar! myPatrolPet 01574                endif1575 1576                if myPatrolPet = 01577                    // do nothing1578                elseif timer myPatrolPetTimer >= 50001579                    overhead "� SEND IN PATROL PET �" 77 myFindTypeMob    1580                    menu myPatrolPet 21581                    wft 5001582                    target lasttarget1583                    settimer myPatrolPetTimer 01584                endif1585            1586            endif 1587            1588            if autoBotEnabled = 11589                wait 5001590                replay1591            endif1592            stop1593        else1594            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1595                overhead "Next mob too far" 341596                settimer preventOverheadSpamTimer 01597            endif1598            wait 2001599            replay1600        endif1601    endif    1602    1603    @setvar myKillTarget lasttarget 1604endif1605 1606 1607if not varexist myPreviousKillTarget1608    @setvar myPreviousKillTarget 0     1609endif1610 1611getlabel myKillTarget desc1612overhead desc1613 1614if "(summoned" in desc or "(bonded" in desc or "(tame" in desc or "the battle trainer" in desc1615    overhead "� Player pet - IGNORE �" 77 lasttarget1616    while not targetexists 1617        hotkey 'Add Target To: IgnoreMobs'1618        wait 2001619    endwhile1620    target myKillTarget 1621    replay1622endif    1623 1624if not varexist myEarthPet or dead myEarthPet1625    if not dead earthOne1626        @setvar! myEarthPet earthOne1627    elseif not dead earthTwo1628        @setvar! myEarthPet earthTwo1629    endif1630endif1631 1632 1633#####1634##  Skill Check Timer1635####1636@setvar! jaseowns_SkillTimerCD 115001637if not timerexists jaseowns_SkillTimerCheck1638    settimer jaseowns_SkillTimerCheck jaseowns_SkillTimerCD1639endif1640 1641#####1642##  System Message Check Timer1643####1644@setvar! jaseowns_SystemMsgCheckCD 10001645if not timerexists jaseowns_SystemMsgCheck1646    settimer jaseowns_SystemMsgCheck jaseowns_SystemMsgCheckCD1647endif1648 1649#####1650##  Kill Target Check Timer1651####1652@setvar! jaseowns_KillTimerCD 10001653if not timerexists jaseowns_KillTimer1654    settimer jaseowns_KillTimer jaseowns_KillTimerCD1655endif1656 1657#####1658##  Herd Again Check Timer1659####1660@setvar! jaseowns_HerdAgainTimerCD 80001661if not timerexists jaseowns_HerdAgainTimer1662    settimer jaseowns_HerdAgainTimer jaseowns_HerdAgainTimerCD1663endif1664 1665if not varexist jaseowns_LastFocusAggressionTarget or timer jaseowns_HerdAgainTimer >= jaseowns_HerdAgainTimerCD1666    @setvar! jaseowns_LastFocusAggressionTarget 01667endif1668 1669if targetexists 'harmful'1670    hotkey "Cancel Current Target"1671endif1672 1673##############1674####   Target Line of sight check1675##########1676if myKillTarget != 0 and find myKillTarget ground -1 -1 121677    @setvar jaseowns_KillTarget myKillTarget1678    if jaseowns_KillTarget != jaseowns_LastFocusAggressionTarget1679 1680        #  TODO: maybe change to be based on your summon and not just pet1681        if varexist jaseowns_PetOne and find jaseowns_PetOne ground -1 -1 121682            overhead "� Guarding �" 88 jaseowns_PetOne1683            menu jaseowns_PetOne 31684        endif1685 1686        if timer jaseowns_SkillTimerCheck >= jaseowns_SkillTimerCD1687            settimer jaseowns_SystemMsgCheck 01688            while timer jaseowns_SystemMsgCheck <= jaseowns_SystemMsgCheckCD1689                if targetexists 'beneficial'1690                    hotkey "Cancel Current Target"1691                elseif not targetexists 'neutral'1692                    overhead "� � Attempting Kill � �" 88 jaseowns_KillTarget1693                    useskill "ArmsLore"1694                    wft 5001695                else1696                    break1697                endif1698            endwhile1699            if targetexists 'neutral'1700                target jaseowns_KillTarget1701                settimer jaseowns_SystemMsgCheck 01702                while timer jaseowns_SystemMsgCheck <= jaseowns_SystemMsgCheckCD1703                    if insysmsg "You cannot inspect that."1704                        if followers > 01705                            while not targetexists "harmful"1706                                say "ALL KILL" 881707                                wft 5001708                            endwhile1709                            if targetexists "harmful"1710                                target jaseowns_KillTarget1711                                @setvar! lastCannotBeSeen 01712                                @setvar! jaseowns_LastFocusAggressionTarget jaseowns_KillTarget1713                                settimer jaseowns_HerdAgainTimer 01714                                @setvar! jaseowns_DiscordThisTarget jaseowns_KillTarget1715                                break1716                            endif1717                        else1718                            target jaseowns_KillTarget1719                            @setvar! lastCannotBeSeen 01720                            @setvar! jaseowns_LastFocusAggressionTarget jaseowns_KillTarget1721                            settimer jaseowns_HerdAgainTimer 01722                            @setvar! jaseowns_DiscordThisTarget jaseowns_KillTarget1723                            break1724                        endif1725 1726                    elseif insysmsg "Target cannot be seen"1727#                        overhead "Cannot be seen inside the arms lore check"1728#                        sysmsg "Cannot be seen inside the arms lore check"1729                        @setvar! lastCannotBeSeen myKillTarget1730                    else1731#                        overhead "some other reason" 111732#                        sysmsg "some other reason" 111733#                        @setvar! lastCannotBeSeen myKillTarget1734                    endif1735                endwhile1736            endif1737        endif1738    endif1739endif1740 1741if diffhits >= hpCheckToTriggerGreaterHealSpell and mana > 121742    while not targetexists beneficial1743        if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell1744            cast 'Heal'1745        else1746            cast 'Greater Heal'                1747        endif1748        wait 501749        if hp = maxhp1750            hotkey '> Interrupt'1751            break1752        endif1753    endwhile1754    if targetexists beneficial1755        hotkey "Target Self"1756    endif1757elseif castArchProtection = 1 and not findbuff "protection" and followers >= 4 1758    while not targetexists1759        cast 'Arch Protection'1760        wait 501761        if diffhits >= hpCheckToTriggerGreaterHealSpell1762            hotkey '> Interrupt'1763            break1764        endif1765    endwhile1766    if targetexists1767        target self1768    endif1769elseif castBless = 1 and str <= 100 and followers >= 4 1770    while not targetexists beneficial1771        cast 'Bless'1772        wait 501773        if diffhits >= hpCheckToTriggerGreaterHealSpell1774            hotkey '> Interrupt'1775            break1776        endif1777    endwhile1778    if targetexists beneficial1779        target self1780    endif1781endif1782 1783if not listexists myCursedTargets1784    createlist myCursedTargets1785endif1786 1787if not listexists myManaDrainTargets1788    createlist myManaDrainTargets1789endif1790 1791if not listexists myManaVampireTargets1792    createlist myManaVampireTargets1793endif1794 1795 1796if not varexist lastCannotBeSeenLoopIndex1797    @setvar! lastCannotBeSeenLoopIndex 01798endif1799 1800 1801if lastCannotBeSeen = myKillTarget1802    if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1803        overhead "Target not seen, waiting.."  341804        settimer preventOverheadSpamTimer 01805    endif1806    wait 2001807    replay1808#    //overhead "{{lastCannotBeSeenLoopIndex}} : {{retryBasedOnTargetNotSeenTimer}}"1809#    if lastCannotBeSeenLoopIndex = 01810#        @setvar! lastCannotBeSeenLoopIndex 11811#    endif1812#    if timer retryBasedOnTargetNotSeenTimer >= cdRetryBasedOnTargetNotSeen1813#        settimer retryBasedOnTargetNotSeenTimer 0    1814#        @setvar! lastCannotBeSeen 01815#    else1816#        replay1817#    endif1818    1819elseif find myKillTarget -1 -1 12 as killy1820    if myKillTarget = myPreviousKillTarget1821        // do nothing1822    else1823        1824        if inlist myManaVampireTargets myKillTarget1825            overhead "We already mana vampired this guy" 881826            // do nothing1827        elseif castManaVampire = 01828            // do nothing 1829        elseif followers >= 4 and mana >= manaReserve1830            while not targetexists harmful1831                if dead myKillTarget1832                    hotkey '> Interrupt'1833                    break1834                elseif diffhits < 301835                    cast 'mana vampire'1836                    wait 501837                elseif diffhits >= hpCheckToTriggerGreaterHealSpell or dead myKillTarget1838                    hotkey '> Interrupt'1839                    break1840                endif1841            endwhile1842            if targetexists harmful1843                target myKillTarget1844                pushlist myManaVampireTargets myKillTarget1845                settimer killTargetTimer 01846                wait 5001847                if insysmsg "Target cannot be seen." 1848                    @setvar! lastCannotBeSeen myKillTarget1849                    overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341850                    replay1851                endif1852            endif1853            if targetexists harmful1854                hotkey "Cancel current target"1855            endif1856        endif1857        1858        if inlist myManaDrainTargets myKillTarget1859            overhead "We already mana drained this guy" 881860            // do nothing1861        elseif castManadrain = 01862            // do nothing 1863        elseif followers >= 4 and mana >= manaReserve1864            while not targetexists harmful1865                if dead myKillTarget1866                    hotkey '> Interrupt'1867                    break1868                elseif diffhits < 301869                    cast 'mana drain'1870                    wait 501871                elseif diffhits >= hpCheckToTriggerGreaterHealSpell or dead myKillTarget1872                    hotkey '> Interrupt'1873                    break1874                endif1875            endwhile1876            if targetexists harmful1877                target myKillTarget1878                pushlist myManaDrainTargets myKillTarget1879                settimer killTargetTimer 01880                wait 5001881                if insysmsg "Target cannot be seen." 1882                    @setvar! lastCannotBeSeen myKillTarget1883                    overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341884                    replay1885                endif1886            endif1887            if targetexists harmful1888                hotkey "Cancel current target"1889            endif1890        endif1891        1892        if inlist myCursedTargets myKillTarget1893            overhead "We already cursed this guy" 881894            // do nothing1895        elseif castCurse = 01896            // do nothing1897        elseif followers >= 4 and mana >= manaReserve1898            while not targetexists harmful and not dead myKillTarget1899                if diffhits < 301900                    cast 'Curse'1901                    wait 501902                elseif diffhits >= hpCheckToTriggerGreaterHealSpell1903                    hotkey '> Interrupt'1904                    break1905                endif1906            endwhile1907            if targetexists harmful1908                target myKillTarget1909                pushlist myCursedTargets myKillTarget1910                settimer killTargetTimer 01911                wait 5001912                if insysmsg "Target cannot be seen." 1913                    @setvar! lastCannotBeSeen myKillTarget1914                    overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341915                    replay1916                endif1917            else1918                hotkey '> Interrupt'1919            endif1920            if targetexists harmful1921                hotkey "Cancel current target"1922            endif1923        endif1924        @setvar myPreviousKillTarget myKillTarget1925    endif1926else1927    overhead "Out of range" 341928endif1929 1930 1931clearsysmsg 1932 1933if followers > 01934    say "all guard"1935endif1936 1937@setvar! isLethalPoison 01938 1939if skill "Peacemaking" >= 50 1940    @setvar! isPeaced 01941else1942    @setvar! isPeaced 1    1943endif1944 1945if skill "Discordance" >= 50 1946  @setvar! isDiscorded 01947else1948  @setvar! isDiscorded 1  1949endif1950 1951 1952while not dead myKillTarget and find myKillTarget -1 -1 12 as killy1953 1954    if skill "Veterinary" >= 50 and timer vetKitTimer >= vetKitTimerCD1955        if not bandaging and findtype 25750 backpack as item1956            dclick item1957            wait 2001958        endif1959        settimer vetKitTimer 01960    endif1961 1962    for 51963 1964        if findbuff "bleed" or findbuff "disease"1965            if timer cleansingBrewTimer >= cdCleansingBrew and findtype 50675 backpack 2935 as jrew1966                dclick jrew1967                wait minimumWaitForPing 1968                settimer cleansingBrewTimer 01969            endif1970        endif1971 1972        // lost a follower1973        if followers < breakSpellCastAndResummonIfLessThanXFollowers1974            replay1975        endif1976        1977        if weight >= maxweight and not findbuff "strength" and automaticallyDrinkStrPotIfOverWeight = 1 and findtype "white potion" backpack as pot1978            dclick pot1979            wait 2001980        endif1981    1982        if dead myKillTarget1983            break1984        elseif insysmsg "Target cannot be seen." 1985            @setvar! lastCannotBeSeen myKillTarget1986            overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341987            replay1988        elseif find myKillTarget -1 -1 12 as killy1989            // do nothing - in range to kill1990        else1991            break1992        endif1993        1994        if gumpexists 622436516 and skill "Necromancy" >= 501995            if ingump "12/" 6224365161996                @setvar! necroSymbols 121997            elseif ingump "13/" 6224365161998                @setvar! necroSymbols 131999            elseif ingump "14/" 6224365162000                @setvar! necroSymbols 142001            elseif ingump "15/" 6224365162002                @setvar! necroSymbols 152003            elseif ingump "16/" 6224365162004                @setvar! necroSymbols 162005            elseif ingump "17/" 6224365162006                @setvar! necroSymbols 172007            elseif ingump "18/" 6224365162008                @setvar! necroSymbols 182009            elseif ingump "19/" 6224365162010                @setvar! necroSymbols 192011            elseif ingump "20/" 6224365162012                @setvar! necroSymbols 202013            elseif ingump "21/" 6224365162014                @setvar! necroSymbols 212015            elseif ingump "11/" 6224365162016                @setvar! necroSymbols 112017            elseif ingump "10/" 6224365162018                @setvar! necroSymbols 102019            elseif ingump "9/" 6224365162020                @setvar! necroSymbols 92021            elseif ingump "8/" 6224365162022                @setvar! necroSymbols 82023            elseif ingump "7/" 6224365162024                @setvar! necroSymbols 72025            elseif ingump "6/" 6224365162026                @setvar! necroSymbols 62027            elseif ingump "5/" 6224365162028                @setvar! necroSymbols 52029            elseif ingump "4/" 6224365162030                @setvar! necroSymbols 42031            elseif ingump "3/" 6224365162032                @setvar! necroSymbols 32033            elseif ingump "2/" 6224365162034                @setvar! necroSymbols 22035            elseif ingump "1/" 6224365162036                @setvar! necroSymbols 12037            elseif ingump "0/" 6224365162038                @setvar! necroSymbols 02039            endif2040        endif2041        2042        if skill "Discordance" >= 50 2043            if isDiscorded = 02044                getlabel myKillTarget discordDesc2045                if "discord" in discordDesc2046                    @setvar! isDiscorded 12047                elseif timer jaseowns_SkillTimerCheck >= 11000 2048                    useskill 'Discordance'2049                    wft 5002050                    if insysmsg "What instrument"2051                        if findtype "bamboo flute" backpack as inny2052                            target inny2053                        elseif findtype "tambourine" backpack as inny2054                            target inny2055                        elseif findtype "drum" backpack as inny2056                            target inny2057                        elseif findtype "lute" backpack as inny2058                            target inny2059                        elseif findtype "harp" backpack as inny2060                            target inny2061                        elseif findtype "lap harp" backpack as inny2062                            target inny2063                        else2064                            overhead "I do not have an inny" 342065                            @setvar! isDiscorded 12066                        endif2067                        wft 5002068                    endif2069                    if targetexists 2070                        target myKillTarget2071                        overhead "Discorded" 88 myKillTarget2072                    endif2073                    settimer jaseowns_SkillTimerCheck 50002074                endif2075            endif2076            2077            if not findbuff "song of discordance" and timer jaseowns_SkillTimerCheck >= 110002078                useskill 'Discordance'2079                wft 5002080                if insysmsg "What instrument"2081                    if findtype "bamboo flute" backpack as inny2082                        target inny2083                    elseif findtype "tambourine" backpack as inny2084                        target inny2085                    elseif findtype "drum" backpack as inny2086                        target inny2087                    elseif findtype "lute" backpack as inny2088                        target inny2089                    elseif findtype "harp" backpack as inny2090                        target inny2091                    elseif findtype "lap harp" backpack as inny2092                        target inny2093                    else2094                        overhead "I do not have an inny" 342095                        @setvar! isDiscorded 12096                    endif2097                    wft 5002098                endif2099                target backpack2100                settimer jaseowns_SkillTimerCheck 02101            endif    2102        endif2103        2104        if skill "Peacemaking" >= 50 2105            if isPeaced = 02106                getlabel myKillTarget peaceDesc2107                if "pacified" in peaceDesc2108                    @setvar! isPeaced 12109                elseif timer jaseowns_SkillTimerCheck >= 11000 2110                    useskill 'Peacemaking'2111                    wft 5002112                    if insysmsg "What instrument"2113                        if findtype "bamboo flute" backpack as inny2114                            target inny2115                        elseif findtype "tambourine" backpack as inny2116                            target inny2117                        elseif findtype "drum" backpack as inny2118                            target inny2119                        elseif findtype "lute" backpack as inny2120                            target inny2121                        elseif findtype "harp" backpack as inny2122                            target inny2123                        elseif findtype "lap harp" backpack as inny2124                            target inny2125                        else2126                            overhead "I do not have an inny" 342127                            @setvar! isPeaced 12128                        endif2129                        wft 5002130                    endif2131                    if targetexists 2132                        target myKillTarget2133                        overhead "Peacemaed" 88 myKillTarget2134                    endif2135                    settimer jaseowns_SkillTimerCheck 50002136                endif2137            endif2138            2139            if not findbuff "song of peacemaking" and timer jaseowns_SkillTimerCheck >= 110002140                useskill 'Peacemaking'2141                wft 5002142                if insysmsg "What instrument"2143                    if findtype "bamboo flute" backpack as inny2144                        target inny2145                    elseif findtype "tambourine" backpack as inny2146                        target inny2147                    elseif findtype "drum" backpack as inny2148                        target inny2149                    elseif findtype "lute" backpack as inny2150                        target inny2151                    elseif findtype "harp" backpack as inny2152                        target inny2153                    elseif findtype "lap harp" backpack as inny2154                        target inny2155                    else2156                        overhead "I do not have an inny" 342157                        @setvar! isPeaced 12158                    endif2159                    wft 5002160                endif2161                target backpack2162                settimer jaseowns_SkillTimerCheck 02163            endif    2164        endif2165 2166        if castMagicShield = 1 and timer magicShieldTimer >= cdMagicShield and not findbuff "Magic Reflection"2167            if mana >= manaReserve2168                cast "Magic Reflection"2169                wait 10002170            endif2171        elseif automaticallyDrinkMagicPot = 1 and not findbuff "Magic Reflection" and not findbuff "Magic Resist Potion" and findtype "Black Potion" backpack as pot2172            dclick pot2173            wait 2002174        endif2175 2176        if findbuff "Magic Reflection"2177            settimer magicShieldTimer 02178        endif2179        2180        if castReactiveArmor = 1 and timer reactiveArmorTimer >= cdReactiveArmor and not findbuff "Reactive Armor"2181            if mana >= manaReserve2182                cast "Reactive Armor"2183                wait 2002184            endif2185        endif2186 2187        if findbuff "Reactive Armor"2188            settimer reactiveArmorTimer 02189        endif2190        2191        if skill "poisoning" >= 100 or castPoisonAnyway = 12192            if timer jaseowns_SkillTimerCheck >= cdMeditationMini and mana >= manaReserve2193                if castMindRot = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer mindRotTimer >= cdMindRot and skill "Necromancy" >= 75 and 3 < necroSymbols 2194                    yell "[MindRot"2195                    settimer preventSpamNecroAbilitiesTimer 02196                    settimer mindRotTimer 02197                    wait 5002198                    if gumpexists 6224365162199                        if ingump "12/" 6224365162200                            @setvar! necroSymbols 122201                        elseif ingump "13/" 6224365162202                            @setvar! necroSymbols 132203                        elseif ingump "14/" 6224365162204                            @setvar! necroSymbols 142205                        elseif ingump "15/" 6224365162206                            @setvar! necroSymbols 152207                        elseif ingump "16/" 6224365162208                            @setvar! necroSymbols 162209                        elseif ingump "17/" 6224365162210                            @setvar! necroSymbols 172211                        elseif ingump "18/" 6224365162212                            @setvar! necroSymbols 182213                        elseif ingump "19/" 6224365162214                            @setvar! necroSymbols 192215                        elseif ingump "20/" 6224365162216                            @setvar! necroSymbols 202217                        elseif ingump "21/" 6224365162218                            @setvar! necroSymbols 212219                        elseif ingump "11/" 6224365162220                            @setvar! necroSymbols 112221                        elseif ingump "10/" 6224365162222                            @setvar! necroSymbols 102223                        elseif ingump "9/" 6224365162224                            @setvar! necroSymbols 92225                        elseif ingump "8/" 6224365162226                            @setvar! necroSymbols 82227                        elseif ingump "7/" 6224365162228                            @setvar! necroSymbols 72229                        elseif ingump "6/" 6224365162230                            @setvar! necroSymbols 62231                        elseif ingump "5/" 6224365162232                            @setvar! necroSymbols 52233                        elseif ingump "4/" 6224365162234                            @setvar! necroSymbols 42235                        elseif ingump "3/" 6224365162236                            @setvar! necroSymbols 32237                        elseif ingump "2/" 6224365162238                            @setvar! necroSymbols 22239                        elseif ingump "1/" 6224365162240                            @setvar! necroSymbols 12241                        elseif ingump "0/" 6224365162242                            @setvar! necroSymbols 02243                        endif2244                    endif2245                endif2246                2247                                2248                getlabel myKillTarget desc22249                overhead desc22250                2251                if castPoisonStrike = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer poisonStrikeTimer >= cdPoisonStrike and skill "Necromancy" >= 55 and 1 < necroSymbols 2252                    if "Ticks" in desc22253                        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 2254                            yell "[PoisonStrike"2255                            wft 5002256                            target myKillTarget2257                            wait 2002258                            settimer preventSpamNecroAbilitiesTimer 02259                            settimer poisonStrikeTimer 02260                            wait 5002261                            if gumpexists 6224365162262                                if ingump "12/" 6224365162263                                    @setvar! necroSymbols 122264                                elseif ingump "13/" 6224365162265                                    @setvar! necroSymbols 132266                                elseif ingump "14/" 6224365162267                                    @setvar! necroSymbols 142268                                elseif ingump "15/" 6224365162269                                    @setvar! necroSymbols 152270                                elseif ingump "16/" 6224365162271                                    @setvar! necroSymbols 162272                                elseif ingump "17/" 6224365162273                                    @setvar! necroSymbols 172274                                elseif ingump "18/" 6224365162275                                    @setvar! necroSymbols 182276                                elseif ingump "19/" 6224365162277                                    @setvar! necroSymbols 192278                                elseif ingump "20/" 6224365162279                                    @setvar! necroSymbols 202280                                elseif ingump "21/" 6224365162281                                    @setvar! necroSymbols 212282                                elseif ingump "11/" 6224365162283                                    @setvar! necroSymbols 112284                                elseif ingump "10/" 6224365162285                                    @setvar! necroSymbols 102286                                elseif ingump "9/" 6224365162287                                    @setvar! necroSymbols 92288                                elseif ingump "8/" 6224365162289                                    @setvar! necroSymbols 82290                                elseif ingump "7/" 6224365162291                                    @setvar! necroSymbols 72292                                elseif ingump "6/" 6224365162293                                    @setvar! necroSymbols 62294                                elseif ingump "5/" 6224365162295                                    @setvar! necroSymbols 52296                                elseif ingump "4/" 6224365162297                                    @setvar! necroSymbols 42298                                elseif ingump "3/" 6224365162299                                    @setvar! necroSymbols 32300                                elseif ingump "2/" 6224365162301                                    @setvar! necroSymbols 22302                                elseif ingump "1/" 6224365162303                                    @setvar! necroSymbols 12304                                elseif ingump "0/" 6224365162305                                    @setvar! necroSymbols 02306                                endif2307                            endif2308                        endif2309                    endif2310                endif2311                2312                if isLethalPoison = 02313                    2314                    if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2315                        overhead "Eating shrooms" 662316                        dclick mushy2317                        @setvar! jase_shrooms mushy2318                        wait 2002319                        if insysmsg "You consume a magic mushroom and restore some mana."2320                            settimer magicMushroomTimer 0  2321                        elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2322                            settimer magicMushroomTimer 300002323                        endif2324                    endif2325                2326                    if insysmsg "Target cannot be seen." 2327                        @setvar! lastCannotBeSeen myKillTarget2328                        overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342329                        replay2330                    endif 2331 2332                    // poison lethal2333                    if "Lethal" in desc22334                        @setvar! isLethalPoison 12335                        break2336                    elseif castPoisonAnyway = 1 and "Ticks" in desc22337                        @setvar! isLethalPoison 12338                        break2339                    elseif castPoisonAnyway = 1 and "Poison" in desc22340                        @setvar! isLethalPoison 12341                        break2342                    elseif diffhits >= hpCheckToTriggerGreaterHealSpell 2343                        // need a heal2344                        break2345                    elseif mana >= 92346                        while not targetexists harmful2347                            cast 'poison'2348                            wait 502349                            if dead myKillTarget2350                                hotkey '> Interrupt'2351                                replay2352                            endif2353                        endwhile2354                        target myKillTarget2355                        wait 2002356                        if insysmsg "Target cannot be seen." 2357                            @setvar! lastCannotBeSeen myKillTarget2358                             overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342359                             @setvar! isLethalPoison 12360                        endif 2361                    else2362                        wait 2002363                    endif2364                endif2365            endif2366        endif2367        2368        if castCorpseSkin = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer corpseSkinTimer >= cdCorpseSkin and skill "Necromancy" >= 65 and timer jaseowns_SkillTimerCheck >= cdMeditationMini and 2 < necroSymbols and mana >= manaReserve2369            yell "[CorpseSkin"2370            settimer preventSpamNecroAbilitiesTimer 02371            settimer corpseSkinTimer 02372            cooldown CorpseSkin cdCorpseSkin2373            wait 5002374            if gumpexists 6224365162375                if ingump "12/" 6224365162376                    @setvar! necroSymbols 122377                elseif ingump "13/" 6224365162378                    @setvar! necroSymbols 132379                elseif ingump "14/" 6224365162380                    @setvar! necroSymbols 142381                elseif ingump "15/" 6224365162382                    @setvar! necroSymbols 152383                elseif ingump "16/" 6224365162384                    @setvar! necroSymbols 162385                elseif ingump "17/" 6224365162386                    @setvar! necroSymbols 172387                elseif ingump "18/" 6224365162388                    @setvar! necroSymbols 182389                elseif ingump "19/" 6224365162390                    @setvar! necroSymbols 192391                elseif ingump "20/" 6224365162392                    @setvar! necroSymbols 202393                elseif ingump "21/" 6224365162394                    @setvar! necroSymbols 212395                elseif ingump "11/" 6224365162396                    @setvar! necroSymbols 112397                elseif ingump "10/" 6224365162398                    @setvar! necroSymbols 102399                elseif ingump "9/" 6224365162400                    @setvar! necroSymbols 92401                elseif ingump "8/" 6224365162402                    @setvar! necroSymbols 82403                elseif ingump "7/" 6224365162404                    @setvar! necroSymbols 72405                elseif ingump "6/" 6224365162406                    @setvar! necroSymbols 62407                elseif ingump "5/" 6224365162408                    @setvar! necroSymbols 52409                elseif ingump "4/" 6224365162410                    @setvar! necroSymbols 42411                elseif ingump "3/" 6224365162412                    @setvar! necroSymbols 32413                elseif ingump "2/" 6224365162414                    @setvar! necroSymbols 22415                elseif ingump "1/" 6224365162416                    @setvar! necroSymbols 12417                elseif ingump "0/" 6224365162418                    @setvar! necroSymbols 02419                endif2420            endif2421        endif2422            2423        if castBloodOath = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and skill "Necromancy" >= 80 and timer bloodOathTimer >= cdBloodOath and 5 < necroSymbols and mana >= manaReserve2424            yell "[BloodOath"2425            settimer preventSpamNecroAbilitiesTimer 02426            settimer bloodOathTimer 02427            if gumpexists 6224365162428                if ingump "12/" 6224365162429                    @setvar! necroSymbols 122430                elseif ingump "13/" 6224365162431                    @setvar! necroSymbols 132432                elseif ingump "14/" 6224365162433                    @setvar! necroSymbols 142434                elseif ingump "15/" 6224365162435                    @setvar! necroSymbols 152436                elseif ingump "16/" 6224365162437                    @setvar! necroSymbols 162438                elseif ingump "17/" 6224365162439                    @setvar! necroSymbols 172440                elseif ingump "18/" 6224365162441                    @setvar! necroSymbols 182442                elseif ingump "19/" 6224365162443                    @setvar! necroSymbols 192444                elseif ingump "20/" 6224365162445                    @setvar! necroSymbols 202446                elseif ingump "21/" 6224365162447                    @setvar! necroSymbols 212448                elseif ingump "11/" 6224365162449                    @setvar! necroSymbols 112450                elseif ingump "10/" 6224365162451                    @setvar! necroSymbols 102452                elseif ingump "9/" 6224365162453                    @setvar! necroSymbols 92454                elseif ingump "8/" 6224365162455                    @setvar! necroSymbols 82456                elseif ingump "7/" 6224365162457                    @setvar! necroSymbols 72458                elseif ingump "6/" 6224365162459                    @setvar! necroSymbols 62460                elseif ingump "5/" 6224365162461                    @setvar! necroSymbols 52462                elseif ingump "4/" 6224365162463                    @setvar! necroSymbols 42464                elseif ingump "3/" 6224365162465                    @setvar! necroSymbols 32466                elseif ingump "2/" 6224365162467                    @setvar! necroSymbols 22468                elseif ingump "1/" 6224365162469                    @setvar! necroSymbols 12470                elseif ingump "0/" 6224365162471                    @setvar! necroSymbols 02472                endif2473            endif2474        endif2475        2476        if castEvilOmen = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer evilOmenTimer >= cdEvilOmen and skill "Necromancy" >= 60 and timer jaseowns_SkillTimerCheck >= cdMeditationMini and 2 < necroSymbols and mana >= manaReserve2477            yell "[EvilOmen"2478            settimer evilOmenTimer 02479            settimer preventSpamNecroAbilitiesTimer 02480            cooldown EvilOmen cdEvilOmen2481            wait 5002482            if gumpexists 6224365162483                if ingump "12/" 6224365162484                    @setvar! necroSymbols 122485                elseif ingump "13/" 6224365162486                    @setvar! necroSymbols 132487                elseif ingump "14/" 6224365162488                    @setvar! necroSymbols 142489                elseif ingump "15/" 6224365162490                    @setvar! necroSymbols 152491                elseif ingump "16/" 6224365162492                    @setvar! necroSymbols 162493                elseif ingump "17/" 6224365162494                    @setvar! necroSymbols 172495                elseif ingump "18/" 6224365162496                    @setvar! necroSymbols 182497                elseif ingump "19/" 6224365162498                    @setvar! necroSymbols 192499                elseif ingump "20/" 6224365162500                    @setvar! necroSymbols 202501                elseif ingump "21/" 6224365162502                    @setvar! necroSymbols 212503                elseif ingump "11/" 6224365162504                    @setvar! necroSymbols 112505                elseif ingump "10/" 6224365162506                    @setvar! necroSymbols 102507                elseif ingump "9/" 6224365162508                    @setvar! necroSymbols 92509                elseif ingump "8/" 6224365162510                    @setvar! necroSymbols 82511                elseif ingump "7/" 6224365162512                    @setvar! necroSymbols 72513                elseif ingump "6/" 6224365162514                    @setvar! necroSymbols 62515                elseif ingump "5/" 6224365162516                    @setvar! necroSymbols 52517                elseif ingump "4/" 6224365162518                    @setvar! necroSymbols 42519                elseif ingump "3/" 6224365162520                    @setvar! necroSymbols 32521                elseif ingump "2/" 6224365162522                    @setvar! necroSymbols 22523                elseif ingump "1/" 6224365162524                    @setvar! necroSymbols 12525                elseif ingump "0/" 6224365162526                    @setvar! necroSymbols 02527                endif2528            endif2529        endif2530        2531        if castVampiricEmbrace = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer vampiricEmbraceTimer >= cdVampiricEmbrace and skill "Necromancy" >= 75 and timer jaseowns_SkillTimerCheck >= cdMeditationMini and 3 < necroSymbols and findtype 8198 ground -1 -1 4 as jorpse2532            yell "[VampiricEmbrace"2533            wft 5002534            target jorpse2535            settimer preventSpamNecroAbilitiesTimer 02536            settimer vampiricEmbraceTimer 02537            cooldown VampiricEmbrace cdVampiricEmbrace2538            wait 5002539            if gumpexists 6224365162540                if ingump "12/" 6224365162541                    @setvar! necroSymbols 122542                elseif ingump "13/" 6224365162543                    @setvar! necroSymbols 132544                elseif ingump "14/" 6224365162545                    @setvar! necroSymbols 142546                elseif ingump "15/" 6224365162547                    @setvar! necroSymbols 152548                elseif ingump "16/" 6224365162549                    @setvar! necroSymbols 162550                elseif ingump "17/" 6224365162551                    @setvar! necroSymbols 172552                elseif ingump "18/" 6224365162553                    @setvar! necroSymbols 182554                elseif ingump "19/" 6224365162555                    @setvar! necroSymbols 192556                elseif ingump "20/" 6224365162557                    @setvar! necroSymbols 202558                elseif ingump "21/" 6224365162559                    @setvar! necroSymbols 212560                elseif ingump "11/" 6224365162561                    @setvar! necroSymbols 112562                elseif ingump "10/" 6224365162563                    @setvar! necroSymbols 102564                elseif ingump "9/" 6224365162565                    @setvar! necroSymbols 92566                elseif ingump "8/" 6224365162567                    @setvar! necroSymbols 82568                elseif ingump "7/" 6224365162569                    @setvar! necroSymbols 72570                elseif ingump "6/" 6224365162571                    @setvar! necroSymbols 62572                elseif ingump "5/" 6224365162573                    @setvar! necroSymbols 52574                elseif ingump "4/" 6224365162575                    @setvar! necroSymbols 42576                elseif ingump "3/" 6224365162577                    @setvar! necroSymbols 32578                elseif ingump "2/" 6224365162579                    @setvar! necroSymbols 22580                elseif ingump "1/" 6224365162581                    @setvar! necroSymbols 12582                elseif ingump "0/" 6224365162583                    @setvar! necroSymbols 02584                endif2585            endif2586        endif2587        2588        if castPainSpike = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer painSpikeTimer >= cdPainSpike and skill "Necromancy" >= 95 and timer jaseowns_SkillTimerCheck >= cdMeditationMini and 5 < necroSymbols and findtype 8198 ground -1 -1 6 as jorpse2589            yell "[PainSpike"2590            wft 5002591            target myKillTarget2592            wait 2002593            settimer preventSpamNecroAbilitiesTimer 02594            if insysmsg "You do not see any corpses"2595                // do nothing2596            else2597                settimer painSpikeTimer 02598                cooldown PainSpike cdPainSpike            2599            endif2600            if gumpexists 6224365162601                if ingump "12/" 6224365162602                    @setvar! necroSymbols 122603                elseif ingump "13/" 6224365162604                    @setvar! necroSymbols 132605                elseif ingump "14/" 6224365162606                    @setvar! necroSymbols 142607                elseif ingump "15/" 6224365162608                    @setvar! necroSymbols 152609                elseif ingump "16/" 6224365162610                    @setvar! necroSymbols 162611                elseif ingump "17/" 6224365162612                    @setvar! necroSymbols 172613                elseif ingump "18/" 6224365162614                    @setvar! necroSymbols 182615                elseif ingump "19/" 6224365162616                    @setvar! necroSymbols 192617                elseif ingump "20/" 6224365162618                    @setvar! necroSymbols 202619                elseif ingump "21/" 6224365162620                    @setvar! necroSymbols 212621                elseif ingump "11/" 6224365162622                    @setvar! necroSymbols 112623                elseif ingump "10/" 6224365162624                    @setvar! necroSymbols 102625                elseif ingump "9/" 6224365162626                    @setvar! necroSymbols 92627                elseif ingump "8/" 6224365162628                    @setvar! necroSymbols 82629                elseif ingump "7/" 6224365162630                    @setvar! necroSymbols 72631                elseif ingump "6/" 6224365162632                    @setvar! necroSymbols 62633                elseif ingump "5/" 6224365162634                    @setvar! necroSymbols 52635                elseif ingump "4/" 6224365162636                    @setvar! necroSymbols 42637                elseif ingump "3/" 6224365162638                    @setvar! necroSymbols 32639                elseif ingump "2/" 6224365162640                    @setvar! necroSymbols 22641                elseif ingump "1/" 6224365162642                    @setvar! necroSymbols 12643                elseif ingump "0/" 6224365162644                    @setvar! necroSymbols 02645                endif2646            endif2647        endif2648        2649        if diffhits >= hpCheckToTriggerHealPotion 2650            if findtype "Yellow Potion" backpack as pot 2651                getlabel pot desc2652                if "next usable" in desc2653                    // do nothing2654                else2655                    dclick pot2656                    wait 5002657                endif2658            endif2659        endif2660        2661        if diffhits >= hpCheckToTriggerGreaterHealSpell and mana >= 122662            while not targetexists beneficial2663                if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell2664                    cast 'Heal'2665                else2666                    cast 'Greater Heal'                2667                endif2668                wait 502669                if hp = maxhp2670                    hotkey '> Interrupt'2671                    break2672                endif2673            endwhile2674            if targetexists beneficial2675                hotkey "Target Self"2676                wait 502677            endif2678        endif2679        2680        if poisoned2681            if automaticallyDrinkCurePot = 1 and diffhits >= hpCheckToTriggerCurePotion and findtype "Orange Potion" backpack as pot 2682                dclick pot2683                wait 2002684            endif2685            2686            while not targetexists beneficial2687                if not poisoned2688                    hotkey '> Interrupt'2689                    break2690                else2691                    cast 'Cure'2692                    wait 502693                endif 2694            endwhile2695            if targetexists beneficial2696                hotkey "Target Self"2697                wait 5002698            endif2699        endif2700 2701        if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2702            overhead "Eating shrooms" 662703            dclick mushy2704            @setvar! jase_shrooms mushy2705            wait 2002706            if insysmsg "You consume a magic mushroom and restore some mana."2707                settimer magicMushroomTimer 0    2708            elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2709                settimer magicMushroomTimer 300002710            endif2711        endif2712        2713        if index = 02714                    2715            if castLightning = 1 and diffhits < 30 and mana >= 12 and timer lightningTimer >= cdLightning and timer jaseowns_SkillTimerCheck >= cdMeditationMini and mana >= manaReserve2716                while not targetexists harmful2717                    if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2718                        hotkey '> Interrupt'2719                        break2720                    else2721                        cast 'Lightning'2722                        wait 502723                    endif 2724                endwhile2725                if targetexists harmful2726                    target myKillTarget2727                    settimer lightningTimer 02728                    cooldown Lightning cdLightning2729                    wait 5002730                endif2731            endif2732        2733        elseif index = 12734        2735            if castMagicArrow = 1 and diffhits < 30 and mana >= 5 and timer magicArrowTimer >= cdMagicArrow and timer jaseowns_SkillTimerCheck >= cdMeditationMini and mana >= manaReserve2736                while not targetexists harmful2737                    if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2738                        hotkey '> Interrupt'2739                        break2740                    else2741                        cast 'magic arrow'2742                        wait 502743                    endif 2744                endwhile2745                if targetexists harmful2746                    target myKillTarget2747                    settimer magicArrowTimer 02748                    cooldown MagicArrow cdMagicArrow2749                    wait 5002750                endif2751            endif2752            2753        elseif index = 22754                2755            if castHarm = 1 and diffhits < 30 and mana >= 9 and timer harmTimer >= cdHarm and timer jaseowns_SkillTimerCheck >= cdMeditationMini and mana >= manaReserve2756                while not targetexists harmful2757                    if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2758                        hotkey '> Interrupt'2759                        break2760                    else2761                        cast 'harm'2762                        wait 502763                    endif 2764                endwhile2765                if targetexists harmful2766                    target myKillTarget2767                    settimer harmTimer 02768                    cooldown Harm cdHarm2769                    wait 5002770                endif2771            endif2772            2773        elseif index = 32774                2775            if castFireball = 1 and diffhits < 30 and mana >= 12 and timer fireballTimer >= cdFireball and timer jaseowns_SkillTimerCheck >= cdMeditationMini and mana >= manaReserve2776                while not targetexists harmful2777                    if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2778                        hotkey '> Interrupt'2779                        break2780                    else2781                        cast 'fireball'2782                        wait 502783                    endif 2784                endwhile2785                if targetexists harmful2786                    target myKillTarget2787                    settimer fireballTimer 02788                    cooldown Fireball cdFireball2789                    wait 5002790                endif2791            endif2792 2793        endif2794        2795        if tamerModeEngaged = 12796                2797            if find jaseTankPet ground -1 -1 8 and dead jaseTankPet2798                settimer autoHealTamerPet cdAutoHealTamerPet2799            endif2800        2801            if timer autoHealTamerPet >= cdAutoHealTamerPet2802 2803                if targetexists 2804                    hotkey "Cancel Current Target"2805                endif    2806            2807                if not dead jaseTankPet and find jaseTankPet ground -1 -1 122808                    while not targetexists beneficial2809                        hotkey 'Greater Heal'2810                        wft 2002811                    endwhile2812                elseif mana >= 50 and find jaseTankPet ground -1 -1 42813                   while not targetexists beneficial2814                        hotkey 'Resurrection'2815                        wft 2002816                        if diffhits >= hpCheckToTriggerGreaterHealSpell2817                            break2818                        endif2819                    endwhile2820                    if targetexists beneficial2821                        target jaseTankPet2822                    endif2823                    while not targetexists beneficial and mana >= 122824                        hotkey 'Greater Heal'2825                        wft 2002826                        if diffhits >= hpCheckToTriggerGreaterHealSpell2827                            break2828                        endif2829                    endwhile2830                endif2831                if targetexists beneficial2832                    target jaseTankPet2833                    settimer autoHealTamerPet 02834                    cooldown AutoPetHeal cdAutoHealTamerPet2835                endif2836            endif2837            2838        endif2839    2840    endfor2841   2842    if find myKillTarget -1 -1 12 as killy2843       // do nothing2844    else2845        overhead "Out of range" 342846        break2847    endif2848    2849    2850    if diffhits >= hpCheckToTriggerGreaterHealSpell2851            2852        if diffhits >= hpCheckToTriggerHealPotion and findtype "Yellow Potion" backpack as pot 2853            getlabel pot desc2854            if "next usable" in desc2855                // do nothing2856            else2857                dclick pot2858                wait 5002859            endif2860        endif2861 2862        if diffhits >= hpCheckToTriggerGreaterHealSpell and mana >= 122863            while not targetexists beneficial2864                if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell2865                    cast 'Heal'2866                else2867                    cast 'Greater Heal'                2868                endif2869                wait 502870                if hp = maxhp2871                    hotkey '> Interrupt'2872                    break2873                endif2874            endwhile2875            if targetexists beneficial2876                hotkey "Target Self"2877                wait 502878            endif2879        endif2880    elseif mana < 55 and findbuff "actively meditating" 2881        // wait for mana2882    elseif timer jaseowns_SkillTimerCheck < cdMeditationMini and findbuff "actively meditating" 2883        // wait for mana2884    elseif castChainLightning = 1 and timer chainLightningTimer >= cdChainLightning2885        while not targetexists and mana > 40 and mana >= manaReserve2886            if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2887                overhead "Eating shrooms" 662888                dclick mushy2889                @setvar! jase_shrooms mushy2890                wait 2002891                if insysmsg "You consume a magic mushroom and restore some mana."2892                    settimer magicMushroomTimer 0    2893                elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2894                    settimer magicMushroomTimer 300002895                endif2896            endif2897            if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2898                hotkey '> Interrupt'2899                break2900            else2901                cast 'Chain Lightning'2902                wait 502903            endif 2904        endwhile2905        if targetexists2906            target myKillTarget2907            wait 5002908            if insysmsg "Target cannot be seen." 2909                @setvar! lastCannotBeSeen myKillTarget2910                overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342911                replay2912            endif2913            settimer chainLightningTimer 02914            cooldown ChainLightning cdChainLightning2915        endif2916    elseif castEbolt = 1 and mana >= 32 and mana >= manaReserve2917        while not targetexists harmful and mana > 30 and mana >= manaReserve2918            if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2919                overhead "Eating shrooms" 662920                dclick mushy2921                @setvar! jase_shrooms mushy2922                wait 2002923                if insysmsg "You consume a magic mushroom and restore some mana."2924                    settimer magicMushroomTimer 0    2925                elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2926                    settimer magicMushroomTimer 300002927                endif2928            endif2929            if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2930                hotkey '> Interrupt'2931                break2932            else2933                cast 'Energy Bolt'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    2947        if castMindBlast = 1 and mana >= 32 and mana >= manaReserve2948            while not targetexists harmful and mana > 302949                if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2950                    overhead "Eating shrooms" 662951                    dclick mushy2952                    @setvar! jase_shrooms mushy2953                    wait 2002954                    if insysmsg "You consume a magic mushroom and restore some mana."2955                        settimer magicMushroomTimer 0    2956                    elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2957                        settimer magicMushroomTimer 300002958                    endif2959                endif2960                if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2961                    hotkey '> Interrupt'2962                    break2963                else2964                    cast 'Mind Blast'2965                    wait 502966                endif 2967            endwhile2968            if targetexists harmful2969                target myKillTarget2970                wait 5002971                if insysmsg "Target cannot be seen." 2972                    @setvar! lastCannotBeSeen myKillTarget2973                    overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342974                    replay2975                endif2976            endif2977        endif2978        if castFlamestrike = 1 and mana > 42 and mana >= manaReserve2979            while not targetexists harmful and mana > 402980            2981                if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2982                    overhead "Eating shrooms" 662983                    dclick mushy2984                    @setvar! jase_shrooms mushy2985                    wait 2002986                    if insysmsg "You consume a magic mushroom and restore some mana."2987                        settimer magicMushroomTimer 02988                    elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2989                        settimer magicMushroomTimer 30000    2990                    endif2991                endif2992        2993                if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2994                    hotkey '> Interrupt'2995                    break2996                else2997                    cast 'Flamestrike'2998                    wait 502999                endif 3000            endwhile3001            if targetexists harmful3002                target myKillTarget3003                wait 5003004                if insysmsg "Target cannot be seen." 3005                    @setvar! lastCannotBeSeen myKillTarget3006                    overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 343007                    replay3008                endif3009            endif3010        endif3011    elseif castMindBlast = 1 and mana >= 32 and mana >= manaReserve3012        while not targetexists harmful and mana > 303013            if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy3014                overhead "Eating shrooms" 663015                dclick mushy3016                @setvar! jase_shrooms mushy3017                wait 2003018                if insysmsg "You consume a magic mushroom and restore some mana."3019                    settimer magicMushroomTimer 0    3020                elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"3021                    settimer magicMushroomTimer 300003022                endif3023            endif3024            if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell3025                hotkey '> Interrupt'3026                break3027            else3028                cast 'Mind Blast'3029                wait 503030            endif 3031        endwhile3032        if targetexists harmful3033            target myKillTarget3034            wait 5003035            if insysmsg "Target cannot be seen." 3036                @setvar! lastCannotBeSeen myKillTarget3037                overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 343038                replay3039            endif3040        endif3041        if castFlamestrike = 1 and mana > 42 and mana >= manaReserve3042            while not targetexists harmful and mana > 403043            3044                if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy3045                    overhead "Eating shrooms" 663046                    dclick mushy3047                    @setvar! jase_shrooms mushy3048                    wait 2003049                    if insysmsg "You consume a magic mushroom and restore some mana."3050                        settimer magicMushroomTimer 0    3051                    elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"3052                        settimer magicMushroomTimer 300003053                    endif3054                endif3055        3056                if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell3057                    hotkey '> Interrupt'3058                    break3059                else3060                    cast 'Flamestrike'3061                    wait 503062                endif 3063            endwhile3064            if targetexists harmful3065                target myKillTarget3066                wait 5003067                if insysmsg "Target cannot be seen." 3068                    @setvar! lastCannotBeSeen myKillTarget3069                    overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 343070                    replay3071                endif3072            endif3073        endif3074    elseif castFlamestrike = 1 and mana > 42 and mana >= manaReserve3075        while not targetexists harmful and mana > 403076        3077            if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy3078                overhead "Eating shrooms" 663079                dclick mushy3080                @setvar! jase_shrooms mushy3081                wait 2003082                if insysmsg "You consume a magic mushroom and restore some mana."3083                    settimer magicMushroomTimer 0    3084                elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"3085                    settimer magicMushroomTimer 300003086                endif3087            endif3088    3089            if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell3090                hotkey '> Interrupt'3091                break3092            else3093                cast 'Flamestrike'3094                wait 503095            endif 3096        endwhile3097        if targetexists harmful3098            target myKillTarget3099            wait 5003100            if insysmsg "Target cannot be seen." 3101                @setvar! lastCannotBeSeen myKillTarget3102                overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 343103                replay3104            endif3105        endif3106    elseif not findbuff "actively meditating" and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy3107        overhead "Eating shrooms" 663108        dclick mushy3109        @setvar! jase_shrooms mushy3110        wait 2003111        if insysmsg "You consume a magic mushroom and restore some mana."3112            settimer magicMushroomTimer 0    3113        elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"3114            settimer magicMushroomTimer 300003115        endif3116        elseif not findbuff "actively meditating" and timer jaseowns_SkillTimerCheck >= cdMeditation and isDiscorded = 1 and isPeaced = 13117        if followers > 03118            say "all guard me"3119        endif3120        useskill 'meditation'3121        settimer jaseowns_SkillTimerCheck 03122        wait 5003123    endif3124    wait 503125endwhile3126wait 5003127if targetexists 3128    hotkey 'Cancel Current Target'3129endif3130if not findbuff "actively meditating" 3131    if automaticallySkinCorpses = 1 and findtype "corpse" ground -1 -1 2 as jorpse3132        if findtype "Elven Spellblade" backpack3133            while not targetexists neutral3134                useskill 'forensicevaluation'3135            endwhile3136            if targetexists neutral3137                hotkey "Target Self"3138                wait minimumWaitForPing3139                @ignore jorpse3140            endif3141        endif3142    endif3143    if followers > 03144        say "all guard me"3145    endif3146endif3147while mana < minimumManaToCast3148    if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 03149        hotkey 'Target Closest Non-Friendly Monster'3150        wait 2003151        if insysmsg "No one matching that was found"3152            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam3153                overhead "no next target" 343154                settimer preventOverheadSpamTimer 03155            endif3156        elseif not find lasttarget ground -1 -1 83157            overhead "� NEXT TARGET HERE �" 88 lasttarget3158            if timer preventOverheadSpamTimer >= cdPreventOverheadSpam3159                overhead "Move closer, more then 8 tiles away" 343160                settimer preventOverheadSpamTimer 03161            endif3162        else3163            overhead "� NEXT TARGET HERE �" 88 lasttarget3164            attack lasttarget3165        endif    3166    endif3167    if diffhits >= hpCheckToTriggerGreaterHealSpell3168        if diffhits >= hpCheckToTriggerHealPotion and findtype "Yellow Potion" backpack as pot 3169            getlabel pot desc3170            if "next usable" in desc3171                // do nothing3172            else3173                dclick pot3174                wait 6503175            endif3176        endif3177        if diffhits >= hpCheckToTriggerGreaterHealSpell and mana >= 123178            while not targetexists beneficial3179                if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell3180                    cast 'Heal'3181                else3182                    cast 'Greater Heal'                3183                endif3184                wait 503185                if hp = maxhp3186                    hotkey '> Interrupt'3187                    break3188                endif3189            endwhile3190            if targetexists beneficial3191                hotkey "Target Self"3192                wait 503193            endif3194        endif3195    endif3196    if not findbuff "actively meditating" 3197        useskill 'meditation'3198    endif3199    wait 5003200endwhile3201if canYouMakeAMushroom = 1 and counttype "mushroom" backpack < butOnlyIHaveLessThenThisCount3202    if mana >= manaReserve3203        while counttype "mushroom" backpack < makeThisManyMushroomsCount3204            cast "Create Food"3205            wait 2003206            if diffhits >= 20 or counttype "mushroom" backpack = 03207                break3208            endif3209        endwhile3210    endif3211endif3212if castVampiricEmbrace = 1 and timer vampiricEmbraceTimer >= cdVampiricEmbrace and skill "Necromancy" >= 70 and findtype 8198 ground -1 -1 4 as jorpse3213    say "[VampiricEmbrace"3214    wft 5003215    target jorpse3216    settimer vampiricEmbraceTimer 03217    cooldown VampiricEmbrace cdVampiricEmbrace3218endif3219if castSummonEarthElementalCount = 1 or castSummonFireElementalCount = 1 or castSummonDemonCount = 1 or castSummonAirCount = 1 or castSummonWaterCount = 13220    useskill "spiritspeak"3221    settimer jaseowns_SkillTimerCheck 80003222endif3223if timer killTargetTimer >= cdKillTarget3224    overhead "We cleared curse and mana drain targets" 343225    removelist myCursedTargets      3226    removelist myManaDrainTargets3227    removelist myManaVampireTargets3228endif3229   3230if autoBotEnabled = 13231    replay3232endif3233 3234// other ways to handle line of sight:3235    3236// animal lore3237// You cannot see that from here.3238 3239// casting a spell3240// Target cannot be seen.3241 3242 3243// thanks for using a Jaseowns script!3244// https://www.youtube.com/jaseowns3245// https://jaseowns.com/discord3246    3247// We did it