Skip to content
Outlands Hub

Razor script

Lord Glacier's Chill SUMMONER AUTO PILOT - UO OUTLANDS RAZOR SCRIPT - v3.0.1

by danstock._98439 · 18001 lines
Download

Compatibility unverified

This community Razor script has not been tested in game by the Hub. Read its setup and client requirements before use.

Lord Glaciers Chill SUMMONER AUTO PILOT - UO OUTLANDS RAZOR SCRIPT version 3.0.1 UO Outlands Razor script - Released September 17, 2025 - Last updated October 9, 2026 Compiled by DanStock. (aka. Lord Glacier)

MagicHidingTracking
Lord Glaciers Chill SUMMONER AUTO PILOT - UO OUTLANDS RAZOR SCRIPT - v301.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/8c113c0a-ec2e-4d73-b44e-6985644bf685 for latest2# Automation by Jaseowns3## Script: Lord Glacier's Chill SUMMONER AUTO PILOT - UO OUTLANDS RAZOR SCRIPT - v3.0.14## Created by: danstock._98439#05#############################################6 7/////////8////////                                          Lord Glaciers Chill SUMMONER AUTO PILOT - UO OUTLANDS RAZOR SCRIPT version 3.0.19///////10//////                                                  UO Outlands Razor script - Released September 17, 2025 - Last updated October 9, 202611/////                                                       Compiled by DanStock. (aka. Lord Glacier)12////13///14 15 16 17                                                                              ################################18                                                                             //      QUICK MODE CHANGE:      \\19                                                                            ####################################20 21                                                                                @setvar! DUNGEONMODE 122                                                                                @setvar! WILDERNESSMODE 023 24                                                                                # DUNGEON = Auto FIND GATE25                                                                                # WILDERNESS = Auto RECALL26 27                                                                            ####################################28                                                                             ##################################29 30 31 32 33 34                                                   ###############################                     ###############################35                                                  //  SUGGESTED SKILL TEMPLATE:  \\                   //      INVENTORY ITEMS:       \\36                                                 ###################################                 ###################################37 38                                                    #      120  Necromancy                               Book of Necromancy39                                                    #      120  Spirit Speak                             Wizards Grimoire40                                                    #      120  Herding                                  Summoners Tome41                                                    #      120  Forensic Evaluation **                   Crafted (or magic) Spellbook42                                                    #      100  Magery                                   Leather armour43                                                    #      100  Eval Intelligence                        Potion Satchel (w/ potions)44                                                    #       40  Meditation                               Wizard Satchel (w/ regs)45                                                    #                                                    Magic Mushrooms46                                                    #   ASPECT: COMMAND book                             Delectable food trays47                                                    #           COMMAND armour                           Trapped pouches48                                                    #                                                    Adventurers rope49                                                    #        or FROST armour                             Scissors [blessed] *50                                                    #        or VOID armour                              Wooden Box w/ copper key *51                                                    #        or ELDRITCH armour/book                     Aspect crystals *52                                                    #53                                                    # ** or Inscription/Camping/Tracking54 55                                                 ##################################                  ##################################56                                                  ################################                    ################################57                                                   ##############################                      ##############################58 59 60 61 62    /////////////////////////63    //'    CHANGE LOG:    '//64    /////////////////////////65 66#       Oct 09 2026 - version 3.0.1:  There is always something to improve... Added checks for LootBag and Escape Runebook outside of script setup/reset and will now prompt to target new if not found67#                                     Also added summon detection check to Auto Recall Dispel Summons (will only cast if followers are found - in case your summons do not recall properly)68#       Oct 08 2026 - version 3.0.0:  BIG UPDATE: Completely reworked the summoning system (detection, naming and combat improvements), improved Crook detection/activation and simplified variables69#                                     Also totally overhauled the offensive magery options with new Opening spells and Large, Medium and Small Damage loops based on mana/variable settings70#                                     Improved targeting and attacking responsiveness as well as defensive efficiency improvements to improve safety (everything just works better)71#                                     Update also includes new storage tome updates, loot storage enhancements and brings the common script items up to my current specs (email bugs: dan@danstockman.com)72#73#       Jun 21 2026 - version 2.0.5:  Finally have the targeting and attacking working much quicker and everything feels dialed in - this works very well now! Final version for a while (hopefully)74#       Jun 20 2026 - version 2.0.4:  Quick update to add Dual Wielding and Throwing Weapons to EnablePutLootinLockBox auto loot storage section75#       Jun 19 2026 - version 2.0.3:  Added magery buff checks to No Target Loop and small adjustments to targeting section and priority healing loop76#       Jun 09 2026 - version 2.0.2:  Chasing perfection now. Just made some small targeting tweaks, cosmetic changes to some overheads and added support for herding skill77#       Jun 07 2026 - version 2.0.1:  I lied. One more big update! Added further integration with undead summons (now equally supported w/ new overhead message mode, etc.)78#                                     Also changes to the Poison Strike system (now works for both cast poison OR corpse skin disease) and tweaks to casting poison section79#                                     Final adjustments to acquisition and targeting system speed and allowance for targeting battle trainers (for DPS checks or training)80#                                     A new overhead message mode which gives a middle ground between constant spam and limited target-only mode (see below)81#                                     I have put a lot of time and effort into this last v2.0 build and I am pleased with it currently - I hope it works for you!82#       Jun 03 2026 - version 2.0.0:  Big update! Calling it v2.0. Targeting system massively improved, overall tempo is better and everything works as intended83#       May 29 2026 - version 1.2.0:  Almost there.  Just trying to fix a hang-up in the attack loop - but it is working well otherwise84#       May 28 2026 - version 1.1.9:  Adjustments to healing loop triggers, PK radar delays and other things to speed up attack modes85#       May 23 2026 - version 1.1.8:  Adjustments to target acquisition and attack loop sections86#       May 20 2026 - version 1.1.7:  Fixed bug when filling pots from kegs if one of the types was set to '0'87#       Jan 05 2026 - version 1.1.6:  Minor updates to the reagent splitter and potion keg sections and more summon creature tweaks88#       Jan 04 2026 - version 1.1.5:  Added poison potion option to keg filling and added skinning to dungeon escape loop89#       Jan 03 2026 - version 1.1.4:  Fixed a coding error (double 'if' on line 6185 of 1.1.3) and added a Storage Tome Container variable to the Auto Recall section90#       Dec 12 2025 - version 1.1.3:  Everything seems to work now!  One final tweak to the escape loop and I think it is done... email any bugs to dan@danstockman.com91#       Dec 11 2025 - version 1.1.2:  Still having issues with advanced Summon Creature loop.  Hoping it is better now (also fixed timing issues with g.heal spell)92#       Dec 10 2025 - version 1.1.1:  Last update was a mess... tons of errors.  I think I sorted it all out.93#       Dec 10 2025 - version 1.1.0:  Fixed a bug when summoning creature spell is upgraded to creature pools 2, 3 or 4 - also cleaned up some overhead spam94#       Dec 08 2025 - version 1.0.9:  Cant stop.  Added variable to dispel summons after recalling and fixed an issue with Strength Potion use95#       Dec 07 2025 - version 1.0.8:  I lied.  Fixed some stuff in the loadout reset and added a PVP cooldown for potion kegs96#       Dec 06 2025 - version 1.0.7:  Misspelled timer and overhead message.  Now it is done.... I think.97#       Dec 05 2025 - version 1.0.6:  Final touches and tweaks98#       Dec 04 2025 - version 1.0.5:  Fixed some missing timers, a misspelling in the fire elemental summons and adjusted the targeting code99#       Dec 03 2025 - version 1.0.4:  Minor tweaks to the order of things and some additional heal potion checks added100#       Dec 02 2025 - version 1.0.3:  Added target attack range variable - you can reduce this to avoid stealing other peoples MOBs101#       Dec 01 2025 - version 1.0.2:  Fixed bug causing meditation to trigger RECALL/ESCAPE modes102#       Nov 28 2025 - version 1.0.1:  Fixed bug in poison section and updated script to match my others - WAR mode is now for combat and Peace mode for RECALL/ESCAPE103#       Sep 17 2025 - version 1.0.0:  Public script release!  Email any issues to: dan@danstockman.com104 105 106 107 108    ///////////////////109    //'    TIPS:    '//110    ///////////////////111 112#       IMPT! (IF USING AUTO RECALL): FIRST RUN OF SCRIPT SHOULD BE DONE IN HOUSE/INN ROOM AND TAKES ROUGHLY 15 SECONDS TO COMPLETE INITIAL (ONE TIME) SETUP!113#           Initial setup can be redone by setting 'ResetScriptPermanentVariables' variable to '1' below!114#           Or you can re-target script variables individually in the 'Options' tab above the script115#116#117#       This script will automatically summon and maintain your SUMMONS based on your variable settings below (up to maximum of 5 control slots)118#       Summons can be either standard elementals or undead summons (based on 'EnableNecroVengefulSpirit' setting below)119#       Script will automatically detect if your summons have died, been dispelled or timed out and will resummon, rename, etc.120#       Summons will GUARD by default, KILL when valid target is within attack range or FOLLOW when DUNGEON ESCAPE is triggered (manual or weight)121#       Running script in WAR MODE will automatically search for and analyze nearby targets and ATTACK if valid target is found within range122#       Targets will be attacked using 'All kill' command -> opening spells -> large damage spells -> medium damage spells -> small damage spells (configure below)123#       Script uses optional BUFFS (during combat) along with POTIONS, BANDAGES and HEALING SPELLS, etc. to keep you alive124#       Running script in PEACE MODE will trigger optional AUTO RECALL (WILDERNESS MODE) or AUTO DUNGEON ESCAPE (DUNGEON MODE) with settings below125#       Using the STATS page in the U.I. or (much easier) the OUTLANDS BUTLER website make sure you are maximizing and reaching your mana refund cap (or other template goals)126#       Recommend use of MEDITATION RATE chain links, DAMAGED TO DISEASED chain links and SPELL ASPECT CHANCE chain links (if going spell-based summoner route)127#       Recommend use of FOLLOWER DAMAGE chain links, FOLLOWER ATTACK SPEED chain links and FOLLOWER DAMAGE RESIST chain links (if going pet-damage summoner route)128#       Eating MUSHROOMS with the Wizards Grimoire will restore MANA (60 second cooldown) if you have 5 points in CREATE FOOD (very important)129#       Otherwise, I would prioritize CURSE, BLESS and PROTECTION in your WIZARDS GRIMOIRE (or MANA DRAIN if needed to reach mana refund cap)130#       Then I would put remaining points into damage spells (Flamestrike, Ebolt, Mindblast, Lightning, Magic Arrow, Fireball, etc.)131#       Script displays lots of OVERHEAD MESSAGES by default - these can be changed in the variable section (minimal target indicators always remain)132#       Recommend using Razor TEXT FILTERS to cancel redundant system messages and Razor spam133#       Script has optional COOLDOWNS you can add (see list below) but they are NOT required for script function - just handy to display on bars in your U.I.134#       Script uses ORGANIZER AGENT-01 for optional MAIN INVENTORY pouch organization (can be set to auto select your main bag in inventory reset below)135#       If enabled AUTO RECALL triggers when RED is within target range or when WEIGHT LIMIT is reached in WILDERNESSMODE (optional DIY recall script usage, as well)136#       If enabled and RED is targeted in DUNGEONMODE (or WEIGHT LIMIT reached) script will use DUNGEON ESCAPE mode to locate and activate MOONGATES while keeping you alive137#       If enabled POTIONS will be automatically consumed as needed and optionally can refill pots from KEGS to reduce carry weight (and increase potion quantities)138#       If using POTION KEGS and EXPLOSION POTIONS (telekinesis spell will be used to make target sticky if Alchemy < 80) make sure to pack extra EMPTY BOTTLES139#       If enabled LOOT CHEST in your HOME/INN/BANK is used to store goods, script uses ORGANIZER AGENTS 06-09 as sub-containers you can set inside the chest to organize items further140#       If enabled and WOODEN BOX and COPPER KEY are found in inventory, loot will be automatically moved and secured when not in combat (make sure key is not inside box and well hidden)141#       If you die the DEATH LOOP will auto select moongates and travel to last gated town and then waits to auto-select the resurrection gump when a HEALER is located142#       If enabled a DRESS LIST of your [blessed] wearables will be equipped after resurrection (dress list must be named 'UltimateSummoner')143#       If enabled after resurrection script can recall home (requires scrolls in [blessed] runebook), resupply, heal, activate aspects and even set up your pack with pouch stacks, etc.144#       If enabled INVENTORY RESET will stack trapped pouches on your main inventory pouch (after putting scissors inside to protect them from shelf restocking) and then hide the stack145#       MANY FEATURES ARE TURNED 'OFF' BY DEFAULT!  MAKE SURE TO CHECK THE VARIABLE SECTION BELOW CLOSELY PRIOR TO FIRST USE!!146#       This script is a compilation of many existing scripts married to my own new stuff, but BIG thanks to user dennozz for many features I learned from studying their scripts!147 148 149 150 151                           #############################################################################################################################152                           #                                                                                                                           #153                           #                                            //////////////////////////////                                                 #154                           #                                            //    RESET SCRIPT HERE:    //                                                 #155                           #                                            //////////////////////////////                                                 #156                           #                                                                                                                           #157                           #                      SET THIS VALUE TO '1' AND RUN SCRIPT TO UNSET ALL PERMANENT SCRIPT VARIABLES:                        #158                           #                                                                                                                           #159                                                                @setvar! ResetScriptPermanentVariables 0160                           #                                                                                                                           #161                           #                    THEN RETURN 'ResetScriptPermanentVariables' TO '0' TO RESTART INITIAL SETUP...                         #162                           #                (Or you can re-target script variables individually in the 'Options' tab above the script!)                #163                           #                                                                                                                           #164                           #                                                                                                                           #165                           #############################################################################################################################166 167 168 169     #####################################################170    ###'    OPTIONAL COOLDOWNS TO ADD IN UO CLIENT:    '###171    ###'               (case sensitive!)               '###172     #####################################################173 174#         Mushroom175#         Healing Potion176#         Purple Potion177#         Panacea Potion178#         Corpse Skin179#         Evil Omen180#         Mind Rot181#         Pain Spike182#         Blood Oath183#         Strangle184#         Poison Strike185#         Vengeful Spirit186#         Wither187#         Frost Shell Cooldown188#         Frost Shell Active189 190 191 192 193                        ###################################################################################################################################194                        #      MOST FEATURES ARE TURNED 'OFF' BY DEFAULT! PLEASE CHECK THE 'VARIABLES' SECTION BELOW CAREFULLY DURING INITIAL SETUP!      #195                        ###################################################################################################################################196 197 198 199 200     #################################201    ###'      USER VARIABLES:      '###202     #################################203 204 205//////////////////////206//'   SUMMONING:   '//207//////////////////////208 209    ##########################210    #'   SET YOUR SUMMONS:  '#211    #########################212 213// Number of summoned pets ('0' '1' or '2' each, etc.):214    @setvar! SummonEarthElemental_or_AncientMummy 0215    @setvar! SummonWaterElemental_or_RagWitch 0216    @setvar! SummonAirElemental_or_SkeletalFiend 0217    @setvar! SummonFireElemental_or_Lich 0218    @setvar! SummonDemon_or_VampireThrall 0219    @setvar! SummonCreature_or_UndeadCreature 0220 221        # Elemental OR Undead summon depends on 'EnableNecroVengefulSpirit' setting below!222        # Elementals/Demons/Liches/Thralls/etc. occupy '2 of 5' control slots each223        # Summoned creatures occupy '1 of 5' control slots each224        # 'MAXIMUM OF 5 CONTROL SLOTS TOTAL!'225 226 227    ##########################228    #'  NAME YOUR SUMMONS:  '#229    ##########################230 231    @setvar! NameSummonedPets 0232        # If enabled, pets will be named (based on lists below) upon summoning233        # If name is unacceptable, or upon new summons, the next name in the list will be used234        # Lists recycle when all named have been used and will return to the first name235        # As far as I can tell, you can add as many names as you like to each list! (just add another line: pushlist ExampleSummonNamesList "NEW PET NAME")236 237    // Change and add PET NAMES in lists below:  //238 239        if NameSummonedPets = 1240        # 'EARTH ELEMENTAL/ANCIENT MUMMY NAMES':241            if SummonEarthElemental_or_AncientMummy > 0242                if not listexists EarthEleAncientMummNamesList243                    createlist EarthEleAncientMummNamesList244                endif245                if list EarthEleAncientMummNamesList = 0246                    pushlist EarthEleAncientMummNamesList "Terranous"247                    pushlist EarthEleAncientMummNamesList "Rikura"248                    pushlist EarthEleAncientMummNamesList "Terradus"249                    pushlist EarthEleAncientMummNamesList "Pebbellz"250                    pushlist EarthEleAncientMummNamesList "Rawckee"251                    pushlist EarthEleAncientMummNamesList "Boulderass"252                    pushlist EarthEleAncientMummNamesList "Demetrious"253                    pushlist EarthEleAncientMummNamesList "Hevvee"254                    pushlist EarthEleAncientMummNamesList "Stoneyy"255                    pushlist EarthEleAncientMummNamesList "Avanii"256                endif257            endif258 259        # 'WATER ELEMENTAL/RAG WITCH NAMES':260            if SummonWaterElemental_or_RagWitch > 0261                if not listexists WaterEleRagWitchNamesList262                    createlist WaterEleRagWitchNamesList263                endif264                if list WaterEleRagWitchNamesList = 0265                    pushlist WaterEleRagWitchNamesList "Burimmah"266                    pushlist WaterEleRagWitchNamesList "Asherahh"267                    pushlist WaterEleRagWitchNamesList "Tiamattus"268                    pushlist WaterEleRagWitchNamesList "Hyrdrosis"269                    pushlist WaterEleRagWitchNamesList "Aachtoohoe"270                    pushlist WaterEleRagWitchNamesList "Hydroniuous"271                    pushlist WaterEleRagWitchNamesList "Juballaa"272                    pushlist WaterEleRagWitchNamesList "Wettiuss"273                    pushlist WaterEleRagWitchNamesList "Nanamiia"274                    pushlist WaterEleRagWitchNamesList "Afonnis"275                endif276            endif277 278        # 'AIR ELEMENTAL/SKELETAL FIEND NAMES':279            if SummonAirElemental_or_SkeletalFiend > 0280                if not listexists AirEleSkeleFiendNamesList281                    createlist AirEleSkeleFiendNamesList282                endif283                if list AirEleSkeleFiendNamesList = 0284                    pushlist AirEleSkeleFiendNamesList "Alyaah"285                    pushlist AirEleSkeleFiendNamesList "Zeruss"286                    pushlist AirEleSkeleFiendNamesList "Windius"287                    pushlist AirEleSkeleFiendNamesList "Tornadous"288                    pushlist AirEleSkeleFiendNamesList "Hurhicann"289                    pushlist AirEleSkeleFiendNamesList "Aeronious"290                    pushlist AirEleSkeleFiendNamesList "Stratosus"291                    pushlist AirEleSkeleFiendNamesList "Cloudass"292                    pushlist AirEleSkeleFiendNamesList "Blohh"293                    pushlist AirEleSkeleFiendNamesList "Gassius"294                endif295           endif296 297        # 'FIRE ELEMENTAL/LICH NAMES':298            if SummonFireElemental_or_Lich > 0299                if not listexists FireEleLichNamesList300                    createlist FireEleLichNamesList301                endif302                if list FireEleLichNamesList = 0303                    pushlist FireEleLichNamesList "Seraphinz"304                    pushlist FireEleLichNamesList "Vulcanuz"305                    pushlist FireEleLichNamesList "Blazze"306                    pushlist FireEleLichNamesList "Valcanii"307                    pushlist FireEleLichNamesList "Lavaass"308                    pushlist FireEleLichNamesList "Pryo"309                    pushlist FireEleLichNamesList "Fumettos"310                    pushlist FireEleLichNamesList "Heliozz"311                    pushlist FireEleLichNamesList "Phenixx"312                    pushlist FireEleLichNamesList "Ziriuz"313                endif314            endif315 316        # 'DEMON/VAMPIRE THRALL NAMES':317            if SummonDemon_or_VampireThrall > 0318                if not listexists DemonVampThrallNamesList319                    createlist DemonVampThrallNamesList320                endif321                if list DemonVampThrallNamesList = 0322                    pushlist DemonVampThrallNamesList "Akuumah"323                    pushlist DemonVampThrallNamesList "Agarez"324                    pushlist DemonVampThrallNamesList "Baahl"325                    pushlist DemonVampThrallNamesList "Beelzeabubbs"326                    pushlist DemonVampThrallNamesList "Daemahnn"327                    pushlist DemonVampThrallNamesList "Satanious"328                    pushlist DemonVampThrallNamesList "Daemagrin"329                    pushlist DemonVampThrallNamesList "Pentagrys"330                    pushlist DemonVampThrallNamesList "Mordorious"331                    pushlist DemonVampThrallNamesList "Pyrathius"332                endif333            endif334 335        # 'CREATURE/UNDEAD CREATURE NAMES':336            if SummonCreature_or_UndeadCreature > 0337                if not listexists CreatureNamesList338                    createlist CreatureNamesList339                endif340                if list CreatureNamesList = 0341                    pushlist CreatureNamesList "Grimmaloo"342                    pushlist CreatureNamesList "Thornicus"343                    pushlist CreatureNamesList "Bumblethor"344                    pushlist CreatureNamesList "Zandorius"345                    pushlist CreatureNamesList "Andymanous"346                    pushlist CreatureNamesList "Morgle"347                    pushlist CreatureNamesList "Aylamayous"348                    pushlist CreatureNamesList "Krumblus"349                    pushlist CreatureNamesList "Drakonius"350                    pushlist CreatureNamesList "Balthazor"351                endif352            endif353 354        elseif NameSummonedPets = 0355            clearlist EarthEleAncientMummNamesList356            clearlist WaterEleRagWitchNamesList357            clearlist AirEleSkeleFiendNamesList358            clearlist FireEleLichNamesList359            clearlist DemonVampThrallNamesList360            clearlist CreatureNamesList361        endif362 363 364/////////////////////365//'  NECROMANCY:  '//366/////////////////////367 368@setvar! EnableNecroWither 0369    # Will cast Wither prior to summoning elementals (reduces summoning mana cost)370 371    @setvar! EnableNecroVengefulSpirit 0372    # Vengeful Spirit will summon undead minions instead of elementals (set types/amounts above)373        @setvar! EnableNecroBloodOath 0374            # 'EnableNecroBloodOath' requires 'EnableNecroVengefulSpirit' to also be enabled (undead summons buff)375 376@setvar! MinimumManaAmounttoNecroBuff 20377    @setvar! EnableNecroStrangle 0378    @setvar! EnableNecroCorpseSkin 1379    @setvar! EnableNecroMindRot 1380    @setvar! EnableNecroEvilOmen 0381        # Necro buffs will be used (during combat) if Unholy Points are sufficient and minimum mana is exceeded382        # For optimum performance 'MinimumManaAmounttoNecroBuff' should be the same or higher than 'CastSmallSpellsBelowMana' (below)383 384@setvar! EnableNecroPainSpike 0385    @setvar! PainSpikeAttackDelay 12000386        # Adjust delay after acquiring a new target before attempting Pain Spike (to accumulate damage)387        # Increase delay if fighting tougher MOBs.388        # Timer starts when new target is attacked and delays Pain Spike (must have corpses in range to trigger)389 390@setvar! EnableNecroPoisonStrike 0391    # '0' for 'Disabled'392    # '1' for 'Apply after Corpse Skin disease delay timer only'393        # DO NOT USE SETTING '1' IF INTENDING TO TRIGGER FROM CAST POISON TICKS (use '2 - 9' instead!)394        # SETTING '1' IS FOR CORPSE SKIN DISEASE TRIGGERED POISON STRIKES ONLY! (set delay value below)395    # '2' for 'Apply in 2 poison ticks left or less'396    # '3' for 'Apply in 3 poison ticks left or less'397    # '4' for 'Apply in 4 poison ticks left or less'398    # '5' for 'Apply in 5 poison ticks left or less'399    # '6' for 'Apply in 6 poison ticks left or less'400    # '7' for 'Apply in 7 poison ticks left or less'401    # '8' for 'Apply in 8 poison ticks left or less'402    # '9' for 'Apply in 9 poison ticks left or less'403        # Poison Strike will be triggered by remaining Ticks (if spell poisoned) or by Corpse Skin timer (if diseased)404        # If using spell poison, use values '2 - 9' to set your Poison Strike trigger point (if sufficient Unholy Points available, etc.)405        # Poison Strike settings '2 - 9' require 'EnableCastPoison' turned on! (below)406        # If NOT using spell poison, use value '1' and set delay below (Corpse Skin must be enabled)407 408    @setvar! CorpseSkinPoisonStrikeDelay 15000409        # Poison Strike setting '1' requires 'EnableNecroCorpseSkin' turned on (above)410        # Setting 'CorpseSkinPoisonStrikeDelay' is the delay after casting CORPSE SKIN on NEW target before triggering POISON STRIKE411        # Increase delay value if fighting tougher MOBs412 413 414////////////////////415//'  OFFENSIVE:  '//416////////////////////417 418//  TARGET ATTACKING:  //419    @setvar! TargetAttackRange 12420        # Set your target auto attack range (1-12 tiles)421        # Targeted grey MOBs within this range will be engaged422        # Grey MOBs will still be targeted and analyzed outside of attack range (up to 12 tiles), but not attacked423 424        @setvar! CheckClosestTargetTime 2500425            # Adjust the frequency of closest target checks during combat mode (1000 - 5000ms recommended)426            # If this is set to '0' the target will remain locked until dead or out of range427 428//  EQUIPPED SPELLBOOK CHECK:  //429    @setvar! EnableSpellbookCheck 0430        # Use '>info' to ID any of your [blessed] spellbooks and add the serial here:431        @setvar! MyBlessedSpellbook 0x00000000432            # This will prevent the script from trying to equip it (instead of your aspect spellbook)433 434//  ACTIVE CROOK CHECK:  //435    @setvar! EnableAutoCrookCheck 0436        # If herding skill > 50 and crook is found, crook will be checked for activation (and activated if needed)437        # Ignores unidentified magic crooks and will activate valid crooks if found inactive438        # Activated crook will be ignored when transferring loot to lockbox (if using 'EnablePutLootinLockBox' option below)439 440//  OPENING SPELLS:  //441    @setvar! EnableCastCurse 0442    @setvar! EnableCastManaDrain 0443        # If enabled, Curse and/or Mana Drain will be cast on NEW targets (or every 60 seconds) before using large spells444        # Curse is highly recommended (upgrade using wizards grimoire) as well as Mana Drain (if needed to hit mana refund cap)445 446    # You can open with a small damage spell (ex. to apply disease) before entering main attack loops447    # Choose only 'ONE AT A TIME':448        @setvar! EnableOpenWithLightning 0449        @setvar! EnableOpenWithFireball 0450        @setvar! EnableOpenWithHarm 0451        @setvar! EnableOpenWithMagicArrow 0452 453//  LARGE DAMAGE SPELLS:  //454    @setvar! EnableCastFlamestrike 1455    @setvar! FlamestrikeCooldown 0456        # Flamestrike spell will be spammed repeatedly if parameters are met:457        //  Mana > 'CastMediumSpellsBelowMana' (set below), Sulfurous Ash & Spiders silk in inventory, target in attack range, and HP diff < CastGreaterHealHPdiff458        //  Recommend leaving Flamestrike cooldown at '0' unless you want to experiment459 460 461//  MEDIUM DAMAGE SPELLS:  //462    @setvar! CastMediumSpellsBelowMana 60463        # Medium damage spells will be used when mana < 'CastMediumSpellsBelowMana' but > 'CastSmallSpellsBelowMana'464        # I have found '60' for medium and '20' for small to work well but you can experiment (at your own risk)465        # Adjust your cooldowns to your preference (upgrade spells using wizards grimoire)466 467        @setvar! EnableCastExplosion 1468        @setvar! ExplosionCooldown 10000469 470        @setvar! EnableCastEnergyBolt 1471        @setvar! EnergyBoltCooldown 0472 473        @setvar! EnableCastMindblast 0474        @setvar! MindblastCooldown 0475 476 477//  SMALL DAMAGE SPELLS:  //478    @setvar! CastSmallSpellsBelowMana 20479        # Script will prioritize big spells (FS, xplo, ebolt, MB) above this mana value480        # Magic Arrow, Harm, Fireball and Lightning will only be cast below this point481        # Value can range from '10-110' (lower than '10' may cause errors)482        # Spell cooldown values (below) can be increased to reduce casting frequency if necessary483        # IMPT:  Upgrade spell damage using wizards grimoire484 485        @setvar! EnableCastMagicArrow 0486        @setvar! MagicArrowCooldown 15000487 488        @setvar! EnableCastHarm 0489        @setvar! HarmCooldown 15000490 491        @setvar! EnableCastFireball 0492        @setvar! FireballCooldown 15000493 494        @setvar! EnableCastLightning 0495        @setvar! LightningCooldown 15000496 497//  POISON SPELL:  //498    @setvar! EnableCastPoison 0499        @setvar! SetPoisonLevel 0500            # '0' for 'Greater or less'501            # '1' for 'Deadly'502            # '2' for 'Lethal'503            # Poison spell will be cast repeatedly on targeted MOB until set poison level is reached504 505//  MEDITATION SETTINGS:  //506    @setvar! EnableMeditation 0507        @setvar! MeditateWhenManaBelow 11508        @setvar! MeditateUntilManaReaches 50509            # If enabled, meditation will trigger if mana falls below 'MeditateWhenManaBelow'510            # Peace Mode will be activated while meditating511            # Script will resume if HP drops below 'CastGreaterHealHPdiff' (below) or if War Mode is activated512            # Otherwise, meditation ends when 'MeditateUntilManaReaches' is reached and script resumes513 514 515////////////////////////516//'    DEFENSIVE:    '//517////////////////////////518 519@setvar! EnableAutoParalyzePouch 1520    # Will automatically pop trapped pouches if paralyzed (will also trigger auto recall/gating, if enabled below)521 522@setvar! AutoTrapYourPouches 0523    # Will automatically cast 'Magic Trap' any untrapped pouches found in your backpack524 525    @setvar! EnableCastGreaterHeal 1526    @setvar! EnableCastHeal 1527        @setvar! CastGreaterHealHPdiff 45528        @setvar! CastHealHPdiff 60529        @setvar! CastEmergencyHealHPdiff 75530            # If damage exceeds 'CastHealHPdiff' Heal spell will be used to quickly recover before casting Greater Heal spell531            # If damage exceeds 'CastGreaterHealHPdiff' but is less than 'CastHealHPdiff' then Greater Heal spell will be used532            # If damage exceeds 'CastEmergencyHealHPdiff' then Heal spell will be spammed to keep you alive533            # Heal potions are always prioritized (if enabled below and found in inventory) for instant healing along with spellcasts534 535    @setvar! EnableCastCure 1536        # If poisoned and 'EnableCastCure' is enabled, Cure spell will be cast until no longer poisoned537 538@setvar! MinimumManaToApplyMageryBuffs 40539    # Magery Buffs (below) will only be applied if mana is above this set point540    @setvar! EnableMagicReflection 0541    @setvar! EnableBless 0542    @setvar! EnableReactiveArmour 0543 544        @setvar! EnableArchProtection 0545        @setvar! EnableProtection 0546            # Only enable 'Protection' or 'ArchProtection' at once - not both!547            # If both are enabled only Arch Protection will be cast (as the trigger condition is the same for each)548 549@setvar! LowManaWarningAmount 10550    # Overhead Low Mana warning (independent of other overhead message settings)551 552@setvar! EnableFrostAspect 0553    @setvar! FrostAspectTier 0554    # Set your Frost Aspect level (if using Frost Aspect armour)555    #   This will automatically set your optional Frost Shell Cooldown length556    #   Add cooldowns in UO options 'Frost Shell Cooldown' and 'Frost Shell Active' (case sensitive)557 558 559//////////////////////////560//'      POTIONS:      '//561//////////////////////////562 563//  POTS & KEGS:  //564@setvar! EnableHealPotion 1565    @setvar! HealPotionHPdiff 35566    # Adjust HP diff set points for Heal and Refresh potion567    # Heal potions will be prioritized over all healing options if not on cooldown568 569    @setvar! HealingPotionCooldown 10000570        # This value only affects your OPTIONAL COOLDOWN BAR (script uses other checks to verify heal pots are available)571        # You can reduce this value if using Potion Codex572        # Add cooldown in UO options: 'Healing Potion' (case sensitive)573 574@setvar! EnableCurePotion 1575    # Cure pots will be used as needed (if enabled and found in inventory)576 577    @setvar! EnablePanaceaPotion 0578        # Requires 80+ Alchemy skill, Cure Potions and Potion Codex in inventory w/ Panacea buff unlocked579        # Will automatically consume Cure Potion if Bleeding or Diseased580 581    @setvar! EnableCleansingBrews 0582        # Requires Cleansing Brews in inventory583        # Will automatically consume Cleansing Brew if Bleeding or Diseased (and not on cooldown)584 585@setvar! EnableRefreshPotion 0586    @setvar! RefreshPotionSPdiff 10587    # Adjust SP diff set point for Refresh potion consumption588 589@setvar! EnableStrengthPotion 0590@setvar! EnableAgilityPotion 0591@setvar! EnableMagicResistPotion 0592    # Strength, Agility and Resist potions will auto-buff when effects wear off (if enabled) *593    //    * If Alchemy skill is greater than 0.0 but less than 2.0 the script will take your next STRENGTH potion BEFORE the effect wears off!594    //      For example, with an Alchemy skill of 1.0 your buff duration will be 2m 05s and a new strength potion is available after 2 mins595    //      Taking your next potion during the extra 5 second buffer will keep your HP at 120 (instead of a temporary drop and HP of 100/120)596 597@setvar! EnableAutoExplosionPots 0598    @setvar! PurplePotionCooldown 15000599    # Uses 'Telekinesis' spell to make new target MOBs sticky first (if Alchemy skill < 80)600 601    @setvar! EnableUsePotionKegs 0602        # Will auto fill empty bottles from potion kegs if counts drop below set amounts:603        # Requires potion kegs and empty bottles (pack extra if using explosion potions!)604        # A good way to carry lots of potions without weighing you down605 606        if EnableUsePotionKegs = 1607            @setvar! HealingPotionAmount 5608            @setvar! CurePotionAmount 5609            @setvar! RefreshPotionAmount 2610            @setvar! StrengthPotionAmount 1611            @setvar! AgilityPotionAmount 1612            @setvar! ResistPotionAmount 1613            @setvar! ExplosionPotionAmount 1614            @setvar! PoisonPotionAmount 0615        endif616 617//  MUSHROOMS:  //618@setvar! EnableEatMagicMushrooms 0619    @setvar! EatMushroomManadiff 30620        # Will consume Magic Mushrooms when mana diff exceeded (if not on cooldown)621 622@setvar! EnableMagicMushroomMaker 0623    @setvar! MakeMushroomAmount 5624        # Will automatically make mushrooms when you run out (to set amount above)625 626//  FOOD TRAYS:  //627@setvar! EnableEatingFood 0628    # Will eat food if not buffed (requires delectable FOOD TRAYS)629 630 631//////////////////////////632//'      UTILITY:      '//633//////////////////////////634 635@setvar! EnableOverheadMessages 1636    # '0'  Most overhead messages will be turned OFF (minimal target indicators will remain)637    # '1'  All overhead messages will be turned ON (default mode)638    # '2'  Only overhead messages for targeting or important warnings will be turned ON (my preferred mode!)639 640@setvar! EnableAutoCarving 0641    # Will automatically carve nearby corpses when found (requires SKINNING KNIFE)642 643@setvar! EnableAutoSatchels 0644    # Will automatically move potions and/or reagents to satchels (requires POTION or WIZARD SATCHELS)645 646@setvar! EnableGoldVacuum 0647    # Will automatically pick up discarded GOLD COINS nearby (2 tiles)648    # WARNING: This can cause you to grab large stacks of gold (and weigh you down) if you are not careful!649 650@setvar! EnableDungeonCleanup 0651    # Will automatically pick up discarded resources (regs, ingots, boards, etc.) nearby (2 tiles)652 653@setvar! EnableDropGoldWhenOverweight 0654    @setvar! DropGoldAmount 250655    # Will drop set amount of gold repeatedly when overweight until no longer impeded656 657@setvar! EnablePutLootinLockBox 0658    # Will move all loot into wooden box and then immediately lock it (requires WOODEN BOX and COPPER KEY)659    # Key must be kept outside the container (but not in your main pack where it can be stolen)660    # All loot will be automatically moved and secured while FARMING661    # This is a MUST for dungeon farming IMO - if you are not using this, you really should!662 663    @setvar! StoreLootDelay 4500664        # StoreLootDelay is the delay to trigger loot storage after target is eliminated665 666    # Use '>info' to ID anything you do NOT want locked up (up to 5 items) and add the serials here:667        @setvar! ItemToIgnore1 0x00000000668        @setvar! ItemToIgnore2 0x00000000669        @setvar! ItemToIgnore3 0x00000000670        @setvar! ItemToIgnore4 0x00000000671        @setvar! ItemToIgnore5 0x00000000672        # Anything you list above will be skipped while securing loot to avoid locking up things you do not want to. These items will be ignored (only during loot transfers)673        # You should add spare weapons or any other "loot" items that you do not want secured away during combat (blessed items and activated crooks are ignored automatically)674 675@setvar! EnableLootBag 0676    # Will open your selected LOOTBAG when unloading at HOME/INN/BANK (if using BUILT IN AUTO RECALL)677    #  This should be the bag that is set as your 'Grab Bag' in Gridloot, etc.678    #  You will be prompted to select a new loot bag whenever one is not found in your inventory679    #  This can be retargeted in the 'Options' tab above the script (or by a full script reset)680 681@setvar! EnableWeightWarningMessage 1682    @setvar! GreenWarningDiffWeight 50683    @setvar! YellowWarningDiffWeight 25684    @setvar! RedWeightLimitDiffWeight 5685        # Will display overhead warnings that change colour as they approach your carry weight limit (Green, Yellow and Red)686        # Red weight limit will trigger AUTO RECALL or AUTO DUNGEON GATE if enabled below (otherwise just an overhead warning and script ends)687 688 689///////////////////////////690//'  AUTO RECALL/GATE:  '//691///////////////////////////692 693##########################694#'     PK TRIGGERS:     '#695##########################696 697//  RED RECALL/ESCAPE (w/ TRACKING SKILL):  //698 699if skill 'Tracking' >= 50700 701    @setvar! EnableTrackingAutoRecall 0702        # Make sure "Ignore Houses/Ships" is checked in the Tracking skill menu!703 704    if EnableTrackingAutoRecall = 1705        @setvar! PKTrackingRange 50706            # Range can be 40, 50 or 60 tiles (or 0 will trigger Auto Recall regardless of range)707 708        @setvar! EnableRedAlertOverhead 1709            # If your build has tracking skill, I highly recommend setting up a Razor overhead message instead of using the script one:710                // This will display PK name/distance overhead when tracked!711                // Add overhead message w/ a trigger of "Now tracking" and message '[ RED ALERT: {3} ]'  (hue 335)712                // Then a second with a trigger of "Distance to destination" and message '[ {4} TILES AWAY! ]'  (hue 253)713                // Once complete you should disable "EnableRedAlertOverhead" above714 715        if WILDERNESSMODE = 1716            @setvar! EnableAutoRedRecall 0717                # Auto Recall triggered if PK is tracked within 'PKTrackingRange' tiles (wilderness only)718 719        elseif DUNGEONMODE = 1720             @setvar! EnableAutoRedDungeonGate 0721                # Auto Dungeon Gate triggered if PK is tracked within 'PKTrackingRange' tiles (dungeons only)722            @setvar! DungeonEscapeTimeLimit 60000723        endif724    endif725 726 727//  RED RECALL/ESCAPE (w/ NO TRACKING SKILL):  //728 729elseif skill 'Tracking' < 50730 731    @setvar! EnablePKradar 0732        # PK radar must be enabled for Auto Red Recall/Dungeon Gate to function (w/o Tracking Skill)733        # Radar checks for PK targets within range (roughly every 2 secs) and will alert with an overhead message and/or trigger escapes734 735    if EnablePKradar = 1736        @setvar! EnableRedAlertOverhead 1737            # Optional overhead message alert when PK is targeted (independent of other overhead message settings)738 739        if WILDERNESSMODE = 1740            @setvar! EnableAutoRedRecall 0741                # Auto Recall triggered if PK comes into (~12 tile) target range (wilderness only)742 743        elseif DUNGEONMODE = 1744            @setvar! EnableAutoRedDungeonGate 0745                # Auto Dungeon Gate triggered if PK comes into (~12 tile) target range (dungeons only)746            @setvar! DungeonEscapeTimeLimit 60000747        endif748    endif749endif750 751############################752#'    WEIGHT TRIGGERS:    '#753############################754 755    if EnableWeightWarningMessage = 1756        if WILDERNESSMODE = 1757            @setvar! EnableAutoWeightRecall 0758 759        elseif DUNGEONMODE = 1760            @setvar! EnableAutoWeightDungeonGate 0761            @setvar! EnableRecallAfterDungeonGate 0762        endif763    endif764    # Requires 'EnableWeightWarningMessage' to be enabled (above) and is triggered by Red weight limit765    # Auto Recall or Auto Dungeon Gating will be triggered if 'RedWeightLimitDiffWeight' is reached (set above)766    # Auto Recall can also be triggered (optionally) upon successful dungeon gate exit via 'EnableRecallAfterDungeonGate'767 768##############################769#'  RESURRECTION TRIGGERS:  '#770##############################771 772    @setvar! EnableRecallAfterResurrection 0773        # Must have [blessed] runebook charged w/ scrolls to recall after resurrection!774 775 776###########################################################777####'  YOU CAN TRIGGER YOUR OWN RAZOR RECALL SCRIPT:  '####778###########################################################779 780# Enable use of your own Razor script for Auto Recall (otherwise script will prompt for a Runebook and use built-in auto recall):781    @setvar! EnableDIYRecallScript 0782 783    //  Type the name of your own Home Recall Razor script here:  //784            createlist DIYRecallScriptList785            pushlist DIYRecallScriptList " YOUR RECALL SCRIPT NAME "786 787 788    ############################################################789    ####'  OR USE THE BUILT-IN AUTO RECALL/ESCAPE SCRIPT:  '####790    ############################################################791 792        @setvar! EnableCastRecall 1793            # '0' for 'Scrolls in charged Runebook to "first" rune'794            # '1' for 'Cast Recall to Runebook using "default" rune'795 796    //  AUTO RECALL DESTINATION (choose only one):  //797            @setvar! BankRecall 0798            @setvar! OwnerInnRecall 0799            @setvar! CoOwnerInnRecall 0800            @setvar! InsideHouseRecall 0801            @setvar! OutsideHouseRecall 0802 803            if OutsideHouseRecall = 1804                @setvar! EnableCloseMyDoor 0805                @setvar! MyDoor 0x00000000806                # Use ">info" to ID your own house door (to quickly close it behind you)807            endif808 809            @setvar! HideAtHomeorInn 0810                # Will use hiding skill once inside home or inn room811 812 813    //  LOADOUT RESET (after RECALL):  //814            #  Safe, Repair Bench, Resource Stockpile, Storage Shelf, Magic Recycler and/or Loot Chest must be found within 2 tiles!815            #  Storage Tomes can be locked down (within 2 tiles) or located inside Loot Chest or Storage Tome Container816 817            @setvar! EnableAutoRecallOverheadMessages 1818                # Controls overhead messages for recall section only819 820                @setvar! EnableDispelSummonsAfterRecall 0821                    # Casts Mass Dispel on your summons after Recall success822                @setvar! EnableSafeDeposit 0823                    # Will deposit all gold and doubloons found in inventory824                @setvar! EnableRepairBench 0825                    # Will repair all equipment (Repair Bench must have charges available)826                @setvar! EnableResourceStockpile 0827                    # Will deposit all resources (ingots, boards, gems, etc.)828                @setvar! EnableStorageShelf 0829                    # Will restock shelf and then resupply a fresh loadout830                @setvar! EnableMagicRecycler 0831                    # Will add all unidentified magic items to your Recycler832                    @setvar! EnableRecycleItemsWhenFull 0833                        # If Recycler is full, it will attempt to ID, Recycle and deposit resources (if stockpile nearby) before adding items834                @setvar! EnableStorageTomes 0835                    # Will add items to any nearby storage tomes (skill scrolls, dyes, runes, maps, cards, etc)836                    @setvar! EnableStorageTomeContainer 0837                        # Script checks on ground (2 tiles) or in LOOT CHEST (enable below) by default838                        # Otherwise you can designate a TOME CONTAINER to check for your books839                @setvar! EnableReagentSplitter 0840                    # Will split reagents into smaller stacks after shelf resupply841                @setvar! EnableLootChest 0842                    # Will open selected chest to store non-shelf/stockpile/tome items in your HOME/INN/BANK (uses Razor organizer agents 06-09)843 844 845    //  LOADOUT RESET (after DEATH):  //846            # This variable will dress you and reorganize your backpack after death (see instructions below)847            # Your pack will be set up with anti-theft measures and all aspects will be reactivated, etc.848 849            @setvar! EnableDressAfterResurrection 0850                # Must have a Razor 'Dress List' named 'UltimateSummoner' for all your [blessed] wearables851 852            @setvar! EnableResetInventoryAfterDeath 0853            @setvar! EnableSetMainPouchOrganizer01 0854                //  Requires an equal amount of TRAPPED POUCHES (in shelf loadout) and SCISSORS [blessed] (in backpack)855                //  Loadout also requires 1 UNTRAPPED POUCH (for main inventory - optionally set as Organizer Agent-01 above) and 1 BAG (for loot, etc.)856                //  Script will put scissors in each trapped pouch (to keep them from being grabbed during future shelf loading)857                //  Script then STACKS any trapped pouches on top of your main inventory pouch858                //  Loot bag will be moved into main inventory pouch and automatically set as your Grab Bag for Gridloot, etc.859                //  Script will then hide the stack underneath an ATLAS and put a DECOY TRAPPED POUCH out in the open860                //  ASPECT WEAPON and ARMOR will be re-activated automatically and HP restored to MAX861                //  Loadout reset finishes by opening backpack, main pouch, loot bag and any satchels862 863 864/////////////////////////865//'   SCRIPT MODES:   '//866/////////////////////////867 868    // I use this variable to setup multiple "modes" with different hotkeys.869        # Copy and paste to new script and update variables for different setups (Dungeon, Wilderness, SYG, etc.)870        # Just change the NUMBERS (ie. 'if ScriptMode = 2'/'@setvar! ScriptMode 2') and overhead message (ie.overhead '[ WILDERNESS MODE ]' 1182) for each version871        # Script will only display overhead mode message when switching between modes or upon first run of a new client login872        # I use a ROG Ally and set each hotkey to a different button (A, B, X, Y) and have multiple script modes at the ready!873 874        if DUNGEONMODE = 1875            if ScriptMode = 1876                // Do nothing877            else878                overhead '[ DUNGEON MODE ]' 2338879                @setvar! ScriptMode 1880                hotkey 'Toggle War Only'881                @setvar! SkipTimers 0882            endif883        elseif WILDERNESSMODE = 1884            if ScriptMode = 2885                // Do nothing886            else887                overhead '[ WILDERNESS MODE ]' 1182888                @setvar! ScriptMode 2889                hotkey 'Toggle War Only'890                @setvar! SkipTimers 0891            endif892        endif893 894 895//////////////////////////896//'  MOB IGNORE LIST:  '//897//////////////////////////898 899removelist animalsIgnoreList900createlist animalsIgnoreList901pushlist animalsIgnoreList "a plover"902pushlist animalsIgnoreList "a sheep"903pushlist animalsIgnoreList "a frenzied ostard"904pushlist animalsIgnoreList "a tundra ostard"905pushlist animalsIgnoreList "a desert ostard"906pushlist animalsIgnoreList "a forest ostard"907pushlist animalsIgnoreList "a finch"908pushlist animalsIgnoreList "a sparrow"909pushlist animalsIgnoreList "a towhee"910pushlist animalsIgnoreList "a lapwing"911pushlist animalsIgnoreList "a silverback"912pushlist animalsIgnoreList "a giant frog"913pushlist animalsIgnoreList "a crow"914pushlist animalsIgnoreList "a woodpecker"915pushlist animalsIgnoreList "a horse"916pushlist animalsIgnoreList "a swift"917pushlist animalsIgnoreList "a skylark"918pushlist animalsIgnoreList "a hawk"919pushlist animalsIgnoreList "a chickadee"920pushlist animalsIgnoreList "a cat"921pushlist animalsIgnoreList "a dog"922pushlist animalsIgnoreList "a black bear"923pushlist animalsIgnoreList "a brown bear"924pushlist animalsIgnoreList "a grizzly bear"925pushlist animalsIgnoreList "a bull"926pushlist animalsIgnoreList "a cow"927pushlist animalsIgnoreList "a chicken"928pushlist animalsIgnoreList "a bird"929pushlist animalsIgnoreList "an eagle"930pushlist animalsIgnoreList "an elk"931pushlist animalsIgnoreList "a great hart"932pushlist animalsIgnoreList "a kingfisher"933pushlist animalsIgnoreList "a hind"934pushlist animalsIgnoreList "a llama"935pushlist animalsIgnoreList "a sand crab"936pushlist animalsIgnoreList "a pig"937pushlist animalsIgnoreList "a polar bear"938pushlist animalsIgnoreList "a walrus"939pushlist animalsIgnoreList "a cougar"940pushlist animalsIgnoreList "a wolf"941pushlist animalsIgnoreList "a goat"942pushlist animalsIgnoreList "a raven"943pushlist animalsIgnoreList "a magpie"944pushlist animalsIgnoreList "a warbler"945pushlist animalsIgnoreList "a tern"946pushlist animalsIgnoreList "a nightingale"947pushlist animalsIgnoreList "a wren"948pushlist animalsIgnoreList "a nuthatch"949pushlist animalsIgnoreList "a starling"950pushlist animalsIgnoreList "a cuckoo"951pushlist animalsIgnoreList "ADD MOBS TO IGNORE HERE"952pushlist animalsIgnoreList "ADD MOBS TO IGNORE HERE"953pushlist animalsIgnoreList "ADD MOBS TO IGNORE HERE"954 955 956///////////////////////////957//'  END OF VARIABLES!  '//958///////////////////////////959 960 961 962 963 964################   !EDIT BELOW THIS LINE AT YOUR OWN RISK!   ########   !EDIT BELOW THIS LINE AT YOUR OWN RISK!   ########   !EDIT BELOW THIS LINE AT YOUR OWN RISK!   ########   !EDIT BELOW THIS LINE AT YOUR OWN RISK!   ################965 966 967 968 969 970///////////////////////971//   SCRIPT RESET:   //972///////////////////////973 974if ResetScriptPermanentVariables = 1975    clearignore976    clearsysmsg977    @setvar! IHAVEDIED 0978    @setvar! TimeToGo 0979    @setvar! DungeonGateThenTimeToGo 0980    @setvar! ResThenTimeToGo 0981    @setvar! RecallScrollsOnly 0982    @setvar! RedTargetFound 0983    @setvar! RECALLTIME 0984    unsetvar AutoRecallChargedRunebook985    unsetvar FirstRunSummoner986    unsetvar SummonerAutoPilot987    unsetvar LootBag988    unsetvar LootChest989    clearlist EarthEleAncientMummNamesList990    clearlist WaterEleRagWitchNamesList991    clearlist AirEleSkeleFiendNamesList992    clearlist FireEleLichNamesList993    clearlist DemonVampThrallNamesList994    clearlist CreatureNamesList995    overhead '[ SCRIPT RESET COMPLETE! ]' 37996    sysmsg "Please return 'ResetScriptPermanentVariables' to '0' in order to continue!" 153997    stop998endif999 1000 1001///////////////////////1002//   TIMER SETUPS:   //1003///////////////////////1004 1005 1006if diffhits < CastGreaterHealHPdiff and SkipTimers != 11007    if not timerexists 'LootTimer'1008        createtimer 'LootTimer'1009        settimer 'LootTimer' 01010    endif1011 1012    if not timerexists 'GoldRadar'1013        createtimer 'GoldRadar'1014        settimer 'GoldRadar' 01015    endif1016 1017    if not timerexists 'PurplePotionTimer'1018        createtimer 'PurplePotionTimer'1019        settimer 'PurplePotionTimer' 01020    endif1021 1022    if not timerexists 'FlamestrikeCooldownTimer'1023        createtimer 'FlamestrikeCooldownTimer'1024        settimer 'FlamestrikeCooldownTimer' FlamestrikeCooldown1025    endif1026 1027    if not timerexists 'ExplosionCooldownTimer'1028        createtimer 'ExplosionCooldownTimer'1029        settimer 'ExplosionCooldownTimer' ExplosionCooldown1030    endif1031 1032    if not timerexists 'EnergyBoltCooldownTimer'1033        createtimer 'EnergyBoltCooldownTimer'1034        settimer 'EnergyBoltCooldownTimer' EnergyBoltCooldown1035    endif1036 1037    if not timerexists 'MindBlastCooldownTimer'1038        createtimer 'MindBlastCooldownTimer'1039        settimer 'MindBlastCooldownTimer' MindblastCooldown1040    endif1041 1042    if not timerexists 'WeightMessageTimer'1043        createtimer 'WeightMessageTimer'1044        settimer 'WeightMessageTimer' 01045    endif1046 1047    if not timerexists 'PKRadarTimer'1048        createtimer 'PKRadarTimer'1049        settimer 'PKRadarTimer' 01050    endif1051 1052    if not timerexists 'DungeonEscape'1053        createtimer 'DungeonEscape'1054        settimer 'DungeonEscape' 01055    endif1056 1057    if not timerexists 'TargetChecker'1058        createtimer 'TargetChecker'1059        settimer 'TargetChecker' CheckClosestTargetTime1060    endif1061 1062    if not timerexists 'DungeonCleanup'1063        createtimer 'DungeonCleanup'1064        settimer 'DungeonCleanup' 01065    endif1066 1067    if not timerexists 'DungeonCleanupRadar'1068        createtimer 'DungeonCleanupRadar'1069        settimer 'DungeonCleanupRadar' 01070    endif1071 1072    if not timerexists 'TargetTimer'1073        createtimer 'TargetTimer'1074        settimer 'TargetTimer' 45001075    endif1076 1077    if not timerexists 'GateIndicatorTimer'1078        createtimer 'GateIndicatorTimer'1079        settimer 'GateIndicatorTimer' 45001080    endif1081 1082    if not timerexists 'WaitingToRecallTimer'1083        createtimer 'WaitingToRecallTimer'1084        settimer 'WaitingToRecallTimer' 45001085    endif1086 1087    if not timerexists 'CannotSeeTargetTimer'1088        createtimer 'CannotSeeTargetTimer'1089        settimer 'CannotSeeTargetTimer' 45001090    endif1091 1092    if not timerexists 'TargetIsTooFarTimer'1093        createtimer 'TargetIsTooFarTimer'1094        settimer 'TargetIsTooFarTimer' 45001095    endif1096 1097    if not timerexists 'WaitingForHealerTimer'1098        createtimer 'WaitingForHealerTimer'1099        settimer 'WaitingForHealerTimer' 45001100    endif1101 1102    if not timerexists 'LootStorageTimer'1103        createtimer 'LootStorageTimer'1104        settimer 'LootStorageTimer' 60001105    endif1106 1107    if not timerexists 'AttackTargetTimer'1108        createtimer 'AttackTargetTimer'1109        settimer 'AttackTargetTimer' 150001110    endif1111 1112    if not timerexists 'OverweightMessageTimer'1113        createtimer 'OverweightMessageTimer'1114        settimer 'OverweightMessageTimer' 45001115    endif1116 1117    if not timerexists 'NothingToTargetMessageTimer'1118        createtimer 'NothingToTargetMessageTimer'1119        settimer 'NothingToTargetMessageTimer' 45001120    endif1121 1122    if not timerexists 'AnalyzingTargetsTimer'1123        createtimer 'AnalyzingTargetsTimer'1124        settimer 'AnalyzingTargetsTimer' 45001125    endif1126 1127    if not timerexists "InventoryCheck"1128        createtimer "InventoryCheck"1129        settimer "InventoryCheck" 50001130    endif1131 1132    if not timerexists 'MissingRegsTimer'1133        createtimer 'MissingRegsTimer'1134        settimer 'MissingRegsTimer' 45001135    endif1136 1137    if not timerexists 'EatFoodMessageTimer'1138        createtimer 'EatFoodMessageTimer'1139        settimer 'EatFoodMessageTimer' 45001140    endif1141 1142    if not timerexists 'PopPouchMessageTimer'1143        createtimer 'PopPouchMessageTimer'1144        settimer 'PopPouchMessageTimer' 45001145    endif1146 1147    if not timerexists 'PotionKegTimer'1148        createtimer 'PotionKegTimer'1149        settimer 'PotionKegTimer' 35001150    endif1151 1152    if not timerexists 'WhitePotionMessageTimer'1153        createtimer 'WhitePotionMessageTimer'1154        settimer 'WhitePotionMessageTimer' 45001155    endif1156 1157    if not timerexists 'BluePotionMessageTimer'1158        createtimer 'BluePotionMessageTimer'1159        settimer 'BluePotionMessageTimer' 45001160    endif1161 1162    if not timerexists 'BlackPotionMessageTimer'1163        createtimer 'BlackPotionMessageTimer'1164        settimer 'BlackPotionMessageTimer' 45001165    endif1166 1167    if not timerexists 'PurplePotionMessageTimer'1168        createtimer 'PurplePotionMessageTimer'1169        settimer 'PurplePotionMessageTimer' 150001170    endif1171 1172    if not timerexists 'OrangePotionMessageTimer'1173        createtimer 'OrangePotionMessageTimer'1174        settimer 'OrangePotionMessageTimer' 45001175    endif1176 1177    if not timerexists 'YellowPotionMessageTimer'1178        createtimer 'YellowPotionMessageTimer'1179        settimer 'YellowPotionMessageTimer' 110001180    endif1181 1182    if not timerexists 'RedPotionMessageTimer'1183        createtimer 'RedPotionMessageTimer'1184        settimer 'RedPotionMessageTimer' 45001185    endif1186 1187    if not timerexists 'TelekinesisTimer'1188        createtimer 'TelekinesisTimer'1189        settimer 'TelekinesisTimer' 600001190    endif1191 1192    if not timerexists 'OrganizerAgentTimer'1193        createtimer 'OrganizerAgentTimer'1194        settimer 'OrganizerAgentTimer' 150001195    endif1196 1197    if not timerexists 'SkinningTimer'1198        createtimer 'SkinningTimer'1199        settimer 'SkinningTimer' 50001200    endif1201 1202    if not timerexists 'WeightTimer'1203        createtimer 'WeightTimer'1204        settimer 'WeightTimer' 50001205    endif1206 1207    if not timerexists 'GATEHERE'1208        createtimer 'GATEHERE'1209        settimer 'GATEHERE' 50001210    endif1211 1212    if not timerexists 'GETCLOSER'1213        createtimer 'GETCLOSER'1214        settimer 'GETCLOSER' 50001215    endif1216 1217    if not timerexists 'MANAWAIT'1218        createtimer 'MANAWAIT'1219        settimer 'MANAWAIT' 50001220    endif1221 1222    if not timerexists 'RECALLDELAY'1223        createtimer 'RECALLDELAY'1224        settimer 'RECALLDELAY' 50001225    endif1226 1227    if not timerexists 'MeditationTimer'1228        createtimer 'MeditationTimer'1229        settimer 'MeditationTimer' 105001230    endif1231 1232    if not timerexists 'MagicReflectTimer'1233        createtimer 'MagicReflectTimer'1234        settimer 'MagicReflectTimer' 150001235    endif1236 1237    if not timerexists 'ReactiveArmorTimer'1238        createtimer 'ReactiveArmorTimer'1239        settimer 'ReactiveArmorTimer' 150001240    endif1241 1242    if not timerexists 'EvilOmenTimer'1243        createtimer 'EvilOmenTimer'1244        settimer 'EvilOmenTimer' 300001245    endif1246 1247    if not timerexists 'CorpseSkinTimer'1248        createtimer 'CorpseSkinTimer'1249        settimer 'CorpseSkinTimer' 300001250    endif1251 1252    if not timerexists 'PainSpikeTimer'1253        createtimer 'PainSpikeTimer'1254        settimer 'PainSpikeTimer' 300001255    endif1256 1257    if not timerexists 'PainSpikeDelayTimer'1258        createtimer 'PainSpikeDelayTimer'1259        settimer 'PainSpikeDelayTimer' 100001260    endif1261 1262    if not timerexists 'StrangleTimer'1263        createtimer 'StrangleTimer'1264        settimer 'StrangleTimer' 300001265    endif1266 1267    if not timerexists 'MindRotTimer'1268        createtimer 'MindRotTimer'1269        settimer 'MindRotTimer' 300001270    endif1271 1272    if not timerexists 'WizardSatchelTimer'1273        createtimer 'WizardSatchelTimer'1274        settimer 'WizardSatchelTimer' 600001275    endif1276 1277    if not timerexists 'PotionSatchelTimer'1278        createtimer 'PotionSatchelTimer'1279        settimer 'PotionSatchelTimer' 600001280    endif1281 1282    if not timerexists 'CurseTimer'1283        createtimer 'CurseTimer'1284        settimer 'CurseTimer' 600001285    endif1286 1287    if not timerexists 'PotionKegPVPCooldown'1288        createtimer 'PotionKegPVPCooldown'1289        settimer 'PotionKegPVPCooldown' 300001290    endif1291 1292    if not timerexists 'ManaDrainTimer'1293        createtimer 'ManaDrainTimer'1294        settimer 'ManaDrainTimer' 600001295    endif1296 1297    if not timerexists 'MagicArrowTimer'1298        createtimer 'MagicArrowTimer'1299        settimer 'MagicArrowTimer' 600001300    endif1301 1302    if not timerexists 'HarmTimer'1303        createtimer 'HarmTimer'1304        settimer 'HarmTimer' HarmCooldown1305    endif1306 1307    if not timerexists 'FireballTimer'1308        createtimer 'FireballTimer'1309        settimer 'FireballTimer' FireballCooldown1310    endif1311 1312    if not timerexists 'LightningTimer'1313        createtimer 'LightningTimer'1314        settimer 'LightningTimer' LightningCooldown1315    endif1316 1317    if not timerexists 'MushroomTimer'1318        createtimer 'MushroomTimer'1319        settimer 'MushroomTimer' 600001320    endif1321 1322    if not timerexists 'RUNAWAY'1323        createtimer 'RUNAWAY'1324        settimer 'RUNAWAY' 300001325    endif1326 1327    if not timerexists 'PoisonStrikeTimer'1328        createtimer 'PoisonStrikeTimer'1329        settimer 'PoisonStrikeTimer' 300001330    endif1331 1332    if not timerexists 'VengefulSpiritTimer'1333        createtimer 'VengefulSpiritTimer'1334        settimer 'VengefulSpiritTimer' 300001335    endif1336 1337    if not timerexists 'BloodOathTimer'1338        createtimer 'BloodOathTimer'1339        settimer 'BloodOathTimer' 300001340    endif1341 1342    if not timerexists 'NoHealRegsTimer'1343        createtimer 'NoHealRegsTimer'1344        settimer 'NoHealRegsTimer' 45001345    endif1346 1347    if not timerexists 'WitherTimer'1348        createtimer 'WitherTimer'1349        settimer 'WitherTimer' 300001350    endif1351 1352    if not timerexists 'SpiritSpeakTimer'1353        createtimer 'SpiritSpeakTimer'1354        settimer 'SpiritSpeakTimer' 600001355    endif1356 1357    if not timerexists 'MeditationMessageTimer'1358        createtimer 'MeditationMessageTimer'1359        settimer 'MeditationMessageTimer' 40001360    endif1361 1362    if not timerexists 'SummoningMessageTimer'1363        createtimer 'SummoningMessageTimer'1364        settimer 'SummoningMessageTimer' 40001365    endif1366 1367    if not timerexists 'RepairTimer'1368        createtimer 'RepairTimer'1369        settimer 'RepairTimer' 01370    endif1371 1372    if not timerexists 'CreatureSummonTimeout'1373        createtimer 'CreatureSummonTimeout'1374        settimer 'CreatureSummonTimeout' 50001375    endif1376 1377    if not timerexists 'AllGuardMeTimer'1378        createtimer 'AllGuardMeTimer'1379        settimer 'AllGuardMeTimer' 150001380    endif1381 1382    if not timerexists 'MushroomMakerTimer'1383        createtimer 'MushroomMakerTimer'1384       settimer 'MushroomMakerTimer' 45001385    endif1386 1387    if not timerexists 'SpellbookCheck'1388        createtimer 'SpellbookCheck'1389        settimer 'SpellbookCheck' 50001390    endif1391 1392    if not timerexists 'SkinningTimeoutTimer'1393        createtimer 'SkinningTimeoutTimer'1394        settimer 'SkinningTimeoutTimer' 35001395    endif1396 1397    if not timerexists 'IgnoreMOBtimer'1398        createtimer 'IgnoreMOBtimer'1399        settimer 'IgnoreMOBtimer' 30001400    endif1401 1402    if not timerexists 'spellTimer'1403        createtimer 'spellTimer'1404        settimer 'spellTimer' 01405    endif1406 1407    if not timerexists 'AntiStallTimer'1408        createtimer 'AntiStallTimer'1409        settimer 'AntiStallTimer' 35001410    endif1411 1412    if not timerexists 'HealPotionTimer'1413        createtimer 'HealPotionTimer'1414        settimer 'HealPotionTimer' 105001415    endif1416 1417    if not timerexists 'CorpseSkinDiseaseTimer'1418        createtimer 'CorpseSkinDiseaseTimer'1419        settimer 'CorpseSkinDiseaseTimer' CorpseSkinPoisonStrikeDelay1420    endif1421 1422    if not timerexists 'SwapTargetsTimer'1423        createtimer 'SwapTargetsTimer'1424        settimer 'SwapTargetsTimer' 50001425    endif1426 1427    if not timerexists 'CrookCheckOverheadTimer'1428        createtimer 'CrookCheckOverheadTimer'1429        settimer 'CrookCheckOverheadTimer' 50001430    endif1431 1432    if not timerexists 'CrookCheckTimer'1433        createtimer 'CrookCheckTimer'1434        settimer 'CrookCheckTimer' 100001435    endif1436 1437    if not timerexists 'NecroCooldownTimer'1438        createtimer 'NecroCooldownTimer'1439        settimer 'NecroCooldownTimer' 50001440    endif1441 1442    if not timerexists 'CleansingBrewTimer'1443        createtimer 'CleansingBrewTimer'1444        settimer 'CleansingBrewTimer' 1200001445    endif1446 1447    if not timerexists 'CleansingBrewOverhead'1448        createtimer 'CleansingBrewOverhead'1449        settimer 'CleansingBrewOverhead' 150001450    endif1451 1452    if not timerexists 'CurePotionMessageTimer'1453        createtimer 'CurePotionMessageTimer'1454        settimer 'CurePotionMessageTimer' 45001455    endif1456 1457    if not timerexists 'HealPotionMessageTimer'1458        createtimer 'HealPotionMessageTimer'1459        settimer 'HealPotionMessageTimer' 50001460    endif1461 1462    if not timerexists 'NoTargetTimer'1463        createtimer 'NoTargetTimer'1464        settimer 'NoTargetTimer' 50001465    endif1466 1467    if not timerexists 'ManaOverheadTimer'1468        createtimer 'ManaOverheadTimer'1469        settimer 'ManaOverheadTimer' 45001470    endif1471 1472    if not timerexists 'BandageMessageTimer'1473        createtimer 'BandageMessageTimer'1474        settimer 'BandageMessageTimer' 15001475    endif1476 1477    if not timerexists 'AnalyzeTargetTimeout'1478        createtimer 'AnalyzeTargetTimeout'1479        settimer 'AnalyzeTargetTimeout' 40001480    endif1481 1482    if not timerexists 'STORELOOT'1483        createtimer 'STORELOOT'1484        settimer 'STORELOOT' 45001485    endif1486 1487    if not varexist TargetSwap1488        @setvar! TargetSwap 01489    endif1490 1491    if not varexist ClosestTarget1492        @setvar! ClosestTarget 01493    endif1494 1495    if not varexist TargetToAnalyze1496        @setvar! TargetToAnalyze 01497    endif1498 1499    if not varexist AttackModeActive1500        @setvar! AttackModeActive 01501    endif1502 1503    if not varexist TargetToCheck1504        @setvar! TargetToCheck 01505    endif1506 1507    if not varexist AutoRecallTime1508        @setvar! AutoRecallTime 01509    endif1510 1511    if not varexist AutoWeightRecall1512        @setvar! AutoWeightRecall 01513    endif1514 1515    if not varexist SpellInterrupted1516        @setvar! SpellInterrupted 01517    endif1518 1519    if not varexist DisableVacuums1520        @setvar! DisableVacuums 01521    endif1522 1523    @setvar! EnableUseEmotes 01524    @setvar! SetEmoteCooldown 1200001525        # Requires the following emotes to be unlocked: [Awoo, [HighFive, [Yes and [Whistle1526        # Requires 'EnableOverheadMessages' set to '1' or '2'1527        # Will use Emotes when Aspect, Codex or Chain Links are leveled up and when entering the Auto Heal loop1528        # Also uses Emotes when certain finishers are performed (W.I.P.) and when target is eliminated1529        # Cooldown defaults to 2 minutes but can be reduced via customizations in-game (375k gold reduces it to 30 seconds)1530        # Add optional cooldown in UO client:  'Emote Cooldown'  (case sensitive)1531 1532    if not timerexists "EmoteCooldownTimer"1533        createtimer "EmoteCooldownTimer"1534        settimer "EmoteCooldownTimer" SetEmoteCooldown1535    endif1536endif1537 1538if WILDERNESSMODE = 1 and DUNGEONMODE = 11539    overhead '[ INVALID SCRIPT MODE! ]' 371540    sysmsg 'Both DUNGEONMODE and WILDERNESSMODE are enabled - please select only ONE AT A TIME at top of script!' 1531541    wait 15001542    overhead '[ STOPPING SCRIPT ]' 881543    stop1544elseif WILDERNESSMODE = 0 and DUNGEONMODE = 01545    overhead '[ INVALID SCRIPT MODE! ]' 371546    sysmsg 'Both DUNGEONMODE and WILDERNESSMODE are disabled - please select your desired mode at top of script!' 1531547    wait 15001548    overhead '[ STOPPING SCRIPT ]' 881549    stop1550endif1551 1552if SummonEarthElemental_or_AncientMummy = 0 and SummonWaterElemental_or_RagWitch = 0 and SummonAirElemental_or_SkeletalFiend = 0 and SummonFireElemental_or_Lich = 0 and SummonDemon_or_VampireThrall = 0 and SummonCreature_or_UndeadCreature = 01553    overhead '[ INVALID SCRIPT MODE! ]' 371554    sysmsg 'There are no SUMMONS selected - please CONFIGURE YOUR SUMMONING VARIABLES before relaunching script!' 1531555    wait 15001556    overhead '[ STOPPING SCRIPT ]' 881557    stop1558endif1559 1560if not varexist SummoningEarth or followers = 01561    @setvar! SummoningEarth 01562endif1563if not varexist SummoningWater or followers = 01564    @setvar! SummoningWater 01565endif1566if not varexist SummoningFire or followers = 01567    @setvar! SummoningFire 01568endif1569if not varexist SummoningAir or followers = 01570    @setvar! SummoningAir 01571endif1572if not varexist SummoningDaemon or followers = 01573    @setvar! SummoningDaemon 01574endif1575if not varexist SummoningCreature or followers = 01576    @setvar! SummoningCreature 01577endif1578 1579removelist TotalSummonCountList1580createlist TotalSummonCountList1581 1582if SummonEarthElemental_or_AncientMummy  = 11583    pushlist TotalSummonCountList x1584    pushlist TotalSummonCountList x1585elseif SummonEarthElemental_or_AncientMummy = 21586    pushlist TotalSummonCountList x1587    pushlist TotalSummonCountList x1588    pushlist TotalSummonCountList x1589    pushlist TotalSummonCountList x1590endif1591 1592if SummonWaterElemental_or_RagWitch = 11593    pushlist TotalSummonCountList x1594    pushlist TotalSummonCountList x1595elseif SummonWaterElemental_or_RagWitch = 21596    pushlist TotalSummonCountList x1597    pushlist TotalSummonCountList x1598    pushlist TotalSummonCountList x1599    pushlist TotalSummonCountList x1600endif1601 1602if SummonAirElemental_or_SkeletalFiend  = 11603    pushlist TotalSummonCountList x1604    pushlist TotalSummonCountList x1605elseif SummonAirElemental_or_SkeletalFiend  = 21606    pushlist TotalSummonCountList x1607    pushlist TotalSummonCountList x1608    pushlist TotalSummonCountList x1609    pushlist TotalSummonCountList x1610endif1611 1612if SummonFireElemental_or_Lich  = 11613    pushlist TotalSummonCountList x1614    pushlist TotalSummonCountList x1615elseif SummonFireElemental_or_Lich  = 21616    pushlist TotalSummonCountList x1617    pushlist TotalSummonCountList x1618    pushlist TotalSummonCountList x1619    pushlist TotalSummonCountList x1620endif1621 1622if SummonDemon_or_VampireThrall  = 11623    pushlist TotalSummonCountList x1624    pushlist TotalSummonCountList x1625elseif SummonDemon_or_VampireThrall  = 21626    pushlist TotalSummonCountList x1627    pushlist TotalSummonCountList x1628    pushlist TotalSummonCountList x1629    pushlist TotalSummonCountList x1630endif1631 1632if SummonCreature_or_UndeadCreature = 11633    pushlist TotalSummonCountList x1634elseif SummonCreature_or_UndeadCreature = 21635    pushlist TotalSummonCountList x1636    pushlist TotalSummonCountList x1637elseif SummonCreature_or_UndeadCreature = 31638    pushlist TotalSummonCountList x1639    pushlist TotalSummonCountList x1640    pushlist TotalSummonCountList x1641elseif SummonCreature_or_UndeadCreature = 41642    pushlist TotalSummonCountList x1643    pushlist TotalSummonCountList x1644    pushlist TotalSummonCountList x1645    pushlist TotalSummonCountList x1646elseif SummonCreature_or_UndeadCreature = 51647    pushlist TotalSummonCountList x1648    pushlist TotalSummonCountList x1649    pushlist TotalSummonCountList x1650    pushlist TotalSummonCountList x1651    pushlist TotalSummonCountList x1652endif1653 1654if list TotalSummonCountList = 01655    @setvar! TotalSummonCount 01656elseif list TotalSummonCountList = 11657    @setvar! TotalSummonCount 11658elseif list TotalSummonCountList = 21659    @setvar! TotalSummonCount 21660elseif list TotalSummonCountList = 31661    @setvar! TotalSummonCount 31662elseif list TotalSummonCountList = 41663    @setvar! TotalSummonCount 41664else1665    @setvar! TotalSummonCount 51666endif1667 1668if not varexist EarthFirstEle or followers = 01669    @setvar! EarthFirstEle 01670endif1671 1672if not varexist EarthSecondEle or followers = 01673    @setvar! EarthSecondEle 01674endif1675 1676if not varexist WaterFirstEle or followers = 01677    @setvar! WaterFirstEle 01678endif1679 1680if not varexist WaterSecondEle or followers = 01681    @setvar! WaterSecondEle 01682endif1683 1684if not varexist AirFirstEle or followers = 01685    @setvar! AirFirstEle 01686endif1687 1688if not varexist AirSecondEle or followers = 01689    @setvar! AirSecondEle 01690endif1691 1692if not varexist FireFirstEle or followers = 01693    @setvar! FireFirstEle 01694endif1695 1696if not varexist FireSecondEle or followers = 01697    @setvar! FireSecondEle 01698endif1699 1700if not varexist DaemonFirstEle or followers = 01701    @setvar! DaemonFirstEle 01702endif1703 1704if not varexist DaemonSecondEle or followers = 01705    @setvar! DaemonSecondEle 01706endif1707 1708if not varexist CreatureFirstEle or followers = 01709    @setvar! CreatureFirstEle 01710endif1711 1712if not varexist CreatureSecondEle or followers = 01713    @setvar! CreatureSecondEle 01714endif1715 1716if not varexist CreatureThirdEle or followers = 01717    @setvar! CreatureThirdEle 01718endif1719 1720if not varexist CreatureFourthEle or followers = 01721    @setvar! CreatureFourthEle 01722endif1723 1724if not varexist CreatureFifthEle or followers = 01725    @setvar! CreatureFifthEle 01726endif1727 1728if not listexists EarthEleList or followers = 01729    removelist EarthEleList1730    createlist EarthEleList1731endif1732 1733if not listexists WaterEleList or followers = 01734    removelist WaterEleList1735    createlist WaterEleList1736endif1737 1738if not listexists AirEleList or followers = 01739    removelist AirEleList1740    createlist AirEleList1741endif1742 1743if not listexists FireEleList or followers = 01744    removelist FireEleList1745    createlist FireEleList1746endif1747 1748if not listexists DaemonEleList or followers = 01749    removelist DaemonEleList1750    createlist DaemonEleList1751endif1752 1753if not listexists CreatureEleList or followers = 01754    removelist CreatureEleList1755    createlist CreatureEleList1756endif1757 1758 1759 1760    //////////////////////1761    //  INITIAL SETUP:  //1762    //////////////////////1763 1764if not dead and diffhits < CastGreaterHealHPdiff and FirstRunSummoner != 11765    if not varexist SummonerAutoPilot1766        overhead "Lord Glacier's Chill Summoner Auto Pilot Script" 22341767        # '1768        overhead "version 3.0.1" 881769        wait 15001770        overhead "Last Updated: October 9, 2026" 26631771        wait 25001772        overhead "Thank you for trying my Summoner AUTO PILOT script!  It appears this may be your first time running it..." 01773        wait 40001774        overhead "IMPT: Please make sure to check and adjust your VARIABLES!" 1531775        wait 45001776        overhead "Please read the TIPS section at the beginning of the script for more info" 881777        wait 30001778        setvar SummonerAutoPilot 11779        sysmsg "Beginning Lord Glacier's Chill Summoner Auto Pilot script.......... " 01780        # '1781        wait 10001782    endif1783 1784    while FirstRunSummoner != 11785        if EnableDIYRecallScript != 11786            if EnableAutoRedRecall = 1 or EnableAutoWeightRecall = 1 or EnableRecallAfterResurrection = 1 or EnableRecallAfterDungeonGate = 11787                if not varexist AutoRecallChargedRunebook or not find AutoRecallChargedRunebook self1788                    wait 5001789                    overhead "You have enabled Auto Recall (PK or Weight) and must select a runebook to continue!" 01790                    wait 15001791                    overhead "Select your escape runebook..." 2531792                    setvar AutoRecallChargedRunebook1793                    wait 5001794                    while targetexists1795                        wait 1001796                    endwhile1797                    sysmsg "Will cast to 'default rune' in Runebook (if 'casting' enabled) or uses scrolls to 'first location' in Runebook (if no Magery skill)" 1531798                    wait 15001799                endif1800            endif1801        endif1802 1803        if EnableLootChest = 11804            if EnableAutoRedRecall = 1 or EnableAutoWeightRecall = 1 or EnableRecallAfterResurrection = 1 or EnableRecallAfterDungeonGate = 11805                if not varexist LootChest1806                    wait 5001807                    overhead "Select a secure container to store your Loot..." 2531808                    sysmsg "Can be disabled under script variables section." 01809                    wait 10001810                    overhead "Anything that will not go into a Resource Stockpile, Storage Shelf, Tomes or Magic Recycler" 01811                    overhead "(ie. Skill Orbs, Research Mats, Paragon chests, etc.)"1812                    setvar LootChest1813                    wait 5001814                    while targetexists1815                        wait 1001816                    endwhile1817                    sysmsg "Use Razor Organizer Agents 06 - 09 for the Loot Chest and its contents - organize to your own liking!" 01818                    wait 15001819                endif1820            endif1821        endif1822 1823        if EnableStorageTomeContainer = 11824            if EnableAutoRedRecall = 1 or EnableAutoWeightRecall = 1 or EnableRecallAfterResurrection = 1 or EnableRecallAfterDungeonGate = 11825                if not varexist TomeContainer1826                    wait 5001827                    overhead "Please select a secure container to store your Tomes..." 2531828                    sysmsg "Can be disabled under script variables section." 01829                    wait 10001830                    overhead "This will cause script to look in this container for any Storage Tomes when unloading loot..." 01831                    setvar TomeContainer1832                    wait 5001833                    while targetexists1834                        wait 1001835                    endwhile1836                    sysmsg "Turn this variable off if your tomes are stored on the ground in your home/inn room" 01837                    wait 15001838                endif1839            endif1840        endif1841 1842        if EnableLootBag = 11843            if EnableAutoRedRecall = 1 or EnableAutoWeightRecall = 1 or EnableRecallAfterResurrection = 1 or EnableRecallAfterDungeonGate = 11844                if not varexist LootBag1845                    wait 5001846                    overhead "Please select your loot bag..." 2531847                    wait 10001848                    overhead "This should be whatever is set as your 'Grab Bag' and will be opened when unloading loot after recalling..." 01849                    setvar LootBag1850                    wait 5001851                    while targetexists1852                        wait 1001853                    endwhile1854                endif1855                if not find LootBag self1856                    overhead "[ NO LOOT BAG ]" 3371857                    wait 15001858                    overhead "Select your new loot bag..." 2531859                    wait 5001860                    setvar LootBag1861                    wait 2501862                    while targetexists1863                        wait 1001864                    endwhile1865                endif1866            endif1867        endif1868 1869        if not varexist FirstRunSummoner or FirstRunSummoner != 11870            wait 10001871            overhead "Good luck out there!" 22341872            overhead "         - Dan (aka. Lord Glacier)" 22341873            wait 15001874            setvar FirstRunSummoner 11875        endif1876 1877        if FirstRunSummoner = 11878            hotkey 'Toggle War Only'1879            break1880        endif1881    endwhile1882endif1883       1884 1885 1886 1887 1888 1889                                                                            ###############################1890                                                                           ###    SCRIPT STARTS HERE:    ###1891                                                                            ###############################1892 1893 1894////////////////////////1895//  BEGIN ALIVE LOOP  //1896////////////////////////1897 1898while not dead1899    @ignore MyBlessedSpellbook1900 1901    if dead1902        break1903    endif1904 1905    if TimeToGo != 1 and IHAVEDIED != 1 and AutoRecallTime != 11906        if EnableTrackingAutoRecall = 1 and skill 'Tracking' > 501907            if not findbuff 'tracking'1908                while not gumpexists 42674676591909                    useskill 'tracking'1910                    wait 2501911                endwhile1912                if gumpexists 42674676591913                    while not insysmsg "You will now hunt all hostile players."1914                        gumpresponse 8 42674676591915                        waitforgump 4267467659 50001916                    endwhile1917                    gumpresponse 6 42674676591918                    wait 5001919                    clearsysmsg1920                endif1921                gumpclose 42674676591922                if EnableOverheadMessages = 11923                    overhead "[ RED RECALL ACTIVATED! ]" 3341924                endif1925            endif1926        endif1927 1928        if EnableTrackingAutoRecall = 1 and TimeToGo != 11929            if PKTrackingRange = 601930                if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"1931                    hotkey 'Toggle Peace Only'1932                    if EnableRedAlertOverhead = 11933                        overhead "[ !! RED ALERT !! ]" 371934                    endif1935                    @setvar! RedTargetFound 11936                    @setvar! TimeToGo 11937                    clearsysmsg1938                endif1939            elseif PKTrackingRange = 501940                if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"1941                    hotkey 'Toggle Peace Only'1942                    if EnableRedAlertOverhead = 11943                        overhead "[ !! RED ALERT !! ]" 371944                    endif1945                    @setvar! RedTargetFound 11946                    @setvar! TimeToGo 11947                    clearsysmsg1948                endif1949            elseif PKTrackingRange = 401950                if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"1951                    hotkey 'Toggle Peace Only'1952                    if EnableRedAlertOverhead = 11953                        overhead "[ !! RED ALERT !! ]" 371954                    endif1955                    @setvar! RedTargetFound 11956                    @setvar! TimeToGo 11957                    clearsysmsg1958                endif1959            elseif PKTrackingRange = 01960                if insysmsg "Now tracking"1961                    hotkey 'Toggle Peace Only'1962                    if EnableRedAlertOverhead = 11963                        overhead "[ !! RED ALERT !! ]" 371964                    endif1965                    @setvar! RedTargetFound 11966                    @setvar! TimeToGo 11967                    clearsysmsg1968                endif1969            endif1970        endif1971 1972        if EnablePKradar = 1 and TimeToGo != 11973            if timer "PKRadarTimer" > 15001974                clearsysmsg1975                hotkey 'Next Murderer Player Target'1976                wait 2501977                if insysmsg "No one matching that was found"1978                    settimer "PKRadarTimer" 01979                    clearsysmsg1980                else1981                    if EnableRedAlertOverhead = 11982                        overhead "[ !! RED ALERT !! ]" 371983                    endif1984                    hotkey 'Toggle Peace Only'1985                    @setvar! RedTargetFound 11986                    @setvar! TimeToGo 11987                    @setvar! MurdererTarget lasttarget1988                endif1989            endif1990        endif1991 1992        if skill 'necromancy' >= 50 and not gumpexists 6224365161993            if findtype 'necromancer book' backpack1994                yell '[necromancyhotbar'1995                while not gumpexists 6224365161996                    yell '[necromancyhotbar'1997                    wait 5001998                endwhile1999            elseif EnableOverheadMessages = 12000                overhead '[ NO NECRO BOOK! ]' 3372001                wait 5002002            endif2003        endif2004 2005        if not findtype "3972" self or not findtype "3962" self or not findtype "3963" self or not findtype "3980" self or not findtype "3976" self or not findtype "3973" self or not findtype "3974" self or not findtype "3981" self2006            clearignore2007            getlabel backpack backpacklabel2008            if not findtype "3972" self or not findtype "3962" self or not findtype "3963" self or not findtype "3980" self or not findtype "3976" self or not findtype "3973" self or not findtype "3974" self or not findtype "3981" self2009                if EnableOverheadMessages = 1 or EnableOverheadMessages = 22010                    if timer MissingRegsTimer > 50002011                        if counttype "3972" self = 02012                            overhead '[ NO GARLIC ]' 6462013                        endif2014                        if counttype "3962" self = 02015                            overhead '[ NO BLACK PEARL ]' 32016                        endif2017                        if counttype "3963" self = 02018                            overhead '[ NO BLOODMOSS ]' 332019                        endif2020                        if counttype "3980" self = 02021                            overhead '[ NO SULFUROUS ASH ]' 1532022                        endif2023                        if counttype "3976" self = 02024                            overhead '[ NO NIGHTSHADE ]' 3632025                        endif2026                        if counttype "3973" self = 02027                            overhead '[ NO GINSENG ]' 2472028                        endif2029                        if counttype "3974" self = 02030                            overhead '[ NO MANDRAKE ROOT ]' 4422031                        endif2032                        if counttype "3981" self = 02033                            overhead '[ NO SPIDERS SILK ]' 23382034                        endif2035                        settimer MissingRegsTimer 02036                    endif2037                endif2038                @setvar! MissingRegs 12039            else2040                @setvar! MissingRegs 02041            endif2042        else2043            @setvar! MissingRegs 02044        endif2045 2046        if EnableSpellbookCheck = 1 and not findtype "spellbook" hand2047            if findtype "spellbook" self2048                for 52049                if findtype "spellbook" self as mySpellbook2050                    getlabel mySpellbook mySpellbooklabel2051                    wait 2502052                    if "aspect" in mySpellbooklabel2053                        break2054                    elseif "unidentified" in mySpellbooklabel2055                        ignore mySpellbook2056                    elseif "blessed" in mySpellbooklabel2057                        ignore mySpellbook2058                    elseif "spells" in mySpellbooklabel2059                        ignore mySpellbook2060                    else2061                        break2062                    endif2063                endif2064                endfor2065                dclick mySpellbook2066                clearignore2067                wait 5002068            else2069                if timer "SpellbookCheck" > 5000 and EnableOverheadMessages = 12070                    overhead '[ NO SPELLBOOK! ]' 3372071                    settimer "SpellbookCheck" 02072                endif2073            endif2074        endif2075 2076        if EnableWeightWarningMessage = 12077            if diffweight < RedWeightLimitDiffWeight2078                if EnableOverheadMessages = 1 or EnableOverheadMessages = 22079                    if timer "WeightMessageTimer" > 100002080                        overhead '[ WEIGHT LIMIT REACHED! ]' 372081                        settimer "WeightMessageTimer" 02082                    endif2083                else2084                    if timer "WeightMessageTimer" > 100002085                        overhead " � " 372086                        settimer "WeightMessageTimer" 02087                    endif2088                endif2089 2090                if EnableAutoWeightRecall = 1 and not find ClosestTarget ground -1 -1 8 and WILDERNESSMODE = 12091                    wait 10002092                    hotkey 'Toggle Peace Only'2093                    @setvar! AutoWeightRecall 12094                    replay2095                elseif EnableAutoWeightRecall = 1 and find ClosestTarget ground -1 -1 8 and WILDERNESSMODE = 12096                    if timer "WaitingToRecallTimer" > 3500 and EnableAutoRecallOverheadMessages = 12097                        overhead '[ WAITING TO RECALL... ]' 1492098                        settimer "WaitingToRecallTimer" 02099                    endif2100                    wait 5002101                elseif EnableAutoWeightDungeonGate = 1 and DUNGEONMODE = 12102                    wait 5002103                    hotkey 'Toggle Peace Only'2104                    @setvar! TimeToGo 12105                    replay2106                else2107                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 22108                        overhead '[ OVERWEIGHT! ]' 3372109                    else2110                        overhead " � " 3372111                    endif2112                    wait 15002113                    overhead '[ STOPPING SCRIPT! ]' 882114                    stop2115                endif2116            endif2117        endif2118    endif2119 2120    if paralyzed and EnableAutoParalyzePouch = 12121        if findtype "pouch" self2122            yell "[pouch"2123            wait 2502124            hotkey 'Toggle Peace Only'2125            @setvar! RedTargetFound 12126            @setvar! TimeToGo 12127        else2128            if timer PopPouchMessageTimer > 5000 and EnableOverheadMessages = 12129                overhead "[ NO MORE POUCHES! ]" 3372130                settimer PopPouchMessageTimer 02131            endif2132        endif2133    endif2134 2135    if EnableDropGoldWhenOverweight = 12136        if weight > maxweight2137            if timer OverweightMessageTimer > 45002138                overhead "[ OVERWEIGHT! ]" 342139                settimer OverweightMessageTimer 02140            endif2141 2142            if DropGoldAmount != 02143                clearignore2144                @setvar! DisableVacuums 12145                wait 2502146 2147                if EnablePutLootinLockBox = 12148                    if findtype "wooden box" self as lockbox2149                        if findtype "copper key" self as key2150                            clearignore2151                            getlabel lockbox lockboxlabel2152                            wait 1002153                            if "items" in lockboxlabel2154                                // Do nothing2155                            else2156                                dclick key2157                                wft 15002158                                target lockbox2159                                wait 5002160                                if insysmsg "It appears to be locked."2161                                    dclick key2162                                    wft 15002163                                    target lockbox2164                                    wait 2502165                                else2166                                    if EnableOverheadMessages != 02167                                        overhead "[loot box unlocked]" 842168                                    endif2169                                endif2170                            endif2171                        elseif EnableOverheadMessages = 12172                            overhead "[ NO LOCKBOX KEY! ]" 3372173                        endif2174                    endif2175                endif2176 2177                while weight > maxweight and diffhits < CastGreaterHealHPdiff2178                    if findtype "gold coin" self as easycomeeasygo2179                        lift easycomeeasygo DropGoldAmount2180                        droprelloc 0 02181                        getlabel backpack packdesc2182                        if EnableOverheadMessages = 12183                            overhead "[ DROPPING GOLD... ]" 1492184                        endif2185                        wait 2502186                        if insysmsg "cannot drop anything"2187                            drop backpack -1 -1 -12188                            break2189                        endif2190                        wait 2502191                    else2192                        break2193                    endif2194                    if diffhits > CastGreaterHealHPdiff2195                        break2196                    endif2197                endwhile2198            endif2199        endif2200    endif2201 2202 2203    //////////////////////////2204    //  BEGIN AUTO RECALL:  //2205    //////////////////////////2206 2207    if not warmode2208        if dead2209            replay2210        endif2211 2212        if EnableEatMagicMushrooms = 12213            if diffmana > EatMushroomManadiff and timer MushroomTimer > 600002214                if counttype 29012 backpack2215                    dclicktype 29012 backpack2216                    getlabel backpack packdesc2217                    wait 2502218                    if insysmsg "You consume a magic mushroom"2219                        settimer MushroomTimer 02220                        cooldown "Mushroom" 600002221                        if EnableOverheadMessages = 12222                            overhead '[ EATING SHROOMS... ]' 132223                        endif2224                    endif2225                elseif EnableOverheadMessages = 12226                    overhead '[ OUT OF SHROOMS! ]' 3372227                endif2228            endif2229        endif2230 2231        if EnableAutoWeightRecall = 1 and AutoWeightRecall = 12232            if EnableDIYRecallScript = 12233                @setvar! AutoWeightRecall 02234                foreach RecallScript in DIYRecallScriptList2235                    script RecallScript2236                endfor2237            else2238                if targetexists2239                    hotkey 'Cancel Current Target'2240                endif2241 2242                hotkey 'Toggle Peace only'2243                clearsysmsg2244 2245                while not varexist AutoRecallChargedRunebook and EnableDIYRecallScript != 12246                    overhead "Select your escape runebook..." 2532247                    @setvar! AutoRecallChargedRunebook2248                    wait 25002249                endwhile2250 2251                while mana < 112252                    if timer "MANAWAIT" > 4000 and EnableOverheadMessages = 12253                        overhead '[ WAITING FOR MANA... ]' 122254                        settimer "MANAWAIT" 02255                    endif2256                    wait 5002257                endwhile2258 2259                if EnableOverheadMessages = 1 or EnableOverheadMessages = 22260                    overhead '[ AUTO WEIGHT RECALL! ]' 882261                    wait 5002262                endif2263                @setvar! AutoWeightRecall 02264                @setvar! RECALLTIME 12265            endif2266        elseif EnableAutoRedRecall = 1 and RedTargetFound = 12267            if EnableDIYRecallScript = 12268                @setvar! RedTargetFound 02269                foreach RecallScript in DIYRecallScriptList2270                    script RecallScript2271                endfor2272            else2273                if targetexists2274                    hotkey 'Cancel Current Target'2275                endif2276 2277                hotkey 'Toggle Peace only'2278                clearsysmsg2279 2280                while not varexist AutoRecallChargedRunebook and EnableDIYRecallScript != 12281                    overhead "Select your escape runebook..." 2532282                    @setvar! AutoRecallChargedRunebook2283                    wait 25002284                endwhile2285 2286                while mana < 112287                    if timer "MANAWAIT" > 4000 and EnableOverheadMessages = 12288                        overhead '[ WAITING FOR MANA... ]' 122289                        settimer "MANAWAIT" 02290                    endif2291                    wait 5002292                endwhile2293 2294                @setvar! RECALLTIME 12295            endif2296        elseif EnableRecallAfterDungeonGate = 1 and DungeonGateThenTimeToGo = 12297            if EnableDIYRecallScript = 12298                @setvar! DungeonGateThenTimeToGo 02299                foreach RecallScript in DIYRecallScriptList2300                    script RecallScript2301                endfor2302            else2303                if targetexists2304                    hotkey 'Cancel Current Target'2305                endif2306 2307                hotkey 'Toggle Peace only'2308                clearsysmsg2309 2310                while not varexist AutoRecallChargedRunebook and EnableDIYRecallScript != 12311                    overhead "Select your escape runebook..." 2532312                    @setvar! AutoRecallChargedRunebook2313                    wait 25002314                endwhile2315 2316                while mana < 112317                    if timer "MANAWAIT" > 4000 and EnableOverheadMessages = 12318                        overhead '[ WAITING FOR MANA... ]' 122319                        settimer "MANAWAIT" 02320                    endif2321                    wait 5002322                endwhile2323 2324                if EnableOverheadMessages = 12325                    overhead '[ AUTO RECALL! ]' 882326                endif2327                @setvar! DungeonGateThenTimeToGo 02328                @setvar! TimeToGo 02329                @setvar! RECALLTIME 12330            endif2331        elseif EnableRecallAfterResurrection = 1 and ResThenTimeToGo = 12332            if EnableDIYRecallScript = 12333                @setvar! ResThenTimeToGo 02334                foreach RecallScript in DIYRecallScriptList2335                    script RecallScript2336                endfor2337            else2338                if targetexists2339                    hotkey 'Cancel Current Target'2340                endif2341 2342                hotkey 'Toggle Peace only'2343                clearsysmsg2344 2345                while not varexist AutoRecallChargedRunebook and EnableDIYRecallScript != 12346                    overhead "Select your escape runebook..." 2532347                    @setvar! AutoRecallChargedRunebook2348                    wait 25002349                endwhile2350 2351                while mana < 112352                    if timer "MANAWAIT" > 4000 and EnableOverheadMessages = 12353                        overhead '[ WAITING FOR MANA... ]' 122354                        settimer "MANAWAIT" 02355                    endif2356                    wait 5002357                endwhile2358 2359                if EnableOverheadMessages = 12360                    overhead '[ AUTO RECALL! ]' 882361                    wait 10002362                endif2363                @setvar! AutoRecallTime 02364                @setvar! TimeToGo 02365                @setvar! ResThenTimeToGo 02366                @setvar! RecallScrollsOnly 12367                @setvar! RECALLTIME 12368            endif2369        elseif AutoRecallTime = 12370            if EnableDIYRecallScript = 12371                @setvar! AutoRecallTime 02372                foreach RecallScript in DIYRecallScriptList2373                    script RecallScript2374                endfor2375            else2376                if targetexists2377                    hotkey 'Cancel Current Target'2378                endif2379 2380                hotkey 'Toggle Peace only'2381                clearsysmsg2382 2383                while not varexist AutoRecallChargedRunebook and EnableDIYRecallScript != 12384                    overhead "Select your escape runebook..." 2532385                    @setvar! AutoRecallChargedRunebook2386                    wait 25002387                endwhile2388 2389                while mana < 112390                    if timer "MANAWAIT" > 4000 and EnableOverheadMessages = 12391                        overhead '[ WAITING FOR MANA... ]' 122392                        settimer "MANAWAIT" 02393                    endif2394                    wait 5002395                endwhile2396 2397                if EnableOverheadMessages = 12398                    overhead '[ AUTO RECALL! ]' 882399                    wait 10002400                endif2401                @setvar! AutoRecallTime 02402                @setvar! RECALLTIME 12403            endif2404        elseif EnableAutoRedDungeonGate = 1 or EnableAutoWeightDungeonGate = 12405            if TimeToGo = 12406                if RedTargetFound = 12407                    say 'All guard me' 22342408                    settimer "DungeonEscape" 02409                else2410                    say 'All follow me' 22342411                    settimer "DungeonEscape" 02412                    sysmsg "Dungeon Escape mode enabled! (variables 'EnableAutoRedDungeonGate' and/or 'EnableAutoWeightDungeonGate')" 02413                    sysmsg "Script will automatically revert after {{DungeonEscapeTimeLimit}}ms or upon dungeon exit" 882414                    wait 2502415                    sysmsg "Please proceed to the nearest exit gate!  It will be indicated by overhead arrows!" 1532416                endif2417 2418                ////////////////////////////2419                //  DUNGEON ESCAPE LOOP:  //2420                ////////////////////////////2421 2422                while timer "DungeonEscape" < DungeonEscapeTimeLimit2423                    if dead2424                        break2425                    endif2426 2427                    while not gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as EscapeGate2428                        dclick EscapeGate2429                        wait 5002430                    endwhile2431 2432                    if gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as EscapeGate2433                        while gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as EscapeGate2434                            gumpresponse 2 38990198712435                            wait 2502436                        endwhile2437                        wait 15002438                        @setvar! TimeToGo 02439                        if EnableDIYRecallScript = 12440                            foreach RecallScript in DIYRecallScriptList2441                                script RecallScript2442                            endfor2443                        else2444                            hotkey 'Toggle Peace Only'2445                            @setvar! DungeonGateThenTimeToGo 12446                            @setvar! AutoRecallTime 12447                            replay2448                        endif2449                    endif2450 2451                    while not gumpexists 3899019871 and findtype 30528 ground 2091 1 1 as EscapeGate2452                        dclick EscapeGate2453                        wait 5002454                    endwhile2455 2456                    if gumpexists 3899019871 and findtype 30528 ground 2091 1 1 as EscapeGate2457                        while gumpexists 3899019871 and findtype 30528 ground 2091 1 1 as EscapeGate2458                            gumpresponse 2 38990198712459                            wait 2502460                        endwhile2461                        @setvar! TimeToGo 02462                        if EnableDIYRecallScript = 12463                            foreach RecallScript in DIYRecallScriptList2464                                script RecallScript2465                            endfor2466                        else2467                            hotkey 'Toggle Peace Only'2468                            @setvar! DungeonGateThenTimeToGo 12469                            @setvar! AutoRecallTime 12470                            replay2471                        endif2472                    endif2473 2474                    while not gumpexists 3773199800 and findtype "blue moongate" ground -1 1 2 as EscapeGate2475                        dclick EscapeGate2476                        wait 5002477                    endwhile2478 2479                    if gumpexists 3773199800 and findtype "blue moongate" ground -1 1 2 as EscapeGate2480                        while gumpexists 3773199800 and findtype "blue moongate" ground -1 1 2 as EscapeGate2481                            gumpresponse 2 37731998002482                            wait 2502483                        endwhile2484                        wait 15002485                        @setvar! TimeToGo 02486                        if EnableDIYRecallScript = 12487                            foreach RecallScript in DIYRecallScriptList2488                                script RecallScript2489                            endfor2490                        else2491                            hotkey 'Toggle Peace Only'2492                            @setvar! DungeonGateThenTimeToGo 12493                            @setvar! AutoRecallTime 12494                            replay2495                        endif2496                    endif2497 2498                    while not gumpexists 3899019871 and findtype "moongate" ground -1 -1 2 as EscapeGate2499                        dclick EscapeGate2500                        wait 5002501                    endwhile2502 2503                    if gumpexists 3899019871 and findtype "moongate" ground -1 -1 2 as EscapeGate2504                        while gumpexists 3899019871 and findtype "moongate" ground -1 -1 2 as EscapeGate2505                            gumpresponse 2 38990198712506                            wait 2502507                        endwhile2508                        wait 15002509                        @setvar! TimeToGo 02510                        if EnableDIYRecallScript = 12511                            foreach RecallScript in DIYRecallScriptList2512                                script RecallScript2513                            endfor2514                        else2515                            hotkey 'Toggle Peace Only'2516                            @setvar! DungeonGateThenTimeToGo 12517                            @setvar! AutoRecallTime 12518                            replay2519                        endif2520                    endif2521 2522                    if findtype "moongate" ground -1 1 12 or findtype "blue moongate" ground -1 1 12 as EscapeGate2523                        if timer "GETCLOSER" > 45002524                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 22525                                overhead '[ GET CLOSER TO GATE! ]' 2532526                            else2527                                overhead " � " 2532528                            endif2529                            settimer "GETCLOSER" 02530                        endif2531                        if timer "GATEHERE" > 5002532                            overhead " � " 253 EscapeGate2533                            settimer "GATEHERE" 02534                        endif2535                    else2536                        if timer "RUNAWAY" > 45002537                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 22538                                overhead '[ GET TO A GATE... ]' 772539                            else2540                                overhead " � " 772541                            endif2542                            settimer "RUNAWAY" 02543                        endif2544                    endif2545 2546                    if EnableAutoParalyzePouch = 12547                        if paralyzed2548                            if findtype "pouch" self2549                                yell "[pouch"2550                            else2551                                if EnableOverheadMessages = 12552                                    overhead '[ NO MORE POUCHES! ]' 3372553                                endif2554                            endif2555                        endif2556                    endif2557 2558                    if EnableDropGoldWhenOverweight = 12559                        if weight > maxweight2560                            if timer OverweightMessageTimer > 45002561                                overhead "[ OVERWEIGHT! ]" 342562                                settimer OverweightMessageTimer 02563                            endif2564 2565                            if DropGoldAmount != 02566                                clearignore2567                                @setvar! DisableVacuums 12568                                wait 2502569 2570                                if EnablePutLootinLockBox = 12571                                    if findtype "wooden box" self as lockbox2572                                        if findtype "copper key" self as key2573                                            clearignore2574                                            getlabel lockbox lockboxlabel2575                                            wait 1002576                                            if "items" in lockboxlabel2577                                                // Do nothing2578                                            else2579                                                dclick key2580                                                wft 15002581                                                target lockbox2582                                                wait 5002583                                                if insysmsg "It appears to be locked."2584                                                    dclick key2585                                                    wft 15002586                                                    target lockbox2587                                                    wait 2502588                                                else2589                                                    if EnableOverheadMessages != 02590                                                        overhead "[loot box unlocked]" 842591                                                    endif2592                                                endif2593                                            endif2594                                        elseif EnableOverheadMessages = 12595                                            overhead "[ NO LOCKBOX KEY! ]" 3372596                                        endif2597                                    endif2598                                endif2599 2600                                while weight > maxweight and diffhits < CastGreaterHealHPdiff2601                                    if findtype "gold coin" self as easycomeeasygo2602                                        lift easycomeeasygo DropGoldAmount2603                                        droprelloc 0 02604                                        getlabel backpack packdesc2605                                        if EnableOverheadMessages = 12606                                            overhead "[ DROPPING GOLD... ]" 1492607                                        endif2608                                        wait 2502609                                        if insysmsg "cannot drop anything"2610                                            drop backpack -1 -1 -12611                                            break2612                                        endif2613                                        wait 2502614                                    else2615                                        break2616                                    endif2617                                    if diffhits > CastGreaterHealHPdiff2618                                        break2619                                    endif2620                                endwhile2621                            endif2622                        endif2623                    endif2624 2625                    if EnableStrengthPotion = 12626                        if not findbuff "Strength Potion Usage Cooldown"2627                            if findtype "White Potion" self2628                                dclicktype "White Potion"2629                                if EnableOverheadMessages = 1 and timer WhitePotionMessageTimer > 45002630                                    if insysmsg "potion satchel used"2631                                        overhead '[ FREE STRENGTH POTION ]' 9562632                                    else2633                                        overhead '[ STRENGTH POTION ]' 9562634                                    endif2635                                    settimer WhitePotionMessageTimer 02636                                endif2637                                clearsysmsg2638                                wait 2502639                            else2640                                if timer WhitePotionMessageTimer > 45002641                                    overhead '[ NO STRENGTH POTS! ]' 3372642                                    settimer WhitePotionMessageTimer 02643                                endif2644                            endif2645                        endif2646                    endif2647 2648                    if targetexists2649                        hotkey 'cancel current target'2650                    endif2651 2652                    if EnableCastHeal = 1 and RedTargetFound = 12653                        if EnableHealPotion = 12654                            if skill 'magery' >= 40 and mana >= 4 and not casting and diffhits > 252655                                say 'All guard me' 22342656                                while diffhits > 25 and mana >= 4 and findtype 3972 self and findtype 3973 self and findtype 3974 self and cooldown 'Healing Potion'2657                                    @setvar! SpellInterrupted 02658                                    clearsysmsg2659                                    cast 'heal'2660                                    getlabel backpack backpacklabel2661                                    settimer AntiStallTimer 02662                                    while not targetexists and timer AntiStallTimer < 15002663                                        if insysmsg "Your concentration is disturbed"2664                                            interrupt2665                                            @setvar! SpellInterrupted 12666                                            break2667                                        endif2668                                        if timer AntiStallTimer > 15002669                                            settimer AntiStallTimer 02670                                            break2671                                        endif2672                                    endwhile2673                                    if SpellInterrupted = 02674                                        target 'self'2675                                    else2676                                        if targetexists2677                                            hotkey 'cancel current target'2678                                        endif2679                                    endif2680                                    if not cooldown 'Healing Potion'2681                                        break2682                                    endif2683                                    wait 5002684                                endwhile2685                            endif2686                        else2687                            if skill 'magery' >= 40 and mana >= 4 and not casting2688                                while diffhits > 25 and mana >= 4 and findtype 3972 self and findtype 3973 self and findtype 3974 self2689                                    @setvar! SpellInterrupted 02690                                    clearsysmsg2691                                    cast 'heal'2692                                    getlabel backpack backpacklabel2693                                    settimer AntiStallTimer 02694                                    while not targetexists and timer AntiStallTimer < 15002695                                        if insysmsg "Your concentration is disturbed"2696                                            interrupt2697                                            @setvar! SpellInterrupted 12698                                            break2699                                        endif2700                                        if timer AntiStallTimer > 15002701                                            settimer AntiStallTimer 02702                                            break2703                                        endif2704                                    endwhile2705                                    if SpellInterrupted = 02706                                        target 'self'2707                                    else2708                                        if targetexists2709                                            hotkey 'cancel current target'2710                                        endif2711                                    endif2712                                    wait 5002713                                endwhile2714                            endif2715                        endif2716                    endif2717 2718                    if EnableHealPotion = 1 and diffhits > 252719                        if findtype "Yellow Potion" self as HealPot2720                            getlabel HealPot HealPotlabel2721                            if "next" in HealPotlabel2722                                // Do nothing2723                            else2724                                @setvar! HealPotionCheck 02725 2726                                if counttype 3852 self as HealPotCount2727                                    @setvar! HealPotionCheck HealPotCount2728                                endif2729                                clearsysmsg2730                                dclicktype 38522731                                getlabel backpack backpackdesc2732                                wait 2502733                                if insysmsg "potion satchel used"2734                                    settimer 'HealPotionTimer' 02735                                    cooldown "Healing Potion" HealingPotionCooldown2736                                    if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 45002737                                        overhead '[ FREE HEAL POTION ]' 2532738                                    endif2739                                elseif HealPotionCheck != counttype 3852 self2740                                    settimer 'HealPotionTimer' 02741                                    cooldown "Healing Potion" HealingPotionCooldown2742                                    if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 45002743                                        overhead '[ HEAL POTION ]' 2532744                                    endif2745                                endif2746                                clearsysmsg2747                            endif2748                        else2749                            if timer 'HealPotionMessageTimer' > 4500 and EnableOverheadMessages = 12750                                overhead '[ NO HEAL POTS! ]' 3372751                                settimer 'HealPotionMessageTimer' 02752                            endif2753                        endif2754                    endif2755 2756                    if not findtype 3972 self or not findtype 3973 self or not findtype 3974 self or not findtype 3981 self2757                        @setvar! missingGreaterHealRegs 12758                        getlabel backpack backpacklabel2759                    else2760                        @setvar! missingGreaterHealRegs 02761                    endif2762 2763                    if not findtype 3972 self or not findtype 3973 self or not findtype 3974 self2764                        @setvar! missingHealRegs 12765                        getlabel backpack backpacklabel2766                    else2767                        @setvar! missingHealRegs 02768                    endif2769 2770                    if missingGreaterHealRegs = 1 or missingHealRegs = 12771                        if timer NoHealRegsTimer > 40002772                            overhead '[ MISSING HEALING REGS! ]' 3372773                            settimer NoHealRegsTimer 02774                        endif2775                    endif2776 2777                    @setvar! SpellInterrupted 02778                    clearsysmsg2779 2780                    if skill 'magery' >= 60 and diffhits >= CastGreaterHealHPdiff and diffhits <= CastHealHPdiff and mana >= 11 and EnableCastGreaterHeal = 1 and not casting and missingGreaterHealRegs != 12781                        @setvar! SpellInterrupted 02782                        cast 'greater heal'2783                        getlabel backpack backpacklabel2784                        settimer spellTimer 02785                        @setvar! spellCD 25002786                        while not targetexists and timer spellTimer < spellCD2787                            if insysmsg "Your concentration is disturbed"2788                                interrupt2789                                @setvar! SpellInterrupted 12790                                break2791                            endif2792                            if timer spellTimer > spellCD2793                                break2794                            endif2795                        endwhile2796                        if SpellInterrupted = 02797                            target 'self'2798                        endif2799                    elseif skill 'magery' >= 40 and diffhits >= CastHealHPdiff and diffhits < CastEmergencyHealHPdiff and mana >= 4 and EnableCastHeal = 1 and not casting and missingHealRegs != 12800                        @setvar! SpellInterrupted 02801                        cast 'heal'2802                        getlabel backpack backpacklabel2803                        settimer AntiStallTimer 02804                        while not targetexists and timer AntiStallTimer < 15002805                            if insysmsg "Your concentration is disturbed"2806                                interrupt2807                                @setvar! SpellInterrupted 12808                                break2809                            endif2810                            if timer AntiStallTimer > 15002811                                settimer AntiStallTimer 02812                                break2813                            endif2814                        endwhile2815                        if SpellInterrupted = 02816                            target 'self'2817                        endif2818                    elseif skill 'magery' >= 40 and diffhits >= CastEmergencyHealHPdiff and mana >= 4 and EnableCastHeal = 1 and not casting and missingHealRegs != 12819                        while diffhits > CastGreaterHealHPdiff and mana >= 4 and findtype 3972 self and findtype 3973 self and findtype 3974 self and not dead2820                            if targetexists2821                                hotkey 'Cancel current target'2822                            endif2823                            @setvar! SpellInterrupted 02824                            cast 'heal'2825                            getlabel backpack backpacklabel2826                            settimer AntiStallTimer 02827                            while not targetexists and timer AntiStallTimer < 15002828                                if insysmsg "Your concentration is disturbed"2829                                    interrupt2830                                    @setvar! SpellInterrupted 12831                                    break2832                                endif2833 2834                                if timer AntiStallTimer > 15002835                                    settimer AntiStallTimer 02836                                    break2837                                endif2838                            endwhile2839                            if SpellInterrupted = 02840                                target 'self'2841                                getlabel backpack backpacklabel2842                            endif2843                            if diffhits <= CastGreaterHealHPdiff2844                                break2845                            endif2846                        endwhile2847                    endif2848 2849                    @setvar! SpellInterrupted 02850 2851                    if skill 'healing' > 0 and hp < maxhp and not bandaging2852                        if findtype 'clean bandage%s%' self2853                            hotkey 'Bandage Self'2854                            if EnableOverheadMessages = 12855                                overhead '[ BANDAGING... ]' 882856                            endif2857                        else2858                            if EnableOverheadMessages = 12859                                overhead '[ NO BANDAGES! ]' 3372860                            endif2861                        endif2862                    endif2863 2864                    if EnableRefreshPotion = 1 and diffstam > RefreshPotionSPdiff2865                        if findtype "Red Potion" self2866                            dclicktype "Red Potion"2867                            if EnableOverheadMessages = 1 and timer RedPotionMessageTimer > 45002868                                if insysmsg "potion satchel used"2869                                    overhead '[ FREE REFRESH POTION ]' 372870                                else2871                                    overhead '[ REFRESH POTION ]' 372872                                endif2873                                clearsysmsg2874                                settimer RedPotionMessageTimer 02875                            endif2876                            wait 2502877                        else2878                            if timer RedPotionMessageTimer > 45002879                                overhead '[ NO REFRESH POTS! ]' 3372880                                settimer RedPotionMessageTimer 02881                            endif2882                        endif2883                    endif2884 2885                    if EnablePanaceaPotion = 1 and skill 'Alchemy' >= 80 and RedTargetFound != 12886                        if findbuff "Bleed" or findbuff "Diseased"2887                            if not findbuff "panacea potion cooldown"2888                                if findtype "Orange Potion" self2889                                    dclicktype "Orange Potion"2890                                    wait 5002891                                    if findbuff "panacea potion cooldown" and EnableOverheadMessages = 12892                                        overhead '[ PANACEA ACTIVATED ]' 552893                                        cooldown "Panacea Potion" 300002894                                    endif2895                                endif2896                            endif2897                        endif2898                    endif2899 2900                    if EnableCleansingBrews = 12901                        if findbuff "Diseased" or findbuff "Bleed"2902                            if timer CleansingBrewTimer > 1200002903                                if findtype 50675 self 2935 as CleansingBrew2904                                    dclick CleansingBrew2905                                    if EnableOverheadMessages = 12906                                        overhead '[ CLEANSING BREW ]' 21172907                                    endif2908                                    cooldown 'Cleansing Brew' 1200002909                                    settimer CleansingBrewTimer 02910                                    wait 2502911                                else2912                                    if timer CleansingBrewOverhead > 150002913                                        overhead "[ NO CLEANSING BREWS! ]" 3372914                                        settimer CleansingBrewOverhead 02915                                        settimer CleansingBrewTimer 02916                                    endif2917                                endif2918                            else2919                                if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 150002920                                    overhead '[ BREW ON COOLDOWN! ]' 372921                                    settimer CleansingBrewOverhead 02922                                endif2923                            endif2924                        endif2925                    endif2926 2927                    if EnableCurePotion = 12928                        while poisoned2929                            if findtype "Orange Potion" self2930                                dclicktype "Orange Potion"2931                                if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 35002932                                    if insysmsg "potion satchel used"2933                                        overhead '[ FREE CURE POTION ]' 442934                                    else2935                                        overhead '[ CURE POTION ]' 442936                                    endif2937                                    clearsysmsg2938                                    settimer 'CurePotionMessageTimer' 02939                                endif2940                                wait 2502941                            else2942                                if timer 'CurePotionMessageTimer' > 50002943                                    overhead '[ NO CURE POTS! ]' 3372944                                    settimer 'CurePotionMessageTimer' 02945                                endif2946 2947                                if diffhits >= 30 or not findtype 3972 self or not findtype 3973 self2948                                    break2949                                endif2950                            endif2951                        endwhile2952                    endif2953 2954                    if EnableAgilityPotion = 1 and not findbuff "Agility"2955                        if findtype "Blue Potion" self2956                            dclicktype "Blue Potion"2957                            if EnableOverheadMessages = 1 and timer BluePotionMessageTimer > 45002958                                if insysmsg "potion satchel used"2959                                    overhead '[ FREE AGILITY POTION ]' 932960                                else2961                                    overhead '[ AGILITY POTION ]' 932962                                endif2963                                clearsysmsg2964                                settimer BluePotionMessageTimer 02965                            endif2966                            wait 2502967                        else2968                            if timer BluePotionMessageTimer > 45002969                                overhead '[ NO AGILITY POTS! ]' 3372970                                settimer BluePotionMessageTimer 02971                            endif2972                        endif2973                    endif2974 2975                    if EnableMagicResistPotion = 1 and not findbuff "Magic Resist"2976                        if findtype "Black Potion" self2977                            dclicktype "Black Potion"2978                            if EnableOverheadMessages = 1 and timer BlackPotionMessageTimer > 45002979                                if insysmsg "potion satchel used"2980                                    overhead '[ FREE RESIST POTION ]' 11092981                                else2982                                    overhead '[ RESIST POTION ]' 11092983                                endif2984                                clearsysmsg2985                                settimer BlackPotionMessageTimer 02986                            endif2987                            wait 2502988                        else2989                            if timer BlackPotionMessageTimer > 45002990                                overhead '[ NO RESIST POTS! ]' 3372991                                settimer BlackPotionMessageTimer 02992                            endif2993                        endif2994                    endif2995 2996                    if EnableEatMagicMushrooms = 12997                        if diffmana > EatMushroomManadiff and timer MushroomTimer > 600002998                            if counttype 29012 backpack2999                                dclicktype 29012 backpack3000                                getlabel backpack packdesc3001                                wait 2503002                                if insysmsg "You consume a magic mushroom"3003                                    settimer MushroomTimer 03004                                    cooldown "Mushroom" 600003005                                    if EnableOverheadMessages = 13006                                        overhead '[ EATING SHROOMS... ]' 133007                                    endif3008                                endif3009                            elseif EnableOverheadMessages = 13010                                overhead '[ OUT OF SHROOMS! ]' 3373011                            endif3012                        endif3013                    endif3014 3015                    if EnableAutoCarving = 1 and findtype 11552 self3016                        while findtype "corpse" ground -1 -1 2 as deadbody and diffhits < CastGreaterHealHPdiff3017                           settimer SkinningTimeoutTimer 03018                           if findtype 11552 self3019                                if targetexists3020                                   hotkey 'cancel current target'3021                                endif3022 3023                                while not targetexists3024                                    skill 'forensicevaluation'3025                                    getlabel backpack backpacklabel3026                                endwhile3027 3028                                if targetexists and find deadbody ground -1 -1 23029                                    target 'self'3030                                    @ignore deadbody3031                                    wait 2503032                                endif3033 3034                                if insysmsg "You dont see anything nearby"3035                                    clearsysmsg3036                                    break3037                                else3038                                    if EnableOverheadMessages = 1 and timer SkinningTimer > 30003039                                        overhead '[ SKINNING... ]' 3333040                                        settimer SkinningTimer 03041                                    endif3042                                endif3043                            else3044                                if EnableOverheadMessages = 1 and timer SkinningTimer > 150003045                                    overhead '[ NO SKINNING KNIFE ]' 3373046                                    settimer SkinningTimer 03047                                    break3048                                endif3049                            endif3050 3051                            if timer SkinningTimeoutTimer > 1500 or diffhits > CastGreaterHealHPdiff3052                                break3053                            endif3054                        endwhile3055                    endif3056 3057                    if followers > 03058                        if skill 'spiritspeak' >= 50 and timer 'SpiritSpeakTimer' > 10000 and findtype 'corpse' ground -1 -1 15 and EnableNecroVengefulSpirit = 03059                            getlabel backpack backpacklabel3060                            skill 'spiritspeak'3061                            wait 2503062                            settimer 'SpiritSpeakTimer' 03063                            if insysmsg 'You establish contact'3064                                if EnableOverheadMessages = 13065                                    overhead '[ CONSUMING SOULS... ]' 11093066                                else3067                                    overhead '*consuming souls...*' 11093068                                endif3069                            endif3070                        endif3071                    endif3072 3073                    if EnableUsePotionKegs = 1 and findtype 'empty bottle%s%' self and findtype 'keg' self and timer 'PotionKegPVPCooldown' > 30000 and AttackModeActive != 23074                        @setvar! PotionStockCheck 03075 3076                        while PotionStockCheck < 8 and findtype 'empty bottle%s%' self3077 3078                            if PotionStockCheck = 03079                                if HealingPotionAmount = 03080                                    @setvar! PotionStockCheck 13081                                else3082                                    @setvar! PotionType 38523083                                    @setvar! KegColour 2533084                                    @setvar! PotionAmounttoFill HealingPotionAmount3085                                    @setvar! PotionStockCheck 13086                                endif3087                            elseif PotionStockCheck = 13088                                if CurePotionAmount = 03089                                     @setvar! PotionStockCheck 23090                                else3091                                    @setvar! PotionType 38473092                                    @setvar! KegColour 443093                                    @setvar! PotionAmounttoFill CurePotionAmount3094                                    @setvar! PotionStockCheck 23095                                endif3096                            elseif PotionStockCheck = 23097                                if RefreshPotionAmount = 03098                                    @setvar! PotionStockCheck 33099                                else3100                                    @setvar! PotionType 38513101                                    @setvar! KegColour 373102                                    @setvar! PotionAmounttoFill RefreshPotionAmount3103                                    @setvar! PotionStockCheck 33104                                endif3105                            elseif PotionStockCheck = 33106                                if StrengthPotionAmount = 03107                                    @setvar! PotionStockCheck 43108                                else3109                                    @setvar! PotionType 38493110                                    @setvar! KegColour 9563111                                    @setvar! PotionAmounttoFill StrengthPotionAmount3112                                    @setvar! PotionStockCheck 43113                                endif3114                            elseif PotionStockCheck = 43115                                if AgilityPotionAmount = 03116                                    @setvar! PotionStockCheck 53117                                else3118                                    @setvar! PotionType 38483119                                    @setvar! KegColour 933120                                    @setvar! PotionAmounttoFill AgilityPotionAmount3121                                    @setvar! PotionStockCheck 53122                                endif3123                            elseif PotionStockCheck = 53124                                if ResistPotionAmount = 03125                                    @setvar! PotionStockCheck 63126                                else3127                                    @setvar! PotionType 38463128                                    @setvar! KegColour 11093129                                    @setvar! PotionAmounttoFill ResistPotionAmount3130                                    @setvar! PotionStockCheck 63131                                endif3132                            elseif PotionStockCheck = 63133                                if PoisonPotionAmount = 03134                                    @setvar! PotionStockCheck 73135                                else3136                                    @setvar! PotionType 38503137                                    @setvar! KegColour 3633138                                    @setvar! PotionAmounttoFill PoisonPotionAmount3139                                    @setvar! PotionStockCheck 73140                                endif3141                            elseif PotionStockCheck = 73142                                if ExplosionPotionAmount = 03143                                    @setvar! PotionStockCheck 83144                                else3145                                    @setvar! PotionType 38533146                                    @setvar! KegColour 4193147                                    @setvar! PotionAmounttoFill ExplosionPotionAmount3148                                    @setvar! PotionStockCheck 83149                                endif3150                            else3151                                break3152                            endif3153 3154                            while counttype PotionType self < PotionAmounttoFill3155                                if not findtype 'empty bottle%s%' self3156                                    if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50003157                                        overhead '[ NO EMPTY BOTTLES... ]' 3373158                                        settimer 'PotionKegTimer' 03159                                    endif3160                                    break3161                                endif3162 3163                                if diffhits > HealPotionHPdiff3164                                    break3165                                endif3166 3167                                if findtype 'keg' self KegColour as myKeg3168                                    dclick myKeg3169                                    wait 2503170                                    if EnableOverheadMessages = 13171                                        if timer 'PotionKegTimer' > 20003172                                            overhead '[ FILLING POTS... ]' KegColour3173                                            settimer 'PotionKegTimer' 03174                                        endif3175                                    endif3176                                else3177                                    if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50003178                                        overhead '[ NO KEG TO USE... ]' KegColour3179                                        settimer 'PotionKegTimer' 03180                                    endif3181                                    break3182                                endif3183                                if insysmsg "You have been in combat with another player"3184                                    settimer "PotionKegPVPCooldown" 03185                                    break3186                                endif3187                            endwhile3188 3189                            if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self3190                                if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50003191                                    overhead '[ NO EMPTY BOTTLES... ]' 3373192                                    settimer 'PotionKegTimer' 03193                                endif3194                                break3195                            endif3196                        endwhile3197                    endif3198 3199                    if warmode3200                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 23201                            overhead '[ ESCAPE CANCELLED! ]' 1493202                        else3203                            overhead " � " 1493204                        endif3205                        @setvar! TimeToGo 03206                        hotkey 'Toggle War Only'3207                        settimer "DungeonEscape" DungeonEscapeTimeLimit3208                        break3209                    endif3210 3211                    if timer DungeonEscape > DungeonEscapeTimeLimit3212                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 23213                            overhead '[ ESCAPE TIMEOUT! ]' 3333214                        endif3215                        @setvar! TimeToGo 03216                        hotkey 'Toggle War Only'3217                        break3218                    endif3219 3220                    if dead3221                        break3222                    endif3223                endwhile3224 3225                ///////////////////////3226                //  END ESCAPE LOOP  //3227                ///////////////////////3228            endif3229        elseif EnableAutoRedRecall = 0 and EnableAutoWeightRecall = 03230            // Do nothing3231        elseif EnableAutoRedDungeonGate = 0 and EnableAutoWeightDungeonGate = 03232            // Do nothing3233        endif3234    endif3235 3236    getlabel backpack backpacklabel3237 3238    if RECALLTIME = 13239        if EnableCastRecall = 1 and skill "Magery" >= 60 and RecallScrollsOnly != 1 and findtype '3962' self and findtype '3963' self and findtype '3974' self3240            cast "Recall"3241            settimer AntiStallTimer 03242 3243            while not targetexists and timer AntiStallTimer < 25003244                if timer AntiStallTimer > 25003245                    settimer AntiStallTimer 03246                    break3247                endif3248                wait 1003249            endwhile3250 3251            target AutoRecallChargedRunebook3252            wait 10003253        else3254            dclick AutoRecallChargedRunebook3255            waitforgump 15517409693256            gumpresponse 23257            wait 10003258        endif3259 3260        if insysmsg 'Your concentration is disturbed'3261            overhead '[ INTERRUPTED! ]' 1533262            wait 5003263            for 53264            if diffhits > 25 and timer 'HealPotionTimer' > HealingPotionCooldown3265                if findtype "Yellow Potion" self as healpot3266                    dclick healpot3267                    wait 2503268                    settimer 'HealPotionTimer' 03269                    cooldown "Healing Potion" HealingPotionCooldown3270                    if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 45003271                        if insysmsg "potion satchel used"3272                            overhead '[ FREE HEAL POTION ]' 2533273                        else3274                            overhead '[ HEAL POTION ]' 2533275                        endif3276                        settimer 'HealPotionMessageTimer' 03277                    endif3278                endif3279            endif3280 3281            while poisoned3282                if findtype "Orange Potion" self as curepot3283                    dclick curepot3284                    wait 5003285                endif3286            endwhile3287 3288            clearsysmsg3289            wait 5003290 3291            if EnableCastRecall = 1 and skill "Magery" >= 60 and RecallScrollsOnly != 1 and findtype '3962' self and findtype '3963' self and findtype '3974' self3292                cast "Recall"3293                settimer AntiStallTimer 03294 3295                while not targetexists and timer AntiStallTimer < 25003296                    if timer AntiStallTimer > 25003297                        settimer AntiStallTimer 03298                        break3299                    endif3300                    wait 1003301                endwhile3302 3303                target AutoRecallChargedRunebook3304                wait 10003305            else3306                dclick AutoRecallChargedRunebook3307                waitforgump 15517409693308                gumpresponse 23309                wait 10003310            endif3311 3312            if insysmsg 'Your concentration is disturbed'3313                wait 5003314            else3315                break3316            endif3317            endfor3318        endif3319 3320        @setvar! TimeToGo 03321        @setvar! RECALLTIME 03322        @setvar! AutoRecallTime 03323 3324        if OutsideHouseRecall = 13325            wait 25003326            if find MyDoor ground -1 -1 2 and EnableCloseMyDoor = 13327                dclick MyDoor3328                overhead "*door slams!*" 0 MyDoor3329                wait 10003330            endif3331            wait 25003332        elseif OwnerInnRecall = 13333            wait 5003334            say "Innkeeper, I need a room!" 22343335            waitforgump 23938324113336            gumpresponse 43337            wait 15003338        elseif CoOwnerInnRecall = 13339            wait 5003340            say "Innkeeper, I need a room!" 22343341            waitforgump 23938324113342            gumpresponse 53343            wait 5003344            gumpresponse 1003345            wait 15003346        elseif InsideHouseRecall = 13347            wait 15003348        elseif BankRecall = 13349            say "Open my bank!" 22343350            wait 10003351        else3352            wait 15003353        endif3354 3355        if EnableDispelSummonsAfterRecall = 1 and skill "Magery" >= 70 and mana >= 40 and findtype '3962' self and findtype '3972' self and findtype '3974' self and findtype '3980' self and IHAVEDIED != 1 and followers > 03356            if findtype '3|158|14|740|16|306|13|24|15|9|722|727|730|215|211|302|317|225|212|202|213|716|729|51|74|214|206|776|737|718|739|718|29|776|317|302|39|56|26|3|57|50|382|717|736|270|a primordial whelp|an aegis rat|a scorpion|a wolf|a grizzly bear|a brown bear|a corpse eater|a familiar|a rock guar|a flamehound|a swamp spider|a firebat|a sand crab|a black bear|shallow water|a monitor hatchling|a muck|a cougar|a polar bear|a searing lizard|a monitor|a fire salamander|a fire ant|a winter wolf|a jaguar|an aegis mongbat|a silverback|a cave bat|Imp|a primordial|an asp|a cave bear|a giant swamp slug|a minion|an aegis slime|a trapdoor spider|a chameleon|a searing imp|a dragon whelp|a drake whelp|a blood ape|a devilbat|a wolfhound|an army ant|a ruby smallshell|a molten mongbat|an aquamarine smallshell|a stinger|a rime guar|an aegis scorpion|a skulker|a komodo|a shade wolf|a husk crab|a spitting viper|an aegis imp|a vampire bat|a fire minion|a snowdrift|a vampire|a skeleton|a zombie|a skeletal knight|a ghoul|a skeletal mage|a ghost|a skeletal marksman|a rotting flesh ground' -1 -1 2 as MyPet3357                wait 5003358                cast "Mass Dispel"3359                settimer AntiStallTimer 03360                while not targetexists and timer AntiStallTimer < 25003361                    if timer AntiStallTimer > 25003362                        settimer AntiStallTimer 03363                        break3364                    endif3365                    wait 1003366                endwhile3367                if EnableAutoRecallOverheadMessages = 13368                    overhead '[ RELEASING SUMMONS... ]' 223369                endif3370                target self3371                wait 5003372            else 3373                if EnableAutoRecallOverheadMessages = 13374                    overhead '[ NO FOLLOWERS DETECTED! ]' 3373375                endif3376                wait 5003377            endif 3378        endif3379 3380        if HideAtHomeorInn = 13381            useskill "Hiding"3382        endif3383 3384        clearignore3385        @setvar! RecallScrollsOnly 03386 3387        if EnableResetInventoryAfterDeath = 1 and IHAVEDIED = 13388            if EnableAutoRecallOverheadMessages = 13389                overhead '[ RESETTING LOADOUT... ]' 773390                wait 15003391            endif3392        endif3393 3394        if EnableLootChest = 13395            dclick LootChest3396            wait 5003397        endif3398 3399        while queued3400            wait 1003401        endwhile3402 3403        if EnableStorageTomeContainer = 13404            dclick TomeContainer3405            wait 5003406        endif3407 3408        while queued3409            wait 1003410        endwhile3411 3412        if IHAVEDIED != 13413            if EnableLootBag = 1 and varexist LootBag3414                if find LootBag self3415                    dclick LootBag3416                    wait 5003417                else3418                    if EnableAutoRecallOverheadMessages = 13419                        overhead '[ NO LOOT BAG! ]' 3373420                    endif3421                    unsetvar LootBag3422                endif3423            endif3424 3425            if EnablePutLootinLockBox = 13426                if findtype "wooden box" self as lockbox3427                    if findtype "copper key" self as key3428                        clearignore3429                        getlabel lockbox lockboxlabel3430                        wait 2503431                        if "items" in lockboxlabel3432                            dclick lockbox3433                            wait 5003434                        else3435                            dclick key3436                            wft 15003437                            target lockbox3438                            if EnableAutoRecallOverheadMessages = 13439                                overhead "[loot box unlocked]" 843440                            endif3441                            wait 5003442                            dclick lockbox3443                            wait 2503444                            if insysmsg "It appears to be locked."3445                                dclick key3446                                wft 15003447                                target lockbox3448                                wait 5003449                                dclick lockbox3450                                wait 5003451                            endif3452                        endif3453                    elseif EnableAutoRecallOverheadMessages = 13454                        overhead '[ NO LOCKBOX KEY! ]' 3373455                    endif3456                endif3457            endif3458 3459            wait 5003460 3461            if EnableSafeDeposit = 13462                if findtype "bank deposit safe" ground -1 -1 2 as safe3463                    clearignore3464                    while findtype "gold coin" self as gold3465                        if findtype "wooden box" self as lockbox3466                            if findtype "copper key" self as key3467                                getlabel lockbox lockboxlabel3468                                if "items" in lockboxlabel3469                                    wait 5003470                                else3471                                    dclick key3472                                    wft 15003473                                    target lockbox3474                                    wait 2503475                                    if insysmsg "It appears to be locked."3476                                        dclick key3477                                        wft 15003478                                        target lockbox3479                                        wait 2503480                                    endif3481                                endif3482                            elseif EnableAutoRecallOverheadMessages = 13483                                overhead '[ NO LOCKBOX KEY! ]' 3373484                            endif3485                        endif3486 3487                        if EnableAutoRecallOverheadMessages = 13488                            overhead '[ DEPOSITING GOLD... ]' 1493489                        else3490                            overhead " � " 1493491                        endif3492 3493                        menu safe 03494                        wait 5003495                    endwhile3496                    while findtype 2539 self as dubs3497                        if EnableAutoRecallOverheadMessages = 13498                            overhead '[ DEPOSITING DUBS... ]' 1493499                        else3500                            overhead " � " 1493501                        endif3502 3503                        menu safe 03504                        wait 5003505                    endwhile3506                elseif EnableAutoRecallOverheadMessages = 13507                    overhead '[ NO BANK SAFE FOUND ]' 3373508                    wait 15003509                endif3510            endif3511 3512            if EnableMagicRecycler = 13513                if findtype "ornate elven chest|magic item recycler" ground -1 -1 2 as recycler3514                    for 23515                    getlabel recycler recyclerdesc3516 3517                    if EnableRecycleItemsWhenFull = 13518                        if "(125 items" in recyclerdesc3519                            dclick recycler3520                            waitforgump 40451111013521                            gumpresponse 73522                            waitforgump 40451111013523                            gumpresponse 63524                            waitforgump 40451111013525                            gumpresponse 63526 3527                            if EnableAutoRecallOverheadMessages = 13528                                overhead '[ RECYCLING JUNK... ]' 663529                            else3530                                overhead " � " 663531                            endif3532 3533                            wait 5003534                            gumpclose 40451111013535 3536                            if EnableResourceStockpile = 13537                                if findtype "resource container" ground -1 -1 2 as resource3538                                    menu resource 03539                                    wft 15003540                                    target recycler3541                                    wait 5003542                                    if EnableAutoRecallOverheadMessages = 13543                                        overhead '[ PILING RESOURCES... ]' 843544                                    else3545                                        overhead " � " 843546                                    endif3547                                    wait 5003548                                elseif EnableAutoRecallOverheadMessages = 13549                                    overhead '[ NO RESOURCE STOCKPILE FOUND ]' 3373550                                endif3551                            endif3552 3553                            menu recycler 13554                            getlabel backpack backpacklabel3555 3556                            if insysmsg "0 recyclable"3557                                break3558                            else3559                                if EnableAutoRecallOverheadMessages = 13560                                    overhead '[ ADDING TO RECYCLER... ]' 63561                                else3562                                    overhead " � " 63563                                endif3564                                wait 15003565                            endif3566                        endif3567                    endif3568                    menu recycler 13569                    wait 5003570                    if insysmsg "0 recyclable"3571                        if EnableAutoRecallOverheadMessages = 1 and timer "InventoryCheck" > 50003572                            overhead '[ NO MAGIC LOOT! ]' 63573                        elseif timer "InventoryCheck" > 50003574                            overhead " � " 63575                        endif3576                        break3577                    else3578                        if EnableAutoRecallOverheadMessages = 13579                            overhead '[ ADDING TO RECYCLER... ]' 63580                        else3581                            overhead " � " 63582                        endif3583                        settimer "InventoryCheck" 03584                        wait 15003585                    endif3586                    wait 5003587                    endfor3588                elseif EnableAutoRecallOverheadMessages = 13589                    overhead '[ NO MAGIC ITEM RECYCLER FOUND ]' 3373590                endif3591            endif3592 3593            if EnableLootChest = 13594                dclick LootChest3595                if EnableAutoRecallOverheadMessages = 13596                    overhead '[ STASHING LOOT... ]' 693597                else3598                    overhead " � " 693599                endif3600                wait 5003601                for 23602                hotkey "Organizer Agent-06"3603                wait 2503604                hotkey "Organizer Agent-07"3605                wait 2503606                hotkey "Organizer Agent-08"3607                wait 2503608                hotkey "Organizer Agent-09"3609                wait 2503610                endfor3611                while queued3612                    wait 1003613                endwhile3614            endif3615            if EnableStorageTomes = 13616                if EnableStorageTomeContainer = 13617                    dclick TomeContainer3618                    wait 5003619                endif3620                if findtype "70142|70143|70144|70145|70158|70159|70160|70161|70162|70163|70164|70165|70166|70167|70168" ground -1 -1 2 as StorageTome or findtype "70142|70143|70144|70145|70158|70159|70160|70161|70162|70163|70164|70165|70166|70167|70168" LootChest as StorageTome or findtype "70142|70143|70144|70145|70158|70159|70160|70161|70162|70163|70164|70165|70166|70167|70168" TomeContainer as StorageTome3621                    while findtype "70142|70143|70144|70145|70158|70159|70160|70161|70162|70163|70164|70165|70166|70167|70168" ground -1 -1 2 as StorageTome3622                        menu StorageTome 03623                        if EnableAutoRecallOverheadMessages = 1 and timer "InventoryCheck" > 35003624                            overhead '[ STORING TOME ITEMS... ]' 21173625                            settimer "InventoryCheck" 03626                        elseif EnableAutoRecallOverheadMessages = 0 and timer "InventoryCheck" > 35003627                            overhead " � " 21173628                            settimer "InventoryCheck" 03629                        endif3630                        wait 2503631                        @ignore StorageTome3632                    endwhile3633                    while findtype "70142|70143|70144|70145|70158|70159|70160|70161|70162|70163|70164|70165|70166|70167|70168" LootChest as StorageTome or findtype "70142|70143|70144|70145|70158|70159|70160|70161|70162|70163|70164|70165|70166|70167|70168" TomeContainer as StorageTome3634                        menu StorageTome 03635                        if EnableAutoRecallOverheadMessages = 1 and timer "InventoryCheck" > 35003636                            overhead '[ STORING TOME ITEMS... ]' 21173637                            settimer "InventoryCheck" 03638                        elseif EnableAutoRecallOverheadMessages = 0 and timer "InventoryCheck" > 35003639                            overhead " � " 21173640                            settimer "InventoryCheck" 03641                        endif3642                        wait 2503643                        @ignore StorageTome3644                    endwhile3645                    @clearignore3646                elseif EnableAutoRecallOverheadMessages = 13647                    overhead '[ NO STORAGE TOMES FOUND ]' 3373648                    wait 15003649                endif3650            endif3651 3652            if EnableResourceStockpile = 13653                if findtype "resource container" ground -1 -1 2 as resource3654                    menu resource 03655                    wft 5003656                    target self3657                        if EnableAutoRecallOverheadMessages = 13658                            overhead '[ PILING RESOURCES... ]' 843659                        else3660                            overhead " � " 843661                        endif3662                    wait 15003663                elseif EnableAutoRecallOverheadMessages = 13664                    overhead '[ NO RESOURCE STOCKPILE FOUND ]' 3373665                    wait 15003666                endif3667            endif3668 3669            if EnableRepairBench = 13670                if findtype "repair bench" ground -1 -1 3 as RepairBench3671                    clearsysmsg3672                    dclick RepairBench3673                    wait 5003674                    if insysmsg "You do not have any items equipped or in your backpack in need of repairs."3675                        if EnableAutoRecallOverheadMessages = 13676                            overhead '[ NOTHING TO REPAIR! ]' 03677                        endif3678                        wait 15003679                    else3680                        if EnableAutoRecallOverheadMessages = 13681                            overhead '[ REPAIRING EQUIPMENT... ]' 3393682                        else3683                            overhead " � " 3393684                        endif3685                        settimer RepairTimer 03686                    while timer RepairTimer <= 50003687                        if insysmsg "Repair"3688                            break3689                        endif3690                    endwhile3691                        if EnableAutoRecallOverheadMessages = 13692                            overhead '[ ITEMS REPAIRED! ]' 03693                            wait 5003694                            overhead "Repair took: {{RepairTimer}}ms" 773695                        else3696                            overhead " � " 03697                        endif3698                        removetimer RepairTimer3699                        wait 5003700                    endif3701                elseif EnableAutoRecallOverheadMessages = 13702                    overhead '[ NO REPAIR BENCH FOUND ]' 3373703                    wait 15003704                endif3705            endif3706        endif3707 3708        wait 5003709 3710        if EnableStorageShelf = 13711            if findtype "storage shelf" ground -1 -1 2 as shelf3712                if IHAVEDIED != 13713                    menu shelf 03714                    wft 5003715                    target self3716                    if EnableAutoRecallOverheadMessages = 13717                        overhead '[ STORING GOODS... ]' 21143718                    else3719                        overhead " � " 21143720                    endif3721                    wait 5003722                    gumpclose 32328259653723                    wait 10003724                endif3725                menu shelf 13726                if EnableAutoRecallOverheadMessages = 13727                    overhead '[ RESUPPLYING... ]' 933728                    wait 5003729                else3730                    overhead " � " 933731                endif3732                wait 10003733            elseif EnableAutoRecallOverheadMessages = 13734                overhead '[ NO STORAGE SHELF FOUND ]' 3373735                wait 15003736            endif3737        endif3738 3739        if EnableResetInventoryAfterDeath = 1 and IHAVEDIED = 13740            clearignore3741 3742            if not varexist maininventorybag or not find maininventorybag self3743                overhead '[ SELECT MAIN POUCH... ]' 2533744                @setvar! maininventorybag3745                wft 5003746                while targetexists3747                    wait 1003748                endwhile3749                overhead '[ MAIN POUCH SET! ]' 933750                wait 5003751            endif3752 3753            lift maininventorybag3754            wait 5003755            drop backpack 69 69 03756            wait 5003757 3758            if EnableSetMainPouchOrganizer01 = 13759                hotkey 'Set Organizer Hotbag-01'3760                wft 10003761                target maininventorybag3762                if EnableAutoRecallOverheadMessages = 13763                    overhead '[ POUCH SET TO AGENT-01! ]' 843764                endif3765                wait 5003766            endif3767 3768            dclick maininventorybag3769            wait 10003770            sysmsg "Auto-selecting your loot/grab bag..." 03771            hotkey 'Set Grab Item Hotbag'3772            wft 15003773 3774            while targetexists3775                if findtype 'bag' self as grabbag3776                    target grabbag3777                    wait 5003778                else3779                    wait 10003780                    sysmsg "Auto-select failed!  Please manually target your loot/grab bag!" 03781                    wait 10003782                    overhead '[ SELECT GRAB BAG... ]' 2533783                    wait 35003784                endif3785                wait 5003786            endwhile3787            overhead '[ GRAB BAG SET! ]' 933788            wait 5003789 3790            if EnableLootBag = 13791                if not find LootBag self3792                    wait 5003793                    overhead "Select your new loot bag..." 2533794                    wait 5003795                    @setvar! LootBag3796                    wait 5003797                    while targetexists3798                        wait 1003799                    endwhile3800                endif3801            endif3802 3803            if find grabbag self3804                lift grabbag3805                wait 5003806                drop maininventorybag -1 -1 -13807                wait 5003808            endif3809 3810            while findtype 'scissors' self3811                if skill 'healing' > 0 and hp < maxhp and not bandaging3812                    if findtype 'clean bandage%s%' self3813                        hotkey 'Bandage Self'3814                        if EnableAutoRecallOverheadMessages = 13815                            overhead '[ BANDAGING... ]' 883816                        endif3817                    else3818                        if EnableAutoRecallOverheadMessages = 13819                            overhead '[ NO BANDAGES! ]' 3373820                        endif3821                    endif3822                endif3823 3824                if findtype 'scissors' backpack as myscissors3825                    if findtype 'pouch' self as trappedpouch3826                        lift myscissors3827                        wait 2503828                        drop trappedpouch3829                        wait 7503830                        lift trappedpouch3831                        wait 2503832                        drop backpack 69 69 03833                        @ignore trappedpouch3834                        @ignore myscissors3835                    endif3836                endif3837 3838                wait 5003839                while queued3840                    wait 1003841                endwhile3842            endwhile3843 3844            clearignore3845 3846            while findtype 'pouch' backpack as decoypouch3847                getlabel decoypouch decoypouchlabel3848                wait 2503849                if '(1 items' in decoypouchlabel3850                    lift decoypouch3851                    drop backpack 97 97 03852                    break3853                else3854                    @ignore decoypouch3855                endif3856            endwhile3857 3858            if findtype 'atlas' backpack as hidemypouchstack3859                lift hidemypouchstack3860                drop backpack 72 66 03861                wait 5003862            else3863                say "[atlas"3864                wait 5003865                if findtype 'atlas' backpack as hidemypouchstack3866                    lift hidemypouchstack3867                    drop backpack 72 66 03868                    wait 5003869                endif3870            endif3871 3872            if EnableAutoRecallOverheadMessages = 13873                overhead '[ ACTIVATING ASPECT... ]' 22343874                wait 5003875            endif3876 3877            say "[aspect"3878            waitforgump 24242931733879            gumpresponse 133880            wait 5003881            gumpresponse 133882            wait 2503883            gumpresponse 173884            wait 5003885            gumpresponse 173886            wait 2503887            gumpclose 24242931733888            wait 5003889 3890            if skill 'magery' >= 60 and hp < maxhp and mana >= 11 and not casting3891                while hp < maxhp3892                    cast 'greater heal'3893                    settimer AntiStallTimer 03894 3895                    while not targetexists and timer AntiStallTimer < 25003896                        if timer AntiStallTimer > 25003897                            settimer AntiStallTimer 03898                            break3899                        endif3900                        wait 1003901                    endwhile3902 3903                    target 'self'3904                    wait 5003905                endwhile3906            endif3907 3908            if findtype "storage shelf" ground -1 -1 2 as shelf3909                menu shelf 13910                wait 5003911            endif3912 3913            if find maininventorybag self3914                dclick maininventorybag3915                wait 5003916            endif3917 3918            if findtype 'alchemists satchel' self as BagofPot3919                dclick BagofPot3920                wait 5003921            endif3922 3923            if findtype 'reagent satchel' self as WizardBag3924                dclick WizardBag3925                wait 5003926            endif3927 3928            if find grabbag self3929                dclick grabbag3930                wait 5003931            endif3932 3933            clearignore3934            @setvar! IHAVEDIED 03935            overhead '[ RESET COMPLETE! ]' 693936            wait 5003937        endif3938 3939        if EnableUsePotionKegs = 1 and findtype 'empty bottle%s%' self and findtype 'keg' self and timer 'PotionKegPVPCooldown' > 300003940            @setvar! PotionStockCheck 03941 3942            while PotionStockCheck < 8 and findtype 'empty bottle%s%' self3943 3944                if PotionStockCheck = 03945                    if HealingPotionAmount = 03946                        @setvar! PotionStockCheck 13947                    else3948                        @setvar! PotionType 38523949                        @setvar! KegColour 2533950                        @setvar! PotionAmounttoFill HealingPotionAmount3951                        @setvar! PotionStockCheck 13952                    endif3953                elseif PotionStockCheck = 13954                    if CurePotionAmount = 03955                         @setvar! PotionStockCheck 23956                    else3957                        @setvar! PotionType 38473958                        @setvar! KegColour 443959                        @setvar! PotionAmounttoFill CurePotionAmount3960                        @setvar! PotionStockCheck 23961                    endif3962                elseif PotionStockCheck = 23963                    if RefreshPotionAmount = 03964                        @setvar! PotionStockCheck 33965                    else3966                        @setvar! PotionType 38513967                        @setvar! KegColour 373968                        @setvar! PotionAmounttoFill RefreshPotionAmount3969                        @setvar! PotionStockCheck 33970                    endif3971                elseif PotionStockCheck = 33972                    if StrengthPotionAmount = 03973                        @setvar! PotionStockCheck 43974                    else3975                        @setvar! PotionType 38493976                        @setvar! KegColour 9563977                        @setvar! PotionAmounttoFill StrengthPotionAmount3978                        @setvar! PotionStockCheck 43979                    endif3980                elseif PotionStockCheck = 43981                    if AgilityPotionAmount = 03982                        @setvar! PotionStockCheck 53983                    else3984                        @setvar! PotionType 38483985                        @setvar! KegColour 933986                        @setvar! PotionAmounttoFill AgilityPotionAmount3987                        @setvar! PotionStockCheck 53988                    endif3989                elseif PotionStockCheck = 53990                    if ResistPotionAmount = 03991                        @setvar! PotionStockCheck 63992                    else3993                        @setvar! PotionType 38463994                        @setvar! KegColour 11093995                        @setvar! PotionAmounttoFill ResistPotionAmount3996                        @setvar! PotionStockCheck 63997                    endif3998                elseif PotionStockCheck = 63999                    if PoisonPotionAmount = 04000                        @setvar! PotionStockCheck 74001                    else4002                        @setvar! PotionType 38504003                        @setvar! KegColour 3634004                        @setvar! PotionAmounttoFill PoisonPotionAmount4005                        @setvar! PotionStockCheck 74006                    endif4007                elseif PotionStockCheck = 74008                    if ExplosionPotionAmount = 04009                        @setvar! PotionStockCheck 84010                    else4011                        @setvar! PotionType 38534012                        @setvar! KegColour 4194013                        @setvar! PotionAmounttoFill ExplosionPotionAmount4014                        @setvar! PotionStockCheck 84015                    endif4016                else4017                    break4018                endif4019 4020                while counttype PotionType self < PotionAmounttoFill4021                    if not findtype 'empty bottle%s%' self4022                        if EnableAutoRecallOverheadMessages = 1 and timer 'PotionKegTimer' > 50004023                            overhead '[ NO EMPTY BOTTLES... ]' 3374024                            settimer 'PotionKegTimer' 04025                        endif4026                        break4027                    endif4028 4029                    if diffhits > HealPotionHPdiff4030                        break4031                    endif4032 4033                    if findtype 'keg' self KegColour as myKeg4034                        dclick myKeg4035                        wait 2504036                        if EnableAutoRecallOverheadMessages = 14037                            if timer 'PotionKegTimer' > 20004038                                overhead '[ FILLING POTS... ]' KegColour4039                                settimer 'PotionKegTimer' 04040                            endif4041                        endif4042                    else4043                        if EnableAutoRecallOverheadMessages = 1 and timer 'PotionKegTimer' > 50004044                            overhead '[ NO KEG TO USE... ]' KegColour4045                            settimer 'PotionKegTimer' 04046                        endif4047                        break4048                    endif4049                    if insysmsg "You have been in combat with another player"4050                        settimer "PotionKegPVPCooldown" 04051                        break4052                    endif4053                endwhile4054 4055                if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self4056                    if EnableAutoRecallOverheadMessages = 1 and timer 'PotionKegTimer' > 50004057                        overhead '[ NO EMPTY BOTTLES... ]' 3374058                        settimer 'PotionKegTimer' 04059                    endif4060                    break4061                endif4062            endwhile4063        endif4064 4065        if EnableReagentSplitter = 14066            if findtype "reagent satchel" self as MyWizardBag4067                while findtype "reagent satchel" self as MyWizardBag4068                    getlabel MyWizardBag MyWizardBaglabel4069                    wait 5004070                    if "decorative" in MyWizardBaglabel4071                        @ignore MyWizardBag4072                        wait 5004073                    else4074                        break4075                    endif4076                endwhile4077 4078                dclick MyWizardBag4079                wait 5004080 4081                if EnableAutoRecallOverheadMessages = 14082                    overhead '[ SPLITTING REGS... ]' 23384083                endif4084 4085                # Spiders Silk4086                @setvar! ReagentStack 04087                @setvar! ReagentSerial 39814088                @setvar! ReagentCount 04089 4090                while findtype ReagentSerial self as regs4091                    @setvar! ReagentCount index4092                    @ignore regs4093                endwhile4094 4095                @clearignore4096 4097                if counttype ReagentSerial self <= 104098                    @setvar! ReagentStack 24099                elseif counttype ReagentSerial self <= 204100                    @setvar! ReagentStack 44101                elseif counttype ReagentSerial self <= 504102                    @setvar! ReagentStack 104103                elseif counttype ReagentSerial self <= 1004104                    @setvar! ReagentStack 204105                elseif counttype ReagentSerial self <= 1504106                    @setvar! ReagentStack 304107                elseif counttype ReagentSerial self <= 2004108                    @setvar! ReagentStack 404109                else4110                    @setvar! ReagentStack 504111                endif4112 4113                while findtype ReagentSerial self as regs4114                    @setvar! moveRegs 04115 4116                    if ReagentCount = 04117                        @setvar! moveRegs 14118                    elseif ReagentCount != 0 and not find regs MyWizardBag4119                        @setvar! moveRegs 14120                    endif4121 4122                    if moveRegs = 14123                        if index = 04124                            lift regs ReagentStack4125                            drop MyWizardBag 44 65 04126                            wait 1504127                        elseif index = 14128                            lift regs ReagentStack4129                            drop MyWizardBag 68 65 04130                            wait 1504131                        elseif index = 24132                            lift regs ReagentStack4133                            drop MyWizardBag 96 65 04134                            wait 1504135                        elseif index = 34136                            lift regs ReagentStack4137                            drop MyWizardBag 121 65 04138                            wait 1504139                        else4140                            lift regs ReagentStack4141                            drop MyWizardBag 142 65 04142                            wait 1504143                        endif4144                    endif4145 4146                    @ignore regs4147 4148                    if moveRegs = 14149                        wait 5004150                    endif4151                endwhile4152 4153                if EnableAutoRecallOverheadMessages = 14154                    overhead '[ SPLITTING REGS... ]' 34155                endif4156 4157                # Black Pearl4158                @setvar! ReagentSerial 39624159                @setvar! ReagentCount 04160 4161                while findtype ReagentSerial self as regs4162                    @setvar! ReagentCount index4163                    @ignore regs4164                endwhile4165 4166                @clearignore4167 4168                if counttype ReagentSerial self <= 104169                    @setvar! ReagentStack 24170                elseif counttype ReagentSerial self <= 204171                    @setvar! ReagentStack 44172                elseif counttype ReagentSerial self <= 504173                    @setvar! ReagentStack 104174                elseif counttype ReagentSerial self <= 1004175                    @setvar! ReagentStack 204176                elseif counttype ReagentSerial self <= 1504177                    @setvar! ReagentStack 304178                elseif counttype ReagentSerial self <= 2004179                    @setvar! ReagentStack 404180                else4181                    @setvar! ReagentStack 504182                endif4183 4184                while findtype ReagentSerial self as regs4185                    @setvar! moveRegs 04186 4187                    if ReagentCount = 04188                        @setvar! moveRegs 14189                    elseif ReagentCount != 0 and not find regs MyWizardBag4190                        @setvar! moveRegs 14191                    endif4192 4193                    if moveRegs = 14194                        if index = 04195                            lift regs ReagentStack4196                            drop MyWizardBag 44 76 04197                            wait 1504198                        elseif index = 14199                            lift regs ReagentStack4200                            drop MyWizardBag 68 76 04201                            wait 1504202                        elseif index = 24203                            lift regs ReagentStack4204                            drop MyWizardBag 96 76 04205                            wait 1504206                        elseif index = 34207                            lift regs ReagentStack4208                            drop MyWizardBag 121 76 04209                            wait 1504210                        else4211                            lift regs ReagentStack4212                            drop MyWizardBag 142 76 04213                            wait 1504214                        endif4215                    endif4216 4217                    @ignore regs4218 4219                    if moveRegs = 14220                        wait 5004221                    endif4222                endwhile4223 4224                if EnableAutoRecallOverheadMessages = 14225                    overhead '[ SPLITTING REGS... ]' 3634226                endif4227 4228                # Nightshade4229                @setvar! ReagentSerial 39764230                @setvar! ReagentCount 04231 4232                while findtype ReagentSerial self as regs4233                    @setvar! ReagentCount index4234                    @ignore regs4235                endwhile4236 4237                @clearignore4238 4239                if counttype ReagentSerial self <= 104240                    @setvar! ReagentStack 24241                elseif counttype ReagentSerial self <= 204242                    @setvar! ReagentStack 44243                elseif counttype ReagentSerial self <= 504244                    @setvar! ReagentStack 104245                elseif counttype ReagentSerial self <= 1004246                    @setvar! ReagentStack 204247                elseif counttype ReagentSerial self <= 1504248                    @setvar! ReagentStack 304249                elseif counttype ReagentSerial self <= 2004250                    @setvar! ReagentStack 404251                else4252                    @setvar! ReagentStack 504253                endif4254 4255                while findtype ReagentSerial self as regs4256                    @setvar! moveRegs 04257 4258                    if ReagentCount = 04259                        @setvar! moveRegs 14260                    elseif ReagentCount != 0 and not find regs MyWizardBag4261                        @setvar! moveRegs 14262                    endif4263 4264                    if moveRegs = 14265                        if index = 04266                            lift regs ReagentStack4267                            drop MyWizardBag 44 88 04268                            wait 1504269                        elseif index = 14270                            lift regs ReagentStack4271                            drop MyWizardBag 68 88 04272                            wait 1504273                        elseif index = 24274                            lift regs ReagentStack4275                            drop MyWizardBag 96 88 04276                            wait 1504277                        elseif index = 34278                            lift regs ReagentStack4279                            drop MyWizardBag 121 88 04280                            wait 1504281                        else4282                            lift regs ReagentStack4283                            drop MyWizardBag 142 88 04284                            wait 1504285                        endif4286                    endif4287 4288                    @ignore regs4289 4290                    if moveRegs = 14291                        wait 5004292                    endif4293                endwhile4294 4295                if EnableAutoRecallOverheadMessages = 14296                    overhead '[ SPLITTING REGS... ]' 4424297                endif4298 4299                # Mandrake Root4300                @setvar! ReagentSerial 39744301                @setvar! ReagentCount 04302 4303                while findtype ReagentSerial self as regs4304                    @setvar! ReagentCount index4305                    @ignore regs4306                endwhile4307                @clearignore4308 4309                if counttype ReagentSerial self <= 104310                    @setvar! ReagentStack 24311                elseif counttype ReagentSerial self <= 204312                    @setvar! ReagentStack 44313                elseif counttype ReagentSerial self <= 504314                    @setvar! ReagentStack 104315                elseif counttype ReagentSerial self <= 1004316                    @setvar! ReagentStack 204317                elseif counttype ReagentSerial self <= 1504318                    @setvar! ReagentStack 304319                elseif counttype ReagentSerial self <= 2004320                    @setvar! ReagentStack 404321                else4322                    @setvar! ReagentStack 504323                endif4324 4325                while findtype ReagentSerial self as regs4326                    @setvar! moveRegs 04327 4328                    if ReagentCount = 04329                        @setvar! moveRegs 14330                    elseif ReagentCount != 0 and not find regs MyWizardBag4331                        @setvar! moveRegs 14332                    endif4333 4334                    if moveRegs = 14335                        if index = 04336                            lift regs ReagentStack4337                            drop MyWizardBag 44 100 04338                            wait 1504339                        elseif index = 14340                            lift regs ReagentStack4341                            drop MyWizardBag 68 100 04342                            wait 1504343                        elseif index = 24344                            lift regs ReagentStack4345                            drop MyWizardBag 96 100 04346                            wait 1504347                        elseif index = 34348                            lift regs ReagentStack4349                            drop MyWizardBag 121 100 04350                            wait 1504351                        else4352                            lift regs ReagentStack4353                            drop MyWizardBag 142 100 04354                            wait 1504355                        endif4356                    endif4357 4358                    @ignore regs4359 4360                    if moveRegs = 14361                        wait 5004362                    endif4363                endwhile4364 4365                if EnableAutoRecallOverheadMessages = 14366                    overhead '[ SPLITTING REGS... ]' 1534367                endif4368 4369                # Sulfurous Ash4370                @setvar! ReagentSerial 39804371                @setvar! ReagentCount 04372 4373                while findtype ReagentSerial self as regs4374                    @setvar! ReagentCount index4375                    @ignore regs4376                endwhile4377 4378                @clearignore4379 4380                if counttype ReagentSerial self <= 104381                    @setvar! ReagentStack 24382                elseif counttype ReagentSerial self <= 204383                    @setvar! ReagentStack 44384                elseif counttype ReagentSerial self <= 504385                    @setvar! ReagentStack 104386                elseif counttype ReagentSerial self <= 1004387                    @setvar! ReagentStack 204388                elseif counttype ReagentSerial self <= 1504389                    @setvar! ReagentStack 304390                elseif counttype ReagentSerial self <= 2004391                    @setvar! ReagentStack 404392                else4393                    @setvar! ReagentStack 504394                endif4395 4396                while findtype ReagentSerial self as regs4397                    @setvar! moveRegs 04398 4399                    if ReagentCount = 04400                        @setvar! moveRegs 14401                    elseif ReagentCount != 0 and not find regs MyWizardBag4402                        @setvar! moveRegs 14403                    endif4404 4405                    if moveRegs = 14406                        if index = 04407                            lift regs ReagentStack4408                            drop MyWizardBag 44 112 04409                            wait 1504410                        elseif index = 14411                            lift regs ReagentStack4412                            drop MyWizardBag 68 112 04413                            wait 1504414                        elseif index = 24415                            lift regs ReagentStack4416                            drop MyWizardBag 96 112 04417                            wait 1504418                        elseif index = 34419                            lift regs ReagentStack4420                            drop MyWizardBag 121 112 04421                            wait 1504422                        else4423                            lift regs ReagentStack4424                            drop MyWizardBag 142 112 04425                            wait 1504426                        endif4427                    endif4428 4429                    @ignore regs4430 4431                    if moveRegs = 14432                        wait 5004433                    endif4434                endwhile4435 4436                if EnableAutoRecallOverheadMessages = 14437                    overhead '[ SPLITTING REGS... ]' 2474438                endif4439 4440                # Giseng4441                @setvar! ReagentSerial 39734442                @setvar! ReagentCount 04443 4444                while findtype ReagentSerial self as regs4445                    @setvar! ReagentCount index4446                    @ignore regs4447                endwhile4448 4449                @clearignore4450 4451                if counttype ReagentSerial self <= 104452                    @setvar! ReagentStack 24453                elseif counttype ReagentSerial self <= 204454                    @setvar! ReagentStack 44455                elseif counttype ReagentSerial self <= 504456                    @setvar! ReagentStack 104457                elseif counttype ReagentSerial self <= 1004458                    @setvar! ReagentStack 204459                elseif counttype ReagentSerial self <= 1504460                    @setvar! ReagentStack 304461                elseif counttype ReagentSerial self <= 2004462                    @setvar! ReagentStack 404463                else4464                    @setvar! ReagentStack 504465                endif4466 4467                while findtype ReagentSerial self as regs4468                    @setvar! moveRegs 04469 4470                    if ReagentCount = 04471                        @setvar! moveRegs 14472                    elseif ReagentCount != 0 and not find regs MyWizardBag4473                        @setvar! moveRegs 14474                    endif4475 4476                    if moveRegs = 14477                        if index = 04478                            lift regs ReagentStack4479                            drop MyWizardBag 44 124 04480                            wait 1504481                        elseif index = 14482                            lift regs ReagentStack4483                            drop MyWizardBag 68 124 04484                            wait 1504485                        elseif index = 24486                            lift regs ReagentStack4487                            drop MyWizardBag 96 124 04488                            wait 1504489                        elseif index = 34490                            lift regs ReagentStack4491                            drop MyWizardBag 121 124 04492                            wait 1504493                        else4494                            lift regs ReagentStack4495                            drop MyWizardBag 142 124 04496                            wait 1504497                        endif4498                    endif4499 4500                    @ignore regs4501 4502                    if moveRegs = 14503                        wait 5004504                    endif4505                endwhile4506 4507                if EnableAutoRecallOverheadMessages = 14508                    overhead '[ SPLITTING REGS... ]' 334509                endif4510 4511                # Bloodmoss4512                @setvar! ReagentSerial 39634513                @setvar! ReagentCount 04514 4515                while findtype ReagentSerial self as regs4516                    @setvar! ReagentCount index4517                    @ignore regs4518                endwhile4519 4520                @clearignore4521 4522                if counttype ReagentSerial self <= 104523                    @setvar! ReagentStack 24524                elseif counttype ReagentSerial self <= 204525                    @setvar! ReagentStack 44526                elseif counttype ReagentSerial self <= 504527                    @setvar! ReagentStack 104528                elseif counttype ReagentSerial self <= 1004529                    @setvar! ReagentStack 204530                elseif counttype ReagentSerial self <= 1504531                    @setvar! ReagentStack 304532                elseif counttype ReagentSerial self <= 2004533                    @setvar! ReagentStack 404534                else4535                    @setvar! ReagentStack 504536                endif4537 4538                while findtype ReagentSerial self as regs4539                    @setvar! moveRegs 04540 4541                    if ReagentCount = 04542                        @setvar! moveRegs 14543                    elseif ReagentCount != 0 and not find regs MyWizardBag4544                        @setvar! moveRegs 14545                    endif4546 4547                    if moveRegs = 14548                        if index = 04549                            lift regs ReagentStack4550                            drop MyWizardBag 44 136 04551                            wait 1504552                        elseif index = 14553                            lift regs ReagentStack4554                            drop MyWizardBag 68 136 04555                            wait 1504556                        elseif index = 24557                            lift regs ReagentStack4558                            drop MyWizardBag 96 136 04559                            wait 1504560                        elseif index = 34561                            lift regs ReagentStack4562                            drop MyWizardBag 121 136 04563                            wait 1504564                        else4565                            lift regs ReagentStack4566                            drop MyWizardBag 142 136 04567                            wait 1504568                        endif4569                    endif4570 4571                    @ignore regs4572 4573                    if moveRegs = 14574                        wait 5004575                    endif4576                endwhile4577 4578                if EnableAutoRecallOverheadMessages = 14579                    overhead '[ SPLITTING REGS... ]' 6464580                endif4581 4582                # Garlic4583                @setvar! ReagentSerial 39724584                @setvar! ReagentCount 04585 4586                while findtype ReagentSerial self as regs4587                    @setvar! ReagentCount index4588                    @ignore regs4589                endwhile4590 4591                @clearignore4592 4593                if counttype ReagentSerial self <= 104594                    @setvar! ReagentStack 24595                elseif counttype ReagentSerial self <= 204596                    @setvar! ReagentStack 44597                elseif counttype ReagentSerial self <= 504598                    @setvar! ReagentStack 104599                elseif counttype ReagentSerial self <= 1004600                    @setvar! ReagentStack 204601                elseif counttype ReagentSerial self <= 1504602                    @setvar! ReagentStack 304603                elseif counttype ReagentSerial self <= 2004604                    @setvar! ReagentStack 404605                else4606                    @setvar! ReagentStack 504607                endif4608 4609                while findtype ReagentSerial self as regs4610                    @setvar! moveRegs 04611 4612                    if ReagentCount = 04613                        @setvar! moveRegs 14614                    elseif ReagentCount != 0 and not find regs MyWizardBag4615                        @setvar! moveRegs 14616                    endif4617 4618                    if moveRegs = 14619                        if index = 04620                            lift regs ReagentStack4621                            drop MyWizardBag 44 148 04622                            wait 1504623                        elseif index = 14624                            lift regs ReagentStack4625                            drop MyWizardBag 68 148 04626                            wait 1504627                        elseif index = 24628                            lift regs ReagentStack4629                            drop MyWizardBag 96 148 04630                            wait 1504631                        elseif index = 34632                            lift regs ReagentStack4633                            drop MyWizardBag 121 148 04634                            wait 1504635                        else4636                            lift regs ReagentStack4637                            drop MyWizardBag 142 148 04638                            wait 1504639                        endif4640                    endif4641 4642                    @ignore regs4643 4644                    if moveRegs = 14645                        wait 5004646                    endif4647                endwhile4648            else4649                if EnableAutoRecallOverheadMessages = 14650                    overhead '[ NO WIZARD BAG! ]' 3374651                    wait 5004652                endif4653            endif4654        endif4655        overhead '[ SCRIPT COMPLETE! ]' 884656        hotkey "Organizer Agent-01"4657        @setvar! IHAVEDIED 04658        @setvar! DisableVacuums 04659        @setvar! RedTargetFound 04660        stop4661    endif4662 4663    //////////////////////////4664    //   END AUTO RECALL    //4665    //////////////////////////4666 4667 4668    ////////////////////////4669    //      CHECKS:       //4670    ////////////////////////4671 4672    if EnableTrackingAutoRecall = 1 and AttackModeActive != 24673        if PKTrackingRange = 604674            if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"4675                hotkey 'Toggle Peace Only'4676                if EnableRedAlertOverhead = 14677                    overhead '[ !! RED ALERT !! ]' 374678                endif4679                @setvar! RedTargetFound 14680                clearsysmsg4681                replay4682            endif4683        elseif PKTrackingRange = 504684            if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"4685                hotkey 'Toggle Peace Only'4686                if EnableRedAlertOverhead = 14687                    overhead '[ !! RED ALERT !! ]' 374688                endif4689                @setvar! RedTargetFound 14690                clearsysmsg4691                replay4692            endif4693        elseif PKTrackingRange = 404694            if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"4695                hotkey 'Toggle Peace Only'4696                if EnableRedAlertOverhead = 14697                    overhead '[ !! RED ALERT !! ]' 374698                endif4699                @setvar! RedTargetFound 14700                clearsysmsg4701                replay4702            endif4703        elseif PKTrackingRange = 04704            if insysmsg "Now tracking"4705                hotkey 'Toggle Peace Only'4706                if EnableRedAlertOverhead = 14707                    overhead '[ !! RED ALERT !! ]' 374708                endif4709                @setvar! RedTargetFound 14710                clearsysmsg4711                replay4712            endif4713        endif4714    endif4715 4716    if EnablePKradar = 1 and AttackModeActive != 24717        if timer "PKRadarTimer" > 15004718            clearsysmsg4719            hotkey 'Next Murderer Player Target'4720            wait 2504721            if insysmsg "No one matching that was found"4722                settimer "PKRadarTimer" 04723                clearsysmsg4724            else4725                hotkey 'Toggle Peace Only'4726                @setvar! RedTargetFound 14727                @setvar! TimeToGo 14728                @setvar! MurdererTarget lasttarget4729                replay4730            endif4731        endif4732    endif4733 4734    if dead4735        break4736    endif4737 4738    if EnableEatingFood = 1 and AttackModeActive != 24739        if not findbuff 'food satisfaction'4740            if findtype "tray" self as Food4741                if EnableOverheadMessages = 14742                    overhead '[ EATING FOOD... ]' 884743                endif4744                dclick Food4745                wait 2504746            else4747                if timer EatFoodMessageTimer > 40004748                    if EnableOverheadMessages = 14749                        overhead '[ NO FOOD FOUND ]' 3374750                        settimer EatFoodMessageTimer 04751                    endif4752                endif4753            endif4754        endif4755    endif4756 4757    if EnableGoldVacuum = 1 and DisableVacuums != 1 and AttackModeActive != 24758        if findtype "gold coin" ground -1 -1 15 as droppedmoney and timer "GoldRadar" > 35004759            overhead " � " 149 droppedmoney4760            settimer "GoldRadar" 04761        endif4762 4763        while findtype "gold coin" ground -1 -1 2 as droppedmoney and diffhits < CastGreaterHealHPdiff4764            overhead " � " 1494765            hotkey "Grab Item"4766            wft 25004767            target droppedmoney4768            wait 2504769 4770            if dead4771                break4772            endif4773 4774            if diffhits >= CastGreaterHealHPdiff4775                @setvar! AttackModeActive 14776                break4777            endif4778 4779            if insysmsg "Invalid or inaccessible item"4780                wait 5004781                @ignore droppedmoney4782            endif4783            wait 2504784        endwhile4785    endif4786 4787    if EnableDungeonCleanup = 1 and diffhits < CastGreaterHealHPdiff and AttackModeActive != 24788        while findtype "iron ingot%s|board%s|cut up leather|3972|3962|3963|3980|3976|3973|3974|3981" ground -1 -1 2 as item4789            if EnableOverheadMessages = 14790                if timer "DungeonCleanup" > 15004791                    overhead '[ CLEANUP... ]' 4204792                    settimer "DungeonCleanup" 04793                endif4794            else4795                if timer "DungeonCleanup" > 15004796                    overhead ' � ' 4204797                    settimer "DungeonCleanup" 04798                endif4799            endif4800 4801            hotkey "Grab Item"4802            wft 10004803            target item4804            wait 5004805 4806            if dead4807                break4808            endif4809 4810            if diffhits >= CastGreaterHealHPdiff4811                @setvar! AttackModeActive 14812                break4813            endif4814        endwhile4815 4816        if findtype "iron ingot%s|board%s|cut up leather|3972|3962|3963|3980|3976|3973|3974|3981" ground -1 -1 15 as dungeonjunk and timer "DungeonCleanupRadar" > 35004817            overhead "�" 420 dungeonjunk4818            settimer "DungeonCleanupRadar" 04819        endif4820    endif4821 4822    if counttype 29012 self = 0 and EnableMagicMushroomMaker = 1 and AttackModeActive != 24823        while counttype 29012 self < MakeMushroomAmount and mana > 3 and diffhits < CastGreaterHealHPdiff4824            if timer 'MushroomMakerTimer' > 45004825                overhead '[ MAKING SHROOMS... ]' 4194826                settimer 'MushroomMakerTimer' 04827            endif4828 4829            if not casting4830                cast 'create food'4831                wait 5004832            endif4833 4834            if diffhits > CastGreaterHealHPdiff4835                break4836            endif4837        endwhile4838    endif4839 4840    if TotalSummonCount > 54841        overhead '[ ERROR! ]' 374842        sysmsg "Error Max Followers > 5:  Check your followers settings!" 2534843        wait 25004844        overhead '[ STOPPING SCRIPT! ]' 884845        sysmsg "Stopping script..." 04846        stop4847    endif4848 4849    if timer 'OrganizerAgentTimer' > 30000 and AttackModeActive != 24850        hotkey "Organizer Agent-01"4851        settimer 'OrganizerAgentTimer' 04852    endif4853 4854    if EnableEatMagicMushrooms = 14855        if diffmana > EatMushroomManadiff and timer MushroomTimer > 600004856            if counttype 29012 backpack4857                dclicktype 29012 backpack4858                getlabel backpack packdesc4859                wait 2504860                if insysmsg "You consume a magic mushroom"4861                    settimer MushroomTimer 04862                    cooldown "Mushroom" 600004863                    if EnableOverheadMessages = 14864                        overhead '[ EATING SHROOMS... ]' 134865                    endif4866                endif4867            elseif EnableOverheadMessages = 14868                overhead '[ OUT OF SHROOMS! ]' 3374869            endif4870        endif4871    endif4872 4873    if EnableSpellbookCheck = 1 and not findtype "spellbook" hand4874        if findtype "spellbook" self as mySpellbook4875            for 54876            if findtype "spellbook" self as mySpellbook4877                getlabel mySpellbook mySpellbooklabel4878                wait 2504879                if "aspect" in mySpellbooklabel4880                    break4881                elseif "unidentified" in mySpellbooklabel4882                    ignore mySpellbook4883                elseif "[blessed" in mySpellbooklabel4884                    ignore mySpellbook4885                elseif "spells" in mySpellbooklabel4886                    ignore mySpellbook4887                else4888                    break4889                endif4890            endif4891            endfor4892            dclick mySpellbook4893            clearignore4894            wait 5004895        else4896            if timer "SpellbookCheck" > 5000 and EnableOverheadMessages = 14897                overhead '[ NO SPELLBOOK! ]' 3374898                settimer "SpellbookCheck" 04899            endif4900        endif4901    endif4902 4903    if EnableAutoCrookCheck = 14904        if skill 'herding' > 50 and timer CrookCheckTimer > 100004905            if findtype "shepherd's crook" self4906                # '4907                if listexists CrooksToUnignore4908                    removelist CrooksToUnignore4909                endif4910                createlist CrooksToUnignore4911                for 54912                if findtype "shepherd's crook" self as myCrook4913                    # '4914                    getlabel myCrook crooklabel4915                    wait 2504916                    if 'activated' in crooklabel4917                        break4918                    elseif 'unidentified' in crooklabel4919                        pushlist CrooksToUnignore myCrook4920                        @ignore myCrook4921                    else4922                        if followers > 04923                            if EnableOverheadMessages = 14924                                overhead "[ ACTIVATING CROOK! ]" 21144925                            else4926                                overhead "*crook activated*" 21144927                            endif4928                            dclick myCrook4929                            wait 2504930                            break4931                        endif4932                    endif4933                    wait 2504934                endif4935                endfor4936                foreach CrookToUnignore in CrooksToUnignore4937                    @unignore CrookToUnignore4938                endfor4939                removelist CrooksToUnignore4940            elseif not findtype "shepherd's crook" self4941                # '4942                if EnableOverheadMessages != 04943                    if timer CrookCheckOverheadTimer > 150004944                        overhead "[ NO CROOK FOUND! ]" 3374945                        settimer CrookCheckOverheadTimer 04946                    endif4947                endif4948            endif4949            settimer CrookCheckTimer 04950        endif4951    endif4952 4953    if EnableAutoCarving = 1 and findtype 11552 self and AttackModeActive != 24954        while findtype "corpse" ground -1 -1 2 as deadbody and diffhits < CastGreaterHealHPdiff4955            settimer SkinningTimeoutTimer 04956            if findtype 11552 self4957                if targetexists4958                    hotkey 'cancel current target'4959                endif4960 4961                while not targetexists4962                    skill 'forensicevaluation'4963                    getlabel backpack backpacklabel4964                endwhile4965 4966                clearsysmsg4967 4968                if targetexists and find deadbody ground -1 -1 24969                    target 'self'4970                    @ignore deadbody4971                    getlabel backpack backpacklabel4972                endif4973 4974                if insysmsg "You dont see anything nearby"4975                    clearsysmsg4976                    break4977                else4978                    if EnableOverheadMessages = 1 and timer SkinningTimer > 30004979                        overhead '[ SKINNING... ]' 3334980                        settimer SkinningTimer 04981                    endif4982                    break4983                endif4984            else4985                if EnableOverheadMessages = 1 and timer SkinningTimer > 150004986                    overhead '[ NO SKINNING KNIFE ]' 3374987                    settimer SkinningTimer 04988                    break4989                endif4990            endif4991 4992            if timer SkinningTimeoutTimer > 1500 or diffhits > CastGreaterHealHPdiff4993                break4994            endif4995        endwhile4996    endif4997 4998    if targetexists4999        if findtype " Elven Spellblade" self5000            targettype "Elven Spellblade"5001        else5002            hotkey 'Cancel current target'5003        endif5004    endif5005 5006    if EnableUsePotionKegs = 1 and findtype 'empty bottle%s%' self and findtype 'keg' self and timer 'PotionKegPVPCooldown' > 30000 and AttackModeActive != 25007        @setvar! PotionStockCheck 05008 5009        while PotionStockCheck < 8 and findtype 'empty bottle%s%' self5010 5011            if PotionStockCheck = 05012                if HealingPotionAmount = 05013                    @setvar! PotionStockCheck 15014                else5015                    @setvar! PotionType 38525016                    @setvar! KegColour 2535017                    @setvar! PotionAmounttoFill HealingPotionAmount5018                    @setvar! PotionStockCheck 15019                endif5020            elseif PotionStockCheck = 15021                if CurePotionAmount = 05022                     @setvar! PotionStockCheck 25023                else5024                    @setvar! PotionType 38475025                    @setvar! KegColour 445026                    @setvar! PotionAmounttoFill CurePotionAmount5027                    @setvar! PotionStockCheck 25028                endif5029            elseif PotionStockCheck = 25030                if RefreshPotionAmount = 05031                    @setvar! PotionStockCheck 35032                else5033                    @setvar! PotionType 38515034                    @setvar! KegColour 375035                    @setvar! PotionAmounttoFill RefreshPotionAmount5036                    @setvar! PotionStockCheck 35037                endif5038            elseif PotionStockCheck = 35039                if StrengthPotionAmount = 05040                    @setvar! PotionStockCheck 45041                else5042                    @setvar! PotionType 38495043                    @setvar! KegColour 9565044                    @setvar! PotionAmounttoFill StrengthPotionAmount5045                    @setvar! PotionStockCheck 45046                endif5047            elseif PotionStockCheck = 45048                if AgilityPotionAmount = 05049                    @setvar! PotionStockCheck 55050                else5051                    @setvar! PotionType 38485052                    @setvar! KegColour 935053                    @setvar! PotionAmounttoFill AgilityPotionAmount5054                    @setvar! PotionStockCheck 55055                endif5056            elseif PotionStockCheck = 55057                if ResistPotionAmount = 05058                    @setvar! PotionStockCheck 65059                else5060                    @setvar! PotionType 38465061                    @setvar! KegColour 11095062                    @setvar! PotionAmounttoFill ResistPotionAmount5063                    @setvar! PotionStockCheck 65064                endif5065            elseif PotionStockCheck = 65066                if PoisonPotionAmount = 05067                    @setvar! PotionStockCheck 75068                else5069                    @setvar! PotionType 38505070                    @setvar! KegColour 3635071                    @setvar! PotionAmounttoFill PoisonPotionAmount5072                    @setvar! PotionStockCheck 75073                endif5074            elseif PotionStockCheck = 75075                if ExplosionPotionAmount = 05076                    @setvar! PotionStockCheck 85077                else5078                    @setvar! PotionType 38535079                    @setvar! KegColour 4195080                    @setvar! PotionAmounttoFill ExplosionPotionAmount5081                    @setvar! PotionStockCheck 85082                endif5083            else5084                break5085            endif5086 5087            while counttype PotionType self < PotionAmounttoFill5088                if not findtype 'empty bottle%s%' self5089                    if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50005090                        overhead '[ NO EMPTY BOTTLES... ]' 3375091                        settimer 'PotionKegTimer' 05092                    endif5093                    break5094                endif5095 5096                if diffhits > HealPotionHPdiff5097                    break5098                endif5099 5100                if findtype 'keg' self KegColour as myKeg5101                    dclick myKeg5102                    wait 2505103                    if EnableOverheadMessages = 15104                        if timer 'PotionKegTimer' > 20005105                            overhead '[ FILLING POTS... ]' KegColour5106                            settimer 'PotionKegTimer' 05107                        endif5108                    endif5109                else5110                    if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50005111                        overhead '[ NO KEG TO USE... ]' KegColour5112                        settimer 'PotionKegTimer' 05113                    endif5114                    break5115                endif5116                if insysmsg "You have been in combat with another player"5117                    settimer "PotionKegPVPCooldown" 05118                    break5119                endif5120            endwhile5121 5122            if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self5123                if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50005124                    overhead '[ NO EMPTY BOTTLES... ]' 3375125                    settimer 'PotionKegTimer' 05126                endif5127                break5128            endif5129        endwhile5130    endif5131 5132 5133    ////////////////////////5134    //  BEGIN SUMMONING:  //5135    ////////////////////////5136 5137    while warmode and followers < TotalSummonCount and diffhits < CastGreaterHealHPdiff and mana > 505138        @setvar! CastingWasInterrupted 05139 5140        if not warmode5141            break5142        endif5143 5144        if dead5145            break5146        endif5147 5148        if diffhits > CastGreaterHealHPdiff5149            break5150        endif5151 5152        if counttype 29012 self = 0 and EnableMagicMushroomMaker = 15153            while counttype 29012 self < MakeMushroomAmount and mana > 3 and diffhits < CastGreaterHealHPdiff5154                if timer 'MushroomMakerTimer' > 45005155                    overhead '[ MAKING SHROOMS... ]' 4195156                    settimer 'MushroomMakerTimer' 05157                endif5158                if not casting5159                    cast 'create food'5160                    wait 5005161                endif5162                if diffhits > CastGreaterHealHPdiff5163                    break5164                endif5165            endwhile5166        endif5167 5168        if EnableEatMagicMushrooms = 15169            if diffmana > EatMushroomManadiff and MakeMushroomAmount > 0 and timer MushroomTimer > 600005170                if counttype 29012 backpack5171                    dclicktype 29012 backpack5172                    getlabel backpack packdesc5173                    wait 2505174                    if insysmsg "You consume a magic mushroom"5175                        settimer MushroomTimer 05176                        cooldown "Mushroom" 600005177                        if EnableOverheadMessages = 15178                            overhead '[ EATING SHROOMS... ]' 135179                        else5180                            overhead '*eating shrooms...*' 135181                        endif5182                    endif5183                else5184                    if EnableOverheadMessages = 15185                        overhead '[ OUT OF SHROOMS! ]' 3375186                    endif5187                endif5188            endif5189        endif5190 5191        if EnableMeditation = 0 and mana < 505192            break5193        elseif EnableMeditation = 1 and mana < MeditateWhenManaBelow and not findbuff "meditating" and timer 'MeditationTimer' > 100005194            skill 'meditation'5195            getlabel backpack packdesc5196            wait 2505197            if not findbuff 'meditating'5198                settimer 'MeditationTimer' 75005199            elseif findbuff 'meditating'5200                hotkey 'Toggle Peace Only'5201                wait 2505202                settimer 'MeditationTimer' 05203                while mana < maxmana and diffhits < CastGreaterHealHPdiff5204                    if not findbuff 'meditating'5205                        hotkey 'Toggle War Only'5206                        break5207                    endif5208                    if mana > MeditateUntilManaReaches5209                        hotkey 'Toggle War Only'5210                        break5211                    endif5212                    if warmode on5213                        break5214                    endif5215                    if diffhits > CastGreaterHealHPdiff5216                        break5217                    endif5218                    if dead5219                        break5220                    endif5221                    if timer 'MeditationMessageTimer' > 40005222                        if EnableOverheadMessages = 15223                            overhead '[ MEDITATING... ]' 115224                        else5225                            overhead "*meditating*" 115226                        endif5227                        settimer 'MeditationMessageTimer' 05228                    endif5229                endwhile5230                if diffhits > CastGreaterHealHPdiff5231                    break5232                endif5233                if dead5234                    break5235                endif5236                if not warmode and TimeToGo != 15237                    hotkey 'Toggle War Only'5238                endif5239            endif5240        elseif EnableMeditation != 1 and mana < 505241            if timer MissingRegsTimer > 40005242                if EnableOverheadMessages != 05243                    overhead '[ WAITING FOR MANA... ]' 4205244                    settimer MissingRegsTimer 05245                endif5246            endif5247        endif5248 5249        if EnableSpellbookCheck = 1 and not findtype "spellbook" hand5250            if findtype "spellbook" self5251                for 55252                if findtype "spellbook" self as mySpellbook5253                    getlabel mySpellbook mySpellbooklabel5254                    wait 2505255                    if "aspect" in mySpellbooklabel5256                        break5257                    elseif "unidentified" in mySpellbooklabel5258                        ignore mySpellbook5259                    elseif "blessed" in mySpellbooklabel5260                        ignore mySpellbook5261                    elseif "spells" in mySpellbooklabel5262                        ignore mySpellbook5263                    else5264                        break5265                    endif5266                endif5267                endfor5268                dclick mySpellbook5269                clearignore5270                wait 2505271            else5272                if timer "SpellbookCheck" > 5000 and EnableOverheadMessages = 15273                    overhead '[ NO SPELLBOOK! ]' 3375274                    settimer "SpellbookCheck" 05275                endif5276            endif5277        endif5278 5279        if SummoningEarth = 1 and followers > 15280            while findtype 158|14 ground -1 -1 12 as MyPet5281                menu MyPet 15282                wait 5005283                if MyPet != EarthFirstEle and MyPet != EarthSecondEle5284                    hotkey 'cancel current target'5285                    if EarthFirstEle = 05286                        @setvar! EarthFirstEle MyPet5287                        if NameSummonedPets = 15288                            foreach myEleName in EarthEleAncientMummNamesList5289                                wait 2505290                                rename MyPet myEleName5291                                wait 5005292                                if insysmsg "That name is unacceptable"5293                                    sysmsg "Unable to name summon: {{myEleName}}" 345294                                    clearsysmsg5295                                    poplist EarthEleAncientMummNamesList "front"5296                                    wait 5005297                                else5298                                    if EnableOverheadMessages != 05299                                        overhead '[ NAME: {{myEleName}} ]' 69 MyPet5300                                    endif5301                                    wait 5005302                                    poplist EarthEleAncientMummNamesList "front"5303                                    break5304                                endif5305                            endfor5306                        else5307                            if EnableOverheadMessages != 05308                                overhead '[ EARTH ONE ]' 349 MyPet5309                            endif5310                            wait 5005311                        endif5312                    else5313                        @setvar! EarthSecondEle MyPet5314                        if NameSummonedPets = 15315                            foreach myEleName in EarthEleAncientMummNamesList5316                                wait 2505317                                rename MyPet myEleName5318                                wait 5005319                                if insysmsg "That name is unacceptable"5320                                    sysmsg "Unable to name summon: {{myEleName}}" 345321                                    clearsysmsg5322                                    poplist EarthEleAncientMummNamesList "front"5323                                    wait 5005324                                else5325                                    if EnableOverheadMessages != 05326                                        overhead '[ NAME: {{myEleName}} ]' 69 MyPet5327                                    endif5328                                    wait 5005329                                    poplist EarthEleAncientMummNamesList "front"5330                                    break5331                                endif5332                            endfor5333                        else5334                            if EnableOverheadMessages != 05335                                overhead '[ EARTH TWO ]' 349 MyPet5336                            endif5337                            wait 5005338                        endif5339                    endif5340                endif5341                @ignore MyPet5342                wait 2505343            endwhile5344            @unignore MyPet5345            @setvar! SummoningEarth 05346        elseif SummoningWater = 1 and followers > 15347            while findtype 740|16 ground -1 -1 12 as MyPet5348                menu MyPet 15349                wait 5005350                if MyPet != WaterFirstEle and MyPet != WaterSecondEle5351                    hotkey 'cancel current target'5352                    if WaterFirstEle = 05353                        @setvar! WaterFirstEle MyPet5354                        if NameSummonedPets = 15355                            foreach myEleName in WaterEleRagWitchNamesList5356                                wait 2505357                                rename MyPet myEleName5358                                wait 5005359                                if insysmsg "That name is unacceptable"5360                                    sysmsg "Unable to name summon: {{myEleName}}" 345361                                    clearsysmsg5362                                    poplist WaterEleRagWitchNamesList "front"5363                                    wait 5005364                                else5365                                    if EnableOverheadMessages != 05366                                        overhead '[ NAME: {{myEleName}} ]' 69 MyPet5367                                    endif5368                                    poplist WaterEleRagWitchNamesList "front"5369                                    break5370                                endif5371                            endfor5372                        else5373                            if EnableOverheadMessages != 05374                                overhead '[ WATER ONE ]' 93 MyPet5375                            endif5376                            wait 5005377                        endif5378                    else5379                        @setvar! WaterSecondEle MyPet5380                        if NameSummonedPets = 15381                            foreach myEleName in WaterEleRagWitchNamesList5382                                wait 2505383                                rename MyPet myEleName5384                                wait 5005385                                if insysmsg "That name is unacceptable"5386                                    sysmsg "Unable to name summon: {{myEleName}}" 345387                                    clearsysmsg5388                                    poplist WaterEleRagWitchNamesList "front"5389                                    wait 5005390                                else5391                                    if EnableOverheadMessages != 05392                                        overhead '[ NAME: {{myEleName}} ]' 69 MyPet5393                                    endif5394                                    wait 5005395                                    poplist WaterEleRagWitchNamesList "front"5396                                    break5397                                endif5398                            endfor5399                        else5400                            if EnableOverheadMessages != 05401                                overhead '[ WATER TWO ]' 93 MyPet5402                            endif5403                            wait 5005404                        endif5405                    endif5406                endif5407                @ignore MyPet5408                wait 2505409            endwhile5410            @unignore MyPet5411            @setvar! SummoningWater 05412        elseif SummoningAir = 1 and followers > 15413            while findtype 306|13 ground -1 -1 12 as MyPet5414                menu MyPet 15415                wait 5005416                if MyPet != AirFirstEle and MyPet != AirSecondEle5417                    hotkey 'cancel current target'5418                    if AirFirstEle = 05419                        @setvar! AirFirstEle MyPet5420                        if NameSummonedPets = 15421                            foreach myEleName in AirEleSkeleFiendNamesList5422                                wait 2505423                                rename MyPet myEleName5424                                wait 5005425                                if insysmsg "That name is unacceptable"5426                                    sysmsg "Unable to name summon: {{myEleName}}" 345427                                    clearsysmsg5428                                    poplist AirEleSkeleFiendNamesList "front"5429                                    wait 5005430                                else5431                                    if EnableOverheadMessages != 05432                                        overhead '[ NAME: {{myEleName}} ]' 69 MyPet5433                                    endif5434                                    wait 5005435                                    poplist AirEleSkeleFiendNamesList "front"5436                                    break5437                                endif5438                            endfor5439                        else5440                            if EnableOverheadMessages != 05441                                overhead '[ AIR ONE ]' 933 MyPet5442                            endif5443                            wait 5005444                        endif5445                    else5446                        @setvar! AirSecondEle MyPet5447                        if NameSummonedPets = 15448                            foreach myEleName in AirEleSkeleFiendNamesList5449                                wait 2505450                                rename MyPet myEleName5451                                wait 5005452                                if insysmsg "That name is unacceptable"5453                                    sysmsg "Unable to name summon: {{myEleName}}" 345454                                    clearsysmsg5455                                    poplist AirEleSkeleFiendNamesList "front"5456                                    wait 5005457                                else5458                                    if EnableOverheadMessages != 05459                                        overhead '[ NAME: {{myEleName}} ]' 69 MyPet5460                                    endif5461                                    wait 5005462                                    poplist AirEleSkeleFiendNamesList "front"5463                                    break5464                                endif5465                            endfor5466                        else5467                            if EnableOverheadMessages != 05468                                overhead '[ AIR TWO ]' 933 MyPet5469                            endif5470                            wait 5005471                        endif5472                    endif5473                endif5474                @ignore MyPet5475                wait 2505476            endwhile5477            @unignore MyPet5478            @setvar! SummoningAir 05479        elseif SummoningFire = 1 and followers > 15480            while findtype 24|15 ground -1 -1 12 as MyPet5481                menu MyPet 15482                wait 5005483                if MyPet != FireFirstEle and MyPet != FireSecondEle5484                    hotkey 'cancel current target'5485                    if FireFirstEle = 05486                        @setvar! FireFirstEle MyPet5487                        if NameSummonedPets = 15488                            foreach myEleName in FireEleLichNamesList5489                                wait 2505490                                rename MyPet myEleName5491                                wait 5005492                                if insysmsg "That name is unacceptable"5493                                    sysmsg "Unable to name summon: {{myEleName}}" 345494                                    clearsysmsg5495                                    poplist FireEleLichNamesList "front"5496                                    wait 5005497                                else5498                                    if EnableOverheadMessages != 05499                                        overhead '[ NAME: {{myEleName}} ]' 69 MyPet5500                                    endif5501                                    wait 5005502                                    poplist FireEleLichNamesList "front"5503                                    break5504                                endif5505                            endfor5506                        else5507                            if EnableOverheadMessages != 05508                                overhead '[ FIRE ONE ]' 1909 MyPet5509                            endif5510                            wait 5005511                        endif5512                    else5513                        @setvar! FireSecondEle MyPet5514                        if NameSummonedPets = 15515                            foreach myEleName in FireEleLichNamesList5516                                wait 2505517                                rename MyPet myEleName5518                                wait 5005519                                if insysmsg "That name is unacceptable"5520                                    sysmsg "Unable to name summon: {{myEleName}}" 345521                                    clearsysmsg5522                                    poplist FireEleLichNamesList "front"5523                                    wait 5005524                                else5525                                    if EnableOverheadMessages != 05526                                        overhead '[ NAME: {{myEleName}} ]' 69 MyPet5527                                    endif5528                                    wait 5005529                                    poplist FireEleLichNamesList "front"5530                                    break5531                                endif5532                            endfor5533                        else5534                            if EnableOverheadMessages != 05535                                overhead '[ FIRE TWO ]' 1909 MyPet5536                            endif5537                            wait 5005538                        endif5539                    endif5540                endif5541                @ignore MyPet5542                wait 2505543            endwhile5544            @unignore MyPet5545            @setvar! SummoningFire 05546        elseif SummoningDaemon = 1 and followers > 15547            while findtype 9|722 ground -1 -1 12 as MyPet5548                menu MyPet 15549                wait 5005550                if MyPet != DaemonFirstEle and MyPet != DaemonSecondEle5551                    hotkey 'cancel current target'5552                    if DaemonFirstEle = 05553                        @setvar! DaemonFirstEle MyPet5554                        if NameSummonedPets = 15555                            foreach myEleName in DemonVampThrallNamesList5556                                wait 2505557                                rename MyPet myEleName5558                                wait 5005559                                if insysmsg "That name is unacceptable"5560                                    sysmsg "Unable to name summon: {{myEleName}}" 345561                                    clearsysmsg5562                                    poplist DemonVampThrallNamesList "front"5563                                    wait 5005564                                else5565                                    if EnableOverheadMessages != 05566                                        overhead '[ NAME: {{myEleName}} ]' 69 MyPet5567                                    endif5568                                    wait 5005569                                    poplist DemonVampThrallNamesList "front"5570                                    break5571                                endif5572                            endfor5573                        else5574                            if EnableOverheadMessages != 05575                                overhead '[ DAEMON ONE ]' 333 MyPet5576                            endif5577                            wait 5005578                        endif5579                    else5580                        @setvar! DaemonSecondEle MyPet5581                        if NameSummonedPets = 15582                            foreach myEleName in DemonVampThrallNamesList5583                                wait 2505584                                rename MyPet myEleName5585                                wait 5005586                                if insysmsg "That name is unacceptable"5587                                    sysmsg "Unable to name summon: {{myEleName}}" 345588                                    clearsysmsg5589                                    poplist DemonVampThrallNamesList "front"5590                                    wait 5005591                                else5592                                    if EnableOverheadMessages != 05593                                        overhead '[ NAME: {{myEleName}} ]' 69 MyPet5594                                    endif5595                                    wait 5005596                                    poplist DemonVampThrallNamesList "front"5597                                    break5598                                endif5599                            endfor5600                        else5601                            if EnableOverheadMessages != 05602                                overhead '[ DAEMON TWO ]' 333 MyPet5603                            endif5604                            wait 5005605                        endif5606                    endif5607                endif5608                @ignore MyPet5609                wait 2505610            endwhile5611            @unignore MyPet5612            @setvar! SummoningDaemon 05613        elseif SummoningCreature = 1 and followers > 05614            while findtype "727|730|215|211|302|317|225|212|202|213|716|729|51|74|214|206|776|737|718|739|718|29|776|317|302|39|56|26|3|57|50|382|717|736|270|a vampire|a primordial whelp|an aegis rat|a scorpion|a wolf|a grizzly bear|a brown bear|a corpse eater|a familiar|a rock guar|a flamehound|a swamp spider|a firebat|a sand crab|a black bear|shallow water|a monitor hatchling|a muck|a cougar|a polar bear|a searing lizard|a monitor|a fire salamander|a fire ant|a winter wolf|a jaguar|an aegis mongbat|a silverback|a cave bat|Imp|a primordial|an asp|a cave bear|a giant swamp slug|a minion|an aegis slime|a trapdoor spider|a chameleon|a searing imp|a dragon whelp|a drake whelp|a blood ape|a devilbat|a wolfhound|an army ant|a ruby smallshell|a molten mongbat|an aquamarine smallshell|a stinger|a rime guar|an aegis scorpion|a skulker|a komodo|a shade wolf|a husk crab|a spitting viper|an aegis imp|a vampire bat|a fire minion|a snowdrift" ground -1 -1 12 as MyPet5615                menu MyPet 15616                wait 5005617                if MyPet != CreatureFirstEle and MyPet != CreatureSecondEle and MyPet != CreatureThirdEle and MyPet != CreatureFourthEle and MyPet != CreatureFifthEle5618                    hotkey 'cancel current target'5619                    if CreatureFirstEle = 05620                        @setvar! CreatureFirstEle MyPet5621                        if NameSummonedPets = 15622                            foreach myEleName in CreatureNamesList5623                                wait 2505624                                rename MyPet myEleName5625                                wait 5005626                                if insysmsg "That name is unacceptable"5627                                    sysmsg "Unable to name summon: {{myEleName}}" 345628                                    clearsysmsg5629                                    poplist CreatureNamesList "front"5630                                    wait 5005631                                else5632                                    if EnableOverheadMessages != 05633                                        overhead '[ NAME: {{myEleName}} ]' 69 MyPet5634                                    endif5635                                    wait 5005636                                    poplist CreatureNamesList "front"5637                                    break5638                                endif5639                            endfor5640                        else5641                            if EnableOverheadMessages != 05642                                overhead '[ CREATURE ONE ]' 2234 MyPet5643                            endif5644                            wait 5005645                        endif5646                    elseif CreatureSecondEle = 05647                        @setvar! CreatureSecondEle MyPet5648                        if NameSummonedPets = 15649                            foreach myEleName in CreatureNamesList5650                                wait 2505651                                rename MyPet myEleName5652                                wait 5005653                                if insysmsg "That name is unacceptable"5654                                    sysmsg "Unable to name summon: {{myEleName}}" 345655                                    clearsysmsg5656                                    poplist CreatureNamesList "front"5657                                    wait 5005658                                else5659                                    if EnableOverheadMessages != 05660                                        overhead '[ NAME: {{myEleName}} ]' 69 MyPet5661                                    endif5662                                    wait 5005663                                    poplist CreatureNamesList "front"5664                                    break5665                                endif5666                            endfor5667                        else5668                            if EnableOverheadMessages != 05669                                overhead '[ CREATURE TWO ]' 2234 MyPet5670                            endif5671                            wait 5005672                        endif5673                    elseif CreatureThirdEle = 05674                        @setvar! CreatureThirdEle MyPet5675                        if NameSummonedPets = 15676                            foreach myEleName in CreatureNamesList5677                                wait 2505678                                rename MyPet myEleName5679                                wait 5005680                                if insysmsg "That name is unacceptable"5681                                    sysmsg "Unable to name summon: {{myEleName}}" 345682                                    clearsysmsg5683                                    poplist CreatureNamesList "front"5684                                    wait 5005685                                else5686                                    if EnableOverheadMessages != 05687                                        overhead '[ NAME: {{myEleName}} ]' 69 MyPet5688                                    endif5689                                    wait 5005690                                    poplist CreatureNamesList "front"5691                                    break5692                                endif5693                            endfor5694                        else5695                            if EnableOverheadMessages != 05696                                overhead '[ CREATURE THREE ]' 2234 MyPet5697                            endif5698                            wait 5005699                        endif5700                    elseif CreatureFourthEle = 05701                        @setvar! CreatureFourthEle MyPet5702                        if NameSummonedPets = 15703                            foreach myEleName in CreatureNamesList5704                                wait 2505705                                rename MyPet myEleName5706                                wait 5005707                                if insysmsg "That name is unacceptable"5708                                    sysmsg "Unable to name summon: {{myEleName}}" 345709                                    clearsysmsg5710                                    poplist CreatureNamesList "front"5711                                    wait 5005712                                else5713                                    if EnableOverheadMessages != 05714                                        overhead '[ NAME: {{myEleName}} ]' 69 MyPet5715                                    endif5716                                    wait 5005717                                    poplist CreatureNamesList "front"5718                                    break5719                                endif5720                            endfor5721                        else5722                            if EnableOverheadMessages != 05723                                overhead '[ CREATURE FOUR ]' 2234 MyPet5724                            endif5725                            wait 5005726                        endif5727                    elseif CreatureFifthEle = 05728                        @setvar! CreatureFifthEle MyPet5729                        if NameSummonedPets = 15730                            foreach myEleName in CreatureNamesList5731                                wait 2505732                                rename MyPet myEleName5733                                wait 5005734                                if insysmsg "That name is unacceptable"5735                                    sysmsg "Unable to name summon: {{myEleName}}" 345736                                    clearsysmsg5737                                    poplist CreatureNamesList "front"5738                                    wait 5005739                                else5740                                    if EnableOverheadMessages != 05741                                        overhead '[ NAME: {{myEleName}} ]' 69 MyPet5742                                    endif5743                                    wait 5005744                                    poplist CreatureNamesList "front"5745                                    break5746                                endif5747                            endfor5748                        else5749                            if EnableOverheadMessages != 05750                                overhead '[ CREATURE FIVE ]' 2234 MyPet5751                            endif5752                            wait 5005753                        endif5754                    endif5755                endif5756 5757                @ignore MyPet5758                wait 2505759            endwhile5760            @unignore MyPet5761            @setvar! SummoningCreature 05762        endif5763 5764        if followers >= TotalSummonCount5765            break5766        endif5767 5768        if EarthFirstEle != 0 and dead EarthFirstEle5769            if list EarthEleList != 05770                poplist EarthEleList 'front'5771            endif5772            @setvar! EarthFirstEle 05773        endif5774 5775        if EarthSecondEle != 0 and dead EarthSecondEle5776            if list EarthEleList != 05777                poplist EarthEleList 'front'5778            endif5779            @setvar! EarthSecondEle 05780        endif5781 5782        if WaterFirstEle != 0 and dead WaterFirstEle5783            if list WaterEleList != 05784                poplist WaterEleList 'front'5785            endif5786            @setvar! WaterFirstEle 05787        endif5788 5789        if WaterSecondEle != 0 and dead WaterSecondEle5790            if list WaterEleList != 05791                poplist WaterEleList 'front'5792            endif5793            @setvar! WaterSecondEle 05794        endif5795 5796        if AirFirstEle != 0 and dead AirFirstEle5797            if list AirEleList != 05798                poplist AirEleList 'front'5799            endif5800            @setvar! AirFirstEle 05801        endif5802 5803        if AirSecondEle != 0 and dead AirSecondEle5804            if list AirEleList != 05805                poplist AirEleList 'front'5806            endif5807            @setvar! AirSecondEle 05808        endif5809 5810        if FireFirstEle != 0 and dead FireFirstEle5811            if list FireEleList != 05812                poplist FireEleList 'front'5813            endif5814            @setvar! FireFirstEle 05815        endif5816 5817        if FireSecondEle != 0 and dead FireSecondEle5818            if list FireEleList != 05819                poplist FireEleList 'front'5820            endif5821            @setvar! FireSecondEle 05822        endif5823 5824        if DaemonFirstEle != 0 and dead DaemonFirstEle5825            if list DaemonEleList != 05826                poplist DaemonEleList 'front'5827            endif5828            @setvar! DaemonFirstEle 05829        endif5830 5831        if DaemonSecondEle != 0 and dead DaemonSecondEle5832            if list DaemonEleList != 05833                poplist DaemonEleList 'front'5834            endif5835            @setvar! DaemonSecondEle 05836        endif5837 5838        if CreatureFirstEle != 0 and dead CreatureFirstEle5839            if list CreatureEleList != 05840                poplist CreatureEleList 'front'5841            endif5842            @setvar! CreatureFirstEle 05843        endif5844 5845        if CreatureSecondEle != 0 and dead CreatureSecondEle5846            if list CreatureEleList != 05847                poplist CreatureEleList 'front'5848            endif5849            @setvar! CreatureSecondEle 05850        endif5851 5852        if CreatureThirdEle != 0 and dead CreatureThirdEle5853            if list CreatureEleList != 05854                poplist CreatureEleList 'front'5855            endif5856            @setvar! CreatureThirdEle 05857        endif5858 5859        if CreatureFourthEle != 0 and dead CreatureFourthEle5860            if list CreatureEleList != 05861                poplist CreatureEleList 'front'5862            endif5863            @setvar! CreatureFourthEle 05864        endif5865 5866        if CreatureFifthEle != 0 and dead CreatureFifthEle5867            if list CreatureEleList != 05868                poplist CreatureEleList 'front'5869            endif5870            @setvar! CreatureFifthEle 05871        endif5872 5873        clearsysmsg5874        @setvar! CastingWasInterrupted 05875 5876        if EnableNecroVengefulSpirit = 1 or EnableNecroWither = 15877            if findtype 'necromancer book' backpack5878                yell '[necromancyhotbar'5879                while not gumpexists 6224365165880                    yell '[necromancyhotbar'5881                    wait 5005882                endwhile5883            endif5884        endif5885 5886        if gumpexists 6224365165887            if ingump "12/|13/|14/|15/|16/|17/|18/|19/|20/|21/|11/|10/|9/|8/|7/|6/" 6224365165888                @setvar! WitherAvailable 15889                @setvar! BloodOathAvailable 15890                @setvar! VengefulSpiritAvailable 15891            elseif ingump "5/" 6224365165892                if ingump "15/" 6224365165893                    @setvar! WitherAvailable 15894                    @setvar! BloodOathAvailable 15895                    @setvar! VengefulSpiritAvailable 15896                else5897                    @setvar! WitherAvailable 15898                    @setvar! BloodOathAvailable 15899                    @setvar! VengefulSpiritAvailable 15900                endif5901            elseif ingump "4/" 6224365165902                if ingump "14/" 6224365165903                    @setvar! WitherAvailable 05904                    @setvar! BloodOathAvailable 15905                    @setvar! VengefulSpiritAvailable 15906                else5907                    @setvar! WitherAvailable 05908                    @setvar! BloodOathAvailable 15909                    @setvar! VengefulSpiritAvailable 15910                endif5911            elseif ingump "3/" 6224365165912                if ingump "13/" 6224365165913                    @setvar! WitherAvailable 15914                    @setvar! BloodOathAvailable 15915                    @setvar! VengefulSpiritAvailable 15916                else5917                    @setvar! WitherAvailable 05918                    @setvar! BloodOathAvailable 05919                    @setvar! VengefulSpiritAvailable 15920                endif5921            elseif ingump "2/" 6224365165922                if ingump "12/" 6224365165923                    @setvar! WitherAvailable 15924                    @setvar! BloodOathAvailable 15925                    @setvar! VengefulSpiritAvailable 15926                else5927                    @setvar! WitherAvailable 05928                    @setvar! BloodOathAvailable 05929                    @setvar! VengefulSpiritAvailable 15930                endif5931            elseif ingump "1/" 6224365165932                if ingump "11/" 6224365165933                    @setvar! WitherAvailable 15934                    @setvar! BloodOathAvailable 15935                    @setvar! VengefulSpiritAvailable 15936                else5937                    @setvar! WitherAvailable 05938                    @setvar! BloodOathAvailable 05939                    @setvar! VengefulSpiritAvailable 15940                endif5941            elseif ingump "0/" 6224365165942                if ingump "10/" 6224365165943                    @setvar! WitherAvailable 15944                    @setvar! BloodOathAvailable 15945                    @setvar! VengefulSpiritAvailable 15946                else5947                    @setvar! WitherAvailable 05948                    @setvar! BloodOathAvailable 05949                    @setvar! VengefulSpiritAvailable 05950                endif5951            endif5952        endif5953 5954        if EnableNecroVengefulSpirit = 1 and VengefulSpiritAvailable = 1 and timer VengefulSpiritTimer > 30000 and skill 'necromancy' >= 50 and diffhits < CastGreaterHealHPdiff5955            clearsysmsg5956            @setvar! CastingWasInterrupted 05957 5958            while not insysmsg "unholy symbols remaining"5959                yell '[VengefulSpirit'5960                getlabel backpack packdesc5961                wait 2505962                if insysmsg "seconds before you may use that ability again."5963                    @setvar! CastingWasInterrupted 15964                    settimer VengefulSpiritTimer 280005965                    break5966                else5967                    break5968                endif5969            endwhile5970 5971            if CastingWasInterrupted = 05972                if EnableOverheadMessages = 15973                    overhead '[ VENGEFUL SPIRIT! ]' 115974                endif5975                settimer VengefulSpiritTimer 05976                cooldown 'Vengeful Spirit' 300005977                wait 5005978            endif5979        endif5980 5981        if gumpexists 6224365165982            if ingump "12/|13/|14/|15/|16/|17/|18/|19/|20/|21/|11/|10/|9/|8/|7/|6/" 6224365165983                @setvar! WitherAvailable 15984                @setvar! BloodOathAvailable 15985                @setvar! VengefulSpiritAvailable 15986            elseif ingump "5/" 6224365165987                if ingump "15/" 6224365165988                    @setvar! WitherAvailable 15989                    @setvar! BloodOathAvailable 15990                    @setvar! VengefulSpiritAvailable 15991                else5992                    @setvar! WitherAvailable 15993                    @setvar! BloodOathAvailable 15994                    @setvar! VengefulSpiritAvailable 15995                endif5996            elseif ingump "4/" 6224365165997                if ingump "14/" 6224365165998                    @setvar! WitherAvailable 05999                    @setvar! BloodOathAvailable 16000                    @setvar! VengefulSpiritAvailable 16001                else6002                    @setvar! WitherAvailable 06003                    @setvar! BloodOathAvailable 16004                    @setvar! VengefulSpiritAvailable 16005                endif6006            elseif ingump "3/" 6224365166007                if ingump "13/" 6224365166008                    @setvar! WitherAvailable 16009                    @setvar! BloodOathAvailable 16010                    @setvar! VengefulSpiritAvailable 16011                else6012                    @setvar! WitherAvailable 06013                    @setvar! BloodOathAvailable 06014                    @setvar! VengefulSpiritAvailable 16015                endif6016            elseif ingump "2/" 6224365166017                if ingump "12/" 6224365166018                    @setvar! WitherAvailable 16019                    @setvar! BloodOathAvailable 16020                    @setvar! VengefulSpiritAvailable 16021                else6022                    @setvar! WitherAvailable 06023                    @setvar! BloodOathAvailable 06024                    @setvar! VengefulSpiritAvailable 16025                endif6026            elseif ingump "1/" 6224365166027                if ingump "11/" 6224365166028                    @setvar! WitherAvailable 16029                    @setvar! BloodOathAvailable 16030                    @setvar! VengefulSpiritAvailable 16031                else6032                    @setvar! WitherAvailable 06033                    @setvar! BloodOathAvailable 06034                    @setvar! VengefulSpiritAvailable 16035                endif6036            elseif ingump "0/" 6224365166037                if ingump "10/" 6224365166038                    @setvar! WitherAvailable 16039                    @setvar! BloodOathAvailable 16040                    @setvar! VengefulSpiritAvailable 16041                else6042                    @setvar! WitherAvailable 06043                    @setvar! BloodOathAvailable 06044                    @setvar! VengefulSpiritAvailable 06045                endif6046            endif6047        endif6048 6049        if EnableNecroWither = 1 and WitherAvailable = 1 and timer 'WitherTimer' > 30000 and skill 'necromancy' >= 90 and diffhits < CastGreaterHealHPdiff6050            clearsysmsg6051            @setvar! CastingWasInterrupted 06052            while not insysmsg "unholy symbols remaining"6053                yell '[Wither'6054                getlabel backpack packdesc6055                wait 2506056                if insysmsg "seconds before you may use that ability again."6057                    @setvar! CastingWasInterrupted 16058                    settimer 'WitherTimer' 280006059                    break6060                else6061                    break6062                endif6063            endwhile6064 6065            if CastingWasInterrupted = 06066                if EnableOverheadMessages = 16067                    overhead '[ WITHER! ]' 4446068                endif6069                settimer 'WitherTimer' 06070                cooldown 'Wither' 300006071                wait 5006072            endif6073        endif6074 6075        if gumpexists 6224365166076            if ingump "12/|13/|14/|15/|16/|17/|18/|19/|20/|21/|11/|10/|9/|8/|7/|6/" 6224365166077                @setvar! WitherAvailable 16078                @setvar! BloodOathAvailable 16079                @setvar! VengefulSpiritAvailable 16080            elseif ingump "5/" 6224365166081                if ingump "15/" 6224365166082                    @setvar! WitherAvailable 16083                    @setvar! BloodOathAvailable 16084                    @setvar! VengefulSpiritAvailable 16085                else6086                    @setvar! WitherAvailable 16087                    @setvar! BloodOathAvailable 16088                    @setvar! VengefulSpiritAvailable 16089                endif6090            elseif ingump "4/" 6224365166091                if ingump "14/" 6224365166092                    @setvar! WitherAvailable 06093                    @setvar! BloodOathAvailable 16094                    @setvar! VengefulSpiritAvailable 16095                else6096                    @setvar! WitherAvailable 06097                    @setvar! BloodOathAvailable 16098                    @setvar! VengefulSpiritAvailable 16099                endif6100            elseif ingump "3/" 6224365166101                if ingump "13/" 6224365166102                    @setvar! WitherAvailable 16103                    @setvar! BloodOathAvailable 16104                    @setvar! VengefulSpiritAvailable 16105                else6106                    @setvar! WitherAvailable 06107                    @setvar! BloodOathAvailable 06108                    @setvar! VengefulSpiritAvailable 16109                endif6110            elseif ingump "2/" 6224365166111                if ingump "12/" 6224365166112                    @setvar! WitherAvailable 16113                    @setvar! BloodOathAvailable 16114                    @setvar! VengefulSpiritAvailable 16115                else6116                    @setvar! WitherAvailable 06117                    @setvar! BloodOathAvailable 06118                    @setvar! VengefulSpiritAvailable 16119                endif6120            elseif ingump "1/" 6224365166121                if ingump "11/" 6224365166122                    @setvar! WitherAvailable 16123                    @setvar! BloodOathAvailable 16124                    @setvar! VengefulSpiritAvailable 16125                else6126                    @setvar! WitherAvailable 06127                    @setvar! BloodOathAvailable 06128                    @setvar! VengefulSpiritAvailable 16129                endif6130            elseif ingump "0/" 6224365166131                if ingump "10/" 6224365166132                    @setvar! WitherAvailable 16133                    @setvar! BloodOathAvailable 16134                    @setvar! VengefulSpiritAvailable 16135                else6136                    @setvar! WitherAvailable 06137                    @setvar! BloodOathAvailable 06138                    @setvar! VengefulSpiritAvailable 06139                endif6140            endif6141        endif6142 6143        if EnableNecroBloodOath = 1 and BloodOathAvailable = 1 and timer BloodOathTimer > 30000 and skill 'necromancy' >= 80 and diffhits < CastGreaterHealHPdiff and EnableNecroVengefulSpirit = 16144            clearsysmsg6145            @setvar! CastingWasInterrupted 06146 6147            while not insysmsg "unholy symbols remaining"6148                yell '[BloodOath'6149                getlabel backpack packdesc6150                wait 2506151                if insysmsg "seconds before you may use that ability again."6152                    @setvar! CastingWasInterrupted 16153                    settimer BloodOathTimer 280006154                    break6155                else6156                    break6157                endif6158            endwhile6159 6160            if CastingWasInterrupted = 06161                if EnableOverheadMessages = 16162                    overhead '[ BLOOD OATH! ]' 376163                endif6164                settimer BloodOathTimer 06165                cooldown 'Blood Oath' 300006166            endif6167        endif6168 6169        @setvar! missingSummonRegs 06170        @setvar! summoningSuccessful 06171        getlabel backpack backpacklabel6172 6173        if not findtype 3963 self or not findtype 3974 self or not findtype 3981 self6174            @setvar! missingSummonRegs 16175            if timer MissingRegsTimer > 40006176                if EnableOverheadMessages != 06177                    overhead '[ MISSING REGS! ]' 3376178                    settimer MissingRegsTimer 06179                endif6180            endif6181            wait 5006182        elseif not findtype 3980 self6183            if SummonFireElemental_or_Lich != 0 or SummonDemon_or_VampireThrall != 06184                @setvar! missingSummonRegs 16185                if timer MissingRegsTimer > 40006186                    if EnableOverheadMessages != 06187                        overhead '[ MISSING REGS! ]' 3376188                        settimer MissingRegsTimer 06189                    endif6190                endif6191                wait 5006192            endif6193        endif6194 6195        if EnableMeditation = 1 and mana < MeditateWhenManaBelow and not findbuff "meditating" and timer 'MeditationTimer' > 100006196            skill 'meditation'6197            getlabel backpack packdesc6198            wait 2506199            if not findbuff 'meditating'6200                settimer 'MeditationTimer' 75006201                replay6202            elseif findbuff 'meditating'6203                hotkey 'Toggle Peace Only'6204                settimer 'MeditationTimer' 06205 6206                while mana < maxmana and diffhits < CastGreaterHealHPdiff6207                    if not findbuff 'meditating'6208                        hotkey 'Toggle War Only'6209                        break6210                    endif6211                    if mana > MeditateUntilManaReaches6212                        hotkey 'Toggle War Only'6213                        break6214                    endif6215                    if warmode on6216                        break6217                    endif6218                    if diffhits > CastGreaterHealHPdiff6219                        break6220                    endif6221                    if dead6222                        break6223                    endif6224                    if timer 'MeditationMessageTimer' > 40006225                        if EnableOverheadMessages = 16226                            overhead '[ MEDITATING... ]' 116227                        else6228                            overhead "*meditating*" 116229                        endif6230                        settimer 'MeditationMessageTimer' 06231                    endif6232                endwhile6233                if diffhits > CastGreaterHealHPdiff6234                    break6235                endif6236                if dead6237                    break6238                endif6239                if not warmode and TimeToGo != 16240                    hotkey 'Toggle War Only'6241                endif6242            endif6243        elseif EnableMeditation != 1 and mana < 506244            if timer MissingRegsTimer > 40006245                if EnableOverheadMessages != 06246                    overhead '[ WAITING FOR MANA... ]' 4206247                    settimer MissingRegsTimer 06248                endif6249            endif6250        endif6251 6252        if SummonEarthElemental_or_AncientMummy != 0 and list EarthEleList < SummonEarthElemental_or_AncientMummy and followers < 4 and diffhits < CastGreaterHealHPdiff and not casting and missingSummonRegs = 0 and mana > 496253            clearsysmsg6254            @setvar! CastingWasInterrupted 06255            @setvar! summoningSuccessful 06256            @setvar! SummoningEarth 16257 6258            cast 'Earth Elemental'6259            wait 2506260 6261            while not dead6262                if diffhits >= CastGreaterHealHPdiff6263                    @setvar! AttackModeActive 16264                    @setvar! CastingWasInterrupted 16265                    interrupt6266                    break6267                endif6268 6269                if timer SummoningMessageTimer > 4000 and EnableOverheadMessages != 06270                    if EnableNecroVengefulSpirit = 06271                        overhead '[ SUMMONING EARTH... ]' 3496272                    else6273                        overhead '[ SUMMONING MUMMY... ]' 3496274                    endif6275                    settimer SummoningMessageTimer 06276                endif6277 6278                if not casting6279                    getlabel backpack packdesc6280                    wait 2506281                    if insysmsg "Your concentration"6282                        @setvar! CastingWasInterrupted 16283                    endif6284                    break6285                endif6286            endwhile6287 6288            if CastingWasInterrupted = 06289                settimer CreatureSummonTimeout 06290                wait 2506291                while timer CreatureSummonTimeout < 50006292                    if findtype 158|14 ground -1 -1 12 as MyPet6293                        wait 2506294                        menu MyPet 36295                        wait 2506296                        if MyPet != EarthFirstEle and MyPet != EarthSecondEle6297                            hotkey 'cancel current target'6298                            if EarthFirstEle = 06299                                @setvar! EarthFirstEle MyPet6300                                if NameSummonedPets = 16301                                    foreach myEleName in EarthEleAncientMummNamesList6302                                        clearsysmsg6303                                        rename MyPet myEleName6304                                        wait 5006305                                        if insysmsg "That name is unacceptable"6306                                            sysmsg "Unable to name summon: {{myEleName}}" 346307                                            clearsysmsg6308                                            poplist EarthEleAncientMummNamesList "front"6309                                            wait 2506310                                        else6311                                            if EnableOverheadMessages != 06312                                                overhead '[ NAME: {{myEleName}} ]' 69 MyPet6313                                            endif6314                                            poplist EarthEleAncientMummNamesList "front"6315                                            break6316                                        endif6317                                    endfor6318                                else6319                                    if EnableOverheadMessages != 06320                                        overhead '[ EARTH ONE ]' 349 MyPet6321                                    endif6322                                    wait 5006323                                endif6324                            elseif EarthSecondEle = 06325                                @setvar! EarthSecondEle MyPet6326                                if NameSummonedPets = 16327                                    foreach myEleName in EarthEleAncientMummNamesList6328                                        clearsysmsg6329                                        rename MyPet myEleName6330                                        wait 5006331                                        if insysmsg "That name is unacceptable"6332                                            sysmsg "Unable to name summon: {{myEleName}}" 346333                                            clearsysmsg6334                                            poplist EarthEleAncientMummNamesList "front"6335                                            wait 2506336                                        else6337                                            if EnableOverheadMessages != 06338                                                overhead '[ NAME: {{myEleName}} ]' 69 MyPet6339                                            endif6340                                            poplist EarthEleAncientMummNamesList "front"6341                                            break6342                                        endif6343                                    endfor6344                                else6345                                    if EnableOverheadMessages != 06346                                        overhead '[ EARTH TWO ]' 349 MyPet6347                                    endif6348                                    wait 5006349                                endif6350                            endif6351                            @setvar! summoningSuccessful 16352                            pushlist EarthEleList 'x' 'front'6353                            @ignore MyPet6354                            break6355                        endif6356                        @ignore MyPet6357                    endif6358                    wait 2506359                endwhile6360                @unignore MyPet6361                wait 2506362                if summoningSuccessful = 06363                    if EnableOverheadMessages != 06364                        overhead '[ ERROR DETECTING SUMMON! ]' 3376365                    endif6366                    sysmsg "Script: summon cast completed but new pet was not detected." 346367                endif6368            endif6369            @setvar! SummoningEarth 06370        elseif SummonWaterElemental_or_RagWitch != 0 and list WaterEleList < SummonWaterElemental_or_RagWitch and followers < 4 and diffhits < CastGreaterHealHPdiff and not casting and missingSummonRegs = 0 and mana > 496371            clearsysmsg6372            @setvar! CastingWasInterrupted 06373            @setvar! summoningSuccessful 06374            @setvar! SummoningWater 16375 6376            cast 'Water Elemental'6377            wait 2506378 6379            while not dead6380                if diffhits >= CastGreaterHealHPdiff6381                    @setvar! AttackModeActive 16382                    @setvar! CastingWasInterrupted 16383                    interrupt6384                    break6385                endif6386 6387                if timer SummoningMessageTimer > 4000 and EnableOverheadMessages != 06388                    if EnableNecroVengefulSpirit = 06389                        overhead '[ SUMMONING WATER... ]' 936390                    else6391                        overhead '[ SUMMONING WITCH... ]' 936392                    endif6393                    settimer SummoningMessageTimer 06394                endif6395 6396                if not casting6397                    getlabel backpack packdesc6398                    wait 2506399                    if insysmsg "Your concentration"6400                        @setvar! CastingWasInterrupted 16401                    endif6402                    break6403                endif6404            endwhile6405 6406            if CastingWasInterrupted = 06407                wait 2506408                settimer CreatureSummonTimeout 06409                while timer CreatureSummonTimeout < 50006410                    if findtype 740|16 ground -1 -1 12 as MyPet6411                        wait 2506412                        menu MyPet 36413                        wait 2506414                        if MyPet != WaterFirstEle and MyPet != WaterSecondEle6415                            hotkey 'cancel current target'6416                            if WaterFirstEle = 06417                                @setvar! WaterFirstEle MyPet6418                                if NameSummonedPets = 16419                                    foreach myEleName in WaterEleRagWitchNamesList6420                                        clearsysmsg6421                                        rename MyPet myEleName6422                                        wait 5006423                                        if insysmsg "That name is unacceptable"6424                                            sysmsg "Unable to name summon: {{myEleName}}" 346425                                            clearsysmsg6426                                            poplist WaterEleRagWitchNamesList "front"6427                                            wait 2506428                                        else6429                                            if EnableOverheadMessages != 06430                                                overhead '[ NAME: {{myEleName}} ]' 69 MyPet6431                                            endif6432                                            poplist WaterEleRagWitchNamesList "front"6433                                            break6434                                        endif6435                                    endfor6436                                else6437                                    if EnableOverheadMessages != 06438                                        overhead '[ WATER ONE ]' 93 MyPet6439                                    endif6440                                    wait 5006441                                endif6442                            elseif WaterSecondEle = 06443                                @setvar! WaterSecondEle MyPet6444                                if NameSummonedPets = 16445                                    foreach myEleName in WaterEleRagWitchNamesList6446                                        clearsysmsg6447                                        rename MyPet myEleName6448                                        wait 5006449                                        if insysmsg "That name is unacceptable"6450                                            sysmsg "Unable to name summon: {{myEleName}}" 346451                                            clearsysmsg6452                                            poplist WaterEleRagWitchNamesList "front"6453                                            wait 2506454                                        else6455                                            if EnableOverheadMessages != 06456                                                overhead '[ NAME: {{myEleName}} ]' 69 MyPet6457                                            endif6458                                            poplist WaterEleRagWitchNamesList "front"6459                                            break6460                                        endif6461                                    endfor6462                                else6463                                    if EnableOverheadMessages != 06464                                        overhead '[ WATER TWO ]' 93 MyPet6465                                    endif6466                                    wait 5006467                                endif6468                            endif6469                            @setvar! summoningSuccessful 16470                            pushlist WaterEleList 'x' 'front'6471                            @ignore MyPet6472                            break6473                        endif6474                        @ignore MyPet6475                    endif6476                    wait 2506477                endwhile6478                @unignore MyPet6479                wait 2506480                if summoningSuccessful = 06481                    if EnableOverheadMessages != 06482                        overhead '[ ERROR DETECTING SUMMON! ]' 3376483                    endif6484                    sysmsg "Script: summon cast completed but new pet was not detected." 346485                endif6486            endif6487            @setvar! SummoningWater 06488        elseif SummonAirElemental_or_SkeletalFiend != 0 and list AirEleList < SummonAirElemental_or_SkeletalFiend and followers < 4 and diffhits < CastGreaterHealHPdiff and not casting and missingSummonRegs = 0 and mana > 496489            clearsysmsg6490            @setvar! CastingWasInterrupted 06491            @setvar! summoningSuccessful 06492            @setvar! SummoningAir 16493 6494            cast 'Air Elemental'6495            wait 2506496 6497            while not dead6498                if diffhits >= CastGreaterHealHPdiff6499                    @setvar! AttackModeActive 16500                    @setvar! CastingWasInterrupted 16501                    interrupt6502                    break6503                endif6504 6505                if timer SummoningMessageTimer > 4000 and EnableOverheadMessages != 06506                    if EnableNecroVengefulSpirit = 06507                        overhead '[ SUMMONING AIR... ]' 9336508                    else6509                        overhead '[ SUMMONING FIEND... ]' 9336510                    endif6511                    settimer SummoningMessageTimer 06512                endif6513 6514                if not casting6515                    getlabel backpack packdesc6516                    wait 2506517                    if insysmsg "Your concentration"6518                        @setvar! CastingWasInterrupted 16519                    endif6520                    break6521                endif6522            endwhile6523 6524            if CastingWasInterrupted = 06525                wait 2506526                settimer CreatureSummonTimeout 06527                while timer CreatureSummonTimeout < 50006528                    if findtype 306|13 ground -1 -1 12 as MyPet6529                        wait 2506530                        menu MyPet 36531                        wait 2506532                        if MyPet != AirFirstEle and MyPet != AirSecondEle6533                            hotkey 'cancel current target'6534                            if AirFirstEle = 06535                                @setvar! AirFirstEle MyPet6536                                if NameSummonedPets = 16537                                    foreach myEleName in AirEleSkeleFiendNamesList6538                                        clearsysmsg6539                                        rename MyPet myEleName6540                                        wait 5006541                                        if insysmsg "That name is unacceptable"6542                                            sysmsg "Unable to name summon: {{myEleName}}" 346543                                            clearsysmsg6544                                            poplist AirEleSkeleFiendNamesList "front"6545                                            wait 2506546                                        else6547                                            if EnableOverheadMessages != 06548                                                overhead '[ NAME: {{myEleName}} ]' 69 MyPet6549                                            endif6550                                            poplist AirEleSkeleFiendNamesList "front"6551                                            break6552                                        endif6553                                    endfor6554                                else6555                                    if EnableOverheadMessages != 06556                                        overhead '[ AIR ONE ]' 933 MyPet6557                                    endif6558                                    wait 5006559                                endif6560                            elseif AirSecondEle = 06561                                @setvar! AirSecondEle MyPet6562                                if NameSummonedPets = 16563                                    foreach myEleName in AirEleSkeleFiendNamesList6564                                        clearsysmsg6565                                        rename MyPet myEleName6566                                        wait 5006567                                        if insysmsg "That name is unacceptable"6568                                            sysmsg "Unable to name summon: {{myEleName}}" 346569                                            clearsysmsg6570                                            poplist AirEleSkeleFiendNamesList "front"6571                                            wait 2506572                                        else6573                                            if EnableOverheadMessages != 06574                                                overhead '[ NAME: {{myEleName}} ]' 69 MyPet6575                                            endif6576                                            poplist AirEleSkeleFiendNamesList "front"6577                                            break6578                                        endif6579                                    endfor6580                                else6581                                    if EnableOverheadMessages != 06582                                        overhead '[ AIR TWO ]' 933 MyPet6583                                    endif6584                                    wait 5006585                                endif6586                            endif6587                            @setvar! summoningSuccessful 16588                            pushlist AirEleList 'x' 'front'6589                            @ignore MyPet6590                            break6591                        endif6592                        @ignore MyPet6593                    endif6594                    wait 2506595                endwhile6596                @unignore MyPet6597                wait 2506598                if summoningSuccessful = 06599                    if EnableOverheadMessages != 06600                        overhead '[ ERROR DETECTING SUMMON! ]' 3376601                    endif6602                    sysmsg "Script: summon cast completed but new pet was not detected." 346603                endif6604            endif6605            @setvar! SummoningAir 06606        elseif SummonFireElemental_or_Lich != 0 and list FireEleList < SummonFireElemental_or_Lich and followers < 4 and diffhits < CastGreaterHealHPdiff and not casting and missingSummonRegs = 0 and mana > 496607            clearsysmsg6608            @setvar! CastingWasInterrupted 06609            @setvar! summoningSuccessful 06610            @setvar! SummoningFire 16611 6612            cast 'Fire Elemental'6613            wait 2506614 6615            while not dead6616                if diffhits >= CastGreaterHealHPdiff6617                    @setvar! AttackModeActive 16618                    @setvar! CastingWasInterrupted 16619                    interrupt6620                    break6621                endif6622 6623                if timer SummoningMessageTimer > 4000 and EnableOverheadMessages != 06624                    if EnableNecroVengefulSpirit = 06625                        overhead '[ SUMMONING FIRE... ]' 19096626                    else6627                        overhead '[ SUMMONING LICH... ]' 19096628                    endif6629                    settimer SummoningMessageTimer 06630                endif6631 6632                if not casting6633                    getlabel backpack packdesc6634                    wait 2506635                    if insysmsg "Your concentration"6636                        @setvar! CastingWasInterrupted 16637                    endif6638                    break6639                endif6640            endwhile6641 6642            if CastingWasInterrupted = 06643                wait 2506644                settimer CreatureSummonTimeout 06645                while timer CreatureSummonTimeout < 50006646                    if findtype 24|15 ground -1 -1 12 as MyPet6647                        wait 2506648                        menu MyPet 36649                        wait 2506650                        if MyPet != FireFirstEle and MyPet != FireSecondEle6651                            hotkey 'cancel current target'6652                            if FireFirstEle = 06653                                @setvar! FireFirstEle MyPet6654                                if NameSummonedPets = 16655                                    foreach myEleName in FireEleLichNamesList6656                                        clearsysmsg6657                                        rename MyPet myEleName6658                                        wait 5006659                                        if insysmsg "That name is unacceptable"6660                                            sysmsg "Unable to name summon: {{myEleName}}" 346661                                            clearsysmsg6662                                            poplist FireEleLichNamesList "front"6663                                            wait 2506664                                        else6665                                            if EnableOverheadMessages != 06666                                                overhead '[ NAME: {{myEleName}} ]' 69 MyPet6667                                            endif6668                                            poplist FireEleLichNamesList "front"6669                                            break6670                                        endif6671                                    endfor6672                                else6673                                    if EnableOverheadMessages != 06674                                        overhead '[ FIRE ONE ]' 1909 MyPet6675                                    endif6676                                    wait 5006677                                endif6678                            elseif FireSecondEle = 06679                                @setvar! FireSecondEle MyPet6680                                if NameSummonedPets = 16681                                    foreach myEleName in FireEleLichNamesList6682                                        clearsysmsg6683                                        rename MyPet myEleName6684                                        wait 5006685                                        if insysmsg "That name is unacceptable"6686                                            sysmsg "Unable to name summon: {{myEleName}}" 346687                                            clearsysmsg6688                                            poplist FireEleLichNamesList "front"6689                                            wait 2506690                                        else6691                                            if EnableOverheadMessages != 06692                                                overhead '[ NAME: {{myEleName}} ]' 69 MyPet6693                                            endif6694                                            poplist FireEleLichNamesList "front"6695                                            break6696                                        endif6697                                    endfor6698                                else6699                                    if EnableOverheadMessages != 06700                                        overhead '[ FIRE TWO ]' 1909 MyPet6701                                    endif6702                                    wait 5006703                                endif6704                            endif6705                            @setvar! summoningSuccessful 16706                            pushlist FireEleList 'x' 'front'6707                            @ignore MyPet6708                            break6709                        endif6710                        @ignore MyPet6711                    endif6712                    wait 2506713                endwhile6714                @unignore MyPet6715                wait 2506716                if summoningSuccessful = 06717                    if EnableOverheadMessages != 06718                        overhead '[ ERROR DETECTING SUMMON! ]' 3376719                    endif6720                    sysmsg "Script: summon cast completed but new pet was not detected." 346721                endif6722            endif6723            @setvar! SummoningFire 06724        elseif SummonDemon_or_VampireThrall != 0 and list DaemonEleList < SummonDemon_or_VampireThrall and followers < 4 and diffhits < CastGreaterHealHPdiff and not casting and missingSummonRegs = 0 and mana > 496725            clearsysmsg6726            @setvar! CastingWasInterrupted 06727            @setvar! summoningSuccessful 06728            @setvar! SummoningDaemon 16729 6730            cast 'Summon Daemon'6731            wait 2506732 6733            while not dead6734                if diffhits >= CastGreaterHealHPdiff6735                    @setvar! AttackModeActive 16736                    @setvar! CastingWasInterrupted 16737                    interrupt6738                    break6739                endif6740 6741                if timer SummoningMessageTimer > 4000 and EnableOverheadMessages != 06742                    if EnableNecroVengefulSpirit = 06743                        overhead '[ SUMMONING DAEMON... ]' 3336744                    else6745                        overhead '[ SUMMONING THRALL... ]' 3336746                    endif6747                    settimer SummoningMessageTimer 06748                endif6749 6750                if not casting6751                    getlabel backpack packdesc6752                    wait 2506753                    if insysmsg "Your concentration"6754                        @setvar! CastingWasInterrupted 16755                    endif6756                    break6757                endif6758            endwhile6759 6760            if CastingWasInterrupted = 06761                wait 2506762                settimer CreatureSummonTimeout 06763                while timer CreatureSummonTimeout < 50006764                    if findtype 9|722 ground -1 -1 12 as MyPet6765                        wait 2506766                        menu MyPet 36767                        wait 2506768                        if MyPet != DaemonFirstEle and MyPet != DaemonSecondEle6769                            hotkey 'cancel current target'6770                            if DaemonFirstEle = 06771                                @setvar! DaemonFirstEle MyPet6772                                if NameSummonedPets = 16773                                    foreach myEleName in DemonVampThrallNamesList6774                                        clearsysmsg6775                                        rename MyPet myEleName6776                                        wait 5006777                                        if insysmsg "That name is unacceptable"6778                                            sysmsg "Unable to name summon: {{myEleName}}" 346779                                            clearsysmsg6780                                            poplist DemonVampThrallNamesList "front"6781                                            wait 2506782                                        else6783                                            if EnableOverheadMessages != 06784                                                overhead '[ NAME: {{myEleName}} ]' 69 MyPet6785                                            endif6786                                            poplist DemonVampThrallNamesList "front"6787                                            break6788                                        endif6789                                    endfor6790                                else6791                                    if EnableOverheadMessages != 06792                                        overhead '[ DAEMON ONE ]' 333 MyPet6793                                    endif6794                                    wait 5006795                                endif6796                            elseif DaemonSecondEle = 06797                                @setvar! DaemonSecondEle MyPet6798                                if NameSummonedPets = 16799                                    foreach myEleName in DemonVampThrallNamesList6800                                        clearsysmsg6801                                        rename MyPet myEleName6802                                        wait 5006803                                        if insysmsg "That name is unacceptable"6804                                            sysmsg "Unable to name summon: {{myEleName}}" 346805                                            clearsysmsg6806                                            poplist DemonVampThrallNamesList "front"6807                                            wait 2506808                                        else6809                                            if EnableOverheadMessages != 06810                                                overhead '[ NAME: {{myEleName}} ]' 69 MyPet6811                                            endif6812                                            poplist DemonVampThrallNamesList "front"6813                                            break6814                                        endif6815                                    endfor6816                                else6817                                    if EnableOverheadMessages != 06818                                        overhead '[ DAEMON TWO ]' 333 MyPet6819                                    endif6820                                    wait 5006821                                endif6822                            endif6823                            @setvar! summoningSuccessful 16824                            pushlist DaemonEleList 'x' 'front'6825                            @ignore MyPet6826                            break6827                        endif6828 6829                        @ignore MyPet6830                    endif6831                    wait 2506832                endwhile6833                @unignore MyPet6834                wait 2506835                if summoningSuccessful = 06836                    if EnableOverheadMessages != 06837                        overhead '[ ERROR DETECTING SUMMON! ]' 3376838                    endif6839                    sysmsg "Script: summon cast completed but new pet was not detected." 346840                endif6841            endif6842            @setvar! SummoningDaemon 06843        elseif SummonCreature_or_UndeadCreature != 0 and list CreatureEleList < SummonCreature_or_UndeadCreature and followers < 5 and diffhits < CastGreaterHealHPdiff and not casting and missingSummonRegs = 0 and mana > 136844            clearsysmsg6845            @setvar! CastingWasInterrupted 06846            @setvar! summoningSuccessful 06847            @setvar! SummoningCreature 16848 6849            cast 'Summ. Creature'6850            wait 2506851 6852            while not dead6853                if diffhits >= CastGreaterHealHPdiff6854                    @setvar! AttackModeActive 16855                    @setvar! CastingWasInterrupted 16856                    interrupt6857                    break6858                endif6859 6860                if timer SummoningMessageTimer > 4000 and EnableOverheadMessages != 06861                    if EnableNecroVengefulSpirit = 06862                        overhead '[ SUMMONING CREATURE... ]' 22346863                    else6864                        overhead '[ SUMMONING UNDEAD... ]' 22346865                    endif6866                    settimer SummoningMessageTimer 06867                endif6868 6869                if not casting6870                    getlabel backpack packdesc6871                    wait 2506872                    if insysmsg "Your concentration"6873                        @setvar! CastingWasInterrupted 16874                    endif6875                    break6876                endif6877            endwhile6878 6879            if CastingWasInterrupted = 06880                wait 2506881                settimer CreatureSummonTimeout 06882                while timer CreatureSummonTimeout < 50006883                    if findtype "727|730|215|211|302|317|225|212|202|213|716|729|51|74|214|206|776|737|718|739|718|29|776|317|302|39|56|26|3|57|50|382|717|736|270|a primordial whelp|an aegis rat|a scorpion|a wolf|a grizzly bear|a brown bear|a corpse eater|a familiar|a rock guar|a flamehound|a swamp spider|a firebat|a sand crab|a black bear|shallow water|a monitor hatchling|a muck|a cougar|a polar bear|a searing lizard|a monitor|a fire salamander|a fire ant|a winter wolf|a jaguar|an aegis mongbat|a silverback|a cave bat|Imp|a primordial|an asp|a cave bear|a giant swamp slug|a minion|an aegis slime|a trapdoor spider|a chameleon|a searing imp|a dragon whelp|a drake whelp|a blood ape|a devilbat|a wolfhound|an army ant|a ruby smallshell|a molten mongbat|an aquamarine smallshell|a stinger|a rime guar|an aegis scorpion|a skulker|a komodo|a shade wolf|a husk crab|a spitting viper|an aegis imp|a vampire bat|a fire minion|a snowdrift|a vampire|a skeleton|a zombie|a skeletal knight|a ghoul|a skeletal mage|a ghost|a skeletal marksman|a rotting flesh|3" ground -1 -1 12 as MyPet6884                        wait 2506885                        menu MyPet 36886                        wait 2506887                        if MyPet != CreatureFirstEle and MyPet != CreatureSecondEle and MyPet != CreatureThirdEle and MyPet != CreatureFourthEle and MyPet != CreatureFifthEle6888                            hotkey 'cancel current target'6889                            if CreatureFirstEle = 06890                                @setvar! CreatureFirstEle MyPet6891                                if NameSummonedPets = 16892                                    foreach myEleName in CreatureNamesList6893                                        clearsysmsg6894                                        rename MyPet myEleName6895                                        wait 5006896                                        if insysmsg "That name is unacceptable"6897                                            sysmsg "Unable to name summon: {{myEleName}}" 346898                                            clearsysmsg6899                                            poplist CreatureNamesList "front"6900                                            wait 2506901                                        else6902                                            if EnableOverheadMessages != 06903                                                overhead '[ NAME: {{myEleName}} ]' 69 MyPet6904                                            endif6905                                            poplist CreatureNamesList "front"6906                                            break6907                                        endif6908                                    endfor6909                                else6910                                    if EnableOverheadMessages != 06911                                        overhead '[ CREATURE ONE ]' 2234 MyPet6912                                    endif6913                                    wait 5006914                                endif6915                            elseif CreatureSecondEle = 06916                                @setvar! CreatureSecondEle MyPet6917                                if NameSummonedPets = 16918                                    foreach myEleName in CreatureNamesList6919                                        clearsysmsg6920                                        rename MyPet myEleName6921                                        wait 5006922                                        if insysmsg "That name is unacceptable"6923                                            sysmsg "Unable to name summon: {{myEleName}}" 346924                                            clearsysmsg6925                                            poplist CreatureNamesList "front"6926                                            wait 2506927                                        else6928                                            if EnableOverheadMessages != 06929                                                overhead '[ NAME: {{myEleName}} ]' 69 MyPet6930                                            endif6931                                            poplist CreatureNamesList "front"6932                                            break6933                                        endif6934                                    endfor6935                                else6936                                    if EnableOverheadMessages != 06937                                        overhead '[ CREATURE TWO ]' 2234 MyPet6938                                    endif6939                                    wait 5006940                                endif6941                            elseif CreatureThirdEle = 06942                                @setvar! CreatureThirdEle MyPet6943                                if NameSummonedPets = 16944                                    foreach myEleName in CreatureNamesList6945                                        clearsysmsg6946                                        rename MyPet myEleName6947                                        wait 5006948                                        if insysmsg "That name is unacceptable"6949                                            sysmsg "Unable to name summon: {{myEleName}}" 346950                                            clearsysmsg6951                                            poplist CreatureNamesList "front"6952                                            wait 2506953                                        else6954                                            if EnableOverheadMessages != 06955                                                overhead '[ NAME: {{myEleName}} ]' 69 MyPet6956                                            endif6957                                            poplist CreatureNamesList "front"6958                                            break6959                                        endif6960                                    endfor6961                                else6962                                    if EnableOverheadMessages != 06963                                        overhead '[ CREATURE THREE ]' 2234 MyPet6964                                    endif6965                                    wait 5006966                                endif6967                            elseif CreatureFourthEle = 06968                                @setvar! CreatureFourthEle MyPet6969                                if NameSummonedPets = 16970                                    foreach myEleName in CreatureNamesList6971                                        clearsysmsg6972                                        rename MyPet myEleName6973                                        wait 5006974                                        if insysmsg "That name is unacceptable"6975                                            sysmsg "Unable to name summon: {{myEleName}}" 346976                                            clearsysmsg6977                                            poplist CreatureNamesList "front"6978                                            wait 2506979                                        else6980                                            if EnableOverheadMessages != 06981                                                overhead '[ NAME: {{myEleName}} ]' 69 MyPet6982                                            endif6983                                            poplist CreatureNamesList "front"6984                                            break6985                                        endif6986                                    endfor6987                                else6988                                    if EnableOverheadMessages != 06989                                        overhead '[ CREATURE FOUR ]' 2234 MyPet6990                                    endif6991                                    wait 5006992                                endif6993                            elseif CreatureFifthEle = 06994                                @setvar! CreatureFifthEle MyPet6995                                if NameSummonedPets = 16996                                    foreach myEleName in CreatureNamesList6997                                        clearsysmsg6998                                        rename MyPet myEleName6999                                        wait 5007000                                        if insysmsg "That name is unacceptable"7001                                            sysmsg "Unable to name summon: {{myEleName}}" 347002                                            clearsysmsg7003                                            poplist CreatureNamesList "front"7004                                            wait 2507005                                        else7006                                            if EnableOverheadMessages != 07007                                                overhead '[ NAME: {{myEleName}} ]' 69 MyPet7008                                            endif7009                                            poplist CreatureNamesList "front"7010                                            break7011                                        endif7012                                    endfor7013                                else7014                                    if EnableOverheadMessages != 07015                                        overhead '[ CREATURE FIVE ]' 2234 MyPet7016                                    endif7017                                    wait 5007018                                endif7019                            endif7020                            @setvar! summoningSuccessful 17021                            pushlist CreatureEleList 'x' 'front'7022                            @ignore MyPet7023                            break7024                        endif7025                        @ignore MyPet7026                    endif7027                    wait 2507028                endwhile7029                @unignore MyPet7030                wait 2507031                if summoningSuccessful = 07032                    if EnableOverheadMessages != 07033                        overhead '[ ERROR DETECTING SUMMON! ]' 3377034                    endif7035                    sysmsg "Script: summon cast completed but new pet was not detected." 347036                endif7037            endif7038            @setvar! SummoningCreature 07039        endif7040        if timer AllGuardMeTimer > 150007041            say 'All guard me' 22347042            settimer AllGuardMeTimer 07043        endif7044    endwhile7045 7046    ///////////////////////7047    //   END SUMMONING   //7048    ///////////////////////7049 7050 7051    ///////////////////////7052    //   FIND A TARGET   //7053    ///////////////////////7054 7055    if not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange7056        @setvar! AttackModeActive 17057        // Skip target check and jump to attack loop if ClosestTarget is alive and within attack range7058 7059    elseif not dead TargetToAnalyze and find TargetToAnalyze ground -1 -1 12 and AttackModeActive = 27060        @setvar! AttackModeActive 07061        // Proceed to target checks if TargetToAnalyze is alive and within targeting range7062    else7063        if targetexists7064            hotkey 'cancel current target'7065        endif7066 7067        clearsysmsg7068        hotkey 'target closest grey monster'7069        getlabel backpack backpacklabel7070        @setvar! TargetToAnalyze lasttarget7071 7072        if insysmsg 'No one matching that'7073            @setvar! NoTargetMode 17074            getlabel backpack backpacklabel7075 7076 7077            ////////////////////////7078            //   NO TARGET LOOP   //7079            ////////////////////////7080 7081            while NoTargetMode = 17082                if dead7083                    break7084                endif7085 7086                if targetexists7087                    hotkey 'cancel current target'7088                endif7089 7090                if weight > maxweight and EnableDropGoldWhenOverweight = 17091                    if timer OverweightMessageTimer > 45007092                        overhead '[ OVERWEIGHT! ]' 347093                        settimer OverweightMessageTimer 07094                    endif7095 7096                    if DropGoldAmount != 07097                        clearignore7098                        @setvar! DisableVacuums 17099                        wait 2507100 7101                        if EnablePutLootinLockBox = 17102                            if find lockbox self7103                                getlabel lockbox lockboxlabel7104                                wait 2507105                                if 'items' in lockboxlabel7106                                    @clearignore7107                                    wait 5007108                                else7109                                    dclick key7110                                    wft 15007111                                    dclick lockbox7112                                    wait 5007113                                    if insysmsg "It appears to be locked."7114                                        dclick key7115                                        wft 15007116                                        target lockbox7117                                        wait 2507118                                    else7119                                        if EnableOverheadMessages != 07120                                            overhead "[loot box unlocked]" 847121                                        endif7122                                    endif7123                                endif7124                            endif7125                        endif7126 7127                        while weight > maxweight7128                            if findtype "gold coin" backpack as easycomeeasygo7129                                lift easycomeeasygo DropGoldAmount7130                                droprelloc 0 07131                                getlabel backpack packdesc7132                                if EnableOverheadMessages = 17133                                    overhead '[ DROPPING GOLD... ]' 1497134                                endif7135                                wait 2507136                                if insysmsg "cannot drop anything"7137                                    drop backpack -1 -1 -17138                                endif7139                                wait 5007140                            endif7141                            if dead7142                                break7143                            endif7144                            if diffhits > CastGreaterHealHPdiff7145                                break7146                            endif7147                        endwhile7148                    endif7149                endif7150 7151                if paralyzed and EnableAutoParalyzePouch = 17152                    if findtype "pouch" self7153                        yell "[pouch"7154                        wait 2507155                        hotkey 'Toggle Peace Only'7156                        @setvar! RedTargetFound 17157                        @setvar! TimeToGo 17158                    else7159                        if timer PopPouchMessageTimer > 5000 and EnableOverheadMessages = 17160                            overhead '[ NO MORE POUCHES! ]' 3377161                            settimer PopPouchMessageTimer 07162                        endif7163                    endif7164                endif7165 7166                if dead7167                    break7168                endif7169 7170                if EnableWeightWarningMessage = 17171                    if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer "WeightTimer" > 60007172                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 27173                            overhead '[ WEIGHT WARNING... ]' 777174                            settimer "WeightTimer" 07175                        else7176                            overhead " � " 777177                            settimer "WeightTimer" 07178                        endif7179                    elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer "WeightTimer" > 60007180                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 27181                            overhead '[ WEIGHT WARNING! ]' 1537182                            settimer "WeightTimer" 07183                        else7184                            overhead " � " 1537185                            settimer "WeightTimer" 07186                        endif7187                    elseif diffweight < RedWeightLimitDiffWeight7188                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 27189                            if timer "WeightMessageTimer" > 60007190                                overhead '[ WEIGHT LIMIT REACHED! ]' 377191                                settimer "WeightMessageTimer" 07192                            endif7193                        else7194                            if timer "WeightMessageTimer" > 60007195                                overhead " � " 377196                                settimer "WeightMessageTimer" 07197                            endif7198                        endif7199 7200                        if EnableAutoWeightRecall = 1 and not find ClosestTarget ground -1 -1 8 and WILDERNESSMODE = 17201                            wait 10007202                            hotkey 'Toggle Peace Only'7203                            @setvar! AutoWeightRecall 17204                            replay7205                        elseif EnableAutoWeightRecall = 1 and find ClosestTarget ground -1 -1 8 and WILDERNESSMODE = 17206                            if timer "RECALLDELAY" > 3500 and EnableAutoRecallOverheadMessages = 17207                                overhead '[ WAITING TO RECALL... ]' 1497208                                settimer "RECALLDELAY" 07209                            endif7210                            wait 5007211                        elseif EnableAutoWeightDungeonGate = 1 and DUNGEONMODE = 17212                            wait 5007213                            hotkey 'Toggle Peace Only'7214                            @setvar! TimeToGo 17215                            replay7216                        else7217                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 27218                                overhead '[ OVERWEIGHT! ]' 3377219                            else7220                                overhead " � " 3377221                            endif7222                            wait 15007223                            overhead '[ STOPPING SCRIPT! ]' 887224                            stop7225                        endif7226                    endif7227                endif7228 7229                if warmode7230                    clearsysmsg7231                    hotkey 'target closest grey monster'7232                    getlabel backpack backpacklabel7233                    @setvar! TargetToAnalyze lasttarget7234                    wait 2507235 7236                    if insysmsg 'No one matching that'7237                        if timer NothingToTargetMessageTimer > 35007238                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 27239                                overhead '[ NOTHING TO TARGET... ]' 23387240                            else7241                                overhead ' � ' 23387242                            endif7243                            settimer NothingToTargetMessageTimer 07244                        endif7245                        clearsysmsg7246                    else7247                        @setvar! AttackModeActive 07248                        @setvar! NoTargetMode 07249                        break7250                    endif7251                endif7252 7253                while not warmode7254                    if TimeToGo = 17255                        break7256                    else7257                        if WILDERNESSMODE = 17258                            if EnableAutoRedRecall = 1 or EnableAutoWeightRecall = 17259                                overhead '[ RECALLING IN... ]' 21147260                                if warmode7261                                    break7262                                endif7263                                wait 5007264                                overhead "3" 697265                                wait 10007266                                if warmode7267                                    break7268                                endif7269                                overhead "2" 697270                                wait 10007271                                if warmode7272                                    break7273                                endif7274                                overhead "1" 697275                                wait 5007276                                if warmode7277                                    break7278                                else7279                                    @setvar! TimeToGo 17280                                    @setvar! AutoRecallTime 17281                                    break7282                                endif7283                            endif7284                        elseif DUNGEONMODE = 17285                            if EnableAutoRedDungeonGate = 1 or EnableAutoWeightDungeonGate = 17286                                if EnableOverheadMessages = 1 or EnableOverheadMessages = 27287                                    overhead '[ DUNGEON ESCAPE! ]' 3377288                                else7289                                    overhead "�" 3377290                                endif7291                                hotkey 'Toggle Peace Only'7292                                @setvar! TimeToGo 17293                                getlabel backpack backpacklabel7294                                wait 2507295                                break7296                            endif7297                        endif7298                    endif7299                endwhile7300 7301                if TimeToGo = 1 and not warmode7302                    break7303                endif7304 7305                if EnableDIYRecallScript != 1 and diffhits < CastGreaterHealHPdiff7306                    if EnableAutoRedRecall = 1 or EnableAutoWeightRecall = 1 or EnableRecallAfterResurrection = 1 or EnableRecallAfterDungeonGate = 17307                        if not varexist AutoRecallChargedRunebook7308                            wait 5007309                            overhead "You have enabled Auto Recall (PK or Weight) and must select a runebook to continue!" 07310                            wait 15007311                            overhead "Select your escape runebook..." 2537312                            setvar AutoRecallChargedRunebook7313                            wait 5007314                            while targetexists7315                                wait 1007316                            endwhile7317                            sysmsg "Will cast to 'default rune' in Runebook (if 'casting' enabled) or uses scrolls to 'first location' in Runebook (if no Magery skill)" 1537318                            wait 15007319                        endif7320                        if not find AutoRecallChargedRunebook self7321                            overhead "[ NO RUNEBOOK FOUND! ]" 3377322                            wait 15007323                            overhead "Select your new escape runebook..." 2537324                            wait 5007325                            setvar AutoRecallChargedRunebook7326                            wait 2507327                            while targetexists7328                                if diffhits > CastGreaterHealHPdiff7329                                    break7330                                endif 7331                                wait 1007332                            endwhile7333                        endif7334                    endif7335                endif7336        7337                if EnableLootBag = 1 and IHAVEDIED != 1 and diffhits < CastGreaterHealHPdiff7338                    if EnableAutoRedRecall = 1 or EnableAutoWeightRecall = 1 or EnableRecallAfterResurrection = 1 or EnableRecallAfterDungeonGate = 17339                        if not varexist LootBag7340                            wait 5007341                            overhead "Please select your loot bag..." 2537342                            wait 10007343                            overhead "This should be whatever is set as your 'Grab Bag' and will be opened when unloading loot after recalling..." 07344                            setvar LootBag7345                            wait 5007346                            while targetexists7347                                wait 1007348                            endwhile7349                        endif7350                        if not find LootBag self7351                            overhead "[ NO LOOT BAG ]" 3377352                            wait 15007353                            overhead "Select your new loot bag..." 2537354                            wait 5007355                            setvar LootBag7356                            wait 2507357                            while targetexists7358                                if diffhits > CastGreaterHealHPdiff7359                                    break7360                                endif 7361                                wait 1007362                            endwhile7363                        endif7364                    endif7365                endif7366 7367                if EnableAutoSatchels = 1 and diffhits < CastGreaterHealHPdiff7368                    if findtype "3962|3963|3972|3973|3974|3976|3980|3981" backpack and findtype "reagent satchel" self as MyWizardBag7369                        while findtype "reagent satchel" self as MyWizardBag7370                            getlabel MyWizardBag MyWizardBagdesc7371                            if 'decorative' in MyWizardBagdesc7372                                @ignore MyWizardBag7373                            else7374                                break7375                            endif7376                        endwhile7377                        if timer "WizardSatchelTimer" > 600007378                            menu MyWizardBag 07379                            wait 5007380                            settimer "WizardSatchelTimer" 07381                        endif7382                    endif7383                    if findtype "Yellow Potion|Orange Potion|Red Potion|White Potion|Blue Potion|Black Potion|" backpack and findtype 31262 self as MyPotBag7384                        if timer "PotionSatchelTimer" > 600007385                            menu MyPotBag 07386                            wait 5007387                            settimer "PotionSatchelTimer" 07388                        endif7389                    endif7390                endif7391 7392                if EnableAutoCarving = 1 and findtype 11552 self7393                    while findtype "corpse" ground -1 -1 2 as deadbody and diffhits < CastGreaterHealHPdiff7394                       settimer SkinningTimeoutTimer 07395                       if findtype 11552 self7396                            if targetexists7397                               hotkey 'cancel current target'7398                            endif7399 7400                            while not targetexists7401                                skill 'forensicevaluation'7402                                getlabel backpack backpacklabel7403                            endwhile7404 7405                            if targetexists and find deadbody ground -1 -1 27406                                target 'self'7407                                @ignore deadbody7408                                wait 2507409                            endif7410 7411                            if insysmsg "You dont see anything nearby"7412                                clearsysmsg7413                                break7414                            else7415                                if EnableOverheadMessages = 1 and timer SkinningTimer > 30007416                                    overhead '[ SKINNING... ]' 3337417                                    settimer SkinningTimer 07418                                endif7419                            endif7420                        else7421                            if EnableOverheadMessages = 1 and timer SkinningTimer > 150007422                                overhead '[ NO SKINNING KNIFE ]' 3377423                                settimer SkinningTimer 07424                                break7425                            endif7426                        endif7427 7428                        if timer SkinningTimeoutTimer > 1500 or diffhits > CastGreaterHealHPdiff7429                            break7430                        endif7431                    endwhile7432                endif7433 7434                if followers > 07435                    if skill 'spiritspeak' >= 50 and timer 'SpiritSpeakTimer' > 10000 and findtype 'corpse' ground -1 -1 15 and EnableNecroVengefulSpirit = 07436                        getlabel backpack backpacklabel7437                        skill 'spiritspeak'7438                        wait 2507439                        settimer 'SpiritSpeakTimer' 07440                        if insysmsg 'You establish contact'7441                            if EnableOverheadMessages = 17442                                overhead '[ CONSUMING SOULS... ]' 11097443                            else7444                                overhead '*consuming souls...*' 11097445                            endif7446                        endif7447                    endif7448                endif7449 7450                if TimeToGo = 1 and not warmode7451                    break7452                endif7453 7454                if EnableTrackingAutoRecall = 1 and TimeToGo != 17455                    if PKTrackingRange = 607456                        if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"7457                            hotkey 'Toggle Peace Only'7458                            if EnableRedAlertOverhead = 17459                                overhead '[ !! RED ALERT !! ]' 377460                            endif7461                            @setvar! RedTargetFound 17462                            @setvar! TimeToGo 17463                            clearsysmsg7464                            replay7465                        endif7466                    elseif PKTrackingRange = 507467                        if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"7468                            hotkey 'Toggle Peace Only'7469                            if EnableRedAlertOverhead = 17470                                overhead '[ !! RED ALERT !! ]' 377471                            endif7472                            @setvar! RedTargetFound 17473                            @setvar! TimeToGo 17474                            clearsysmsg7475                            replay7476                        endif7477                    elseif PKTrackingRange = 407478                        if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"7479                            hotkey 'Toggle Peace Only'7480                            if EnableRedAlertOverhead = 17481                                overhead '[ !! RED ALERT !! ]' 377482                            endif7483                            @setvar! RedTargetFound 17484                            @setvar! TimeToGo 17485                            clearsysmsg7486                            replay7487                        endif7488                    elseif PKTrackingRange = 07489                        if insysmsg "Now tracking"7490                            hotkey 'Toggle Peace Only'7491                            if EnableRedAlertOverhead = 17492                                overhead '[ !! RED ALERT !! ]' 377493                            endif7494                            @setvar! RedTargetFound 17495                            @setvar! TimeToGo 17496                            clearsysmsg7497                            replay7498                        endif7499                    endif7500                endif7501 7502                if EnablePKradar = 1 and TimeToGo != 17503                    if timer "PKRadarTimer" > 15007504                        clearsysmsg7505                        hotkey 'Next Murderer Player Target'7506                        wait 2507507                        if insysmsg "No one matching that was found"7508                            settimer "PKRadarTimer" 07509                            clearsysmsg7510                        else7511                            if EnableRedAlertOverhead = 17512                                overhead "[ !! RED ALERT !! ]" 377513                            endif7514                            hotkey 'Toggle Peace Only'7515                            @setvar! RedTargetFound 17516                            @setvar! TimeToGo 17517                            @setvar! MurdererTarget lasttarget7518                            replay7519                        endif7520                    endif7521                endif7522 7523                if AutoTrapYourPouches = 1 and diffhits < CastGreaterHealHPdiff7524                    while findtype 3705 backpack 0 and findtype 3972 self and findtype 3973 self and findtype 3980 self7525                        cast 'magic trap'7526                        settimer AntiStallTimer 07527 7528                        while not targetexists and timer AntiStallTimer < 15007529                            if insysmsg "Your concentration is disturbed"7530                                interrupt7531                                @setvar! CastingWasInterrupted 17532                                break7533                            endif7534 7535                            if timer AntiStallTimer > 15007536                                settimer AntiStallTimer 07537                                break7538                            endif7539                        endwhile7540 7541                        if dead7542                            break7543                        endif7544 7545                        if diffhits >= CastGreaterHealHPdiff7546                            @setvar! AttackModeActive 17547                            break7548                        endif7549 7550                        if CastingWasInterrupted = 07551                            target self7552                        endif7553                        wait 2507554                    endwhile7555                endif7556 7557                if dead7558                    break7559                endif7560 7561                if warmode7562                    clearsysmsg7563                    hotkey 'target closest grey monster'7564                    getlabel backpack backpacklabel7565                    @setvar! TargetToAnalyze lasttarget7566                    wait 2507567 7568                    if insysmsg 'No one matching that'7569                        if timer NothingToTargetMessageTimer > 35007570                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 27571                                overhead '[ NOTHING TO TARGET... ]' 23387572                            else7573                                overhead ' � ' 23387574                            endif7575                            settimer NothingToTargetMessageTimer 07576                        endif7577                        clearsysmsg7578                    else7579                        @setvar! AttackModeActive 07580                        @setvar! NoTargetMode 07581                        break7582                    endif7583                endif7584 7585                if TimeToGo = 1 and not warmode7586                    break7587                endif7588 7589                if EnableUsePotionKegs = 1 and findtype 'empty bottle%s%' self and findtype 'keg' self and timer 'PotionKegPVPCooldown' > 300007590                    @setvar! PotionStockCheck 07591 7592                    while PotionStockCheck < 8 and findtype 'empty bottle%s%' self7593 7594                        if PotionStockCheck = 07595                            if HealingPotionAmount = 07596                                @setvar! PotionStockCheck 17597                            else7598                                @setvar! PotionType 38527599                                @setvar! KegColour 2537600                                @setvar! PotionAmounttoFill HealingPotionAmount7601                                @setvar! PotionStockCheck 17602                            endif7603                        elseif PotionStockCheck = 17604                            if CurePotionAmount = 07605                                 @setvar! PotionStockCheck 27606                            else7607                                @setvar! PotionType 38477608                                @setvar! KegColour 447609                                @setvar! PotionAmounttoFill CurePotionAmount7610                                @setvar! PotionStockCheck 27611                            endif7612                        elseif PotionStockCheck = 27613                            if RefreshPotionAmount = 07614                                @setvar! PotionStockCheck 37615                            else7616                                @setvar! PotionType 38517617                                @setvar! KegColour 377618                                @setvar! PotionAmounttoFill RefreshPotionAmount7619                                @setvar! PotionStockCheck 37620                            endif7621                        elseif PotionStockCheck = 37622                            if StrengthPotionAmount = 07623                                @setvar! PotionStockCheck 47624                            else7625                                @setvar! PotionType 38497626                                @setvar! KegColour 9567627                                @setvar! PotionAmounttoFill StrengthPotionAmount7628                                @setvar! PotionStockCheck 47629                            endif7630                        elseif PotionStockCheck = 47631                            if AgilityPotionAmount = 07632                                @setvar! PotionStockCheck 57633                            else7634                                @setvar! PotionType 38487635                                @setvar! KegColour 937636                                @setvar! PotionAmounttoFill AgilityPotionAmount7637                                @setvar! PotionStockCheck 57638                            endif7639                        elseif PotionStockCheck = 57640                            if ResistPotionAmount = 07641                                @setvar! PotionStockCheck 67642                            else7643                                @setvar! PotionType 38467644                                @setvar! KegColour 11097645                                @setvar! PotionAmounttoFill ResistPotionAmount7646                                @setvar! PotionStockCheck 67647                            endif7648                        elseif PotionStockCheck = 67649                            if PoisonPotionAmount = 07650                                @setvar! PotionStockCheck 77651                            else7652                                @setvar! PotionType 38507653                                @setvar! KegColour 3637654                                @setvar! PotionAmounttoFill PoisonPotionAmount7655                                @setvar! PotionStockCheck 77656                            endif7657                        elseif PotionStockCheck = 77658                            if ExplosionPotionAmount = 07659                                @setvar! PotionStockCheck 87660                            else7661                                @setvar! PotionType 38537662                                @setvar! KegColour 4197663                                @setvar! PotionAmounttoFill ExplosionPotionAmount7664                                @setvar! PotionStockCheck 87665                            endif7666                        else7667                            break7668                        endif7669 7670                        while counttype PotionType self < PotionAmounttoFill and warmode7671                            if not findtype 'empty bottle%s%' self7672                                if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50007673                                    overhead '[ NO EMPTY BOTTLES... ]' 3377674                                    settimer 'PotionKegTimer' 07675                                endif7676                                break7677                            endif7678 7679                            if diffhits > HealPotionHPdiff7680                                break7681                            endif7682 7683                            if not warmode7684                                break7685                            endif7686 7687                            if findtype 'keg' self KegColour as myKeg7688                                dclick myKeg7689                                wait 2507690                                if EnableOverheadMessages = 17691                                    if timer 'PotionKegTimer' > 20007692                                        overhead '[ FILLING POTS... ]' KegColour7693                                        settimer 'PotionKegTimer' 07694                                    endif7695                                endif7696                            else7697                                if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50007698                                    overhead '[ NO KEG TO USE... ]' KegColour7699                                    settimer 'PotionKegTimer' 07700                                endif7701                                break7702                            endif7703                            if insysmsg "You have been in combat with another player"7704                                settimer "PotionKegPVPCooldown" 07705                                break7706                            endif7707                        endwhile7708 7709                        if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self7710                            if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50007711                                overhead '[ NO EMPTY BOTTLES... ]' 3377712                                settimer 'PotionKegTimer' 07713                            endif7714                            break7715                        endif7716                    endwhile7717                endif7718 7719                if EnableStrengthPotion = 1 and diffhits < CastGreaterHealHPdiff7720                    if skill 'Alchemy' > 0 and skill 'Alchemy' < 27721                        if insysmsg "You may now use a strength" or not findbuff "Strength Potion Usage Cooldown"7722                            if findtype "White Potion" self7723                                dclicktype "White Potion"7724                                if EnableOverheadMessages = 1 and timer WhitePotionMessageTimer > 45007725                                    if insysmsg "potion satchel used"7726                                        overhead '[ FREE STRENGTH POTION ]' 9567727                                    else7728                                        overhead '[ STRENGTH POTION ]' 9567729                                    endif7730                                    clearsysmsg7731                                    settimer WhitePotionMessageTimer 07732                                endif7733                                wait 2507734                            else7735                                if timer WhitePotionMessageTimer > 45007736                                    overhead '[ NO STRENGTH POTS! ]' 3377737                                    settimer WhitePotionMessageTimer 07738                                endif7739                            endif7740                            clearsysmsg7741                        endif7742                    elseif skill 'Alchemy' = 07743                        if insysmsg "You may now use a strength" or not findbuff "Strength Potion Usage Cooldown"7744                            if findtype "White Potion" self7745                                dclicktype "White Potion"7746                                if EnableOverheadMessages = 1 and timer WhitePotionMessageTimer > 45007747                                    if insysmsg "potion satchel used"7748                                        overhead '[ FREE STRENGTH POTION ]' 9567749                                    else7750                                        overhead '[ STRENGTH POTION ]' 9567751                                    endif7752                                    clearsysmsg7753                                    settimer WhitePotionMessageTimer 07754                                endif7755                                wait 2507756                            else7757                                if timer WhitePotionMessageTimer > 45007758                                    overhead '[ NO STRENGTH POTS! ]' 3377759                                    settimer WhitePotionMessageTimer 07760                                endif7761                            endif7762                            clearsysmsg7763                        endif7764                    else7765                        if not findbuff "Strength"7766                            if findtype "White Potion" self7767                                dclicktype "White Potion"7768                                if EnableOverheadMessages = 1 and timer WhitePotionMessageTimer > 45007769                                    if insysmsg "potion satchel used"7770                                        overhead '[ FREE STRENGTH POTION ]' 9567771                                    else7772                                        overhead '[ STRENGTH POTION ]' 9567773                                    endif7774                                    clearsysmsg7775                                    settimer WhitePotionMessageTimer 07776                                endif7777                                wait 2507778                            else7779                                if timer WhitePotionMessageTimer > 45007780                                    overhead '[ NO STRENGTH POTS! ]' 3377781                                    settimer WhitePotionMessageTimer 07782                                endif7783                            endif7784                        endif7785                    endif7786                endif7787 7788                if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff7789                    if findtype "Yellow Potion" self as HealPot7790                        getlabel HealPot HealPotlabel7791                        if "next" in HealPotlabel7792                            // Do nothing7793                        else7794                            @setvar! HealPotionCheck 07795 7796                            if counttype 3852 self as HealPotCount7797                                @setvar! HealPotionCheck HealPotCount7798                            endif7799                            clearsysmsg7800                            dclicktype 38527801                            getlabel backpack backpackdesc7802                            wait 2507803                            if insysmsg "potion satchel used"7804                                settimer 'HealPotionTimer' 07805                                cooldown "Healing Potion" HealingPotionCooldown7806                                if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 45007807                                    overhead '[ FREE HEAL POTION ]' 2537808                                endif7809                            elseif HealPotionCheck != counttype 3852 self7810                                settimer 'HealPotionTimer' 07811                                cooldown "Healing Potion" HealingPotionCooldown7812                                if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 45007813                                    overhead '[ HEAL POTION ]' 2537814                                endif7815                            endif7816                            clearsysmsg7817                        endif7818                    else7819                        if timer 'HealPotionMessageTimer' > 4500 and EnableOverheadMessages = 17820                            overhead '[ NO HEAL POTS! ]' 3377821                            settimer 'HealPotionMessageTimer' 07822                        endif7823                    endif7824                endif7825 7826                if skill 'healing' > 0 and hp < maxhp and not bandaging7827                    if findtype 'clean bandage%s%' self7828                        hotkey 'Bandage Self'7829                        if EnableOverheadMessages = 17830                            overhead '[ BANDAGING... ]' 887831                        endif7832                    else7833                        if EnableOverheadMessages = 17834                            overhead '[ NO BANDAGES! ]' 3377835                        endif7836                    endif7837                endif7838 7839                if not findtype 3972 self or not findtype 3973 self or not findtype 3974 self or not findtype 3981 self7840                    @setvar! missingGreaterHealRegs 17841                    getlabel backpack backpacklabel7842                else7843                    @setvar! missingGreaterHealRegs 07844                endif7845 7846                if not findtype 3972 self or not findtype 3973 self or not findtype 3974 self7847                    @setvar! missingHealRegs 17848                    getlabel backpack backpacklabel7849                else7850                    @setvar! missingHealRegs 07851                endif7852 7853                if missingGreaterHealRegs = 1 or missingHealRegs = 17854                    if timer NoHealRegsTimer > 40007855                        overhead '[ MISSING HEALING REGS! ]' 3377856                        settimer NoHealRegsTimer 07857                    endif7858                endif7859 7860                @setvar! SpellInterrupted 07861                clearsysmsg7862 7863                if skill 'magery' >= 60 and diffhits >= CastGreaterHealHPdiff and diffhits <= CastHealHPdiff and mana >= 11 and EnableCastGreaterHeal = 1 and not casting and missingGreaterHealRegs != 17864                    say 'All guard me' 22347865                    @setvar! SpellInterrupted 07866                    cast 'greater heal'7867                    getlabel backpack backpacklabel7868                    settimer spellTimer 07869                    @setvar! spellCD 25007870                    while not targetexists and timer spellTimer < spellCD7871                        if insysmsg "Your concentration is disturbed"7872                            interrupt7873                            @setvar! SpellInterrupted 17874                            break7875                        endif7876                        if timer spellTimer > spellCD7877                            break7878                        endif7879                    endwhile7880                    if SpellInterrupted = 07881                        target 'self'7882                    endif7883                elseif skill 'magery' >= 40 and diffhits >= CastHealHPdiff and diffhits < CastEmergencyHealHPdiff and mana >= 4 and EnableCastHeal = 1 and not casting and missingHealRegs != 17884                    say 'All guard me' 22347885                    @setvar! SpellInterrupted 07886                    cast 'heal'7887                    getlabel backpack backpacklabel7888                    settimer AntiStallTimer 07889                    while not targetexists and timer AntiStallTimer < 15007890                        if insysmsg "Your concentration is disturbed"7891                            interrupt7892                            @setvar! SpellInterrupted 17893                            break7894                        endif7895                        if timer AntiStallTimer > 15007896                            settimer AntiStallTimer 07897                            break7898                        endif7899                    endwhile7900                    if SpellInterrupted = 07901                        target 'self'7902                    endif7903                elseif skill 'magery' >= 40 and diffhits >= CastEmergencyHealHPdiff and mana >= 4 and EnableCastHeal = 1 and not casting and missingHealRegs != 17904                    say 'All guard me' 22347905                    while diffhits > CastGreaterHealHPdiff and mana >= 4 and findtype 3972 self and findtype 3973 self and findtype 3974 self and not dead7906                        if targetexists7907                            hotkey 'Cancel current target'7908                        endif7909                        @setvar! SpellInterrupted 07910                        cast 'heal'7911                        getlabel backpack backpacklabel7912                        settimer AntiStallTimer 07913                        while not targetexists and timer AntiStallTimer < 15007914                            if insysmsg "Your concentration is disturbed"7915                                interrupt7916                                @setvar! SpellInterrupted 17917                                break7918                            endif7919 7920                            if timer AntiStallTimer > 15007921                                settimer AntiStallTimer 07922                                break7923                            endif7924                        endwhile7925                        if SpellInterrupted = 07926                            target 'self'7927                            getlabel backpack backpacklabel7928                        endif7929                        if diffhits <= CastGreaterHealHPdiff7930                            break7931                        endif7932                    endwhile7933                endif7934 7935                if EnableAgilityPotion = 1 and not findbuff "Agility" and diffhits < CastGreaterHealHPdiff7936                    if findtype "Blue Potion" self7937                        dclicktype "Blue Potion"7938                            if EnableOverheadMessages = 1 and timer BluePotionMessageTimer > 45007939                                if insysmsg "potion satchel used"7940                                    overhead '[ FREE AGILITY POTION ]' 937941                                else7942                                    overhead '[ AGILITY POTION ]' 937943                                endif7944                                clearsysmsg7945                                settimer BluePotionMessageTimer 07946                            endif7947                        wait 2507948                    else7949                        if timer BluePotionMessageTimer > 45007950                        overhead '[ NO AGILITY POTS! ]' 3377951                            settimer BluePotionMessageTimer 07952                        endif7953                    endif7954                endif7955 7956                if EnableMagicResistPotion = 1 and not findbuff "Magic Resist" and diffhits < CastGreaterHealHPdiff7957                    if findtype "Black Potion" self7958                        dclicktype "Black Potion"7959                            if EnableOverheadMessages = 1 and timer BlackPotionMessageTimer > 45007960                                if insysmsg "potion satchel used"7961                                    overhead '[ FREE RESIST POTION ]' 11097962                                else7963                                    overhead '[ RESIST POTION ]' 11097964                                endif7965                                clearsysmsg7966                                settimer BlackPotionMessageTimer 07967                            endif7968                        wait 2507969                    else7970                        if timer BlackPotionMessageTimer > 45007971                            overhead '[ NO RESIST POTS! ]' 3377972                            settimer BlackPotionMessageTimer 07973                        endif7974                    endif7975                endif7976 7977                if TimeToGo = 1 and warmode7978                    break7979                endif7980 7981                if EnableEatMagicMushrooms = 17982                    if diffmana > EatMushroomManadiff and timer MushroomTimer > 600007983                        if counttype 29012 backpack7984                            dclicktype 29012 backpack7985                            getlabel backpack packdesc7986                            wait 2507987                            if insysmsg "You consume a magic mushroom"7988                                settimer MushroomTimer 07989                                cooldown "Mushroom" 600007990                                if EnableOverheadMessages = 17991                                    overhead '[ EATING SHROOMS... ]' 137992                                endif7993                            endif7994                        elseif EnableOverheadMessages = 17995                            overhead '[ OUT OF SHROOMS! ]' 3377996                        endif7997                    endif7998                endif7999 8000                if warmode8001                    clearsysmsg8002                    hotkey 'target closest grey monster'8003                    getlabel backpack backpacklabel8004                    @setvar! TargetToAnalyze lasttarget8005                    wait 2508006 8007                    if insysmsg 'No one matching that'8008                        if timer NothingToTargetMessageTimer > 35008009                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 28010                                overhead '[ NOTHING TO TARGET... ]' 23388011                            else8012                                overhead ' � ' 23388013                            endif8014                            settimer NothingToTargetMessageTimer 08015                        endif8016                        clearsysmsg8017                    else8018                        @setvar! AttackModeActive 08019                        @setvar! NoTargetMode 08020                        break8021                    endif8022                endif8023 8024                if warmode8025                    if EnableMagicReflection = 1 and skill 'magery' >= 70 and not findbuff "Magic Reflection" and mana >= MinimumManaToApplyMageryBuffs and diffhits < CastGreaterHealHPdiff and timer MagicReflectTimer > 15000 and findtype 3972 self and findtype 3974 self and findtype 3981 self8026                        if targetexists8027                            hotkey 'cancel current target'8028                        endif8029                        cast 'Magic Reflection'8030                        while not casting8031                            wait 2508032                            if insysmsg "that spell will not" or insysmsg "that spell is already" or insysmsg "You must wait"8033                                settimer MagicReflectTimer 08034                                clearsysmsg8035                                break8036                            endif8037                            if targetexists8038                                hotkey 'cancel current target'8039                            endif8040                            cast 'Magic Reflection'8041                        endwhile8042                        while casting8043                            if timer MagicReflectTimer < 50008044                                break8045                            endif8046                            if diffhits >= CastGreaterHealHPdiff8047                                interrupt8048                                @setvar! AttackModeActive 18049                                break8050                            endif8051 8052                            if EnableCurePotion = 18053                                while poisoned and casting and not targetexists8054                                    if findtype "Orange Potion" self8055                                        dclicktype "Orange Potion"8056                                        if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 35008057                                            if insysmsg "potion satchel used"8058                                                overhead '[ FREE CURE POTION ]' 448059                                            else8060                                                overhead '[ CURE POTION ]' 448061                                            endif8062                                            clearsysmsg8063                                            settimer 'CurePotionMessageTimer' 08064                                        endif8065                                        wait 5008066                                    else8067                                        if timer 'CurePotionMessageTimer' > 5000 and EnableOverheadMessages = 18068                                            overhead '[ NO CURE POTS! ]' 3378069                                            settimer 'CurePotionMessageTimer' 08070                                        endif8071                                        break8072                                    endif8073                                endwhile8074                            endif8075 8076                            if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff8077                                if findtype "Yellow Potion" self as HealPot8078                                    getlabel HealPot HealPotlabel8079                                    if "next" in HealPotlabel8080                                        // Do nothing8081                                    else8082                                        @setvar! HealPotionCheck 08083 8084                                        if counttype 3852 self as HealPotCount8085                                            @setvar! HealPotionCheck HealPotCount8086                                        endif8087                                        clearsysmsg8088                                        dclicktype 38528089                                        getlabel backpack backpackdesc8090                                        wait 2508091                                        if insysmsg "potion satchel used"8092                                            settimer 'HealPotionTimer' 08093                                            cooldown "Healing Potion" HealingPotionCooldown8094                                            if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 45008095                                                overhead '[ FREE HEAL POTION ]' 2538096                                            endif8097                                        elseif HealPotionCheck != counttype 3852 self8098                                            settimer 'HealPotionTimer' 08099                                            cooldown "Healing Potion" HealingPotionCooldown8100                                            if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 45008101                                                overhead '[ HEAL POTION ]' 2538102                                            endif8103                                        endif8104                                        clearsysmsg8105                                    endif8106                                else8107                                    if timer 'HealPotionMessageTimer' > 4500 and EnableOverheadMessages = 18108                                        overhead '[ NO HEAL POTS! ]' 3378109                                        settimer 'HealPotionMessageTimer' 08110                                    endif8111                                endif8112                            endif8113                        endwhile8114                        settimer MagicReflectTimer 08115                        wait 2508116 8117                        if dead8118                            break8119                        endif8120 8121                        if diffhits >= CastGreaterHealHPdiff8122                            @setvar! AttackModeActive 18123                            break8124                        endif8125                    endif8126 8127                    if EnableReactiveArmour = 1 and skill 'magery' >= 30 and not findbuff "Reactive Armor" and mana >= MinimumManaToApplyMageryBuffs and diffhits < CastGreaterHealHPdiff and timer ReactiveArmorTimer > 15000 and findtype 3980 self and findtype 3972 self and findtype 3981 self8128                        if targetexists8129                            hotkey 'cancel current target'8130                        endif8131                        cast 'Reactive Armor'8132                        settimer AntiStallTimer 08133                        while not casting and timer AntiStallTimer < 35008134                            wait 2508135                            if insysmsg "that spell will not" or insysmsg "that spell is already"8136                                settimer ReactiveArmorTimer 08137                                break8138                            endif8139                            if targetexists8140                                hotkey 'cancel current target'8141                            endif8142                            cast 'Reactive Armor'8143                        endwhile8144                        if timer ReactiveArmorTimer < 50008145                           // Do nothing8146                        else8147                            while casting8148                                wait 2508149                            endwhile8150                            settimer ReactiveArmorTimer 08151                        endif8152                        wait 2508153                    endif8154 8155                    if EnableArchProtection = 1 and skill 'magery' >= 60 and not findbuff "Protection" and mana >= MinimumManaToApplyMageryBuffs and diffhits < CastGreaterHealHPdiff and findtype 3980 self and findtype 3972 self and findtype 3973 self and findtype 3974 self8156                        if targetexists8157                            hotkey 'cancel current target'8158                        endif8159                        cast 'Arch Protection'8160                        settimer AntiStallTimer 08161                        while not casting and timer AntiStallTimer < 35008162                            if timer AntiStallTimer > 35008163                                settimer AntiStallTimer 08164                                break8165                            endif8166                            cast 'Arch Protection'8167                            wait 2508168                        endwhile8169                        while casting8170                            wait 2508171                        endwhile8172                        wft 5008173                        target 'self'8174                        wait 2508175                    elseif EnableProtection = 1 and skill 'magery' >= 40 and not findbuff "Protection" and mana >= MinimumManaToApplyMageryBuffs and diffhits < CastGreaterHealHPdiff and findtype 3980 self and findtype 3972 self and findtype 3973 self8176                        cast 'Protection'8177                        settimer AntiStallTimer 08178                        while not casting and timer AntiStallTimer < 35008179                            if timer AntiStallTimer > 35008180                                settimer AntiStallTimer 08181                                break8182                            endif8183                            cast 'Protection'8184                            wait 2508185                        endwhile8186                        while casting8187                            wait 2508188                        endwhile8189                    endif8190 8191                    if EnableBless = 1 and skill 'magery' >= 50 and not findbuff "Cunning" and mana >= MinimumManaToApplyMageryBuffs and diffhits < CastGreaterHealHPdiff and findtype 3972 self and findtype 3974 self8192                        if targetexists8193                            hotkey 'cancel current target'8194                        endif8195                        cast 'Bless'8196                        settimer AntiStallTimer 08197                        while not casting and timer AntiStallTimer < 35008198                            if timer AntiStallTimer > 35008199                                settimer AntiStallTimer 08200                                break8201                            endif8202                            cast 'Bless'8203                            wait 2508204                        endwhile8205                        while casting8206                            wait 2508207                        endwhile8208                        wft 15008209                        target 'self'8210                        wait 2508211                    endif8212                endif8213 8214                if EnableRefreshPotion = 1 and diffstam > RefreshPotionSPdiff8215                    if findtype "Red Potion" self8216                        dclicktype "Red Potion"8217                        if EnableOverheadMessages = 1 and timer RedPotionMessageTimer > 45008218                            if insysmsg "potion satchel used"8219                                overhead '[ FREE REFRESH POTION ]' 378220                            else8221                                overhead '[ REFRESH POTION ]' 378222                            endif8223                            clearsysmsg8224                            settimer RedPotionMessageTimer 08225                        endif8226                        wait 2508227                    else8228                        if timer RedPotionMessageTimer > 45008229                            overhead '[ NO REFRESH POTS! ]' 3378230                            settimer RedPotionMessageTimer 08231                        endif8232                    endif8233                endif8234 8235                if EnableGoldVacuum = 1 and DisableVacuums != 1 and warmode8236                    if findtype "gold coin" ground -1 -1 15 as droppedmoney and timer "GoldRadar" > 35008237                        overhead " � " 149 droppedmoney8238                        settimer "GoldRadar" 08239                    endif8240 8241                    while findtype "gold coin" ground -1 -1 2 as droppedmoney and diffhits < CastGreaterHealHPdiff8242                        overhead " � " 1498243                        hotkey "Grab Item"8244                        wft 25008245                        target droppedmoney8246                        wait 2508247 8248                        if dead8249                            break8250                        endif8251 8252                        if diffhits >= CastGreaterHealHPdiff8253                            @setvar! AttackModeActive 18254                            break8255                        endif8256 8257                        if insysmsg "Invalid or inaccessible item"8258                            wait 5008259                            @ignore droppedmoney8260                        endif8261                        wait 2508262                    endwhile8263                endif8264 8265                if not varexist "NoLockbox"8266                    @setvar! NoLockbox 08267                endif8268 8269                if findtype "wooden box" self and findtype "copper key" self8270                    @setvar! NoLockbox 08271                else8272                    @setvar! NoLockbox 18273                endif8274 8275                if EnablePutLootinLockBox = 1 and NoLockbox != 1 and timer LootTimer > StoreLootDelay and warmode and NeedtoSecureLoot = 18276                    if not findtype "wooden box" backpack or not findtype "copper key" backpack8277                        if EnableOverheadMessages != 08278                            overhead '[ NO LOCKBOX FOUND! ]' 3378279                        endif8280                        @setvar! NoLockbox 18281                        wait 15008282                    elseif counttype 2474 backpack > 1 or counttype 4110 backpack > 18283                        if EnableOverheadMessages != 08284                            overhead '[ TOO MANY LOCKBOXES/KEYS! ]' 3378285                        endif8286                        @setvar! NoLockbox 18287                        wait 15008288                    else8289                        if targetexists8290                            hotkey 'Cancel Current Target'8291                        endif8292 8293                        clearsysmsg8294                        hotkey 'Target closest grey monster'8295                        wait 2508296 8297                        if insysmsg "No one matching that was found"8298                            if findtype "wooden box" backpack as lockbox and findtype "copper key" backpack as key8299                                if EnableAutoCrookCheck = 18300                                    if listexists CrooksToUnignore8301                                        removelist CrooksToUnignore8302                                    endif8303                                    createlist CrooksToUnignore8304                                    for 58305                                    if findtype "shepherd's crook" self as myCrook8306                                        # '8307                                        getlabel myCrook crooklabel8308                                        wait 2508309                                        if 'activated' in crooklabel8310                                            @setvar! CrooktoIgnore myCrook8311                                            ignore CrooktoIgnore8312                                            break8313                                        else8314                                            pushlist CrooksToUnignore myCrook8315                                            @ignore myCrook8316                                        endif8317                                        wait 2508318                                    endif8319                                    endfor8320                                    foreach CrookToUnignore in CrooksToUnignore8321                                        @unignore CrookToUnignore8322                                    endfor8323                                    removelist CrooksToUnignore8324                                endif8325                                @ignore ItemToIgnore18326                                @ignore ItemToIgnore28327                                @ignore ItemToIgnore38328                                @ignore ItemToIgnore48329                                @ignore ItemToIgnore58330                                @setvar! FoundNewTarget 08331                                settimer STORELOOT 08332                                settimer LootTimer 08333                                settimer PKRadarTimer 08334                                getlabel lockbox lockboxLabel8335 8336                                if "items" in lockboxLabel8337                                    // Do nothing8338                                else8339                                    if EnableOverheadMessages != 08340                                        overhead "[loot box unlocked]" 848341                                    endif8342                                    dclick key8343                                    wft 15008344                                    target lockbox8345                                    getlabel backpack backpacklabel8346                                endif8347 8348                                removelist TemporaryLootIgnoreList8349                                createlist TemporaryLootIgnoreList8350 8351                                if findtype '3821|5356|70148|70151|70154|70157|30988|20016|11858|39889|39891|39892|39896|39897|39898|39905|39909|39911|39912|39916|39917|39918|3834|67713|67723|67734|67744|67754|67764|67773|67774|67775|67776|67777|67778|7109|31017|31019|31021|31023|31025|31027|31029|31031|31033|31035|31037|31038|31041|31043|31045|31047|31049|31051|31053|31055|31169|31172|31128|31141|31002|31130|31000|31001|31180|31182|31178|30991|30999|20014|20012|20010|20008|20006|30992|30997|31176|31188|30998|30989|30996|30995|31186|31184|30990|30993|37181|4026|4025|31010|31008|31007|31006|31015|31005|31009|31012|31011|31004|31003|31191|17686|31014|30994|31142|31190|24434|43206|29363|43166|22336|29348|17087|3985|8826|3827|29030|3836|5981|4248|5359|3839|3838|48407|3865|3859|3885|3856|3878|3877|3873|3861|3862|576|5123|7177|7027|3920|5131|5179|5075|5060|5076|5042|10245|3938|3913|7169|3909|5063|5089|7170|7033|3762|5040|5103|5117|7181|7029|3568|6264|3742|5139|6263|7026|5125|3740|5121|5204|5105|5185|5078|5115|7175|5059|7034|3713|3915|5112|5070|5049|5205|5046|7035|3911|7179|5106|5143|3573|3719|5177|7610|5181|3917|5132|7031|5207|5056|5085|3763|5129|5187|3721|5138|3570|5101|5061|5074|5142|5182|5146|6265|5090|5203|5044|5144|3932|5201|5127|3572|7173|5135|3937|3571|22326|27611|9917|8455|5362|45315|8454|22187|5901|7982|7983|7984|7985|7986|7987|7988|7989|7990|7991|7992|7993|7994|7995|7996|7997|7998|7999|8000|8001|8002|8003|8004|8005|8006|8007|8008|8009|8010|8011|8012|8013|8014|8015|8016|8017|8018|8019|8020|8021|8022|8023|8024|8025|8026|8027|8028|8029|8030|8031|8032|8034|8035|8036|8037|8038|8039|8040|8041|8042|8033|8044|3843|3842|15296|15297|29025|29034|29036|2472|2475|3648|3649|3650|3651|3708|3712|29832|29833|7107' backpack as loottostore8352 8353                                    //////////////////////////8354                                    //  LOOT STORAGE LOOP:  //8355                                    //////////////////////////8356 8357                                    while findtype '5356|70148|70151|70154|70157|30988|20016|11858|39889|39891|39892|39896|39897|39898|39905|39909|39911|39912|39916|3821|39917|39918|3834|67713|67723|67734|67744|67754|67764|67773|67774|67775|67776|67777|67778|7109|31017|31019|31021|31023|31025|31027|31029|31031|31033|31035|31037|31038|31041|31043|31045|31047|31049|31051|31053|31055|31169|31172|31128|31141|31002|31130|31000|31001|31180|31182|31178|30991|30999|20014|20012|20010|20008|20006|30992|30997|31176|31188|30998|30989|30996|30995|31186|31184|30990|30993|37181|4026|4025|31010|31008|31007|31006|31015|31005|31009|31012|31011|31004|31003|31191|17686|31014|30994|31142|31190|24434|43206|29363|43166|22336|29348|17087|3985|8826|3827|29030|3836|5981|4248|5359|3839|3838|48407|3865|3859|3885|3856|3878|3877|3873|3861|3862|576|5123|7177|7027|3920|5131|5179|5075|5060|5076|5042|10245|3938|3913|7169|3909|5063|5089|7170|7033|3762|5040|5103|5117|7181|7029|3568|6264|3742|5139|6263|7026|5125|3740|5121|5204|5105|5185|5078|5115|7175|5059|7034|3713|3915|5112|5070|5049|5205|5046|7035|3911|7179|5106|5143|3573|3719|5177|7610|5181|3917|5132|7031|5207|5056|5085|3763|5129|5187|3721|5138|3570|5101|5061|5074|5142|5182|5146|6265|5090|5203|5044|5144|3932|5201|5127|3572|7173|5135|3937|3571|22326|27611|9917|8455|5362|45315|8454|22187|5901|7982|7983|7984|7985|7986|7987|7988|7989|7990|7991|7992|7993|7994|7995|7996|7997|7998|7999|8000|8001|8002|8003|8004|8005|8006|8007|8008|8009|8010|8011|8012|8013|8014|8015|8016|8017|8018|8019|8020|8021|8022|8023|8024|8025|8026|8027|8028|8029|8030|8031|8032|8034|8035|8036|8037|8038|8039|8040|8041|8042|8033|8044|3843|3842|15296|15297|29025|29034|29036|2472|2475|3648|3649|3650|3651|3708|3712|29832|29833|7107' backpack as loottostore8358                                        if dead8359                                            break8360                                        endif8361 8362                                        if diffhits >= CastGreaterHealHPdiff8363                                            sysmsg 'Damage threshold exceeded - Loot storage loop cancelled!' 1538364                                            break8365                                        endif8366 8367                                        if not warmode8368                                            sysmsg 'Peace Mode triggered - Loot storage loop cancelled!' 1538369                                            hotkey 'Toggle War Only'8370                                            break8371                                        endif8372 8373                                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 28374                                            if timer "LootStorageTimer" > 32008375                                                overhead '[ SECURING LOOT... ]' 1498376                                                settimer "LootStorageTimer" 08377                                            endif8378                                        endif8379 8380                                        getlabel loottostore loottostorelabel8381                                        wait 2008382 8383                                        if "blessed" in loottostorelabel or "aspect" in loottostorelabel8384                                            @ignore loottostore8385                                            pushlist TemporaryLootIgnoreList loottostore8386                                        else8387                                            lift loottostore 600008388                                            drop lockbox -1 -1 -18389                                            wait 2008390                                            if find loottostore lockbox8391                                                @ignore loottostore8392                                            else8393                                                @ignore loottostore8394                                                pushlist TemporaryLootIgnoreList loottostore8395                                            endif8396                                        endif8397 8398                                        if insysmsg "to be locked"8399                                            clearsysmsg8400                                            dclick key8401                                            wft 15008402                                            target lockbox8403                                            wait 2508404                                        endif8405 8406                                        if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff and not dead8407                                            if findtype "Yellow Potion" self as HealPot8408                                                getlabel HealPot HealPotlabel8409                                                if "next" in HealPotlabel8410                                                    // Do nothing8411                                                else8412                                                    @setvar! HealPotionCheck 08413 8414                                                    if counttype 3852 self as HealPotCount8415                                                        @setvar! HealPotionCheck HealPotCount8416                                                    endif8417 8418                                                    clearsysmsg8419                                                    dclicktype 38528420                                                    getlabel backpack backpackdesc8421                                                    wait 2508422 8423                                                    if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"8424                                                        settimer 'HealPotionTimer' 08425                                                        cooldown "Healing Potion" HealingPotionCooldown8426                                                        if EnableOverheadMessages = 18427                                                            if insysmsg "potion satchel used"8428                                                                overhead '[ FREE HEAL POTION ]' 2538429                                                            else8430                                                                overhead "[ HEAL POTION ]" 2538431                                                            endif8432                                                        endif8433                                                        clearsysmsg8434                                                    endif8435                                                endif8436                                            else8437                                                if timer 'HealPotionMessageTimer' > 45008438                                                    overhead "[ NO HEAL POTS! ]" 3378439                                                    settimer 'HealPotionMessageTimer' 08440                                                endif8441                                            endif8442                                        endif8443 8444                                        if diffhits > 0 and not bandaging and not dead8445                                            if skill 'healing' > 08446                                                if findtype 'clean bandage%s%' self8447                                                    if targetexists8448                                                        hotkey 'cancel current target'8449                                                    endif8450                                                    hotkey 'Bandage Self'8451                                                    if EnableOverheadMessages = 18452                                                        if timer BandageMessageTimer > 50008453                                                            overhead "[ BANDAGING... ]" 888454                                                            settimer BandageMessageTimer 08455                                                        endif8456                                                    endif8457                                                else8458                                                    if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 18459                                                        overhead "[ OUT OF BANDAGES! ]" 3378460                                                        settimer BandageMessageTimer 08461                                                    endif8462                                                endif8463                                            endif8464                                        endif8465 8466                                        if EnableCurePotion = 1 and not dead8467                                            while poisoned8468                                                if findtype "Orange Potion" self8469                                                    dclicktype "Orange Potion"8470                                                    if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 35008471                                                        overhead "[ CURE POTION ]" 448472                                                        settimer 'CurePotionMessageTimer' 08473                                                    endif8474                                                    wait 2508475                                                else8476                                                    if timer 'CurePotionMessageTimer' > 50008477                                                        overhead "[ NO CURE POTS! ]" 3378478                                                        settimer 'CurePotionMessageTimer' 08479                                                    endif8480 8481                                                    if not findtype 3972 self or not findtype 3973 self8482                                                        break8483                                                    endif8484                                                endif8485                                                if not poisoned8486                                                    break8487                                                endif8488                                            endwhile8489                                        endif8490 8491                                        if EnablePKradar = 1 and TimeToGo != 18492                                            if timer "PKRadarTimer" > 20008493                                                clearsysmsg8494                                                hotkey 'Next Murderer Player Target'8495                                                wait 1508496                                                if insysmsg "No one matching that was found"8497                                                    settimer "PKRadarTimer" 08498                                                else8499                                                    hotkey 'Toggle Peace Only'8500                                                    @setvar! RedTargetFound 18501                                                    @setvar! TimeToGo 18502                                                    @setvar! MurdererTarget lasttarget8503                                                    if EnableRedAlertOverhead = 18504                                                        overhead "[ !! RED ALERT !! ]" 378505                                                    endif8506                                                    replay8507                                                endif8508                                            endif8509                                        endif8510 8511                                        if EnableTrackingAutoRecall = 1 and TimeToGo != 18512                                            if PKTrackingRange = 608513                                                if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"8514                                                    hotkey 'Toggle Peace Only'8515                                                    if EnableRedAlertOverhead = 18516                                                        overhead "[ !! RED ALERT !! ]" 378517                                                    endif8518                                                    @setvar! RedTargetFound 18519                                                    @setvar! TimeToGo 18520                                                    clearsysmsg8521                                                    replay8522                                                endif8523                                            elseif PKTrackingRange = 508524                                                if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"8525                                                    hotkey 'Toggle Peace Only'8526                                                    if EnableRedAlertOverhead = 18527                                                        overhead "[ !! RED ALERT !! ]" 378528                                                    endif8529                                                    @setvar! RedTargetFound 18530                                                    @setvar! TimeToGo 18531                                                    clearsysmsg8532                                                    replay8533                                                endif8534                                            elseif PKTrackingRange = 408535                                                if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"8536                                                    hotkey 'Toggle Peace Only'8537                                                    if EnableRedAlertOverhead = 18538                                                        overhead "[ !! RED ALERT !! ]" 378539                                                    endif8540                                                    @setvar! RedTargetFound 18541                                                    @setvar! TimeToGo 18542                                                    clearsysmsg8543                                                    replay8544                                                endif8545                                            elseif PKTrackingRange = 08546                                                if insysmsg "Now tracking"8547                                                    hotkey 'Toggle Peace Only'8548                                                    if EnableRedAlertOverhead = 18549                                                        overhead "[ !! RED ALERT !! ]" 378550                                                    endif8551                                                    @setvar! RedTargetFound 18552                                                    @setvar! TimeToGo 18553                                                    clearsysmsg8554                                                    replay8555                                                endif8556                                            endif8557                                        endif8558 8559                                        if timer 'STORELOOT' > 15008560                                            clearsysmsg8561                                            hotkey 'Target Closest Grey Monster'8562                                            getlabel backpack backpacklabel8563                                            wait 1008564                                            if insysmsg 'No one matching that was found'8565                                                @setvar! FoundNewTarget 08566                                                @setvar! LootTargetMOB 08567                                            else8568                                                @setvar! LootTargetMOB lasttarget8569                                                getlabel LootTargetMOB templabel8570                                                if inlist animalsIgnoreList tempLabel8571                                                    if timer "IgnoreMOBtimer" > 25008572                                                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 28573                                                            overhead '[ IGNORING MOB! ]' 333 LootTargetMOB8574                                                        else8575                                                            overhead " � " 333 LootTargetMOB8576                                                        endif8577                                                        getlabel backpack backpacklabel8578                                                        settimer "IgnoreMOBtimer" 08579                                                    endif8580                                                    @ignore LootTargetMOB8581                                                elseif find LootTargetMOB ground -1 -1 128582                                                    clearsysmsg8583                                                    skill 'begging'8584                                                    wft 5008585                                                    if not targetexists or insysmsg 'You must wait'8586                                                        clearsysmsg8587                                                        skill 'begging'8588                                                        wft 5008589                                                    endif8590                                                    target LootTargetMOB8591                                                    getlabel backpack backpackdesc8592 8593                                                    if not dead LootTargetMOB8594                                                        if insysmsg "Target cannot be seen" or insysmsg "That is too far away."8595                                                            @setvar! FoundNewTarget 08596                                                            @setvar! LootTargetMOB 08597                                                        elseif insysmsg "Perhaps" or insysmsg "They do not appear to have anything to offer you"8598                                                            sysmsg 'Nearby MOB detected - Loot storage loop cancelled!' 1538599                                                            @setvar! FoundNewTarget 18600                                                            break8601                                                        endif8602                                                    endif8603                                                else8604                                                    @setvar! LootTargetMOB 08605                                                endif8606                                            endif8607                                            settimer 'STORELOOT' 08608                                        endif8609                                    endwhile8610                                endif8611 8612                                /////////////////////////////8613                                //  END LOOT STORAGE LOOP  //8614                                /////////////////////////////8615 8616                                if not dead8617                                    dclick key8618                                    wft 15008619                                    target lockbox8620                                    if EnableOverheadMessages != 08621                                        overhead "[loot box locked]" 698622                                    endif8623                                    @setvar! NeedtoSecureLoot 08624                                endif8625 8626                                foreach TemporaryLootIgnore in TemporaryLootIgnoreList8627                                    @unignore TemporaryLootIgnore8628                                endfor8629 8630                                removelist TemporaryLootIgnoreList8631                                @unignore ItemToIgnore18632                                @unignore ItemToIgnore28633                                @unignore ItemToIgnore38634                                @unignore ItemToIgnore48635                                @unignore ItemToIgnore58636 8637                                if EnableAutoCrookCheck = 18638                                    @unignore CrooktoIgnore8639                                endif8640 8641                                @setvar! NeedtoSecureLoot 08642                                settimer LootTimer 08643                                getlabel lockbox lockboxLabel8644 8645                                if "items" in lockboxLabel and not dead8646                                    dclick key8647                                    wft 15008648                                    target lockbox8649                                endif8650                            endif8651                        else8652                            @setvar! TargetToAnalyze lasttarget8653                            getlabel backpack backpacklabel8654                            break8655                        endif8656                    endif8657                    settimer LootTimer 08658                endif8659 8660                if dead8661                    break8662                endif8663 8664                if FoundNewTarget = 18665                    @setvar! SkipTimers 18666                    @setvar! AttackModeActive 28667                    break8668                endif8669 8670                if EnableDungeonCleanup = 1 and diffhits < CastGreaterHealHPdiff and warmode8671                    while findtype "iron ingot%s|board%s|cut up leather|3972|3962|3963|3980|3976|3973|3974|3981" ground -1 -1 2 as item8672                        if EnableOverheadMessages = 18673                            if timer "DungeonCleanup" > 15008674                                overhead '[ CLEANUP... ]' 4208675                                settimer "DungeonCleanup" 08676                            endif8677                        else8678                            if timer "DungeonCleanup" > 15008679                                overhead ' � ' 4208680                                settimer "DungeonCleanup" 08681                            endif8682                        endif8683                        hotkey "Grab Item"8684                        wft 10008685                        target item8686                        wait 5008687                        if dead8688                            break8689                        endif8690                        if diffhits > CastGreaterHealHPdiff8691                            break8692                        endif8693                    endwhile8694 8695                    if findtype "iron ingot%s|board%s|cut up leather|3972|3962|3963|3980|3976|3973|3974|3981" ground -1 -1 15 as dungeonjunk and timer "DungeonCleanupRadar" > 35008696                        overhead "�" 420 dungeonjunk8697                        settimer "DungeonCleanupRadar" 08698                    endif8699                endif8700 8701                if dead8702                    break8703                endif8704 8705                if SummonEarthElemental_or_AncientMummy != 0 or SummonWaterElemental_or_RagWitch != 0 or SummonFireElemental_or_Lich != 0 or SummonAirElemental_or_SkeletalFiend != 0 or SummonDemon_or_VampireThrall != 0 or SummonCreature_or_UndeadCreature != 08706                    if followers < TotalSummonCount8707                        @setvar! AttackModeActive 28708                        replay8709                    endif8710                endif8711 8712                if targetexists8713                    hotkey 'cancel current target'8714                endif8715            endwhile8716 8717            if FoundNewTarget = 18718                @setvar! SkipTimers 18719                @setvar! AttackModeActive 28720                break8721            endif8722 8723            ////////////////////////////8724            //   END NO TARGET LOOP   //8725            ////////////////////////////8726 8727            getlabel backpack backpacklabel8728        else8729            @setvar! AttackModeActive 08730        endif8731    endif8732 8733    if not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and AttackModeActive = 1 and warmode and TimeToGo != 18734        // Skip target checks and begin attack loop!8735 8736    //////////////////////8737    //  TARGET CHECKER  //8738    //////////////////////8739 8740    elseif not dead TargetToAnalyze and find TargetToAnalyze ground -1 -1 12 and TimeToGo != 18741        if warmode8742            settimer AnalyzeTargetTimeout 08743            while diffhits < CastGreaterHealHPdiff and find TargetToAnalyze ground -1 -1 12 and AttackModeActive = 0 and warmode and timer AnalyzeTargetTimeout < 40008744                if EnableOverheadMessages = 1 or EnableOverheadMessages = 28745                    if timer AnalyzingTargetsTimer > 100008746                        overhead '[ ANALYZING TARGET... ]' 908747                        settimer AnalyzingTargetsTimer 08748                    endif8749                endif8750 8751                if dead8752                    break8753                endif8754 8755                if dead TargetToAnalyze or not find TargetToAnalyze ground -1 -1 128756                    @setvar! AttackModeActive 08757                    break8758                endif8759 8760                if timer AnalyzeTargetTimeout > 40008761                    @setvar! AttackModeActive 08762                    break8763                endif8764 8765                if EnableAutoCarving = 1 and findtype 11552 self8766                    while findtype "corpse" ground -1 -1 2 as deadbody and diffhits < CastGreaterHealHPdiff8767                        settimer SkinningTimeoutTimer 08768                        if findtype 11552 self8769                            if targetexists8770                                hotkey 'cancel current target'8771                            endif8772 8773                            while not targetexists8774                                skill 'forensicevaluation'8775                                getlabel backpack backpacklabel8776                            endwhile8777 8778                            clearsysmsg8779 8780                            if targetexists and find deadbody ground -1 -1 28781                                target 'self'8782                                @ignore deadbody8783                                wait 2508784                            endif8785 8786                            if insysmsg "You dont see anything nearby"8787                                clearsysmsg8788                                break8789                            else8790                                if EnableOverheadMessages = 1 and timer SkinningTimer > 30008791                                    overhead '[ SKINNING... ]' 3338792                                    settimer SkinningTimer 08793                                endif8794                                break8795                            endif8796                        else8797                            if EnableOverheadMessages = 1 and timer SkinningTimer > 150008798                                overhead '[ NO SKINNING KNIFE ]' 3378799                                settimer SkinningTimer 08800                                break8801                            endif8802                        endif8803 8804                        if timer SkinningTimeoutTimer > 1500 or diffhits > CastGreaterHealHPdiff8805                            break8806                        endif8807                    endwhile8808                endif8809 8810                if find TargetToAnalyze ground -1 -1 128811                    getlabel TargetToAnalyze tempLabel8812 8813                    while "-" in tempLabel8814                        getlabel TargetToAnalyze tempLabel8815                    endwhile8816 8817                    if inlist animalsIgnoreList tempLabel8818                        if timer "IgnoreMOBtimer" > 25008819                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 28820                                overhead '[ IGNORING MOB! ]' 333 TargetToAnalyze8821                            else8822                                overhead " � " 333 TargetToAnalyze8823                            endif8824                            getlabel backpack backpacklabel8825                            settimer "IgnoreMOBtimer" 08826                            @ignore TargetToAnalyze8827                        endif8828                        settimer NoTargetTimer 08829                    else8830                        clearsysmsg8831                        skill 'begging'8832                        settimer AntiStallTimer 08833                        wait 2508834                        while not targetexists8835                            if insysmsg 'you must wait'8836                                clearsysmsg8837                                skill 'begging'8838                                wait 2508839                            endif8840                            wait 2508841                            if timer AntiStallTimer > 15008842                                settimer AntiStallTimer 08843                                break8844                            endif8845                        endwhile8846 8847                        if targetexists8848                            target TargetToAnalyze8849                            getlabel backpack backpacklabel8850                        endif8851 8852                        if not dead TargetToAnalyze and find TargetToAnalyze ground -1 -1 128853                            if insysmsg "cannot be seen"8854                                if EnableOverheadMessages = 1 or EnableOverheadMessages = 28855                                    if timer "CannotSeeTargetTimer" > 30008856                                        overhead  '[ CANNOT SEE TARGET! ]' 448857                                        settimer "CannotSeeTargetTimer" 08858                                    endif8859                                elseif timer "CannotSeeTargetTimer" > 45008860                                    overhead " � " 44 TargetToAnalyze8861                                    settimer "CannotSeeTargetTimer" 08862                                endif8863 8864                                settimer NoTargetTimer 08865 8866                                if diffhits > CastGreaterHealHPdiff8867                                    break8868                                endif8869 8870                                clearsysmsg8871                                hotkey 'target closest grey monster'8872                                getlabel backpack backpacklabel8873                                @setvar! TargetToCheck lasttarget8874 8875                                if insysmsg 'No one matching that'8876                                    @setvar! AttackModeActive 08877                                    @setvar! TargetToAnalyze 08878                                    @setvar! TargetToCheck 08879                                    break8880                                elseif TargetToCheck != TargetToAnalyze8881                                    @setvar! AttackModeActive 08882                                    @setvar! TargetToAnalyze 08883                                    @setvar! TargetToCheck 08884                                    break8885                                elseif find TargetToAnalyze ground -1 -1 TargetAttackRange8886                                    @setvar! TargetToAnalyze lasttarget8887                                    @setvar! AttackModeActive 28888                                else8889                                    break8890                                endif8891                            elseif insysmsg "That is too far away."8892                                if EnableOverheadMessages = 1 or EnableOverheadMessages = 28893                                    if timer "TargetIsTooFarTimer" > 20008894                                        overhead '[ GET CLOSER! ]' 698895                                        overhead " � " 69 TargetToAnalyze8896                                        settimer "TargetIsTooFarTimer" 08897                                    endif8898                                elseif timer "TargetIsTooFarTimer" > 45008899                                    overhead " � " 44 TargetToAnalyze8900                                    settimer "TargetIsTooFarTimer" 08901                                endif8902                                settimer NoTargetTimer 08903                            elseif insysmsg "Perhaps" or insysmsg "You are too far away from them." or insysmsg "They do not appear to have anything to offer you." or insysmsg "You must wait" or insysmsg "You cannot beg from an individual"8904                                if find TargetToAnalyze ground -1 -1 TargetAttackRange8905                                    if ClosestTarget != TargetToAnalyze8906                                        settimer CurseTimer 600008907                                        settimer ManaDrainTimer 600008908                                        getlabel backpack backpacklabel8909                                    endif8910 8911                                    clearsysmsg8912                                    @setvar! ClosestTarget TargetToAnalyze8913                                    settimer 'PainSpikeDelayTimer' 08914                                    @setvar! ClosestTargetisSticky 08915 8916                                    say 'All kill' 22348917                                    wft 15008918                                    target ClosestTarget8919 8920                                    if timer "AttackTargetTimer" > 150008921                                        if EnableOverheadMessages != 08922                                            overhead '[ ATTACKING! ]' 698923                                        endif8924                                        settimer "AttackTargetTimer" 08925                                    endif8926 8927                                    @setvar! AttackModeActive 18928                                    @setvar! NoTargetMode 08929                                    @setvar! TargetSwap 08930                                    @setvar! ClosestTargetisSticky 08931                                    @setvar! RepeatCastingPoison 18932                                    settimer PainSpikeDelayTimer 08933                                    settimer TargetChecker 08934                                    settimer NoTargetTimer 08935 8936                                    if EnableNecroCorpseSkin = 18937                                        settimer CorpseSkinDiseaseTimer 08938                                    endif8939 8940                                    if find ClosestTarget ground -1 -1 TargetAttackRange8941                                        getlabel ClosestTarget TargetDesc8942                                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 28943                                            if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange8944                                                overhead '[ PARAGON! ]' 12 ClosestTarget8945                                                overhead " � " 12 ClosestTarget8946                                                settimer "TargetTimer" 08947                                            elseif find ClosestTarget ground -1 -1 TargetAttackRange8948                                                overhead '[ TARGET ]' 69 ClosestTarget8949                                                overhead " � " 69 ClosestTarget8950                                                settimer "TargetTimer" 08951                                            endif8952                                        else8953                                            if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange8954                                                overhead " ��� " 12 ClosestTarget8955                                                settimer "TargetTimer" 08956                                            elseif find ClosestTarget ground -1 -1 TargetAttackRange8957                                                overhead " � " 69 ClosestTarget8958                                                settimer "TargetTimer" 08959                                            endif8960                                        endif8961                                    endif8962                                    break8963                                else8964                                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 28965                                        if timer "TargetIsTooFarTimer" > 35008966                                            overhead '[ GET CLOSER! ]' 698967                                            settimer "TargetIsTooFarTimer" 08968                                        endif8969                                    elseif timer "TargetIsTooFarTimer" > 45008970                                        overhead " � " 69 TargetToAnalyze8971                                        settimer "TargetIsTooFarTimer" 08972                                    endif8973                                    settimer NoTargetTimer 08974                                endif8975                            endif8976                        else8977                            break8978                        endif8979                    endif8980                else8981                    @setvar! TargetToAnalyze 08982                    break8983                endif8984 8985                getlabel backpack backpacklabel8986 8987                if AttackModeActive != 08988                    break8989                endif8990 8991                if targetexists8992                    hotkey 'cancel current target'8993                endif8994 8995                if casting8996                    interrupt8997                endif8998            endwhile8999 9000            if dead9001                break9002            endif9003        else9004            if DUNGEONMODE = 19005                @setvar! TimeToGo 19006            elseif WILDERNESSMODE = 19007                @setvar! AutoRecallTime 19008            endif9009            replay9010        endif9011        getlabel backpack backpacklabel9012    endif9013 9014 9015    ////////////////////////9016    //       BUFFS:       //9017    ////////////////////////9018 9019    if dead9020        break9021    endif9022 9023    if not warmode9024        break9025    endif9026 9027    if EnableEatMagicMushrooms = 19028        if diffmana > EatMushroomManadiff and timer MushroomTimer > 600009029            if counttype 29012 backpack9030                dclicktype 29012 backpack9031                getlabel backpack packdesc9032                wait 2509033                if insysmsg "You consume a magic mushroom"9034                    settimer MushroomTimer 09035                    cooldown "Mushroom" 600009036                    if EnableOverheadMessages = 19037                        overhead '[ EATING SHROOMS... ]' 139038                    endif9039                endif9040            elseif EnableOverheadMessages = 19041                overhead '[ OUT OF SHROOMS! ]' 3379042            endif9043        endif9044    endif9045 9046    @setvar! CastingWasInterrupted 09047 9048    if EnableSpellbookCheck = 1 and not findtype "spellbook" hand9049        if findtype "spellbook" self as mySpellbook9050            for 59051            if findtype "spellbook" self as mySpellbook9052                getlabel mySpellbook mySpellbooklabel9053                if "aspect" in mySpellbooklabel9054                    break9055                elseif "unidentified" in mySpellbooklabel9056                    ignore mySpellbook9057                elseif "blessed" in mySpellbooklabel9058                    ignore mySpellbook9059                elseif "spells" in mySpellbooklabel9060                    ignore mySpellbook9061                else9062                    break9063                endif9064            endif9065            endfor9066            dclick mySpellbook9067            clearignore9068            getlabel backpack backpacklabel9069        else9070            if timer "SpellbookCheck" > 5000 and EnableOverheadMessages = 19071                overhead '[ NO SPELLBOOK! ]' 3379072                settimer "SpellbookCheck" 09073            endif9074        endif9075    endif9076 9077    if EnableAutoCrookCheck = 19078        if skill 'herding' > 50 and timer CrookCheckTimer > 100009079            if findtype "shepherd's crook" self9080                # '9081                if listexists CrooksToUnignore9082                    removelist CrooksToUnignore9083                endif9084                createlist CrooksToUnignore9085                for 59086                if findtype "shepherd's crook" self as myCrook9087                    # '9088                    getlabel myCrook crooklabel9089                    wait 2509090                    if 'activated' in crooklabel9091                        break9092                    elseif 'unidentified' in crooklabel9093                        pushlist CrooksToUnignore myCrook9094                        @ignore myCrook9095                    else9096                        if followers > 09097                            if EnableOverheadMessages = 19098                                overhead "[ ACTIVATING CROOK! ]" 21149099                            else9100                                overhead "*crook activated*" 21149101                            endif9102                            dclick myCrook9103                            wait 2509104                            break9105                        endif9106                    endif9107                    wait 2509108                endif9109                endfor9110                foreach CrookToUnignore in CrooksToUnignore9111                    @unignore CrookToUnignore9112                endfor9113                removelist CrooksToUnignore9114            elseif not findtype "shepherd's crook" self9115                # '9116                if EnableOverheadMessages != 09117                    if timer CrookCheckOverheadTimer > 150009118                        overhead "[ NO CROOK FOUND! ]" 3379119                        settimer CrookCheckOverheadTimer 09120                    endif9121                endif9122            endif9123            settimer CrookCheckTimer 09124        endif9125    endif9126 9127    @setvar! CastingWasInterrupted 09128 9129    if TimeToGo != 19130        if EnableMagicReflection = 1 and skill 'magery' >= 70 and not findbuff "Magic Reflection" and mana >= MinimumManaToApplyMageryBuffs and diffhits < CastGreaterHealHPdiff and timer MagicReflectTimer > 15000 and findtype 3972 self and findtype 3974 self and findtype 3981 self9131            if targetexists9132                hotkey 'cancel current target'9133            endif9134            cast 'Magic Reflection'9135            while not casting9136                wait 2509137                if insysmsg "that spell will not" or insysmsg "that spell is already" or insysmsg "You must wait"9138                    settimer MagicReflectTimer 09139                    clearsysmsg9140                    break9141                endif9142                if targetexists9143                    hotkey 'cancel current target'9144                endif9145                cast 'Magic Reflection'9146            endwhile9147            while casting9148                if timer MagicReflectTimer < 50009149                    break9150                endif9151                if diffhits >= CastGreaterHealHPdiff9152                    interrupt9153                    @setvar! AttackModeActive 19154                    break9155                endif9156 9157                if EnableCurePotion = 19158                    while poisoned and casting and not targetexists9159                        if findtype "Orange Potion" self9160                            dclicktype "Orange Potion"9161                            if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 35009162                                if insysmsg "potion satchel used"9163                                    overhead '[ FREE CURE POTION ]' 449164                                else9165                                    overhead '[ CURE POTION ]' 449166                                endif9167                                clearsysmsg9168                                settimer 'CurePotionMessageTimer' 09169                            endif9170                            wait 5009171                        else9172                            if timer 'CurePotionMessageTimer' > 5000 and EnableOverheadMessages = 19173                                overhead '[ NO CURE POTS! ]' 3379174                                settimer 'CurePotionMessageTimer' 09175                            endif9176                            break9177                        endif9178                    endwhile9179                endif9180 9181                if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff9182                    if findtype "Yellow Potion" self as HealPot9183                        getlabel HealPot HealPotlabel9184                        if "next" in HealPotlabel9185                            // Do nothing9186                        else9187                            @setvar! HealPotionCheck 09188 9189                            if counttype 3852 self as HealPotCount9190                                @setvar! HealPotionCheck HealPotCount9191                            endif9192                            clearsysmsg9193                            dclicktype 38529194                            getlabel backpack backpackdesc9195                            wait 2509196                            if insysmsg "potion satchel used"9197                                settimer 'HealPotionTimer' 09198                                cooldown "Healing Potion" HealingPotionCooldown9199                                if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 45009200                                    overhead '[ FREE HEAL POTION ]' 2539201                                endif9202                            elseif HealPotionCheck != counttype 3852 self9203                                settimer 'HealPotionTimer' 09204                                cooldown "Healing Potion" HealingPotionCooldown9205                                if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 45009206                                    overhead '[ HEAL POTION ]' 2539207                                endif9208                            endif9209                            clearsysmsg9210                        endif9211                    else9212                        if timer 'HealPotionMessageTimer' > 4500 and EnableOverheadMessages = 19213                            overhead '[ NO HEAL POTS! ]' 3379214                            settimer 'HealPotionMessageTimer' 09215                        endif9216                    endif9217                endif9218            endwhile9219            settimer MagicReflectTimer 09220            wait 2509221        endif9222 9223        if EnableReactiveArmour = 1 and skill 'magery' >= 30 and not findbuff "Reactive Armor" and mana >= MinimumManaToApplyMageryBuffs and diffhits < CastGreaterHealHPdiff and timer ReactiveArmorTimer > 15000 and findtype 3980 self and findtype 3972 self and findtype 3981 self9224            if targetexists9225                hotkey 'cancel current target'9226            endif9227            cast 'Reactive Armor'9228            settimer AntiStallTimer 09229            while not casting and timer AntiStallTimer < 35009230                wait 2509231                if insysmsg "that spell will not" or insysmsg "that spell is already"9232                    settimer ReactiveArmorTimer 09233                    break9234                endif9235                if targetexists9236                    hotkey 'cancel current target'9237                endif9238                cast 'Reactive Armor'9239            endwhile9240            if timer ReactiveArmorTimer < 50009241               // Do nothing9242            else9243                while casting9244                    wait 2509245                endwhile9246                settimer ReactiveArmorTimer 09247            endif9248            wait 2509249        endif9250 9251        if EnableArchProtection = 1 and skill 'magery' >= 60 and not findbuff "Protection" and mana >= MinimumManaToApplyMageryBuffs and diffhits < CastGreaterHealHPdiff and findtype 3980 self and findtype 3972 self and findtype 3973 self and findtype 3974 self9252            if targetexists9253                hotkey 'cancel current target'9254            endif9255            cast 'Arch Protection'9256            settimer AntiStallTimer 09257            while not casting and timer AntiStallTimer < 35009258                if timer AntiStallTimer > 35009259                    settimer AntiStallTimer 09260                    break9261                endif9262                cast 'Arch Protection'9263                wait 2509264            endwhile9265            while casting9266                wait 2509267            endwhile9268            wft 5009269            target 'self'9270            wait 2509271        elseif EnableProtection = 1 and skill 'magery' >= 40 and not findbuff "Protection" and mana >= MinimumManaToApplyMageryBuffs and diffhits < CastGreaterHealHPdiff and findtype 3980 self and findtype 3972 self and findtype 3973 self9272            cast 'Protection'9273            settimer AntiStallTimer 09274            while not casting and timer AntiStallTimer < 35009275                if timer AntiStallTimer > 35009276                    settimer AntiStallTimer 09277                    break9278                endif9279                cast 'Protection'9280                wait 2509281            endwhile9282            while casting9283                wait 2509284            endwhile9285        endif9286 9287        if EnableBless = 1 and skill 'magery' >= 50 and not findbuff "Cunning" and mana >= MinimumManaToApplyMageryBuffs and diffhits < CastGreaterHealHPdiff and findtype 3972 self and findtype 3974 self9288            if targetexists9289                hotkey 'cancel current target'9290            endif9291            cast 'Bless'9292            settimer AntiStallTimer 09293            while not casting and timer AntiStallTimer < 35009294                if timer AntiStallTimer > 35009295                    settimer AntiStallTimer 09296                    break9297                endif9298                cast 'Bless'9299                wait 2509300            endwhile9301            while casting9302                wait 2509303            endwhile9304            wft 15009305            target 'self'9306            wait 2509307        endif9308    endif9309 9310 9311    //////////////////////////9312    //  BEGIN ATTACK LOOP:  //9313    //////////////////////////9314 9315    while warmode and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and diffhits < CastGreaterHealHPdiff and AttackModeActive = 19316        while not warmode9317            if TimeToGo = 19318                break9319            else9320                if WILDERNESSMODE = 19321                    if EnableAutoRedRecall = 1 or EnableAutoWeightRecall = 19322                        overhead '[ RECALLING IN... ]' 21149323                        if warmode9324                            break9325                        endif9326                        wait 5009327                        overhead "3" 699328                        wait 10009329                        if warmode9330                            break9331                        endif9332                        overhead "2" 699333                        wait 10009334                        if warmode9335                            break9336                        endif9337                        overhead "1" 699338                        wait 5009339                        if warmode9340                            break9341                        else9342                            @setvar! TimeToGo 19343                            @setvar! AutoRecallTime 19344                            break9345                        endif9346                    endif9347                elseif DUNGEONMODE = 19348                    if EnableAutoRedDungeonGate = 1 or EnableAutoWeightDungeonGate = 19349                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 29350                            overhead '[ DUNGEON ESCAPE! ]' 3379351                        else9352                            overhead "�" 3379353                        endif9354                        hotkey 'Toggle Peace Only'9355                        @setvar! TimeToGo 19356                        getlabel backpack backpacklabel9357                        wait 2509358                        break9359                    endif9360                endif9361            endif9362        endwhile9363 9364        if not warmode and TimeToGo = 19365            break9366        endif9367 9368        if SummonEarthElemental_or_AncientMummy != 0 or SummonWaterElemental_or_RagWitch != 0 or SummonFireElemental_or_Lich != 0 or SummonAirElemental_or_SkeletalFiend != 0 or SummonDemon_or_VampireThrall != 0 or SummonCreature_or_UndeadCreature != 09369            if followers < TotalSummonCount9370                @setvar! AttackModeActive 29371                replay9372            endif9373        endif9374 9375        if timer "TargetTimer" > 3500 and find ClosestTarget ground -1 -1 TargetAttackRange9376            getlabel ClosestTarget TargetDesc9377            if EnableOverheadMessages = 1 or EnableOverheadMessages = 29378                if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange9379                    overhead '[ PARAGON! ]' 12 ClosestTarget9380                    overhead " � " 12 ClosestTarget9381                    settimer "TargetTimer" 09382                elseif find ClosestTarget ground -1 -1 TargetAttackRange9383                    overhead '[ TARGET ]' 253 ClosestTarget9384                    overhead " � " 253 ClosestTarget9385                    settimer "TargetTimer" 09386                endif9387            else9388                if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange9389                    overhead " ��� " 12 ClosestTarget9390                    settimer "TargetTimer" 09391                elseif find ClosestTarget ground -1 -1 TargetAttackRange9392                    overhead " � " 253 ClosestTarget9393                    settimer "TargetTimer" 09394                endif9395            endif9396        endif9397 9398        if EnableAutoCrookCheck = 19399            if skill 'herding' > 50 and timer CrookCheckTimer > 100009400                if findtype "shepherd's crook" self9401                    # '9402                    if listexists CrooksToUnignore9403                        removelist CrooksToUnignore9404                    endif9405                    createlist CrooksToUnignore9406                    for 59407                    if findtype "shepherd's crook" self as myCrook9408                        # '9409                        getlabel myCrook crooklabel9410                        wait 2509411                        if 'activated' in crooklabel9412                            break9413                        elseif 'unidentified' in crooklabel9414                            pushlist CrooksToUnignore myCrook9415                            @ignore myCrook9416                        else9417                            if followers > 09418                                if EnableOverheadMessages = 19419                                    overhead "[ ACTIVATING CROOK! ]" 21149420                                else9421                                    overhead "*crook activated*" 21149422                                endif9423                                dclick myCrook9424                                wait 2509425                                break9426                            endif9427                        endif9428                        wait 2509429                    endif9430                    endfor9431                    foreach CrookToUnignore in CrooksToUnignore9432                        @unignore CrookToUnignore9433                    endfor9434                    removelist CrooksToUnignore9435                elseif not findtype "shepherd's crook" self9436                    # '9437                    if EnableOverheadMessages != 09438                        if timer CrookCheckOverheadTimer > 150009439                            overhead "[ NO CROOK FOUND! ]" 3379440                            settimer CrookCheckOverheadTimer 09441                        endif9442                    endif9443                endif9444                settimer CrookCheckTimer 09445            endif9446        endif9447 9448        if EnableStrengthPotion = 1 and diffhits < CastGreaterHealHPdiff9449            if skill 'Alchemy' > 0 and skill 'Alchemy' < 29450                if insysmsg "You may now use a strength" or not findbuff "Strength Potion Usage Cooldown"9451                    if findtype "White Potion" self9452                        dclicktype "White Potion"9453                        if EnableOverheadMessages = 1 and timer WhitePotionMessageTimer > 45009454                            if insysmsg "potion satchel used"9455                                overhead '[ FREE STRENGTH POTION ]' 9569456                            else9457                                overhead '[ STRENGTH POTION ]' 9569458                            endif9459                            clearsysmsg9460                            settimer WhitePotionMessageTimer 09461                        endif9462                        wait 2509463                    else9464                        if timer WhitePotionMessageTimer > 45009465                            overhead '[ NO STRENGTH POTS! ]' 3379466                            settimer WhitePotionMessageTimer 09467                        endif9468                    endif9469                    clearsysmsg9470                endif9471            elseif skill 'Alchemy' = 09472                if insysmsg "You may now use a strength" or not findbuff "Strength Potion Usage Cooldown"9473                    if findtype "White Potion" self9474                        dclicktype "White Potion"9475                        if EnableOverheadMessages = 1 and timer WhitePotionMessageTimer > 45009476                            if insysmsg "potion satchel used"9477                                overhead '[ FREE STRENGTH POTION ]' 9569478                            else9479                                overhead '[ STRENGTH POTION ]' 9569480                            endif9481                            clearsysmsg9482                            settimer WhitePotionMessageTimer 09483                        endif9484                        wait 2509485                    else9486                        if timer WhitePotionMessageTimer > 45009487                            overhead '[ NO STRENGTH POTS! ]' 3379488                            settimer WhitePotionMessageTimer 09489                        endif9490                    endif9491                    clearsysmsg9492                endif9493            else9494                if not findbuff "Strength"9495                    if findtype "White Potion" self9496                        dclicktype "White Potion"9497                        if EnableOverheadMessages = 1 and timer WhitePotionMessageTimer > 45009498                            if insysmsg "potion satchel used"9499                                overhead '[ FREE STRENGTH POTION ]' 9569500                            else9501                                overhead '[ STRENGTH POTION ]' 9569502                            endif9503                            clearsysmsg9504                            settimer WhitePotionMessageTimer 09505                        endif9506                        wait 2509507                    else9508                        if timer WhitePotionMessageTimer > 45009509                            overhead '[ NO STRENGTH POTS! ]' 3379510                            settimer WhitePotionMessageTimer 09511                        endif9512                    endif9513                endif9514            endif9515        endif9516 9517        if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff9518            if findtype "Yellow Potion" self as HealPot9519                getlabel HealPot HealPotlabel9520                if "next" in HealPotlabel9521                    // Do nothing9522                else9523                    @setvar! HealPotionCheck 09524 9525                    if counttype 3852 self as HealPotCount9526                        @setvar! HealPotionCheck HealPotCount9527                    endif9528                    clearsysmsg9529                    dclicktype 38529530                    getlabel backpack backpackdesc9531                    wait 2509532                    if insysmsg "potion satchel used"9533                        settimer 'HealPotionTimer' 09534                        cooldown "Healing Potion" HealingPotionCooldown9535                        if EnableOverheadMessages = 1 and timer 'YellowPotionMessageTimer' > 45009536                            overhead '[ FREE HEAL POTION ]' 2539537                        endif9538                    elseif HealPotionCheck != counttype 3852 self9539                        settimer 'HealPotionTimer' 09540                        cooldown "Healing Potion" HealingPotionCooldown9541                        if EnableOverheadMessages = 1 and timer 'YellowPotionMessageTimer' > 45009542                            overhead '[ HEAL POTION ]' 2539543                        endif9544                    endif9545                    clearsysmsg9546                endif9547            else9548                if timer 'YellowPotionMessageTimer' > 4500 and EnableOverheadMessages = 19549                    overhead '[ NO HEAL POTS! ]' 3379550                    settimer 'YellowPotionMessageTimer' 09551                endif9552            endif9553        endif9554 9555        if skill 'healing' > 0 and hp < maxhp and not bandaging9556            if findtype 'clean bandage%s%' self9557                hotkey 'Bandage Self'9558                if EnableOverheadMessages = 19559                    overhead '[ BANDAGING... ]' 889560                endif9561            else9562                if EnableOverheadMessages = 19563                    overhead '[ NO BANDAGES! ]' 3379564                endif9565            endif9566        endif9567 9568        if EnableAgilityPotion = 1 and not findbuff "Agility" and diffhits < CastGreaterHealHPdiff9569            if findtype "Blue Potion" self9570                dclicktype "Blue Potion"9571                if EnableOverheadMessages = 1 and timer BluePotionMessageTimer > 45009572                    if insysmsg "potion satchel used"9573                        overhead '[ FREE AGILITY POTION ]' 939574                    else9575                        overhead '[ AGILITY POTION ]' 939576                    endif9577                    clearsysmsg9578                    settimer BluePotionMessageTimer 09579                endif9580                wait 2509581            else9582                if timer BluePotionMessageTimer > 4500 and EnableOverheadMessages = 19583                overhead '[ NO AGILITY POTS! ]' 3379584                    settimer BluePotionMessageTimer 09585                endif9586            endif9587        endif9588 9589        if EnableMagicResistPotion = 1 and not findbuff "Magic Resist" and diffhits < CastGreaterHealHPdiff9590            if findtype "Black Potion" self9591                dclicktype "Black Potion"9592                if EnableOverheadMessages = 1 and timer BlackPotionMessageTimer > 45009593                    if insysmsg "potion satchel used"9594                        overhead '[ FREE RESIST POTION ]' 11099595                    else9596                        overhead '[ RESIST POTION ]' 11099597                    endif9598                    clearsysmsg9599                    settimer BlackPotionMessageTimer 09600                endif9601                wait 2509602            else9603                if timer BlackPotionMessageTimer > 4500 and EnableOverheadMessages = 19604                    overhead '[ NO RESIST POTS! ]' 3379605                    settimer BlackPotionMessageTimer 09606                endif9607            endif9608        endif9609 9610        if EnableRefreshPotion = 1 and diffstam > RefreshPotionSPdiff9611            if findtype "Red Potion" self9612                dclicktype "Red Potion"9613                if EnableOverheadMessages = 1 and timer RedPotionMessageTimer > 45009614                    if insysmsg "potion satchel used"9615                        overhead '[ FREE REFRESH POTION ]' 379616                    else9617                        overhead '[ REFRESH POTION ]' 379618                    endif9619                    clearsysmsg9620                    settimer RedPotionMessageTimer 09621                endif9622                wait 2509623            else9624                if timer RedPotionMessageTimer > 4500 and EnableOverheadMessages = 19625                    overhead '[ NO REFRESH POTS! ]' 3379626                    settimer RedPotionMessageTimer 09627                endif9628            endif9629        endif9630 9631        if EnableAutoExplosionPots = 1 and diffhits < CastGreaterHealHPdiff9632            if findtype 'purple potion' self as explotPot9633                getlabel explotPot potLabel9634                if "(" in potLabel9635                    if timer PurplePotionTimer > PurplePotionCooldown9636                        @setvar! PurplePotionReady 19637                    else9638                        @setvar! PurplePotionReady 09639                    endif9640                else9641                    @setvar! PurplePotionReady 19642                endif9643 9644                if skill 'Alchemy' < 809645                    if timer TelekinesisTimer > 60000 or ClosestTargetisSticky = 09646                        if PurplePotionReady = 1 and find ClosestTarget ground -1 -1 TargetAttackRange and not dead ClosestTarget9647                            if findtype 'purple potion' self9648                                settimer AntiStallTimer 09649                                while not targetexists and timer AntiStallTimer < 15009650                                    if timer AntiStallTimer > 15009651                                        break9652                                    endif9653                                    cast 'Telekinesis'9654                                    wait 5009655                                endwhile9656                                clearsysmsg9657                                wft 5009658                                target ClosestTarget9659                                wait 2509660                                if insysmsg "You are too far"9661                                    @setvar! ClosestTargetisSticky 09662                                    clearsysmsg9663                                else9664                                    if EnableOverheadMessages = 1 and timer PurplePotionMessageTimer > 45009665                                        overhead  '[ EXPLOSION POTION! ]' 4199666                                        settimer PurplePotionMessageTimer 09667                                    endif9668                                    settimer TelekinesisTimer 09669                                    @setvar! ClosestTargetisSticky 19670                                endif9671                            endif9672                        endif9673                    endif9674                else9675                    @setvar! ClosestTargetisSticky 19676                endif9677            else9678                if EnableOverheadMessages = 1 and timer PurplePotionMessageTimer > 150009679                    overhead '[ NO PURPLE POTIONS ]' 3379680                    settimer PurplePotionMessageTimer 09681                endif9682            endif9683        endif9684 9685        @setvar! CastingWasInterrupted 09686 9687        if targetexists9688            hotkey 'cancel current target'9689        endif9690 9691        if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange9692            @setvar! RepeatCastingPoison 09693            @setvar! AttackModeActive 09694            @setvar! ClosestTargetisSticky 09695            @setvar! TargetSwap 09696            settimer TargetChecker 09697            break9698        endif9699 9700        if EnableAutoExplosionPots = 19701            if timer TelekinesisTimer > 600009702                @setvar! ClosestTargetisSticky 09703                settimer TelekinesisTimer 09704            endif9705        endif9706 9707        if PurplePotionReady = 1 and ClosestTargetisSticky = 1 and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and diffhits < CastGreaterHealHPdiff9708            settimer AntiStallTimer 09709            while not insysmsg "Where should i throw this potion?" and timer AntiStallTimer < 15009710                potion 'explosion'9711                if timer AntiStallTimer > 15009712                    settimer AntiStallTimer 09713                    break9714                endif9715            endwhile9716 9717            @setvar! PurplePotionReady 09718            settimer PurplePotionTimer 09719            settimer AntiStallTimer 09720 9721            while not targetexists and timer AntiStallTimer < 15009722                if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange9723                    @setvar! RepeatCastingPoison 09724                    @setvar! AttackModeActive 09725                    @setvar! ClosestTargetisSticky 09726                    @setvar! CastingWasInterrupted 19727                    @setvar! TargetSwap 09728                    hotkey 'cancel current target'9729                    break9730                endif9731 9732                if timer AntiStallTimer > 15009733                    settimer AntiStallTimer 09734                    break9735                endif9736            endwhile9737 9738            if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange9739                break9740            endif9741 9742            if CastingWasInterrupted = 09743                target ClosestTarget9744                cooldown "Purple Potion" PurplePotionCooldown9745                getlabel backpack packdesc9746                wait 2509747            endif9748        endif9749 9750        if EnableEatMagicMushrooms = 19751            if diffmana > EatMushroomManadiff and timer MushroomTimer > 600009752                if counttype 29012 backpack9753                    dclicktype 29012 backpack9754                    getlabel backpack packdesc9755                    wait 2509756                    if insysmsg "You consume a magic mushroom"9757                        settimer MushroomTimer 09758                        cooldown "Mushroom" 600009759                        if EnableOverheadMessages = 19760                            overhead '[ EATING SHROOMS... ]' 139761                        endif9762                    endif9763                elseif EnableOverheadMessages = 19764                    overhead '[ OUT OF SHROOMS! ]' 3379765                endif9766            endif9767        endif9768 9769        if EnableCastCurse = 1 and timer CurseTimer > 60000 and mana >= 11 and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and findtype 3972 self and findtype 3976 self and findtype 3980 self9770            clearsysmsg9771            cast 'Curse'9772            settimer spellTimer 09773            settimer AntiStallTimer 09774            @setvar! SpellcastCooldown 8009775 9776            while not targetexists and timer AntiStallTimer < 25009777                if diffhits >= CastGreaterHealHPdiff9778                    interrupt9779                    @setvar! AttackModeActive 19780                    @setvar! CastingWasInterrupted 19781                    break9782                endif9783 9784                if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange9785                    @setvar! RepeatCastingPoison 09786                    @setvar! AttackModeActive 09787                    @setvar! CastingWasInterrupted 19788                    @setvar! ClosestTargetisSticky 09789                    @setvar! TargetSwap 09790                    interrupt9791                    break9792                endif9793 9794                if insysmsg "Your concentration is disturbed"9795                    interrupt9796                    @setvar! CastingWasInterrupted 19797                    break9798                endif9799 9800                if timer AntiStallTimer > 25009801                    settimer AntiStallTimer 09802                    break9803                endif9804 9805                if timer spellTimer < SpellcastCooldown9806                    if EnableCurePotion = 19807                        while poisoned and casting and not targetexists9808                            if findtype "Orange Potion" self9809                                dclicktype "Orange Potion"9810                                if EnableOverheadMessages = 1 and timer 'OrangePotionMessageTimer' > 35009811                                    if insysmsg "potion satchel used"9812                                        overhead '[ FREE CURE POTION ]' 449813                                    else9814                                        overhead '[ CURE POTION ]' 449815                                    endif9816                                    clearsysmsg9817                                    settimer 'OrangePotionMessageTimer' 09818                                endif9819                                wait 5009820                            else9821                                if timer 'OrangePotionMessageTimer' > 5000 and EnableOverheadMessages = 19822                                    overhead '[ NO CURE POTS! ]' 3379823                                    settimer 'OrangePotionMessageTimer' 09824                                endif9825                                break9826                            endif9827                        endwhile9828                    endif9829 9830                    if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff and casting and not targetexists9831                        if findtype "Yellow Potion" self as HealPot9832                            getlabel HealPot HealPotlabel9833                            if "next" in HealPotlabel9834                                // Do nothing9835                            else9836                                @setvar! HealPotionCheck 09837 9838                                if counttype 3852 self as HealPotCount9839                                    @setvar! HealPotionCheck HealPotCount9840                                endif9841                                clearsysmsg9842                                dclicktype 38529843                                getlabel backpack backpackdesc9844                                wait 2509845                                if insysmsg "potion satchel used"9846                                    settimer 'HealPotionTimer' 09847                                    cooldown "Healing Potion" HealingPotionCooldown9848                                    if EnableOverheadMessages = 1 and timer 'YellowPotionMessageTimer' > 45009849                                        overhead '[ FREE HEAL POTION ]' 2539850                                    endif9851                                elseif HealPotionCheck != counttype 3852 self9852                                    settimer 'HealPotionTimer' 09853                                    cooldown "Healing Potion" HealingPotionCooldown9854                                    if EnableOverheadMessages = 1 and timer 'YellowPotionMessageTimer' > 45009855                                        overhead '[ HEAL POTION ]' 2539856                                    endif9857                                endif9858                                clearsysmsg9859                            endif9860                        else9861                            if timer 'YellowPotionMessageTimer' > 4500 and EnableOverheadMessages = 19862                                overhead '[ NO HEAL POTS! ]' 3379863                                settimer 'YellowPotionMessageTimer' 09864                            endif9865                        endif9866                    endif9867                endif9868            endwhile9869 9870            if CastingWasInterrupted = 09871                clearsysmsg9872                settimer CurseTimer 09873                target ClosestTarget9874                getlabel backpack packdesc9875                wait 2509876 9877                if insysmsg "cannot be seen"9878                    break9879                elseif insysmsg "You curse your target"9880                    if EnableOverheadMessages = 19881                        overhead "[ CURSED ]" 1109 ClosestTarget9882                    elseif EnableOverheadMessages = 29883                        overhead "*cursed*" 1109 ClosestTarget9884                    endif9885                endif9886            endif9887        endif9888 9889        if EnableCastManaDrain = 1 and timer ManaDrainTimer > 60000 and mana >= 11 and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and findtype 3962 self and findtype 3974 self and findtype 3981 self9890            clearsysmsg9891            cast 'Mana Drain'9892            settimer spellTimer 09893            settimer AntiStallTimer 09894            @setvar! SpellcastCooldown 8009895 9896            while not targetexists and timer AntiStallTimer < 25009897                if diffhits >= CastGreaterHealHPdiff9898                    interrupt9899                    @setvar! AttackModeActive 19900                    @setvar! CastingWasInterrupted 19901                    break9902                endif9903 9904                if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange9905                    @setvar! RepeatCastingPoison 09906                    @setvar! AttackModeActive 09907                    @setvar! CastingWasInterrupted 19908                    @setvar! ClosestTargetisSticky 09909                    @setvar! TargetSwap 09910                    interrupt9911                    break9912                endif9913 9914                if insysmsg "Your concentration is disturbed"9915                    interrupt9916                    @setvar! CastingWasInterrupted 19917                    break9918                endif9919 9920                if timer AntiStallTimer > 25009921                    settimer AntiStallTimer 09922                    break9923                endif9924 9925                if timer spellTimer < SpellcastCooldown9926                    if EnableCurePotion = 19927                        while poisoned and casting and not targetexists9928                            if findtype "Orange Potion" self9929                                dclicktype "Orange Potion"9930                                if EnableOverheadMessages = 1 and timer 'OrangePotionMessageTimer' > 35009931                                    if insysmsg "potion satchel used"9932                                        overhead '[ FREE CURE POTION ]' 449933                                    else9934                                        overhead '[ CURE POTION ]' 449935                                    endif9936                                    clearsysmsg9937                                    settimer 'OrangePotionMessageTimer' 09938                                endif9939                                wait 5009940                            else9941                                if timer 'OrangePotionMessageTimer' > 5000 and EnableOverheadMessages = 19942                                    overhead '[ NO CURE POTS! ]' 3379943                                    settimer 'OrangePotionMessageTimer' 09944                                endif9945                                break9946                            endif9947                        endwhile9948                    endif9949 9950                    if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff and casting and not targetexists9951                        if findtype "Yellow Potion" self as HealPot9952                            getlabel HealPot HealPotlabel9953                            if "next" in HealPotlabel9954                                // Do nothing9955                            else9956                                @setvar! HealPotionCheck 09957 9958                                if counttype 3852 self as HealPotCount9959                                    @setvar! HealPotionCheck HealPotCount9960                                endif9961                                clearsysmsg9962                                dclicktype 38529963                                getlabel backpack backpackdesc9964                                wait 2509965                                if insysmsg "potion satchel used"9966                                    settimer 'HealPotionTimer' 09967                                    cooldown "Healing Potion" HealingPotionCooldown9968                                    if EnableOverheadMessages = 1 and timer 'YellowPotionMessageTimer' > 45009969                                        overhead '[ FREE HEAL POTION ]' 2539970                                    endif9971                                elseif HealPotionCheck != counttype 3852 self9972                                    settimer 'HealPotionTimer' 09973                                    cooldown "Healing Potion" HealingPotionCooldown9974                                    if EnableOverheadMessages = 1 and timer 'YellowPotionMessageTimer' > 45009975                                        overhead '[ HEAL POTION ]' 2539976                                    endif9977                                endif9978                                clearsysmsg9979                            endif9980                        else9981                            if timer 'YellowPotionMessageTimer' > 4500 and EnableOverheadMessages = 19982                                overhead '[ NO HEAL POTS! ]' 3379983                                settimer 'YellowPotionMessageTimer' 09984                            endif9985                        endif9986                    endif9987                endif9988            endwhile9989 9990            if CastingWasInterrupted = 09991                clearsysmsg9992                settimer ManaDrainTimer 09993                target ClosestTarget9994                getlabel backpack packdesc9995                wait 2509996 9997                if insysmsg "cannot be seen"9998                    break9999                endif10000            endif10001        endif10002 10003        @setvar! SpellcastCooldown 010004        @setvar! CastingWasInterrupted 010005 10006        if EnableOpenWithLightning = 1 and diffhits < CastGreaterHealHPdiff and mana >= 11 and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and findtype 3974 self and findtype 3980 self10007            cast 'lightning'10008            settimer AntiStallTimer 010009            settimer spellTimer 010010            @setvar! SpellcastCooldown 80010011 10012            while not targetexists and timer AntiStallTimer < 150010013                if diffhits >= CastGreaterHealHPdiff10014                    interrupt10015                    @setvar! AttackModeActive 110016                    @setvar! CastingWasInterrupted 110017                endif10018 10019                if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange10020                    interrupt10021                    @setvar! AttackModeActive 010022                    @setvar! RepeatCastingPoison 010023                    @setvar! CastingWasInterrupted 110024                    @setvar! ClosestTargetisSticky 010025                    @setvar! TargetSwap 010026                    break10027                endif10028 10029                if insysmsg "Your concentration is disturbed"10030                    interrupt10031                    @setvar! CastingWasInterrupted 110032                    break10033                endif10034 10035                if timer AntiStallTimer > 150010036                    settimer AntiStallTimer 010037                    break10038                endif10039 10040                if timer spellTimer < SpellcastCooldown10041                    if EnableCurePotion = 110042                        while poisoned and casting and not targetexists10043                            if findtype "Orange Potion" self10044                                dclicktype "Orange Potion"10045                                if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 350010046                                    if insysmsg "potion satchel used"10047                                        overhead '[ FREE CURE POTION ]' 4410048                                    else10049                                        overhead '[ CURE POTION ]' 4410050                                    endif10051                                    clearsysmsg10052                                    settimer 'CurePotionMessageTimer' 010053                                endif10054                                wait 50010055                            else10056                                if timer 'CurePotionMessageTimer' > 5000 and EnableOverheadMessages = 110057                                    overhead '[ NO CURE POTS! ]' 33710058                                    settimer 'CurePotionMessageTimer' 010059                                endif10060                                break10061                            endif10062                        endwhile10063                    endif10064 10065                    if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff and casting and not targetexists10066                        if findtype "Yellow Potion" self as HealPot10067                            getlabel HealPot HealPotlabel10068                            if "next" in HealPotlabel10069                                // Do nothing10070                            else10071                                @setvar! HealPotionCheck 010072 10073                                if counttype 3852 self as HealPotCount10074                                    @setvar! HealPotionCheck HealPotCount10075                                endif10076                                clearsysmsg10077                                dclicktype 385210078                                getlabel backpack backpackdesc10079                                wait 25010080                                if insysmsg "potion satchel used"10081                                    settimer 'HealPotionTimer' 010082                                    cooldown "Healing Potion" HealingPotionCooldown10083                                    if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 450010084                                        overhead '[ FREE HEAL POTION ]' 25310085                                    endif10086                                elseif HealPotionCheck != counttype 3852 self10087                                    settimer 'HealPotionTimer' 010088                                    cooldown "Healing Potion" HealingPotionCooldown10089                                    if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 450010090                                        overhead '[ HEAL POTION ]' 25310091                                    endif10092                                endif10093                                clearsysmsg10094                            endif10095                        else10096                            if timer 'HealPotionMessageTimer' > 4500 and EnableOverheadMessages = 110097                                overhead '[ NO HEAL POTS! ]' 33710098                                settimer 'HealPotionMessageTimer' 010099                            endif10100                        endif10101                    endif10102                endif10103            endwhile10104 10105            if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange10106                break10107            endif10108 10109            if CastingWasInterrupted = 010110                target ClosestTarget10111                settimer LightningTimer 010112            endif10113        elseif EnableOpenWithFireball = 1 and diffhits < CastGreaterHealHPdiff and mana >= 9 and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and findtype 3962 self10114            cast 'fireball'10115            settimer AntiStallTimer 010116 10117            while not targetexists and timer AntiStallTimer < 150010118                if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange10119                    interrupt10120                    @setvar! AttackModeActive 010121                    @setvar! RepeatCastingPoison 010122                    @setvar! CastingWasInterrupted 110123                    @setvar! ClosestTargetisSticky 010124                    @setvar! TargetSwap 010125                    break10126                endif10127 10128                if insysmsg "Your concentration is disturbed"10129                    interrupt10130                    @setvar! CastingWasInterrupted 110131                    break10132                endif10133 10134                if timer AntiStallTimer > 150010135                    settimer AntiStallTimer 010136                    break10137                endif10138            endwhile10139 10140            if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange10141                break10142            endif10143 10144            if CastingWasInterrupted = 010145                target ClosestTarget10146                settimer FireballTimer 010147            endif10148        elseif EnableOpenWithHarm = 1 and diffhits < CastGreaterHealHPdiff and mana >= 6 and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and findtype 3976 self and findtype 3981 self10149            cast 'harm'10150            settimer AntiStallTimer 010151 10152            while not targetexists and timer AntiStallTimer < 150010153                if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange10154                    interrupt10155                    @setvar! AttackModeActive 010156                    @setvar! RepeatCastingPoison 010157                    @setvar! CastingWasInterrupted 110158                    @setvar! ClosestTargetisSticky 010159                    @setvar! TargetSwap 010160                    break10161                endif10162 10163                if insysmsg "Your concentration is disturbed"10164                    interrupt10165                    @setvar! CastingWasInterrupted 110166                    break10167                endif10168 10169                if timer AntiStallTimer > 150010170                    settimer AntiStallTimer 010171                    break10172                endif10173            endwhile10174 10175            if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange10176                break10177            endif10178 10179            if CastingWasInterrupted = 010180                target ClosestTarget10181                settimer HarmTimer 010182            endif10183        elseif EnableOpenWithMagicArrow = 1 and diffhits < CastGreaterHealHPdiff and mana >= 4 and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and findtype 3980 self10184            cast 'magic arrow'10185            settimer AntiStallTimer 010186 10187            while not targetexists and timer AntiStallTimer < 150010188                if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange10189                    @setvar! AttackModeActive 010190                    @setvar! RepeatCastingPoison 010191                    @setvar! ClosestTargetisSticky 010192                    @setvar! CastingWasInterrupted 110193                    @setvar! TargetSwap 010194                    interrupt10195                    break10196                endif10197 10198                if insysmsg "Your concentration is disturbed"10199                    interrupt10200                    @setvar! CastingWasInterrupted 110201                    break10202                endif10203 10204                if timer AntiStallTimer > 150010205                    settimer AntiStallTimer 010206                    break10207                endif10208            endwhile10209 10210            if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange10211                break10212            endif10213 10214            if CastingWasInterrupted = 010215                target ClosestTarget10216                settimer MagicArrowTimer 010217            endif10218        endif10219 10220        if EnableGoldVacuum = 1 and DisableVacuums != 1 and warmode10221            if findtype "gold coin" ground -1 -1 15 as droppedmoney and timer "GoldRadar" > 350010222                overhead " � " 149 droppedmoney10223                settimer "GoldRadar" 010224            endif10225 10226            while findtype "gold coin" ground -1 -1 2 as droppedmoney and diffhits < CastGreaterHealHPdiff10227                overhead " � " 14910228                hotkey "Grab Item"10229                wft 250010230                target droppedmoney10231                wait 25010232 10233                if dead10234                    break10235                endif10236 10237                if diffhits >= CastGreaterHealHPdiff10238                    @setvar! AttackModeActive 110239                    break10240                endif10241 10242                if insysmsg "Invalid or inaccessible item"10243                    wait 50010244                    @ignore droppedmoney10245                endif10246                wait 25010247            endwhile10248        endif10249 10250        if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange10251            @setvar! RepeatCastingPoison 010252            @setvar! AttackModeActive 010253            @setvar! ClosestTargetisSticky 010254            @setvar! TargetSwap 010255            settimer TargetChecker 010256            break10257        endif10258 10259        if dead10260            break10261        endif10262 10263        if skill 'Necromancy' >= 50 and not gumpexists 62243651610264            if findtype 'necromancer book' backpack10265                yell '[necromancyhotbar'10266                while not gumpexists 62243651610267                    yell '[necromancyhotbar'10268                    wait 50010269                endwhile10270            elseif EnableOverheadMessages = 110271                overhead '[ NO NECRO BOOK! ]' 33710272                wait 50010273            endif10274        endif10275 10276        if not findtype "3972" self or not findtype "3962" self or not findtype "3963" self or not findtype "3980" self or not findtype "3976" self or not findtype "3973" self or not findtype "3974" self or not findtype "3981" self10277            clearignore10278            getlabel backpack backpacklabel10279            if not findtype "3972" self or not findtype "3962" self or not findtype "3963" self or not findtype "3980" self or not findtype "3976" self or not findtype "3973" self or not findtype "3974" self or not findtype "3981" self10280                if EnableOverheadMessages = 1 or EnableOverheadMessages = 210281                    if timer MissingRegsTimer > 500010282                        if counttype "3972" self = 010283                            overhead '[ NO GARLIC ]' 64610284                        endif10285                        if counttype "3962" self = 010286                            overhead '[ NO BLACK PEARL ]' 310287                        endif10288                        if counttype "3963" self = 010289                            overhead '[ NO BLOODMOSS ]' 3310290                        endif10291                        if counttype "3980" self = 010292                            overhead '[ NO SULFUROUS ASH ]' 15310293                        endif10294                        if counttype "3976" self = 010295                            overhead '[ NO NIGHTSHADE ]' 36310296                        endif10297                        if counttype "3973" self = 010298                            overhead '[ NO GINSENG ]' 24710299                        endif10300                        if counttype "3974" self = 010301                            overhead '[ NO MANDRAKE ROOT ]' 44210302                        endif10303                        if counttype "3981" self = 010304                            overhead '[ NO SPIDERS SILK ]' 233810305                        endif10306                        settimer MissingRegsTimer 010307                    endif10308                endif10309                @setvar! MissingRegs 110310            else10311                @setvar! MissingRegs 010312            endif10313        else10314            @setvar! MissingRegs 010315        endif10316 10317        if EnableEatMagicMushrooms = 110318            if diffmana > EatMushroomManadiff and timer MushroomTimer > 6000010319                if counttype 29012 backpack10320                    dclicktype 29012 backpack10321                    getlabel backpack packdesc10322                    wait 25010323                    if insysmsg "You consume a magic mushroom"10324                        settimer MushroomTimer 010325                        cooldown "Mushroom" 6000010326                        if EnableOverheadMessages = 110327                            overhead '[ EATING SHROOMS... ]' 1310328                        endif10329                    endif10330                elseif EnableOverheadMessages = 110331                    overhead '[ OUT OF SHROOMS! ]' 33710332                endif10333            endif10334        endif10335 10336 10337        //////////////////////////////10338        //  SPAM FLAMESTRIKE LOOP:  //10339        //////////////////////////////10340 10341        while EnableCastFlamestrike = 1 and mana >= CastMediumSpellsBelowMana and findtype 3981 self and findtype 3980 self and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and TargetSwap != 1 and diffhits < CastGreaterHealHPdiff10342            if dead10343                break10344            endif10345 10346            if EnableDropGoldWhenOverweight = 110347                if weight > maxweight10348                    replay10349                endif10350            endif10351 10352            if EnableWeightWarningMessage = 110353                if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer "WeightMessageTimer" > 600010354                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 210355                        overhead '[ WEIGHT WARNING... ]' 7710356                        settimer "WeightMessageTimer" 010357                    else10358                        overhead " � " 7710359                        settimer "WeightMessageTimer" 010360                    endif10361                elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer "WeightMessageTimer" > 600010362                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 210363                        overhead '[ WEIGHT WARNING! ]' 15310364                        settimer "WeightMessageTimer" 010365                    else10366                        overhead " � " 15310367                        settimer "WeightMessageTimer" 010368                    endif10369                elseif diffweight < RedWeightLimitDiffWeight10370                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 210371                        if timer "WeightMessageTimer" > 600010372                            overhead '[ WEIGHT LIMIT REACHED! ]' 3710373                            settimer "WeightMessageTimer" 010374                        endif10375                    else10376                        if timer "WeightMessageTimer" > 600010377                            overhead " � " 3710378                            settimer "WeightMessageTimer" 010379                        endif10380                    endif10381 10382                    if EnableAutoWeightRecall = 1 and not find ClosestTarget ground -1 -1 8 and WILDERNESSMODE = 110383                        wait 50010384                        hotkey 'Toggle Peace Only'10385                        @setvar! AutoWeightRecall 110386                        replay10387                    elseif EnableAutoWeightRecall = 1 and find ClosestTarget ground -1 -1 8 and WILDERNESSMODE = 110388                        if timer "WaitingToRecallTimer" > 3500 and EnableAutoRecallOverheadMessages = 110389                            overhead '[ WAITING TO RECALL... ]' 14910390                            settimer "WaitingToRecallTimer" 010391                        endif10392                        wait 50010393                    elseif EnableAutoWeightDungeonGate = 1 and DUNGEONMODE = 110394                        wait 50010395                        hotkey 'Toggle Peace Only'10396                        @setvar! TimeToGo 110397                        replay10398                    else10399                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 210400                            overhead '[ OVERWEIGHT! ]' 33710401                        else10402                            overhead " � " 33710403                        endif10404                        wait 150010405                        overhead '[ STOPPING SCRIPT! ]' 8810406                        stop10407                    endif10408                endif10409            endif10410 10411            while not warmode10412                if TimeToGo = 110413                    break10414                else10415                    if WILDERNESSMODE = 110416                        if EnableAutoRedRecall = 1 or EnableAutoWeightRecall = 110417                            overhead '[ RECALLING IN... ]' 211410418                            if warmode10419                                break10420                            endif10421                            wait 50010422                            overhead "3" 6910423                            wait 100010424                            if warmode10425                                break10426                            endif10427                            overhead "2" 6910428                            wait 100010429                            if warmode10430                                break10431                            endif10432                            overhead "1" 6910433                            wait 50010434                            if warmode10435                                break10436                            else10437                                @setvar! TimeToGo 110438                                @setvar! AutoRecallTime 110439                                break10440                            endif10441                        endif10442                    elseif DUNGEONMODE = 110443                        if EnableAutoRedDungeonGate = 1 or EnableAutoWeightDungeonGate = 110444                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 210445                                overhead '[ DUNGEON ESCAPE! ]' 33710446                            else10447                                overhead "�" 33710448                            endif10449                            hotkey 'Toggle Peace Only'10450                            @setvar! TimeToGo 110451                            getlabel backpack backpacklabel10452                            wait 25010453                            break10454                        endif10455                    endif10456                endif10457            endwhile10458 10459            if not warmode and TimeToGo = 110460                break10461            endif10462 10463            if diffhits > CastGreaterHealHPdiff or paralyzed10464                break10465            endif10466 10467            if TargetSwap = 110468                @setvar! AttackModeActive 210469                break10470            endif10471 10472            if SummonEarthElemental_or_AncientMummy != 0 or SummonWaterElemental_or_RagWitch != 0 or SummonFireElemental_or_Lich != 0 or SummonAirElemental_or_SkeletalFiend != 0 or SummonDemon_or_VampireThrall != 0 or SummonCreature_or_UndeadCreature != 010473                if followers < TotalSummonCount10474                    @setvar! AttackModeActive 210475                    replay10476                endif10477            endif10478 10479            if timer "TargetTimer" > 3500 and find ClosestTarget ground -1 -1 TargetAttackRange10480                getlabel ClosestTarget TargetDesc10481                if EnableOverheadMessages = 1 or EnableOverheadMessages = 210482                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange10483                        overhead '[ PARAGON! ]' 12 ClosestTarget10484                        overhead " � " 12 ClosestTarget10485                        settimer "TargetTimer" 010486                    elseif find ClosestTarget ground -1 -1 TargetAttackRange10487                        overhead '[ TARGET ]' 253 ClosestTarget10488                        overhead " � " 253 ClosestTarget10489                        settimer "TargetTimer" 010490                    endif10491                else10492                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange10493                        overhead " ��� " 12 ClosestTarget10494                        settimer "TargetTimer" 010495                    elseif find ClosestTarget ground -1 -1 TargetAttackRange10496                        overhead " � " 253 ClosestTarget10497                        settimer "TargetTimer" 010498                    endif10499                endif10500            endif10501 10502            if EnablePKradar = 1 and TimeToGo != 110503                if timer "PKRadarTimer" > 150010504                    clearsysmsg10505                    hotkey 'Next Murderer Player Target'10506                    wait 15010507                    if insysmsg "No one matching that was found"10508                        settimer "PKRadarTimer" 010509                        clearsysmsg10510                    else10511                        if EnableRedAlertOverhead = 110512                            overhead "[ !! RED ALERT !! ]" 3710513                        endif10514                        hotkey 'Toggle Peace Only'10515                        @setvar! RedTargetFound 110516                        @setvar! TimeToGo 110517                        @setvar! MurdererTarget lasttarget10518                        replay10519                    endif10520                endif10521            endif10522 10523            if EnableTrackingAutoRecall = 1 and TimeToGo != 110524                if PKTrackingRange = 6010525                    if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"10526                        hotkey 'Toggle Peace Only'10527                        if EnableRedAlertOverhead = 110528                            overhead '[ !! RED ALERT !! ]' 3710529                        endif10530                        @setvar! RedTargetFound 110531                        @setvar! TimeToGo 110532                        clearsysmsg10533                        replay10534                    endif10535                elseif PKTrackingRange = 5010536                    if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"10537                        hotkey 'Toggle Peace Only'10538                        if EnableRedAlertOverhead = 110539                            overhead '[ !! RED ALERT !! ]' 3710540                        endif10541                        @setvar! RedTargetFound 110542                        @setvar! TimeToGo 110543                        clearsysmsg10544                        replay10545                    endif10546                elseif PKTrackingRange = 4010547                    if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"10548                        hotkey 'Toggle Peace Only'10549                        if EnableRedAlertOverhead = 110550                            overhead '[ !! RED ALERT !! ]' 3710551                        endif10552                        @setvar! RedTargetFound 110553                        @setvar! TimeToGo 110554                        clearsysmsg10555                        replay10556                    endif10557                elseif PKTrackingRange = 010558                    if insysmsg "Now tracking"10559                        hotkey 'Toggle Peace Only'10560                        if EnableRedAlertOverhead = 110561                            overhead '[ !! RED ALERT !! ]' 3710562                        endif10563                        @setvar! RedTargetFound 110564                        @setvar! TimeToGo 110565                        clearsysmsg10566                        replay10567                    endif10568                endif10569            endif10570 10571            if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange10572                settimer TargetChecker 010573                @setvar! TargetSwap 010574                @setvar! RepeatCastingPoison 010575                @setvar! ClosestTargetisSticky 010576                @setvar! AttackModeActive 010577                break10578            endif10579 10580            if CheckClosestTargetTime != 010581                if timer TargetChecker > CheckClosestTargetTime10582                    @setvar! TargetSwap 010583                    hotkey "Target Closest Grey Monster"10584                    getlabel backpack backpacklabel10585                    @setvar! TargetToCheck lasttarget10586                    wait 25010587                    if TargetToCheck != ClosestTarget10588                        settimer TargetChecker 010589                        @setvar! TargetToAnalyze lasttarget10590                        @setvar! ClosestTargetisSticky 010591                        @setvar! AttackModeActive 210592                        @setvar! TargetSwap 110593                        break10594                    endif10595                    settimer TargetChecker 010596                endif10597            endif10598 10599            if EnableAutoCrookCheck = 110600                if skill 'herding' > 50 and timer CrookCheckTimer > 1000010601                    if findtype "shepherd's crook" self10602                        # '10603                        if listexists CrooksToUnignore10604                            removelist CrooksToUnignore10605                        endif10606                        createlist CrooksToUnignore10607                        for 510608                        if findtype "shepherd's crook" self as myCrook10609                            # '10610                            getlabel myCrook crooklabel10611                            wait 25010612                            if 'activated' in crooklabel10613                                break10614                            elseif 'unidentified' in crooklabel10615                                pushlist CrooksToUnignore myCrook10616                                @ignore myCrook10617                            else10618                                if followers > 010619                                    if EnableOverheadMessages = 110620                                        overhead "[ ACTIVATING CROOK! ]" 211410621                                    else10622                                        overhead "*crook activated*" 211410623                                    endif10624                                    dclick myCrook10625                                    wait 25010626                                    break10627                                endif10628                            endif10629                            wait 25010630                        endif10631                        endfor10632                        foreach CrookToUnignore in CrooksToUnignore10633                            @unignore CrookToUnignore10634                        endfor10635                        removelist CrooksToUnignore10636                    elseif not findtype "shepherd's crook" self10637                        # '10638                        if EnableOverheadMessages != 010639                            if timer CrookCheckOverheadTimer > 1500010640                                overhead "[ NO CROOK FOUND! ]" 33710641                                settimer CrookCheckOverheadTimer 010642                            endif10643                        endif10644                    endif10645                    settimer CrookCheckTimer 010646                endif10647            endif10648 10649            if mana < LowManaWarningAmount and timer ManaOverheadTimer > 4500 and LowManaWarningAmount != 010650                overhead "[ LOW MANA! ]" 3410651                settimer ManaOverheadTimer 010652            endif10653 10654            if EnableNecroStrangle = 1 or EnableNecroCorpseSkin = 1 or EnableNecroMindRot = 1 or EnableNecroEvilOmen = 1 or EnableNecroPainSpike = 110655                if findtype 'necromancer book' backpack10656                    yell '[necromancyhotbar'10657                    while not gumpexists 62243651610658                        yell '[necromancyhotbar'10659                    endwhile10660                endif10661            endif10662 10663            if gumpexists 62243651610664                if ingump "12/|13/|14/|15/|16/|17/|18/|19/|20/|21/|11/|10/|9/|8/|7/|6/|5/" 62243651610665                    @setvar! StrangleAvailable 110666                    @setvar! MindRotAvailable 110667                    @setvar! CorpseSkinAvailable 110668                    @setvar! EvilOmenAvailable 110669                    @setvar! PainSpikeAvailable 110670                elseif ingump "4/" 62243651610671                    if ingump "14/" 62243651610672                        @setvar! StrangleAvailable 110673                        @setvar! MindRotAvailable 110674                        @setvar! CorpseSkinAvailable 110675                        @setvar! EvilOmenAvailable 110676                        @setvar! PainSpikeAvailable 110677                    else10678                        @setvar! StrangleAvailable 110679                        @setvar! MindRotAvailable 110680                        @setvar! CorpseSkinAvailable 110681                        @setvar! EvilOmenAvailable 110682                        @setvar! PainSpikeAvailable 010683                    endif10684                elseif ingump "3/" 62243651610685                    if ingump "13/" 62243651610686                        @setvar! StrangleAvailable 110687                        @setvar! MindRotAvailable 110688                        @setvar! CorpseSkinAvailable 110689                        @setvar! EvilOmenAvailable 110690                        @setvar! PainSpikeAvailable 110691                    else10692                        @setvar! StrangleAvailable 010693                        @setvar! MindRotAvailable 110694                        @setvar! CorpseSkinAvailable 110695                        @setvar! EvilOmenAvailable 110696                        @setvar! PainSpikeAvailable 010697                    endif10698                elseif ingump "2/" 62243651610699                    if ingump "12/" 62243651610700                        @setvar! StrangleAvailable 110701                        @setvar! MindRotAvailable 110702                        @setvar! CorpseSkinAvailable 110703                        @setvar! EvilOmenAvailable 110704                        @setvar! PainSpikeAvailable 110705                    else10706                        @setvar! StrangleAvailable 010707                        @setvar! MindRotAvailable 010708                        @setvar! CorpseSkinAvailable 110709                        @setvar! EvilOmenAvailable 110710                        @setvar! PainSpikeAvailable 010711                    endif10712                elseif ingump "1/" 62243651610713                    if ingump "11/" 62243651610714                        @setvar! StrangleAvailable 110715                        @setvar! MindRotAvailable 110716                        @setvar! CorpseSkinAvailable 110717                        @setvar! EvilOmenAvailable 110718                        @setvar! PainSpikeAvailable 110719                    else10720                        @setvar! StrangleAvailable 010721                        @setvar! MindRotAvailable 010722                        @setvar! CorpseSkinAvailable 010723                        @setvar! EvilOmenAvailable 010724                        @setvar! PainSpikeAvailable 010725                    endif10726                elseif ingump "0/" 62243651610727                    if ingump "10/" 62243651610728                        @setvar! StrangleAvailable 110729                        @setvar! MindRotAvailable 110730                        @setvar! CorpseSkinAvailable 110731                        @setvar! EvilOmenAvailable 110732                        @setvar! PainSpikeAvailable 110733                    else10734                        @setvar! StrangleAvailable 010735                        @setvar! MindRotAvailable 010736                        @setvar! CorpseSkinAvailable 010737                        @setvar! EvilOmenAvailable 010738                        @setvar! PainSpikeAvailable 010739                    endif10740                endif10741            endif10742 10743            if EnableNecroStrangle = 1 and StrangleAvailable = 1 and timer StrangleTimer > 30000 and skill 'necromancy' >= 85 and mana >= 50 and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and timer NecroCooldownTimer > 100010744                @setvar! CastingWasInterrupted 010745                clearsysmsg10746                while not insysmsg "unholy symbols remaining"10747                    yell '[Strangle'10748                    getlabel backpack packdesc10749                    wait 25010750                    if insysmsg "seconds before you may use that ability again."10751                        @setvar! CastingWasInterrupted 110752                        settimer StrangleTimer 2800010753                        break10754                    endif10755                endwhile10756 10757                if CastingWasInterrupted = 010758                    if EnableOverheadMessages = 110759                        overhead '[ STRANGLE ]' 33410760                    endif10761                    settimer StrangleTimer 010762                    cooldown "Strangle" 3000010763                    settimer NecroCooldownTimer 010764                endif10765            endif10766 10767            if EnableNecroCorpseSkin = 1 and CorpseSkinAvailable = 1 and timer CorpseSkinTimer > 30000 and skill 'necromancy' >= 65 and mana >= MinimumManaAmounttoNecroBuff and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and timer NecroCooldownTimer > 100010768                @setvar! CastingWasInterrupted 010769                clearsysmsg10770                while not insysmsg "unholy symbols remaining"10771                    yell '[CorpseSkin'10772                    getlabel backpack packdesc10773                    wait 25010774                    if insysmsg "seconds before you may use that ability again."10775                        @setvar! CastingWasInterrupted 110776                        settimer CorpseSkinTimer 2800010777                        break10778                    endif10779                endwhile10780 10781                if CastingWasInterrupted = 010782                    if EnableOverheadMessages = 110783                        overhead '[ CORPSE SKIN ]' 4010784                    endif10785                    settimer CorpseSkinTimer 010786                    cooldown "Corpse Skin" 3000010787                    settimer NecroCooldownTimer 010788                endif10789            endif10790 10791            if EnableNecroMindRot = 1 and MindRotAvailable = 1 and timer MindRotTimer > 30000 and skill 'necromancy' >= 75 and mana >= MinimumManaAmounttoNecroBuff and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and timer NecroCooldownTimer > 100010792                @setvar! CastingWasInterrupted 010793                clearsysmsg10794                while not insysmsg "unholy symbols remaining"10795                    yell '[MindRot'10796                    getlabel backpack packdesc10797                    wait 25010798                    if insysmsg "seconds before you may use that ability again."10799                        @setvar! CastingWasInterrupted 110800                        settimer MindRotTimer 2800010801                        break10802                    else10803                        break10804                    endif10805                endwhile10806 10807                if CastingWasInterrupted = 010808                    if EnableOverheadMessages = 110809                        overhead '[ MIND ROT ]' 22310810                    endif10811                    settimer MindRotTimer 010812                    cooldown "Mind Rot" 3000010813                    settimer NecroCooldownTimer 010814                endif10815            endif10816 10817            if EnableNecroEvilOmen = 1 and EvilOmenAvailable = 1 and timer EvilOmenTimer > 30000 and skill 'necromancy' >= 60 and mana >= MinimumManaAmounttoNecroBuff and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and timer NecroCooldownTimer > 100010818                @setvar! CastingWasInterrupted 010819                clearsysmsg10820                while not insysmsg "unholy symbols remaining"10821                    yell '[EvilOmen'10822                    getlabel backpack packdesc10823                    wait 25010824                    if insysmsg "seconds before you may use that ability again."10825                        @setvar! CastingWasInterrupted 110826                        settimer EvilOmenTimer 2800010827                        break10828                    endif10829                endwhile10830 10831                if CastingWasInterrupted = 010832                    if EnableOverheadMessages = 110833                    overhead '[ EVIL OMEN ]' 23810834                    endif10835                    settimer EvilOmenTimer 010836                    cooldown "Evil Omen" 3000010837                    settimer NecroCooldownTimer 010838                endif10839            endif10840 10841            if EnableNecroPainSpike = 1 and PainSpikeAvailable = 1 and timer 'PainSpikeTimer' > 30000 and skill 'necromancy' >= 95 and mana >= MinimumManaAmounttoNecroBuff and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 4 and findtype 8198 ground -1 -1 2 as corpsespike and timer 'PainSpikeDelayTimer' > PainSpikeAttackDelay and timer NecroCooldownTimer > 100010842                @setvar! CastingWasInterrupted 010843                clearsysmsg10844                yell "[PainSpike"10845                wft 100010846                target ClosestTarget10847                getlabel backpack backpacklabel10848                wft 25010849                if insysmsg "You do not see any corpses" or insysmsg "seconds before you may use that ability again."10850                    settimer PainSpikeTimer 2500010851                    @setvar! CastingWasInterrupted 110852                endif10853 10854                if CastingWasInterrupted = 010855                    if EnableOverheadMessages = 110856                        overhead '[ PAIN SPIKE! ]' 33710857                    endif10858                    settimer PainSpikeTimer 010859                    cooldown "Pain Spike" 3000010860                    settimer NecroCooldownTimer 010861                endif10862            endif10863 10864            if EnableNecroPoisonStrike != 0 and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and diffhits < CastGreaterHealHPdiff and timer NecroCooldownTimer > 100010865                getlabel ClosestTarget targetLabel10866                if "-" in targetLabel10867                    getlabel ClosestTarget targetLabel10868                endif10869 10870                @setvar! CastPoisonStrike 010871 10872                if EnableCastPoison = 110873                    if "Ticks" in targetLabel or "resists" in targetLabel and EnableCastPoison = 110874                        @setvar! RepeatCastingPoison 110875 10876                        if SetPoisonLevel = 210877                            if "Lethal" in targetLabel10878                                @setvar! RepeatCastingPoison 010879                            endif10880                        elseif SetPoisonLevel = 110881                            if "Lethal" in targetLabel or "Deadly" in targetLabel10882                                @setvar! RepeatCastingPoison 010883                            endif10884                        else10885                            @setvar! RepeatCastingPoison 010886                        endif10887 10888                        if EnableNecroPoisonStrike != 010889                            if findtype 'necromancer book' backpack and not gumpexists 62243651610890                                yell '[necromancyhotbar'10891                                while not gumpexists 62243651610892                                    yell '[necromancyhotbar'10893                                    wait 50010894                                endwhile10895                            endif10896 10897                            if EnableNecroPoisonStrike = 210898                                if "[2" in targetLabel10899                                    @setvar! CastPoisonStrike 110900                                else10901                                    @setvar! CastPoisonStrike 010902                                endif10903                            elseif EnableNecroPoisonStrike = 310904                                if "[2" in targetLabel or "[3" in targetLabel10905                                    @setvar! CastPoisonStrike 110906                                else10907                                    @setvar! CastPoisonStrike 010908                                endif10909                            elseif EnableNecroPoisonStrike = 410910                                if "[2" in targetLabel or "[3" in targetLabel or "[4" in targetLabel10911                                    @setvar! CastPoisonStrike 110912                                else10913                                    @setvar! CastPoisonStrike 010914                                endif10915                            elseif EnableNecroPoisonStrike = 510916                                if "[2" in targetLabel or "[3" in targetLabel or "[4" in targetLabel or "[5" in targetLabel10917                                    @setvar! CastPoisonStrike 110918                                else10919                                    @setvar! CastPoisonStrike 010920                                endif10921                            elseif EnableNecroPoisonStrike = 610922                                if "[2" in targetLabel or "[3" in targetLabel or "[4" in targetLabel or "[5" in targetLabel or "[6" in targetLabel10923                                    @setvar! CastPoisonStrike 110924                                else10925                                    @setvar! CastPoisonStrike 010926                                endif10927                            elseif EnableNecroPoisonStrike = 710928                                if "[2" in targetLabel or "[3" in targetLabel or "[4" in targetLabel or "[5" in targetLabel or "[6" in targetLabel or "[7" in targetLabel10929                                    @setvar! CastPoisonStrike 110930                                else10931                                    @setvar! CastPoisonStrike 010932                                endif10933                            elseif EnableNecroPoisonStrike = 810934                                if "[2" in targetLabel or "[3" in targetLabel or "[4" in targetLabel or "[5" in targetLabel or "[6" in targetLabel or "[7" in targetLabel or "[8" in targetLabel10935                                    @setvar! CastPoisonStrike 110936                                else10937                                    @setvar! CastPoisonStrike 010938                                endif10939                            elseif EnableNecroPoisonStrike = 910940                                if "[2" in targetLabel or "[3" in targetLabel or "[4" in targetLabel or "[5" in targetLabel or "[6" in targetLabel or "[7" in targetLabel or "[8" in targetLabel or "[9" in targetLabel10941                                    @setvar! CastPoisonStrike 110942                                else10943                                    @setvar! CastPoisonStrike 010944                                endif10945                            endif10946                            getlabel backpack packdesc10947                        endif10948                    endif10949                else10950                    if timer CorpseSkinDiseaseTimer > CorpseSkinPoisonStrikeDelay and EnableNecroPoisonStrike = 1 and EnableNecroCorpseSkin = 110951                        @setvar! CastPoisonStrike 110952                    else10953                        @setvar! CastPoisonStrike 010954                    endif10955                endif10956 10957                getlabel backpack packdesc10958 10959                if CastPoisonStrike = 110960                    if findtype 'necromancer book' backpack and not gumpexists 62243651610961                        while not gumpexists 62243651610962                            yell '[necromancyhotbar'10963                        endwhile10964                    endif10965 10966                    @setvar! PoisonStrikeAvailable 010967 10968                    if gumpexists 62243651610969                        if ingump "12/|13/|14/|15/|16/|17/|18/|19/|20/|21/|11/|10/|9/|8/|7/|6/|5/|4/|3/|2/" 62243651610970                            @setvar! PoisonStrikeAvailable 110971                        elseif ingump "1/" 62243651610972                            @setvar! PoisonStrikeAvailable 110973                        elseif ingump "0/" 62243651610974                            if ingump "10/" 62243651610975                                @setvar! PoisonStrikeAvailable 110976                            else10977                                @setvar! PoisonStrikeAvailable 010978                            endif10979                        endif10980                    endif10981 10982                    if CastPoisonStrike = 1 and PoisonStrikeAvailable = 1 and timer PoisonStrikeTimer > 30000 and skill 'necromancy' >= 55 and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange10983                        clearsysmsg10984                        while not insysmsg "unholy symbols remaining"10985                            if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange10986                                @setvar! RepeatCastingPoison 010987                                @setvar! AttackModeActive 010988                                @setvar! ClosestTargetisSticky 010989                                @setvar! TargetSwap 010990                                break10991                            endif10992 10993                            yell '[PoisonStrike'10994                            wft 150010995                            clearsysmsg10996                            target ClosestTarget10997                            wait 25010998 10999                            if insysmsg "seconds before you may use that ability again."11000                                settimer PoisonStrikeTimer 2800011001                                clearsysmsg11002                                break11003                            elseif insysmsg "You do not have a Spell-based poison or disease effect on that target."11004                                settimer PoisonStrikeTimer 1500011005                                clearsysmsg11006                                break11007                            else11008                                break11009                            endif11010                        endwhile11011 11012                        if insysmsg "unholy symbols remaining"11013                            if EnableOverheadMessages = 111014                                overhead '[ POISON STRIKE! ]' 7711015                            endif11016                            @setvar! PoisonStrikeAvailable 011017                            settimer PoisonStrikeTimer 011018                            cooldown "Poison Strike" 3000011019                            @setvar! CastPoisonStrike 011020                            settimer NecroCooldownTimer 011021                        endif11022                    endif11023                endif11024 11025                if EnableCastPoison = 1 and RepeatCastingPoison = 1 and diffhits < CastGreaterHealHPdiff and mana >= 9 and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and findtype 3976 self11026                    cast 'Poison'11027                    settimer AntiStallTimer 011028 11029                    while not targetexists and timer AntiStallTimer < 250011030                        if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange11031                            @setvar! RepeatCastingPoison 011032                            @setvar! AttackModeActive 011033                            @setvar! CastingWasInterrupted 111034                            @setvar! ClosestTargetisSticky 011035                            @setvar! TargetSwap 011036                            interrupt11037                            break11038                        endif11039 11040                        if insysmsg "Your concentration is disturbed"11041                            interrupt11042                            @setvar! CastingWasInterrupted 111043                            break11044                        endif11045 11046                        if timer AntiStallTimer > 250011047                            settimer AntiStallTimer 011048                            break11049                        endif11050                    endwhile11051 11052                    if CastingWasInterrupted = 1 and EnableNecroMindRot = 1 and MindRotAvailable = 1 and timer MindRotTimer > 30000 and skill 'necromancy' >= 7511053                        while not insysmsg "unholy symbols remaining"11054                            yell '[MindRot'11055                            getlabel backpack packdesc11056                            wait 25011057                            if insysmsg "seconds before you may use that ability again."11058                                @setvar! CastingWasInterrupted 111059                                settimer MindRotTimer 2800011060                                break11061                            endif11062                        endwhile11063 11064                        if CastingWasInterrupted = 011065                            if EnableOverheadMessages = 111066                                overhead '[ MIND ROT ]' 33011067                            endif11068                            settimer MindRotTimer 011069                            cooldown "Mind Rot" 3000011070                        endif11071                        @setvar! CastingWasInterrupted 011072                    endif11073 11074                    if CastingWasInterrupted = 011075                        clearsysmsg11076                        target ClosestTarget11077                        getlabel backpack packdesc11078                        wait 25011079                        if insysmsg "cannot be seen"11080                            break11081                        endif11082                    endif11083                endif11084            endif11085 11086            if EnableMeditation = 1 and mana < MeditateWhenManaBelow and not findbuff "meditating" and timer 'MeditationTimer' > 1000011087                skill 'meditation'11088                getlabel backpack packdesc11089                wait 25011090                if not findbuff 'meditating'11091                    settimer 'MeditationTimer' 750011092                elseif findbuff 'meditating'11093                    hotkey 'Toggle Peace Only'11094                    settimer 'MeditationTimer' 011095                    while mana < maxmana and diffhits < CastGreaterHealHPdiff11096                        if timer "TargetTimer" > 3500 and find ClosestTarget ground -1 -1 TargetAttackRange11097                            getlabel ClosestTarget TargetDesc11098                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 211099                                if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange11100                                    overhead '[ PARAGON! ]' 12 ClosestTarget11101                                    overhead " � " 12 ClosestTarget11102                                    settimer "TargetTimer" 011103                                elseif find ClosestTarget ground -1 -1 TargetAttackRange11104                                    overhead '[ TARGET ]' 253 ClosestTarget11105                                    overhead " � " 253 ClosestTarget11106                                    settimer "TargetTimer" 011107                                endif11108                            else11109                                if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange11110                                    overhead " ��� " 12 ClosestTarget11111                                    settimer "TargetTimer" 011112                                elseif find ClosestTarget ground -1 -1 TargetAttackRange11113                                    overhead " � " 253 ClosestTarget11114                                    settimer "TargetTimer" 011115                                endif11116                            endif11117                        endif11118                        if EnablePKradar = 1 and TimeToGo != 111119                            if timer "PKRadarTimer" > 150011120                                clearsysmsg11121                                hotkey 'Next Murderer Player Target'11122                                wait 15011123                                if insysmsg "No one matching that was found"11124                                    settimer "PKRadarTimer" 011125                                    clearsysmsg11126                                else11127                                    if EnableRedAlertOverhead = 111128                                        overhead "[ !! RED ALERT !! ]" 3711129                                    endif11130                                    hotkey 'Toggle Peace Only'11131                                    @setvar! RedTargetFound 111132                                    @setvar! TimeToGo 111133                                    @setvar! MurdererTarget lasttarget11134                                    replay11135                                endif11136                            endif11137                        endif11138                        if EnableTrackingAutoRecall = 1 and TimeToGo != 111139                            if PKTrackingRange = 6011140                                if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"11141                                    hotkey 'Toggle Peace Only'11142                                    if EnableRedAlertOverhead = 111143                                        overhead '[ !! RED ALERT !! ]' 3711144                                    endif11145                                    @setvar! RedTargetFound 111146                                    @setvar! TimeToGo 111147                                    clearsysmsg11148                                    replay11149                                endif11150                            elseif PKTrackingRange = 5011151                                if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"11152                                    hotkey 'Toggle Peace Only'11153                                    if EnableRedAlertOverhead = 111154                                        overhead '[ !! RED ALERT !! ]' 3711155                                    endif11156                                    @setvar! RedTargetFound 111157                                    @setvar! TimeToGo 111158                                    clearsysmsg11159                                    replay11160                                endif11161                            elseif PKTrackingRange = 4011162                                if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"11163                                    hotkey 'Toggle Peace Only'11164                                    if EnableRedAlertOverhead = 111165                                        overhead '[ !! RED ALERT !! ]' 3711166                                    endif11167                                    @setvar! RedTargetFound 111168                                    @setvar! TimeToGo 111169                                    clearsysmsg11170                                    replay11171                                endif11172                            elseif PKTrackingRange = 011173                                if insysmsg "Now tracking"11174                                    hotkey 'Toggle Peace Only'11175                                    if EnableRedAlertOverhead = 111176                                        overhead '[ !! RED ALERT !! ]' 3711177                                    endif11178                                    @setvar! RedTargetFound 111179                                    @setvar! TimeToGo 111180                                    clearsysmsg11181                                    replay11182                                endif11183                            endif11184                        endif11185                        if not findbuff 'meditating'11186                            hotkey 'Toggle War Only'11187                            break11188                        endif11189                        if mana > MeditateUntilManaReaches11190                            hotkey 'Toggle War Only'11191                            break11192                        endif11193                        if warmode on11194                            break11195                        endif11196                        if diffhits > CastGreaterHealHPdiff11197                            break11198                        endif11199                        if dead11200                            break11201                        endif11202                        if timer 'MeditationMessageTimer' > 400011203                            if EnableOverheadMessages = 111204                                overhead '[ MEDITATING... ]' 1111205                            else11206                                overhead "*meditating*" 1111207                            endif11208                            settimer 'MeditationMessageTimer' 011209                        endif11210                    endwhile11211                    if diffhits > CastGreaterHealHPdiff11212                        break11213                    endif11214                    if dead11215                        break11216                    endif11217                    if not warmode and TimeToGo != 111218                        hotkey 'Toggle War Only'11219                    endif11220                endif11221            elseif EnableMeditation != 1 and MeditateWhenManaBelow != 0 and mana < MeditateWhenManaBelow11222                if timer MissingRegsTimer > 400011223                    if EnableOverheadMessages = 111224                        overhead '[ WAITING FOR MANA... ]' 42011225                        settimer MissingRegsTimer 011226                    endif11227                endif11228            endif11229 11230            if EnablePKradar = 1 and TimeToGo != 111231                if timer "PKRadarTimer" > 150011232                    clearsysmsg11233                    hotkey 'Next Murderer Player Target'11234                    wait 15011235                    if insysmsg "No one matching that was found"11236                        settimer "PKRadarTimer" 011237                        clearsysmsg11238                    else11239                        if EnableRedAlertOverhead = 111240                            overhead "[ !! RED ALERT !! ]" 3711241                        endif11242                        hotkey 'Toggle Peace Only'11243                        @setvar! RedTargetFound 111244                        @setvar! TimeToGo 111245                        @setvar! MurdererTarget lasttarget11246                        replay11247                    endif11248                endif11249            endif11250 11251            if EnableTrackingAutoRecall = 1 and TimeToGo != 111252                if PKTrackingRange = 6011253                    if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"11254                        hotkey 'Toggle Peace Only'11255                        if EnableRedAlertOverhead = 111256                            overhead '[ !! RED ALERT !! ]' 3711257                        endif11258                        @setvar! RedTargetFound 111259                        @setvar! TimeToGo 111260                        clearsysmsg11261                        replay11262                    endif11263                elseif PKTrackingRange = 5011264                    if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"11265                        hotkey 'Toggle Peace Only'11266                        if EnableRedAlertOverhead = 111267                            overhead '[ !! RED ALERT !! ]' 3711268                        endif11269                        @setvar! RedTargetFound 111270                        @setvar! TimeToGo 111271                        clearsysmsg11272                        replay11273                    endif11274                elseif PKTrackingRange = 4011275                    if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"11276                        hotkey 'Toggle Peace Only'11277                        if EnableRedAlertOverhead = 111278                            overhead '[ !! RED ALERT !! ]' 3711279                        endif11280                        @setvar! RedTargetFound 111281                        @setvar! TimeToGo 111282                        clearsysmsg11283                        replay11284                    endif11285                elseif PKTrackingRange = 011286                    if insysmsg "Now tracking"11287                        hotkey 'Toggle Peace Only'11288                        if EnableRedAlertOverhead = 111289                            overhead '[ !! RED ALERT !! ]' 3711290                        endif11291                        @setvar! RedTargetFound 111292                        @setvar! TimeToGo 111293                        clearsysmsg11294                        replay11295                    endif11296                endif11297            endif11298 11299            if EnableEatMagicMushrooms = 111300                if diffmana > EatMushroomManadiff and timer MushroomTimer > 6000011301                    if counttype 29012 backpack11302                        dclicktype 29012 backpack11303                        getlabel backpack packdesc11304                        wait 25011305                        if insysmsg "You consume a magic mushroom"11306                            settimer MushroomTimer 011307                            cooldown "Mushroom" 6000011308                            if EnableOverheadMessages = 111309                                overhead '[ EATING SHROOMS... ]' 1311310                            endif11311                        endif11312                    elseif EnableOverheadMessages = 111313                        overhead '[ OUT OF SHROOMS! ]' 33711314                    endif11315                endif11316            endif11317 11318            if EnableStrengthPotion = 1 and diffhits < CastGreaterHealHPdiff11319                if skill 'Alchemy' > 0 and skill 'Alchemy' < 211320                    if insysmsg "You may now use a strength" or not findbuff "Strength Potion Usage Cooldown"11321                        if findtype "White Potion" self11322                            dclicktype "White Potion"11323                            if EnableOverheadMessages = 1 and timer WhitePotionMessageTimer > 450011324                                if insysmsg "potion satchel used"11325                                    overhead '[ FREE STRENGTH POTION ]' 95611326                                else11327                                    overhead '[ STRENGTH POTION ]' 95611328                                endif11329                                clearsysmsg11330                                settimer WhitePotionMessageTimer 011331                            endif11332                            wait 25011333                        else11334                            if timer WhitePotionMessageTimer > 450011335                                overhead '[ NO STRENGTH POTS! ]' 33711336                                settimer WhitePotionMessageTimer 011337                            endif11338                        endif11339                        clearsysmsg11340                    endif11341                elseif skill 'Alchemy' = 011342                    if insysmsg "You may now use a strength" or not findbuff "Strength Potion Usage Cooldown"11343                        if findtype "White Potion" self11344                            dclicktype "White Potion"11345                            if EnableOverheadMessages = 1 and timer WhitePotionMessageTimer > 450011346                                if insysmsg "potion satchel used"11347                                    overhead '[ FREE STRENGTH POTION ]' 95611348                                else11349                                    overhead '[ STRENGTH POTION ]' 95611350                                endif11351                                clearsysmsg11352                                settimer WhitePotionMessageTimer 011353                            endif11354                            wait 25011355                        else11356                            if timer WhitePotionMessageTimer > 450011357                                overhead '[ NO STRENGTH POTS! ]' 33711358                                settimer WhitePotionMessageTimer 011359                            endif11360                        endif11361                        clearsysmsg11362                    endif11363                else11364                    if not findbuff "Strength"11365                        if findtype "White Potion" self11366                            dclicktype "White Potion"11367                            if EnableOverheadMessages = 1 and timer WhitePotionMessageTimer > 450011368                                if insysmsg "potion satchel used"11369                                    overhead '[ FREE STRENGTH POTION ]' 95611370                                else11371                                    overhead '[ STRENGTH POTION ]' 95611372                                endif11373                                clearsysmsg11374                                settimer WhitePotionMessageTimer 011375                            endif11376                            wait 25011377                        else11378                            if timer WhitePotionMessageTimer > 450011379                                overhead '[ NO STRENGTH POTS! ]' 33711380                                settimer WhitePotionMessageTimer 011381                            endif11382                        endif11383                    endif11384                endif11385            endif11386 11387            if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff11388                if findtype "Yellow Potion" self as HealPot11389                    getlabel HealPot HealPotlabel11390                    if "next" in HealPotlabel11391                        // Do nothing11392                    else11393                        @setvar! HealPotionCheck 011394 11395                        if counttype 3852 self as HealPotCount11396                            @setvar! HealPotionCheck HealPotCount11397                        endif11398                        clearsysmsg11399                        dclicktype 385211400                        getlabel backpack backpackdesc11401                        wait 25011402                        if insysmsg "potion satchel used"11403                            settimer 'HealPotionTimer' 011404                            cooldown "Healing Potion" HealingPotionCooldown11405                            if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 450011406                                overhead '[ FREE HEAL POTION ]' 25311407                            endif11408                        elseif HealPotionCheck != counttype 3852 self11409                            settimer 'HealPotionTimer' 011410                            cooldown "Healing Potion" HealingPotionCooldown11411                            if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 450011412                                overhead '[ HEAL POTION ]' 25311413                            endif11414                        endif11415                        clearsysmsg11416                    endif11417                else11418                    if timer 'HealPotionMessageTimer' > 4500 and EnableOverheadMessages = 111419                        overhead '[ NO HEAL POTS! ]' 33711420                        settimer 'HealPotionMessageTimer' 011421                    endif11422                endif11423            endif11424 11425            if skill 'healing' > 0 and hp < maxhp and not bandaging11426                if findtype 'clean bandage%s%' self11427                    hotkey 'Bandage Self'11428                    if EnableOverheadMessages = 111429                        overhead '[ BANDAGING... ]' 8811430                    endif11431                else11432                    if EnableOverheadMessages = 111433                        overhead '[ NO BANDAGES! ]' 33711434                    endif11435                endif11436            endif11437 11438            if EnableAgilityPotion = 1 and not findbuff "Agility" and diffhits < CastGreaterHealHPdiff11439                if findtype "Blue Potion" self11440                    dclicktype "Blue Potion"11441                    if EnableOverheadMessages = 1 and timer BluePotionMessageTimer > 450011442                        if insysmsg "potion satchel used"11443                            overhead '[ FREE AGILITY POTION ]' 9311444                        else11445                            overhead '[ AGILITY POTION ]' 9311446                        endif11447                        clearsysmsg11448                        settimer BluePotionMessageTimer 011449                    endif11450                    wait 25011451                else11452                    if timer BluePotionMessageTimer > 4500 and EnableOverheadMessages = 111453                    overhead '[ NO AGILITY POTS! ]' 33711454                        settimer BluePotionMessageTimer 011455                    endif11456                endif11457            endif11458 11459            if EnableMagicResistPotion = 1 and not findbuff "Magic Resist" and diffhits < CastGreaterHealHPdiff11460                if findtype "Black Potion" self11461                    dclicktype "Black Potion"11462                    if EnableOverheadMessages = 1 and timer BlackPotionMessageTimer > 450011463                        if insysmsg "potion satchel used"11464                            overhead '[ FREE RESIST POTION ]' 110911465                        else11466                            overhead '[ RESIST POTION ]' 110911467                        endif11468                        clearsysmsg11469                        settimer BlackPotionMessageTimer 011470                    endif11471                    wait 25011472                else11473                    if timer BlackPotionMessageTimer > 4500 and EnableOverheadMessages = 111474                        overhead '[ NO RESIST POTS! ]' 33711475                        settimer BlackPotionMessageTimer 011476                    endif11477                endif11478            endif11479 11480            if EnableRefreshPotion = 1 and diffstam > RefreshPotionSPdiff11481                if findtype "Red Potion" self11482                    dclicktype "Red Potion"11483                    if EnableOverheadMessages = 1 and timer RedPotionMessageTimer > 450011484                        if insysmsg "potion satchel used"11485                            overhead '[ FREE REFRESH POTION ]' 3711486                        else11487                            overhead '[ REFRESH POTION ]' 3711488                        endif11489                        clearsysmsg11490                        settimer RedPotionMessageTimer 011491                    endif11492                    wait 25011493                else11494                    if timer RedPotionMessageTimer > 4500 and EnableOverheadMessages = 111495                        overhead '[ NO REFRESH POTS! ]' 33711496                        settimer RedPotionMessageTimer 011497                    endif11498                endif11499            endif11500 11501            if timer "TargetTimer" > 3500 and find ClosestTarget ground -1 -1 TargetAttackRange11502                getlabel ClosestTarget TargetDesc11503                if EnableOverheadMessages = 1 or EnableOverheadMessages = 211504                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange11505                        overhead '[ PARAGON! ]' 12 ClosestTarget11506                        overhead " � " 12 ClosestTarget11507                        settimer "TargetTimer" 011508                    elseif find ClosestTarget ground -1 -1 TargetAttackRange11509                        overhead '[ TARGET ]' 253 ClosestTarget11510                        overhead " � " 253 ClosestTarget11511                        settimer "TargetTimer" 011512                    endif11513                else11514                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange11515                        overhead " ��� " 12 ClosestTarget11516                        settimer "TargetTimer" 011517                    elseif find ClosestTarget ground -1 -1 TargetAttackRange11518                        overhead " � " 253 ClosestTarget11519                        settimer "TargetTimer" 011520                    endif11521                endif11522            endif11523 11524            if EnablePKradar = 1 and TimeToGo != 111525                if timer "PKRadarTimer" > 150011526                    clearsysmsg11527                    hotkey 'Next Murderer Player Target'11528                    wait 15011529                    if insysmsg "No one matching that was found"11530                        settimer "PKRadarTimer" 011531                        clearsysmsg11532                    else11533                        if EnableRedAlertOverhead = 111534                            overhead "[ !! RED ALERT !! ]" 3711535                        endif11536                        hotkey 'Toggle Peace Only'11537                        @setvar! RedTargetFound 111538                        @setvar! TimeToGo 111539                        @setvar! MurdererTarget lasttarget11540                        replay11541                    endif11542                endif11543            endif11544 11545            if EnableTrackingAutoRecall = 1 and TimeToGo != 111546                if PKTrackingRange = 6011547                    if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"11548                        hotkey 'Toggle Peace Only'11549                        if EnableRedAlertOverhead = 111550                            overhead '[ !! RED ALERT !! ]' 3711551                        endif11552                        @setvar! RedTargetFound 111553                        @setvar! TimeToGo 111554                        clearsysmsg11555                        replay11556                    endif11557                elseif PKTrackingRange = 5011558                    if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"11559                        hotkey 'Toggle Peace Only'11560                        if EnableRedAlertOverhead = 111561                            overhead '[ !! RED ALERT !! ]' 3711562                        endif11563                        @setvar! RedTargetFound 111564                        @setvar! TimeToGo 111565                        clearsysmsg11566                        replay11567                    endif11568                elseif PKTrackingRange = 4011569                    if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"11570                        hotkey 'Toggle Peace Only'11571                        if EnableRedAlertOverhead = 111572                            overhead '[ !! RED ALERT !! ]' 3711573                        endif11574                        @setvar! RedTargetFound 111575                        @setvar! TimeToGo 111576                        clearsysmsg11577                        replay11578                    endif11579                elseif PKTrackingRange = 011580                    if insysmsg "Now tracking"11581                        hotkey 'Toggle Peace Only'11582                        if EnableRedAlertOverhead = 111583                            overhead '[ !! RED ALERT !! ]' 3711584                        endif11585                        @setvar! RedTargetFound 111586                        @setvar! TimeToGo 111587                        clearsysmsg11588                        replay11589                    endif11590                endif11591            endif11592 11593            @setvar! SpellcastCooldown 011594            @setvar! CastingWasInterrupted 011595 11596            if EnableCastFlamestrike = 1 and mana >= CastMediumSpellsBelowMana and findtype 3981 self and findtype 3980 self and timer FlamestrikeCooldownTimer > FlamestrikeCooldown11597                cast 'flamestrike'11598                settimer FlamestrikeCooldownTimer 011599                settimer spellTimer 011600                @setvar! SpellcastCooldown 140011601            else11602                break11603            endif11604 11605            settimer AntiStallTimer 011606 11607            while not targetexists11608                if targetexists11609                    break11610                endif11611 11612                if diffhits >= CastGreaterHealHPdiff11613                    interrupt11614                    @setvar! AttackModeActive 111615                    @setvar! CastingWasInterrupted 111616                endif11617 11618                if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange11619                    @setvar! AttackModeActive 011620                    @setvar! RepeatCastingPoison 011621                    @setvar! CastingWasInterrupted 111622                    @setvar! ClosestTargetisSticky 011623                    @setvar! TargetSwap 011624                    interrupt11625                    break11626                endif11627 11628                if insysmsg "Your concentration is disturbed"11629                    interrupt11630                    @setvar! CastingWasInterrupted 111631                    break11632                endif11633 11634                if EnablePanaceaPotion = 1 and skill 'Alchemy' >= 80 and RedTargetFound != 111635                    if findbuff "Bleed" or findbuff "Diseased"11636                        if not findbuff "panacea potion cooldown"11637                            if findtype "Orange Potion" self11638                                dclicktype "Orange Potion"11639                                wait 50011640                                if findbuff "panacea potion cooldown" and EnableOverheadMessages = 111641                                    overhead '[ PANACEA ACTIVATED ]' 5511642                                    cooldown "Panacea Potion" 3000011643                                endif11644                            endif11645                        endif11646                    endif11647                endif11648 11649                if EnableCleansingBrews = 111650                    if findbuff "Diseased" or findbuff "Bleed"11651                        if timer CleansingBrewTimer > 12000011652                            if findtype 50675 self 2935 as CleansingBrew11653                                dclick CleansingBrew11654                                if EnableOverheadMessages = 111655                                    overhead '[ CLEANSING BREW ]' 211711656                                endif11657                                cooldown 'Cleansing Brew' 12000011658                                settimer CleansingBrewTimer 011659                                wait 25011660                            else11661                                if timer CleansingBrewOverhead > 1500011662                                    overhead "[ NO CLEANSING BREWS! ]" 33711663                                    settimer CleansingBrewOverhead 011664                                    settimer CleansingBrewTimer 011665                                endif11666                            endif11667                        else11668                            if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 1500011669                                overhead '[ BREW ON COOLDOWN! ]' 3711670                                settimer CleansingBrewOverhead 011671                            endif11672                        endif11673                    endif11674                endif11675 11676                if EnableCurePotion = 111677                    while poisoned and casting and not targetexists11678                        if findtype "Orange Potion" self11679                            dclicktype "Orange Potion"11680                            if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 350011681                                if insysmsg "potion satchel used"11682                                    overhead '[ FREE CURE POTION ]' 4411683                                else11684                                    overhead '[ CURE POTION ]' 4411685                                endif11686                                clearsysmsg11687                                settimer 'CurePotionMessageTimer' 011688                            endif11689                            wait 50011690                        else11691                            if timer 'CurePotionMessageTimer' > 5000 and EnableOverheadMessages = 111692                                overhead '[ NO CURE POTS! ]' 33711693                                settimer 'CurePotionMessageTimer' 011694                            endif11695                            break11696                        endif11697                    endwhile11698                endif11699 11700                if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff and casting and not targetexists11701                    if findtype "Yellow Potion" self as HealPot11702                        getlabel HealPot HealPotlabel11703                        if "next" in HealPotlabel11704                            // Do nothing11705                        else11706                            @setvar! HealPotionCheck 011707 11708                            if counttype 3852 self as HealPotCount11709                                @setvar! HealPotionCheck HealPotCount11710                            endif11711                            clearsysmsg11712                            dclicktype 385211713                            getlabel backpack backpackdesc11714                            wait 25011715                            if insysmsg "potion satchel used"11716                                settimer 'HealPotionTimer' 011717                                cooldown "Healing Potion" HealingPotionCooldown11718                                if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 450011719                                    overhead '[ FREE HEAL POTION ]' 25311720                                endif11721                            elseif HealPotionCheck != counttype 3852 self11722                                settimer 'HealPotionTimer' 011723                                cooldown "Healing Potion" HealingPotionCooldown11724                                if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 450011725                                    overhead '[ HEAL POTION ]' 25311726                                endif11727                            endif11728                            clearsysmsg11729                        endif11730                    else11731                        if timer 'HealPotionMessageTimer' > 4500 and EnableOverheadMessages = 111732                            overhead '[ NO HEAL POTS! ]' 33711733                            settimer 'HealPotionMessageTimer' 011734                        endif11735                    endif11736                endif11737 11738                if timer AntiStallTimer > 350011739                    settimer AntiStallTimer 011740                    break11741                endif11742            endwhile11743 11744            if CastingWasInterrupted = 011745                clearsysmsg11746                target ClosestTarget11747                getlabel backpack backpacklabel11748                wait 10011749                if insysmsg "cannot be seen"11750                    @setvar! AttackModeActive 211751                    break11752                endif11753            endif11754 11755            if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange11756                @setvar! RepeatCastingPoison 011757                @setvar! AttackModeActive 011758                @setvar! ClosestTargetisSticky 011759                @setvar! TargetSwap 011760                break11761            endif11762 11763            if EnableFrostAspect = 111764                if insysmsg "Frost Shell activated"11765                    cooldown "Frost Shell Active" 500011766                    if EnableOverheadMessages = 111767                        overhead '[ FROST SHELL! ]' 223411768                    endif11769                    if FrostAspectTier = 011770                        cooldown "Frost Shell Cooldown" 3000011771                    elseif FrostAspectTier = 111772                        cooldown "Frost Shell Cooldown" 2900011773                    elseif FrostAspectTier = 211774                        cooldown "Frost Shell Cooldown" 2800011775                    elseif FrostAspectTier = 311776                        cooldown "Frost Shell Cooldown" 2700011777                    elseif FrostAspectTier = 411778                        cooldown "Frost Shell Cooldown" 2600011779                    elseif FrostAspectTier = 511780                        cooldown "Frost Shell Cooldown" 2500011781                    elseif FrostAspectTier = 611782                        cooldown "Frost Shell Cooldown" 2400011783                    elseif FrostAspectTier = 711784                        cooldown "Frost Shell Cooldown" 2300011785                    elseif FrostAspectTier = 811786                        cooldown "Frost Shell Cooldown" 2200011787                    elseif FrostAspectTier = 911788                        cooldown "Frost Shell Cooldown" 2100011789                    elseif FrostAspectTier = 1011790                        cooldown "Frost Shell Cooldown" 2000011791                    elseif FrostAspectTier = 1111792                        cooldown "Frost Shell Cooldown" 1900011793                    elseif FrostAspectTier = 1211794                        cooldown "Frost Shell Cooldown" 1800011795                    elseif FrostAspectTier = 1311796                        cooldown "Frost Shell Cooldown" 1700011797                    elseif FrostAspectTier = 1411798                        cooldown "Frost Shell Cooldown" 1600011799                    elseif FrostAspectTier = 1511800                        cooldown "Frost Shell Cooldown" 1500011801                    endif11802                    clearsysmsg11803                endif11804            endif11805 11806            if dead11807                break11808            endif11809 11810            if timer "TargetTimer" > 3500 and find ClosestTarget ground -1 -1 TargetAttackRange11811                getlabel ClosestTarget TargetDesc11812                if EnableOverheadMessages = 1 or EnableOverheadMessages = 211813                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange11814                        overhead '[ PARAGON! ]' 12 ClosestTarget11815                        overhead " � " 12 ClosestTarget11816                        settimer "TargetTimer" 011817                    elseif find ClosestTarget ground -1 -1 TargetAttackRange11818                        overhead '[ TARGET ]' 253 ClosestTarget11819                        overhead " � " 253 ClosestTarget11820                        settimer "TargetTimer" 011821                    endif11822                else11823                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange11824                        overhead " ��� " 12 ClosestTarget11825                        settimer "TargetTimer" 011826                    elseif find ClosestTarget ground -1 -1 TargetAttackRange11827                        overhead " � " 253 ClosestTarget11828                        settimer "TargetTimer" 011829                    endif11830                endif11831            endif11832 11833            if EnablePKradar = 1 and TimeToGo != 111834                if timer "PKRadarTimer" > 150011835                    clearsysmsg11836                    hotkey 'Next Murderer Player Target'11837                    wait 15011838                    if insysmsg "No one matching that was found"11839                        settimer "PKRadarTimer" 011840                        clearsysmsg11841                    else11842                        if EnableRedAlertOverhead = 111843                            overhead "[ !! RED ALERT !! ]" 3711844                        endif11845                        hotkey 'Toggle Peace Only'11846                        @setvar! RedTargetFound 111847                        @setvar! TimeToGo 111848                        @setvar! MurdererTarget lasttarget11849                        replay11850                    endif11851                endif11852            endif11853 11854            if EnableTrackingAutoRecall = 1 and TimeToGo != 111855                if PKTrackingRange = 6011856                    if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"11857                        hotkey 'Toggle Peace Only'11858                        if EnableRedAlertOverhead = 111859                            overhead '[ !! RED ALERT !! ]' 3711860                        endif11861                        @setvar! RedTargetFound 111862                        @setvar! TimeToGo 111863                        clearsysmsg11864                        replay11865                    endif11866                elseif PKTrackingRange = 5011867                    if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"11868                        hotkey 'Toggle Peace Only'11869                        if EnableRedAlertOverhead = 111870                            overhead '[ !! RED ALERT !! ]' 3711871                        endif11872                        @setvar! RedTargetFound 111873                        @setvar! TimeToGo 111874                        clearsysmsg11875                        replay11876                    endif11877                elseif PKTrackingRange = 4011878                    if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"11879                        hotkey 'Toggle Peace Only'11880                        if EnableRedAlertOverhead = 111881                            overhead '[ !! RED ALERT !! ]' 3711882                        endif11883                        @setvar! RedTargetFound 111884                        @setvar! TimeToGo 111885                        clearsysmsg11886                        replay11887                    endif11888                elseif PKTrackingRange = 011889                    if insysmsg "Now tracking"11890                        hotkey 'Toggle Peace Only'11891                        if EnableRedAlertOverhead = 111892                            overhead '[ !! RED ALERT !! ]' 3711893                        endif11894                        @setvar! RedTargetFound 111895                        @setvar! TimeToGo 111896                        clearsysmsg11897                        replay11898                    endif11899                endif11900            endif11901 11902            if EnableUsePotionKegs = 1 and findtype 'empty bottle%s%' self and findtype 'keg' self and timer 'PotionKegPVPCooldown' > 3000011903                @setvar! PotionStockCheck 011904 11905                while PotionStockCheck < 8 and findtype 'empty bottle%s%' self11906                    if PotionStockCheck = 011907                        if HealingPotionAmount = 011908                            @setvar! PotionStockCheck 111909                        else11910                            @setvar! PotionType 385211911                            @setvar! KegColour 25311912                            @setvar! PotionAmounttoFill HealingPotionAmount11913                            @setvar! PotionStockCheck 111914                        endif11915                    elseif PotionStockCheck = 111916                        if CurePotionAmount = 011917                             @setvar! PotionStockCheck 211918                        else11919                            @setvar! PotionType 384711920                            @setvar! KegColour 4411921                            @setvar! PotionAmounttoFill CurePotionAmount11922                            @setvar! PotionStockCheck 211923                        endif11924                    elseif PotionStockCheck = 211925                        if RefreshPotionAmount = 011926                            @setvar! PotionStockCheck 311927                        else11928                            @setvar! PotionType 385111929                            @setvar! KegColour 3711930                            @setvar! PotionAmounttoFill RefreshPotionAmount11931                            @setvar! PotionStockCheck 311932                        endif11933                    elseif PotionStockCheck = 311934                        if StrengthPotionAmount = 011935                            @setvar! PotionStockCheck 411936                        else11937                            @setvar! PotionType 384911938                            @setvar! KegColour 95611939                            @setvar! PotionAmounttoFill StrengthPotionAmount11940                            @setvar! PotionStockCheck 411941                        endif11942                    elseif PotionStockCheck = 411943                        if AgilityPotionAmount = 011944                            @setvar! PotionStockCheck 511945                        else11946                            @setvar! PotionType 384811947                            @setvar! KegColour 9311948                            @setvar! PotionAmounttoFill AgilityPotionAmount11949                            @setvar! PotionStockCheck 511950                        endif11951                    elseif PotionStockCheck = 511952                        if ResistPotionAmount = 011953                            @setvar! PotionStockCheck 611954                        else11955                            @setvar! PotionType 384611956                            @setvar! KegColour 110911957                            @setvar! PotionAmounttoFill ResistPotionAmount11958                            @setvar! PotionStockCheck 611959                        endif11960                    elseif PotionStockCheck = 611961                        if PoisonPotionAmount = 011962                            @setvar! PotionStockCheck 711963                        else11964                            @setvar! PotionType 385011965                            @setvar! KegColour 36311966                            @setvar! PotionAmounttoFill PoisonPotionAmount11967                            @setvar! PotionStockCheck 711968                        endif11969                    elseif PotionStockCheck = 711970                        if ExplosionPotionAmount = 011971                            @setvar! PotionStockCheck 811972                        else11973                            @setvar! PotionType 385311974                            @setvar! KegColour 41911975                            @setvar! PotionAmounttoFill ExplosionPotionAmount11976                            @setvar! PotionStockCheck 811977                        endif11978                    else11979                        break11980                    endif11981 11982                    while counttype PotionType self < PotionAmounttoFill11983                        if not findtype 'empty bottle%s%' self11984                            if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 500011985                                overhead '[ NO EMPTY BOTTLES... ]' 33711986                                settimer 'PotionKegTimer' 011987                            endif11988                            break11989                        endif11990 11991                        if diffhits > HealPotionHPdiff11992                            break11993                        endif11994 11995                        if findtype 'keg' self KegColour as myKeg11996                            dclick myKeg11997                            wait 25011998                            if EnableOverheadMessages = 111999                                if timer 'PotionKegTimer' > 200012000                                    overhead '[ FILLING POTS... ]' KegColour12001                                    settimer 'PotionKegTimer' 012002                                endif12003                            endif12004                        else12005                            if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 500012006                                overhead '[ NO KEG TO USE... ]' KegColour12007                                settimer 'PotionKegTimer' 012008                            endif12009                            break12010                        endif12011                        if insysmsg "You have been in combat with another player"12012                            settimer "PotionKegPVPCooldown" 012013                            break12014                        endif12015                    endwhile12016 12017                    if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self12018                        if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 500012019                            overhead '[ NO EMPTY BOTTLES... ]' 33712020                            settimer 'PotionKegTimer' 012021                        endif12022                        break12023                    endif12024                endwhile12025            endif12026 12027            if EnableAutoExplosionPots = 1 and diffhits < CastGreaterHealHPdiff12028                if findtype 'purple potion' self as explotPot12029                    getlabel explotPot potLabel12030                    if "(" in potLabel12031                        if timer PurplePotionTimer > PurplePotionCooldown12032                            @setvar! PurplePotionReady 112033                        else12034                            @setvar! PurplePotionReady 012035                        endif12036                    else12037                        @setvar! PurplePotionReady 112038                    endif12039 12040                    if skill 'Alchemy' < 8012041                        if timer TelekinesisTimer > 60000 or ClosestTargetisSticky = 012042                            if PurplePotionReady = 1 and find ClosestTarget ground -1 -1 TargetAttackRange and not dead ClosestTarget12043                                if findtype 'purple potion' self12044                                    settimer AntiStallTimer 012045                                    while not targetexists and timer AntiStallTimer < 150012046                                        if timer AntiStallTimer > 150012047                                            break12048                                        endif12049                                        cast 'Telekinesis'12050                                        wait 50012051                                    endwhile12052                                    clearsysmsg12053                                    wft 50012054                                    target ClosestTarget12055                                    wait 25012056                                    if insysmsg "You are too far"12057                                        @setvar! ClosestTargetisSticky 012058                                        clearsysmsg12059                                    else12060                                        if EnableOverheadMessages = 1 and timer PurplePotionMessageTimer > 450012061                                            overhead  '[ EXPLOSION POTION! ]' 41912062                                            settimer PurplePotionMessageTimer 012063                                        endif12064                                        settimer TelekinesisTimer 012065                                        @setvar! ClosestTargetisSticky 112066                                    endif12067                                endif12068                            endif12069                        endif12070                    else12071                        @setvar! ClosestTargetisSticky 112072                    endif12073                else12074                    if EnableOverheadMessages = 1 and timer PurplePotionMessageTimer > 1500012075                        overhead '[ NO PURPLE POTIONS ]' 33712076                        settimer PurplePotionMessageTimer 012077                    endif12078                endif12079            endif12080 12081            @setvar! CastingWasInterrupted 012082 12083            if targetexists12084                hotkey 'cancel current target'12085            endif12086 12087            if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange12088                @setvar! RepeatCastingPoison 012089                @setvar! AttackModeActive 012090                @setvar! ClosestTargetisSticky 012091                @setvar! TargetSwap 012092                settimer TargetChecker 012093                break12094            endif12095 12096            if EnableAutoExplosionPots = 112097                if timer TelekinesisTimer > 6000012098                    @setvar! ClosestTargetisSticky 012099                    settimer TelekinesisTimer 012100                endif12101            endif12102 12103            if PurplePotionReady = 1 and ClosestTargetisSticky = 1 and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and diffhits < CastGreaterHealHPdiff12104                settimer AntiStallTimer 012105                while not insysmsg "Where should i throw this potion?" and timer AntiStallTimer < 150012106                    potion 'explosion'12107                    if timer AntiStallTimer > 150012108                        settimer AntiStallTimer 012109                        break12110                    endif12111                endwhile12112 12113                @setvar! PurplePotionReady 012114                settimer PurplePotionTimer 012115                settimer AntiStallTimer 012116 12117                while not targetexists and timer AntiStallTimer < 150012118                    if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange12119                        @setvar! RepeatCastingPoison 012120                        @setvar! AttackModeActive 012121                        @setvar! ClosestTargetisSticky 012122                        @setvar! CastingWasInterrupted 112123                        @setvar! TargetSwap 012124                        hotkey 'cancel current target'12125                        break12126                    endif12127 12128                    if timer AntiStallTimer > 150012129                        settimer AntiStallTimer 012130                        break12131                    endif12132                endwhile12133 12134                if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange12135                    break12136                endif12137 12138                if CastingWasInterrupted = 012139                    target ClosestTarget12140                    cooldown "Purple Potion" PurplePotionCooldown12141                    getlabel backpack packdesc12142                    wait 25012143                endif12144            endif12145 12146            if counttype 29012 self = 0 and EnableMagicMushroomMaker = 112147                while counttype 29012 self < MakeMushroomAmount and mana > 3 and diffhits < CastGreaterHealHPdiff12148                    if timer 'MushroomMakerTimer' > 450012149                        overhead '[ MAKING SHROOMS... ]' 41912150                        settimer 'MushroomMakerTimer' 012151                    endif12152 12153                    if not casting12154                        cast 'create food'12155                        wait 50012156                    endif12157 12158                    if diffhits > CastGreaterHealHPdiff12159                        break12160                    endif12161                endwhile12162 12163                if dead12164                    break12165                endif12166            endif12167 12168            if EnableGoldVacuum = 1 and DisableVacuums != 112169                if findtype "gold coin" ground -1 -1 15 as droppedmoney and timer "GoldRadar" > 350012170                    overhead " � " 149 droppedmoney12171                    settimer "GoldRadar" 012172                endif12173 12174                while findtype "gold coin" ground -1 -1 2 as droppedmoney and diffhits < CastGreaterHealHPdiff12175                    overhead " � " 14912176                    hotkey "Grab Item"12177                    wft 250012178                    target droppedmoney12179                    wait 25012180 12181                    if dead12182                        break12183                    endif12184 12185                    if diffhits >= CastGreaterHealHPdiff12186                        @setvar! AttackModeActive 112187                        break12188                    endif12189 12190                    if insysmsg "Invalid or inaccessible item"12191                        wait 50012192                        @ignore droppedmoney12193                    endif12194                    wait 25012195                endwhile12196            endif12197 12198            if EnableDungeonCleanup = 1 and diffhits < CastGreaterHealHPdiff12199                while findtype "iron ingot%s|board%s|cut up leather|3972|3962|3963|3980|3976|3973|3974|3981" ground -1 -1 2 as item12200                    if EnableOverheadMessages = 112201                        if timer "DungeonCleanup" > 150012202                            overhead '[ CLEANUP... ]' 42012203                            settimer "DungeonCleanup" 012204                        endif12205                    else12206                        if timer "DungeonCleanup" > 150012207                            overhead ' � ' 42012208                            settimer "DungeonCleanup" 012209                        endif12210                    endif12211                    hotkey "Grab Item"12212                    wft 100012213                    target item12214                    wait 50012215                    if dead12216                        break12217                    endif12218                    if diffhits > CastGreaterHealHPdiff12219                        break12220                    endif12221                endwhile12222 12223                if findtype "iron ingot%s|board%s|cut up leather|3972|3962|3963|3980|3976|3973|3974|3981" ground -1 -1 15 as dungeonjunk and timer "DungeonCleanupRadar" > 350012224                    overhead "�" 420 dungeonjunk12225                    settimer "DungeonCleanupRadar" 012226                endif12227            endif12228 12229            if timer "TargetTimer" > 3500 and find ClosestTarget ground -1 -1 TargetAttackRange12230                getlabel ClosestTarget TargetDesc12231                if EnableOverheadMessages = 1 or EnableOverheadMessages = 212232                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange12233                        overhead '[ PARAGON! ]' 12 ClosestTarget12234                        overhead " � " 12 ClosestTarget12235                        settimer "TargetTimer" 012236                    elseif find ClosestTarget ground -1 -1 TargetAttackRange12237                        overhead '[ TARGET ]' 253 ClosestTarget12238                        overhead " � " 253 ClosestTarget12239                        settimer "TargetTimer" 012240                    endif12241                else12242                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange12243                        overhead " ��� " 12 ClosestTarget12244                        settimer "TargetTimer" 012245                    elseif find ClosestTarget ground -1 -1 TargetAttackRange12246                        overhead " � " 253 ClosestTarget12247                        settimer "TargetTimer" 012248                    endif12249                endif12250            endif12251 12252            if EnablePKradar = 1 and TimeToGo != 112253                if timer "PKRadarTimer" > 150012254                    clearsysmsg12255                    hotkey 'Next Murderer Player Target'12256                    wait 15012257                    if insysmsg "No one matching that was found"12258                        settimer "PKRadarTimer" 012259                        clearsysmsg12260                    else12261                        if EnableRedAlertOverhead = 112262                            overhead "[ !! RED ALERT !! ]" 3712263                        endif12264                        hotkey 'Toggle Peace Only'12265                        @setvar! RedTargetFound 112266                        @setvar! TimeToGo 112267                        @setvar! MurdererTarget lasttarget12268                        replay12269                    endif12270                endif12271            endif12272 12273            if EnableTrackingAutoRecall = 1 and TimeToGo != 112274                if PKTrackingRange = 6012275                    if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"12276                        hotkey 'Toggle Peace Only'12277                        if EnableRedAlertOverhead = 112278                            overhead '[ !! RED ALERT !! ]' 3712279                        endif12280                        @setvar! RedTargetFound 112281                        @setvar! TimeToGo 112282                        clearsysmsg12283                        replay12284                    endif12285                elseif PKTrackingRange = 5012286                    if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"12287                        hotkey 'Toggle Peace Only'12288                        if EnableRedAlertOverhead = 112289                            overhead '[ !! RED ALERT !! ]' 3712290                        endif12291                        @setvar! RedTargetFound 112292                        @setvar! TimeToGo 112293                        clearsysmsg12294                        replay12295                    endif12296                elseif PKTrackingRange = 4012297                    if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"12298                        hotkey 'Toggle Peace Only'12299                        if EnableRedAlertOverhead = 112300                            overhead '[ !! RED ALERT !! ]' 3712301                        endif12302                        @setvar! RedTargetFound 112303                        @setvar! TimeToGo 112304                        clearsysmsg12305                        replay12306                    endif12307                elseif PKTrackingRange = 012308                    if insysmsg "Now tracking"12309                        hotkey 'Toggle Peace Only'12310                        if EnableRedAlertOverhead = 112311                            overhead '[ !! RED ALERT !! ]' 3712312                        endif12313                        @setvar! RedTargetFound 112314                        @setvar! TimeToGo 112315                        clearsysmsg12316                        replay12317                    endif12318                endif12319            endif12320 12321            if EnableAutoCarving = 1 and findtype 11552 self12322                while findtype "corpse" ground -1 -1 2 as deadbody and diffhits < CastGreaterHealHPdiff12323                   settimer SkinningTimeoutTimer 012324                   if findtype 11552 self12325                        if targetexists12326                           hotkey 'cancel current target'12327                        endif12328 12329                        while not targetexists12330                            skill 'forensicevaluation'12331                            getlabel backpack backpacklabel12332                        endwhile12333 12334                        if targetexists and find deadbody ground -1 -1 212335                            target 'self'12336                            @ignore deadbody12337                            wait 25012338                        endif12339 12340                        if insysmsg "You dont see anything nearby"12341                            clearsysmsg12342                            break12343                        else12344                            if EnableOverheadMessages = 1 and timer SkinningTimer > 300012345                                overhead '[ SKINNING... ]' 33312346                                settimer SkinningTimer 012347                            endif12348                        endif12349                    else12350                        if EnableOverheadMessages = 1 and timer SkinningTimer > 1500012351                            overhead '[ NO SKINNING KNIFE ]' 33712352                            settimer SkinningTimer 012353                            break12354                        endif12355                    endif12356 12357                    if timer SkinningTimeoutTimer > 1500 or diffhits > CastGreaterHealHPdiff12358                        break12359                    endif12360                endwhile12361            endif12362 12363            if EnableOverheadMessages = 112364                if insysmsg "something invisible out of"12365                    overhead "� SOMEONE HIDING! �" 612366                endif12367 12368                if insysmsg "additional mastery chain link"12369                    overhead "[ CHAIN LINK UNLOCKED!! ]" 14912370                    wait 50012371                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown12372                        wait 50012373                        say "[Yes"12374                        settimer EmoteCooldownTimer 012375                        cooldown "Emote Cooldown" SetEmoteCooldown12376                    endif12377                endif12378 12379                if insysmsg "enough experience to upgrade"12380                    overhead "[ ASPECT TIER UNLOCKED!! ]" 223412381                    wait 50012382                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown12383                        wait 50012384                        say "[Whistle"12385                        settimer EmoteCooldownTimer 012386                        cooldown "Emote Cooldown" SetEmoteCooldown12387                    endif12388                endif12389 12390                if insysmsg "You have unlocked a codex upgrade point"12391                    overhead "[ CODEX POINT UNLOCKED! ]" 211412392                    wait 25012393                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown12394                        wait 50012395                        say "[HighFive"12396                        settimer EmoteCooldownTimer 012397                        cooldown "Emote Cooldown" SetEmoteCooldown12398                    endif12399                endif12400 12401                if insysmsg "You have completed a society job"12402                    overhead "[ SOCIETY JOB COMPLETE! ]" 41912403                    wait 50012404                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown12405                        wait 50012406                        say "[Awoo"12407                        settimer EmoteCooldownTimer 012408                        cooldown "Emote Cooldown" SetEmoteCooldown12409                    endif12410                endif12411 12412                if insysmsg "Society Job Progress"12413                    overhead "[ � SOCIETY POINTS � ]" 41912414                endif12415 12416                if insysmsg 'You charge your spell with additional energy'12417                overhead '[ CHARGED SPELL! ]' 2212418                endif12419 12420                if insysmsg 'You generate mana for your spell'12421                    overhead '[ MANA REFUNDED! ]' 1112422                endif12423 12424                if insysmsg "You parry the spell"12425                    overhead "[ SPELL PARRY ]" 11112426                endif12427 12428                if insysmsg "Your attack places a hex"12429                    overhead '[ HEX ACTIVE ]' 14 ClosestTarget12430                endif12431 12432                if insysmsg "causes you to bleed"12433                    overhead "[ YOU ARE BLEEDING... ]" 211812434                endif12435 12436                if insysmsg "been struck by an ancient blight"12437                    overhead "[ DISEASED... ]" 110912438                endif12439 12440                if insysmsg "You feel chilled!"12441                    overhead "[ YOU ARE CHILLED... ]" 223412442                endif12443 12444                if insysmsg "You resist a disease effect"12445                    overhead "[ DISEASE RESISTED! ]" 88812446                endif12447 12448                if insysmsg "resist a bleed"12449                    overhead "[ BLEED RESISTED! ]" 88812450                endif12451 12452                if insysmsg "The creature pierces and bypasses your armor!"12453                    overhead "[ YOU ARE PIERCED... ]" 33712454                endif12455 12456                if insysmsg "Their attack disarms you!"12457                    overhead "[ DISARMED! ]" 33712458                endif12459 12460                if insysmsg "Their attack hamstrings you!"12461                    overhead "[ HAMSTRUNG! ]" 33712462                endif12463 12464                if insysmsg "attempting to steal" or insysmsg "attempting to peek"12465                    overhead "[ THIEF DETECTED! ]" 91012466                endif12467            else12468                if insysmsg "something invisible out of"12469                    overhead "� SOMEONE HIDING! �" 612470                endif12471 12472                if insysmsg "additional mastery chain link"12473                    overhead "[ � CHAIN! � ]" 14912474                    wait 50012475                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown12476                        wait 50012477                        say "[Yes"12478                        settimer EmoteCooldownTimer 012479                        cooldown "Emote Cooldown" SetEmoteCooldown12480                    endif12481                endif12482 12483                if insysmsg "enough experience to upgrade"12484                    overhead "[ � ASPECT � ]" 223412485                    wait 50012486                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown12487                        wait 50012488                        say "[Whistle"12489                        settimer EmoteCooldownTimer 012490                        cooldown "Emote Cooldown" SetEmoteCooldown12491                    endif12492                endif12493 12494                if insysmsg "You have unlocked a codex upgrade point"12495                    overhead '[ � CODEX! � ]' 211412496                    wait 25012497                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown12498                        wait 50012499                        say "[HighFive"12500                        settimer EmoteCooldownTimer 012501                        cooldown "Emote Cooldown" SetEmoteCooldown12502                    endif12503                endif12504 12505                if insysmsg "You have completed a society job"12506                    overhead "[ SOCIETY COMPLETE! ]" 41912507                    wait 50012508                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown12509                        wait 50012510                        say "[Awoo"12511                        settimer EmoteCooldownTimer 012512                        cooldown "Emote Cooldown" SetEmoteCooldown12513                    endif12514                endif12515 12516                if insysmsg "You parry the spell"12517                    overhead "*spell parry*" 11112518                endif12519 12520                if insysmsg "Your attack places a hex"12521                    overhead '*hexxed*' 14 ClosestTarget12522                endif12523 12524                if insysmsg "Society Job Progress"12525                    overhead "[ � SOCIETY � ]" 41912526                endif12527 12528                if insysmsg "attempting to steal" or insysmsg "attempting to peek"12529                    overhead "[ THIEF DETECTED! ]" 91012530                endif12531 12532                if insysmsg "Their attack disarms you!"12533                    overhead "*disarmed*" 33712534                endif12535 12536                if insysmsg "Their attack hamstrings you!"12537                    overhead "*hamstrung*" 33712538                endif12539            endif12540 12541            if followers > 012542                if skill 'spiritspeak' >= 50 and timer 'SpiritSpeakTimer' > 10000 and findtype 'corpse' ground -1 -1 15 and EnableNecroVengefulSpirit = 012543                    getlabel backpack backpacklabel12544                    skill 'spiritspeak'12545                    wait 25012546                    settimer 'SpiritSpeakTimer' 012547                    if insysmsg 'You establish contact'12548                        if EnableOverheadMessages = 112549                            overhead '[ CONSUMING SOULS... ]' 110912550                        else12551                            overhead '*consuming souls...*' 110912552                        endif12553                    endif12554                endif12555            endif12556 12557            if dead12558                break12559            endif12560 12561            if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange12562                settimer TargetChecker 012563                @setvar! AttackModeActive 012564                @setvar! RepeatCastingPoison 012565                @setvar! ClosestTargetisSticky 012566                @setvar! TargetSwap 012567                break12568            endif12569 12570            if diffhits > CastGreaterHealHPdiff or paralyzed12571                break12572            endif12573        endwhile12574 12575        ////////////////////////////12576        //  END FLAMESTRIKE LOOP  //12577        ////////////////////////////12578 12579 12580        ///////////////////////////12581        //  MEDIUM ATTACK LOOP:  //12582        ///////////////////////////12583 12584        while mana <= CastMediumSpellsBelowMana and mana >= CastSmallSpellsBelowMana and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and TargetSwap != 1 and diffhits < CastGreaterHealHPdiff12585            if dead12586                break12587            endif12588 12589            if EnableDropGoldWhenOverweight = 112590                if weight > maxweight12591                    replay12592                endif12593            endif12594 12595            if EnableWeightWarningMessage = 112596                if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer "WeightMessageTimer" > 600012597                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 212598                        overhead '[ WEIGHT WARNING... ]' 7712599                        settimer "WeightMessageTimer" 012600                    else12601                        overhead " � " 7712602                        settimer "WeightMessageTimer" 012603                    endif12604                elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer "WeightMessageTimer" > 600012605                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 212606                        overhead '[ WEIGHT WARNING! ]' 15312607                        settimer "WeightMessageTimer" 012608                    else12609                        overhead " � " 15312610                        settimer "WeightMessageTimer" 012611                    endif12612                elseif diffweight < RedWeightLimitDiffWeight12613                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 212614                        if timer "WeightMessageTimer" > 600012615                            overhead '[ WEIGHT LIMIT REACHED! ]' 3712616                            settimer "WeightMessageTimer" 012617                        endif12618                    else12619                        if timer "WeightMessageTimer" > 600012620                            overhead " � " 3712621                            settimer "WeightMessageTimer" 012622                        endif12623                    endif12624 12625                    if EnableAutoWeightRecall = 1 and not find ClosestTarget ground -1 -1 8 and WILDERNESSMODE = 112626                        wait 50012627                        hotkey 'Toggle Peace Only'12628                        @setvar! AutoWeightRecall 112629                        replay12630                    elseif EnableAutoWeightRecall = 1 and find ClosestTarget ground -1 -1 8 and WILDERNESSMODE = 112631                        if timer "WaitingToRecallTimer" > 3500 and EnableAutoRecallOverheadMessages = 112632                            overhead '[ WAITING TO RECALL... ]' 14912633                            settimer "WaitingToRecallTimer" 012634                        endif12635                        wait 50012636                    elseif EnableAutoWeightDungeonGate = 1 and DUNGEONMODE = 112637                        wait 50012638                        hotkey 'Toggle Peace Only'12639                        @setvar! TimeToGo 112640                        replay12641                    else12642                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 212643                            overhead '[ OVERWEIGHT! ]' 33712644                        else12645                            overhead " � " 33712646                        endif12647                        wait 150012648                        overhead '[ STOPPING SCRIPT! ]' 8812649                        stop12650                    endif12651                endif12652            endif12653 12654            while not warmode12655                if TimeToGo = 112656                    break12657                else12658                    if WILDERNESSMODE = 112659                        if EnableAutoRedRecall = 1 or EnableAutoWeightRecall = 112660                            overhead '[ RECALLING IN... ]' 211412661                            if warmode12662                                break12663                            endif12664                            wait 50012665                            overhead "3" 6912666                            wait 100012667                            if warmode12668                                break12669                            endif12670                            overhead "2" 6912671                            wait 100012672                            if warmode12673                                break12674                            endif12675                            overhead "1" 6912676                            wait 50012677                            if warmode12678                                break12679                            else12680                                @setvar! TimeToGo 112681                                @setvar! AutoRecallTime 112682                                break12683                            endif12684                        endif12685                    elseif DUNGEONMODE = 112686                        if EnableAutoRedDungeonGate = 1 or EnableAutoWeightDungeonGate = 112687                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 212688                                overhead '[ DUNGEON ESCAPE! ]' 33712689                            else12690                                overhead "�" 33712691                            endif12692                            hotkey 'Toggle Peace Only'12693                            @setvar! TimeToGo 112694                            getlabel backpack backpacklabel12695                            wait 25012696                            break12697                        endif12698                    endif12699                endif12700            endwhile12701 12702            if not warmode and TimeToGo = 112703                break12704            endif12705 12706            if diffhits > CastGreaterHealHPdiff or paralyzed12707                break12708            endif12709 12710            if SummonEarthElemental_or_AncientMummy != 0 or SummonWaterElemental_or_RagWitch != 0 or SummonFireElemental_or_Lich != 0 or SummonAirElemental_or_SkeletalFiend != 0 or SummonDemon_or_VampireThrall != 0 or SummonCreature_or_UndeadCreature != 012711                if followers < TotalSummonCount12712                    @setvar! AttackModeActive 212713                    replay12714                endif12715            endif12716 12717            if TargetSwap = 112718                @setvar! AttackModeActive 212719                break12720            endif12721 12722            if mana > CastMediumSpellsBelowMana12723                break12724            endif12725 12726            if timer "TargetTimer" > 3500 and find ClosestTarget ground -1 -1 TargetAttackRange12727                getlabel ClosestTarget TargetDesc12728                if EnableOverheadMessages = 1 or EnableOverheadMessages = 212729                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange12730                        overhead '[ PARAGON! ]' 12 ClosestTarget12731                        overhead " � " 12 ClosestTarget12732                        settimer "TargetTimer" 012733                    elseif find ClosestTarget ground -1 -1 TargetAttackRange12734                        overhead '[ TARGET ]' 253 ClosestTarget12735                        overhead " � " 253 ClosestTarget12736                        settimer "TargetTimer" 012737                    endif12738                else12739                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange12740                        overhead " ��� " 12 ClosestTarget12741                        settimer "TargetTimer" 012742                    elseif find ClosestTarget ground -1 -1 TargetAttackRange12743                        overhead " � " 253 ClosestTarget12744                        settimer "TargetTimer" 012745                    endif12746                endif12747            endif12748 12749            if EnablePKradar = 1 and TimeToGo != 112750                if timer "PKRadarTimer" > 150012751                    clearsysmsg12752                    hotkey 'Next Murderer Player Target'12753                    wait 15012754                    if insysmsg "No one matching that was found"12755                        settimer "PKRadarTimer" 012756                        clearsysmsg12757                    else12758                        if EnableRedAlertOverhead = 112759                            overhead "[ !! RED ALERT !! ]" 3712760                        endif12761                        hotkey 'Toggle Peace Only'12762                        @setvar! RedTargetFound 112763                        @setvar! TimeToGo 112764                        @setvar! MurdererTarget lasttarget12765                        replay12766                    endif12767                endif12768            endif12769 12770            if EnableTrackingAutoRecall = 1 and TimeToGo != 112771                if PKTrackingRange = 6012772                    if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"12773                        hotkey 'Toggle Peace Only'12774                        if EnableRedAlertOverhead = 112775                            overhead '[ !! RED ALERT !! ]' 3712776                        endif12777                        @setvar! RedTargetFound 112778                        @setvar! TimeToGo 112779                        clearsysmsg12780                        replay12781                    endif12782                elseif PKTrackingRange = 5012783                    if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"12784                        hotkey 'Toggle Peace Only'12785                        if EnableRedAlertOverhead = 112786                            overhead '[ !! RED ALERT !! ]' 3712787                        endif12788                        @setvar! RedTargetFound 112789                        @setvar! TimeToGo 112790                        clearsysmsg12791                        replay12792                    endif12793                elseif PKTrackingRange = 4012794                    if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"12795                        hotkey 'Toggle Peace Only'12796                        if EnableRedAlertOverhead = 112797                            overhead '[ !! RED ALERT !! ]' 3712798                        endif12799                        @setvar! RedTargetFound 112800                        @setvar! TimeToGo 112801                        clearsysmsg12802                        replay12803                    endif12804                elseif PKTrackingRange = 012805                    if insysmsg "Now tracking"12806                        hotkey 'Toggle Peace Only'12807                        if EnableRedAlertOverhead = 112808                            overhead '[ !! RED ALERT !! ]' 3712809                        endif12810                        @setvar! RedTargetFound 112811                        @setvar! TimeToGo 112812                        clearsysmsg12813                        replay12814                    endif12815                endif12816            endif12817 12818            if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange12819                settimer TargetChecker 012820                @setvar! TargetSwap 012821                @setvar! RepeatCastingPoison 012822                @setvar! ClosestTargetisSticky 012823                @setvar! AttackModeActive 012824                break12825            endif12826 12827            if CheckClosestTargetTime != 012828                if timer TargetChecker > CheckClosestTargetTime12829                    @setvar! TargetSwap 012830                    hotkey "Target Closest Grey Monster"12831                    getlabel backpack backpacklabel12832                    @setvar! TargetToCheck lasttarget12833                    wait 25012834                    if TargetToCheck != ClosestTarget12835                        settimer TargetChecker 012836                        @setvar! TargetToAnalyze lasttarget12837                        @setvar! ClosestTargetisSticky 012838                        @setvar! AttackModeActive 212839                        @setvar! TargetSwap 112840                        break12841                    endif12842                    settimer TargetChecker 012843                endif12844            endif12845 12846            if EnableAutoCrookCheck = 112847                if skill 'herding' > 50 and timer CrookCheckTimer > 1000012848                    if findtype "shepherd's crook" self12849                        # '12850                        if listexists CrooksToUnignore12851                            removelist CrooksToUnignore12852                        endif12853                        createlist CrooksToUnignore12854                        for 512855                        if findtype "shepherd's crook" self as myCrook12856                            # '12857                            getlabel myCrook crooklabel12858                            wait 25012859                            if 'activated' in crooklabel12860                                break12861                            elseif 'unidentified' in crooklabel12862                                pushlist CrooksToUnignore myCrook12863                                @ignore myCrook12864                            else12865                                if followers > 012866                                    if EnableOverheadMessages = 112867                                        overhead "[ ACTIVATING CROOK! ]" 211412868                                    else12869                                        overhead "*crook activated*" 211412870                                    endif12871                                    dclick myCrook12872                                    wait 25012873                                    break12874                                endif12875                            endif12876                            wait 25012877                        endif12878                        endfor12879                        foreach CrookToUnignore in CrooksToUnignore12880                            @unignore CrookToUnignore12881                        endfor12882                        removelist CrooksToUnignore12883                    elseif not findtype "shepherd's crook" self12884                        # '12885                        if EnableOverheadMessages != 012886                            if timer CrookCheckOverheadTimer > 1500012887                                overhead "[ NO CROOK FOUND! ]" 33712888                                settimer CrookCheckOverheadTimer 012889                            endif12890                        endif12891                    endif12892                    settimer CrookCheckTimer 012893                endif12894            endif12895 12896            if mana < LowManaWarningAmount and timer ManaOverheadTimer > 4500 and LowManaWarningAmount != 012897                overhead "[ LOW MANA! ]" 3412898                settimer ManaOverheadTimer 012899            endif12900 12901            if EnableNecroStrangle = 1 or EnableNecroCorpseSkin = 1 or EnableNecroMindRot = 1 or EnableNecroEvilOmen = 1 or EnableNecroPainSpike = 112902                if findtype 'necromancer book' backpack12903                    yell '[necromancyhotbar'12904                    while not gumpexists 62243651612905                        yell '[necromancyhotbar'12906                    endwhile12907                endif12908            endif12909 12910            if gumpexists 62243651612911                if ingump "12/|13/|14/|15/|16/|17/|18/|19/|20/|21/|11/|10/|9/|8/|7/|6/|5/" 62243651612912                    @setvar! StrangleAvailable 112913                    @setvar! MindRotAvailable 112914                    @setvar! CorpseSkinAvailable 112915                    @setvar! EvilOmenAvailable 112916                    @setvar! PainSpikeAvailable 112917                elseif ingump "4/" 62243651612918                    if ingump "14/" 62243651612919                        @setvar! StrangleAvailable 112920                        @setvar! MindRotAvailable 112921                        @setvar! CorpseSkinAvailable 112922                        @setvar! EvilOmenAvailable 112923                        @setvar! PainSpikeAvailable 112924                    else12925                        @setvar! StrangleAvailable 112926                        @setvar! MindRotAvailable 112927                        @setvar! CorpseSkinAvailable 112928                        @setvar! EvilOmenAvailable 112929                        @setvar! PainSpikeAvailable 012930                    endif12931                elseif ingump "3/" 62243651612932                    if ingump "13/" 62243651612933                        @setvar! StrangleAvailable 112934                        @setvar! MindRotAvailable 112935                        @setvar! CorpseSkinAvailable 112936                        @setvar! EvilOmenAvailable 112937                        @setvar! PainSpikeAvailable 112938                    else12939                        @setvar! StrangleAvailable 012940                        @setvar! MindRotAvailable 112941                        @setvar! CorpseSkinAvailable 112942                        @setvar! EvilOmenAvailable 112943                        @setvar! PainSpikeAvailable 012944                    endif12945                elseif ingump "2/" 62243651612946                    if ingump "12/" 62243651612947                        @setvar! StrangleAvailable 112948                        @setvar! MindRotAvailable 112949                        @setvar! CorpseSkinAvailable 112950                        @setvar! EvilOmenAvailable 112951                        @setvar! PainSpikeAvailable 112952                    else12953                        @setvar! StrangleAvailable 012954                        @setvar! MindRotAvailable 012955                        @setvar! CorpseSkinAvailable 112956                        @setvar! EvilOmenAvailable 112957                        @setvar! PainSpikeAvailable 012958                    endif12959                elseif ingump "1/" 62243651612960                    if ingump "11/" 62243651612961                        @setvar! StrangleAvailable 112962                        @setvar! MindRotAvailable 112963                        @setvar! CorpseSkinAvailable 112964                        @setvar! EvilOmenAvailable 112965                        @setvar! PainSpikeAvailable 112966                    else12967                        @setvar! StrangleAvailable 012968                        @setvar! MindRotAvailable 012969                        @setvar! CorpseSkinAvailable 012970                        @setvar! EvilOmenAvailable 012971                        @setvar! PainSpikeAvailable 012972                    endif12973                elseif ingump "0/" 62243651612974                    if ingump "10/" 62243651612975                        @setvar! StrangleAvailable 112976                        @setvar! MindRotAvailable 112977                        @setvar! CorpseSkinAvailable 112978                        @setvar! EvilOmenAvailable 112979                        @setvar! PainSpikeAvailable 112980                    else12981                        @setvar! StrangleAvailable 012982                        @setvar! MindRotAvailable 012983                        @setvar! CorpseSkinAvailable 012984                        @setvar! EvilOmenAvailable 012985                        @setvar! PainSpikeAvailable 012986                    endif12987                endif12988            endif12989 12990            if EnableNecroStrangle = 1 and StrangleAvailable = 1 and timer StrangleTimer > 30000 and skill 'necromancy' >= 85 and mana >= 50 and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and timer NecroCooldownTimer > 100012991                @setvar! CastingWasInterrupted 012992                clearsysmsg12993                while not insysmsg "unholy symbols remaining"12994                    yell '[Strangle'12995                    getlabel backpack packdesc12996                    wait 25012997                    if insysmsg "seconds before you may use that ability again."12998                        @setvar! CastingWasInterrupted 112999                        settimer StrangleTimer 2800013000                        break13001                    endif13002                endwhile13003 13004                if CastingWasInterrupted = 013005                    if EnableOverheadMessages = 113006                        overhead '[ STRANGLE ]' 33413007                    endif13008                    settimer StrangleTimer 013009                    cooldown "Strangle" 3000013010                    settimer NecroCooldownTimer 013011                endif13012            endif13013 13014            if EnableNecroCorpseSkin = 1 and CorpseSkinAvailable = 1 and timer CorpseSkinTimer > 30000 and skill 'necromancy' >= 65 and mana >= MinimumManaAmounttoNecroBuff and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and timer NecroCooldownTimer > 100013015                @setvar! CastingWasInterrupted 013016                clearsysmsg13017                while not insysmsg "unholy symbols remaining"13018                    yell '[CorpseSkin'13019                    getlabel backpack packdesc13020                    wait 25013021                    if insysmsg "seconds before you may use that ability again."13022                        @setvar! CastingWasInterrupted 113023                        settimer CorpseSkinTimer 2800013024                        break13025                    endif13026                endwhile13027 13028                if CastingWasInterrupted = 013029                    if EnableOverheadMessages = 113030                        overhead '[ CORPSE SKIN ]' 4013031                    endif13032                    settimer CorpseSkinTimer 013033                    cooldown "Corpse Skin" 3000013034                    settimer NecroCooldownTimer 013035                endif13036            endif13037 13038            if EnableNecroMindRot = 1 and MindRotAvailable = 1 and timer MindRotTimer > 30000 and skill 'necromancy' >= 75 and mana >= MinimumManaAmounttoNecroBuff and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and timer NecroCooldownTimer > 100013039                @setvar! CastingWasInterrupted 013040                clearsysmsg13041                while not insysmsg "unholy symbols remaining"13042                    yell '[MindRot'13043                    getlabel backpack packdesc13044                    wait 25013045                    if insysmsg "seconds before you may use that ability again."13046                        @setvar! CastingWasInterrupted 113047                        settimer MindRotTimer 2800013048                        break13049                    else13050                        break13051                    endif13052                endwhile13053 13054                if CastingWasInterrupted = 013055                    if EnableOverheadMessages = 113056                        overhead '[ MIND ROT ]' 22313057                    endif13058                    settimer MindRotTimer 013059                    cooldown "Mind Rot" 3000013060                    settimer NecroCooldownTimer 013061                endif13062            endif13063 13064            if EnableNecroEvilOmen = 1 and EvilOmenAvailable = 1 and timer EvilOmenTimer > 30000 and skill 'necromancy' >= 60 and mana >= MinimumManaAmounttoNecroBuff and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and timer NecroCooldownTimer > 100013065                @setvar! CastingWasInterrupted 013066                clearsysmsg13067                while not insysmsg "unholy symbols remaining"13068                    yell '[EvilOmen'13069                    getlabel backpack packdesc13070                    wait 25013071                    if insysmsg "seconds before you may use that ability again."13072                        @setvar! CastingWasInterrupted 113073                        settimer EvilOmenTimer 2800013074                        break13075                    endif13076                endwhile13077 13078                if CastingWasInterrupted = 013079                    if EnableOverheadMessages = 113080                    overhead '[ EVIL OMEN ]' 23813081                    endif13082                    settimer EvilOmenTimer 013083                    cooldown "Evil Omen" 3000013084                    settimer NecroCooldownTimer 013085                endif13086            endif13087 13088            if EnableNecroPainSpike = 1 and PainSpikeAvailable = 1 and timer 'PainSpikeTimer' > 30000 and skill 'necromancy' >= 95 and mana >= MinimumManaAmounttoNecroBuff and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 4 and findtype 8198 ground -1 -1 2 as corpsespike and timer 'PainSpikeDelayTimer' > PainSpikeAttackDelay and timer NecroCooldownTimer > 100013089                @setvar! CastingWasInterrupted 013090                clearsysmsg13091                yell "[PainSpike"13092                wft 100013093                target ClosestTarget13094                getlabel backpack backpacklabel13095                wft 25013096                if insysmsg "You do not see any corpses" or insysmsg "seconds before you may use that ability again."13097                    settimer PainSpikeTimer 2500013098                    @setvar! CastingWasInterrupted 113099                endif13100 13101                if CastingWasInterrupted = 013102                    if EnableOverheadMessages = 113103                        overhead '[ PAIN SPIKE! ]' 33713104                    endif13105                    settimer PainSpikeTimer 013106                    cooldown "Pain Spike" 3000013107                    settimer NecroCooldownTimer 013108                endif13109            endif13110 13111            if EnableNecroPoisonStrike != 0 and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and diffhits < CastGreaterHealHPdiff and timer NecroCooldownTimer > 100013112                getlabel ClosestTarget targetLabel13113                if "-" in targetLabel13114                    getlabel ClosestTarget targetLabel13115                endif13116 13117                @setvar! CastPoisonStrike 013118 13119                if EnableCastPoison = 113120                    if "Ticks" in targetLabel or "resists" in targetLabel and EnableCastPoison = 113121                        @setvar! RepeatCastingPoison 113122 13123                        if SetPoisonLevel = 213124                            if "Lethal" in targetLabel13125                                @setvar! RepeatCastingPoison 013126                            endif13127                        elseif SetPoisonLevel = 113128                            if "Lethal" in targetLabel or "Deadly" in targetLabel13129                                @setvar! RepeatCastingPoison 013130                            endif13131                        else13132                            @setvar! RepeatCastingPoison 013133                        endif13134 13135                        if EnableNecroPoisonStrike != 013136                            if findtype 'necromancer book' backpack and not gumpexists 62243651613137                                yell '[necromancyhotbar'13138                                while not gumpexists 62243651613139                                    yell '[necromancyhotbar'13140                                    wait 50013141                                endwhile13142                            endif13143 13144                            if EnableNecroPoisonStrike = 213145                                if "[2" in targetLabel13146                                    @setvar! CastPoisonStrike 113147                                else13148                                    @setvar! CastPoisonStrike 013149                                endif13150                            elseif EnableNecroPoisonStrike = 313151                                if "[2" in targetLabel or "[3" in targetLabel13152                                    @setvar! CastPoisonStrike 113153                                else13154                                    @setvar! CastPoisonStrike 013155                                endif13156                            elseif EnableNecroPoisonStrike = 413157                                if "[2" in targetLabel or "[3" in targetLabel or "[4" in targetLabel13158                                    @setvar! CastPoisonStrike 113159                                else13160                                    @setvar! CastPoisonStrike 013161                                endif13162                            elseif EnableNecroPoisonStrike = 513163                                if "[2" in targetLabel or "[3" in targetLabel or "[4" in targetLabel or "[5" in targetLabel13164                                    @setvar! CastPoisonStrike 113165                                else13166                                    @setvar! CastPoisonStrike 013167                                endif13168                            elseif EnableNecroPoisonStrike = 613169                                if "[2" in targetLabel or "[3" in targetLabel or "[4" in targetLabel or "[5" in targetLabel or "[6" in targetLabel13170                                    @setvar! CastPoisonStrike 113171                                else13172                                    @setvar! CastPoisonStrike 013173                                endif13174                            elseif EnableNecroPoisonStrike = 713175                                if "[2" in targetLabel or "[3" in targetLabel or "[4" in targetLabel or "[5" in targetLabel or "[6" in targetLabel or "[7" in targetLabel13176                                    @setvar! CastPoisonStrike 113177                                else13178                                    @setvar! CastPoisonStrike 013179                                endif13180                            elseif EnableNecroPoisonStrike = 813181                                if "[2" in targetLabel or "[3" in targetLabel or "[4" in targetLabel or "[5" in targetLabel or "[6" in targetLabel or "[7" in targetLabel or "[8" in targetLabel13182                                    @setvar! CastPoisonStrike 113183                                else13184                                    @setvar! CastPoisonStrike 013185                                endif13186                            elseif EnableNecroPoisonStrike = 913187                                if "[2" in targetLabel or "[3" in targetLabel or "[4" in targetLabel or "[5" in targetLabel or "[6" in targetLabel or "[7" in targetLabel or "[8" in targetLabel or "[9" in targetLabel13188                                    @setvar! CastPoisonStrike 113189                                else13190                                    @setvar! CastPoisonStrike 013191                                endif13192                            endif13193                            getlabel backpack packdesc13194                        endif13195                    endif13196                else13197                    if timer CorpseSkinDiseaseTimer > CorpseSkinPoisonStrikeDelay and EnableNecroPoisonStrike = 1 and EnableNecroCorpseSkin = 113198                        @setvar! CastPoisonStrike 113199                    else13200                        @setvar! CastPoisonStrike 013201                    endif13202                endif13203 13204                getlabel backpack packdesc13205 13206                if CastPoisonStrike = 113207                    if findtype 'necromancer book' backpack and not gumpexists 62243651613208                        while not gumpexists 62243651613209                            yell '[necromancyhotbar'13210                        endwhile13211                    endif13212 13213                    @setvar! PoisonStrikeAvailable 013214 13215                    if gumpexists 62243651613216                        if ingump "12/|13/|14/|15/|16/|17/|18/|19/|20/|21/|11/|10/|9/|8/|7/|6/|5/|4/|3/|2/" 62243651613217                            @setvar! PoisonStrikeAvailable 113218                        elseif ingump "1/" 62243651613219                            @setvar! PoisonStrikeAvailable 113220                        elseif ingump "0/" 62243651613221                            if ingump "10/" 62243651613222                                @setvar! PoisonStrikeAvailable 113223                            else13224                                @setvar! PoisonStrikeAvailable 013225                            endif13226                        endif13227                    endif13228 13229                    if CastPoisonStrike = 1 and PoisonStrikeAvailable = 1 and timer PoisonStrikeTimer > 30000 and skill 'necromancy' >= 55 and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange13230                        clearsysmsg13231                        while not insysmsg "unholy symbols remaining"13232                            if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange13233                                @setvar! RepeatCastingPoison 013234                                @setvar! AttackModeActive 013235                                @setvar! ClosestTargetisSticky 013236                                @setvar! TargetSwap 013237                                break13238                            endif13239 13240                            yell '[PoisonStrike'13241                            wft 150013242                            clearsysmsg13243                            target ClosestTarget13244                            wait 25013245 13246                            if insysmsg "seconds before you may use that ability again."13247                                settimer PoisonStrikeTimer 2800013248                                clearsysmsg13249                                break13250                            elseif insysmsg "You do not have a Spell-based poison or disease effect on that target."13251                                settimer PoisonStrikeTimer 1500013252                                clearsysmsg13253                                break13254                            else13255                                break13256                            endif13257                        endwhile13258 13259                        if insysmsg "unholy symbols remaining"13260                            if EnableOverheadMessages = 113261                                overhead '[ POISON STRIKE! ]' 7713262                            endif13263                            @setvar! PoisonStrikeAvailable 013264                            settimer PoisonStrikeTimer 013265                            cooldown "Poison Strike" 3000013266                            @setvar! CastPoisonStrike 013267                            settimer NecroCooldownTimer 013268                        endif13269                    endif13270                endif13271 13272                if EnableCastPoison = 1 and RepeatCastingPoison = 1 and diffhits < CastGreaterHealHPdiff and mana >= 9 and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and findtype 3976 self13273                    cast 'Poison'13274                    settimer AntiStallTimer 013275 13276                    while not targetexists and timer AntiStallTimer < 250013277                        if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange13278                            @setvar! RepeatCastingPoison 013279                            @setvar! AttackModeActive 013280                            @setvar! CastingWasInterrupted 113281                            @setvar! ClosestTargetisSticky 013282                            @setvar! TargetSwap 013283                            interrupt13284                            break13285                        endif13286 13287                        if insysmsg "Your concentration is disturbed"13288                            interrupt13289                            @setvar! CastingWasInterrupted 113290                            break13291                        endif13292 13293                        if timer AntiStallTimer > 250013294                            settimer AntiStallTimer 013295                            break13296                        endif13297                    endwhile13298 13299                    if CastingWasInterrupted = 1 and EnableNecroMindRot = 1 and MindRotAvailable = 1 and timer MindRotTimer > 30000 and skill 'necromancy' >= 7513300                        while not insysmsg "unholy symbols remaining"13301                            yell '[MindRot'13302                            getlabel backpack packdesc13303                            wait 25013304                            if insysmsg "seconds before you may use that ability again."13305                                @setvar! CastingWasInterrupted 113306                                settimer MindRotTimer 2800013307                                break13308                            endif13309                        endwhile13310 13311                        if CastingWasInterrupted = 013312                            if EnableOverheadMessages = 113313                                overhead '[ MIND ROT ]' 33013314                            endif13315                            settimer MindRotTimer 013316                            cooldown "Mind Rot" 3000013317                        endif13318                        @setvar! CastingWasInterrupted 013319                    endif13320 13321                    if CastingWasInterrupted = 013322                        clearsysmsg13323                        target ClosestTarget13324                        getlabel backpack packdesc13325                        wait 25013326                        if insysmsg "cannot be seen"13327                            break13328                        endif13329                    endif13330                endif13331            endif13332 13333            if EnableMeditation = 1 and mana < MeditateWhenManaBelow and not findbuff "meditating" and timer 'MeditationTimer' > 1000013334                skill 'meditation'13335                getlabel backpack packdesc13336                wait 25013337 13338                if not findbuff 'meditating'13339                    settimer 'MeditationTimer' 750013340                elseif findbuff 'meditating'13341                    hotkey 'Toggle Peace Only'13342                    settimer 'MeditationTimer' 013343                    while mana < maxmana and diffhits < CastGreaterHealHPdiff13344                        if timer "TargetTimer" > 3500 and find ClosestTarget ground -1 -1 TargetAttackRange13345                            getlabel ClosestTarget TargetDesc13346                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 213347                                if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange13348                                    overhead '[ PARAGON! ]' 12 ClosestTarget13349                                    overhead " � " 12 ClosestTarget13350                                    settimer "TargetTimer" 013351                                elseif find ClosestTarget ground -1 -1 TargetAttackRange13352                                    overhead '[ TARGET ]' 253 ClosestTarget13353                                    overhead " � " 253 ClosestTarget13354                                    settimer "TargetTimer" 013355                                endif13356                            else13357                                if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange13358                                    overhead " ��� " 12 ClosestTarget13359                                    settimer "TargetTimer" 013360                                elseif find ClosestTarget ground -1 -1 TargetAttackRange13361                                    overhead " � " 253 ClosestTarget13362                                    settimer "TargetTimer" 013363                                endif13364                            endif13365                        endif13366                        if EnablePKradar = 1 and TimeToGo != 113367                            if timer "PKRadarTimer" > 150013368                                clearsysmsg13369                                hotkey 'Next Murderer Player Target'13370                                wait 15013371                                if insysmsg "No one matching that was found"13372                                    settimer "PKRadarTimer" 013373                                    clearsysmsg13374                                else13375                                    if EnableRedAlertOverhead = 113376                                        overhead "[ !! RED ALERT !! ]" 3713377                                    endif13378                                    hotkey 'Toggle Peace Only'13379                                    @setvar! RedTargetFound 113380                                    @setvar! TimeToGo 113381                                    @setvar! MurdererTarget lasttarget13382                                    replay13383                                endif13384                            endif13385                        endif13386                        if EnableTrackingAutoRecall = 1 and TimeToGo != 113387                            if PKTrackingRange = 6013388                                if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"13389                                    hotkey 'Toggle Peace Only'13390                                    if EnableRedAlertOverhead = 113391                                        overhead '[ !! RED ALERT !! ]' 3713392                                    endif13393                                    @setvar! RedTargetFound 113394                                    @setvar! TimeToGo 113395                                    clearsysmsg13396                                    replay13397                                endif13398                            elseif PKTrackingRange = 5013399                                if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"13400                                    hotkey 'Toggle Peace Only'13401                                    if EnableRedAlertOverhead = 113402                                        overhead '[ !! RED ALERT !! ]' 3713403                                    endif13404                                    @setvar! RedTargetFound 113405                                    @setvar! TimeToGo 113406                                    clearsysmsg13407                                    replay13408                                endif13409                            elseif PKTrackingRange = 4013410                                if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"13411                                    hotkey 'Toggle Peace Only'13412                                    if EnableRedAlertOverhead = 113413                                        overhead '[ !! RED ALERT !! ]' 3713414                                    endif13415                                    @setvar! RedTargetFound 113416                                    @setvar! TimeToGo 113417                                    clearsysmsg13418                                    replay13419                                endif13420                            elseif PKTrackingRange = 013421                                if insysmsg "Now tracking"13422                                    hotkey 'Toggle Peace Only'13423                                    if EnableRedAlertOverhead = 113424                                        overhead '[ !! RED ALERT !! ]' 3713425                                    endif13426                                    @setvar! RedTargetFound 113427                                    @setvar! TimeToGo 113428                                    clearsysmsg13429                                    replay13430                                endif13431                            endif13432                        endif13433                        if not findbuff 'meditating'13434                            hotkey 'Toggle War Only'13435                            break13436                        endif13437                        if mana > MeditateUntilManaReaches13438                            hotkey 'Toggle War Only'13439                            break13440                        endif13441                        if warmode on13442                            break13443                        endif13444                        if diffhits > CastGreaterHealHPdiff13445                            break13446                        endif13447                        if dead13448                            break13449                        endif13450                        if timer 'MeditationMessageTimer' > 400013451                            if EnableOverheadMessages = 113452                                overhead '[ MEDITATING... ]' 1113453                            else13454                                overhead "*meditating*" 1113455                            endif13456                            settimer 'MeditationMessageTimer' 013457                        endif13458                    endwhile13459                    if diffhits > CastGreaterHealHPdiff13460                        break13461                    endif13462                    if dead13463                        break13464                    endif13465                    if not warmode and TimeToGo != 113466                        hotkey 'Toggle War Only'13467                    endif13468                endif13469            elseif EnableMeditation != 1 and MeditateWhenManaBelow != 0 and mana < MeditateWhenManaBelow13470                if timer MissingRegsTimer > 400013471                    if EnableOverheadMessages = 113472                        overhead '[ WAITING FOR MANA... ]' 42013473                        settimer MissingRegsTimer 013474                    endif13475                endif13476            endif13477 13478            if timer "TargetTimer" > 3500 and find ClosestTarget ground -1 -1 TargetAttackRange13479                getlabel ClosestTarget TargetDesc13480                if EnableOverheadMessages = 1 or EnableOverheadMessages = 213481                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange13482                        overhead '[ PARAGON! ]' 12 ClosestTarget13483                        overhead " � " 12 ClosestTarget13484                        settimer "TargetTimer" 013485                    elseif find ClosestTarget ground -1 -1 TargetAttackRange13486                        overhead '[ TARGET ]' 253 ClosestTarget13487                        overhead " � " 253 ClosestTarget13488                        settimer "TargetTimer" 013489                    endif13490                else13491                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange13492                        overhead " ��� " 12 ClosestTarget13493                        settimer "TargetTimer" 013494                    elseif find ClosestTarget ground -1 -1 TargetAttackRange13495                        overhead " � " 253 ClosestTarget13496                        settimer "TargetTimer" 013497                    endif13498                endif13499            endif13500 13501            if EnablePKradar = 1 and TimeToGo != 113502                if timer "PKRadarTimer" > 150013503                    clearsysmsg13504                    hotkey 'Next Murderer Player Target'13505                    wait 15013506                    if insysmsg "No one matching that was found"13507                        settimer "PKRadarTimer" 013508                        clearsysmsg13509                    else13510                        if EnableRedAlertOverhead = 113511                            overhead "[ !! RED ALERT !! ]" 3713512                        endif13513                        hotkey 'Toggle Peace Only'13514                        @setvar! RedTargetFound 113515                        @setvar! TimeToGo 113516                        @setvar! MurdererTarget lasttarget13517                        replay13518                    endif13519                endif13520            endif13521 13522            if EnableTrackingAutoRecall = 1 and TimeToGo != 113523                if PKTrackingRange = 6013524                    if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"13525                        hotkey 'Toggle Peace Only'13526                        if EnableRedAlertOverhead = 113527                            overhead '[ !! RED ALERT !! ]' 3713528                        endif13529                        @setvar! RedTargetFound 113530                        @setvar! TimeToGo 113531                        clearsysmsg13532                        replay13533                    endif13534                elseif PKTrackingRange = 5013535                    if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"13536                        hotkey 'Toggle Peace Only'13537                        if EnableRedAlertOverhead = 113538                            overhead '[ !! RED ALERT !! ]' 3713539                        endif13540                        @setvar! RedTargetFound 113541                        @setvar! TimeToGo 113542                        clearsysmsg13543                        replay13544                    endif13545                elseif PKTrackingRange = 4013546                    if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"13547                        hotkey 'Toggle Peace Only'13548                        if EnableRedAlertOverhead = 113549                            overhead '[ !! RED ALERT !! ]' 3713550                        endif13551                        @setvar! RedTargetFound 113552                        @setvar! TimeToGo 113553                        clearsysmsg13554                        replay13555                    endif13556                elseif PKTrackingRange = 013557                    if insysmsg "Now tracking"13558                        hotkey 'Toggle Peace Only'13559                        if EnableRedAlertOverhead = 113560                            overhead '[ !! RED ALERT !! ]' 3713561                        endif13562                        @setvar! RedTargetFound 113563                        @setvar! TimeToGo 113564                        clearsysmsg13565                        replay13566                    endif13567                endif13568            endif13569 13570            if EnableEatMagicMushrooms = 113571                if diffmana > EatMushroomManadiff and timer MushroomTimer > 6000013572                    if counttype 29012 backpack13573                        dclicktype 29012 backpack13574                        getlabel backpack packdesc13575                        wait 25013576                        if insysmsg "You consume a magic mushroom"13577                            settimer MushroomTimer 013578                            cooldown "Mushroom" 6000013579                            if EnableOverheadMessages = 113580                                overhead '[ EATING SHROOMS... ]' 1313581                            endif13582                        endif13583                    elseif EnableOverheadMessages = 113584                        overhead '[ OUT OF SHROOMS! ]' 33713585                    endif13586                endif13587            endif13588 13589            if EnableStrengthPotion = 1 and diffhits < CastGreaterHealHPdiff13590                if skill 'Alchemy' > 0 and skill 'Alchemy' < 213591                    if insysmsg "You may now use a strength" or not findbuff "Strength Potion Usage Cooldown"13592                        if findtype "White Potion" self13593                            dclicktype "White Potion"13594                            if EnableOverheadMessages = 1 and timer WhitePotionMessageTimer > 450013595                                if insysmsg "potion satchel used"13596                                    overhead '[ FREE STRENGTH POTION ]' 95613597                                else13598                                    overhead '[ STRENGTH POTION ]' 95613599                                endif13600                                clearsysmsg13601                                settimer WhitePotionMessageTimer 013602                            endif13603                            wait 25013604                        else13605                            if timer WhitePotionMessageTimer > 450013606                                overhead '[ NO STRENGTH POTS! ]' 33713607                                settimer WhitePotionMessageTimer 013608                            endif13609                        endif13610                        clearsysmsg13611                    endif13612                elseif skill 'Alchemy' = 013613                    if insysmsg "You may now use a strength" or not findbuff "Strength Potion Usage Cooldown"13614                        if findtype "White Potion" self13615                            dclicktype "White Potion"13616                            if EnableOverheadMessages = 1 and timer WhitePotionMessageTimer > 450013617                                if insysmsg "potion satchel used"13618                                    overhead '[ FREE STRENGTH POTION ]' 95613619                                else13620                                    overhead '[ STRENGTH POTION ]' 95613621                                endif13622                                clearsysmsg13623                                settimer WhitePotionMessageTimer 013624                            endif13625                            wait 25013626                        else13627                            if timer WhitePotionMessageTimer > 450013628                                overhead '[ NO STRENGTH POTS! ]' 33713629                                settimer WhitePotionMessageTimer 013630                            endif13631                        endif13632                        clearsysmsg13633                    endif13634                else13635                    if not findbuff "Strength"13636                        if findtype "White Potion" self13637                            dclicktype "White Potion"13638                            if EnableOverheadMessages = 1 and timer WhitePotionMessageTimer > 450013639                                if insysmsg "potion satchel used"13640                                    overhead '[ FREE STRENGTH POTION ]' 95613641                                else13642                                    overhead '[ STRENGTH POTION ]' 95613643                                endif13644                                clearsysmsg13645                                settimer WhitePotionMessageTimer 013646                            endif13647                            wait 25013648                        else13649                            if timer WhitePotionMessageTimer > 450013650                                overhead '[ NO STRENGTH POTS! ]' 33713651                                settimer WhitePotionMessageTimer 013652                            endif13653                        endif13654                    endif13655                endif13656            endif13657 13658            if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff13659                if findtype "Yellow Potion" self as HealPot13660                    getlabel HealPot HealPotlabel13661                    if "next" in HealPotlabel13662                        // Do nothing13663                    else13664                        @setvar! HealPotionCheck 013665 13666                        if counttype 3852 self as HealPotCount13667                            @setvar! HealPotionCheck HealPotCount13668                        endif13669                        clearsysmsg13670                        dclicktype 385213671                        getlabel backpack backpackdesc13672                        wait 25013673                        if insysmsg "potion satchel used"13674                            settimer 'HealPotionTimer' 013675                            cooldown "Healing Potion" HealingPotionCooldown13676                            if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 450013677                                overhead '[ FREE HEAL POTION ]' 25313678                            endif13679                        elseif HealPotionCheck != counttype 3852 self13680                            settimer 'HealPotionTimer' 013681                            cooldown "Healing Potion" HealingPotionCooldown13682                            if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 450013683                                overhead '[ HEAL POTION ]' 25313684                            endif13685                        endif13686                        clearsysmsg13687                    endif13688                else13689                    if timer 'HealPotionMessageTimer' > 4500 and EnableOverheadMessages = 113690                        overhead '[ NO HEAL POTS! ]' 33713691                        settimer 'HealPotionMessageTimer' 013692                    endif13693                endif13694            endif13695 13696            if skill 'healing' > 0 and hp < maxhp and not bandaging13697                if findtype 'clean bandage%s%' self13698                    hotkey 'Bandage Self'13699                    if EnableOverheadMessages = 113700                        overhead '[ BANDAGING... ]' 8813701                    endif13702                else13703                    if EnableOverheadMessages = 113704                        overhead '[ NO BANDAGES! ]' 33713705                    endif13706                endif13707            endif13708 13709            if EnableAgilityPotion = 1 and not findbuff "Agility" and diffhits < CastGreaterHealHPdiff13710                if findtype "Blue Potion" self13711                    dclicktype "Blue Potion"13712                    if EnableOverheadMessages = 1 and timer BluePotionMessageTimer > 450013713                        if insysmsg "potion satchel used"13714                            overhead '[ FREE AGILITY POTION ]' 9313715                        else13716                            overhead '[ AGILITY POTION ]' 9313717                        endif13718                        clearsysmsg13719                        settimer BluePotionMessageTimer 013720                    endif13721                    wait 25013722                else13723                    if timer BluePotionMessageTimer > 4500 and EnableOverheadMessages = 113724                    overhead '[ NO AGILITY POTS! ]' 33713725                        settimer BluePotionMessageTimer 013726                    endif13727                endif13728            endif13729 13730            if EnableMagicResistPotion = 1 and not findbuff "Magic Resist" and diffhits < CastGreaterHealHPdiff13731                if findtype "Black Potion" self13732                    dclicktype "Black Potion"13733                    if EnableOverheadMessages = 1 and timer BlackPotionMessageTimer > 450013734                        if insysmsg "potion satchel used"13735                            overhead '[ FREE RESIST POTION ]' 110913736                        else13737                            overhead '[ RESIST POTION ]' 110913738                        endif13739                        clearsysmsg13740                        settimer BlackPotionMessageTimer 013741                    endif13742                    wait 25013743                else13744                    if timer BlackPotionMessageTimer > 4500 and EnableOverheadMessages = 113745                        overhead '[ NO RESIST POTS! ]' 33713746                        settimer BlackPotionMessageTimer 013747                    endif13748                endif13749            endif13750 13751            if EnableRefreshPotion = 1 and diffstam > RefreshPotionSPdiff13752                if findtype "Red Potion" self13753                    dclicktype "Red Potion"13754                    if EnableOverheadMessages = 1 and timer RedPotionMessageTimer > 450013755                        if insysmsg "potion satchel used"13756                            overhead '[ FREE REFRESH POTION ]' 3713757                        else13758                            overhead '[ REFRESH POTION ]' 3713759                        endif13760                        clearsysmsg13761                        settimer RedPotionMessageTimer 013762                    endif13763                    wait 25013764                else13765                    if timer RedPotionMessageTimer > 4500 and EnableOverheadMessages = 113766                        overhead '[ NO REFRESH POTS! ]' 33713767                        settimer RedPotionMessageTimer 013768                    endif13769                endif13770            endif13771 13772            if timer "TargetTimer" > 3500 and find ClosestTarget ground -1 -1 TargetAttackRange13773                getlabel ClosestTarget TargetDesc13774                if EnableOverheadMessages = 1 or EnableOverheadMessages = 213775                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange13776                        overhead '[ PARAGON! ]' 12 ClosestTarget13777                        overhead " � " 12 ClosestTarget13778                        settimer "TargetTimer" 013779                    elseif find ClosestTarget ground -1 -1 TargetAttackRange13780                        overhead '[ TARGET ]' 253 ClosestTarget13781                        overhead " � " 253 ClosestTarget13782                        settimer "TargetTimer" 013783                    endif13784                else13785                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange13786                        overhead " ��� " 12 ClosestTarget13787                        settimer "TargetTimer" 013788                    elseif find ClosestTarget ground -1 -1 TargetAttackRange13789                        overhead " � " 253 ClosestTarget13790                        settimer "TargetTimer" 013791                    endif13792                endif13793            endif13794 13795            if EnablePKradar = 1 and TimeToGo != 113796                if timer "PKRadarTimer" > 150013797                    clearsysmsg13798                    hotkey 'Next Murderer Player Target'13799                    wait 15013800                    if insysmsg "No one matching that was found"13801                        settimer "PKRadarTimer" 013802                        clearsysmsg13803                    else13804                        if EnableRedAlertOverhead = 113805                            overhead "[ !! RED ALERT !! ]" 3713806                        endif13807                        hotkey 'Toggle Peace Only'13808                        @setvar! RedTargetFound 113809                        @setvar! TimeToGo 113810                        @setvar! MurdererTarget lasttarget13811                        replay13812                    endif13813                endif13814            endif13815 13816            if EnableTrackingAutoRecall = 1 and TimeToGo != 113817                if PKTrackingRange = 6013818                    if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"13819                        hotkey 'Toggle Peace Only'13820                        if EnableRedAlertOverhead = 113821                            overhead '[ !! RED ALERT !! ]' 3713822                        endif13823                        @setvar! RedTargetFound 113824                        @setvar! TimeToGo 113825                        clearsysmsg13826                        replay13827                    endif13828                elseif PKTrackingRange = 5013829                    if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"13830                        hotkey 'Toggle Peace Only'13831                        if EnableRedAlertOverhead = 113832                            overhead '[ !! RED ALERT !! ]' 3713833                        endif13834                        @setvar! RedTargetFound 113835                        @setvar! TimeToGo 113836                        clearsysmsg13837                        replay13838                    endif13839                elseif PKTrackingRange = 4013840                    if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"13841                        hotkey 'Toggle Peace Only'13842                        if EnableRedAlertOverhead = 113843                            overhead '[ !! RED ALERT !! ]' 3713844                        endif13845                        @setvar! RedTargetFound 113846                        @setvar! TimeToGo 113847                        clearsysmsg13848                        replay13849                    endif13850                elseif PKTrackingRange = 013851                    if insysmsg "Now tracking"13852                        hotkey 'Toggle Peace Only'13853                        if EnableRedAlertOverhead = 113854                            overhead '[ !! RED ALERT !! ]' 3713855                        endif13856                        @setvar! RedTargetFound 113857                        @setvar! TimeToGo 113858                        clearsysmsg13859                        replay13860                    endif13861                endif13862            endif13863 13864            @setvar! SpellcastCooldown 013865            @setvar! CastingWasInterrupted 013866 13867            if diffhits < CastGreaterHealHPdiff13868                if EnableCastExplosion = 1 and mana >= 20 and findtype 3963 self and findtype 3974 self and timer ExplosionCooldownTimer > ExplosionCooldown13869                    cast 'Explosion'13870                    settimer ExplosionCooldownTimer 013871                    settimer EnergyBoltCooldownTimer EnergyBoltCooldown13872                    settimer spellTimer 013873                    @setvar! SpellcastCooldown 120013874                elseif EnableCastEnergyBolt = 1 and mana >= 20 and findtype 3962 self and findtype 3976 self and timer EnergyBoltCooldownTimer > EnergyBoltCooldown13875                    cast 'energy bolt'13876                    settimer EnergyBoltCooldownTimer 013877                    settimer MindBlastCooldownTimer MindblastCooldown13878                    settimer spellTimer 013879                    @setvar! SpellcastCooldown 120013880                elseif EnableCastMindblast = 1 and mana >= 20 and findtype 3962 self and findtype 3974 self and findtype 3976 self and findtype 3980 self and timer MindBlastCooldownTimer > MindblastCooldown13881                    cast 'mind blast'13882                    settimer MindBlastCooldownTimer 013883                    settimer spellTimer 013884                    @setvar! SpellcastCooldown 120013885                endif13886 13887                settimer AntiStallTimer 013888                getlabel backpack backpacklabel13889 13890                while not targetexists13891                    if targetexists13892                        break13893                    endif13894 13895                    if diffhits >= CastGreaterHealHPdiff13896                        interrupt13897                        @setvar! AttackModeActive 113898                        @setvar! CastingWasInterrupted 113899                    endif13900 13901                    if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange13902                        @setvar! AttackModeActive 013903                        @setvar! RepeatCastingPoison 013904                        @setvar! CastingWasInterrupted 113905                        @setvar! ClosestTargetisSticky 013906                        @setvar! TargetSwap 013907                        interrupt13908                        break13909                    endif13910 13911                    if insysmsg "Your concentration is disturbed"13912                        interrupt13913                        @setvar! CastingWasInterrupted 113914                        break13915                    endif13916 13917                    if EnablePanaceaPotion = 1 and skill 'Alchemy' >= 80 and RedTargetFound != 113918                        if findbuff "Bleed" or findbuff "Diseased"13919                            if not findbuff "panacea potion cooldown"13920                                if findtype "Orange Potion" self13921                                    dclicktype "Orange Potion"13922                                    wait 50013923                                    if findbuff "panacea potion cooldown" and EnableOverheadMessages = 113924                                        overhead '[ PANACEA ACTIVATED ]' 5513925                                        cooldown "Panacea Potion" 3000013926                                    endif13927                                endif13928                            endif13929                        endif13930                    endif13931 13932                    if EnableCleansingBrews = 113933                        if findbuff "Diseased" or findbuff "Bleed"13934                            if timer CleansingBrewTimer > 12000013935                                if findtype 50675 self 2935 as CleansingBrew13936                                    dclick CleansingBrew13937                                    if EnableOverheadMessages = 113938                                        overhead '[ CLEANSING BREW ]' 211713939                                    endif13940                                    cooldown 'Cleansing Brew' 12000013941                                    settimer CleansingBrewTimer 013942                                    wait 25013943                                else13944                                    if timer CleansingBrewOverhead > 1500013945                                        overhead "[ NO CLEANSING BREWS! ]" 33713946                                        settimer CleansingBrewOverhead 013947                                        settimer CleansingBrewTimer 013948                                    endif13949                                endif13950                            else13951                                if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 1500013952                                    overhead '[ BREW ON COOLDOWN! ]' 3713953                                    settimer CleansingBrewOverhead 013954                                endif13955                            endif13956                        endif13957                    endif13958 13959                    if EnableCurePotion = 113960                        while poisoned and casting and not targetexists13961                            if findtype "Orange Potion" self13962                                dclicktype "Orange Potion"13963                                if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 350013964                                    if insysmsg "potion satchel used"13965                                        overhead '[ FREE CURE POTION ]' 4413966                                    else13967                                        overhead '[ CURE POTION ]' 4413968                                    endif13969                                    clearsysmsg13970                                    settimer 'CurePotionMessageTimer' 013971                                endif13972                                wait 50013973                            else13974                                if timer 'CurePotionMessageTimer' > 5000 and EnableOverheadMessages = 113975                                    overhead '[ NO CURE POTS! ]' 33713976                                    settimer 'CurePotionMessageTimer' 013977                                endif13978                                break13979                            endif13980                        endwhile13981                    endif13982 13983                    if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff and casting and not targetexists13984                        if findtype "Yellow Potion" self as HealPot13985                            getlabel HealPot HealPotlabel13986                            if "next" in HealPotlabel13987                                // Do nothing13988                            else13989                                @setvar! HealPotionCheck 013990 13991                                if counttype 3852 self as HealPotCount13992                                    @setvar! HealPotionCheck HealPotCount13993                                endif13994                                clearsysmsg13995                                dclicktype 385213996                                getlabel backpack backpackdesc13997                                wait 25013998                                if insysmsg "potion satchel used"13999                                    settimer 'HealPotionTimer' 014000                                    cooldown "Healing Potion" HealingPotionCooldown14001                                    if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 450014002                                        overhead '[ FREE HEAL POTION ]' 25314003                                    endif14004                                elseif HealPotionCheck != counttype 3852 self14005                                    settimer 'HealPotionTimer' 014006                                    cooldown "Healing Potion" HealingPotionCooldown14007                                    if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 450014008                                        overhead '[ HEAL POTION ]' 25314009                                    endif14010                                endif14011                                clearsysmsg14012                            endif14013                        else14014                            if timer 'HealPotionMessageTimer' > 4500 and EnableOverheadMessages = 114015                                overhead '[ NO HEAL POTS! ]' 33714016                                settimer 'HealPotionMessageTimer' 014017                            endif14018                        endif14019                    endif14020 14021                    if timer AntiStallTimer > 350014022                        settimer AntiStallTimer 014023                        break14024                    endif14025                endwhile14026 14027                if dead14028                    break14029                endif14030 14031                if CastingWasInterrupted = 014032                    clearsysmsg14033                    target ClosestTarget14034                    getlabel backpack backpacklabel14035                    wait 25014036                    if insysmsg "cannot be seen"14037                        @setvar! AttackModeActive 214038                        break14039                    endif14040                endif14041 14042                if insysmsg "Mana Thief activated"14043                    if EnableOverheadMessages != 014044                        overhead "[ MANA THIEF! ]" 2214045                    endif14046                    cooldown "Mana Thief" 6000014047                endif14048 14049                if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange14050                    @setvar! RepeatCastingPoison 014051                    @setvar! AttackModeActive 014052                    @setvar! ClosestTargetisSticky 014053                    @setvar! TargetSwap 014054                    break14055                endif14056            endif14057 14058            if EnableFrostAspect = 114059                if insysmsg "Frost Shell activated"14060                    cooldown "Frost Shell Active" 500014061                    if EnableOverheadMessages = 114062                        overhead '[ FROST SHELL! ]' 223414063                    endif14064                    if FrostAspectTier = 014065                        cooldown "Frost Shell Cooldown" 3000014066                    elseif FrostAspectTier = 114067                        cooldown "Frost Shell Cooldown" 2900014068                    elseif FrostAspectTier = 214069                        cooldown "Frost Shell Cooldown" 2800014070                    elseif FrostAspectTier = 314071                        cooldown "Frost Shell Cooldown" 2700014072                    elseif FrostAspectTier = 414073                        cooldown "Frost Shell Cooldown" 2600014074                    elseif FrostAspectTier = 514075                        cooldown "Frost Shell Cooldown" 2500014076                    elseif FrostAspectTier = 614077                        cooldown "Frost Shell Cooldown" 2400014078                    elseif FrostAspectTier = 714079                        cooldown "Frost Shell Cooldown" 2300014080                    elseif FrostAspectTier = 814081                        cooldown "Frost Shell Cooldown" 2200014082                    elseif FrostAspectTier = 914083                        cooldown "Frost Shell Cooldown" 2100014084                    elseif FrostAspectTier = 1014085                        cooldown "Frost Shell Cooldown" 2000014086                    elseif FrostAspectTier = 1114087                        cooldown "Frost Shell Cooldown" 1900014088                    elseif FrostAspectTier = 1214089                        cooldown "Frost Shell Cooldown" 1800014090                    elseif FrostAspectTier = 1314091                        cooldown "Frost Shell Cooldown" 1700014092                    elseif FrostAspectTier = 1414093                        cooldown "Frost Shell Cooldown" 1600014094                    elseif FrostAspectTier = 1514095                        cooldown "Frost Shell Cooldown" 1500014096                    endif14097                    clearsysmsg14098                endif14099            endif14100 14101            if dead14102                break14103            endif14104 14105            if EnableUsePotionKegs = 1 and findtype 'empty bottle%s%' self and findtype 'keg' self and timer 'PotionKegPVPCooldown' > 3000014106                @setvar! PotionStockCheck 014107 14108                while PotionStockCheck < 8 and findtype 'empty bottle%s%' self14109                    if PotionStockCheck = 014110                        if HealingPotionAmount = 014111                            @setvar! PotionStockCheck 114112                        else14113                            @setvar! PotionType 385214114                            @setvar! KegColour 25314115                            @setvar! PotionAmounttoFill HealingPotionAmount14116                            @setvar! PotionStockCheck 114117                        endif14118                    elseif PotionStockCheck = 114119                        if CurePotionAmount = 014120                             @setvar! PotionStockCheck 214121                        else14122                            @setvar! PotionType 384714123                            @setvar! KegColour 4414124                            @setvar! PotionAmounttoFill CurePotionAmount14125                            @setvar! PotionStockCheck 214126                        endif14127                    elseif PotionStockCheck = 214128                        if RefreshPotionAmount = 014129                            @setvar! PotionStockCheck 314130                        else14131                            @setvar! PotionType 385114132                            @setvar! KegColour 3714133                            @setvar! PotionAmounttoFill RefreshPotionAmount14134                            @setvar! PotionStockCheck 314135                        endif14136                    elseif PotionStockCheck = 314137                        if StrengthPotionAmount = 014138                            @setvar! PotionStockCheck 414139                        else14140                            @setvar! PotionType 384914141                            @setvar! KegColour 95614142                            @setvar! PotionAmounttoFill StrengthPotionAmount14143                            @setvar! PotionStockCheck 414144                        endif14145                    elseif PotionStockCheck = 414146                        if AgilityPotionAmount = 014147                            @setvar! PotionStockCheck 514148                        else14149                            @setvar! PotionType 384814150                            @setvar! KegColour 9314151                            @setvar! PotionAmounttoFill AgilityPotionAmount14152                            @setvar! PotionStockCheck 514153                        endif14154                    elseif PotionStockCheck = 514155                        if ResistPotionAmount = 014156                            @setvar! PotionStockCheck 614157                        else14158                            @setvar! PotionType 384614159                            @setvar! KegColour 110914160                            @setvar! PotionAmounttoFill ResistPotionAmount14161                            @setvar! PotionStockCheck 614162                        endif14163                    elseif PotionStockCheck = 614164                        if PoisonPotionAmount = 014165                            @setvar! PotionStockCheck 714166                        else14167                            @setvar! PotionType 385014168                            @setvar! KegColour 36314169                            @setvar! PotionAmounttoFill PoisonPotionAmount14170                            @setvar! PotionStockCheck 714171                        endif14172                    elseif PotionStockCheck = 714173                        if ExplosionPotionAmount = 014174                            @setvar! PotionStockCheck 814175                        else14176                            @setvar! PotionType 385314177                            @setvar! KegColour 41914178                            @setvar! PotionAmounttoFill ExplosionPotionAmount14179                            @setvar! PotionStockCheck 814180                        endif14181                    else14182                        break14183                    endif14184 14185                    while counttype PotionType self < PotionAmounttoFill14186                        if not findtype 'empty bottle%s%' self14187                            if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 500014188                                overhead '[ NO EMPTY BOTTLES... ]' 33714189                                settimer 'PotionKegTimer' 014190                            endif14191                            break14192                        endif14193 14194                        if diffhits > HealPotionHPdiff14195                            break14196                        endif14197 14198                        if findtype 'keg' self KegColour as myKeg14199                            dclick myKeg14200                            wait 25014201                            if EnableOverheadMessages = 114202                                if timer 'PotionKegTimer' > 200014203                                    overhead '[ FILLING POTS... ]' KegColour14204                                    settimer 'PotionKegTimer' 014205                                endif14206                            endif14207                        else14208                            if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 500014209                                overhead '[ NO KEG TO USE... ]' KegColour14210                                settimer 'PotionKegTimer' 014211                            endif14212                            break14213                        endif14214                        if insysmsg "You have been in combat with another player"14215                            settimer "PotionKegPVPCooldown" 014216                            break14217                        endif14218                    endwhile14219 14220                    if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self14221                        if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 500014222                            overhead '[ NO EMPTY BOTTLES... ]' 33714223                            settimer 'PotionKegTimer' 014224                        endif14225                        break14226                    endif14227                endwhile14228            endif14229 14230            if EnableAutoExplosionPots = 1 and diffhits < CastGreaterHealHPdiff14231                if findtype 'purple potion' self as explotPot14232                    getlabel explotPot potLabel14233                    if "(" in potLabel14234                        if timer PurplePotionTimer > PurplePotionCooldown14235                            @setvar! PurplePotionReady 114236                        else14237                            @setvar! PurplePotionReady 014238                        endif14239                    else14240                        @setvar! PurplePotionReady 114241                    endif14242 14243                    if skill 'Alchemy' < 8014244                        if timer TelekinesisTimer > 60000 or ClosestTargetisSticky = 014245                            if PurplePotionReady = 1 and find ClosestTarget ground -1 -1 TargetAttackRange and not dead ClosestTarget14246                                if findtype 'purple potion' self14247                                    settimer AntiStallTimer 014248                                    while not targetexists and timer AntiStallTimer < 150014249                                        if timer AntiStallTimer > 150014250                                            break14251                                        endif14252                                        cast 'Telekinesis'14253                                        wait 50014254                                    endwhile14255                                    clearsysmsg14256                                    wft 50014257                                    target ClosestTarget14258                                    wait 25014259                                    if insysmsg "You are too far"14260                                        @setvar! ClosestTargetisSticky 014261                                        clearsysmsg14262                                    else14263                                        if EnableOverheadMessages = 1 and timer PurplePotionMessageTimer > 450014264                                            overhead  '[ EXPLOSION POTION! ]' 41914265                                            settimer PurplePotionMessageTimer 014266                                        endif14267                                        settimer TelekinesisTimer 014268                                        @setvar! ClosestTargetisSticky 114269                                    endif14270                                endif14271                            endif14272                        endif14273                    else14274                        @setvar! ClosestTargetisSticky 114275                    endif14276                else14277                    if EnableOverheadMessages = 1 and timer PurplePotionMessageTimer > 1500014278                        overhead '[ NO PURPLE POTIONS ]' 33714279                        settimer PurplePotionMessageTimer 014280                    endif14281                endif14282            endif14283 14284            @setvar! CastingWasInterrupted 014285 14286            if targetexists14287                hotkey 'cancel current target'14288            endif14289 14290            if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange14291                @setvar! RepeatCastingPoison 014292                @setvar! AttackModeActive 014293                @setvar! ClosestTargetisSticky 014294                @setvar! TargetSwap 014295                settimer TargetChecker 014296                break14297            endif14298 14299            if EnableAutoExplosionPots = 114300                if timer TelekinesisTimer > 6000014301                    @setvar! ClosestTargetisSticky 014302                    settimer TelekinesisTimer 014303                endif14304            endif14305 14306            if PurplePotionReady = 1 and ClosestTargetisSticky = 1 and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and diffhits < CastGreaterHealHPdiff14307                settimer AntiStallTimer 014308                while not insysmsg "Where should i throw this potion?" and timer AntiStallTimer < 150014309                    potion 'explosion'14310                    if timer AntiStallTimer > 150014311                        settimer AntiStallTimer 014312                        break14313                    endif14314                endwhile14315 14316                @setvar! PurplePotionReady 014317                settimer PurplePotionTimer 014318                settimer AntiStallTimer 014319 14320                while not targetexists and timer AntiStallTimer < 150014321                    if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange14322                        @setvar! RepeatCastingPoison 014323                        @setvar! AttackModeActive 014324                        @setvar! ClosestTargetisSticky 014325                        @setvar! CastingWasInterrupted 114326                        @setvar! TargetSwap 014327                        hotkey 'cancel current target'14328                        break14329                    endif14330 14331                    if timer AntiStallTimer > 150014332                        settimer AntiStallTimer 014333                        break14334                    endif14335                endwhile14336 14337                if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange14338                    break14339                endif14340 14341                if CastingWasInterrupted = 014342                    target ClosestTarget14343                    cooldown "Purple Potion" PurplePotionCooldown14344                    getlabel backpack packdesc14345                    wait 25014346                endif14347            endif14348 14349            if counttype 29012 self = 0 and EnableMagicMushroomMaker = 114350                while counttype 29012 self < MakeMushroomAmount and mana > 3 and diffhits < CastGreaterHealHPdiff14351                    if timer 'MushroomMakerTimer' > 450014352                        overhead '[ MAKING SHROOMS... ]' 41914353                        settimer 'MushroomMakerTimer' 014354                    endif14355                    if not casting14356                        cast 'create food'14357                        wait 50014358                    endif14359                    if diffhits > CastGreaterHealHPdiff14360                        break14361                    endif14362                endwhile14363                if dead14364                    break14365                endif14366            endif14367 14368            if EnableGoldVacuum = 1 and DisableVacuums != 114369                if findtype "gold coin" ground -1 -1 15 as droppedmoney and timer "GoldRadar" > 350014370                    overhead " � " 149 droppedmoney14371                    settimer "GoldRadar" 014372                endif14373 14374                while findtype "gold coin" ground -1 -1 2 as droppedmoney and diffhits < CastGreaterHealHPdiff14375                    overhead " � " 14914376                    hotkey "Grab Item"14377                    wft 250014378                    target droppedmoney14379                    wait 25014380                    if dead14381                        break14382                    endif14383                    if diffhits >= CastGreaterHealHPdiff14384                        @setvar! AttackModeActive 114385                        break14386                    endif14387                    if insysmsg "Invalid or inaccessible item"14388                        wait 50014389                        @ignore droppedmoney14390                    endif14391                    wait 25014392                endwhile14393            endif14394 14395            if EnableDungeonCleanup = 1 and diffhits < CastGreaterHealHPdiff14396                while findtype "iron ingot%s|board%s|cut up leather|3972|3962|3963|3980|3976|3973|3974|3981" ground -1 -1 2 as item14397                    if EnableOverheadMessages = 114398                        if timer "DungeonCleanup" > 150014399                            overhead '[ CLEANUP... ]' 42014400                            settimer "DungeonCleanup" 014401                        endif14402                    else14403                        if timer "DungeonCleanup" > 150014404                            overhead ' � ' 42014405                            settimer "DungeonCleanup" 014406                        endif14407                    endif14408                    hotkey "Grab Item"14409                    wft 100014410                    target item14411                    wait 50014412                    if dead14413                        break14414                    endif14415                    if diffhits > CastGreaterHealHPdiff14416                        break14417                    endif14418                endwhile14419 14420                if findtype "iron ingot%s|board%s|cut up leather|3972|3962|3963|3980|3976|3973|3974|3981" ground -1 -1 15 as dungeonjunk and timer "DungeonCleanupRadar" > 350014421                    overhead "�" 420 dungeonjunk14422                    settimer "DungeonCleanupRadar" 014423                endif14424            endif14425 14426            if timer "TargetTimer" > 3500 and find ClosestTarget ground -1 -1 TargetAttackRange14427                getlabel ClosestTarget TargetDesc14428                if EnableOverheadMessages = 1 or EnableOverheadMessages = 214429                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange14430                        overhead '[ PARAGON! ]' 12 ClosestTarget14431                        overhead " � " 12 ClosestTarget14432                        settimer "TargetTimer" 014433                    elseif find ClosestTarget ground -1 -1 TargetAttackRange14434                        overhead '[ TARGET ]' 253 ClosestTarget14435                        overhead " � " 253 ClosestTarget14436                        settimer "TargetTimer" 014437                    endif14438                else14439                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange14440                        overhead " ��� " 12 ClosestTarget14441                        settimer "TargetTimer" 014442                    elseif find ClosestTarget ground -1 -1 TargetAttackRange14443                        overhead " � " 253 ClosestTarget14444                        settimer "TargetTimer" 014445                    endif14446                endif14447            endif14448 14449            if EnablePKradar = 1 and TimeToGo != 114450                if timer "PKRadarTimer" > 150014451                    clearsysmsg14452                    hotkey 'Next Murderer Player Target'14453                    wait 15014454                    if insysmsg "No one matching that was found"14455                        settimer "PKRadarTimer" 014456                        clearsysmsg14457                    else14458                        if EnableRedAlertOverhead = 114459                            overhead "[ !! RED ALERT !! ]" 3714460                        endif14461                        hotkey 'Toggle Peace Only'14462                        @setvar! RedTargetFound 114463                        @setvar! TimeToGo 114464                        @setvar! MurdererTarget lasttarget14465                        replay14466                    endif14467                endif14468            endif14469 14470            if EnableTrackingAutoRecall = 1 and TimeToGo != 114471                if PKTrackingRange = 6014472                    if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"14473                        hotkey 'Toggle Peace Only'14474                        if EnableRedAlertOverhead = 114475                            overhead '[ !! RED ALERT !! ]' 3714476                        endif14477                        @setvar! RedTargetFound 114478                        @setvar! TimeToGo 114479                        clearsysmsg14480                        replay14481                    endif14482                elseif PKTrackingRange = 5014483                    if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"14484                        hotkey 'Toggle Peace Only'14485                        if EnableRedAlertOverhead = 114486                            overhead '[ !! RED ALERT !! ]' 3714487                        endif14488                        @setvar! RedTargetFound 114489                        @setvar! TimeToGo 114490                        clearsysmsg14491                        replay14492                    endif14493                elseif PKTrackingRange = 4014494                    if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"14495                        hotkey 'Toggle Peace Only'14496                        if EnableRedAlertOverhead = 114497                            overhead '[ !! RED ALERT !! ]' 3714498                        endif14499                        @setvar! RedTargetFound 114500                        @setvar! TimeToGo 114501                        clearsysmsg14502                        replay14503                    endif14504                elseif PKTrackingRange = 014505                    if insysmsg "Now tracking"14506                        hotkey 'Toggle Peace Only'14507                        if EnableRedAlertOverhead = 114508                            overhead '[ !! RED ALERT !! ]' 3714509                        endif14510                        @setvar! RedTargetFound 114511                        @setvar! TimeToGo 114512                        clearsysmsg14513                        replay14514                    endif14515                endif14516            endif14517 14518            if EnableAutoCarving = 1 and findtype 11552 self14519                while findtype "corpse" ground -1 -1 2 as deadbody and diffhits < CastGreaterHealHPdiff14520                   settimer SkinningTimeoutTimer 014521                   if findtype 11552 self14522                        if targetexists14523                           hotkey 'cancel current target'14524                        endif14525 14526                        while not targetexists14527                            skill 'forensicevaluation'14528                            getlabel backpack backpacklabel14529                        endwhile14530 14531                        if targetexists and find deadbody ground -1 -1 214532                            target 'self'14533                            @ignore deadbody14534                            wait 25014535                        endif14536 14537                        if insysmsg "You dont see anything nearby"14538                            clearsysmsg14539                            break14540                        else14541                            if EnableOverheadMessages = 1 and timer SkinningTimer > 300014542                                overhead '[ SKINNING... ]' 33314543                                settimer SkinningTimer 014544                            endif14545                        endif14546                    else14547                        if EnableOverheadMessages = 1 and timer SkinningTimer > 1500014548                            overhead '[ NO SKINNING KNIFE ]' 33714549                            settimer SkinningTimer 014550                            break14551                        endif14552                    endif14553 14554                    if timer SkinningTimeoutTimer > 1500 or diffhits > CastGreaterHealHPdiff14555                        break14556                    endif14557                endwhile14558            endif14559 14560            if EnableOverheadMessages = 114561                if insysmsg "something invisible out of"14562                    overhead "� SOMEONE HIDING! �" 614563                endif14564 14565                if insysmsg "additional mastery chain link"14566                    overhead "[ CHAIN LINK UNLOCKED!! ]" 14914567                    wait 50014568                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown14569                        wait 50014570                        say "[Yes"14571                        settimer EmoteCooldownTimer 014572                        cooldown "Emote Cooldown" SetEmoteCooldown14573                    endif14574                endif14575 14576                if insysmsg "enough experience to upgrade"14577                    overhead "[ ASPECT TIER UNLOCKED!! ]" 223414578                    wait 50014579                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown14580                        wait 50014581                        say "[Whistle"14582                        settimer EmoteCooldownTimer 014583                        cooldown "Emote Cooldown" SetEmoteCooldown14584                    endif14585                endif14586 14587                if insysmsg "You have unlocked a codex upgrade point"14588                    overhead "[ CODEX POINT UNLOCKED! ]" 211414589                    wait 25014590                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown14591                        wait 50014592                        say "[HighFive"14593                        settimer EmoteCooldownTimer 014594                        cooldown "Emote Cooldown" SetEmoteCooldown14595                    endif14596                endif14597 14598                if insysmsg "You have completed a society job"14599                    overhead "[ SOCIETY JOB COMPLETE! ]" 41914600                    wait 50014601                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown14602                        wait 50014603                        say "[Awoo"14604                        settimer EmoteCooldownTimer 014605                        cooldown "Emote Cooldown" SetEmoteCooldown14606                    endif14607                endif14608 14609                if insysmsg "Society Job Progress"14610                    overhead "[ � SOCIETY POINTS � ]" 41914611                endif14612 14613                if insysmsg 'You charge your spell with additional energy'14614                    overhead '[ CHARGED SPELL! ]' 2214615                endif14616 14617                if insysmsg 'You generate mana for your spell'14618                    overhead '[ MANA REFUNDED! ]' 1114619                endif14620 14621                if insysmsg "You parry the spell"14622                    overhead "[ SPELL PARRY ]" 11114623                endif14624 14625                if insysmsg "Your attack places a hex"14626                    overhead '[ HEX ACTIVE ]' 14 ClosestTarget14627                endif14628 14629                if insysmsg "causes you to bleed"14630                    overhead "[ YOU ARE BLEEDING... ]" 211814631                endif14632 14633                if insysmsg "been struck by an ancient blight"14634                    overhead "[ DISEASED... ]" 110914635                endif14636 14637                if insysmsg "You feel chilled!"14638                    overhead "[ YOU ARE CHILLED... ]" 223414639                endif14640 14641                if insysmsg "You resist a disease effect"14642                    overhead "[ DISEASE RESISTED! ]" 88814643                endif14644 14645                if insysmsg "resist a bleed"14646                    overhead "[ BLEED RESISTED! ]" 88814647                endif14648 14649                if insysmsg "The creature pierces and bypasses your armor!"14650                    overhead "[ YOU ARE PIERCED... ]" 33714651                endif14652 14653                if insysmsg "Their attack disarms you!"14654                    overhead "[ DISARMED! ]" 33714655                endif14656 14657                if insysmsg "Their attack hamstrings you!"14658                    overhead "[ HAMSTRUNG! ]" 33714659                endif14660 14661                if insysmsg "attempting to steal" or insysmsg "attempting to peek"14662                    overhead "[ THIEF DETECTED! ]" 91014663                endif14664            else14665                if insysmsg "something invisible out of"14666                    overhead "� SOMEONE HIDING! �" 614667                endif14668 14669                if insysmsg "additional mastery chain link"14670                    overhead "[ � CHAIN! � ]" 14914671                    wait 50014672                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown14673                        wait 50014674                        say "[Yes"14675                        settimer EmoteCooldownTimer 014676                        cooldown "Emote Cooldown" SetEmoteCooldown14677                    endif14678                endif14679 14680                if insysmsg "enough experience to upgrade"14681                    overhead "[ � ASPECT � ]" 223414682                    wait 50014683                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown14684                        wait 50014685                        say "[Whistle"14686                        settimer EmoteCooldownTimer 014687                        cooldown "Emote Cooldown" SetEmoteCooldown14688                    endif14689                endif14690 14691                if insysmsg "You have unlocked a codex upgrade point"14692                    overhead '[ � CODEX! � ]' 211414693                    wait 25014694                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown14695                        wait 50014696                        say "[HighFive"14697                        settimer EmoteCooldownTimer 014698                        cooldown "Emote Cooldown" SetEmoteCooldown14699                    endif14700                endif14701 14702                if insysmsg "You have completed a society job"14703                    overhead "[ SOCIETY COMPLETE! ]" 41914704                    wait 50014705                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown14706                        wait 50014707                        say "[Awoo"14708                        settimer EmoteCooldownTimer 014709                        cooldown "Emote Cooldown" SetEmoteCooldown14710                    endif14711                endif14712 14713                if insysmsg "You parry the spell"14714                    overhead "*spell parry*" 11114715                endif14716 14717                if insysmsg "Your attack places a hex"14718                    overhead '*hexxed*' 14 ClosestTarget14719                endif14720 14721                if insysmsg "Society Job Progress"14722                    overhead "[ � SOCIETY � ]" 41914723                endif14724 14725                if insysmsg "attempting to steal" or insysmsg "attempting to peek"14726                    overhead "[ THIEF DETECTED! ]" 91014727                endif14728 14729                if insysmsg "Their attack disarms you!"14730                    overhead "*disarmed*" 33714731                endif14732 14733                if insysmsg "Their attack hamstrings you!"14734                    overhead "*hamstrung*" 33714735                endif14736            endif14737 14738            if dead14739                break14740            endif14741 14742            if followers > 014743                if skill 'spiritspeak' >= 50 and timer 'SpiritSpeakTimer' > 10000 and findtype 'corpse' ground -1 -1 15 and EnableNecroVengefulSpirit = 014744                    getlabel backpack backpacklabel14745                    skill 'spiritspeak'14746                    wait 25014747                    settimer 'SpiritSpeakTimer' 014748                    if insysmsg 'You establish contact'14749                        if EnableOverheadMessages = 114750                            overhead '[ CONSUMING SOULS... ]' 110914751                        else14752                            overhead '*consuming souls...*' 110914753                        endif14754                    endif14755                endif14756            endif14757 14758            if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange14759                settimer TargetChecker 014760                @setvar! AttackModeActive 014761                @setvar! RepeatCastingPoison 014762                @setvar! ClosestTargetisSticky 014763                @setvar! TargetSwap 014764                break14765            endif14766 14767            if diffhits > CastGreaterHealHPdiff or paralyzed14768                break14769            endif14770        endwhile14771 14772        //////////////////////////////14773        //  END MEDIUM ATTACK LOOP  //14774        //////////////////////////////14775 14776 14777        /////////////////////////14778        //  SMALL ATTACK LOOP  //14779        /////////////////////////14780 14781        while mana <= CastSmallSpellsBelowMana and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and TargetSwap != 1 and diffhits < CastGreaterHealHPdiff14782            if dead14783                break14784            endif14785 14786            if EnableDropGoldWhenOverweight = 114787                if weight > maxweight14788                    replay14789                endif14790            endif14791 14792            if EnableWeightWarningMessage = 114793                if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer "WeightMessageTimer" > 600014794                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 214795                        overhead '[ WEIGHT WARNING... ]' 7714796                        settimer "WeightMessageTimer" 014797                    else14798                        overhead " � " 7714799                        settimer "WeightMessageTimer" 014800                    endif14801                elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer "WeightMessageTimer" > 600014802                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 214803                        overhead '[ WEIGHT WARNING! ]' 15314804                        settimer "WeightMessageTimer" 014805                    else14806                        overhead " � " 15314807                        settimer "WeightMessageTimer" 014808                    endif14809                elseif diffweight < RedWeightLimitDiffWeight14810                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 214811                        if timer "WeightMessageTimer" > 600014812                            overhead '[ WEIGHT LIMIT REACHED! ]' 3714813                            settimer "WeightMessageTimer" 014814                        endif14815                    else14816                        if timer "WeightMessageTimer" > 600014817                            overhead " � " 3714818                            settimer "WeightMessageTimer" 014819                        endif14820                    endif14821 14822                    if EnableAutoWeightRecall = 1 and not find ClosestTarget ground -1 -1 8 and WILDERNESSMODE = 114823                        wait 50014824                        hotkey 'Toggle Peace Only'14825                        @setvar! AutoWeightRecall 114826                        replay14827                    elseif EnableAutoWeightRecall = 1 and find ClosestTarget ground -1 -1 8 and WILDERNESSMODE = 114828                        if timer "WaitingToRecallTimer" > 3500 and EnableAutoRecallOverheadMessages = 114829                            overhead '[ WAITING TO RECALL... ]' 14914830                            settimer "WaitingToRecallTimer" 014831                        endif14832                        wait 50014833                    elseif EnableAutoWeightDungeonGate = 1 and DUNGEONMODE = 114834                        wait 50014835                        hotkey 'Toggle Peace Only'14836                        @setvar! TimeToGo 114837                        replay14838                    else14839                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 214840                            overhead '[ OVERWEIGHT! ]' 33714841                        else14842                            overhead " � " 33714843                        endif14844                        wait 150014845                        overhead '[ STOPPING SCRIPT! ]' 8814846                        stop14847                    endif14848                endif14849            endif14850 14851            while not warmode14852                if TimeToGo = 114853                    break14854                else14855                    if WILDERNESSMODE = 114856                        if EnableAutoRedRecall = 1 or EnableAutoWeightRecall = 114857                            overhead '[ RECALLING IN... ]' 211414858                            if warmode14859                                break14860                            endif14861                            wait 50014862                            overhead "3" 6914863                            wait 100014864                            if warmode14865                                break14866                            endif14867                            overhead "2" 6914868                            wait 100014869                            if warmode14870                                break14871                            endif14872                            overhead "1" 6914873                            wait 50014874                            if warmode14875                                break14876                            else14877                                @setvar! TimeToGo 114878                                @setvar! AutoRecallTime 114879                                break14880                            endif14881                        endif14882                    elseif DUNGEONMODE = 114883                        if EnableAutoRedDungeonGate = 1 or EnableAutoWeightDungeonGate = 114884                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 214885                                overhead '[ DUNGEON ESCAPE! ]' 33714886                            else14887                                overhead "�" 33714888                            endif14889                            hotkey 'Toggle Peace Only'14890                            @setvar! TimeToGo 114891                            getlabel backpack backpacklabel14892                            wait 25014893                            break14894                        endif14895                    endif14896                endif14897            endwhile14898 14899            if not warmode and TimeToGo = 114900                break14901            endif14902 14903            if diffhits > CastGreaterHealHPdiff or paralyzed14904                break14905            endif14906 14907            if SummonEarthElemental_or_AncientMummy != 0 or SummonWaterElemental_or_RagWitch != 0 or SummonFireElemental_or_Lich != 0 or SummonAirElemental_or_SkeletalFiend != 0 or SummonDemon_or_VampireThrall != 0 or SummonCreature_or_UndeadCreature != 014908                if followers < TotalSummonCount14909                    @setvar! AttackModeActive 214910                    replay14911                endif14912            endif14913 14914            if mana > CastSmallSpellsBelowMana14915                break14916            endif14917 14918            if TargetSwap = 114919                @setvar! AttackModeActive 214920                break14921            endif14922 14923            if timer "TargetTimer" > 3500 and find ClosestTarget ground -1 -1 TargetAttackRange14924                getlabel ClosestTarget TargetDesc14925                if EnableOverheadMessages = 1 or EnableOverheadMessages = 214926                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange14927                        overhead '[ PARAGON! ]' 12 ClosestTarget14928                        overhead " � " 12 ClosestTarget14929                        settimer "TargetTimer" 014930                    elseif find ClosestTarget ground -1 -1 TargetAttackRange14931                        overhead '[ TARGET ]' 253 ClosestTarget14932                        overhead " � " 253 ClosestTarget14933                        settimer "TargetTimer" 014934                    endif14935                else14936                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange14937                        overhead " ��� " 12 ClosestTarget14938                        settimer "TargetTimer" 014939                    elseif find ClosestTarget ground -1 -1 TargetAttackRange14940                        overhead " � " 253 ClosestTarget14941                        settimer "TargetTimer" 014942                    endif14943                endif14944            endif14945 14946            if EnablePKradar = 1 and TimeToGo != 114947                if timer "PKRadarTimer" > 150014948                    clearsysmsg14949                    hotkey 'Next Murderer Player Target'14950                    wait 15014951                    if insysmsg "No one matching that was found"14952                        settimer "PKRadarTimer" 014953                        clearsysmsg14954                    else14955                        if EnableRedAlertOverhead = 114956                            overhead "[ !! RED ALERT !! ]" 3714957                        endif14958                        hotkey 'Toggle Peace Only'14959                        @setvar! RedTargetFound 114960                        @setvar! TimeToGo 114961                        @setvar! MurdererTarget lasttarget14962                        replay14963                    endif14964                endif14965            endif14966 14967            if EnableTrackingAutoRecall = 1 and TimeToGo != 114968                if PKTrackingRange = 6014969                    if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"14970                        hotkey 'Toggle Peace Only'14971                        if EnableRedAlertOverhead = 114972                            overhead '[ !! RED ALERT !! ]' 3714973                        endif14974                        @setvar! RedTargetFound 114975                        @setvar! TimeToGo 114976                        clearsysmsg14977                        replay14978                    endif14979                elseif PKTrackingRange = 5014980                    if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"14981                        hotkey 'Toggle Peace Only'14982                        if EnableRedAlertOverhead = 114983                            overhead '[ !! RED ALERT !! ]' 3714984                        endif14985                        @setvar! RedTargetFound 114986                        @setvar! TimeToGo 114987                        clearsysmsg14988                        replay14989                    endif14990                elseif PKTrackingRange = 4014991                    if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"14992                        hotkey 'Toggle Peace Only'14993                        if EnableRedAlertOverhead = 114994                            overhead '[ !! RED ALERT !! ]' 3714995                        endif14996                        @setvar! RedTargetFound 114997                        @setvar! TimeToGo 114998                        clearsysmsg14999                        replay15000                    endif15001                elseif PKTrackingRange = 015002                    if insysmsg "Now tracking"15003                        hotkey 'Toggle Peace Only'15004                        if EnableRedAlertOverhead = 115005                            overhead '[ !! RED ALERT !! ]' 3715006                        endif15007                        @setvar! RedTargetFound 115008                        @setvar! TimeToGo 115009                        clearsysmsg15010                        replay15011                    endif15012                endif15013            endif15014 15015            if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange15016                settimer TargetChecker 015017                @setvar! TargetSwap 015018                @setvar! RepeatCastingPoison 015019                @setvar! ClosestTargetisSticky 015020                @setvar! AttackModeActive 015021                break15022            endif15023 15024            if CheckClosestTargetTime != 015025                if timer TargetChecker > CheckClosestTargetTime15026                    @setvar! TargetSwap 015027                    hotkey "Target Closest Grey Monster"15028                    getlabel backpack backpacklabel15029                    @setvar! TargetToCheck lasttarget15030                    wait 25015031                    if TargetToCheck != ClosestTarget15032                        settimer TargetChecker 015033                        @setvar! TargetToAnalyze lasttarget15034                        @setvar! ClosestTargetisSticky 015035                        @setvar! AttackModeActive 215036                        @setvar! TargetSwap 115037                        break15038                    endif15039                    settimer TargetChecker 015040                endif15041            endif15042 15043            if EnableAutoCrookCheck = 115044                if skill 'herding' > 50 and timer CrookCheckTimer > 1000015045                    if findtype "shepherd's crook" self15046                        # '15047                        if listexists CrooksToUnignore15048                            removelist CrooksToUnignore15049                        endif15050                        createlist CrooksToUnignore15051                        for 515052                        if findtype "shepherd's crook" self as myCrook15053                            # '15054                            getlabel myCrook crooklabel15055                            wait 25015056                            if 'activated' in crooklabel15057                                break15058                            elseif 'unidentified' in crooklabel15059                                pushlist CrooksToUnignore myCrook15060                                @ignore myCrook15061                            else15062                                if followers > 015063                                    if EnableOverheadMessages = 115064                                        overhead "[ ACTIVATING CROOK! ]" 211415065                                    else15066                                        overhead "*crook activated*" 211415067                                    endif15068                                    dclick myCrook15069                                    wait 25015070                                    break15071                                endif15072                            endif15073                            wait 25015074                        endif15075                        endfor15076                        foreach CrookToUnignore in CrooksToUnignore15077                            @unignore CrookToUnignore15078                        endfor15079                        removelist CrooksToUnignore15080                    elseif not findtype "shepherd's crook" self15081                        # '15082                        if EnableOverheadMessages != 015083                            if timer CrookCheckOverheadTimer > 1500015084                                overhead "[ NO CROOK FOUND! ]" 33715085                                settimer CrookCheckOverheadTimer 015086                            endif15087                        endif15088                    endif15089                    settimer CrookCheckTimer 015090                endif15091            endif15092 15093            if mana < LowManaWarningAmount and timer ManaOverheadTimer > 4500 and LowManaWarningAmount != 015094                overhead "[ LOW MANA! ]" 3415095                settimer ManaOverheadTimer 015096            endif15097 15098            if EnableNecroStrangle = 1 or EnableNecroCorpseSkin = 1 or EnableNecroMindRot = 1 or EnableNecroEvilOmen = 1 or EnableNecroPainSpike = 115099                if findtype 'necromancer book' backpack15100                    yell '[necromancyhotbar'15101                    while not gumpexists 62243651615102                        yell '[necromancyhotbar'15103                    endwhile15104                endif15105            endif15106 15107            if gumpexists 62243651615108                if ingump "12/|13/|14/|15/|16/|17/|18/|19/|20/|21/|11/|10/|9/|8/|7/|6/|5/" 62243651615109                    @setvar! StrangleAvailable 115110                    @setvar! MindRotAvailable 115111                    @setvar! CorpseSkinAvailable 115112                    @setvar! EvilOmenAvailable 115113                    @setvar! PainSpikeAvailable 115114                elseif ingump "4/" 62243651615115                    if ingump "14/" 62243651615116                        @setvar! StrangleAvailable 115117                        @setvar! MindRotAvailable 115118                        @setvar! CorpseSkinAvailable 115119                        @setvar! EvilOmenAvailable 115120                        @setvar! PainSpikeAvailable 115121                    else15122                        @setvar! StrangleAvailable 115123                        @setvar! MindRotAvailable 115124                        @setvar! CorpseSkinAvailable 115125                        @setvar! EvilOmenAvailable 115126                        @setvar! PainSpikeAvailable 015127                    endif15128                elseif ingump "3/" 62243651615129                    if ingump "13/" 62243651615130                        @setvar! StrangleAvailable 115131                        @setvar! MindRotAvailable 115132                        @setvar! CorpseSkinAvailable 115133                        @setvar! EvilOmenAvailable 115134                        @setvar! PainSpikeAvailable 115135                    else15136                        @setvar! StrangleAvailable 015137                        @setvar! MindRotAvailable 115138                        @setvar! CorpseSkinAvailable 115139                        @setvar! EvilOmenAvailable 115140                        @setvar! PainSpikeAvailable 015141                    endif15142                elseif ingump "2/" 62243651615143                    if ingump "12/" 62243651615144                        @setvar! StrangleAvailable 115145                        @setvar! MindRotAvailable 115146                        @setvar! CorpseSkinAvailable 115147                        @setvar! EvilOmenAvailable 115148                        @setvar! PainSpikeAvailable 115149                    else15150                        @setvar! StrangleAvailable 015151                        @setvar! MindRotAvailable 015152                        @setvar! CorpseSkinAvailable 115153                        @setvar! EvilOmenAvailable 115154                        @setvar! PainSpikeAvailable 015155                    endif15156                elseif ingump "1/" 62243651615157                    if ingump "11/" 62243651615158                        @setvar! StrangleAvailable 115159                        @setvar! MindRotAvailable 115160                        @setvar! CorpseSkinAvailable 115161                        @setvar! EvilOmenAvailable 115162                        @setvar! PainSpikeAvailable 115163                    else15164                        @setvar! StrangleAvailable 015165                        @setvar! MindRotAvailable 015166                        @setvar! CorpseSkinAvailable 015167                        @setvar! EvilOmenAvailable 015168                        @setvar! PainSpikeAvailable 015169                    endif15170                elseif ingump "0/" 62243651615171                    if ingump "10/" 62243651615172                        @setvar! StrangleAvailable 115173                        @setvar! MindRotAvailable 115174                        @setvar! CorpseSkinAvailable 115175                        @setvar! EvilOmenAvailable 115176                        @setvar! PainSpikeAvailable 115177                    else15178                        @setvar! StrangleAvailable 015179                        @setvar! MindRotAvailable 015180                        @setvar! CorpseSkinAvailable 015181                        @setvar! EvilOmenAvailable 015182                        @setvar! PainSpikeAvailable 015183                    endif15184                endif15185            endif15186 15187            if EnableNecroStrangle = 1 and StrangleAvailable = 1 and timer StrangleTimer > 30000 and skill 'necromancy' >= 85 and mana >= 50 and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and timer NecroCooldownTimer > 100015188                @setvar! CastingWasInterrupted 015189                clearsysmsg15190                while not insysmsg "unholy symbols remaining"15191                    yell '[Strangle'15192                    getlabel backpack packdesc15193                    wait 25015194                    if insysmsg "seconds before you may use that ability again."15195                        @setvar! CastingWasInterrupted 115196                        settimer StrangleTimer 2800015197                        break15198                    endif15199                endwhile15200 15201                if CastingWasInterrupted = 015202                    if EnableOverheadMessages = 115203                        overhead '[ STRANGLE ]' 33415204                    endif15205                    settimer StrangleTimer 015206                    cooldown "Strangle" 3000015207                    settimer NecroCooldownTimer 015208                endif15209            endif15210 15211            if EnableNecroCorpseSkin = 1 and CorpseSkinAvailable = 1 and timer CorpseSkinTimer > 30000 and skill 'necromancy' >= 65 and mana >= MinimumManaAmounttoNecroBuff and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and timer NecroCooldownTimer > 100015212                @setvar! CastingWasInterrupted 015213                clearsysmsg15214                while not insysmsg "unholy symbols remaining"15215                    yell '[CorpseSkin'15216                    getlabel backpack packdesc15217                    wait 25015218                    if insysmsg "seconds before you may use that ability again."15219                        @setvar! CastingWasInterrupted 115220                        settimer CorpseSkinTimer 2800015221                        break15222                    endif15223                endwhile15224 15225                if CastingWasInterrupted = 015226                    if EnableOverheadMessages = 115227                        overhead '[ CORPSE SKIN ]' 4015228                    endif15229                    settimer CorpseSkinTimer 015230                    cooldown "Corpse Skin" 3000015231                    settimer NecroCooldownTimer 015232                endif15233            endif15234 15235            if EnableNecroMindRot = 1 and MindRotAvailable = 1 and timer MindRotTimer > 30000 and skill 'necromancy' >= 75 and mana >= MinimumManaAmounttoNecroBuff and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and timer NecroCooldownTimer > 100015236                @setvar! CastingWasInterrupted 015237                clearsysmsg15238                while not insysmsg "unholy symbols remaining"15239                    yell '[MindRot'15240                    getlabel backpack packdesc15241                    wait 25015242                    if insysmsg "seconds before you may use that ability again."15243                        @setvar! CastingWasInterrupted 115244                        settimer MindRotTimer 2800015245                        break15246                    else15247                        break15248                    endif15249                endwhile15250 15251                if CastingWasInterrupted = 015252                    if EnableOverheadMessages = 115253                        overhead '[ MIND ROT ]' 22315254                    endif15255                    settimer MindRotTimer 015256                    cooldown "Mind Rot" 3000015257                    settimer NecroCooldownTimer 015258                endif15259            endif15260 15261            if EnableNecroEvilOmen = 1 and EvilOmenAvailable = 1 and timer EvilOmenTimer > 30000 and skill 'necromancy' >= 60 and mana >= MinimumManaAmounttoNecroBuff and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and timer NecroCooldownTimer > 100015262                @setvar! CastingWasInterrupted 015263                clearsysmsg15264                while not insysmsg "unholy symbols remaining"15265                    yell '[EvilOmen'15266                    getlabel backpack packdesc15267                    wait 25015268                    if insysmsg "seconds before you may use that ability again."15269                        @setvar! CastingWasInterrupted 115270                        settimer EvilOmenTimer 2800015271                        break15272                    endif15273                endwhile15274 15275                if CastingWasInterrupted = 015276                    if EnableOverheadMessages = 115277                    overhead '[ EVIL OMEN ]' 23815278                    endif15279                    settimer EvilOmenTimer 015280                    cooldown "Evil Omen" 3000015281                    settimer NecroCooldownTimer 015282                endif15283            endif15284 15285            if EnableNecroPainSpike = 1 and PainSpikeAvailable = 1 and timer 'PainSpikeTimer' > 30000 and skill 'necromancy' >= 95 and mana >= MinimumManaAmounttoNecroBuff and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 4 and findtype 8198 ground -1 -1 2 as corpsespike and timer 'PainSpikeDelayTimer' > PainSpikeAttackDelay and timer NecroCooldownTimer > 100015286                @setvar! CastingWasInterrupted 015287                clearsysmsg15288                yell "[PainSpike"15289                wft 100015290                target ClosestTarget15291                getlabel backpack backpacklabel15292                wft 25015293                if insysmsg "You do not see any corpses" or insysmsg "seconds before you may use that ability again."15294                    settimer PainSpikeTimer 2500015295                    @setvar! CastingWasInterrupted 115296                endif15297 15298                if CastingWasInterrupted = 015299                    if EnableOverheadMessages = 115300                        overhead '[ PAIN SPIKE! ]' 33715301                    endif15302                    settimer PainSpikeTimer 015303                    cooldown "Pain Spike" 3000015304                    settimer NecroCooldownTimer 015305                endif15306            endif15307 15308            if EnableNecroPoisonStrike != 0 and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and diffhits < CastGreaterHealHPdiff and timer NecroCooldownTimer > 100015309                getlabel ClosestTarget targetLabel15310                if "-" in targetLabel15311                    getlabel ClosestTarget targetLabel15312                endif15313 15314                @setvar! CastPoisonStrike 015315 15316                if EnableCastPoison = 115317                    if "Ticks" in targetLabel or "resists" in targetLabel and EnableCastPoison = 115318                        @setvar! RepeatCastingPoison 115319 15320                        if SetPoisonLevel = 215321                            if "Lethal" in targetLabel15322                                @setvar! RepeatCastingPoison 015323                            endif15324                        elseif SetPoisonLevel = 115325                            if "Lethal" in targetLabel or "Deadly" in targetLabel15326                                @setvar! RepeatCastingPoison 015327                            endif15328                        else15329                            @setvar! RepeatCastingPoison 015330                        endif15331 15332                        if EnableNecroPoisonStrike != 015333                            if findtype 'necromancer book' backpack and not gumpexists 62243651615334                                yell '[necromancyhotbar'15335                                while not gumpexists 62243651615336                                    yell '[necromancyhotbar'15337                                    wait 50015338                                endwhile15339                            endif15340 15341                            if EnableNecroPoisonStrike = 215342                                if "[2" in targetLabel15343                                    @setvar! CastPoisonStrike 115344                                else15345                                    @setvar! CastPoisonStrike 015346                                endif15347                            elseif EnableNecroPoisonStrike = 315348                                if "[2" in targetLabel or "[3" in targetLabel15349                                    @setvar! CastPoisonStrike 115350                                else15351                                    @setvar! CastPoisonStrike 015352                                endif15353                            elseif EnableNecroPoisonStrike = 415354                                if "[2" in targetLabel or "[3" in targetLabel or "[4" in targetLabel15355                                    @setvar! CastPoisonStrike 115356                                else15357                                    @setvar! CastPoisonStrike 015358                                endif15359                            elseif EnableNecroPoisonStrike = 515360                                if "[2" in targetLabel or "[3" in targetLabel or "[4" in targetLabel or "[5" in targetLabel15361                                    @setvar! CastPoisonStrike 115362                                else15363                                    @setvar! CastPoisonStrike 015364                                endif15365                            elseif EnableNecroPoisonStrike = 615366                                if "[2" in targetLabel or "[3" in targetLabel or "[4" in targetLabel or "[5" in targetLabel or "[6" in targetLabel15367                                    @setvar! CastPoisonStrike 115368                                else15369                                    @setvar! CastPoisonStrike 015370                                endif15371                            elseif EnableNecroPoisonStrike = 715372                                if "[2" in targetLabel or "[3" in targetLabel or "[4" in targetLabel or "[5" in targetLabel or "[6" in targetLabel or "[7" in targetLabel15373                                    @setvar! CastPoisonStrike 115374                                else15375                                    @setvar! CastPoisonStrike 015376                                endif15377                            elseif EnableNecroPoisonStrike = 815378                                if "[2" in targetLabel or "[3" in targetLabel or "[4" in targetLabel or "[5" in targetLabel or "[6" in targetLabel or "[7" in targetLabel or "[8" in targetLabel15379                                    @setvar! CastPoisonStrike 115380                                else15381                                    @setvar! CastPoisonStrike 015382                                endif15383                            elseif EnableNecroPoisonStrike = 915384                                if "[2" in targetLabel or "[3" in targetLabel or "[4" in targetLabel or "[5" in targetLabel or "[6" in targetLabel or "[7" in targetLabel or "[8" in targetLabel or "[9" in targetLabel15385                                    @setvar! CastPoisonStrike 115386                                else15387                                    @setvar! CastPoisonStrike 015388                                endif15389                            endif15390                            getlabel backpack packdesc15391                        endif15392                    endif15393                else15394                    if timer CorpseSkinDiseaseTimer > CorpseSkinPoisonStrikeDelay and EnableNecroPoisonStrike = 1 and EnableNecroCorpseSkin = 115395                        @setvar! CastPoisonStrike 115396                    else15397                        @setvar! CastPoisonStrike 015398                    endif15399                endif15400 15401                getlabel backpack packdesc15402 15403                if CastPoisonStrike = 115404                    if findtype 'necromancer book' backpack and not gumpexists 62243651615405                        while not gumpexists 62243651615406                            yell '[necromancyhotbar'15407                        endwhile15408                    endif15409 15410                    @setvar! PoisonStrikeAvailable 015411 15412                    if gumpexists 62243651615413                        if ingump "12/|13/|14/|15/|16/|17/|18/|19/|20/|21/|11/|10/|9/|8/|7/|6/|5/|4/|3/|2/" 62243651615414                            @setvar! PoisonStrikeAvailable 115415                        elseif ingump "1/" 62243651615416                            @setvar! PoisonStrikeAvailable 115417                        elseif ingump "0/" 62243651615418                            if ingump "10/" 62243651615419                                @setvar! PoisonStrikeAvailable 115420                            else15421                                @setvar! PoisonStrikeAvailable 015422                            endif15423                        endif15424                    endif15425 15426                    if CastPoisonStrike = 1 and PoisonStrikeAvailable = 1 and timer PoisonStrikeTimer > 30000 and skill 'necromancy' >= 55 and diffhits < CastGreaterHealHPdiff and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange15427                        clearsysmsg15428                        while not insysmsg "unholy symbols remaining"15429                            if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange15430                                @setvar! RepeatCastingPoison 015431                                @setvar! AttackModeActive 015432                                @setvar! ClosestTargetisSticky 015433                                @setvar! TargetSwap 015434                                break15435                            endif15436 15437                            yell '[PoisonStrike'15438                            wft 150015439                            clearsysmsg15440                            target ClosestTarget15441                            wait 25015442 15443                            if insysmsg "seconds before you may use that ability again."15444                                settimer PoisonStrikeTimer 2800015445                                clearsysmsg15446                                break15447                            elseif insysmsg "You do not have a Spell-based poison or disease effect on that target."15448                                settimer PoisonStrikeTimer 1500015449                                clearsysmsg15450                                break15451                            else15452                                break15453                            endif15454                        endwhile15455 15456                        if insysmsg "unholy symbols remaining"15457                            if EnableOverheadMessages = 115458                                overhead '[ POISON STRIKE! ]' 7715459                            endif15460                            @setvar! PoisonStrikeAvailable 015461                            settimer PoisonStrikeTimer 015462                            cooldown "Poison Strike" 3000015463                            @setvar! CastPoisonStrike 015464                            settimer NecroCooldownTimer 015465                        endif15466                    endif15467                endif15468 15469                if EnableCastPoison = 1 and RepeatCastingPoison = 1 and diffhits < CastGreaterHealHPdiff and mana >= 9 and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and findtype 3976 self15470                    cast 'Poison'15471                    settimer AntiStallTimer 015472 15473                    while not targetexists and timer AntiStallTimer < 250015474                        if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange15475                            @setvar! RepeatCastingPoison 015476                            @setvar! AttackModeActive 015477                            @setvar! CastingWasInterrupted 115478                            @setvar! ClosestTargetisSticky 015479                            @setvar! TargetSwap 015480                            interrupt15481                            break15482                        endif15483 15484                        if insysmsg "Your concentration is disturbed"15485                            interrupt15486                            @setvar! CastingWasInterrupted 115487                            break15488                        endif15489 15490                        if timer AntiStallTimer > 250015491                            settimer AntiStallTimer 015492                            break15493                        endif15494                    endwhile15495 15496                    if CastingWasInterrupted = 1 and EnableNecroMindRot = 1 and MindRotAvailable = 1 and timer MindRotTimer > 30000 and skill 'necromancy' >= 7515497                        while not insysmsg "unholy symbols remaining"15498                            yell '[MindRot'15499                            getlabel backpack packdesc15500                            wait 25015501                            if insysmsg "seconds before you may use that ability again."15502                                @setvar! CastingWasInterrupted 115503                                settimer MindRotTimer 2800015504                                break15505                            endif15506                        endwhile15507 15508                        if CastingWasInterrupted = 015509                            if EnableOverheadMessages = 115510                                overhead '[ MIND ROT ]' 33015511                            endif15512                            settimer MindRotTimer 015513                            cooldown "Mind Rot" 3000015514                        endif15515                        @setvar! CastingWasInterrupted 015516                    endif15517 15518                    if CastingWasInterrupted = 015519                        clearsysmsg15520                        target ClosestTarget15521                        getlabel backpack packdesc15522                        wait 25015523                        if insysmsg "cannot be seen"15524                            break15525                        endif15526                    endif15527                endif15528            endif15529 15530            if EnableMeditation = 1 and mana < MeditateWhenManaBelow and not findbuff "meditating" and timer 'MeditationTimer' > 1000015531                skill 'meditation'15532                getlabel backpack packdesc15533                wait 25015534                if not findbuff 'meditating'15535                    settimer 'MeditationTimer' 750015536                elseif findbuff 'meditating'15537                    hotkey 'Toggle Peace Only'15538                    settimer 'MeditationTimer' 015539                    while mana < maxmana and diffhits < CastGreaterHealHPdiff15540                        if not findbuff 'meditating'15541                            hotkey 'Toggle War Only'15542                            break15543                        endif15544                        if mana > MeditateUntilManaReaches15545                            hotkey 'Toggle War Only'15546                            break15547                        endif15548                        if warmode on15549                            break15550                        endif15551                        if diffhits > CastGreaterHealHPdiff15552                            break15553                        endif15554                        if dead15555                            break15556                        endif15557                        if timer 'MeditationMessageTimer' > 400015558                            if EnableOverheadMessages = 115559                                overhead '[ MEDITATING... ]' 1115560                            else15561                                overhead "*meditating*" 1115562                            endif15563                            settimer 'MeditationMessageTimer' 015564                        endif15565                    endwhile15566                    if diffhits > CastGreaterHealHPdiff15567                        break15568                    endif15569                    if dead15570                        break15571                    endif15572                    if not warmode and TimeToGo != 115573                        hotkey 'Toggle War Only'15574                    endif15575                endif15576            elseif EnableMeditation != 1 and MeditateWhenManaBelow != 0 and mana < MeditateWhenManaBelow15577                if timer MissingRegsTimer > 400015578                    if EnableOverheadMessages = 115579                        overhead '[ WAITING FOR MANA... ]' 42015580                        settimer MissingRegsTimer 015581                    endif15582                endif15583            endif15584 15585            if EnablePKradar = 1 and TimeToGo != 115586                if timer "PKRadarTimer" > 150015587                    clearsysmsg15588                    hotkey 'Next Murderer Player Target'15589                    wait 25015590                    if insysmsg "No one matching that was found"15591                        settimer "PKRadarTimer" 015592                        clearsysmsg15593                    else15594                        if EnableRedAlertOverhead = 115595                            overhead "[ !! RED ALERT !! ]" 3715596                        endif15597                        hotkey 'Toggle Peace Only'15598                        @setvar! RedTargetFound 115599                        @setvar! TimeToGo 115600                        @setvar! MurdererTarget lasttarget15601                        replay15602                    endif15603                endif15604            endif15605 15606            if EnableTrackingAutoRecall = 1 and TimeToGo != 115607                if PKTrackingRange = 6015608                    if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"15609                        hotkey 'Toggle Peace Only'15610                        if EnableRedAlertOverhead = 115611                            overhead '[ !! RED ALERT !! ]' 3715612                        endif15613                        @setvar! RedTargetFound 115614                        @setvar! TimeToGo 115615                        clearsysmsg15616                        replay15617                    endif15618                elseif PKTrackingRange = 5015619                    if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"15620                        hotkey 'Toggle Peace Only'15621                        if EnableRedAlertOverhead = 115622                            overhead '[ !! RED ALERT !! ]' 3715623                        endif15624                        @setvar! RedTargetFound 115625                        @setvar! TimeToGo 115626                        clearsysmsg15627                        replay15628                    endif15629                elseif PKTrackingRange = 4015630                    if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"15631                        hotkey 'Toggle Peace Only'15632                        if EnableRedAlertOverhead = 115633                            overhead '[ !! RED ALERT !! ]' 3715634                        endif15635                        @setvar! RedTargetFound 115636                        @setvar! TimeToGo 115637                        clearsysmsg15638                        replay15639                    endif15640                elseif PKTrackingRange = 015641                    if insysmsg "Now tracking"15642                        hotkey 'Toggle Peace Only'15643                        if EnableRedAlertOverhead = 115644                            overhead '[ !! RED ALERT !! ]' 3715645                        endif15646                        @setvar! RedTargetFound 115647                        @setvar! TimeToGo 115648                        clearsysmsg15649                        replay15650                    endif15651                endif15652            endif15653 15654            if EnableEatMagicMushrooms = 115655                if diffmana > EatMushroomManadiff and timer MushroomTimer > 6000015656                    if counttype 29012 backpack15657                        dclicktype 29012 backpack15658                        getlabel backpack packdesc15659                        wait 25015660                        if insysmsg "You consume a magic mushroom"15661                            settimer MushroomTimer 015662                            cooldown "Mushroom" 6000015663                            if EnableOverheadMessages = 115664                                overhead '[ EATING SHROOMS... ]' 1315665                            endif15666                        endif15667                    elseif EnableOverheadMessages = 115668                        overhead '[ OUT OF SHROOMS! ]' 33715669                    endif15670                endif15671            endif15672 15673            if EnableStrengthPotion = 1 and diffhits < CastGreaterHealHPdiff15674                if skill 'Alchemy' > 0 and skill 'Alchemy' < 215675                    if insysmsg "You may now use a strength" or not findbuff "Strength Potion Usage Cooldown"15676                        if findtype "White Potion" self15677                            dclicktype "White Potion"15678                            if EnableOverheadMessages = 1 and timer WhitePotionMessageTimer > 450015679                                if insysmsg "potion satchel used"15680                                    overhead '[ FREE STRENGTH POTION ]' 95615681                                else15682                                    overhead '[ STRENGTH POTION ]' 95615683                                endif15684                                clearsysmsg15685                                settimer WhitePotionMessageTimer 015686                            endif15687                            wait 25015688                        else15689                            if timer WhitePotionMessageTimer > 450015690                                overhead '[ NO STRENGTH POTS! ]' 33715691                                settimer WhitePotionMessageTimer 015692                            endif15693                        endif15694                        clearsysmsg15695                    endif15696                elseif skill 'Alchemy' = 015697                    if insysmsg "You may now use a strength" or not findbuff "Strength Potion Usage Cooldown"15698                        if findtype "White Potion" self15699                            dclicktype "White Potion"15700                            if EnableOverheadMessages = 1 and timer WhitePotionMessageTimer > 450015701                                if insysmsg "potion satchel used"15702                                    overhead '[ FREE STRENGTH POTION ]' 95615703                                else15704                                    overhead '[ STRENGTH POTION ]' 95615705                                endif15706                                clearsysmsg15707                                settimer WhitePotionMessageTimer 015708                            endif15709                            wait 25015710                        else15711                            if timer WhitePotionMessageTimer > 450015712                                overhead '[ NO STRENGTH POTS! ]' 33715713                                settimer WhitePotionMessageTimer 015714                            endif15715                        endif15716                        clearsysmsg15717                    endif15718                else15719                    if not findbuff "Strength"15720                        if findtype "White Potion" self15721                            dclicktype "White Potion"15722                            if EnableOverheadMessages = 1 and timer WhitePotionMessageTimer > 450015723                                if insysmsg "potion satchel used"15724                                    overhead '[ FREE STRENGTH POTION ]' 95615725                                else15726                                    overhead '[ STRENGTH POTION ]' 95615727                                endif15728                                clearsysmsg15729                                settimer WhitePotionMessageTimer 015730                            endif15731                            wait 25015732                        else15733                            if timer WhitePotionMessageTimer > 450015734                                overhead '[ NO STRENGTH POTS! ]' 33715735                                settimer WhitePotionMessageTimer 015736                            endif15737                        endif15738                    endif15739                endif15740            endif15741 15742            if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff15743                if findtype "Yellow Potion" self as HealPot15744                    getlabel HealPot HealPotlabel15745                    if "next" in HealPotlabel15746                        // Do nothing15747                    else15748                        @setvar! HealPotionCheck 015749 15750                        if counttype 3852 self as HealPotCount15751                            @setvar! HealPotionCheck HealPotCount15752                        endif15753                        clearsysmsg15754                        dclicktype 385215755                        getlabel backpack backpackdesc15756                        wait 25015757                        if insysmsg "potion satchel used"15758                            settimer 'HealPotionTimer' 015759                            cooldown "Healing Potion" HealingPotionCooldown15760                            if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 450015761                                overhead '[ FREE HEAL POTION ]' 25315762                            endif15763                        elseif HealPotionCheck != counttype 3852 self15764                            settimer 'HealPotionTimer' 015765                            cooldown "Healing Potion" HealingPotionCooldown15766                            if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 450015767                                overhead '[ HEAL POTION ]' 25315768                            endif15769                        endif15770                        clearsysmsg15771                    endif15772                else15773                    if timer 'HealPotionMessageTimer' > 4500 and EnableOverheadMessages = 115774                        overhead '[ NO HEAL POTS! ]' 33715775                        settimer 'HealPotionMessageTimer' 015776                    endif15777                endif15778            endif15779 15780            if skill 'healing' > 0 and hp < maxhp and not bandaging15781                if findtype 'clean bandage%s%' self15782                    hotkey 'Bandage Self'15783                    if EnableOverheadMessages = 115784                        overhead '[ BANDAGING... ]' 8815785                    endif15786                else15787                    if EnableOverheadMessages = 115788                        overhead '[ NO BANDAGES! ]' 33715789                    endif15790                endif15791            endif15792 15793            if EnableAgilityPotion = 1 and not findbuff "Agility" and diffhits < CastGreaterHealHPdiff15794                if findtype "Blue Potion" self15795                    dclicktype "Blue Potion"15796                    if EnableOverheadMessages = 1 and timer BluePotionMessageTimer > 450015797                        if insysmsg "potion satchel used"15798                            overhead '[ FREE AGILITY POTION ]' 9315799                        else15800                            overhead '[ AGILITY POTION ]' 9315801                        endif15802                        clearsysmsg15803                        settimer BluePotionMessageTimer 015804                    endif15805                    wait 25015806                else15807                    if timer BluePotionMessageTimer > 4500 and EnableOverheadMessages = 115808                    overhead '[ NO AGILITY POTS! ]' 33715809                        settimer BluePotionMessageTimer 015810                    endif15811                endif15812            endif15813 15814            if EnableMagicResistPotion = 1 and not findbuff "Magic Resist" and diffhits < CastGreaterHealHPdiff15815                if findtype "Black Potion" self15816                    dclicktype "Black Potion"15817                    if EnableOverheadMessages = 1 and timer BlackPotionMessageTimer > 450015818                        if insysmsg "potion satchel used"15819                            overhead '[ FREE RESIST POTION ]' 110915820                        else15821                            overhead '[ RESIST POTION ]' 110915822                        endif15823                        clearsysmsg15824                        settimer BlackPotionMessageTimer 015825                    endif15826                    wait 25015827                else15828                    if timer BlackPotionMessageTimer > 4500 and EnableOverheadMessages = 115829                        overhead '[ NO RESIST POTS! ]' 33715830                        settimer BlackPotionMessageTimer 015831                    endif15832                endif15833            endif15834 15835            if EnableRefreshPotion = 1 and diffstam > RefreshPotionSPdiff15836                if findtype "Red Potion" self15837                    dclicktype "Red Potion"15838                    if EnableOverheadMessages = 1 and timer RedPotionMessageTimer > 450015839                        if insysmsg "potion satchel used"15840                            overhead '[ FREE REFRESH POTION ]' 3715841                        else15842                            overhead '[ REFRESH POTION ]' 3715843                        endif15844                        clearsysmsg15845                        settimer RedPotionMessageTimer 015846                    endif15847                    wait 25015848                else15849                    if timer RedPotionMessageTimer > 4500 and EnableOverheadMessages = 115850                        overhead '[ NO REFRESH POTS! ]' 33715851                        settimer RedPotionMessageTimer 015852                    endif15853                endif15854            endif15855 15856            if timer "TargetTimer" > 3500 and find ClosestTarget ground -1 -1 TargetAttackRange15857                getlabel ClosestTarget TargetDesc15858                if EnableOverheadMessages = 1 or EnableOverheadMessages = 215859                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange15860                        overhead '[ PARAGON! ]' 12 ClosestTarget15861                        overhead " � " 12 ClosestTarget15862                        settimer "TargetTimer" 015863                    elseif find ClosestTarget ground -1 -1 TargetAttackRange15864                        overhead '[ TARGET ]' 253 ClosestTarget15865                        overhead " � " 253 ClosestTarget15866                        settimer "TargetTimer" 015867                    endif15868                else15869                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange15870                        overhead " ��� " 12 ClosestTarget15871                        settimer "TargetTimer" 015872                    elseif find ClosestTarget ground -1 -1 TargetAttackRange15873                        overhead " � " 253 ClosestTarget15874                        settimer "TargetTimer" 015875                    endif15876                endif15877            endif15878 15879            if EnablePKradar = 1 and TimeToGo != 115880                if timer "PKRadarTimer" > 150015881                    clearsysmsg15882                    hotkey 'Next Murderer Player Target'15883                    wait 15015884                    if insysmsg "No one matching that was found"15885                        settimer "PKRadarTimer" 015886                        clearsysmsg15887                    else15888                        if EnableRedAlertOverhead = 115889                            overhead "[ !! RED ALERT !! ]" 3715890                        endif15891                        hotkey 'Toggle Peace Only'15892                        @setvar! RedTargetFound 115893                        @setvar! TimeToGo 115894                        @setvar! MurdererTarget lasttarget15895                        replay15896                    endif15897                endif15898            endif15899 15900            if EnableTrackingAutoRecall = 1 and TimeToGo != 115901                if PKTrackingRange = 6015902                    if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"15903                        hotkey 'Toggle Peace Only'15904                        if EnableRedAlertOverhead = 115905                            overhead '[ !! RED ALERT !! ]' 3715906                        endif15907                        @setvar! RedTargetFound 115908                        @setvar! TimeToGo 115909                        clearsysmsg15910                        replay15911                    endif15912                elseif PKTrackingRange = 5015913                    if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"15914                        hotkey 'Toggle Peace Only'15915                        if EnableRedAlertOverhead = 115916                            overhead '[ !! RED ALERT !! ]' 3715917                        endif15918                        @setvar! RedTargetFound 115919                        @setvar! TimeToGo 115920                        clearsysmsg15921                        replay15922                    endif15923                elseif PKTrackingRange = 4015924                    if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"15925                        hotkey 'Toggle Peace Only'15926                        if EnableRedAlertOverhead = 115927                            overhead '[ !! RED ALERT !! ]' 3715928                        endif15929                        @setvar! RedTargetFound 115930                        @setvar! TimeToGo 115931                        clearsysmsg15932                        replay15933                    endif15934                elseif PKTrackingRange = 015935                    if insysmsg "Now tracking"15936                        hotkey 'Toggle Peace Only'15937                        if EnableRedAlertOverhead = 115938                            overhead '[ !! RED ALERT !! ]' 3715939                        endif15940                        @setvar! RedTargetFound 115941                        @setvar! TimeToGo 115942                        clearsysmsg15943                        replay15944                    endif15945                endif15946            endif15947 15948            @setvar! SpellcastCooldown 015949            @setvar! CastingWasInterrupted 015950 15951            if EnableCastMagicArrow = 1 and timer MagicArrowTimer > MagicArrowCooldown and diffhits < CastGreaterHealHPdiff and mana >= 4 and mana < CastSmallSpellsBelowMana and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and findtype 3980 self15952                cast 'magic arrow'15953                settimer AntiStallTimer 015954 15955                while not targetexists and timer AntiStallTimer < 150015956                    if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange15957                        @setvar! AttackModeActive 015958                        @setvar! RepeatCastingPoison 015959                        @setvar! ClosestTargetisSticky 015960                        @setvar! CastingWasInterrupted 115961                        @setvar! TargetSwap 015962                        interrupt15963                        break15964                    endif15965 15966                    if insysmsg "Your concentration is disturbed"15967                        interrupt15968                        @setvar! CastingWasInterrupted 115969                        break15970                    endif15971 15972                    if timer AntiStallTimer > 150015973                        settimer AntiStallTimer 015974                        break15975                    endif15976                endwhile15977 15978                if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange15979                    break15980                endif15981 15982                if CastingWasInterrupted = 015983                    clearsysmsg15984                    target ClosestTarget15985                    getlabel backpack packdesc15986                    wait 25015987 15988                    if insysmsg "wizardry"15989                        settimer MagicArrowTimer 015990                    elseif insysmsg "cannot be seen"15991                        break15992                    else15993                        settimer MagicArrowTimer MagicArrowCooldown15994                    endif15995                endif15996            endif15997 15998            if EnableCastHarm = 1 and timer HarmTimer > HarmCooldown and diffhits < CastGreaterHealHPdiff and mana >= 6 and mana < CastSmallSpellsBelowMana and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and findtype 3976 self and findtype 3981 self15999                cast 'harm'16000                settimer AntiStallTimer 016001 16002                while not targetexists and timer AntiStallTimer < 150016003                    if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange16004                        interrupt16005                        @setvar! AttackModeActive 016006                        @setvar! RepeatCastingPoison 016007                        @setvar! CastingWasInterrupted 116008                        @setvar! ClosestTargetisSticky 016009                        @setvar! TargetSwap 016010                        break16011                    endif16012 16013                    if insysmsg "Your concentration is disturbed"16014                        interrupt16015                        @setvar! CastingWasInterrupted 116016                        break16017                    endif16018 16019                    if timer AntiStallTimer > 150016020                        settimer AntiStallTimer 016021                        break16022                    endif16023                endwhile16024 16025                if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange16026                    break16027                endif16028 16029                if CastingWasInterrupted = 016030                    clearsysmsg16031                    target ClosestTarget16032                    getlabel backpack packdesc16033                    wait 25016034 16035                    if insysmsg "wizardry"16036                        settimer HarmTimer 016037                    elseif insysmsg "cannot be seen"16038                        break16039                    else16040                        settimer HarmTimer HarmCooldown16041                    endif16042                endif16043            endif16044 16045            if EnableCastFireball = 1 and timer FireballTimer > FireballCooldown and diffhits < CastGreaterHealHPdiff and mana >= 9 and mana < CastSmallSpellsBelowMana and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and findtype 3962 self16046                cast 'fireball'16047                settimer AntiStallTimer 016048 16049                while not targetexists and timer AntiStallTimer < 150016050                    if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange16051                        interrupt16052                        @setvar! AttackModeActive 016053                        @setvar! RepeatCastingPoison 016054                        @setvar! CastingWasInterrupted 116055                        @setvar! ClosestTargetisSticky 016056                        @setvar! TargetSwap 016057                        break16058                    endif16059 16060                    if insysmsg "Your concentration is disturbed"16061                        interrupt16062                        @setvar! CastingWasInterrupted 116063                        break16064                    endif16065 16066                    if timer AntiStallTimer > 150016067                        settimer AntiStallTimer 016068                        break16069                    endif16070                endwhile16071 16072                if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange16073                    break16074                endif16075 16076                if CastingWasInterrupted = 016077                    clearsysmsg16078                    target ClosestTarget16079                    getlabel backpack packdesc16080                    wait 25016081 16082                    if insysmsg "wizardry"16083                        settimer FireballTimer 016084                    elseif insysmsg "cannot be seen"16085                        break16086                    else16087                        settimer FireballTimer FireballCooldown16088                    endif16089                endif16090            endif16091 16092            if EnableCastLightning = 1 and timer LightningTimer > LightningCooldown and diffhits < CastGreaterHealHPdiff and mana >= 11 and mana < CastSmallSpellsBelowMana and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and findtype 3974 self and findtype 3980 self16093                cast 'lightning'16094                settimer AntiStallTimer 016095                settimer spellTimer 016096                @setvar! SpellcastCooldown 80016097 16098                while not targetexists and timer AntiStallTimer < 150016099                    if diffhits >= CastGreaterHealHPdiff16100                        interrupt16101                        @setvar! AttackModeActive 116102                        @setvar! CastingWasInterrupted 116103                    endif16104 16105                    if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange16106                        interrupt16107                        @setvar! AttackModeActive 016108                        @setvar! RepeatCastingPoison 016109                        @setvar! CastingWasInterrupted 116110                        @setvar! ClosestTargetisSticky 016111                        @setvar! TargetSwap 016112                        break16113                    endif16114 16115                    if insysmsg "Your concentration is disturbed"16116                        interrupt16117                        @setvar! CastingWasInterrupted 116118                        break16119                    endif16120 16121                    if timer AntiStallTimer > 150016122                        settimer AntiStallTimer 016123                        break16124                    endif16125 16126                    if timer spellTimer < SpellcastCooldown16127                        if EnableCurePotion = 116128                            while poisoned and casting and not targetexists16129                                if findtype "Orange Potion" self16130                                    dclicktype "Orange Potion"16131                                    if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 350016132                                        if insysmsg "potion satchel used"16133                                            overhead '[ FREE CURE POTION ]' 4416134                                        else16135                                            overhead '[ CURE POTION ]' 4416136                                        endif16137                                        clearsysmsg16138                                        settimer 'CurePotionMessageTimer' 016139                                    endif16140                                    wait 50016141                                else16142                                    if timer 'CurePotionMessageTimer' > 5000 and EnableOverheadMessages = 116143                                        overhead '[ NO CURE POTS! ]' 33716144                                        settimer 'CurePotionMessageTimer' 016145                                    endif16146                                    break16147                                endif16148                            endwhile16149                        endif16150 16151                        if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff and casting and not targetexists16152                            if findtype "Yellow Potion" self as HealPot16153                                getlabel HealPot HealPotlabel16154                                if "next" in HealPotlabel16155                                    // Do nothing16156                                else16157                                    @setvar! HealPotionCheck 016158 16159                                    if counttype 3852 self as HealPotCount16160                                        @setvar! HealPotionCheck HealPotCount16161                                    endif16162                                    clearsysmsg16163                                    dclicktype 385216164                                    getlabel backpack backpackdesc16165                                    wait 25016166                                    if insysmsg "potion satchel used"16167                                        settimer 'HealPotionTimer' 016168                                        cooldown "Healing Potion" HealingPotionCooldown16169                                        if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 450016170                                            overhead '[ FREE HEAL POTION ]' 25316171                                        endif16172                                    elseif HealPotionCheck != counttype 3852 self16173                                        settimer 'HealPotionTimer' 016174                                        cooldown "Healing Potion" HealingPotionCooldown16175                                        if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 450016176                                            overhead '[ HEAL POTION ]' 25316177                                        endif16178                                    endif16179                                    clearsysmsg16180                                endif16181                            else16182                                if timer 'HealPotionMessageTimer' > 4500 and EnableOverheadMessages = 116183                                    overhead '[ NO HEAL POTS! ]' 33716184                                    settimer 'HealPotionMessageTimer' 016185                                endif16186                            endif16187                        endif16188                    endif16189                endwhile16190 16191                if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange16192                    break16193                endif16194 16195                if CastingWasInterrupted = 016196                    clearsysmsg16197                    target ClosestTarget16198                    getlabel backpack packdesc16199                    wait 25016200                    if insysmsg "wizardry"16201                        settimer LightningTimer 016202                    elseif insysmsg "cannot be seen"16203                        break16204                    else16205                        settimer LightningTimer LightningCooldown16206                    endif16207                endif16208            endif16209 16210            if EnableFrostAspect = 116211                if insysmsg "Frost Shell activated"16212                    cooldown "Frost Shell Active" 500016213                    if EnableOverheadMessages = 116214                        overhead '[ FROST SHELL! ]' 223416215                    endif16216                    if FrostAspectTier = 016217                        cooldown "Frost Shell Cooldown" 3000016218                    elseif FrostAspectTier = 116219                        cooldown "Frost Shell Cooldown" 2900016220                    elseif FrostAspectTier = 216221                        cooldown "Frost Shell Cooldown" 2800016222                    elseif FrostAspectTier = 316223                        cooldown "Frost Shell Cooldown" 2700016224                    elseif FrostAspectTier = 416225                        cooldown "Frost Shell Cooldown" 2600016226                    elseif FrostAspectTier = 516227                        cooldown "Frost Shell Cooldown" 2500016228                    elseif FrostAspectTier = 616229                        cooldown "Frost Shell Cooldown" 2400016230                    elseif FrostAspectTier = 716231                        cooldown "Frost Shell Cooldown" 2300016232                    elseif FrostAspectTier = 816233                        cooldown "Frost Shell Cooldown" 2200016234                    elseif FrostAspectTier = 916235                        cooldown "Frost Shell Cooldown" 2100016236                    elseif FrostAspectTier = 1016237                        cooldown "Frost Shell Cooldown" 2000016238                    elseif FrostAspectTier = 1116239                        cooldown "Frost Shell Cooldown" 1900016240                    elseif FrostAspectTier = 1216241                        cooldown "Frost Shell Cooldown" 1800016242                    elseif FrostAspectTier = 1316243                        cooldown "Frost Shell Cooldown" 1700016244                    elseif FrostAspectTier = 1416245                        cooldown "Frost Shell Cooldown" 1600016246                    elseif FrostAspectTier = 1516247                        cooldown "Frost Shell Cooldown" 1500016248                    endif16249                    clearsysmsg16250                endif16251            endif16252 16253            if dead16254                break16255            endif16256 16257            if EnableUsePotionKegs = 1 and findtype 'empty bottle%s%' self and findtype 'keg' self and timer 'PotionKegPVPCooldown' > 3000016258                @setvar! PotionStockCheck 016259 16260                while PotionStockCheck < 8 and findtype 'empty bottle%s%' self16261                    if PotionStockCheck = 016262                        if HealingPotionAmount = 016263                            @setvar! PotionStockCheck 116264                        else16265                            @setvar! PotionType 385216266                            @setvar! KegColour 25316267                            @setvar! PotionAmounttoFill HealingPotionAmount16268                            @setvar! PotionStockCheck 116269                        endif16270                    elseif PotionStockCheck = 116271                        if CurePotionAmount = 016272                             @setvar! PotionStockCheck 216273                        else16274                            @setvar! PotionType 384716275                            @setvar! KegColour 4416276                            @setvar! PotionAmounttoFill CurePotionAmount16277                            @setvar! PotionStockCheck 216278                        endif16279                    elseif PotionStockCheck = 216280                        if RefreshPotionAmount = 016281                            @setvar! PotionStockCheck 316282                        else16283                            @setvar! PotionType 385116284                            @setvar! KegColour 3716285                            @setvar! PotionAmounttoFill RefreshPotionAmount16286                            @setvar! PotionStockCheck 316287                        endif16288                    elseif PotionStockCheck = 316289                        if StrengthPotionAmount = 016290                            @setvar! PotionStockCheck 416291                        else16292                            @setvar! PotionType 384916293                            @setvar! KegColour 95616294                            @setvar! PotionAmounttoFill StrengthPotionAmount16295                            @setvar! PotionStockCheck 416296                        endif16297                    elseif PotionStockCheck = 416298                        if AgilityPotionAmount = 016299                            @setvar! PotionStockCheck 516300                        else16301                            @setvar! PotionType 384816302                            @setvar! KegColour 9316303                            @setvar! PotionAmounttoFill AgilityPotionAmount16304                            @setvar! PotionStockCheck 516305                        endif16306                    elseif PotionStockCheck = 516307                        if ResistPotionAmount = 016308                            @setvar! PotionStockCheck 616309                        else16310                            @setvar! PotionType 384616311                            @setvar! KegColour 110916312                            @setvar! PotionAmounttoFill ResistPotionAmount16313                            @setvar! PotionStockCheck 616314                        endif16315                    elseif PotionStockCheck = 616316                        if PoisonPotionAmount = 016317                            @setvar! PotionStockCheck 716318                        else16319                            @setvar! PotionType 385016320                            @setvar! KegColour 36316321                            @setvar! PotionAmounttoFill PoisonPotionAmount16322                            @setvar! PotionStockCheck 716323                        endif16324                    elseif PotionStockCheck = 716325                        if ExplosionPotionAmount = 016326                            @setvar! PotionStockCheck 816327                        else16328                            @setvar! PotionType 385316329                            @setvar! KegColour 41916330                            @setvar! PotionAmounttoFill ExplosionPotionAmount16331                            @setvar! PotionStockCheck 816332                        endif16333                    else16334                        break16335                    endif16336 16337                    while counttype PotionType self < PotionAmounttoFill16338                        if not findtype 'empty bottle%s%' self16339                            if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 500016340                                overhead '[ NO EMPTY BOTTLES... ]' 33716341                                settimer 'PotionKegTimer' 016342                            endif16343                            break16344                        endif16345 16346                        if diffhits > HealPotionHPdiff16347                            break16348                        endif16349 16350                        if findtype 'keg' self KegColour as myKeg16351                            dclick myKeg16352                            wait 25016353                            if EnableOverheadMessages = 116354                                if timer 'PotionKegTimer' > 200016355                                    overhead '[ FILLING POTS... ]' KegColour16356                                    settimer 'PotionKegTimer' 016357                                endif16358                            endif16359                        else16360                            if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 500016361                                overhead '[ NO KEG TO USE... ]' KegColour16362                                settimer 'PotionKegTimer' 016363                            endif16364                            break16365                        endif16366                        if insysmsg "You have been in combat with another player"16367                            settimer "PotionKegPVPCooldown" 016368                            break16369                        endif16370                    endwhile16371 16372                    if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self16373                        if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 500016374                            overhead '[ NO EMPTY BOTTLES... ]' 33716375                            settimer 'PotionKegTimer' 016376                        endif16377                        break16378                    endif16379                endwhile16380            endif16381 16382            if EnableAutoExplosionPots = 1 and diffhits < CastGreaterHealHPdiff16383                if findtype 'purple potion' self as explotPot16384                    getlabel explotPot potLabel16385                    if "(" in potLabel16386                        if timer PurplePotionTimer > PurplePotionCooldown16387                            @setvar! PurplePotionReady 116388                        else16389                            @setvar! PurplePotionReady 016390                        endif16391                    else16392                        @setvar! PurplePotionReady 116393                    endif16394 16395                    if skill 'Alchemy' < 8016396                        if timer TelekinesisTimer > 60000 or ClosestTargetisSticky = 016397                            if PurplePotionReady = 1 and find ClosestTarget ground -1 -1 TargetAttackRange and not dead ClosestTarget16398                                if findtype 'purple potion' self16399                                    settimer AntiStallTimer 016400                                    while not targetexists and timer AntiStallTimer < 150016401                                        if timer AntiStallTimer > 150016402                                            break16403                                        endif16404                                        cast 'Telekinesis'16405                                        wait 50016406                                    endwhile16407                                    clearsysmsg16408                                    wft 50016409                                    target ClosestTarget16410                                    wait 25016411                                    if insysmsg "You are too far"16412                                        @setvar! ClosestTargetisSticky 016413                                        clearsysmsg16414                                    else16415                                        if EnableOverheadMessages = 1 and timer PurplePotionMessageTimer > 450016416                                            overhead  '[ EXPLOSION POTION! ]' 41916417                                            settimer PurplePotionMessageTimer 016418                                        endif16419                                        settimer TelekinesisTimer 016420                                        @setvar! ClosestTargetisSticky 116421                                    endif16422                                endif16423                            endif16424                        endif16425                    else16426                        @setvar! ClosestTargetisSticky 116427                    endif16428                else16429                    if EnableOverheadMessages = 1 and timer PurplePotionMessageTimer > 1500016430                        overhead '[ NO PURPLE POTIONS ]' 33716431                        settimer PurplePotionMessageTimer 016432                    endif16433                endif16434            endif16435 16436            @setvar! CastingWasInterrupted 016437 16438            if targetexists16439                hotkey 'cancel current target'16440            endif16441 16442            if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange16443                @setvar! RepeatCastingPoison 016444                @setvar! AttackModeActive 016445                @setvar! ClosestTargetisSticky 016446                @setvar! TargetSwap 016447                settimer TargetChecker 016448                break16449            endif16450 16451            if EnableAutoExplosionPots = 116452                if timer TelekinesisTimer > 6000016453                    @setvar! ClosestTargetisSticky 016454                    settimer TelekinesisTimer 016455                endif16456            endif16457 16458            if PurplePotionReady = 1 and ClosestTargetisSticky = 1 and not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange and diffhits < CastGreaterHealHPdiff16459                settimer AntiStallTimer 016460                while not insysmsg "Where should i throw this potion?" and timer AntiStallTimer < 150016461                    potion 'explosion'16462                    if timer AntiStallTimer > 150016463                        settimer AntiStallTimer 016464                        break16465                    endif16466                endwhile16467 16468                @setvar! PurplePotionReady 016469                settimer PurplePotionTimer 016470                settimer AntiStallTimer 016471 16472                while not targetexists and timer AntiStallTimer < 150016473                    if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange16474                        @setvar! RepeatCastingPoison 016475                        @setvar! AttackModeActive 016476                        @setvar! ClosestTargetisSticky 016477                        @setvar! CastingWasInterrupted 116478                        @setvar! TargetSwap 016479                        hotkey 'cancel current target'16480                        break16481                    endif16482 16483                    if timer AntiStallTimer > 150016484                        settimer AntiStallTimer 016485                        break16486                    endif16487                endwhile16488 16489                if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange16490                    break16491                endif16492 16493                if CastingWasInterrupted = 016494                    target ClosestTarget16495                    cooldown "Purple Potion" PurplePotionCooldown16496                    getlabel backpack packdesc16497                    wait 25016498                endif16499            endif16500 16501            if counttype 29012 self = 0 and EnableMagicMushroomMaker = 116502                while counttype 29012 self < MakeMushroomAmount and mana > 3 and diffhits < CastGreaterHealHPdiff16503                    if timer 'MushroomMakerTimer' > 450016504                        overhead '[ MAKING SHROOMS... ]' 41916505                        settimer 'MushroomMakerTimer' 016506                    endif16507 16508                    if not casting16509                        cast 'create food'16510                        wait 50016511                    endif16512 16513                    if diffhits > CastGreaterHealHPdiff16514                        break16515                    endif16516                endwhile16517 16518                if diffhits > CastGreaterHealHPdiff16519                    break16520                endif16521 16522                if dead16523                    break16524                endif16525            endif16526 16527            if EnableGoldVacuum = 1 and DisableVacuums != 116528                if findtype "gold coin" ground -1 -1 15 as droppedmoney and timer "GoldRadar" > 350016529                    overhead " � " 149 droppedmoney16530                    settimer "GoldRadar" 016531                endif16532 16533                while findtype "gold coin" ground -1 -1 2 as droppedmoney and diffhits < CastGreaterHealHPdiff16534                    overhead " � " 14916535                    hotkey "Grab Item"16536                    wft 250016537                    target droppedmoney16538                    wait 25016539 16540                    if dead16541                        break16542                    endif16543 16544                    if diffhits >= CastGreaterHealHPdiff16545                        @setvar! AttackModeActive 116546                        break16547                    endif16548 16549                    if insysmsg "Invalid or inaccessible item"16550                        wait 50016551                        @ignore droppedmoney16552                    endif16553                    wait 25016554                endwhile16555            endif16556 16557            if EnableDungeonCleanup = 1 and diffhits < CastGreaterHealHPdiff16558                while findtype "iron ingot%s|board%s|cut up leather|3972|3962|3963|3980|3976|3973|3974|3981" ground -1 -1 2 as item16559                    if EnableOverheadMessages = 116560                        if timer "DungeonCleanup" > 150016561                            overhead '[ CLEANUP... ]' 42016562                            settimer "DungeonCleanup" 016563                        endif16564                    else16565                        if timer "DungeonCleanup" > 150016566                            overhead ' � ' 42016567                            settimer "DungeonCleanup" 016568                        endif16569                    endif16570                    hotkey "Grab Item"16571                    wft 100016572                    target item16573                    wait 50016574                    if dead16575                        break16576                    endif16577                    if diffhits > CastGreaterHealHPdiff16578                        break16579                    endif16580                endwhile16581 16582                if findtype "iron ingot%s|board%s|cut up leather|3972|3962|3963|3980|3976|3973|3974|3981" ground -1 -1 15 as dungeonjunk and timer "DungeonCleanupRadar" > 350016583                    overhead "�" 420 dungeonjunk16584                    settimer "DungeonCleanupRadar" 016585                endif16586            endif16587 16588            if timer "TargetTimer" > 3500 and find ClosestTarget ground -1 -1 TargetAttackRange16589                getlabel ClosestTarget TargetDesc16590                if EnableOverheadMessages = 1 or EnableOverheadMessages = 216591                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange16592                        overhead '[ PARAGON! ]' 12 ClosestTarget16593                        overhead " � " 12 ClosestTarget16594                        settimer "TargetTimer" 016595                    elseif find ClosestTarget ground -1 -1 TargetAttackRange16596                        overhead '[ TARGET ]' 253 ClosestTarget16597                        overhead " � " 253 ClosestTarget16598                        settimer "TargetTimer" 016599                    endif16600                else16601                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange16602                        overhead " ��� " 12 ClosestTarget16603                        settimer "TargetTimer" 016604                    elseif find ClosestTarget ground -1 -1 TargetAttackRange16605                        overhead " � " 253 ClosestTarget16606                        settimer "TargetTimer" 016607                    endif16608                endif16609            endif16610 16611            if EnablePKradar = 1 and TimeToGo != 116612                if timer "PKRadarTimer" > 150016613                    clearsysmsg16614                    hotkey 'Next Murderer Player Target'16615                    wait 15016616                    if insysmsg "No one matching that was found"16617                        settimer "PKRadarTimer" 016618                        clearsysmsg16619                    else16620                        if EnableRedAlertOverhead = 116621                            overhead "[ !! RED ALERT !! ]" 3716622                        endif16623                        hotkey 'Toggle Peace Only'16624                        @setvar! RedTargetFound 116625                        @setvar! TimeToGo 116626                        @setvar! MurdererTarget lasttarget16627                        replay16628                    endif16629                endif16630            endif16631 16632            if EnableTrackingAutoRecall = 1 and TimeToGo != 116633                if PKTrackingRange = 6016634                    if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"16635                        hotkey 'Toggle Peace Only'16636                        if EnableRedAlertOverhead = 116637                            overhead '[ !! RED ALERT !! ]' 3716638                        endif16639                        @setvar! RedTargetFound 116640                        @setvar! TimeToGo 116641                        clearsysmsg16642                        replay16643                    endif16644                elseif PKTrackingRange = 5016645                    if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"16646                        hotkey 'Toggle Peace Only'16647                        if EnableRedAlertOverhead = 116648                            overhead '[ !! RED ALERT !! ]' 3716649                        endif16650                        @setvar! RedTargetFound 116651                        @setvar! TimeToGo 116652                        clearsysmsg16653                        replay16654                    endif16655                elseif PKTrackingRange = 4016656                    if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"16657                        hotkey 'Toggle Peace Only'16658                        if EnableRedAlertOverhead = 116659                            overhead '[ !! RED ALERT !! ]' 3716660                        endif16661                        @setvar! RedTargetFound 116662                        @setvar! TimeToGo 116663                        clearsysmsg16664                        replay16665                    endif16666                elseif PKTrackingRange = 016667                    if insysmsg "Now tracking"16668                        hotkey 'Toggle Peace Only'16669                        if EnableRedAlertOverhead = 116670                            overhead '[ !! RED ALERT !! ]' 3716671                        endif16672                        @setvar! RedTargetFound 116673                        @setvar! TimeToGo 116674                        clearsysmsg16675                        replay16676                    endif16677                endif16678            endif16679 16680            if EnableAutoCarving = 1 and findtype 11552 self16681                while findtype "corpse" ground -1 -1 2 as deadbody and diffhits < CastGreaterHealHPdiff16682                   settimer SkinningTimeoutTimer 016683                   if findtype 11552 self16684                        if targetexists16685                           hotkey 'cancel current target'16686                        endif16687 16688                        while not targetexists16689                            skill 'forensicevaluation'16690                            getlabel backpack backpacklabel16691                        endwhile16692 16693                        if targetexists and find deadbody ground -1 -1 216694                            target 'self'16695                            @ignore deadbody16696                            wait 25016697                        endif16698 16699                        if insysmsg "You dont see anything nearby"16700                            clearsysmsg16701                            break16702                        else16703                            if EnableOverheadMessages = 1 and timer SkinningTimer > 300016704                                overhead '[ SKINNING... ]' 33316705                                settimer SkinningTimer 016706                            endif16707                        endif16708                    else16709                        if EnableOverheadMessages = 1 and timer SkinningTimer > 1500016710                            overhead '[ NO SKINNING KNIFE ]' 33716711                            settimer SkinningTimer 016712                            break16713                        endif16714                    endif16715 16716                    if timer SkinningTimeoutTimer > 1500 or diffhits > CastGreaterHealHPdiff16717                        break16718                    endif16719                endwhile16720            endif16721 16722            if EnableOverheadMessages = 116723                if insysmsg "something invisible out of"16724                    overhead "� SOMEONE HIDING! �" 616725                endif16726 16727                if insysmsg "additional mastery chain link"16728                    overhead "[ CHAIN LINK UNLOCKED!! ]" 14916729                    wait 50016730                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16731                        wait 50016732                        say "[Yes"16733                        settimer EmoteCooldownTimer 016734                        cooldown "Emote Cooldown" SetEmoteCooldown16735                    endif16736                endif16737 16738                if insysmsg "enough experience to upgrade"16739                    overhead "[ ASPECT TIER UNLOCKED!! ]" 223416740                    wait 50016741                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16742                        wait 50016743                        say "[Whistle"16744                        settimer EmoteCooldownTimer 016745                        cooldown "Emote Cooldown" SetEmoteCooldown16746                    endif16747                endif16748 16749                if insysmsg "You have unlocked a codex upgrade point"16750                    overhead "[ CODEX POINT UNLOCKED! ]" 211416751                    wait 25016752                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16753                        wait 50016754                        say "[HighFive"16755                        settimer EmoteCooldownTimer 016756                        cooldown "Emote Cooldown" SetEmoteCooldown16757                    endif16758                endif16759 16760                if insysmsg "You have completed a society job"16761                    overhead "[ SOCIETY JOB COMPLETE! ]" 41916762                    wait 50016763                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16764                        wait 50016765                        say "[Awoo"16766                        settimer EmoteCooldownTimer 016767                        cooldown "Emote Cooldown" SetEmoteCooldown16768                    endif16769                endif16770 16771                if insysmsg "Society Job Progress"16772                    overhead "[ � SOCIETY POINTS � ]" 41916773                endif16774 16775                if insysmsg 'You charge your spell with additional energy'16776                overhead '[ CHARGED SPELL! ]' 2216777                endif16778 16779                if insysmsg 'You generate mana for your spell'16780                    overhead '[ MANA REFUNDED! ]' 1116781                endif16782 16783                if insysmsg "You parry the spell"16784                    overhead "[ SPELL PARRY ]" 11116785                endif16786 16787                if insysmsg "Your attack places a hex"16788                    overhead '[ HEX ACTIVE ]' 14 ClosestTarget16789                endif16790 16791                if insysmsg "causes you to bleed"16792                    overhead "[ YOU ARE BLEEDING... ]" 211816793                endif16794 16795                if insysmsg "been struck by an ancient blight"16796                    overhead "[ DISEASED... ]" 110916797                endif16798 16799                if insysmsg "You feel chilled!"16800                    overhead "[ YOU ARE CHILLED... ]" 223416801                endif16802 16803                if insysmsg "You resist a disease effect"16804                    overhead "[ DISEASE RESISTED! ]" 88816805                endif16806 16807                if insysmsg "resist a bleed"16808                    overhead "[ BLEED RESISTED! ]" 88816809                endif16810 16811                if insysmsg "The creature pierces and bypasses your armor!"16812                    overhead "[ YOU ARE PIERCED... ]" 33716813                endif16814 16815                if insysmsg "Their attack disarms you!"16816                    overhead "[ DISARMED! ]" 33716817                endif16818 16819                if insysmsg "Their attack hamstrings you!"16820                    overhead "[ HAMSTRUNG! ]" 33716821                endif16822 16823                if insysmsg "attempting to steal" or insysmsg "attempting to peek"16824                    overhead "[ THIEF DETECTED! ]" 91016825                endif16826            else16827                if insysmsg "something invisible out of"16828                    overhead "� SOMEONE HIDING! �" 616829                endif16830 16831                if insysmsg "additional mastery chain link"16832                    overhead "[ � CHAIN! � ]" 14916833                    wait 50016834                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16835                        wait 50016836                        say "[Yes"16837                        settimer EmoteCooldownTimer 016838                        cooldown "Emote Cooldown" SetEmoteCooldown16839                    endif16840                endif16841 16842                if insysmsg "enough experience to upgrade"16843                    overhead "[ � ASPECT � ]" 223416844                    wait 50016845                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16846                        wait 50016847                        say "[Whistle"16848                        settimer EmoteCooldownTimer 016849                        cooldown "Emote Cooldown" SetEmoteCooldown16850                    endif16851                endif16852 16853                if insysmsg "You have unlocked a codex upgrade point"16854                    overhead '[ � CODEX! � ]' 211416855                    wait 25016856                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16857                        wait 50016858                        say "[HighFive"16859                        settimer EmoteCooldownTimer 016860                        cooldown "Emote Cooldown" SetEmoteCooldown16861                    endif16862                endif16863 16864                if insysmsg "You have completed a society job"16865                    overhead "[ SOCIETY COMPLETE! ]" 41916866                    wait 50016867                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16868                        wait 50016869                        say "[Awoo"16870                        settimer EmoteCooldownTimer 016871                        cooldown "Emote Cooldown" SetEmoteCooldown16872                    endif16873                endif16874 16875                if insysmsg "You parry the spell"16876                    overhead "*spell parry*" 11116877                endif16878 16879                if insysmsg "Your attack places a hex"16880                    overhead '*hexxed*' 14 ClosestTarget16881                endif16882 16883                if insysmsg "Society Job Progress"16884                    overhead "[ � SOCIETY � ]" 41916885                endif16886 16887                if insysmsg "attempting to steal" or insysmsg "attempting to peek"16888                    overhead "[ THIEF DETECTED! ]" 91016889                endif16890 16891                if insysmsg "Their attack disarms you!"16892                    overhead "*disarmed*" 33716893                endif16894 16895                if insysmsg "Their attack hamstrings you!"16896                    overhead "*hamstrung*" 33716897                endif16898            endif16899 16900            if followers > 016901                if skill 'spiritspeak' >= 50 and timer 'SpiritSpeakTimer' > 10000 and findtype 'corpse' ground -1 -1 15 and EnableNecroVengefulSpirit = 016902                    getlabel backpack backpacklabel16903                    skill 'spiritspeak'16904                    wait 25016905                    settimer 'SpiritSpeakTimer' 016906                    if insysmsg 'You establish contact'16907                        if EnableOverheadMessages = 116908                            overhead '[ CONSUMING SOULS... ]' 110916909                        else16910                            overhead '*consuming souls...*' 110916911                        endif16912                    endif16913                endif16914            endif16915 16916            if dead16917                break16918            endif16919 16920            if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange16921                settimer TargetChecker 016922                @setvar! AttackModeActive 016923                @setvar! RepeatCastingPoison 016924                @setvar! ClosestTargetisSticky 016925                @setvar! TargetSwap 016926                break16927            endif16928 16929            if diffhits > CastGreaterHealHPdiff or paralyzed16930                break16931            endif16932        endwhile16933 16934        /////////////////////////////16935        //  END SMALL ATTACK LOOP  //16936        /////////////////////////////16937 16938        if not findtype "3972" self or not findtype "3962" self or not findtype "3963" self or not findtype "3980" self or not findtype "3976" self or not findtype "3973" self or not findtype "3974" self or not findtype "3981" self16939            clearignore16940            getlabel backpack backpacklabel16941            if not findtype "3972" self or not findtype "3962" self or not findtype "3963" self or not findtype "3980" self or not findtype "3976" self or not findtype "3973" self or not findtype "3974" self or not findtype "3981" self16942                if EnableOverheadMessages = 1 or EnableOverheadMessages = 216943                    if timer MissingRegsTimer > 500016944                        if counttype "3972" self = 016945                            overhead '[ NO GARLIC ]' 64616946                        endif16947                        if counttype "3962" self = 016948                            overhead '[ NO BLACK PEARL ]' 316949                        endif16950                        if counttype "3963" self = 016951                            overhead '[ NO BLOODMOSS ]' 3316952                        endif16953                        if counttype "3980" self = 016954                            overhead '[ NO SULFUROUS ASH ]' 15316955                        endif16956                        if counttype "3976" self = 016957                            overhead '[ NO NIGHTSHADE ]' 36316958                        endif16959                        if counttype "3973" self = 016960                            overhead '[ NO GINSENG ]' 24716961                        endif16962                        if counttype "3974" self = 016963                            overhead '[ NO MANDRAKE ROOT ]' 44216964                        endif16965                        if counttype "3981" self = 016966                            overhead '[ NO SPIDERS SILK ]' 233816967                        endif16968                        settimer MissingRegsTimer 016969                    endif16970                endif16971                @setvar! MissingRegs 116972            else16973                @setvar! MissingRegs 016974            endif16975        else16976            @setvar! MissingRegs 016977        endif16978 16979        if not findtype 3972 self or not findtype 3973 self or not findtype 3974 self or not findtype 3981 self16980            @setvar! missingGreaterHealRegs 116981            getlabel backpack backpacklabel16982        else16983            @setvar! missingGreaterHealRegs 016984        endif16985 16986        if not findtype 3972 self or not findtype 3973 self or not findtype 3974 self16987            @setvar! missingHealRegs 116988            getlabel backpack backpacklabel16989        else16990            @setvar! missingHealRegs 016991        endif16992 16993        if missingGreaterHealRegs = 1 or missingHealRegs = 116994            if timer NoHealRegsTimer > 400016995                overhead '[ MISSING HEALING REGS! ]' 33716996                settimer NoHealRegsTimer 016997            endif16998        endif16999 17000        @setvar! SpellInterrupted 017001        clearsysmsg17002 17003        if skill 'magery' >= 60 and diffhits >= CastGreaterHealHPdiff and diffhits <= CastHealHPdiff and mana >= 11 and EnableCastGreaterHeal = 1 and not casting and missingGreaterHealRegs != 117004            say 'All guard me' 223417005            @setvar! SpellInterrupted 017006            cast 'greater heal'17007            getlabel backpack backpacklabel17008            settimer spellTimer 017009            @setvar! spellCD 250017010            while not targetexists and timer spellTimer < spellCD17011                if insysmsg "Your concentration is disturbed"17012                    interrupt17013                    @setvar! SpellInterrupted 117014                    break17015                endif17016                if timer spellTimer > spellCD17017                    break17018                endif17019            endwhile17020            if SpellInterrupted = 017021                target 'self'17022            endif17023        elseif skill 'magery' >= 40 and diffhits >= CastHealHPdiff and diffhits < CastEmergencyHealHPdiff and mana >= 4 and EnableCastHeal = 1 and not casting and missingHealRegs != 117024            say 'All guard me' 223417025            @setvar! SpellInterrupted 017026            cast 'heal'17027            getlabel backpack backpacklabel17028            settimer AntiStallTimer 017029            while not targetexists and timer AntiStallTimer < 150017030                if insysmsg "Your concentration is disturbed"17031                    interrupt17032                    @setvar! SpellInterrupted 117033                    break17034                endif17035                if timer AntiStallTimer > 150017036                    settimer AntiStallTimer 017037                    break17038                endif17039            endwhile17040            if SpellInterrupted = 017041                target 'self'17042            endif17043        elseif skill 'magery' >= 40 and diffhits >= CastEmergencyHealHPdiff and mana >= 4 and EnableCastHeal = 1 and not casting and missingHealRegs != 117044            say 'All guard me' 223417045            while diffhits > CastGreaterHealHPdiff and mana >= 4 and findtype 3972 self and findtype 3973 self and findtype 3974 self and not dead17046                if targetexists17047                    hotkey 'Cancel current target'17048                endif17049                @setvar! SpellInterrupted 017050                cast 'heal'17051                getlabel backpack backpacklabel17052                settimer AntiStallTimer 017053                while not targetexists and timer AntiStallTimer < 150017054                    if insysmsg "Your concentration is disturbed"17055                        interrupt17056                        @setvar! SpellInterrupted 117057                        break17058                    endif17059                    if timer AntiStallTimer > 150017060                        settimer AntiStallTimer 017061                        break17062                    endif17063                endwhile17064                if SpellInterrupted = 017065                    target 'self'17066                    getlabel backpack backpacklabel17067                endif17068                if diffhits <= CastGreaterHealHPdiff17069                    break17070                endif17071            endwhile17072        endif17073 17074        @setvar! SpellInterrupted 017075 17076        if paralyzed and EnableAutoParalyzePouch = 117077            say 'All guard me' 223417078            if findtype "pouch" self17079                yell "[pouch"17080                wait 25017081            else17082                if timer PopPouchMessageTimer > 5000 and EnableOverheadMessages = 117083                    overhead '[ NO MORE POUCHES! ]' 33717084                    settimer PopPouchMessageTimer 017085                endif17086            endif17087        endif17088 17089        if not warmode and TimeToGo = 117090            break17091        endif17092 17093        if EnablePanaceaPotion = 1 and skill 'Alchemy' >= 8017094            if findbuff "Bleed" or findbuff "Diseased"17095                if not findbuff "panacea potion cooldown"17096                    if findtype "Orange Potion" self17097                        dclicktype "Orange Potion"17098                        wait 25017099                        if findbuff "panacea potion cooldown" and EnableOverheadMessages = 117100                            overhead '[ PANACEA ACTIVATED ]' 5517101                            cooldown "Panacea Potion" 3000017102                        endif17103                    endif17104                endif17105            endif17106        endif17107 17108        if EnableCleansingBrews = 117109            if findbuff "Diseased" or findbuff "Bleed"17110                if timer CleansingBrewTimer > 12000017111                    if findtype 50675 self 2935 as CleansingBrew17112                        dclick CleansingBrew17113                        if EnableOverheadMessages = 117114                            overhead '[ CLEANSING BREW ]' 211717115                        endif17116                        cooldown 'Cleansing Brew' 12000017117                        settimer CleansingBrewTimer 017118                        wait 25017119                    else17120                        if timer CleansingBrewOverhead > 1500017121                            overhead "[ NO CLEANSING BREWS! ]" 33717122                            settimer CleansingBrewOverhead 017123                            settimer CleansingBrewTimer 017124                        endif17125                    endif17126                else17127                    if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 1500017128                        overhead '[ BREW ON COOLDOWN! ]' 3717129                        settimer CleansingBrewOverhead 017130                    endif17131                endif17132            endif17133        endif17134 17135        if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff17136            if findtype "Yellow Potion" self as HealPot17137                getlabel HealPot HealPotlabel17138                if "next" in HealPotlabel17139                    // Do nothing17140                else17141                    @setvar! HealPotionCheck 017142 17143                    if counttype 3852 self as HealPotCount17144                        @setvar! HealPotionCheck HealPotCount17145                    endif17146                    clearsysmsg17147                    dclicktype 385217148                    getlabel backpack backpackdesc17149                    wait 25017150                    if insysmsg "potion satchel used"17151                        settimer 'HealPotionTimer' 017152                        cooldown "Healing Potion" HealingPotionCooldown17153                        if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 450017154                            overhead '[ FREE HEAL POTION ]' 25317155                        endif17156                    elseif HealPotionCheck != counttype 3852 self17157                        settimer 'HealPotionTimer' 017158                        cooldown "Healing Potion" HealingPotionCooldown17159                        if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 450017160                            overhead '[ HEAL POTION ]' 25317161                        endif17162                    endif17163                    clearsysmsg17164                endif17165            else17166                if timer 'HealPotionMessageTimer' > 4500 and EnableOverheadMessages = 117167                    overhead '[ NO HEAL POTS! ]' 33717168                    settimer 'HealPotionMessageTimer' 017169                endif17170            endif17171        endif17172 17173        if skill 'healing' > 0 and hp < maxhp and not bandaging17174            if findtype 'clean bandage%s%' self17175                hotkey 'Bandage Self'17176                if EnableOverheadMessages = 117177                    overhead '[ BANDAGING... ]' 8817178                endif17179            else17180                if EnableOverheadMessages = 117181                    overhead '[ NO BANDAGES! ]' 33717182                endif17183            endif17184        endif17185 17186        if EnableCurePotion = 1 or EnableCastCure = 117187            while poisoned17188                if findtype "Orange Potion" self and EnableCurePotion = 117189                    dclicktype "Orange Potion"17190                    if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 350017191                        if insysmsg "potion satchel used"17192                            overhead '[ FREE CURE POTION ]' 4417193                        else17194                            overhead '[ CURE POTION ]' 4417195                        endif17196                        clearsysmsg17197                        settimer 'CurePotionMessageTimer' 017198                    endif17199                    wait 50017200                else17201                    if timer 'CurePotionMessageTimer' > 5000 and EnableOverheadMessages = 117202                        overhead '[ NO CURE POTS! ]' 33717203                        settimer 'CurePotionMessageTimer' 017204                    endif17205                    if diffhits >= 30 or not findtype 3972 self or not findtype 3973 self17206                        break17207                    endif17208                    if skill 'magery' >= 40 and mana >= 6 and EnableCastCure = 1 and not casting17209                        cast 'cure'17210                        getlabel backpack backpacklabel17211                        settimer AntiStallTimer 017212                        while not targetexists and timer AntiStallTimer < 150017213                            if timer AntiStallTimer > 150017214                                settimer AntiStallTimer 017215                                break17216                            endif17217                            wait 10017218                        endwhile17219                        wft 100017220                        target 'self'17221                        wait 50017222                    else17223                        break17224                    endif17225                endif17226            endwhile17227        endif17228 17229        if EnablePKradar = 1 and TimeToGo != 117230            if timer "PKRadarTimer" > 150017231                clearsysmsg17232                hotkey 'Next Murderer Player Target'17233                wait 15017234                if insysmsg "No one matching that was found"17235                    settimer "PKRadarTimer" 017236                    clearsysmsg17237                else17238                    if EnableRedAlertOverhead = 117239                        overhead "[ !! RED ALERT !! ]" 3717240                    endif17241                    hotkey 'Toggle Peace Only'17242                    @setvar! RedTargetFound 117243                    @setvar! TimeToGo 117244                    @setvar! MurdererTarget lasttarget17245                    replay17246                endif17247            endif17248        endif17249 17250        if EnableTrackingAutoRecall = 1 and TimeToGo != 117251            if PKTrackingRange = 6017252                if insysmsg ": 60 step" or insysmsg "60 space" or insysmsg ": 59 step" or insysmsg "59 space" or insysmsg ": 58 step" or insysmsg "58 space" or insysmsg ": 57 step" or insysmsg "57 space" or insysmsg ": 56 step" or insysmsg "56 space" or insysmsg ": 55 step" or insysmsg "55 space" or insysmsg ": 54 step" or insysmsg "54 space" or insysmsg ": 53 step" or insysmsg "53 space" or insysmsg ": 52 step" or insysmsg "52 space" or insysmsg ": 51 step" or insysmsg "51 space" or insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"17253                    hotkey 'Toggle Peace Only'17254                    if EnableRedAlertOverhead = 117255                        overhead '[ !! RED ALERT !! ]' 3717256                    endif17257                    @setvar! RedTargetFound 117258                    @setvar! TimeToGo 117259                    clearsysmsg17260                    replay17261                endif17262            elseif PKTrackingRange = 5017263                if insysmsg ": 50 step" or insysmsg "50 space" or insysmsg ": 49 step" or insysmsg "49 space" or insysmsg ": 48 step" or insysmsg "48 space" or insysmsg ": 47 step" or insysmsg "47 space" or insysmsg ": 46 step" or insysmsg "46 space" or insysmsg ": 45 step" or insysmsg "45 space" or insysmsg ": 44 step" or insysmsg "44 space" or insysmsg ": 43 step" or insysmsg "43 space" or insysmsg ": 42 step" or insysmsg "42 space" or insysmsg ": 41 step" or insysmsg "41 space" or insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"17264                    hotkey 'Toggle Peace Only'17265                    if EnableRedAlertOverhead = 117266                        overhead '[ !! RED ALERT !! ]' 3717267                    endif17268                    @setvar! RedTargetFound 117269                    @setvar! TimeToGo 117270                    clearsysmsg17271                    replay17272                endif17273            elseif PKTrackingRange = 4017274                if insysmsg ": 40 step" or insysmsg "40 space" or insysmsg ": 39 step" or insysmsg "39 space" or insysmsg ": 38 step" or insysmsg "38 space" or insysmsg ": 37 step" or insysmsg "37 space" or insysmsg ": 36 step" or insysmsg "36 space" or insysmsg ": 35 step" or insysmsg "35 space" or insysmsg ": 34 step" or insysmsg "34 space" or insysmsg ": 33 step" or insysmsg "33 space" or insysmsg ": 32 step" or insysmsg "32 space" or insysmsg ": 31 step" or insysmsg "31 space" or insysmsg ": 30 step" or insysmsg "30 space" or insysmsg ": 29 step" or insysmsg "29 space" or insysmsg ": 28 step" or insysmsg "28 space" or insysmsg ": 27 step" or insysmsg "27 space" or insysmsg ": 26 step" or insysmsg "26 space" or insysmsg ": 25 step" or insysmsg "25 space" or insysmsg ": 24 step" or insysmsg "24 space" or insysmsg ": 23 step" or insysmsg "23 space" or insysmsg ": 22 step" or insysmsg "22 space" or insysmsg ": 21 step" or insysmsg "21 space" or insysmsg ": 20 step" or insysmsg "20 space" or insysmsg ": 19 step" or insysmsg "19 space" or insysmsg ": 18 step" or insysmsg "18 space" or insysmsg ": 17 step" or insysmsg "17 space" or insysmsg ": 16 step" or insysmsg "16 space" or insysmsg ": 15 step" or insysmsg "15 space" or insysmsg ": 14 step" or insysmsg "14 space" or insysmsg ": 13 step" or insysmsg "13 space" or insysmsg ": 12 step" or insysmsg "12 space" or insysmsg ": 11 step" or insysmsg "11 space" or insysmsg ": 10 step" or insysmsg "10 space" or insysmsg ": 9 step" or insysmsg "(9 space" or insysmsg ": 8 step" or insysmsg "(8 space" or insysmsg ": 7 step" or insysmsg "(7 space" or insysmsg ": 6 step" or insysmsg "(6 space" or insysmsg ": 5 step" or insysmsg "(5 space" or insysmsg ": 4 step" or insysmsg "(4 space" or insysmsg ": 3 step" or insysmsg "(3 space" or insysmsg ": 2 step" or insysmsg "(2 space" or insysmsg ": 1 step" or insysmsg "(1 space" or insysmsg ": 0 step" or insysmsg "(0 space"17275                    hotkey 'Toggle Peace Only'17276                    if EnableRedAlertOverhead = 117277                        overhead '[ !! RED ALERT !! ]' 3717278                    endif17279                    @setvar! RedTargetFound 117280                    @setvar! TimeToGo 117281                    clearsysmsg17282                    replay17283                endif17284            elseif PKTrackingRange = 017285                if insysmsg "Now tracking"17286                    hotkey 'Toggle Peace Only'17287                    if EnableRedAlertOverhead = 117288                        overhead '[ !! RED ALERT !! ]' 3717289                    endif17290                    @setvar! RedTargetFound 117291                    @setvar! TimeToGo 117292                    clearsysmsg17293                    replay17294                endif17295            endif17296        endif17297 17298        if followers > 017299            if skill 'spiritspeak' >= 50 and timer 'SpiritSpeakTimer' > 10000 and findtype 'corpse' ground -1 -1 15 and EnableNecroVengefulSpirit = 017300                getlabel backpack backpacklabel17301                skill 'spiritspeak'17302                wait 25017303                settimer 'SpiritSpeakTimer' 017304                if insysmsg 'You establish contact'17305                    if EnableOverheadMessages = 117306                        overhead '[ CONSUMING SOULS... ]' 110917307                    else17308                        overhead '*consuming souls...*' 110917309                    endif17310                endif17311            endif17312        endif17313 17314        if SummonEarthElemental_or_AncientMummy != 0 or SummonWaterElemental_or_RagWitch != 0 or SummonFireElemental_or_Lich != 0 or SummonAirElemental_or_SkeletalFiend != 0 or SummonDemon_or_VampireThrall != 0 or SummonCreature_or_UndeadCreature != 017315            if followers < TotalSummonCount17316                @setvar! AttackModeActive 217317                replay17318            endif17319        endif17320 17321        if dead17322            break17323        endif17324 17325        if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetAttackRange17326            settimer TargetChecker 017327            @setvar! AttackModeActive 017328            @setvar! RepeatCastingPoison 017329            @setvar! ClosestTargetisSticky 017330            @setvar! TargetSwap 017331            break17332        endif17333 17334        if TargetSwap = 117335            @setvar! AttackModeActive 217336            break17337        endif17338    endwhile17339 17340    ///////////////////////17341    //  END ATTACK LOOP  //17342    ///////////////////////17343 17344 17345    ///////////////////////17346    //    AFTER KILL:    //17347    ///////////////////////17348 17349    if TimeToGo != 117350        if TargetSwap = 117351            if EnableOverheadMessages = 1 or EnableOverheadMessages = 217352                if timer SwapTargetsTimer > 350017353                    overhead '[ SWAPPING TARGET... ]' 9317354                    settimer SwapTargetsTimer 017355                endif17356            endif17357            settimer TargetChecker 017358            settimer AnalyzingTargetsTimer 017359            @setvar! TargetToAnalyze TargetToCheck17360            @setvar! ClosestTarget 017361            @setvar! TargetSwap 017362            @setvar! AttackModeActive 217363            @setvar! ClosestTargetisSticky 017364            @setvar! RepeatCastingPoison 017365            getlabel backpack backpacklabel17366        endif17367 17368        if AttackModeActive != 217369            settimer TargetChecker 017370            @setvar! AttackModeActive 017371            @setvar! ClosestTargetisSticky 017372            @setvar! RepeatCastingPoison 017373            @setvar! NeedtoSecureLoot 117374            settimer LootTimer 017375            getlabel backpack backpacklabel17376 17377            if warmode17378                if TargetSwap != 1 and TimeToGo != 117379                    if not dead ClosestTarget and find ClosestTarget ground -1 -1 18 and not find ClosestTarget ground -1 -1 TargetAttackRange17380                        if EnableOverheadMessages != 017381                            if timer 'NoTargetTimer' > 500017382                                overhead "[ TARGET LOST... ]" 33917383                                settimer 'NoTargetTimer' 017384                           endif17385                        endif17386                        if timer AllGuardMeTimer > 1500017387                            say 'All guard me' 223417388                            settimer AllGuardMeTimer 017389                        endif17390                    elseif dead ClosestTarget and not find ClosestTarget ground -1 -1 1817391                        if EnableOverheadMessages != 017392                            if timer 'NoTargetTimer' > 500017393                                overhead "[ TARGET ELIMINATED! ]" 211417394                                settimer 'NoTargetTimer' 017395                            endif17396                        endif17397                        if timer AllGuardMeTimer > 1500017398                            say 'All guard me' 223417399                            settimer AllGuardMeTimer 017400                        endif17401                    endif17402                endif17403            endif17404 17405            if followers > 017406                if skill 'spiritspeak' >= 50 and timer 'SpiritSpeakTimer' > 10000 and findtype 'corpse' ground -1 -1 15 and EnableNecroVengefulSpirit = 017407                    getlabel backpack backpacklabel17408                    skill 'spiritspeak'17409                    wait 25017410                    settimer 'SpiritSpeakTimer' 017411                    if insysmsg 'You establish contact'17412                        if EnableOverheadMessages = 117413                            overhead '[ CONSUMING SOULS... ]' 110917414                        else17415                            overhead '*consuming souls...*' 110917416                        endif17417                    endif17418                endif17419            endif17420 17421            if EnableOverheadMessages = 117422                if insysmsg "something invisible out of"17423                    overhead "� SOMEONE HIDING! �" 617424                endif17425 17426                if insysmsg "additional mastery chain link"17427                    overhead "[ CHAIN LINK UNLOCKED!! ]" 14917428                    wait 50017429                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown17430                        wait 50017431                        say "[Yes"17432                        settimer EmoteCooldownTimer 017433                        cooldown "Emote Cooldown" SetEmoteCooldown17434                    endif17435                endif17436 17437                if insysmsg "enough experience to upgrade"17438                    overhead "[ ASPECT TIER UNLOCKED!! ]" 223417439                    wait 50017440                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown17441                        wait 50017442                        say "[Whistle"17443                        settimer EmoteCooldownTimer 017444                        cooldown "Emote Cooldown" SetEmoteCooldown17445                    endif17446                endif17447 17448                if insysmsg "You have unlocked a codex upgrade point"17449                    overhead "[ CODEX POINT UNLOCKED! ]" 211417450                    wait 25017451                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown17452                        wait 50017453                        say "[HighFive"17454                        settimer EmoteCooldownTimer 017455                        cooldown "Emote Cooldown" SetEmoteCooldown17456                    endif17457                endif17458 17459                if insysmsg "You have completed a society job"17460                    overhead "[ SOCIETY JOB COMPLETE! ]" 41917461                    wait 50017462                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown17463                        wait 50017464                        say "[Awoo"17465                        settimer EmoteCooldownTimer 017466                        cooldown "Emote Cooldown" SetEmoteCooldown17467                    endif17468                endif17469 17470                if insysmsg "Society Job Progress"17471                    overhead "[ � SOCIETY POINTS � ]" 41917472                endif17473 17474                if insysmsg "attempting to steal" or insysmsg "attempting to peek"17475                    overhead "[ THIEF DETECTED! ]" 91017476                endif17477            else17478                if insysmsg "something invisible out of"17479                    overhead "� SOMEONE HIDING! �" 617480                endif17481 17482                if insysmsg "additional mastery chain link"17483                    overhead "[ � CHAIN! � ]" 14917484                    wait 50017485                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown17486                        wait 50017487                        say "[Yes"17488                        settimer EmoteCooldownTimer 017489                        cooldown "Emote Cooldown" SetEmoteCooldown17490                    endif17491                endif17492 17493                if insysmsg "enough experience to upgrade"17494                    overhead "[ � ASPECT � ]" 223417495                    wait 50017496                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown17497                        wait 50017498                        say "[Whistle"17499                        settimer EmoteCooldownTimer 017500                        cooldown "Emote Cooldown" SetEmoteCooldown17501                    endif17502                endif17503 17504                if insysmsg "You have unlocked a codex upgrade point"17505                    overhead '[ � CODEX! � ]' 211417506                    wait 25017507                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown17508                        wait 50017509                        say "[HighFive"17510                        settimer EmoteCooldownTimer 017511                        cooldown "Emote Cooldown" SetEmoteCooldown17512                    endif17513                endif17514 17515                if insysmsg "You have completed a society job"17516                    overhead "[ SOCIETY COMPLETE! ]" 41917517                    wait 50017518                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown17519                        wait 50017520                        say "[Awoo"17521                        settimer EmoteCooldownTimer 017522                        cooldown "Emote Cooldown" SetEmoteCooldown17523                    endif17524                endif17525 17526                if insysmsg "Society Job Progress"17527                    overhead "[ � SOCIETY � ]" 41917528                endif17529 17530                if insysmsg "attempting to steal" or insysmsg "attempting to peek"17531                    overhead "[ THIEF DETECTED! ]" 91017532                endif17533            endif17534 17535            if EnableAutoCarving = 1 and findtype 11552 self17536                while findtype "corpse" ground -1 -1 2 as deadbody and diffhits < CastGreaterHealHPdiff17537                    settimer SkinningTimeoutTimer 017538                    if findtype 11552 self17539                        if targetexists17540                            hotkey 'cancel current target'17541                        endif17542 17543                        while not targetexists17544                            skill 'forensicevaluation'17545                            getlabel backpack backpacklabel17546                        endwhile17547 17548                        clearsysmsg17549 17550                        if targetexists and find deadbody ground -1 -1 217551                            target 'self'17552                            @ignore deadbody17553                            wait 25017554                        endif17555 17556                        if insysmsg "You dont see anything nearby"17557                            clearsysmsg17558                            break17559                        else17560                            if EnableOverheadMessages = 1 and timer SkinningTimer > 300017561                                overhead '[ SKINNING... ]' 33317562                                settimer SkinningTimer 017563                            endif17564                            break17565                        endif17566                    else17567                        if EnableOverheadMessages = 1 and timer SkinningTimer > 1500017568                            overhead '[ NO SKINNING KNIFE ]' 33717569                            settimer SkinningTimer 017570                            break17571                        endif17572                    endif17573 17574                    if timer SkinningTimeoutTimer > 1500 or diffhits > CastGreaterHealHPdiff17575                        break17576                    endif17577                endwhile17578            endif17579 17580            if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff17581                if findtype "Yellow Potion" self as HealPot17582                    getlabel HealPot HealPotlabel17583                    if "next" in HealPotlabel17584                        // Do nothing17585                    else17586                        @setvar! HealPotionCheck 017587 17588                        if counttype 3852 self as HealPotCount17589                            @setvar! HealPotionCheck HealPotCount17590                        endif17591                        clearsysmsg17592                        dclicktype 385217593                        getlabel backpack backpackdesc17594                        wait 25017595                        if insysmsg "potion satchel used"17596                            settimer 'HealPotionTimer' 017597                            cooldown "Healing Potion" HealingPotionCooldown17598                            if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 450017599                                overhead '[ FREE HEAL POTION ]' 25317600                            endif17601                        elseif HealPotionCheck != counttype 3852 self17602                            settimer 'HealPotionTimer' 017603                            cooldown "Healing Potion" HealingPotionCooldown17604                            if EnableOverheadMessages = 1 and timer 'HealPotionMessageTimer' > 450017605                                overhead '[ HEAL POTION ]' 25317606                            endif17607                        endif17608                        clearsysmsg17609                    endif17610                else17611                    if timer 'HealPotionMessageTimer' > 4500 and EnableOverheadMessages = 117612                        overhead '[ NO HEAL POTS! ]' 33717613                        settimer 'HealPotionMessageTimer' 017614                    endif17615                endif17616            endif17617 17618            if skill 'healing' > 0 and hp < maxhp and not bandaging17619                if findtype 'clean bandage%s%' self17620                    hotkey 'Bandage Self'17621                    if EnableOverheadMessages = 117622                        overhead '[ BANDAGING... ]' 8817623                    endif17624                else17625                    if EnableOverheadMessages = 117626                        overhead '[ NO BANDAGES! ]' 33717627                    endif17628                endif17629            endif17630 17631            if not findtype "3972" self or not findtype "3962" self or not findtype "3963" self or not findtype "3980" self or not findtype "3976" self or not findtype "3973" self or not findtype "3974" self or not findtype "3981" self17632                clearignore17633                getlabel backpack backpacklabel17634                if not findtype "3972" self or not findtype "3962" self or not findtype "3963" self or not findtype "3980" self or not findtype "3976" self or not findtype "3973" self or not findtype "3974" self or not findtype "3981" self17635                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 217636                        if timer MissingRegsTimer > 500017637                            if counttype "3972" self = 017638                                overhead '[ NO GARLIC ]' 64617639                            endif17640                            if counttype "3962" self = 017641                                overhead '[ NO BLACK PEARL ]' 317642                            endif17643                            if counttype "3963" self = 017644                                overhead '[ NO BLOODMOSS ]' 3317645                            endif17646                            if counttype "3980" self = 017647                                overhead '[ NO SULFUROUS ASH ]' 15317648                            endif17649                            if counttype "3976" self = 017650                                overhead '[ NO NIGHTSHADE ]' 36317651                            endif17652                            if counttype "3973" self = 017653                                overhead '[ NO GINSENG ]' 24717654                            endif17655                            if counttype "3974" self = 017656                                overhead '[ NO MANDRAKE ROOT ]' 44217657                            endif17658                            if counttype "3981" self = 017659                                overhead '[ NO SPIDERS SILK ]' 233817660                            endif17661                            settimer MissingRegsTimer 017662                        endif17663                    endif17664                    @setvar! MissingRegs 117665                else17666                    @setvar! MissingRegs 017667                endif17668            else17669                @setvar! MissingRegs 017670            endif17671 17672            if not findtype 3972 self or not findtype 3973 self or not findtype 3974 self or not findtype 3981 self17673                @setvar! missingGreaterHealRegs 117674                getlabel backpack backpacklabel17675            else17676                @setvar! missingGreaterHealRegs 017677            endif17678 17679            if not findtype 3972 self or not findtype 3973 self or not findtype 3974 self17680                @setvar! missingHealRegs 117681                getlabel backpack backpacklabel17682            else17683                @setvar! missingHealRegs 017684            endif17685 17686            if missingGreaterHealRegs = 1 or missingHealRegs = 117687                if timer NoHealRegsTimer > 400017688                    overhead '[ MISSING HEALING REGS! ]' 33717689                    settimer NoHealRegsTimer 017690                endif17691            endif17692 17693            @setvar! SpellInterrupted 017694            clearsysmsg17695 17696            if skill 'magery' >= 60 and diffhits >= CastGreaterHealHPdiff and diffhits <= CastHealHPdiff and mana >= 11 and EnableCastGreaterHeal = 1 and not casting and missingGreaterHealRegs != 117697                say 'All guard me' 223417698                @setvar! SpellInterrupted 017699                cast 'greater heal'17700                getlabel backpack backpacklabel17701                settimer spellTimer 017702                @setvar! spellCD 250017703                while not targetexists and timer spellTimer < spellCD17704                    if insysmsg "Your concentration is disturbed"17705                        interrupt17706                        @setvar! SpellInterrupted 117707                        break17708                    endif17709                    if timer spellTimer > spellCD17710                        break17711                    endif17712                endwhile17713                if SpellInterrupted = 017714                    target 'self'17715                endif17716            elseif skill 'magery' >= 40 and diffhits >= CastHealHPdiff and diffhits < CastEmergencyHealHPdiff and mana >= 4 and EnableCastHeal = 1 and not casting and missingHealRegs != 117717                say 'All guard me' 223417718                @setvar! SpellInterrupted 017719                cast 'heal'17720                getlabel backpack backpacklabel17721                settimer AntiStallTimer 017722                while not targetexists and timer AntiStallTimer < 150017723                    if insysmsg "Your concentration is disturbed"17724                        interrupt17725                        @setvar! SpellInterrupted 117726                        break17727                    endif17728                    if timer AntiStallTimer > 150017729                        settimer AntiStallTimer 017730                        break17731                    endif17732                endwhile17733                if SpellInterrupted = 017734                    target 'self'17735                endif17736            elseif skill 'magery' >= 40 and diffhits >= CastEmergencyHealHPdiff and mana >= 4 and EnableCastHeal = 1 and not casting and missingHealRegs != 117737                say 'All guard me' 223417738                while diffhits > CastGreaterHealHPdiff and mana >= 4 and findtype 3972 self and findtype 3973 self and findtype 3974 self and not dead17739                    if targetexists17740                        hotkey 'Cancel current target'17741                    endif17742                    @setvar! SpellInterrupted 017743                    cast 'heal'17744                    getlabel backpack backpacklabel17745                    settimer AntiStallTimer 017746                    while not targetexists and timer AntiStallTimer < 150017747                        if insysmsg "Your concentration is disturbed"17748                            interrupt17749                            @setvar! SpellInterrupted 117750                            break17751                        endif17752                        if timer AntiStallTimer > 150017753                            settimer AntiStallTimer 017754                            break17755                        endif17756                    endwhile17757                    if SpellInterrupted = 017758                        target 'self'17759                        getlabel backpack backpacklabel17760                    endif17761                    if diffhits <= CastGreaterHealHPdiff17762                        break17763                    endif17764                endwhile17765            endif17766 17767            @setvar! SpellInterrupted 017768 17769            if paralyzed and EnableAutoParalyzePouch = 117770                say 'All guard me' 223417771                if findtype "pouch" self17772                    yell "[pouch"17773                    wait 25017774                else17775                    if timer PopPouchMessageTimer > 5000 and EnableOverheadMessages = 117776                        overhead '[ NO MORE POUCHES! ]' 33717777                        settimer PopPouchMessageTimer 017778                    endif17779                endif17780            endif17781 17782            if EnablePanaceaPotion = 1 and skill 'Alchemy' >= 8017783                if findbuff "Bleed" or findbuff "Diseased"17784                    if not findbuff "panacea potion cooldown"17785                        if findtype "Orange Potion" self17786                            dclicktype "Orange Potion"17787                            wait 25017788                            if findbuff "panacea potion cooldown" and EnableOverheadMessages = 117789                                overhead '[ PANACEA ACTIVATED ]' 5517790                                cooldown "Panacea Potion" 3000017791                            endif17792                        endif17793                    endif17794                endif17795            endif17796 17797            if EnableCleansingBrews = 117798                if findbuff "Diseased" or findbuff "Bleed"17799                    if timer CleansingBrewTimer > 12000017800                        if findtype 50675 self 2935 as CleansingBrew17801                            dclick CleansingBrew17802                            if EnableOverheadMessages = 117803                                overhead '[ CLEANSING BREW ]' 211717804                            endif17805                            cooldown 'Cleansing Brew' 12000017806                            settimer CleansingBrewTimer 017807                            wait 25017808                        else17809                            if timer CleansingBrewOverhead > 1500017810                                overhead "[ NO CLEANSING BREWS! ]" 33717811                                settimer CleansingBrewOverhead 017812                                settimer CleansingBrewTimer 017813                            endif17814                        endif17815                    else17816                        if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 1500017817                            overhead '[ BREW ON COOLDOWN! ]' 3717818                            settimer CleansingBrewOverhead 017819                        endif17820                    endif17821                endif17822            endif17823 17824            if EnableCurePotion = 1 or EnableCastCure = 117825                while poisoned17826                    if findtype "Orange Potion" self and EnableCurePotion = 117827                        dclicktype "Orange Potion"17828                        if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 350017829                            if insysmsg "potion satchel used"17830                                overhead '[ FREE CURE POTION ]' 4417831                            else17832                                overhead '[ CURE POTION ]' 4417833                            endif17834                            clearsysmsg17835                            settimer 'CurePotionMessageTimer' 017836                        endif17837                        wait 50017838                    else17839                        if timer 'CurePotionMessageTimer' > 5000 and EnableOverheadMessages = 117840                            overhead '[ NO CURE POTS! ]' 33717841                            settimer 'CurePotionMessageTimer' 017842                        endif17843                        if diffhits >= 30 or not findtype 3972 self or not findtype 3973 self17844                            break17845                        endif17846                        if skill 'magery' >= 40 and mana >= 6 and EnableCastCure = 1 and not casting17847                            cast 'cure'17848                            getlabel backpack backpacklabel17849                            settimer AntiStallTimer 017850                            while not targetexists and timer AntiStallTimer < 150017851                                if timer AntiStallTimer > 150017852                                    settimer AntiStallTimer 017853                                    break17854                                endif17855                                wait 10017856                            endwhile17857                            wft 100017858                            target 'self'17859                            wait 50017860                        else17861                            break17862                        endif17863                    endif17864                endwhile17865            endif17866 17867            if targetexists17868                if findtype " Elven Spellblade" self17869                    targettype "Elven Spellblade"17870                else17871                    target backpack17872                endif17873            endif17874 17875            clearsysmsg17876            hotkey 'target closest grey monster'17877            wait 25017878            @setvar! TargetToAnalyze lasttarget17879 17880            if insysmsg 'No one matching that'17881                @setvar! AttackModeActive 017882                @setvar! TargetToAnalyze 017883            else17884                @setvar! TargetToAnalyze lasttarget17885                @setvar! AttackModeActive 217886            endif17887        endif17888    endif17889 17890    if dead17891        break17892    endif17893endwhile17894 17895//////////////////////17896//  END ALIVE LOOP  //17897//////////////////////17898 17899 17900/////////////////////////17901//  BEGIN DEATH LOOP:  //17902/////////////////////////17903 17904if dead17905    if EnableOverheadMessages = 1 or EnableOverheadMessages = 217906        overhead '[ R.I.P. ]' 33717907    endif17908    wait 150017909 17910    while dead17911        @setvar! IHAVEDIED 117912        wait 50017913        if timer "WaitingForHealerTimer" > 400017914            overhead '[ FIND A HEALER! ]' 017915            settimer "WaitingForHealerTimer" 017916        endif17917 17918        if findtype "blue moongate|30528|moongate" ground -1 -1 15 as EscapeGate17919            if timer "GateIndicatorTimer" > 200017920                overhead " � " 253 EscapeGate17921                settimer "GateIndicatorTimer" 017922            endif17923        endif17924 17925        while not gumpexists 3773199800 and findtype "blue moongate|30528|moongate" ground 0 1 2 as EscapeGate17926            dclick EscapeGate17927            wait 50017928        endwhile17929 17930        while gumpexists 377319980017931            gumpresponse 1617932            wait 50017933            waitforgump 377319980017934            gumpresponse 217935            overhead '[ GATING TO TOWN... ]' 8817936            break17937        endwhile17938 17939        while gumpexists 295781022517940            overhead '[ HEALED! ]' 8417941            gumpresponse 117942            wait 100017943            gumpclose 295781022517944 17945            if EnableDressAfterResurrection = 117946                overhead '[ DRESSING... ]' 2217947                wait 50017948                dress 'UltimateSummoner'17949                wait 50017950                while queued17951                    wait 10017952                endwhile17953                dress 'UltimateSummoner'17954                wait 50017955                while queued17956                    wait 10017957                endwhile17958                dress 'UltimateSummoner'17959                wait 50017960            endif17961 17962            if EnableRecallAfterResurrection = 117963                hotkey 'Toggle Peace Only'17964                @setvar! ResThenTimeToGo 117965                wait 50017966                replay17967            else17968                wait 250017969                overhead '[ STOPPING SCRIPT! ]' 8817970                stop17971            endif17972        endwhile17973    endwhile17974endif17975 17976replay17977 17978//////////////////////17979//  END DEATH LOOP  //17980//////////////////////17981 17982 17983 17984                                                                                #############################17985                                                                               ###    SCRIPT ENDS HERE!    ###17986                                                                                #############################17987 17988 17989 17990 17991 17992    // Thank you for using my scripts!  I can be contacted via email here: dan@danstockman.com17993    // Good luck out there and say hello if you see me in Avadon (Lord Glacier) - please don't PK me lol17994 17995 17996 17997 17998 17999 18000 18001