Modified Mage Bot By DaKlue V1.0.0 Dorrian requested more herding and vet for pets. One hotkey mage cycle, nox, poison by Jaseowns UO Outlands - https://outlands.uorazorscripts.com/mage-bot 8/18/2023 - add new target system - nearest/ next…
TamingHealingCombatMagicMeditationDiscordancePeacemakingHerdingTracking
Mage Bot w Tamer.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/9645a7f1-f4f5-4a6b-b155-a9fcfb729ded for latest2# Automation by Jaseowns3## Script: Mage Bot w/ Tamer4## Created by: daklue#05#############################################6 7# Modified Mage Bot By DaKlue V1.0.08#Dorrian requested more herding and vet for pets.9# One hotkey mage cycle, nox, poison by Jaseowns10# UO Outlands - https://outlands.uorazorscripts.com/mage-bot11#12# Version: v10.1.013#14# 15// 8/18/202316// - add new target system - nearest/ next17#18##################19## Always room for improvment, thanks for watching!20############21 22 23# continue to fight the same target even after summons24# target not seen - (warmode maybe?)25@setvar! minimumWaitForPing 20026 27# make sure you add a friends list called: IgnoreMobs28@setvar! didYouSetupIgnoreMobs 029 30 31// 0 you choose (all kill)32// 1 will target nearest33// 2 will be find type34// 3 will be target next (newest one 8/14/2023)35@setvar! useTargetSystem 336 37# Do you want to use the new FindType code? Use 1 here38# Do you want to use the Target Nearest / Next? Use 2 here39# Else it will use the Target Closest Mon functionality 40@setvar! useFindTypeToTargetMonster 241 42# after a kill you must have this amount of mana to continue to next target43@setvar! minimumManaToCast 55 44 45# Set this to one, if you want to cast poison once no matter what46# If you have 100 poisoning and want Lethal, set this to 047@setvar! castPoisonAnyway 048 49# This will auto replay this script if you want it too50@setvar! autoBotEnabled 151 52# Tracking for reds 0 = Do Nothing53# Tracking for reds Recall away with magery and runebook = 1 54@setvar! redsnearby 055 56# Update this variable to 1 for ALL KILL57# Update this variable to 0 for target nearest58@setvar! setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster 059 60################################61###### Random abilities62################63@setvar! automaticallySkinCorpses 164@setvar! manaReserve 5065@setvar! cdRetryBasedOnTargetNotSeen 200066 67# Ultimate Summoner Hotkey Choose your summons by Jaseowns68# UO Outlands69# This is part of the mage bot, but you can have it70# as its own hotkey71 72###############73### Choose your summons74######75@setvar! breakSpellCastAndResummonIfLessThanXFollowers 476@setvar! renamePets 077 78# Earth: 0, 1, 279@setvar! castSummonEarthElementalCount 080@setvar! castSummonMummyCount 181 82# Fire: 0, 1, 283@setvar! castSummonFireElementalCount 084@setvar! castSummonLichCount 185 86# Demon: 0, 1, 287@setvar! castSummonDemonCount 088@setvar! castSummonThrallCount 089 90# Air: 0, 1, 291@setvar! castSummonAirCount 092@setvar! castSummonFiendCount 093 94# Water: 0, 1, 295@setvar! castSummonWaterCount 096@setvar! castSummonRagWitchCount 097 98# Creature: 0, 1, 2, 3, 4, 599@setvar! castSummonCreatureCount 0100 101# Energy Vortex: 0, 1102@setvar! castEnergyVortexCount 0103@setvar! castJackalSpiritCount 0104 105# Blade Spirit: 0, 1106@setvar! castBladeSpiritCount 0107@setvar! castSkeletalHuskCount 0108 109###############110### Choose your spells111######112@setvar! castCurse 1113@setvar! castManadrain 0114@setvar! castManaVampire 0115@setvar! castLightning 1116@setvar! castChainLightning 0117@setvar! castFireball 1118@setvar! castHarm 1119@setvar! castMagicArrow 1120# When other spells are on cooldown, do you want to cast Ebolt, MindBlast, Flamestrike or all three121@setvar! castEbolt 1122@setvar! castMindBlast 1123@setvar! castFlamestrike 0124 125 126################################127###### Heal Controllers128################129@setvar! hpCheckToTriggerGreaterHealSpell 30130@setvar! hpCheckToTriggerMiniEmergencyHealSpell 60131@setvar! hpCheckToTriggerHealPotion 45132 133################################134###### Potion Controllers135################136@setvar! automaticallyDrinkStrPotIfOverWeight 1137# Drink Magic resist potion (only if magic shield buff not found)138@setvar! automaticallyDrinkMagicPot 1139@setvar! automaticallyDrinkHealPot 1140@setvar! automaticallyDrinkCurePot 1141#@setvar! automaticallyDrinkRefreshPot 1142 143@setvar! hpCheckToTriggerCurePotion 45144#@setvar! stamDiffCheckToTriggerRedPotion 10145 146 147### Buffs148@setvar! castBless 0149@setvar! castArchProtection 0150@setvar! castMagicShield 1151@setvar! castReactiveArmor 1152 153if skill "Inscription" >= 50154 @setvar! castBless 1155 @setvar! castArchProtection 1156endif157 158 159###############160### Choose your necro spells (ignored if less then required necro skill)161######162@setvar! castEvilOmen 1163@setvar! castCorpseSkin 1164@setvar! castVampiricEmbrace 1165@setvar! castMindRot 1166@setvar! castPoisonStrike 1167@setvar! castBloodOath 1168@setvar! castPainSpike 1169@setvar! requireWitherBeforeSummons 0170 171###############172### Edit these cooldowns to match your wizard grimoire173######174@setvar! canYouMakeAMushroom 1175@setvar! cdLightning 20000176@setvar! cdChainLightning 60000177@setvar! cdMagicArrow 20000178@setvar! cdHarm 20000179@setvar! cdFireball 20000180 181@setvar! cdAutoHealTamerPet 15000182 183###############184### Necro Cooldowns185######186@setvar! cdEvilOmen 30500187@setvar! cdVampiricEmbrace 30500188@setvar! cdCorpseSkin 30500189@setvar! cdMindRot 30500190@setvar! cdWither 30500191@setvar! cdVengefulSpirit 30500192@setvar! cdBloodOath 30500193@setvar! cdPainSpike 30500194@setvar! cdPoisonStrike 30500195 196#### Buff Cooldowns197@setvar! cdMushroom 61000198@setvar! cdMagicShield 61000199@setvar! cdReactiveArmor 61000200@setvar! cdMeditation 10000201@setvar! cdMeditationMini 3000202@setvar! cdKillTarget 60000203 204#### Random cooldowns205@setvar! cdPreventOverheadSpam 2000206@setvar! cdSkinningCheck 3000207@setvar! cdCleansingBrew 125000208@setvar! cdHerdingTimer 4000 209 210#### Mushroom count (I like a lot of shroomies)211@setvar! makeThisManyMushroomsCount 15212@setvar! butOnlyIHaveLessThenThisCount 5213 214#### This will send in pet for out of range targets215@setvar! patrolPetEvenIfLastTargetIsBeyondEightTiles 1216 217if counttype "gold coin" backpack as total218 if diffweight < 10 and 10000 < total219 overhead "Warning: {{total}} gold and no weight!" 34220 endif221endif222 223#### Pet Names, unique to you224if not listexists petNameList225 createlist petNameList226endif227if list petNameList = 0228 pushlist petNameList "jaseneccy"229 pushlist petNameList "jaseyoutube"230 pushlist petNameList "jaseytfollow"231 pushlist petNameList "jaseytfollower"232 pushlist petNameList "jasesubscribed"233 pushlist petNameList "jaseoutlands"234 pushlist petNameList "jaseuorazorscripts"235 pushlist petNameList "jaseyoutuber"236 pushlist petNameList "jasefunez"237 pushlist petNameList "jasetwitch"238 pushlist petNameList "jasesubscribe"239 pushlist petNameList "jasefueoz"240endif241 242@setvar! jaseDebugMode 0243 244##################################################################245# 246# Hopefully you do not have to edit after this :)247#248##################################################################249 250if dead 251 overhead "Rip" 34252 for 10253 if gumpexists 2957810225254 gumpresponse 1 2957810225255 break256 endif 257 wait 500258 endfor259 replay260endif261 262##################################################################263# 264# TAMER MODE265#266##################################################################267@setvar! tamerModeEngaged 0268@setvar! vetTimerCd 8000269// 0 = bandaid270// 1 = vet supplies271// 2 = both272@setvar! Veterinaryhealtype 2273 274if skill "Animal Taming" > 50275 @setvar! tamerModeEngaged 1276 if not varexist jaseTankPet or not find jaseTankPet ground -1 -1 12277 overhead "Select your tank pet" 88278 @setvar! jaseTankPet 279 endif280endif281 282// Vet Bandage timer 283if not timerexists 'vetTimer'284 settimer vetTimer vetTimerCd285endif286 287// Bandage tankpet every 8 seconds288if skill 'veterinary' > 50 and timer 'vetTimer' > 8000289 if Veterinaryhealtype = 0 and not bandaging and findtype "clean bandage%s%" backpack as item290 dclick item291 wft 500292 target jaseTankPet293 wait 200294 hotkey 'Cancel current target'295 elseif Veterinaryhealtype = 1 and not bandaging and findtype "veterinary supplies" backpack as item296 dclick item297 wft 500298 target jaseTankPet299 wait 200300 hotkey 'Cancel current target'301 elseif Veterinaryhealtype = 2 and not bandaging and findtype "veterinary supplies|clean bandage%s%" backpack as item302 dclick item303 wft 500304 target jaseTankPet305 wait 200306 hotkey 'Cancel current target'307 endif308 309 if insysmsg 'not damaged'310 settimer 'vetTimer' 4000311 else312 settimer 'vetTimer' 0313 endif314endif315 316if weight >= maxweight and not findbuff "strength" and automaticallyDrinkStrPotIfOverWeight = 1 and findtype "white potion" backpack as pot317 dclick pot318 wait 200319endif320 321if not gumpexists 622436516 and skill "Necromancy" >= 50322 say '[NecromancyHotbar'323 wait 500324endif325 326if skill "Tracking" >= 0327 if not findbuff "tracking"328 clearsysmsg329 while not gumpexists 4267467659330 useskill 'tracking'331 wait minimumWaitForPing332 endwhile333 if gumpexists 4267467659334 while not insysmsg "You will now hunt all hostile players."335 gumpresponse 8 4267467659336 waitforgump 4267467659 5000337 endwhile338 gumpresponse 6 4267467659339 wait minimumWaitForPing340 endif341 gumpclose 4267467659342 endif343endif344 345if not varexist red_recall_runebook346 overhead "Select your escape runebook" 88347 setvar red_recall_runebook348endif349 350if not listexists "red_recall_actions"351 createlist "red_recall_actions"352endif353 354if inlist "red_recall_actions" "red_alert"355 overhead "Red Alert!" 34356 if redsnearby = 0 357 //Do Nothing.358 elseif redsnearby = 1 and skill "Magery" >= 40 359 overhead 'Recalling...'360 while not targetexists361 cast "Recall"362 wft 500363 endwhile364 target red_recall_runebook365 endif366 poplist "red_recall_actions" "red_alert"367endif368 369if not timerexists skinningCheckTimer370 settimer skinningCheckTimer cdSkinningCheck371endif372 373if not timerexists retryBasedOnTargetNotSeenTimer374 settimer retryBasedOnTargetNotSeenTimer cdRetryBasedOnTargetNotSeen375endif376 377 378if automaticallySkinCorpses = 1 and findtype "corpse" ground -1 -1 3 as jorpse379 if findtype "Elven Spellblade" backpack and timer skinningCheckTimer >= cdSkinningCheck 380 while not targetexists 381 useskill 'forensicevaluation'382 endwhile383 if targetexists beneficial or targetexists neutral384 hotkey "Target Self"385 wait minimumWaitForPing386 settimer skinningCheckTimer 0387 @ignore jorpse388 endif389 if insysmsg "You must wait"390 // Wait message391 overhead 'You must wait..' 34392 wait 500393 replay394 endif395 endif 396endif397 398// Make sure we have a spell book attached399if findlayer self righthand as item400 // do nothing401elseif findtype "3834" backpack as item402 getlabel item spellBookDesc403 if "blessed" in spellBookDesc404 @ignore item405 else406 dclick item 407 endif408else 409 overhead "No book bro!" 34410endif411 412// Setting current necro symbols - checks again it the attack loop413@setvar! necroSymbols 12414if gumpexists 622436516 and skill "Necromancy" >= 50415 if ingump "12/" 622436516416 @setvar! necroSymbols 12417 elseif ingump "13/" 622436516418 @setvar! necroSymbols 13419 elseif ingump "14/" 622436516420 @setvar! necroSymbols 14421 elseif ingump "15/" 622436516422 @setvar! necroSymbols 15423 elseif ingump "16/" 622436516424 @setvar! necroSymbols 16425 elseif ingump "17/" 622436516426 @setvar! necroSymbols 17427 elseif ingump "18/" 622436516428 @setvar! necroSymbols 18429 elseif ingump "19/" 622436516430 @setvar! necroSymbols 19431 elseif ingump "20/" 622436516432 @setvar! necroSymbols 20433 elseif ingump "21/" 622436516434 @setvar! necroSymbols 21435 elseif ingump "11/" 622436516436 @setvar! necroSymbols 11437 elseif ingump "10/" 622436516438 @setvar! necroSymbols 10439 elseif ingump "9/" 622436516440 @setvar! necroSymbols 9441 elseif ingump "8/" 622436516442 @setvar! necroSymbols 8443 elseif ingump "7/" 622436516444 @setvar! necroSymbols 7445 elseif ingump "6/" 622436516446 @setvar! necroSymbols 6447 elseif ingump "5/" 622436516448 @setvar! necroSymbols 5449 elseif ingump "4/" 622436516450 @setvar! necroSymbols 4451 elseif ingump "3/" 622436516452 @setvar! necroSymbols 3453 elseif ingump "2/" 622436516454 @setvar! necroSymbols 2455 elseif ingump "1/" 622436516456 @setvar! necroSymbols 1457 elseif ingump "0/" 622436516458 @setvar! necroSymbols 0459 endif460endif461 462if not timerexists reactiveArmorTimer463 createtimer reactiveArmorTimer464 settimer reactiveArmorTimer cdMagicShield465endif466 467if not timerexists cleansingBrewTimer468 settimer cleansingBrewTimer cdCleansingBrew469endif470 471if not timerexists magicShieldTimer472 createtimer magicShieldTimer473 settimer magicShieldTimer cdMagicShield474endif475 476if not timerexists magicMushroomTimer477 createtimer magicMushroomTimer478 settimer magicMushroomTimer cdMushroom479endif480 481if not timerexists magicArrowTimer482 createtimer magicArrowTimer483 settimer magicArrowTimer cdMagicArrow484endif485 486if not timerexists lightningTimer487 createtimer lightningTimer488 settimer lightningTimer cdLightning489endif490 491if not timerexists chainLightningTimer492 settimer chainLightningTimer cdChainLightning493endif494 495if not timerexists harmTimer496 createtimer harmTimer497 settimer harmTimer cdHarm498endif499 500if not timerexists autoHealTamerPet501 createtimer autoHealTamerPet502 settimer autoHealTamerPet cdAutoHealTamerPet503endif504 505if not timerexists fireballTimer506 createtimer fireballTimer507 settimer fireballTimer cdFireball508endif509 510if not timerexists evilOmenTimer511 createtimer evilOmenTimer512 settimer evilOmenTimer cdEvilOmen513endif514 515if not timerexists vampiricEmbraceTimer516 createtimer vampiricEmbraceTimer517 settimer vampiricEmbraceTimer cdVampiricEmbrace518endif519 520if not timerexists corpseSkinTimer521 createtimer corpseSkinTimer522 settimer corpseSkinTimer cdCorpseSkin523endif524 525if not timerexists mindRotTimer526 createtimer mindRotTimer527 settimer mindRotTimer cdMindRot528endif529 530if not timerexists meditiationTimer531 createtimer meditiationTimer532 settimer meditiationTimer cdMeditation533endif534 535if not timerexists killTargetTimer536 createtimer killTargetTimer537 settimer killTargetTimer cdKillTarget538endif539 540if not timerexists witherTimer541 createtimer witherTimer542 settimer witherTimer cdWither543endif544 545if not timerexists vengefulSpiritTimer546 createtimer vengefulSpiritTimer547 settimer vengefulSpiritTimer cdVengefulSpirit548endif549 550if not timerexists bloodOathTimer551 createtimer bloodOathTimer552 settimer bloodOathTimer cdBloodOath553endif554 555if not timerexists painSpikeTimer556 createtimer painSpikeTimer557 settimer painSpikeTimer cdPainSpike558endif559 560if not timerexists poisonStrikeTimer561 createtimer poisonStrikeTimer562 settimer poisonStrikeTimer cdPoisonStrike563endif564 565if not timerexists preventOverheadSpamTimer566 createtimer preventOverheadSpamTimer567 settimer preventOverheadSpamTimer cdPreventOverheadSpam568endif569 570if not timerexists HerdTimer571 createtimer HerdTimer572 settimer HerdTimer cdHerdingTimer573endif574 575@setvar! cdPreventSpamNecroAbilities 750576if not timerexists preventSpamNecroAbilitiesTimer577 createtimer preventSpamNecroAbilitiesTimer578 settimer preventSpamNecroAbilitiesTimer cdPreventSpamNecroAbilities579endif580 581if not varexist myEarthPet582 @setvar! myEarthPet 0583endif584 585// make sure we have enough symbols to summon (6 for wither + vengful spirit)586if skill "Necromancy" >= 90 and requireWitherBeforeSummons = 1587 while followers < 4 and 6 > necroSymbols588 // we already have vengeful spirit active, skip the check589 if timer vengefulSpiritTimer < cdVengefulSpirit590 break591 endif592 if diffhits >= hpCheckToTriggerGreaterHealSpell593 if targetexists 594 hotkey 'Cancel Current Target'595 endif596 while not targetexists 'beneficial'597 if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell598 cast 'Heal'599 else600 cast 'Greater Heal' 601 endif602 wait 50603 if hp = maxhp604 hotkey '> Interrupt'605 break606 endif607 endwhile608 if targetexists 'beneficial'609 hotkey 'Target Self'610 endif611 endif612 if timer preventOverheadSpamTimer >= cdPreventOverheadSpam613 overhead "waiting for symbols" 88614 settimer preventOverheadSpamTimer 0615 endif616 if gumpexists 622436516 and skill "Necromancy" >= 50617 if ingump "12/" 622436516618 @setvar! necroSymbols 12619 elseif ingump "13/" 622436516620 @setvar! necroSymbols 13621 elseif ingump "14/" 622436516622 @setvar! necroSymbols 14623 elseif ingump "15/" 622436516624 @setvar! necroSymbols 15625 elseif ingump "16/" 622436516626 @setvar! necroSymbols 16627 elseif ingump "17/" 622436516628 @setvar! necroSymbols 17629 elseif ingump "18/" 622436516630 @setvar! necroSymbols 18631 elseif ingump "19/" 622436516632 @setvar! necroSymbols 19633 elseif ingump "20/" 622436516634 @setvar! necroSymbols 20635 elseif ingump "21/" 622436516636 @setvar! necroSymbols 21637 elseif ingump "11/" 622436516638 @setvar! necroSymbols 11639 elseif ingump "10/" 622436516640 @setvar! necroSymbols 10641 elseif ingump "9/" 622436516642 @setvar! necroSymbols 9643 elseif ingump "8/" 622436516644 @setvar! necroSymbols 8645 elseif ingump "7/" 622436516646 @setvar! necroSymbols 7647 elseif ingump "6/" 622436516648 @setvar! necroSymbols 6649 elseif ingump "5/" 622436516650 @setvar! necroSymbols 5651 elseif ingump "4/" 622436516652 @setvar! necroSymbols 4653 elseif ingump "3/" 622436516654 @setvar! necroSymbols 3655 elseif ingump "2/" 622436516656 @setvar! necroSymbols 2657 elseif ingump "1/" 622436516658 @setvar! necroSymbols 1659 elseif ingump "0/" 622436516660 @setvar! necroSymbols 0661 endif662 endif663 endwhile664endif665 666 667if diffhits >= hpCheckToTriggerGreaterHealSpell668 if targetexists 669 hotkey 'Cancel Current Target'670 endif671 hotkey 'all guard me'672 while not targetexists 'beneficial'673 if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell674 cast 'Heal'675 else676 cast 'Greater Heal' 677 endif678 wait 50679 if hp = maxhp680 hotkey '> Interrupt'681 break682 endif683 endwhile684 if targetexists 'beneficial'685 hotkey "Target Self"686 endif687 replay688endif689 690if renamePets = 0691 clearlist petNameList692endif693 694if castSummonFireElementalCount > 0 and castSummonLichCount > 0695 overhead "I am not going to do that. Update lich/fire to one or the other." 34696 sysmsg "I am not going to do that. Update lich/fire to one or the other." 34697 wait 2000698 replay699elseif castSummonEarthElementalCount > 0 and castSummonMummyCount > 0700 overhead "I am not going to do that. Update earth/mummy to one or the other." 34701 sysmsg "I am not going to do that. Update earth/mummy to one or the other." 34702 wait 2000703 replay704elseif castSummonDemonCount > 0 and castSummonThrallCount > 0705 overhead "I am not going to do that. Update demon/thrall to one or the other." 34706 sysmsg "I am not going to do that. Update demon/thrall to one or the other." 34707 wait 2000708 replay709elseif castSummonAirCount > 0 and castSummonFiendCount > 0710 overhead "I am not going to do that. Update air/fiend to one or the other." 34711 sysmsg "I am not going to do that. Update air/fiend to one or the other." 34712 wait 2000713 replay714elseif castSummonWaterCount > 0 and castSummonRagWitchCount > 0715 overhead "I am not going to do that. Update water/witch to one or the other." 34716 sysmsg "I am not going to do that. Update water/witch to one or the other." 34717 wait 2000718 replay719endif720 721if not gumpexists 622436516 and skill "Necromancy" >= 50722 say '[NecromancyHotbar'723 wait 500724endif725 726if not varexist myMainTankPet727 @setvar! myMainTankPet 0728endif729 730if not varexist fireOne731 @setvar! fireOne 0732endif733 734if not varexist fireTwo735 @setvar! fireTwo 0736endif737 738if not varexist earthOne739 @setvar! earthOne 0740endif741 742if not varexist earthTwo743 @setvar! earthTwo 0744endif745 746if not varexist demonOne747 @setvar! demonOne 0748endif749 750if not varexist demonTwo751 @setvar! demonTwo 0752endif753 754if not varexist airOne755 @setvar! airOne 0756endif757 758if not varexist airTwo759 @setvar! airTwo 0760endif761 762if not varexist waterOne763 @setvar! waterOne 0764endif765 766if not varexist waterTwo767 @setvar! waterTwo 0768endif769 770if not varexist evOne771 @setvar! evOne 0772endif773 774if not varexist bsOne775 @setvar! bsOne 0776endif777 778removelist summonList779createlist summonList780 781if followers = 0782 @setvar! followCount 0783elseif followers = 1784 @setvar! followCount 1785elseif followers = 2786 @setvar! followCount 2787elseif followers = 3788 @setvar! followCount 3789elseif followers = 4790 @setvar! followCount 4791elseif followers = 5792 @setvar! followCount 5793endif794 795if castSummonEarthElementalCount > 0 or castSummonMummyCount > 0796 if dead earthOne or not find earthOne ground -1 -1 18797 if followers < 4798 pushlist summonList "Earth Elemental"799 @setvar! earthOne 1800 endif801 endif802 if castSummonEarthElementalCount > 1 or castSummonMummyCount > 1803 if dead earthTwo or not find earthTwo ground -1 -1 18804 if followers < 4805 pushlist summonList "Earth Elemental"806 @setvar! earthTwo 1807 endif808 endif809 endif810endif811 812if castSummonFireElementalCount > 0 or castSummonLichCount > 0813 if dead fireOne or not find fireOne ground -1 -1 18814 if followers < 4815 pushlist summonList "Fire Elemental"816 @setvar! fireOne 1817 endif818 endif819 if castSummonFireElementalCount > 1 or castSummonLichCount > 1820 if dead fireTwo or not find fireTwo ground -1 -1 18821 if followers < 4822 pushlist summonList "Fire Elemental"823 @setvar! fireTwo 1824 endif825 endif826 endif827endif828 829if castSummonDemonCount > 0 or castSummonThrallCount > 0830 if dead demonOne or not find demonOne ground -1 -1 18831 if followers < 4832 pushlist summonList "Summon Daemon"833 @setvar! demonOne 1834 endif835 endif836 if castSummonDemonCount > 1 or castSummonThrallCount > 1837 if dead demonTwo or not find demonTwo ground -1 -1 18838 if followers < 4839 pushlist summonList "Summon Daemon"840 @setvar! demonTwo 1841 endif842 endif843 endif844endif845 846if castSummonAirCount > 0 or castSummonFiendCount > 0847 if dead airOne or not find airOne ground -1 -1 18848 if followers < 4849 pushlist summonList "Air Elemental"850 @setvar! airOne 1851 endif852 endif853 if castSummonAirCount > 1 or castSummonFiendCount > 1854 if dead airTwo or not find airTwo ground -1 -1 18855 if followers < 4856 pushlist summonList "Air Elemental"857 @setvar! airTwo 1858 endif859 endif860 endif861endif862 863if castSummonWaterCount > 0 or castSummonRagWitchCount > 0864 if dead waterOne or not find waterOne ground -1 -1 18865 if followers < 4866 pushlist summonList "Water Elemental"867 @setvar! waterOne 1868 endif869 endif870 if castSummonWaterCount > 1 or castSummonRagWitchCount > 1871 if dead waterTwo or not find waterTwo ground -1 -1 18872 if followers < 4873 pushlist summonList "Water Elemental"874 @setvar! waterTwo 1875 endif876 endif877 endif878endif879 880if castEnergyVortexCount > 0 or castJackalSpiritCount > 0881 if dead evOne or not find evOne ground -1 -1 18882 if followers < 5883 pushlist summonList "Energy Vortex"884 @setvar! evOne 1885 endif886 endif887endif888 889if castBladeSpiritCount > 0 or castSkeletalHuskCount > 0890 if dead bsOne or not find bsOne ground -1 -1 18891 if followers < 5892 pushlist summonList "Blade Spirits"893 @setvar! bsOne 1894 endif895 endif896endif897 898if followers < 5899 if castSummonCreatureCount = 1900 pushlist summonList "Summ. Creature"901 elseif castSummonCreatureCount = 2902 pushlist summonList "Summ. Creature"903 pushlist summonList "Summ. Creature"904 elseif castSummonCreatureCount = 3905 pushlist summonList "Summ. Creature"906 pushlist summonList "Summ. Creature"907 pushlist summonList "Summ. Creature"908 elseif castSummonCreatureCount = 4909 pushlist summonList "Summ. Creature"910 pushlist summonList "Summ. Creature"911 pushlist summonList "Summ. Creature"912 pushlist summonList "Summ. Creature"913 elseif castSummonCreatureCount = 5914 pushlist summonList "Summ. Creature"915 pushlist summonList "Summ. Creature"916 pushlist summonList "Summ. Creature"917 pushlist summonList "Summ. Creature"918 pushlist summonList "Summ. Creature"919 endif920 while targetexists 921 hotkey 'Cancel Current Target'922 wait 200923 endwhile924endif925 926foreach summon in summonList927 if followers < 5928 overhead "Casting Summon: {{summon}}" 88929 while mana < 50930 if timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy931 overhead "Eating shrooms" 66932 dclick mushy933 @setvar! jase_shrooms mushy934 wait 200935 if insysmsg "You consume a magic mushroom and restore some mana."936 settimer magicMushroomTimer 0 937 elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"938 settimer magicMushroomTimer 30000939 endif940 endif941 if diffhits >= hpCheckToTriggerGreaterHealSpell942 replay943 endif944 if timer preventOverheadSpamTimer >= cdPreventOverheadSpam945 overhead "waiting for mana" 88946 settimer preventOverheadSpamTimer 0947 endif948 if not findbuff "Actively Meditating"949 useskill "meditation"950 endif951 wait 200952 endwhile953 954 @setvar! needVengefulSpirit 0955 956 if summon = "Earth Elemental" and castSummonMummyCount > 0957 @setvar! needVengefulSpirit 1958 elseif summon = "Fire Elemental" and castSummonLichCount > 0959 @setvar! needVengefulSpirit 1960 elseif summon = "Summon Daemon" and castSummonThrallCount > 0961 @setvar! needVengefulSpirit 1962 elseif summon = "Air Elemental" and castSummonFiendCount > 0963 @setvar! needVengefulSpirit 1964 elseif summon = "Water Elemental" and castSummonRagWitchCount > 0965 @setvar! needVengefulSpirit 1966 elseif summon = "Summ. Creature" and skill "Necromancy" >= 50967 @setvar! needVengefulSpirit 1968 elseif summon = "Energy Vortex" and castJackalSpiritCount > 0969 @setvar! needVengefulSpirit 1970 elseif summon = "Blade Spirits" and castSkeletalHuskCount > 0971 @setvar! needVengefulSpirit 1972 elseif timer vengefulSpiritTimer <= cdVengefulSpirit and skill "Necromancy" >= 50973 if timer preventOverheadSpamTimer >= cdPreventOverheadSpam974 overhead "Waiting for spirit to go away" 88975 settimer preventOverheadSpamTimer 0976 endif977 replay978 endif979 980 if needVengefulSpirit = 1981 if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50982 yell "[VengefulSpirit"983 settimer vengefulSpiritTimer 0984 wait 500985 endif986 elseif timer vengefulSpiritTimer <= cdVengefulSpirit and skill "Necromancy" >= 50987 if timer preventOverheadSpamTimer >= cdPreventOverheadSpam988 overhead "Waiting for spirit to go away" 88989 settimer preventOverheadSpamTimer 0990 endif991 replay992 endif993 994 if followers = 0995 @setvar! followCount 0996 elseif followers = 1997 @setvar! followCount 1998 elseif followers = 2999 @setvar! followCount 21000 elseif followers = 31001 @setvar! followCount 31002 elseif followers = 41003 @setvar! followCount 41004 elseif followers = 51005 @setvar! followCount 51006 endif1007 1008 if summon = "Summ. Creature" or summon = "Blade Spirits"1009 // these only take 1 - so keep trying to cast1010 elseif followers >= 41011 // if we already at 4, skip to next summon1012 break1013 endif1014 1015 1016 while followers = followCount1017 if followers = 51018 break1019 endif1020 cast summon1021 wft 5001022 if targetexists 1023 hotkey "Target Self"1024 wait 2001025 endif1026 if timer witherTimer >= cdWither and skill "Necromancy" >= 951027 yell "[Wither"1028 settimer witherTimer 01029 endif1030 if diffhits >= hpCheckToTriggerGreaterHealSpell1031 if targetexists 1032 hotkey "Cancel Current target"1033 endif1034 overhead "Need a heal!"1035 hotkey '> Interrupt'1036 while diffhits >= hpCheckToTriggerGreaterHealSpell and mana > 121037 while not targetexists beneficial1038 if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell1039 cast 'Heal'1040 else1041 cast 'Greater Heal' 1042 endif1043 wait 501044 endwhile1045 while targetexists beneficial1046 hotkey "Target Self"1047 wait 501048 endwhile1049 endwhile1050 endif1051 endwhile1052 wait 2001053 1054 @setvar! myFreshlySummonedPet 01055 1056 // 158 - an ancient mummy1057 // 14 - an earth elemental1058 if summon = "Earth Elemental" and findtype 158|14 ground -1 -1 2 as myPet1059 @setvar! myFreshlySummonedPet myPet1060 if earthOne = 11061 @setvar! earthOne myPet1062 elseif earthTwo = 11063 @setvar! earthTwo myPet1064 endif1065 // 24 - a lich1066 // 15 - a fire elemental1067 elseif summon = "Fire Elemental" and findtype 24|15 ground -1 -1 2 as myPet1068 @setvar! myFreshlySummonedPet myPet1069 if fireOne = 11070 @setvar! fireOne myPet1071 elseif fireTwo = 11072 @setvar! fireTwo myPet1073 endif1074 // 9 - a deamon1075 // 722 - a vampire thrall1076 elseif summon = "Summon Daemon" and findtype 9|722 ground -1 -1 2 as myPet1077 @setvar! myFreshlySummonedPet myPet1078 if demonOne = 11079 @setvar! demonOne myPet1080 elseif demonTwo = 11081 @setvar! demonTwo myPet1082 endif1083 // 16 - water elemental1084 // 740 - a rage witch1085 elseif summon = "Water Elemental" and findtype 16|740 ground -1 -1 2 as myPet1086 @setvar! myFreshlySummonedPet myPet1087 if waterOne = 11088 @setvar! waterOne myPet1089 elseif waterTwo = 11090 @setvar! waterTwo myPet1091 endif1092 // 13 - air elemental1093 // 306 - a skeletal fiend1094 elseif summon = "Air Elemental" and findtype 13|306 ground -1 -1 2 as myPet1095 @setvar! myFreshlySummonedPet myPet1096 if airOne = 11097 @setvar! airOne myPet1098 elseif airTwo = 11099 @setvar! airTwo myPet1100 endif1101 elseif summon = "Summ. Creature"1102 // TODO: gather all summon creature types1103 1104 // 13 - an energy vortex1105 // 391 - a jackal spirit1106 elseif summon = "Energy Vortex" and findtype 13|391 ground -1 -1 2 as myPet1107 @setvar! myFreshlySummonedPet myPet1108 if evOne = 11109 @setvar! evOne myPet1110 endif1111 // 574 - a blade spirit1112 // 309 - a skeletal husk1113 elseif summon = "Blade Spirits" and findtype 574|309 ground -1 -1 2 as myPet1114 @setvar! myFreshlySummonedPet myPet1115 if bsOne = 11116 @setvar! bsOne myPet1117 endif1118 endif1119 1120 if summon = "Summ. Creature"1121 overhead "Creature summoned!" 881122 elseif myFreshlySummonedPet = 01123 overhead "Not found" 881124 else1125 if noto myFreshlySummonedPet = "friend" and list petNameList > 01126 overhead "Renaming..." 771127 foreach petName in petNameList1128 overhead "Rename to {{petName}}..." 66 myFreshlySummonedPet1129 rename myFreshlySummonedPet petName1130 wait 2001131 if insysmsg "That name is unacceptable."1132 overhead "Unable to name pet: {{petName}}" 341133 sysmsg "Unable to name pet: {{petName}}" 341134 endif1135 break1136 endfor1137 poplist petNameList "front"1138 endif1139 overhead "New Pet: {{summon}}" 88 myFreshlySummonedPet1140 if summon = "Energy Vortex" or summon = "Blade Spirits"1141 // do nothing1142 elseif skill "herding" > 01143 // guard1144 menu myFreshlySummonedPet 41145 else1146 // guard1147 menu myFreshlySummonedPet 31148 endif1149 @ignore myFreshlySummonedPet1150 endif1151 wait 5001152 else1153 break1154 endif1155endfor1156 1157if dead myMainTankPet1158 if not dead earthOne1159 @setvar! myMainTankPet earthOne1160 elseif not dead earthTwo1161 @setvar! myMainTankPet earthTwo1162 elseif not dead waterOne1163 @setvar! myMainTankPet waterOne1164 elseif not dead waterTwo1165 @setvar! myMainTankPet waterTwo1166 elseif not dead demonOne1167 @setvar! myMainTankPet demonOne1168 elseif not dead demonTwo1169 @setvar! myMainTankPet demonTwo1170 elseif not dead fireOne1171 @setvar! myMainTankPet fireOne1172 elseif not dead fireTwo1173 @setvar! myMainTankPet fireTwo1174 elseif not dead airOne1175 @setvar! myMainTankPet airOne1176 elseif not dead airTwo1177 @setvar! myMainTankPet airTwo1178 endif1179endif1180 1181if not varexist lastCannotBeSeen1182 @setvar! lastCannotBeSeen 01183endif1184 1185if lastCannotBeSeen != 0 and dead lastCannotBeSeen1186 @setvar! lastCannotBeSeen 01187 @setvar! lastCannotBeSeenLoopIndex 01188endif1189 1190# Eat food if we got it1191if not findbuff "food" and findtype "tray" backpack as jood1192 dclick jood1193 wait 2001194endif1195 1196if targetexists harmful1197 hotkey "Cancel current target"1198endif1199 1200if useTargetSystem = 01201 say "all kill"1202 wait 2001203 while targetexists 1204 // wait1205 wait 501206 endwhile1207 1208 @setvar myKillTarget lasttarget 1209elseif useTargetSystem = 11210 hotkey 'Target Closest Non-Friendly Monster'1211 wait 2001212 if insysmsg "No one matching that was found"1213 if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1214 overhead "found no one" 341215 settimer preventOverheadSpamTimer 01216 endif1217 if autoBotEnabled = 11218 wait 5001219 replay1220 endif1221 stop1222 elseif not find lasttarget ground -1 -1 101223 1224 @setvar checkForSummons lasttarget 1225 getlabel checkForSummons checkForSummonsDesc1226 1227 if "(summoned" in checkForSummonsDesc or "(bonded" in checkForSummonsDesc or "the battle trainer" in checkForSummonsDesc1228 overhead "� Player pet - IGNORE �" 77 lasttarget1229 while not targetexists 1230 hotkey 'Add Target To: IgnoreMobs'1231 wait 2001232 endwhile1233 target myKillTarget 1234 replay1235 endif 1236 1237 overhead "� � OUT OF RANGE � �" 88 lasttarget1238 if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1239 overhead "Move closer, more then 8 tiles away" 341240 settimer preventOverheadSpamTimer 01241 endif1242 if autoBotEnabled = 11243 wait 5001244 replay1245 endif1246 stop1247 else1248 1249 @setvar checkForSummons lasttarget 1250 getlabel checkForSummons checkForSummonsDesc1251 1252 if "(summoned" in checkForSummonsDesc or "(bonded" in checkForSummonsDesc or "the battle trainer" in checkForSummonsDesc1253 overhead "� Player pet - IGNORE �" 77 lasttarget1254 while not targetexists 1255 hotkey 'Add Target To: IgnoreMobs'1256 wait 2001257 endwhile1258 target myKillTarget 1259 replay1260 endif 1261 1262 overhead "� �� HERE �� �" 88 lasttarget1263 endif 1264 1265 @setvar myKillTarget lasttarget 1266 1267elseif useTargetSystem = 21268 1269 // do find type 1270 if jaseDebugMode = 11271 overhead "do find type"1272 endif1273 1274 //@setvar! mobDiff 01275 1276 // should we cast spells1277 // should our pets kill it only?1278 // do we need to debuff the mob?1279 // boss - do we want to do manadrain vs mana vampire1280 1281 // targeting 1282 1283 @setvar! myFindTypeMob 01284 1285 if findtype 54|1|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 daklue1286 @setvar! myFindTypeMob daklue1287 getlabel myFindTypeMob helperDesc1288 overhead "� �� HERE �� �" 88 myFindTypeMob 1289 1290 if jaseDebugMode = 11291 overhead "� block 1 {{helperDesc}}" 88 1292 hotkey "Get InfoGump"1293 wft 5001294 target myFindTypeMob1295 endif1296 1297 elseif findtype 54|1|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 daklue1298 @setvar! myFindTypeMob daklue1299 getlabel myFindTypeMob helperDesc1300 overhead "� �� HERE �� �" 88 myFindTypeMob1301 if jaseDebugMode = 11302 overhead "� block 2 {{helperDesc}}" 88 1303 hotkey "Get InfoGump"1304 wft 5001305 target myFindTypeMob1306 endif1307 elseif findtype 54|1|141|34|843|1081|44|42|68|88|28|159|11|631|612|281|280|313|385|21|727|689|735|74|400|732|24|776|39|400|215|717|51|716|14|12|60|37|37|21|155|14|138|787|787|395|79|259|783|782|781|58|715|738|727|1419|1504|310|99|113|214|736|204|158|29|75|9|59|61|16|303|306|30|241|730|393|17|314|48|21|721|53|42|1069|287|59|58|401|16|778|715|47|725|169|317|213|384|373|734|23|27|25|705|728|37|779|775|173|92|98|80|388|98|287|302|73|720|252|8|392|9|14|319|4|386|22|9|16|400|400|401|401|401|401|49|96|8|315|303|309|386|169|37|777|59|718|61|718|9|104|266|12|60|12|60|393|721|31|400|401|12|60|778|393|251|12|60|37|826|154|264|39|9|128|176|374|738|169|315|393|776|734|317|13|720|225|305|401|131|94|93|244|16|318|392|393|310|372|309|49|130|83|130|753|59|114|116|830|26|778|400|401|26|81|48|732|779|723|4|387|150|334|385|261|1069|390|304|379|307|729|384|160|74|400|400|400|9|4|784|400|400|400|400|401|4|391|214|13|724|206|16|293|40|43|24|24|285|705|199|199|829|256|160|573|259|400|776|263|375|9|241|39|39|206|202|380|13|30|8|51|4|154|16|312|79|148|401|204|1069|73|748|86|85|87|86|782|781|400|401|401|400|401|400|400|401|401|401|401|401|400|789|316|401|120|832|108|396|393|401|401|757|401|400|401|756|401|763|730|716|16|16|787|740|3|401|75|9|59|400|401|401|401|401|400|400|401|401|400|400|401|21|970|92|16|270|970|400|401|401|401|37|270|37|1419|1504|251|315|51|741|37|169|717|740|715|14|74|206|242|778|739|776|16|51|304|3|300|29|382|104|306|309|57|50|56|302|59|61|1503|24|14|13|51|252|31|400|390|23|27|400|400|704|689|383|25|293|371|21|705|30|36|8|1419|1504|721|12|60|736|788|69|71|738|72|70|780|242|400|37|737|199|401|400|401|722|317|258|229|300|380|22|59|61|15|42|45|394|1419|1504|47|97|47|285|65|225|73|30|382|739|743|62|733|17|80|18|55|41|317|81|215|31|24|35|400|225|30|3|390|72|9|384|41|58|400|400|119 ground -1 -1 10 as daklue1308 @setvar! myFindTypeMob daklue1309 getlabel myFindTypeMob helperDesc1310 overhead "� �� HERE �� �" 88 myFindTypeMob1311 if jaseDebugMode = 11312 overhead "� block 3 {{helperDesc}}" 88 1313 hotkey "Get InfoGump"1314 wft 5001315 target myFindTypeMob1316 endif1317 elseif findtype 54|1|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 daklue1318 @setvar! myFindTypeMob daklue1319 overhead "� � OUT OF RANGE � �" 88 daklue1320 getlabel daklue helperDesc1321 if jaseDebugMode = 11322 overhead "� block 4 {{helperDesc}}" 88 1323 hotkey "Get InfoGump"1324 wft 5001325 target myFindTypeMob1326 endif1327 if "(summoned" in helperDesc or "(bonded" in helperDesc or "(tamed" in helperDesc or "the battle trainer" in helperDesc1328 overhead "� Player pet - IGNORE �" 77 daklue1329 ignore daklue1330 replay1331 endif 1332 wait 2001333 1334 if patrolPetEvenIfLastTargetIsBeyondEightTiles = 11335 1336 if not timerexists myPatrolPetTimer1337 settimer myPatrolPetTimer 50001338 endif1339 1340 if not varexist myPatrolPet1341 @setvar! myPatrolPet 01342 endif1343 1344 if find myPatrolPet ground -1 -1 101345 // do nothing1346 elseif find earthOne ground -1 -1 101347 @setvar! myPatrolPet earthOne1348 elseif find earthTwo ground -1 -1 101349 @setvar! myPatrolPet earthTwo1350 elseif find fireOne ground -1 -1 101351 @setvar! myPatrolPet fireOne1352 elseif find fireTwo ground -1 -1 101353 @setvar! myPatrolPet fireTwo1354 elseif find demonOne ground -1 -1 101355 @setvar! myPatrolPet demonOne1356 elseif find demonTwo ground -1 -1 101357 @setvar! myPatrolPet demonTwo1358 elseif find airOne ground -1 -1 101359 @setvar! myPatrolPet airOne1360 elseif find airTwo ground -1 -1 101361 @setvar! myPatrolPet airTwo1362 elseif find waterOne ground -1 -1 101363 @setvar! myPatrolPet waterOne1364 elseif find waterTwo ground -1 -1 101365 @setvar! myPatrolPet waterTwo1366 else1367 @setvar! myPatrolPet 01368 endif1369 1370 if myPatrolPet = 01371 // do nothing1372 elseif timer myPatrolPetTimer >= 50001373 overhead "� SEND IN PATROL PET �" 77 myFindTypeMob 1374 if skill "Herding" > 01375 menu myPatrolPet 31376 else1377 menu myPatrolPet 21378 endif1379 wft 5001380 target myFindTypeMob1381 settimer myPatrolPetTimer 01382 endif1383 1384 endif 1385 1386 replay1387 else1388 if jaseDebugMode = 11389 overhead "� block 5" 88 1390 endif1391 if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1392 overhead "Found type found no one" 341393 settimer preventOverheadSpamTimer 01394 endif1395 wait 2001396 replay1397 endif1398 1399 if myFindTypeMob = 01400 wait 200 1401 replay1402 elseif dead myFindTypeMob1403 wait 200 1404 replay1405 else1406 getlabel myFindTypeMob checkForSummonsDesc1407 overhead "Found: {{checkForSummonsDesc}}" 88 myFindTypeMob1408 1409 if "(summoned" in checkForSummonsDesc or "(bonded" in checkForSummonsDesc or "(tamed" in checkForSummonsDesc or "the battle trainer" in checkForSummonsDesc1410 overhead "� Player pet - IGNORE �" 77 myFindTypeMob1411 @ignore myFindTypeMob1412 replay1413 endif 1414 1415 if noto myFindTypeMob = "friend"1416 @ignore myFindTypeMob1417 replay1418 elseif noto myFindTypeMob = "innocent"1419 @ignore myFindTypeMob1420 replay1421 elseif noto myFindTypeMob = "hostile" or noto myFindTypeMob = "criminal"1422 //overhead "Gray" 881423 elseif noto myFindTypeMob = "murderer"1424 //overhead "Red" 341425 elseif noto myFindTypeMob = "enemy"1426 //overhead "Orange" 341427 elseif noto daklue = "invulnerable"1428 @ignore myFindTypeMob1429 replay1430 else1431 overhead "Unknown" 341432 wait 5001433 @ignore myFindTypeMob1434 replay1435 endif1436 1437 @setvar! myKillTarget myFindTypeMob1438 endif1439elseif useTargetSystem = 31440 1441 hotkey 'Next Non-Friendly Monster Target'1442 wait 2001443 if insysmsg "No one matching that was found"1444 if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1445 overhead "found no one" 341446 settimer preventOverheadSpamTimer 01447 endif1448 if autoBotEnabled = 11449 wait 5001450 replay1451 endif1452 stop1453 else1454 1455 @setvar checkForSummons lasttarget 1456 getlabel checkForSummons checkForSummonsDesc1457 1458 if "(summoned" in checkForSummonsDesc or "(bonded" in checkForSummonsDesc or "the battle trainer" in checkForSummonsDesc1459 overhead "� Player pet - IGNORE �" 77 lasttarget1460 replay1461 endif 1462 1463 if find lasttarget ground -1 -1 81464 // we ready1465 overhead "� �� HERE �� �" 88 lasttarget 1466 elseif find lasttarget ground -1 -1 121467 if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1468 overhead "Move closer, more then 8 tiles away" 341469 settimer preventOverheadSpamTimer 01470 endif1471 overhead "� � OUT OF RANGE � �" 88 lasttarget1472 1473 if patrolPetEvenIfLastTargetIsBeyondEightTiles = 11474 1475 if not timerexists myPatrolPetTimer1476 settimer myPatrolPetTimer 50001477 endif1478 1479 if not varexist myPatrolPet1480 @setvar! myPatrolPet 01481 endif1482 1483 if find myPatrolPet ground -1 -1 101484 // do nothing1485 elseif find earthOne ground -1 -1 101486 @setvar! myPatrolPet earthOne1487 elseif find earthTwo ground -1 -1 101488 @setvar! myPatrolPet earthTwo1489 elseif find fireOne ground -1 -1 101490 @setvar! myPatrolPet fireOne1491 elseif find fireTwo ground -1 -1 101492 @setvar! myPatrolPet fireTwo1493 elseif find demonOne ground -1 -1 101494 @setvar! myPatrolPet demonOne1495 elseif find demonTwo ground -1 -1 101496 @setvar! myPatrolPet demonTwo1497 elseif find airOne ground -1 -1 101498 @setvar! myPatrolPet airOne1499 elseif find airTwo ground -1 -1 101500 @setvar! myPatrolPet airTwo1501 elseif find waterOne ground -1 -1 101502 @setvar! myPatrolPet waterOne1503 elseif find waterTwo ground -1 -1 101504 @setvar! myPatrolPet waterTwo1505 else1506 @setvar! myPatrolPet 01507 endif1508 1509 if myPatrolPet = 01510 // do nothing1511 elseif timer myPatrolPetTimer >= 50001512 overhead "� SEND IN PATROL PET �" 77 myFindTypeMob 1513 if skill "Herding" > 01514 menu myPatrolPet 31515 else1516 menu myPatrolPet 21517 endif1518 wft 5001519 target lasttarget1520 settimer myPatrolPetTimer 01521 endif1522 1523 endif 1524 1525 if autoBotEnabled = 11526 wait 5001527 replay1528 endif1529 stop1530 else1531 if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1532 overhead "Next mob too far" 341533 settimer preventOverheadSpamTimer 01534 endif1535 wait 2001536 replay1537 endif1538 endif 1539 1540 @setvar myKillTarget lasttarget 1541endif1542 1543 1544if not varexist myPreviousKillTarget1545 @setvar myPreviousKillTarget 0 1546endif1547 1548getlabel myKillTarget desc1549overhead desc1550 1551if "(summoned" in desc or "(bonded" in desc or "(tame" in desc or "the battle trainer" in desc1552 overhead "� Player pet - IGNORE �" 77 lasttarget1553 while not targetexists 1554 hotkey 'Add Target To: IgnoreMobs'1555 wait 2001556 endwhile1557 target myKillTarget 1558 replay1559endif 1560 1561if not varexist myEarthPet or dead myEarthPet1562 if not dead earthOne1563 @setvar! myEarthPet earthOne1564 elseif not dead earthTwo1565 @setvar! myEarthPet earthTwo1566 endif1567endif1568 1569if tamerModeEngaged = 11570 // jaseTankPet patrol maybe1571 // overhead "We are a tamer"1572elseif find myEarthPet ground -1 -1 121573 menu myEarthPet 21574 wft 5001575 target myKillTarget1576 wait 2001577 if insysmsg "Target cannot be seen." 1578 if lastCannotBeSeen = 01579 @setvar! lastCannotBeSeen myKillTarget1580 endif1581 else1582 @setvar! lastCannotBeSeen 01583 endif1584endif1585 1586if diffhits >= hpCheckToTriggerGreaterHealSpell and mana > 121587 while not targetexists beneficial1588 if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell1589 cast 'Heal'1590 else1591 cast 'Greater Heal' 1592 endif1593 wait 501594 if hp = maxhp1595 hotkey '> Interrupt'1596 break1597 endif1598 endwhile1599 if targetexists beneficial1600 hotkey "Target Self"1601 endif1602elseif castArchProtection = 1 and not findbuff "protection" and followers >= 4 1603 while not targetexists1604 cast 'Arch Protection'1605 wait 501606 if diffhits >= hpCheckToTriggerGreaterHealSpell1607 hotkey '> Interrupt'1608 break1609 endif1610 endwhile1611 if targetexists1612 target self1613 endif1614elseif castBless = 1 and str <= 100 and followers >= 4 1615 while not targetexists beneficial1616 cast 'Bless'1617 wait 501618 if diffhits >= hpCheckToTriggerGreaterHealSpell1619 hotkey '> Interrupt'1620 break1621 endif1622 endwhile1623 if targetexists beneficial1624 target self1625 endif1626endif1627 1628if not listexists myCursedTargets1629 createlist myCursedTargets1630endif1631 1632if not listexists myManaDrainTargets1633 createlist myManaDrainTargets1634endif1635 1636if not listexists myManaVampireTargets1637 createlist myManaVampireTargets1638endif1639 1640 1641if not varexist lastCannotBeSeenLoopIndex1642 @setvar! lastCannotBeSeenLoopIndex 01643endif1644 1645 1646if lastCannotBeSeen = myKillTarget1647 if timer preventOverheadSpamTimer >= cdPreventOverheadSpam1648 overhead "Target not seen, waiting.." 341649 settimer preventOverheadSpamTimer 01650 endif1651 wait 2001652 //overhead "{{lastCannotBeSeenLoopIndex}} : {{retryBasedOnTargetNotSeenTimer}}"1653 if lastCannotBeSeenLoopIndex = 01654 @setvar! lastCannotBeSeenLoopIndex 11655 endif1656 if timer retryBasedOnTargetNotSeenTimer >= cdRetryBasedOnTargetNotSeen1657 settimer retryBasedOnTargetNotSeenTimer 0 1658 @setvar! lastCannotBeSeen 01659 else1660 replay1661 endif1662 1663elseif find myKillTarget -1 -1 12 as killy1664 if myKillTarget = myPreviousKillTarget1665 // do nothing1666 else1667 1668 // Herding using crook1669 if skill "Herding" > 0 and findtype 3713 backpack as jrook1670 dclick jrook1671 wft 5001672 target killy1673 endif1674 1675 if inlist myManaVampireTargets myKillTarget1676 overhead "We already mana vampired this guy" 881677 // do nothing1678 elseif castManaVampire = 01679 // do nothing 1680 elseif followers >= 4 and mana >= manaReserve1681 while not targetexists harmful1682 if dead myKillTarget1683 hotkey '> Interrupt'1684 break1685 elseif diffhits < 301686 if skill "Herding" > 0 and isHerded = 0 and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook1687 dclick jrook1688 wft 5001689 target myKillTarget1690 settimer meditiationTimer 80001691 @setvar! isHerded 11692 endif1693 cast 'mana vampire'1694 wait 501695 elseif diffhits >= hpCheckToTriggerGreaterHealSpell or dead myKillTarget1696 hotkey '> Interrupt'1697 break1698 endif1699 endwhile1700 if targetexists harmful1701 target myKillTarget1702 pushlist myManaVampireTargets myKillTarget1703 settimer killTargetTimer 01704 wait 5001705 if insysmsg "Target cannot be seen." 1706 @setvar! lastCannotBeSeen myKillTarget1707 overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341708 replay1709 endif1710 endif1711 if targetexists harmful1712 hotkey "Cancel current target"1713 endif1714 endif1715 1716 if inlist myManaDrainTargets myKillTarget1717 overhead "We already mana drained this guy" 881718 // do nothing1719 elseif castManadrain = 01720 // do nothing 1721 elseif followers >= 4 and mana >= manaReserve1722 while not targetexists harmful1723 if dead myKillTarget1724 hotkey '> Interrupt'1725 break1726 elseif diffhits < 301727 if skill "Herding" > 0 and isHerded = 0 and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook1728 dclick jrook1729 wft 5001730 target myKillTarget1731 settimer meditiationTimer 80001732 @setvar! isHerded 11733 endif1734 cast 'mana drain'1735 wait 501736 elseif diffhits >= hpCheckToTriggerGreaterHealSpell or dead myKillTarget1737 hotkey '> Interrupt'1738 break1739 endif1740 endwhile1741 if targetexists harmful1742 target myKillTarget1743 pushlist myManaDrainTargets myKillTarget1744 settimer killTargetTimer 01745 wait 5001746 if insysmsg "Target cannot be seen." 1747 @setvar! lastCannotBeSeen myKillTarget1748 overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341749 replay1750 endif1751 endif1752 if targetexists harmful1753 hotkey "Cancel current target"1754 endif1755 endif1756 1757 if inlist myCursedTargets myKillTarget1758 overhead "We already cursed this guy" 881759 // do nothing1760 elseif castCurse = 01761 // do nothing1762 elseif followers >= 4 and mana >= manaReserve1763 while not targetexists harmful and not dead myKillTarget1764 if diffhits < 301765 if skill "Herding" > 0 and isHerded = 0 and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook1766 dclick jrook1767 wft 5001768 target myKillTarget1769 settimer meditiationTimer 80001770 @setvar! isHerded 11771 endif1772 cast 'Curse'1773 wait 501774 elseif diffhits >= hpCheckToTriggerGreaterHealSpell1775 hotkey '> Interrupt'1776 break1777 endif1778 endwhile1779 if targetexists harmful1780 target myKillTarget1781 pushlist myCursedTargets myKillTarget1782 settimer killTargetTimer 01783 wait 5001784 if insysmsg "Target cannot be seen." 1785 @setvar! lastCannotBeSeen myKillTarget1786 overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341787 replay1788 endif1789 else1790 hotkey '> Interrupt'1791 endif1792 if targetexists harmful1793 hotkey "Cancel current target"1794 endif1795 endif1796 @setvar myPreviousKillTarget myKillTarget1797 endif1798else1799 overhead "Out of range" 341800endif1801 1802 1803clearsysmsg 1804 1805say "all guard"1806 1807@setvar! isLethalPoison 01808@setvar! isHerded 01809 1810if skill "Peacemaking" >= 50 1811 @setvar! isPeaced 01812else1813 @setvar! isPeaced 1 1814endif1815 1816if skill "Discordance" >= 50 1817 @setvar! isDiscorded 01818else1819 @setvar! isDiscorded 1 1820endif1821 1822while not dead myKillTarget and find myKillTarget -1 -1 12 as killy1823 1824 for 51825 1826 if findbuff "bleed" or findbuff "disease"1827 if timer cleansingBrewTimer >= cdCleansingBrew and findtype 50675 backpack 2935 as jrew1828 dclick jrew1829 wait minimumWaitForPing 1830 settimer cleansingBrewTimer 01831 endif1832 endif1833 1834 // lost a follower1835 if followers < breakSpellCastAndResummonIfLessThanXFollowers1836 replay1837 endif1838 1839 if weight >= maxweight and not findbuff "strength" and automaticallyDrinkStrPotIfOverWeight = 1 and findtype "white potion" backpack as pot1840 dclick pot1841 wait 2001842 endif1843 1844 if dead myKillTarget1845 break1846 elseif insysmsg "Target cannot be seen." 1847 @setvar! lastCannotBeSeen myKillTarget1848 overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 341849 replay1850 elseif find myKillTarget -1 -1 12 as killy1851 // do nothing - in range to kill1852 else1853 break1854 endif1855 1856 if skill "Herding" > 0 and isHerded = 0 and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook1857 dclick jrook1858 wft 5001859 target myKillTarget1860 settimer meditiationTimer 80001861 @setvar! isHerded 11862 endif1863 1864 if gumpexists 622436516 and skill "Necromancy" >= 501865 if ingump "12/" 6224365161866 @setvar! necroSymbols 121867 elseif ingump "13/" 6224365161868 @setvar! necroSymbols 131869 elseif ingump "14/" 6224365161870 @setvar! necroSymbols 141871 elseif ingump "15/" 6224365161872 @setvar! necroSymbols 151873 elseif ingump "16/" 6224365161874 @setvar! necroSymbols 161875 elseif ingump "17/" 6224365161876 @setvar! necroSymbols 171877 elseif ingump "18/" 6224365161878 @setvar! necroSymbols 181879 elseif ingump "19/" 6224365161880 @setvar! necroSymbols 191881 elseif ingump "20/" 6224365161882 @setvar! necroSymbols 201883 elseif ingump "21/" 6224365161884 @setvar! necroSymbols 211885 elseif ingump "11/" 6224365161886 @setvar! necroSymbols 111887 elseif ingump "10/" 6224365161888 @setvar! necroSymbols 101889 elseif ingump "9/" 6224365161890 @setvar! necroSymbols 91891 elseif ingump "8/" 6224365161892 @setvar! necroSymbols 81893 elseif ingump "7/" 6224365161894 @setvar! necroSymbols 71895 elseif ingump "6/" 6224365161896 @setvar! necroSymbols 61897 elseif ingump "5/" 6224365161898 @setvar! necroSymbols 51899 elseif ingump "4/" 6224365161900 @setvar! necroSymbols 41901 elseif ingump "3/" 6224365161902 @setvar! necroSymbols 31903 elseif ingump "2/" 6224365161904 @setvar! necroSymbols 21905 elseif ingump "1/" 6224365161906 @setvar! necroSymbols 11907 elseif ingump "0/" 6224365161908 @setvar! necroSymbols 01909 endif1910 endif1911 1912 if skill "Discordance" >= 50 1913 if isDiscorded = 01914 getlabel myKillTarget discordDesc1915 if "discord" in discordDesc1916 @setvar! isDiscorded 11917 elseif timer meditiationTimer >= 11000 1918 useskill 'Discordance'1919 wft 5001920 if insysmsg "What instrument"1921 if findtype "bamboo flute" backpack as inny1922 target inny1923 elseif findtype "tambourine" backpack as inny1924 target inny1925 elseif findtype "drum" backpack as inny1926 target inny1927 elseif findtype "lute" backpack as inny1928 target inny1929 elseif findtype "harp" backpack as inny1930 target inny1931 elseif findtype "lap harp" backpack as inny1932 target inny1933 else1934 overhead "I do not have an inny" 341935 @setvar! isDiscorded 11936 endif1937 wft 5001938 endif1939 if targetexists 1940 target myKillTarget1941 overhead "Discorded" 88 myKillTarget1942 endif1943 settimer meditiationTimer 50001944 endif1945 endif1946 1947 if not findbuff "song of discordance" and timer meditiationTimer >= 110001948 useskill 'Discordance'1949 wft 5001950 if insysmsg "What instrument"1951 if findtype "bamboo flute" backpack as inny1952 target inny1953 elseif findtype "tambourine" backpack as inny1954 target inny1955 elseif findtype "drum" backpack as inny1956 target inny1957 elseif findtype "lute" backpack as inny1958 target inny1959 elseif findtype "harp" backpack as inny1960 target inny1961 elseif findtype "lap harp" backpack as inny1962 target inny1963 else1964 overhead "I do not have an inny" 341965 @setvar! isDiscorded 11966 endif1967 wft 5001968 endif1969 target backpack1970 settimer meditiationTimer 01971 endif 1972 endif1973 1974 if skill "Peacemaking" >= 50 1975 if isPeaced = 01976 getlabel myKillTarget peaceDesc1977 if "pacified" in peaceDesc1978 @setvar! isPeaced 11979 elseif timer meditiationTimer >= 11000 1980 useskill 'Peacemaking'1981 wft 5001982 if insysmsg "What instrument"1983 if findtype "bamboo flute" backpack as inny1984 target inny1985 elseif findtype "tambourine" backpack as inny1986 target inny1987 elseif findtype "drum" backpack as inny1988 target inny1989 elseif findtype "lute" backpack as inny1990 target inny1991 elseif findtype "harp" backpack as inny1992 target inny1993 elseif findtype "lap harp" backpack as inny1994 target inny1995 else1996 overhead "I do not have an inny" 341997 @setvar! isPeaced 11998 endif1999 wft 5002000 endif2001 if targetexists 2002 target myKillTarget2003 overhead "Peacemaed" 88 myKillTarget2004 endif2005 settimer meditiationTimer 50002006 endif2007 endif2008 2009 if not findbuff "song of peacemaking" and timer meditiationTimer >= 110002010 useskill 'Peacemaking'2011 wft 5002012 if insysmsg "What instrument"2013 if findtype "bamboo flute" backpack as inny2014 target inny2015 elseif findtype "tambourine" backpack as inny2016 target inny2017 elseif findtype "drum" backpack as inny2018 target inny2019 elseif findtype "lute" backpack as inny2020 target inny2021 elseif findtype "harp" backpack as inny2022 target inny2023 elseif findtype "lap harp" backpack as inny2024 target inny2025 else2026 overhead "I do not have an inny" 342027 @setvar! isPeaced 12028 endif2029 wft 5002030 endif2031 target backpack2032 settimer meditiationTimer 02033 endif 2034 endif2035 2036 if castMagicShield = 1 and timer magicShieldTimer >= cdMagicShield and not findbuff "Magic Reflection"2037 if mana >= manaReserve2038 cast "Magic Reflection"2039 wait 10002040 endif2041 elseif automaticallyDrinkMagicPot = 1 and not findbuff "Magic Reflection" and not findbuff "Magic Resist Potion" and findtype "Black Potion" backpack as pot2042 dclick pot2043 wait 2002044 endif2045 2046 if findbuff "Magic Reflection"2047 settimer magicShieldTimer 02048 endif2049 2050 if castReactiveArmor = 1 and timer reactiveArmorTimer >= cdReactiveArmor and not findbuff "Reactive Armor"2051 if mana >= manaReserve2052 cast "Reactive Armor"2053 wait 2002054 endif2055 endif2056 2057 if findbuff "Reactive Armor"2058 settimer reactiveArmorTimer 02059 endif2060 2061 if skill "poisoning" >= 100 or castPoisonAnyway = 12062 if timer meditiationTimer >= cdMeditationMini and mana >= manaReserve2063 if castMindRot = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer mindRotTimer >= cdMindRot and skill "Necromancy" >= 75 and 3 < necroSymbols 2064 yell "[MindRot"2065 settimer preventSpamNecroAbilitiesTimer 02066 settimer mindRotTimer 02067 wait 5002068 if gumpexists 6224365162069 if ingump "12/" 6224365162070 @setvar! necroSymbols 122071 elseif ingump "13/" 6224365162072 @setvar! necroSymbols 132073 elseif ingump "14/" 6224365162074 @setvar! necroSymbols 142075 elseif ingump "15/" 6224365162076 @setvar! necroSymbols 152077 elseif ingump "16/" 6224365162078 @setvar! necroSymbols 162079 elseif ingump "17/" 6224365162080 @setvar! necroSymbols 172081 elseif ingump "18/" 6224365162082 @setvar! necroSymbols 182083 elseif ingump "19/" 6224365162084 @setvar! necroSymbols 192085 elseif ingump "20/" 6224365162086 @setvar! necroSymbols 202087 elseif ingump "21/" 6224365162088 @setvar! necroSymbols 212089 elseif ingump "11/" 6224365162090 @setvar! necroSymbols 112091 elseif ingump "10/" 6224365162092 @setvar! necroSymbols 102093 elseif ingump "9/" 6224365162094 @setvar! necroSymbols 92095 elseif ingump "8/" 6224365162096 @setvar! necroSymbols 82097 elseif ingump "7/" 6224365162098 @setvar! necroSymbols 72099 elseif ingump "6/" 6224365162100 @setvar! necroSymbols 62101 elseif ingump "5/" 6224365162102 @setvar! necroSymbols 52103 elseif ingump "4/" 6224365162104 @setvar! necroSymbols 42105 elseif ingump "3/" 6224365162106 @setvar! necroSymbols 32107 elseif ingump "2/" 6224365162108 @setvar! necroSymbols 22109 elseif ingump "1/" 6224365162110 @setvar! necroSymbols 12111 elseif ingump "0/" 6224365162112 @setvar! necroSymbols 02113 endif2114 endif2115 endif2116 2117 2118 getlabel myKillTarget desc22119 overhead desc22120 2121 if castPoisonStrike = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer poisonStrikeTimer >= cdPoisonStrike and skill "Necromancy" >= 55 and 1 < necroSymbols 2122 if "Ticks" in desc22123 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 2124 yell "[PoisonStrike"2125 wft 5002126 target myKillTarget2127 wait 2002128 settimer preventSpamNecroAbilitiesTimer 02129 settimer poisonStrikeTimer 02130 wait 5002131 if gumpexists 6224365162132 if ingump "12/" 6224365162133 @setvar! necroSymbols 122134 elseif ingump "13/" 6224365162135 @setvar! necroSymbols 132136 elseif ingump "14/" 6224365162137 @setvar! necroSymbols 142138 elseif ingump "15/" 6224365162139 @setvar! necroSymbols 152140 elseif ingump "16/" 6224365162141 @setvar! necroSymbols 162142 elseif ingump "17/" 6224365162143 @setvar! necroSymbols 172144 elseif ingump "18/" 6224365162145 @setvar! necroSymbols 182146 elseif ingump "19/" 6224365162147 @setvar! necroSymbols 192148 elseif ingump "20/" 6224365162149 @setvar! necroSymbols 202150 elseif ingump "21/" 6224365162151 @setvar! necroSymbols 212152 elseif ingump "11/" 6224365162153 @setvar! necroSymbols 112154 elseif ingump "10/" 6224365162155 @setvar! necroSymbols 102156 elseif ingump "9/" 6224365162157 @setvar! necroSymbols 92158 elseif ingump "8/" 6224365162159 @setvar! necroSymbols 82160 elseif ingump "7/" 6224365162161 @setvar! necroSymbols 72162 elseif ingump "6/" 6224365162163 @setvar! necroSymbols 62164 elseif ingump "5/" 6224365162165 @setvar! necroSymbols 52166 elseif ingump "4/" 6224365162167 @setvar! necroSymbols 42168 elseif ingump "3/" 6224365162169 @setvar! necroSymbols 32170 elseif ingump "2/" 6224365162171 @setvar! necroSymbols 22172 elseif ingump "1/" 6224365162173 @setvar! necroSymbols 12174 elseif ingump "0/" 6224365162175 @setvar! necroSymbols 02176 endif2177 endif2178 endif2179 endif2180 endif2181 2182 if isLethalPoison = 02183 2184 if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2185 overhead "Eating shrooms" 662186 dclick mushy2187 @setvar! jase_shrooms mushy2188 wait 2002189 if insysmsg "You consume a magic mushroom and restore some mana."2190 settimer magicMushroomTimer 0 2191 elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2192 settimer magicMushroomTimer 300002193 endif2194 endif2195 2196 if insysmsg "Target cannot be seen." 2197 @setvar! lastCannotBeSeen myKillTarget2198 overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342199 replay2200 endif 2201 2202 // poison lethal2203 if "Lethal" in desc22204 @setvar! isLethalPoison 12205 break2206 elseif castPoisonAnyway = 1 and "Ticks" in desc22207 @setvar! isLethalPoison 12208 break2209 elseif castPoisonAnyway = 1 and "Poison" in desc22210 @setvar! isLethalPoison 12211 break2212 elseif diffhits >= hpCheckToTriggerGreaterHealSpell 2213 // need a heal2214 break2215 elseif mana >= 92216 while not targetexists harmful2217 cast 'poison'2218 wait 502219 if dead myKillTarget2220 hotkey '> Interrupt'2221 replay2222 endif2223 endwhile2224 target myKillTarget2225 wait 2002226 if insysmsg "Target cannot be seen." 2227 @setvar! lastCannotBeSeen myKillTarget2228 overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342229 @setvar! isLethalPoison 12230 endif 2231 else2232 wait 2002233 endif2234 endif2235 endif2236 endif2237 2238 if castCorpseSkin = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer corpseSkinTimer >= cdCorpseSkin and skill "Necromancy" >= 65 and timer meditiationTimer >= cdMeditationMini and 2 < necroSymbols and mana >= manaReserve2239 yell "[CorpseSkin"2240 settimer preventSpamNecroAbilitiesTimer 02241 settimer corpseSkinTimer 02242 cooldown CorpseSkin cdCorpseSkin2243 wait 5002244 if gumpexists 6224365162245 if ingump "12/" 6224365162246 @setvar! necroSymbols 122247 elseif ingump "13/" 6224365162248 @setvar! necroSymbols 132249 elseif ingump "14/" 6224365162250 @setvar! necroSymbols 142251 elseif ingump "15/" 6224365162252 @setvar! necroSymbols 152253 elseif ingump "16/" 6224365162254 @setvar! necroSymbols 162255 elseif ingump "17/" 6224365162256 @setvar! necroSymbols 172257 elseif ingump "18/" 6224365162258 @setvar! necroSymbols 182259 elseif ingump "19/" 6224365162260 @setvar! necroSymbols 192261 elseif ingump "20/" 6224365162262 @setvar! necroSymbols 202263 elseif ingump "21/" 6224365162264 @setvar! necroSymbols 212265 elseif ingump "11/" 6224365162266 @setvar! necroSymbols 112267 elseif ingump "10/" 6224365162268 @setvar! necroSymbols 102269 elseif ingump "9/" 6224365162270 @setvar! necroSymbols 92271 elseif ingump "8/" 6224365162272 @setvar! necroSymbols 82273 elseif ingump "7/" 6224365162274 @setvar! necroSymbols 72275 elseif ingump "6/" 6224365162276 @setvar! necroSymbols 62277 elseif ingump "5/" 6224365162278 @setvar! necroSymbols 52279 elseif ingump "4/" 6224365162280 @setvar! necroSymbols 42281 elseif ingump "3/" 6224365162282 @setvar! necroSymbols 32283 elseif ingump "2/" 6224365162284 @setvar! necroSymbols 22285 elseif ingump "1/" 6224365162286 @setvar! necroSymbols 12287 elseif ingump "0/" 6224365162288 @setvar! necroSymbols 02289 endif2290 endif2291 endif2292 2293 if castBloodOath = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and skill "Necromancy" >= 80 and timer bloodOathTimer >= cdBloodOath and 5 < necroSymbols and mana >= manaReserve2294 yell "[BloodOath"2295 settimer preventSpamNecroAbilitiesTimer 02296 settimer bloodOathTimer 02297 if gumpexists 6224365162298 if ingump "12/" 6224365162299 @setvar! necroSymbols 122300 elseif ingump "13/" 6224365162301 @setvar! necroSymbols 132302 elseif ingump "14/" 6224365162303 @setvar! necroSymbols 142304 elseif ingump "15/" 6224365162305 @setvar! necroSymbols 152306 elseif ingump "16/" 6224365162307 @setvar! necroSymbols 162308 elseif ingump "17/" 6224365162309 @setvar! necroSymbols 172310 elseif ingump "18/" 6224365162311 @setvar! necroSymbols 182312 elseif ingump "19/" 6224365162313 @setvar! necroSymbols 192314 elseif ingump "20/" 6224365162315 @setvar! necroSymbols 202316 elseif ingump "21/" 6224365162317 @setvar! necroSymbols 212318 elseif ingump "11/" 6224365162319 @setvar! necroSymbols 112320 elseif ingump "10/" 6224365162321 @setvar! necroSymbols 102322 elseif ingump "9/" 6224365162323 @setvar! necroSymbols 92324 elseif ingump "8/" 6224365162325 @setvar! necroSymbols 82326 elseif ingump "7/" 6224365162327 @setvar! necroSymbols 72328 elseif ingump "6/" 6224365162329 @setvar! necroSymbols 62330 elseif ingump "5/" 6224365162331 @setvar! necroSymbols 52332 elseif ingump "4/" 6224365162333 @setvar! necroSymbols 42334 elseif ingump "3/" 6224365162335 @setvar! necroSymbols 32336 elseif ingump "2/" 6224365162337 @setvar! necroSymbols 22338 elseif ingump "1/" 6224365162339 @setvar! necroSymbols 12340 elseif ingump "0/" 6224365162341 @setvar! necroSymbols 02342 endif2343 endif2344 endif2345 2346 if castEvilOmen = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer evilOmenTimer >= cdEvilOmen and skill "Necromancy" >= 60 and timer meditiationTimer >= cdMeditationMini and 2 < necroSymbols and mana >= manaReserve2347 yell "[EvilOmen"2348 settimer evilOmenTimer 02349 settimer preventSpamNecroAbilitiesTimer 02350 cooldown EvilOmen cdEvilOmen2351 wait 5002352 if gumpexists 6224365162353 if ingump "12/" 6224365162354 @setvar! necroSymbols 122355 elseif ingump "13/" 6224365162356 @setvar! necroSymbols 132357 elseif ingump "14/" 6224365162358 @setvar! necroSymbols 142359 elseif ingump "15/" 6224365162360 @setvar! necroSymbols 152361 elseif ingump "16/" 6224365162362 @setvar! necroSymbols 162363 elseif ingump "17/" 6224365162364 @setvar! necroSymbols 172365 elseif ingump "18/" 6224365162366 @setvar! necroSymbols 182367 elseif ingump "19/" 6224365162368 @setvar! necroSymbols 192369 elseif ingump "20/" 6224365162370 @setvar! necroSymbols 202371 elseif ingump "21/" 6224365162372 @setvar! necroSymbols 212373 elseif ingump "11/" 6224365162374 @setvar! necroSymbols 112375 elseif ingump "10/" 6224365162376 @setvar! necroSymbols 102377 elseif ingump "9/" 6224365162378 @setvar! necroSymbols 92379 elseif ingump "8/" 6224365162380 @setvar! necroSymbols 82381 elseif ingump "7/" 6224365162382 @setvar! necroSymbols 72383 elseif ingump "6/" 6224365162384 @setvar! necroSymbols 62385 elseif ingump "5/" 6224365162386 @setvar! necroSymbols 52387 elseif ingump "4/" 6224365162388 @setvar! necroSymbols 42389 elseif ingump "3/" 6224365162390 @setvar! necroSymbols 32391 elseif ingump "2/" 6224365162392 @setvar! necroSymbols 22393 elseif ingump "1/" 6224365162394 @setvar! necroSymbols 12395 elseif ingump "0/" 6224365162396 @setvar! necroSymbols 02397 endif2398 endif2399 endif2400 2401 if castVampiricEmbrace = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer vampiricEmbraceTimer >= cdVampiricEmbrace and skill "Necromancy" >= 75 and timer meditiationTimer >= cdMeditationMini and 3 < necroSymbols and findtype 8198 ground -1 -1 4 as jorpse2402 yell "[VampiricEmbrace"2403 wft 5002404 target jorpse2405 settimer preventSpamNecroAbilitiesTimer 02406 settimer vampiricEmbraceTimer 02407 cooldown VampiricEmbrace cdVampiricEmbrace2408 wait 5002409 if gumpexists 6224365162410 if ingump "12/" 6224365162411 @setvar! necroSymbols 122412 elseif ingump "13/" 6224365162413 @setvar! necroSymbols 132414 elseif ingump "14/" 6224365162415 @setvar! necroSymbols 142416 elseif ingump "15/" 6224365162417 @setvar! necroSymbols 152418 elseif ingump "16/" 6224365162419 @setvar! necroSymbols 162420 elseif ingump "17/" 6224365162421 @setvar! necroSymbols 172422 elseif ingump "18/" 6224365162423 @setvar! necroSymbols 182424 elseif ingump "19/" 6224365162425 @setvar! necroSymbols 192426 elseif ingump "20/" 6224365162427 @setvar! necroSymbols 202428 elseif ingump "21/" 6224365162429 @setvar! necroSymbols 212430 elseif ingump "11/" 6224365162431 @setvar! necroSymbols 112432 elseif ingump "10/" 6224365162433 @setvar! necroSymbols 102434 elseif ingump "9/" 6224365162435 @setvar! necroSymbols 92436 elseif ingump "8/" 6224365162437 @setvar! necroSymbols 82438 elseif ingump "7/" 6224365162439 @setvar! necroSymbols 72440 elseif ingump "6/" 6224365162441 @setvar! necroSymbols 62442 elseif ingump "5/" 6224365162443 @setvar! necroSymbols 52444 elseif ingump "4/" 6224365162445 @setvar! necroSymbols 42446 elseif ingump "3/" 6224365162447 @setvar! necroSymbols 32448 elseif ingump "2/" 6224365162449 @setvar! necroSymbols 22450 elseif ingump "1/" 6224365162451 @setvar! necroSymbols 12452 elseif ingump "0/" 6224365162453 @setvar! necroSymbols 02454 endif2455 endif2456 endif2457 2458 if castPainSpike = 1 and timer preventSpamNecroAbilitiesTimer >= cdPreventSpamNecroAbilities and timer painSpikeTimer >= cdPainSpike and skill "Necromancy" >= 95 and timer meditiationTimer >= cdMeditationMini and 5 < necroSymbols and findtype 8198 ground -1 -1 6 as jorpse2459 yell "[PainSpike"2460 wft 5002461 target myKillTarget2462 wait 2002463 settimer preventSpamNecroAbilitiesTimer 02464 if insysmsg "You do not see any corpses"2465 // do nothing2466 else2467 settimer painSpikeTimer 02468 cooldown PainSpike cdPainSpike 2469 endif2470 if gumpexists 6224365162471 if ingump "12/" 6224365162472 @setvar! necroSymbols 122473 elseif ingump "13/" 6224365162474 @setvar! necroSymbols 132475 elseif ingump "14/" 6224365162476 @setvar! necroSymbols 142477 elseif ingump "15/" 6224365162478 @setvar! necroSymbols 152479 elseif ingump "16/" 6224365162480 @setvar! necroSymbols 162481 elseif ingump "17/" 6224365162482 @setvar! necroSymbols 172483 elseif ingump "18/" 6224365162484 @setvar! necroSymbols 182485 elseif ingump "19/" 6224365162486 @setvar! necroSymbols 192487 elseif ingump "20/" 6224365162488 @setvar! necroSymbols 202489 elseif ingump "21/" 6224365162490 @setvar! necroSymbols 212491 elseif ingump "11/" 6224365162492 @setvar! necroSymbols 112493 elseif ingump "10/" 6224365162494 @setvar! necroSymbols 102495 elseif ingump "9/" 6224365162496 @setvar! necroSymbols 92497 elseif ingump "8/" 6224365162498 @setvar! necroSymbols 82499 elseif ingump "7/" 6224365162500 @setvar! necroSymbols 72501 elseif ingump "6/" 6224365162502 @setvar! necroSymbols 62503 elseif ingump "5/" 6224365162504 @setvar! necroSymbols 52505 elseif ingump "4/" 6224365162506 @setvar! necroSymbols 42507 elseif ingump "3/" 6224365162508 @setvar! necroSymbols 32509 elseif ingump "2/" 6224365162510 @setvar! necroSymbols 22511 elseif ingump "1/" 6224365162512 @setvar! necroSymbols 12513 elseif ingump "0/" 6224365162514 @setvar! necroSymbols 02515 endif2516 endif2517 endif2518 2519 if diffhits >= hpCheckToTriggerHealPotion 2520 if findtype "Yellow Potion" backpack as pot 2521 getlabel pot desc2522 if "next usable" in desc2523 // do nothing2524 else2525 dclick pot2526 wait 5002527 endif2528 endif2529 endif2530 2531 if diffhits >= hpCheckToTriggerGreaterHealSpell and mana >= 122532 while not targetexists beneficial2533 if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell2534 cast 'Heal'2535 else2536 cast 'Greater Heal' 2537 endif2538 wait 502539 if hp = maxhp2540 hotkey '> Interrupt'2541 break2542 endif2543 endwhile2544 if targetexists beneficial2545 hotkey "Target Self"2546 wait 502547 endif2548 endif2549 2550 if poisoned2551 if automaticallyDrinkCurePot = 1 and diffhits >= hpCheckToTriggerCurePotion and findtype "Orange Potion" backpack as pot 2552 dclick pot2553 wait 2002554 endif2555 2556 while not targetexists beneficial2557 if not poisoned2558 hotkey '> Interrupt'2559 break2560 else2561 cast 'Cure'2562 wait 502563 endif 2564 endwhile2565 if targetexists beneficial2566 hotkey "Target Self"2567 wait 5002568 endif2569 endif2570 2571 if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2572 overhead "Eating shrooms" 662573 dclick mushy2574 @setvar! jase_shrooms mushy2575 wait 2002576 if insysmsg "You consume a magic mushroom and restore some mana."2577 settimer magicMushroomTimer 0 2578 elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2579 settimer magicMushroomTimer 300002580 endif2581 endif2582 2583 2584 2585 if index = 02586 2587 if castLightning = 1 and diffhits < 30 and mana >= 12 and timer lightningTimer >= cdLightning and timer meditiationTimer >= cdMeditationMini and mana >= manaReserve2588 while not targetexists harmful2589 if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2590 hotkey '> Interrupt'2591 break2592 else2593 if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2594 dclick jrook2595 wft 5002596 target myKillTarget2597 settimer meditiationTimer 80002598 settimer HerdTimer 02599 cooldown Herding cdHerdingTimer2600 endif2601 cast 'Lightning'2602 wait 502603 endif 2604 endwhile2605 if targetexists harmful2606 target myKillTarget2607 settimer lightningTimer 02608 cooldown Lightning cdLightning2609 wait 5002610 endif2611 endif2612 2613 elseif index = 12614 2615 if castMagicArrow = 1 and diffhits < 30 and mana >= 5 and timer magicArrowTimer >= cdMagicArrow and timer meditiationTimer >= cdMeditationMini and mana >= manaReserve2616 while not targetexists harmful2617 if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2618 hotkey '> Interrupt'2619 break2620 else2621 if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2622 dclick jrook2623 wft 5002624 target myKillTarget2625 settimer meditiationTimer 80002626 settimer HerdTimer 02627 cooldown Herding cdHerdingTimer2628 endif2629 cast 'magic arrow'2630 wait 502631 endif 2632 endwhile2633 if targetexists harmful2634 target myKillTarget2635 settimer magicArrowTimer 02636 cooldown MagicArrow cdMagicArrow2637 wait 5002638 endif2639 endif2640 2641 elseif index = 22642 2643 if castHarm = 1 and diffhits < 30 and mana >= 9 and timer harmTimer >= cdHarm and timer meditiationTimer >= cdMeditationMini and mana >= manaReserve2644 while not targetexists harmful2645 if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2646 hotkey '> Interrupt'2647 break2648 else2649 if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2650 dclick jrook2651 wft 5002652 target myKillTarget2653 settimer meditiationTimer 80002654 settimer HerdTimer 02655 cooldown Herding cdHerdingTimer2656 endif2657 cast 'harm'2658 wait 502659 endif 2660 endwhile2661 if targetexists harmful2662 target myKillTarget2663 settimer harmTimer 02664 cooldown Harm cdHarm2665 wait 5002666 endif2667 endif2668 2669 elseif index = 32670 2671 if castFireball = 1 and diffhits < 30 and mana >= 12 and timer fireballTimer >= cdFireball and timer meditiationTimer >= cdMeditationMini and mana >= manaReserve2672 while not targetexists harmful2673 if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2674 hotkey '> Interrupt'2675 break2676 else2677 if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2678 dclick jrook2679 wft 5002680 target myKillTarget2681 settimer meditiationTimer 80002682 settimer HerdTimer 02683 cooldown Herding cdHerdingTimer2684 endif2685 cast 'fireball'2686 wait 502687 endif 2688 endwhile2689 if targetexists harmful2690 target myKillTarget2691 settimer fireballTimer 02692 cooldown Fireball cdFireball2693 wait 5002694 endif2695 endif2696 2697 endif2698 2699 if tamerModeEngaged = 12700 2701 if timer autoHealTamerPet >= cdAutoHealTamerPet2702 if not dead jaseTankPet2703 while not targetexists beneficial2704 hotkey 'Greater Heal'2705 wft 2002706 endwhile2707 else2708 while not targetexists beneficial2709 hotkey 'Resurrection'2710 wft 2002711 if diffhits >= hpCheckToTriggerGreaterHealSpell2712 break2713 endif2714 endwhile2715 if targetexists beneficial2716 target jaseTankPet2717 endif2718 while not targetexists beneficial2719 hotkey 'Greater Heal'2720 wft 2002721 endwhile2722 endif2723 if targetexists beneficial2724 target jaseTankPet2725 settimer autoHealTamerPet 02726 cooldown AutoPetHeal cdAutoHealTamerPet2727 endif2728 endif2729 2730 endif2731 2732 endfor2733 2734 if find myKillTarget -1 -1 12 as killy2735 // do nothing2736 else2737 overhead "Out of range" 342738 break2739 endif2740 2741 2742 if diffhits >= hpCheckToTriggerGreaterHealSpell2743 2744 if diffhits >= hpCheckToTriggerHealPotion and findtype "Yellow Potion" backpack as pot 2745 getlabel pot desc2746 if "next usable" in desc2747 // do nothing2748 else2749 dclick pot2750 wait 5002751 endif2752 endif2753 2754 if diffhits >= hpCheckToTriggerGreaterHealSpell and mana >= 122755 while not targetexists beneficial2756 if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell2757 cast 'Heal'2758 else2759 cast 'Greater Heal' 2760 endif2761 wait 502762 if hp = maxhp2763 hotkey '> Interrupt'2764 break2765 endif2766 endwhile2767 if targetexists beneficial2768 hotkey "Target Self"2769 wait 502770 endif2771 endif2772 elseif mana < 55 and findbuff "actively meditating" 2773 // wait for mana2774 elseif timer meditiationTimer < cdMeditationMini and findbuff "actively meditating" 2775 // wait for mana2776 elseif castChainLightning = 1 and timer chainLightningTimer >= cdChainLightning2777 while not targetexists and mana > 40 and mana >= manaReserve2778 if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2779 overhead "Eating shrooms" 662780 dclick mushy2781 @setvar! jase_shrooms mushy2782 wait 2002783 if insysmsg "You consume a magic mushroom and restore some mana."2784 settimer magicMushroomTimer 0 2785 elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2786 settimer magicMushroomTimer 300002787 endif2788 endif2789 if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2790 hotkey '> Interrupt'2791 break2792 else2793 if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2794 dclick jrook2795 wft 5002796 target myKillTarget2797 settimer meditiationTimer 80002798 settimer HerdTimer 02799 cooldown Herding cdHerdingTimer2800 endif2801 cast 'Chain Lightning'2802 wait 502803 endif 2804 endwhile2805 if targetexists2806 target myKillTarget2807 wait 5002808 if insysmsg "Target cannot be seen." 2809 @setvar! lastCannotBeSeen myKillTarget2810 overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342811 replay2812 endif2813 settimer chainLightningTimer 02814 cooldown ChainLightning cdChainLightning2815 endif2816 elseif castEbolt = 1 and mana >= 32 and mana >= manaReserve2817 while not targetexists harmful and mana > 30 and mana >= manaReserve2818 if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2819 overhead "Eating shrooms" 662820 dclick mushy2821 @setvar! jase_shrooms mushy2822 wait 2002823 if insysmsg "You consume a magic mushroom and restore some mana."2824 settimer magicMushroomTimer 0 2825 elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2826 settimer magicMushroomTimer 300002827 endif2828 endif2829 if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2830 hotkey '> Interrupt'2831 break2832 else2833 if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2834 dclick jrook2835 wft 5002836 target myKillTarget2837 settimer meditiationTimer 80002838 settimer HerdTimer 02839 cooldown Herding cdHerdingTimer2840 endif2841 cast 'Energy Bolt'2842 wait 502843 endif 2844 endwhile2845 if targetexists harmful2846 target myKillTarget2847 wait 5002848 if insysmsg "Target cannot be seen." 2849 @setvar! lastCannotBeSeen myKillTarget2850 overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342851 replay2852 endif2853 endif2854 2855 if castMindBlast = 1 and mana >= 32 and mana >= manaReserve2856 while not targetexists harmful and mana > 302857 if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2858 overhead "Eating shrooms" 662859 dclick mushy2860 @setvar! jase_shrooms mushy2861 wait 2002862 if insysmsg "You consume a magic mushroom and restore some mana."2863 settimer magicMushroomTimer 0 2864 elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2865 settimer magicMushroomTimer 300002866 endif2867 endif2868 if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2869 hotkey '> Interrupt'2870 break2871 else2872 if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2873 dclick jrook2874 wft 5002875 target myKillTarget2876 settimer meditiationTimer 80002877 settimer HerdTimer 02878 cooldown Herding cdHerdingTimer2879 endif2880 cast 'Mind Blast'2881 wait 502882 endif 2883 endwhile2884 if targetexists harmful2885 target myKillTarget2886 wait 5002887 if insysmsg "Target cannot be seen." 2888 @setvar! lastCannotBeSeen myKillTarget2889 overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342890 replay2891 endif2892 endif2893 endif2894 if castFlamestrike = 1 and mana > 42 and mana >= manaReserve2895 while not targetexists harmful and mana > 402896 2897 if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2898 overhead "Eating shrooms" 662899 dclick mushy2900 @setvar! jase_shrooms mushy2901 wait 2002902 if insysmsg "You consume a magic mushroom and restore some mana."2903 settimer magicMushroomTimer 02904 elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2905 settimer magicMushroomTimer 30000 2906 endif2907 endif2908 2909 if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2910 hotkey '> Interrupt'2911 break2912 else2913 if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2914 dclick jrook2915 wft 5002916 target myKillTarget2917 settimer meditiationTimer 80002918 settimer HerdTimer 02919 cooldown Herding cdHerdingTimer2920 endif2921 cast 'Flamestrike'2922 wait 502923 endif 2924 endwhile2925 if targetexists harmful2926 target myKillTarget2927 wait 5002928 if insysmsg "Target cannot be seen." 2929 @setvar! lastCannotBeSeen myKillTarget2930 overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342931 replay2932 endif2933 endif2934 endif2935 elseif castMindBlast = 1 and mana >= 32 and mana >= manaReserve2936 while not targetexists harmful and mana > 302937 if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2938 overhead "Eating shrooms" 662939 dclick mushy2940 @setvar! jase_shrooms mushy2941 wait 2002942 if insysmsg "You consume a magic mushroom and restore some mana."2943 settimer magicMushroomTimer 0 2944 elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2945 settimer magicMushroomTimer 300002946 endif2947 endif2948 if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2949 hotkey '> Interrupt'2950 break2951 else2952 if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2953 dclick jrook2954 wft 5002955 target myKillTarget2956 settimer meditiationTimer 80002957 settimer HerdTimer 02958 cooldown Herding cdHerdingTimer2959 endif2960 cast 'Mind Blast'2961 wait 502962 endif 2963 endwhile2964 if targetexists harmful2965 target myKillTarget2966 wait 5002967 if insysmsg "Target cannot be seen." 2968 @setvar! lastCannotBeSeen myKillTarget2969 overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 342970 replay2971 endif2972 endif2973 if castFlamestrike = 1 and mana > 42 and mana >= manaReserve2974 while not targetexists harmful and mana > 402975 2976 if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy2977 overhead "Eating shrooms" 662978 dclick mushy2979 @setvar! jase_shrooms mushy2980 wait 2002981 if insysmsg "You consume a magic mushroom and restore some mana."2982 settimer magicMushroomTimer 0 2983 elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"2984 settimer magicMushroomTimer 300002985 endif2986 endif2987 2988 if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell2989 hotkey '> Interrupt'2990 break2991 else2992 if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook2993 dclick jrook2994 wft 5002995 target myKillTarget2996 settimer meditiationTimer 80002997 settimer HerdTimer 02998 cooldown Herding cdHerdingTimer2999 endif3000 cast 'Flamestrike'3001 wait 503002 endif 3003 endwhile3004 if targetexists harmful3005 target myKillTarget3006 wait 5003007 if insysmsg "Target cannot be seen." 3008 @setvar! lastCannotBeSeen myKillTarget3009 overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 343010 replay3011 endif3012 endif3013 endif3014 elseif castFlamestrike = 1 and mana > 42 and mana >= manaReserve3015 while not targetexists harmful and mana > 403016 3017 if diffmana >= 30 and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy3018 overhead "Eating shrooms" 663019 dclick mushy3020 @setvar! jase_shrooms mushy3021 wait 2003022 if insysmsg "You consume a magic mushroom and restore some mana."3023 settimer magicMushroomTimer 0 3024 elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"3025 settimer magicMushroomTimer 300003026 endif3027 endif3028 3029 if followers < breakSpellCastAndResummonIfLessThanXFollowers or dead myKillTarget or diffhits >= hpCheckToTriggerGreaterHealSpell3030 hotkey '> Interrupt'3031 break3032 else3033 if skill "Herding" > 0 and timer HerdTimer >= cdHerdingTimer and timer meditiationTimer >= 11000 and findtype 3713 backpack as jrook3034 dclick jrook3035 wft 5003036 target myKillTarget3037 settimer meditiationTimer 80003038 settimer HerdTimer 03039 cooldown Herding cdHerdingTimer3040 endif3041 cast 'Flamestrike'3042 wait 503043 endif 3044 endwhile3045 if targetexists harmful3046 target myKillTarget3047 wait 5003048 if insysmsg "Target cannot be seen." 3049 @setvar! lastCannotBeSeen myKillTarget3050 overhead "CANNOT BE SEEN MOVE TO NEXT TARGET" 343051 replay3052 endif3053 endif3054 elseif not findbuff "actively meditating" and timer magicMushroomTimer >= cdMushroom and findtype "mushroom" backpack as mushy3055 overhead "Eating shrooms" 663056 dclick mushy3057 @setvar! jase_shrooms mushy3058 wait 2003059 if insysmsg "You consume a magic mushroom and restore some mana."3060 settimer magicMushroomTimer 0 3061 elseif insysmsg "before you may consume another magic mushroom" or insysmsg "been in combat with another"3062 settimer magicMushroomTimer 300003063 endif3064 elseif not findbuff "actively meditating" and timer meditiationTimer >= cdMeditation and isDiscorded = 1 and isPeaced = 13065 if followers > 03066 say "all guard me"3067 endif3068 useskill 'meditation'3069 settimer meditiationTimer 03070 wait 5003071 endif3072 wait 503073endwhile3074wait 5003075if targetexists 3076 hotkey 'Cancel Current Target'3077endif3078if not findbuff "actively meditating" 3079 if automaticallySkinCorpses = 1 and findtype "corpse" ground -1 -1 3 as jorpse3080 if findtype "Elven Spellblade" backpack3081 while not targetexists neutral3082 useskill 'forensicevaluation'3083 endwhile3084 if targetexists neutral3085 hotkey "Target Self"3086 wait minimumWaitForPing3087 @ignore jorpse3088 endif3089 endif3090 endif3091 if followers > 03092 say "all guard me"3093 endif3094endif3095while mana < minimumManaToCast3096 if setThisAsOneIfYouWantToTargetYourOwnKillOrItWillTargetClosestMonster = 03097 hotkey 'Target Closest Non-Friendly Monster'3098 wait 2003099 if insysmsg "No one matching that was found"3100 if timer preventOverheadSpamTimer >= cdPreventOverheadSpam3101 overhead "no next target" 343102 settimer preventOverheadSpamTimer 03103 endif3104 elseif not find lasttarget ground -1 -1 83105 overhead "� NEXT TARGET HERE �" 88 lasttarget3106 if timer preventOverheadSpamTimer >= cdPreventOverheadSpam3107 overhead "Move closer, more then 8 tiles away" 343108 settimer preventOverheadSpamTimer 03109 endif3110 else3111 overhead "� NEXT TARGET HERE �" 88 lasttarget3112 attack lasttarget3113 endif 3114 endif3115 if diffhits >= hpCheckToTriggerGreaterHealSpell3116 if diffhits >= hpCheckToTriggerHealPotion and findtype "Yellow Potion" backpack as pot 3117 getlabel pot desc3118 if "next usable" in desc3119 // do nothing3120 else3121 dclick pot3122 wait 6503123 endif3124 endif3125 if diffhits >= hpCheckToTriggerGreaterHealSpell and mana >= 123126 while not targetexists beneficial3127 if diffhits >= hpCheckToTriggerMiniEmergencyHealSpell3128 cast 'Heal'3129 else3130 cast 'Greater Heal' 3131 endif3132 wait 503133 if hp = maxhp3134 hotkey '> Interrupt'3135 break3136 endif3137 endwhile3138 if targetexists beneficial3139 hotkey "Target Self"3140 wait 503141 endif3142 endif3143 endif3144 if not findbuff "actively meditating" 3145 useskill 'meditation'3146 endif3147 wait 5003148endwhile3149if canYouMakeAMushroom = 1 and counttype "mushroom" backpack < butOnlyIHaveLessThenThisCount3150 if mana >= manaReserve3151 while counttype "mushroom" backpack < makeThisManyMushroomsCount3152 cast "Create Food"3153 wait 2003154 if diffhits >= 20 or counttype "mushroom" backpack = 03155 break3156 endif3157 endwhile3158 endif3159endif3160if castVampiricEmbrace = 1 and timer vampiricEmbraceTimer >= cdVampiricEmbrace and skill "Necromancy" >= 70 and findtype 8198 ground -1 -1 4 as jorpse3161 say "[VampiricEmbrace"3162 wft 5003163 target jorpse3164 settimer vampiricEmbraceTimer 03165 cooldown VampiricEmbrace cdVampiricEmbrace3166endif3167if castSummonEarthElementalCount = 1 or castSummonFireElementalCount = 1 or castSummonDemonCount = 1 or castSummonAirCount = 1 or castSummonWaterCount = 13168 useskill "spiritspeak"3169 settimer meditiationTimer 80003170endif3171if timer killTargetTimer >= cdKillTarget3172 overhead "We cleared curse and mana drain targets" 343173 removelist myCursedTargets 3174 removelist myManaDrainTargets3175 removelist myManaVampireTargets3176endif3177 3178if autoBotEnabled = 13179 replay3180endif3181 3182// other ways to handle line of sight:3183 3184// animal lore3185// You cannot see that from here.3186 3187// we can herding maybe question mark?3188// That target is out of your line of sight.3189 3190// casting a spell3191// Target cannot be seen.3192 3193 3194// thanks for using a Jaseowns script!3195// https://www.youtube.com/jaseowns3196 3197// We did it