Skip to content
Outlands Hub

Razor script

Lord Glacier's Chill DEXXER AUTO PILOT - UO OUTLANDS RAZOR SCRIPT - v3.1.2

by danstock._98439 · 17594 lines
Download

Lord Glaciers Chill DEXXER AUTO PILOT - UO OUTLANDS RAZOR SCRIPT - version 3.1.2 UO Outlands Razor script - Released February 18, 2025 - Last Updated October 9, 2026 Compiled by DanStock. (aka. Lord Glacier)

CombatHidingTracking
Lord Glaciers Chill DEXXER AUTO PILOT - UO OUTLANDS RAZOR SCRIPT - v312.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/7aba7670-e30e-489d-86ec-c95e79ad57c6 for latest2# Automation by Jaseowns3## Script: Lord Glacier's Chill DEXXER AUTO PILOT - UO OUTLANDS RAZOR SCRIPT - v3.1.24## Created by: danstock._98439#05#############################################6 7/////////8////////                                          Lord Glaciers Chill DEXXER AUTO PILOT - UO OUTLANDS RAZOR SCRIPT - version 3.1.29///////10//////                                                  UO Outlands Razor script - Released February 18, 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 1: \\                  //  SUGGESTED SKILL TEMPLATE 2: \\                  //     REQ INVENTORY ITEMS:    \\36                        //         (PURE DEXXER)          \\                //        (TRIBARD DEXXER)        \\                //       (* or suggested)        \\37                        ####################################                ####################################                ###################################38 39#                                120  Chivalry                                       120  Chivalry                                   Aspect Armour & Weapon40#                                120  Arms Lore                                      120  Peacemaking                                Book of Chivalry41#                                100  Tactics                                        120  Discordance                                Weapon Codex42#                                 80  Weapon Skill                                   120  Provocation                                Healers Codex43#                                 80  Anatomy                                        100  Tactics                                    Shield/Potion/Bard Codex44#                                 80  Healing                                        80   Weapon Skill                               Potion Satchel (w/ potions & kegs)45#                                 80  Parrying (or Alchemy or Second Weapon)         60   Focus (or Forensic Eval)                   Delectable food trays46#                                 60  Focus (or Resisting Spells)                                                                    Clean Bandages47#                                                                                                                                    Trapped pouches48#                               ASPECT: FROST/FROST                             ASPECT: LYRIC/LYRIC                                  Cleansing brews *49#                                   (or BLOOD/VOID)                                 (or FROST/VOID)                                  Aspect crystals *50#                                                                                                                                    Adventurers rope *51#                                                                                                                                    Skinning knife *52#                            CHAIN:  Melee Aspect Effect Chance                 CHAIN:  Melee Swing Speed                            Scissors [blessed] *53#                                    Melee Special Chance                               Damage to Barded                             Wooden Box w/ copper key *54#                                    Melee Swing Speed                                  Effective Barding                            Wizard Satchel *55 56                        ##################################                  ##################################                  ##################################57                         ################################                    ################################                    ################################58                          ##############################                      ##############################                      ##############################59 60 61 62 63    /////////////////////////64    //'    CHANGE LOG:    '//65    /////////////////////////66 67#         Oct 09 2026 - version 3.1.2   Added Escape Runebook check/reset outside of the initial setup sequence and added potion keg filling to top of script. Bugs: dan@danstockman.com68#         Sep 08 2026 - version 3.1.1   I know I said no more updates... but one final tweak to dial in the loot secure timing and another bug fix for some RED ALERT recall triggers69#                                       This is the FINAL VERSION.  I cannot find anything else to add, adjust or fix. Everything works (I hope)70#         Sep 03 2026 - version 3.1.0   Fixed bugs with RED ALERT triggering, DUNGEON CLEANUP and GOLD VACUUM. Plus final refinement of LOOT SECURING loop.  Script is finally done!71#                                       It took me 585 days to put this together.  I will try not to release any further updates unless massive bugs are found or new patches require it72#                                       I have tested everything as best I can for a 16.5k line script - it is consistently doing what I want now 99% of the time.73#                                       Going to focus on my Backstab script for a while next, so expect updates on that one soon.  Contact:  dan@danstockman.com74#         Sep 02 2026 - version 3.0.9   Fixed a bug with new 'TargetDisengageRange' by adding 'TargetAnalyzeRange' variable to help with target management75#                                       Also fixed a bug with 'RedWeightLimitDiffWeight' and final small tweaks to the Loot Storage loop.76#         Aug 31 2026 - version 3.0.8   Adjusted the order of a few things. Added PK checks to Storage Loop.77#         Aug 28 2026 - version 3.0.7   Tweaks to targeting and addition of 'TargetDisengageRange' variable to improve MOB management and some other minor efficiency adjustments throughout78#                                       Also made improvements to the Loot Storage loop to speed things up and fixed a bug with Potion Keg filling (if any were set to '0')79#                                       I know I have said it before, but I feel like this version is feeling pretty polished. Enjoy!80#         Aug 26 2026 - version 3.0.6   Some tweaks to the Dungeon Escape loop to improve safety when PK is tracked and is attacking81#         Aug 25 2026 - version 3.0.5   Changes to priority order in Auto Healing loop, tweaks to cure potions, bandage usage and weight checks and some cosmetic changes to overheads82#                                       Also updated the auto equip weapon checks to account for disarm delays. Pushing 16k lines now so hopefully this is final build83#         Aug 24 2026 - version 3.0.4   BIG UPDATE: Added support for builds with multiple combat skills, with checks based on skills > 50 and equipped weapon (see 'EnableAutoEquipWeapon' variable below)84#                                       Also lots of small tweaks and adjustments to overhead messages, variable descriptions, tips section and other timing or efficiency improvements85#                                       A lot has gone into the script at this point.  It is huge.  But it seems to work and is getting close to being complete86#         Aug 17 2026 - version 3.0.3   Updates to the Loot Securing loop (to add some missing/new items and adjust timing), updates to overweight checks and to Storage Tome detection87#         Jul 22 2026 - version 3.0.2   Officially my largest script to date at over 13,000 lines! Just testing edge-case issues and getting things dialed in now88#                                       This version adds health and warmode checks to Loot Securing loop (toggle PEACE mode manually to cancel loot transfer)89#                                       Also fixed bug in Chivalry Infinite Loop triggering modes and cleaned up Auto Recall/Dungeon Escape stuff to respond more quickly overall90#                                       Added eligible Dual Wield weapons to Poisoning checks and also improved comments and descriptions for Codex sections and settings91#                                       Significant improvements to barding skill targeting, performance and speed to match the rest of the script92#                                       This is hopefully the final update for a while - things seem to be working really well for me93#         Jul 13 2026 - version 3.0.1   Minor adjustments to weapon/shield check timing and dungeon escape section, fixed an incorrect variable and fixed spelling errors in comments94#         Jul 12 2026 - version 3.0.0   BIG UPDATE: Improved targeting acquisition and auto-healing trigger speeds along with other general updates to match my latest script specs95#                                       Also added support for 'Throwing' and 'Dual Wielding' weapons, stances, finishers, etc. and added auto weapon/shield finisher switching96#                                       This overhaul involved a review and updates to many sections throughout the script with the goal of improving speed and increasing safety97#                                       The improvements are enough to call this a whole new version (v3.0) and I will play test and continue tweaking as required98#99#         Jan 04 2026 - version 2.2.8:  Added poison potion option to keg filling and added skinning to dungeon escape loop100#         Dec 31 2025 - version 2.2.7:  Minor updates to some overhead messages and added a Storage Tome Container variable to the Auto Recall section101#         Nov 24 2025 - version 2.2.6:  Squashed bug in Fencing Codex stance switching - thanks for letting me know guys!102#         Nov 10 2025 - version 2.2.5:  Cosmetic finishing touches (mostly to overhead displays, etc.)103#         Nov 07 2025 - version 2.2.4:  I was wrong lol Made some updates to the Auto Stance section to allow a choice of stances (in variables section below) - it all works really good right now!104#         Oct 28 2025 - version 2.2.3:  I think it is finally complete! Let me know if you find any bugs or have any suggestions105#         Oct 27 2025 - version 2.2.2:  Final tweaks and adjustments.106#         Oct 25 2025 - version 2.2.1:  Been asked for a lot... I reversed the WAR mode functions so FARMING is now done in 'WAR MODE' and DUNGEON ESCAPE will toggle when in 'PEACE MODE'107#         Oct 24 2025 - version 2.2.0:  More tweaks to the targeting system - still chasing a hangup, but hoping I have it sorted. Pretty sure it is all working now!108#         Sep 09 2025 - version 2.1.9:  I think it is finally finished!! Lots of minor changes to targeting, skinning and other cosmetic tweaks109#         Sep 05 2025 - version 2.1.8:  Fixed spelling error in Aggressive stance switching codes110#         Sep 04 2025 - version 2.1.7:  Tweaks and adjustments throughout - still trying to squash the target hangup (might have got it this time)111#         Aug 29 2025 - version 2.1.6:  Fixed bug in gold drop (if loot was in lockbox) and hopefully fixed the targeting hangup bug112#         Aug 26 2025 - version 2.1.5:  Adjusted targeting section to avoid hangup and fixed bug in gold drop loop113#         Jul 31 2025 - version 2.1.4:  Added some more descriptions in the variable sections114#         Jul 30 2025 - version 2.1.3:  Final touches - just trying to dial in all the timings on everything.  Done... unless I find more lol115#         Jul 28 2025 - version 2.1.2:  Few more tweaks and adjustments (mostly to Gold Drop, Loot Storage and Arrow Cleanup sections)116#         Jul 25 2025 - version 2.1.1:  Adjusted arrow pickup code and other minor timing and order of operations tweaks throughout (99.99% done now, I think!)117#         Jul 24 2025 - version 2.1.0:  Tweaked the attack target timing, fixed bug in Gold Drop loop and added more bandage/heal pot checkpoints118#         Jul 03 2025 - version 2.0.9:  Bard archers will now switch to Incendiary ammo while targets are provoked (if using 'Auto Stance Switching')119#         Jul 02 2025 - version 2.0.8:  Fixed broken target checker120#         Jun 30 2025 - version 2.0.7:  Found and squashed a couple more minor bugs and added new target checker121#         Jun 26 2025 - version 2.0.6:  More minor stuff - calling it done for now! (unless I find any more bugs lol)122#         Jun 26 2025 - version 2.0.5:  More small tweaks, adjustments and improvements123#         Jun 23 2025 - version 2.0.4:  Bug fixes and minor adjustments in barding skills section124#         Jun 19 2025 - version 2.0.3:  Minor adjustments and bug fixes - getting close to "finished"125#         Jun 17 2025 - version 2.0.2:  Fixed error in AutoExplosionPots section and tweaked the order of a few things in the combat loop126#         Jun 15 2025 - version 2.0.1:  Public re-release of updated script (no more required cooldowns, improved target and healing systems, more features, etc.)127 128 129 130 131    ///////////////////132    //'    TIPS:    '//133    ///////////////////134 135#     IMPT! (IF USING AUTO RECALL):136#           FIRST RUN OF SCRIPT SHOULD BE COMPLETED IN HOUSE/INN ROOM/BANK (ie. location of your Auto Recall rune) AND TAKES ROUGHLY 20 SECONDS TO COMPLETE INITIAL (ONE TIME) SETUP!137#           Initial setup can be redone by setting 'ResetScriptPermanentVariables' variable to '1' below!138#           Or you can re-target script variables (ie. Runebook, Loot Chest, Loot Bag, Storage Tome Container, etc.) individually in the 'Options' tab above the script139#140#141#    ***' BASIC OPERATION: '***142#         This script does it all for a Dexxer! MOBs are automatically targeted and attacked and your character is kept healed and buffed (based on your settings below)143#         I play primarily using a handheld (Asus ROG Ally), so my goal was to automate everything except movement and looting (which cannot be scripted)144#         With this script, and the right variables, I can farm indefinitely (farm until auto weight recall, stashes loot, resets loadout, then chiv gates back into action. Repeat)145#         Even if you are killed, the script can identify gates and healers, resurrect automatically, dress your char, recall home, resupply and then setup your pack again.146#         I use this script myself each day and it has taken me over 500 days to put together. It is always a work in progress, but hopefully 3.1.2 is the final build for a while!147#148#         MOST FEATURES ARE TURNED OFF by default ('0' is OFF and '1' is ON unless otherwise stated) Check the USER VARIABLES section carefully before your first run!!149#150#151#    *** 'WAR MODE' vs 'PEACE MODE' : ***152#         The script operates in two core modes:153#154#         'WAR MODE'   = Normal farming/combat/MOB targeting while keeping you healed155#         'PEACE MODE' = Alternate stances/finishers while in combat OR Recall/Dungeon Escape when no targets are nearby156#157#             While IN COMBAT:158#                 Toggling to 'PEACE MODE' can switch Weapon/Shield STANCES and/or FINISHERS (if enabled)159#                 You will automatically return to 'WAR MODE' when target is eliminated or changed160#161#             While NO TARGETS are nearby:162#                 Toggling 'PEACE MODE' can trigger 'AUTO RECALL' or 'AUTO DUNGEON ESCAPE' (based on your variables below and 'DUNGEONMODE'/'WILDERNESSMODE' settings above)163#                 In 'WAR MODE' you will continue to search for and analyze potential new targets while keeping healed and storing loot (if enabled)164#165#    ***' COMBAT / HEALING: '***166#         Your WEAPON and/or SHIELD will be automatically equipped (or an overhead warning displayed) based on 'EnableAutoEquipWeapon' and 'EnableShieldCheck' settings below167#             'EnableAutoEquipWeapon' setting of '0' will notify if weapon not found in hand but requires manual equipping168#             'EnableAutoEquipWeapon' setting of '1' will auto equip weapon based on first weapon skill > 50 if hands are empty (prioritizing aspect weapons and ignoring unidentified)169#             'EnableAutoEquipWeapon' setting of '2' will work for multi combat skill builds and requires manual weapon equipping initially and when switching weapon classes (more info below)170#171#         CHIVALRY skill is highly recommended for dexxer builds! For the swing speed buffs and uninterruptible heals alone. Requires equal or higher skill in Tactics.172#             The script prioritizes healing (attempts to keep 4-5 Holy Symbols available for NOBLE SACRIFICE or HOLY LIGHT) and swing speed buff active (DIVINE FURY)173#             Extra symbols can be used for CONSECRATE WEAPON, ENEMY OF ONE, CLOSE WOUNDS and/or CLEANSE BY FIRE174#             Highly recommend use of DIVINE FURY for large swing speed increase (goal is always to be capped on Swing Speed - check in STATS or via OutlandsButler.com)175#             Chivalry Mastery Chain Links or HOLY ASPECT can increase your maximum available symbols, but I have always found 12 to be sufficient176#177#         POTIONS are automatically consumed as needed (if enabled) - MANUAL POTION USE MAY DISRUPT SCRIPT TIMING178#             You can use Potion Kegs and set your target fill amounts below. The script will then maintain that amount of potions (to reduce carry weight and increase amounts)179#             Make sure to carry empty bottles if using Potion Kegs (enough to cover the sum of your target amounts) and pack extra if Explosion Pots are enabled180#             AUTO EXPLOSION POTS require 80+ ALCHEMY and will throw Purple Potions at your target during combat (range is adjustable below)181#             POTION CODEX is highly recommended for reducing heal potion cooldowns, increasing purple potion damage, reducing bleeds, etc.182#183#         BANDAGES will always be applied automatically if found in inventory, Healing skill is greater than 0, HP is not at maximum and not bandaging184#             HEALERS CODEX also highly recommended to reduce healing times and improve damage and damage resistance185#186#         ASPECT can be whatever suits your build.  I personally suggest FROST ARMOUR & WEAPON which works really well for me (and suits Lord Glacier!)187#             The script can also trigger defensive codex stances during FROST SHELL COOLDOWN for further protection if heavily damaged188#189#    ***' WEAPON / SHIELD CODEX: '***190#         WEAPON CODEX STANCES can be auto-selected in USER VARIABLES or controlled automatically with AUTO STANCE SWITCHING (or disabled for manual use)191#         WEAPON ABILITIES can also be selected and will trigger during combat (when available) and use optional Razor COOLDOWNS for display on your UI bars192#             If using ARMS LORE skill, you will potentially need to adjust the WEAPON ABILITY COOLDOWN value in USER VARIABLES193#             For builds with multiple combat skills, 'EnableAutoEquipWeapon' setting '2' will auto-detect active weapon class and adjust CODEX STANCES, ABILITIES, FINISHERS, etc.194#195#    ***' BARDING: '***196#         BARDING SKILLS are fully supported and can be used with any instrument and any weapon class or arrangement of skills197#             Make sure [ShowBardingDurations is ENABLED in the UO client!198#             BARD CODEX use is highly recommended and bards require 5 points in 'Self Taught' to drop Musicianship skill (for Tri-Bard template above)199#             Targeted MOBs will be automatically pacified, discorded and (if multiple targets available) provoked based on skill levels and variables below200#201#    ***' AUTO RECALL / DUNGEON ESCAPE: '***202#         Optional AUTO RED RECALL or AUTO RED DUNGEON ESCAPE triggered either by TRACKING SKILL (40, 50 OR 60+ tiles) or standard TARGETING (~12 tiles)203#         Tracking is great, but even just the basic PK radar to react when reds come into target range (hotkey Target Closest Red) is great for survival!204#         Also an optional AUTO WEIGHT RECALL or AUTO WEIGHT DUNGEON ESCAPE triggered by weight limit settings (below)205#         Or you can trigger an optional MANUAL RECALL/DUNGEON ESCAPE by toggling PEACE MODE while no targets are nearby206#207#         Recall can trigger your own personal recall script or else you can use the built in script with TONS of options for unloading, resetting, etc.208#         To select new runebook and storage containers you can reset the script below (or manually retarget items using the 'Options' tab above the script)209#210#    ***' LOOT / INVENTORY: '***211#         ORGANIZER AGENT-01 is used for the optional MAIN INVENTORY pouch setup212#         ORGANIZER AGENTS 06-09 can be used as sub-containers inside your LOOT CHEST (if enabled below) when using AUTO RECALL213#214#         If 'EnablePutLootinLockBox' is on, having a WOODEN BOX + COPPER KEY in inventory will automatically secure looted items while farming215#         Do NOT keep the copper key inside the wooden box and do NOT keep the key somewhere it can be easily stolen (I keep mine in my Loot/Grab bag)216#         Aspect weapons are ignored automatically during storage and up to 5 additional item serials can be excluded in USER VARIABLES below217#         These exclusions are useful for spellbooks, extra weapons, shields or anything else you do NOT want locked away218#         Items NOT on the ignore list will be automatically moved to wooden box and locked inside for thief protection (during NO TARGET loop)219#220#    ***' DEATH / RESURRECTION: '***221#         If you die, the DEATH LOOP will automatically indicate and select moongates, then travel to the last gated town and search for a HEALER222#         Once a healer is found nearby, the script will automatically select the resurrection gump to heal you223#         A Razor Dress List named 'UltimateDexxer' can be used to automatically re-equip your [blessed] wearables after resurrection224#         The script can then Recall home, resupply, heal, reactivate Aspect and get you ready to return to farming quickly225#226#         Optional INVENTORY RESET can rebuild your backpack after DEATH, including trapped pouch stacks, loot bag and other QOL and anti-theft organization227#         Must use Built-in Auto Recall script if using INVENTORY RESET or any of the other features mentioned228#229#230#    ***' OTHER TIPS: '***231#         OVERHEAD MESSAGES are plentiful and enabled by default but can be reduced/disabled in USER VARIABLES (minimal target indicators always remain)232#         Razor TEXT FILTERS are highly recommended to hide redundant system messages and other Razor spam233#         Optional Razor COOLDOWNS are listed below - they are NOT required for script function and are mainly useful for UI display234#235#         There are a LOT of variables below and most are turned OFF by default.  They all have brief descriptions and/or should be self-explanatory (hopefully)236#         Setting up the script initially can be a bit of a pain - but once it is done it should run pretty smoothly and will hopefully help your grind.237#         I highly recommend trying on a handheld (like my ROG Ally) and, with this script, the game is great fun to play literally anywhere!238#239#         If you come across any repeatable bugs, have suggestions for improvements or additions or have any problems I can be reached at: dan@danstockman.com240#         I am not great at replying quickly to anything (or at all) but I will do my best lol241#242#243#     My own self-tested PURE DEXXER and TRIBARD templates are listed at the top (along with suggested inventory), but the script is designed to support many different builds!244#     Good luck out there and say hey if you see me out in Avadon.  I might not be able to reply (only on screen keyboard on the Ally) but I enjoy the recognition245#246#                                                                                                                               - Dan (aka. Lord Glacier)247 248 249 250 251 252                           #############################################################################################################################253                           #                                                                                                                           #254                           #                                           ////////////////////////////////                                                #255                           #                                           //'    RESET SCRIPT HERE:    '//                                                #256                           #                                           ////////////////////////////////                                                #257                           #                                                                                                                           #258                           #                      SET THIS VALUE TO '1' AND RUN SCRIPT TO UNSET ALL PERMANENT SCRIPT VARIABLES:                        #259                           #                                                                                                                           #260                                                                   @setvar! ResetScriptPermanentVariables 0261                           #                                                                                                                           #262                           #                    THEN RETURN 'ResetScriptPermanentVariables' TO '0' TO RESTART INITIAL SETUP...                         #263                           #                                                                                                                           #264                           #                 Or you can re-target script variables individually in the 'Options' tab above the script!                 #265                           #          These variables are AUTO RECALL related (Runebook, Loot storage, etc.) so can be ignored if not enabled          #266                           #                                                                                                                           #267                           #############################################################################################################################268 269 270 271 272 273    #####################################################274   ###'    OPTIONAL COOLDOWNS TO ADD IN UO CLIENT:    '###275   ###'               (case sensitive!)               '###276    #####################################################277 278        # Bandaging  (set as bandage timer)279        # Healing Potion280        # Weapon Ability281 282 283        // CHIVALRY ONLY:284            # Holy Light285            # Noble Sacrifice286            # Cleanse By Fire287            # Close Wounds288            # Divine Fury289            # Enemy Of One290            # Consecrate Weapon291        // SWORDS ONLY:292            # Spinslash Ability293            # Rend Ability294            # Chop Ability295        // MACING ONLY:296            # Pummel Ability297            # Stun Ability298            # Smash Ability299        // FENCING ONLY:300            # Gambit Ability301            # Swiftstrikes Ability302            # Bane Ability303        // ARCHERY ONLY:304            # Skirmish Ability305            # Full Draw Ability306            # Repeater Ability307        // WRESTLING ONLY:308            # Brawl Ability309            # Haymaker Ability310            # Takedown Ability311        // THROWING ONLY:312            # Clash Ability313            # Blitz Ability314            # Hail Mary Ability315        // DUAL WIELDING ONLY:316            # Bladewhirl Ability317            # Knightly Ability318            # Knave Ability319        // BARDING ONLY:320            # Peacemaking321            # Provocation322            # Discordance323            # Pacified324            # Provoked325            # Discorded326            # Peacemaking Buff327            # Provocation Buff328            # Discordance Buff329        // FROST ASPECT ONLY:330            # Frost Shell Cooldown331            # Frost Shell Active332        // ALCHEMY ONLY:333            # Purple Potion334            # Panacea Potion335 336 337 338 339                            ###########################################################################################################################340                            #  MOST FEATURES ARE TURNED 'OFF' BY DEFAULT! PLEASE CHECK THE 'VARIABLES' SECTION BELOW CAREFULLY DURING INITIAL SETUP!  #341                            ###########################################################################################################################342 343 344 345 346     ###############################347    ###'     USER VARIABLES:     '###348     ###############################349 350///////////////////////351//'   OFFENSIVE :   '//352///////////////////////353 354@setvar! EnableAutoEquipWeapon 1355    # '0' = DISABLED      - Weapons are equipped manually (script will only warn if you are unarmed/disarmed)356    # '1' = SKILL CHECK   - Auto-equips from your single combat skill > 50 (prioritizes Aspect weapons and ignores unidentified items)357    # '2' = WEAPON CHECK  - Best for builds with multiple combat skills > 50 - script adapts to the weapon class currently equipped358    #                       Manually changing weapon class will also change the matching stances, finishers and abilities below359    #                       If disarmed, script first tries to re-equip your most recently used weapon, then falls back to skill/inventory priority360    #                       NOTE: Mixed ranged + melee builds use the ranged 'TargetAttackRange' setting below361 362@setvar! EnableAlwaysTargetClosest 1363    # '0' = Keep the current target locked until it dies, leaves range (set below) or the script is manually restarted364    # '1' = Always switch to the closest eligible MOB365 366@setvar! TargetAnalyzeRange 12367    # Maximum range to search for and analyze potential new targets (recommend 12 tiles)368    # Must be greater than 'TargetDisengageRange' below369 370 371# Attack ranges if using 'RANGED WEAPONS' (Archery or Throwing):372if skill 'Archery' > 50 or skill 'Throwing' > 50373    @setvar! TargetAttackRange 8374        # Bows can fire at targets up to 10 tiles away375        # Crossbows, Great Bow and Throwing Weapons can fire at targets up to 8 tiles away376 377    @setvar! TargetDisengageRange 10378        # You can set your range to disengage the target MOB ('1-10' tiles) for ranged weapons379        # Once a target is within your 'TargetAttackRange' it will be attacked until you leave 'TargetDisengageRange'380        # 'TargetDisengageRange' must be equal to or greater than your 'TargetAttackRange' and less than 'TargetAnalyzeRange'381        # If you are inside 'TargetDisengageRange' but outside 'TargetAttackRange' an overhead message will warn you to get closer382        # Target will switch if 'EnableAlwaysTargetClosest' is enabled above and closer MOB is detected but attack loop continues383else384 385 386# Attack ranges if using 'MELEE WEAPONS' (Swords, Macing, Fencing, Wrestling or Dual Wielding):387    @setvar! TargetAttackRange 1388        # Recommended to leave this value at '1' for melee weapons389 390    @setvar! TargetDisengageRange 5391        # You can set your range to disengage the target MOB ('1-10' tiles) for melee weapons392        # Once a target is within your 'TargetAttackRange' it will be attacked until you leave 'TargetDisengageRange'393        # 'TargetDisengageRange' must be equal to or greater than your 'TargetAttackRange' and less than 'TargetAnalyzeRange'394        # If you are inside 'TargetDisengageRange' but outside 'TargetAttackRange' an overhead message will warn you to get closer395        # Target will switch if 'EnableAlwaysTargetClosest' is enabled above and closer MOB is detected but attack loop continues396endif397 398@setvar! AfterKillTimer 0399    # AfterKillTimer sets the delay after eliminating your target (to give time to loot, skin, etc.) while still keeping you safe400    # Increase slightly (suggested range of '250-1500') if carving corpses or set to '0' for instant re-targeting401 402@setvar! EnableEatingFood 1403    # Will automatically eat delectable food trays when not buffed (very important for swing speed!)404 405@setvar! EnableAutoPoisonWeaponinHand 0406    # Requires 80+ Poisoning/Taste ID skill and poison potions in inventory407    # Will automatically check and apply poison to weapon during combat408 409 410///////////////////////411//'   DEFENSIVE :   '//412///////////////////////413 414@setvar! EnableAutoParalyzePouch 1415    # Will automatically pop trapped pouches if paralyzed (will also trigger auto recall/dungeon escape, if enabled below)416 417@setvar! EnableShieldCheck 0418    # Checks hand for shield and will equip if missing (ignores unidentified magic items)419 420@setvar! EnableAutoTaunting 0421    # Requires 80+ Parrying skill and will automatically taunt your target (increases your AR against target)422 423    @setvar! ActivateAutoHealHPdiff 50424        # Auto Heal SAFETY loop begins when your missing HP reaches this amount425        # While active, the script prioritizes healing/survival and forces defensive weapon/shield stances where applicable426        # Potions, Chivalry heals, Cleansing Brews and other enabled defensive options are all prioritized here427 428    @setvar! DeactivateAutoHealHPdiff 10429        # Prioritized healing loop will continue until this hit point differential is met or exceeded430        # Keep this setting LESS than 'ActivateAutoHealHPdiff' above431        # A setting of '0' will restore you to full health before returning to full target or attack mode432 433@setvar! EnableFrostAspect 0434@setvar! FrostAspectTier 0435    # Set your Frost Aspect level (if using Frost Aspect)436    # This will automatically set your optional 'Frost Shell Cooldown' length437    # Frost Shell will also trigger defensive stance switches (if using codex auto switching below)438    # Add cooldowns in UO options: 'Frost Shell Cooldown' and 'Frost Shell Active' (case sensitive)439 440 441/////////////////////442//'   POTIONS :   '//443/////////////////////444 445@setvar! EnableHealPotion 1446    @setvar! HealPotionHPdiff 30447    # Adjust HP diff set point for Heal potion consumption448    # Heal potions will be prioritized over all other healing options (if not on cooldown)449 450    @setvar! HealingPotionCooldown 10000451        # This value only affects your OPTIONAL COOLDOWN BAR (script uses other checks to verify heal pots are available)452        # You can reduce this value if using Potion Codex453        # Add cooldown in UO options: 'Healing Potion' (case sensitive)454 455@setvar! EnableCurePotion 1456    # Cure pots will be used as needed (if enabled and found in inventory)457 458    @setvar! EnablePanaceaPotion 0459        # Requires 80+ Alchemy skill, Cure Potions and Potion Codex in inventory w/ Panacea buff unlocked460        # Will automatically consume Cure Potion if Bleeding or Diseased461 462    @setvar! EnableCleansingBrews 0463        # Requires Cleansing Brews in inventory464        # Will automatically consume Cleansing Brew if Bleeding or Diseased (and not on cooldown)465 466@setvar! EnableRefreshPotion 0467    @setvar! RefreshPotionSPdiff 10468    # Adjust SP diff set point for Refresh potion consumption469 470@setvar! EnableStrengthPotion 0471@setvar! EnableAgilityPotion 0472@setvar! EnableMagicResistPotion 0473    # Strength, Agility and Resist potions will auto-buff when effects wear off (if enabled) *474//    * 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!475//      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 mins476//      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)477 478@setvar! EnableAutoExplosionPots 0479    @setvar! PurplePotionTargetRange 1480    @setvar! PurplePotionCooldown 15000481    # Requires 80+ Alchemy skill to make potions sticky (increase range if using Archery skill - or if preferred)482    # WARNING: throwing potions in a crowded dungeon may cause you to flag criminal in rare cases! USE AT OWN RISK483 484    @setvar! EnableUsePotionKegs 0485    # A good way to carry lots of potions without weighing you down486    # Requires potion kegs and empty bottles (pack extra if using explosion potions)487    # Will auto fill empty bottles from potion kegs if counts drop below set amounts:488        @setvar! HealingPotionAmount 5489        @setvar! CurePotionAmount 5490        @setvar! RefreshPotionAmount 5491        @setvar! StrengthPotionAmount 1492        @setvar! AgilityPotionAmount 1493        @setvar! ResistPotionAmount 1494        @setvar! ExplosionPotionAmount 1495        @setvar! PoisonPotionAmount 0496 497 498////////////////////////499//'    CHIVALRY :    '//500////////////////////////501 502// OFFENSIVE BUFFS:503    @setvar! EnableDivineFury 1504    @setvar! EnableConsecrateWeapon 0505    @setvar! EnableEnemyOfOne 0506        # Chivalry offensive buffs, if enabled, will trigger and auto-renew during combat507        # Buffs will not trigger in combat loop if you will be left with lower than 4 symbols (to keep Holy Light/Noble Sacrifice available)508        # When prioritized healing loop is active, offensive buff renewal is paused to give priority to defensive buffs509        # Priority is given to Divine Fury over the others to buff swing speed!510        # Divine Fury requires 85+ Chivalry skill, Consecrate Weapon requires 65+ Chivalry skill and Enemy of One requires 75+ Chivalry skill511 512// DEFENSIVE BUFFS:513    @setvar! EnableHolyLight 1514        @setvar! HolyLightHPdiff 45515        # Set your trigger point for Holy Light heal (if enabled)516        # Requires 95+ Chivalry skill517 518    @setvar! EnableNobleSacrifice 1519        @setvar! NobleSacrificeHPdiff 85520        # Set your trigger point for Noble Sacrifice heal (if enabled)521        # Requires 80+ Chivalry skill522 523    @setvar! EnableCloseWounds 0524    @setvar! EnableCleanseByFire 0525        # Chivalry defensive buffs will also trigger during combat as needed (if enabled)526        # Close Wounds requires 70+ Chivalry skill and Cleanse by Fire requires 60+ Chivalry skill527 528 529////////////////////////////530//'   BARDING SKILLS :   '//531////////////////////////////532 533@setvar! TargetBardingRange 10534    # Separate target range check for barding skills535 536@setvar! EnablePeacemaking 0537@setvar! EnableProvocation 0538@setvar! EnableDiscordance 0539    # Will automatically PEACE, DISCORD and (if targets available) PROVOKE enemies during combat540    # Requires barding skill levels > 50 and a musical instrument in inventory541 542    @setvar! PeacemakingReapply 30000543    @setvar! ProvocationReapply 45000544    @setvar! DiscordanceReapply 60000545        # Script will reapply if bard break is detected (by default) and/or when reapply timer above is met546 547    @setvar! EnablePeacemakingBuff 0548    @setvar! EnableProvocationBuff 0549    @setvar! EnableDiscordanceBuff 0550        # Will automatically renew Barding Buffs (if enabled)551 552 553///////////////////////////554//'   CODEX SETTINGS:   '//555///////////////////////////556 557    #############################558    #'     WEAPON STANCES:     '#559    #############################560 561    @setvar! EnableWeaponCodexStances 0562        # Requires 80+ in Swords, Macing, Fencing, Archery, Wrestling, Dual Wield or Throwing skill and the corresponding WEAPON CODEX in inventory563        # Weapon stances, finishers and abilities can be set below!564        # Automatic weapon stance switching, if enabled, will default to certain stances depending on WAR, PEACE or SAFETY (Frost Shell, Bleed, Disease, Poison or low HP) modes (choose below)565 566        @setvar! EnableWeaponCodexHotbar 0567            # This will keep your Weapon Codex Hotbar open during combat568 569        @setvar! SetWeaponCodexStance 0570            # '0' for 'Disabled' - Manual selection of Stance in game571            # '1' for 'Swords/Macing/Fencing/Dual Wield = Aggressive' or 'Archery = Arcane' or 'Wrestling = Dragon' or 'Throwing = Torrent'572            # '2' for 'Swords/Macing/Fencing/Dual Wield = Defensive' or 'Archery = Fowling' or 'Wrestling = Crab' or 'Throwing = Suppress'573            # '3' for 'Swords/Macing/Fencing/Dual Wield = Cleave' or 'Archery = Incendiary' or 'Wrestling = Spider' or 'Throwing = Reaper'574            # '4' for 'Swords = Warrior' or 'Macing = Wildswing' or 'Fencing = Blackguard' or 'Archery = Longshot' or 'Wrestling = Monkey' or 'Throwing = Rake' or 'Dual Wield = Square Off'575            # '5' for 'Swords = Flaying' or 'Macing = Sunder' or 'Fencing = Fang' or 'Archery = Maiming' or 'Wrestling = Crane' or 'Throwing = Kite' or 'Dual Wield = Shank'576 577            # '6' for 'Auto Weapon Stance Switching' - set below!578 579 580        // Choose your AUTO WEAPON STANCES (if using setting '6' above):581            @setvar! AutoWeaponStanceSetting 0582                # '0' for 'Disabled' - Turn this off if using static stance setting ('1-5' above) or if manually selecting stances583                #584                # AUTO SETTING '1'      WAR:           PEACE:          SAFETY:585                #     Swords      =  'Flaying'       'Aggressive'    'Defensive'586                #     Macing      =  'Wildswing'     'Cleave'        'Defensive'587                #     Fencing     =  'Blackguard'    'Cleave'        'Defensive'588                #     Archery     =  'Arcane'        'Incendiary'    'Fowling'589                #     Wrestling   =  'Dragon'        'Spider'        'Crab'590                #     Throwing    =  'Torrent'       'Reaper'        'Suppress'591                #     Dual Wield  =  'Aggressive'    'Cleave'        'Defensive'592                #593                # AUTO SETTING '2'      WAR:           PEACE:          SAFETY:594                #     Swords      =  'Warrior'       'Cleave'        'Defensive'595                #     Macing      =  'Sunder'        'Aggressive'    'Defensive'596                #     Fencing     =  'Fang'          'Aggressive'    'Defensive'597                #     Archery     =  'Longshot'      'Maiming'       'Fowling'598                #     Wrestling   =  'Crane'         'Monkey'        'Crab'599                #     Throwing    =  'Kite'          'Rake'          'Suppress'600                #     Dual Wield  =  'Square Off'    'Aggressive'    'Defensive'601                #602                # AUTO SETTING '3'      WAR:           PEACE:          SAFETY:603                #     Swords      =  'Aggressive'    'Flaying'       'Defensive'604                #     Macing      =  'Aggressive'    'Wildswing'     'Defensive'605                #     Fencing     =  'Aggressive'    'Blackguard'    'Defensive'606                #     Archery     =  'Maiming'       'Arcane'        'Fowling'607                #     Wrestling   =  'Monkey'        'Dragon'        'Crab'608                #     Throwing    =  'Rake'          'Torrent'       'Suppress'609                #     Dual Wield  =  'Square Off'    'Shank'         'Defensive'610                #611                #   SAFETY = Frost Shell, Bleed, Disease, Poison or Low HP (HPdiff > ActivateAutoHealHPdiff)612 613                @setvar! SwitchWeaponStanceCooldown 1000614                    # Set the cooldown between automatic weapon stance changes (set to '0' for no delay)615 616 617    #########################618    #'  WEAPON ABILITIES:  '#619    #########################620 621    @setvar! EnableWeaponCodexAbilities 0622        # Requires chosen WEAPON ABILITY unlocked in WEAPON CODEX623        # Selected Weapon Ability will be triggered whenever available during combat!624 625        @setvar! EnableWeaponAbilityHotbar 0626            # This will keep your Weapon Ability Hotbar open during combat627 628        //   Enable only one Weapon Ability at a time (per codex) unless using SWORDS *629        //     * Swords can use SPINSLASH and REND simultaneously (set both to '1')630        //       Script checks that target is bleeding before using REND and, if not, will use SPINSLASH631 632        # SWORDS WEAPON ABILITIES:633            @setvar! UseSpinslashAbility 0634            @setvar! UseRendAbility 0635            @setvar! UseChopAbility 0636 637        # MACING WEAPON ABILITIES:638            @setvar! UsePummelAbility 0639            @setvar! UseStunAbility 0640            @setvar! UseSmashAbility 0641 642        # FENCING WEAPON ABILITIES:643            @setvar! UseGambitAbility 0644            @setvar! UseSwiftstrikesAbility 0645            @setvar! UseBaneAbility 0646 647        # ARCHERY WEAPON ABILITIES:648            @setvar! UseSkirmishAbility 0649            @setvar! UseFullDrawAbility 0650            @setvar! UseRepeaterAbility 0651 652        # WRESTLING WEAPON ABILITIES:653            @setvar! UseBrawlAbility 0654            @setvar! UseHaymakerAbility 0655            @setvar! UseTakedownAbility 0656 657        # THROWING WEAPON ABILITIES:658            @setvar! UseClashAbility 0659            @setvar! UseBlitzAbility 0660            @setvar! UseHailMaryAbility 0661 662        # DUAL WIELDING WEAPON ABILITIES:663            @setvar! UseBladewhirlAbility 0664            @setvar! UseKnightlyAbility 0665            @setvar! UseKnaveAbility 0666 667 668            # If using ARMS LORE skill, adjust your Weapon Ability Cooldown here:669            if skill 'Arms Lore' >= 50670                @setvar! WeaponAbilityCooldown 30000671            endif672 673 674    #########################675    #'  WEAPON FINISHERS:  '#676    #########################677 678    @setvar! EnableWeaponCodexFinishers 0679        # Requires chosen WEAPON FINISHER unlocked in WEAPON CODEX680        # Selected Weapon Finisher will be auto selected if found to be incorrectly set681        # Automatic weapon finisher switching (setting '3-4' below) will switch finishers based on WAR or PEACE modes682 683        @setvar! SetWeaponCodexFinisher 0684            # '0' for 'Disabled' - Manual selection of Weapon Finisher in game685            # '1' for 'Swords = Bleed' or 'Macing = Pulverize' or 'Fencing = Assassinate' or 'Archery = Ricochet' or 'Wrestling = Chi Thrust' or 'Throwing = Hunter' or 'Dual Wield = En Garde' - 1ST FINISHER686            # '2' for 'Swords = Execute' or 'Macing = Shatter' or 'Fencing = Flurry' or 'Archery = Pincushion' or 'Wrestling = Zen Strike' or 'Throwing = Hobble' or 'Dual Wield = Coup de Grace' - 2ND FINISHER687            # '3' for 'Auto Weapon Finisher Switching' - WAR = '1ST FINISHER' PEACE = '2ND FINISHER'688            # '4' for 'Auto Weapon Finisher Switching' - WAR = '2ND FINISHER' PEACE = '1ST FINISHER'689 690 691    ###########################692    #'    SHIELD STANCES:    '#693    ###########################694 695    @setvar! EnableShieldCodexStances 0696        # Requires 80+ Parrying skill and SHIELD CODEX in inventory697        # Shield stances and finishers can be set below!698        # Automatic shield stance switching, if enabled, will default to certain stances depending on WAR, PEACE or SAFETY (Frost Shell, Bleed, Disease, Poison or low HP) modes (choose below)699 700        @setvar! EnableShieldCodexHotbar 0701            # This will keep your Shield Codex Hotbar open at all times702 703        @setvar! SetShieldCodexStance 0704            # '0' for 'Disabled' - Manual selection of Stance in game705            # '1' for 'Shield Bash'706            # '2' for 'Warding'707            # '3' for 'Testudo'708            # '4' for 'Mirror'709            # '5' for 'Bulwark'710 711            # '6' for 'Auto Shield Stance Switching' - set below!712 713 714        // Choose your AUTO SHIELD STANCES (if using setting '6' above):715            @setvar! AutoShieldStanceSetting 0716                # '0' for 'Disabled' - Turn this off if using static stance setting ('1-5' above) or manual selection of stance717                #718                # '1' for WAR    = 'Testudo'719                #         PEACE  = 'Bulwark'720                #         SAFETY = 'Warding'721                #722                # '2' for WAR    = 'Shield Bash'723                #         PEACE  = 'Bulwark'724                #         SAFETY = 'Warding'725                #726                # '3' for WAR    = 'Bulwark'727                #         PEACE  = 'Mirror'728                #         SAFETY = 'Warding'729                #730                #   SAFETY = Frost Shell, Bleed, Disease, Poison or Low HP (HPdiff > ActivateAutoHealHPdiff)731 732                @setvar! SwitchShieldCodexCooldown 1000733                    # Set the cooldown between automatic shield stance changes (set to '0' for no delay)734 735 736    #########################737    #'  SHIELD FINISHERS:  '#738    #########################739 740    @setvar! EnableShieldCodexFinishers 0741        # Requires chosen SHIELD FINISHER unlocked in SHIELD CODEX742        # Selected Shield Finisher will be auto selected if found to be incorrectly set743        # Automatic shield finisher switching (setting '3-4' below) will switch finishers based on WAR or PEACE modes744 745        @setvar! SetShieldCodexFinisher 0746            # '0' for 'Disabled' - Manual selection of Shield Finisher in game747            # '1' for 'Last Stand' - 1ST FINISHER748            # '2' for 'Barrier' - 2ND FINISHER749            # '3' for 'Auto Shield Finisher Switching' - WAR = '1ST FINISHER' PEACE = '2ND FINISHER'750            # '4' for 'Auto Shield Finisher Switching' - WAR = '2ND FINISHER' PEACE = '1ST FINISHER'751 752 753//////////////////////////754//'  UTILITY / LOOT :  '//755//////////////////////////756 757@setvar! EnableOverheadMessages 1758    # '0' = MINIMAL   - Most overhead messages OFF (basic target indicators remain)759    # '1' = FULL      - All available overhead messages ON760    # '2' = IMPORTANT - Targeting + important warnings only (my preferred mode!)761 762@setvar! EnableAutoCarving 0763    # Will automatically carve nearby corpses when found (requires SKINNING KNIFE in inventory)764 765@setvar! EnableAutoSatchels 0766    # Will automatically move potions and/or reagents to satchels (requires POTION and/or WIZARD SATCHELS)767 768@setvar! EnableGoldVacuum 0769    # Will automatically pickup discarded GOLD COINS nearby (within 2 tiles)770    # WARNING: This can cause you to grab large stacks of gold (and weigh you down) if you are not careful!771 772@setvar! EnableDungeonCleanup 0773    # Will automatically pickup discarded resources (regs, ingots, boards, etc.) nearby (within 2 tiles)774 775@setvar! EnableArrowCleanup 0776    # Will automatically pickup arrows or bolts from the ground (if Archery skill > 50)777 778@setvar! EnableArcheryWarningMessage 0779    @setvar! ArcheryLowAmmoWarningAmount 10780    # Overhead warning (independent of other Overhead Messages) for low archery ammunition (if Archery skill > 50)781 782@setvar! EnableDropGoldWhenOverweight 0783    @setvar! DropGoldAmount 250784    # Will drop set amount of gold repeatedly when overweight until no longer impeded785 786@setvar! EnablePutLootinLockBox 0787    # Will move all loot into wooden box and then immediately lock it (requires WOODEN BOX and COPPER KEY)788    # Key must be kept outside the container (but not in your main pack where it can be stolen)789    # All loot will be automatically moved and secured while FARMING790    # This is a MUST for dungeon farming IMO - if you are not using this, you really should!791 792    @setvar! StoreLootTimer 4500793    # StoreLootTimer is the delay to trigger loot storage after target is eliminated (while NO TARGETS NEARBY)794    # Setting it too low may interfere with loot collection795    # But too high can reduce effectiveness (especially in busy dungeons)796    # Recommend a setting between '2500 - 5000' for ideal balance797 798    # Use '>info' to ID anything you do NOT want locked up (up to 5 items) and add the serials here:799        @setvar! ItemToIgnore1 0x00000000800        @setvar! ItemToIgnore2 0x00000000801        @setvar! ItemToIgnore3 0x00000000802        @setvar! ItemToIgnore4 0x00000000803        @setvar! ItemToIgnore5 0x00000000804        # 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)805        # You should add your [blessed] spellbook (if you have one), extra shields, spare weapons or any other "loot" items that you do not want secured away during combat806        # Your main weapon and shield (if 'EnableAutoEquipWeapon' and/or 'EnableShieldCheck' are enabled above) and your instrument (for bards) will be ignored automatically807 808@setvar! EnableLootBag 0809    #  Will open your selected LOOTBAG when unloading at HOME/INN/BANK (if using BUILT IN AUTO RECALL)810    #  This should be the bag that is set as your 'Grab Bag' in Gridloot, etc.811    #  You will be prompted to select a new loot bag whenever one is not found in your inventory812    #  This can be retargeted in the 'Options' tab above the script (or by a full script reset)813 814@setvar! EnableWeightWarningMessage 1815    @setvar! GreenWarningDiffWeight 50816    @setvar! YellowWarningDiffWeight 25817    @setvar! RedWeightLimitDiffWeight 5818        # Will display overhead warnings that change colour as they approach your carry weight limit (Green, Yellow and Red)819        # Red weight limit will trigger AUTO RECALL or AUTO DUNGEON GATE if enabled below (otherwise just an overhead warning)820 821 822//////////////////////////////////823//'   AUTO RECALL / ESCAPE :   '//824//////////////////////////////////825 826    ##########################827    #'     PK TRIGGERS:     '#828    ##########################829 830    //  RED RECALL/ESCAPE (w/ TRACKING SKILL):831        if skill 'Tracking' >= 50832            @setvar! EnableTrackingAutoRecall 0833                # Tracking Auto Recall must be enabled for Auto Recall/Dungeon Escape to function (w/ Tracking Skill)834                # Make sure 'Ignore Houses/Ships' is checked in the Tracking skill menu!835 836            @setvar! PKTrackingRange 50837                # Set your range to trigger Auto Recall/Dungeon Escape838                # Range can be '40', '50' or '60' tiles (or '0' will trigger Auto Recall/Dungeon Escape regardless of range)839 840                @setvar! EnableRedAlertOverhead 1841                    # If your build has tracking skill, I highly recommend setting up a Razor overhead message instead of using the script one:842                        // This will display PK name/distance overhead when tracked!843                        // Add overhead message w/ a trigger of "Now tracking" and message "[ RED ALERT: {3} ]"  (hue 335)844                        // Then a second with a trigger of "Distance to destination" and message "[ {4} TILES AWAY! ]"  (hue 253)845                        // Once complete you should disable 'EnableRedAlertOverhead' above846 847            if EnableTrackingAutoRecall = 1848                if WILDERNESSMODE = 1849                    # Will trigger 'Auto Recall' if PK comes into 'PKTrackingRange' range in WILDERNESS MODE850                    @setvar! EnableAutoRedRecall 0851 852                elseif DUNGEONMODE = 1853                    # Will trigger 'Auto Dungeon Gate' if PK comes into 'PKTrackingRange' range in DUNGEON MODE854                    @setvar! EnableAutoRedDungeonGate 0855                endif856            endif857 858    //  RED RECALL/ESCAPE (w/ NO TRACKING SKILL):859        elseif skill 'Tracking' < 50860            @setvar! EnablePKradar 0861                # PK radar must be enabled for Auto Red Recall/Dungeon Escape to function (w/o Tracking Skill)862 863                @setvar! EnableRedAlertOverhead 1864                    # Optional overhead message alert when PK is targeted (independent of other overhead settings)865 866            if EnablePKradar = 1867                if WILDERNESSMODE = 1868                    # Will trigger 'Auto Recall' if PK comes into target range (~12 tiles) in WILDERNESS MODE869                    @setvar! EnableAutoRedRecall 0870 871                elseif DUNGEONMODE = 1872                    # Will trigger 'Auto Dungeon Escape' if PK comes into target range (~12 tiles) in DUNGEON MODE873                    # PK Dungeon Escape can be cancelled by returning to WAR MODE and script will resume874                    @setvar! EnableAutoRedDungeonGate 0875                endif876            endif877        endif878 879 880    ############################881    #'    WEIGHT TRIGGERS:    '#882    ############################883 884        if WILDERNESSMODE = 1885            @setvar! EnableAutoWeightRecall 0886            # Requires that 'EnableWeightWarningMessage' is turned on and configured above887            # Will trigger 'Auto Recall' when Weight Limit ('RedWeightLimitDiffWeight') is reached in WILDERNESS MODE888 889        elseif DUNGEONMODE = 1890            @setvar! EnableAutoWeightDungeonGate 0891            # Requires that 'EnableWeightWarningMessage' is turned on and configured above892            # Will trigger 'Auto Dungeon Escape' if Weight Limit ('RedWeightLimitDiffWeight') is reached in DUNGEON MODE893        endif894 895 896    ############################897    #'    MANUAL TRIGGERS:    '#898    ############################899 900        if WILDERNESSMODE = 1901            @setvar! EnableManualRecall 0902            # Turning this on will allow you to manually initiate 'Auto Recall' by toggling PEACE MODE while not in combat (within NO TARGET loop)903            # Once initiated, there will be a short countdown prior to recalling. You can cancel by toggling WAR MODE before countdown finishes904            # With this off, the script will only initiate 'Auto Recall' for WEIGHT or for PK triggers (if enabled above)905 906        elseif DUNGEONMODE = 1907            @setvar! EnableManualDungeonEscape 0908            # Turning this on will allow you to manually trigger 'Auto Dungeon Escape' loop by toggling PEACE MODE while not in combat (within NO TARGET loop)909            # Once initiated, the Auto Dungeon Escape loop will keep you alive and automatically select nearby moongates (cancel by toggling WAR MODE)910            # With this off, the script will only initiate 'Auto Dungeon Escape' for WEIGHT or for PK triggers (if enabled above)911        endif912 913 914        ###########################915        #'    DUNGEON ESCAPE:    '#916        ###########################917 918            if DUNGEONMODE = 1919                if EnableManualDungeonEscape = 1 or EnableAutoWeightDungeonGate = 1 or EnableAutoRedDungeonGate = 1920                    @setvar! DungeonEscapeTimeLimit 60000921                    # Time limit for DUNGEON ESCAPE LOOP922                    # Escape Loop can be triggered manually (toggle PEACE MODE while not in combat) and/or via Tracked PK and/or by exceeding Weight Limit (choose above)923                    # If gate has not been found and used within this time, script will attempt to return to attack mode (default is 1 minute)924                    # Dungeon Escape can also be cancelled by returning to WAR MODE and script will resume (if not at weight limit)925 926                    @setvar! EnableRecallAfterDungeonGate 0927                    # This will initiate 'Auto Recall' after successfully gating out of a dungeon using any of the 'Auto Dungeon Escape' triggers above928                endif929            endif930 931 932    ##############################933    #'  RESURRECTION TRIGGERS:  '#934    ##############################935 936        @setvar! EnableRecallAfterResurrection 0937            # Must have [blessed] runebook charged w/ scrolls to recall after resurrection!938            # This will trigger your Auto Recall after being resurrected939 940            @setvar! EnableDressAfterResurrection 0941                # Must have a Razor 'Dress List' named 'UltimateDexxer' for all your [blessed] wearables942 943            // LOADOUT RESET (after DEATH):944                # This option will re-dress your character and reorganize your backpack after death (see instructions below)945                # Your pack will be set up with anti-theft measures and all aspects will be reactivated, etc.946 947                @setvar! EnableResetInventoryAfterDeath 0948                @setvar! EnableSetMainPouchOrganizer01 0949                    //  Requires an equal amount of TRAPPED POUCHES (in shelf loadout) and SCISSORS [blessed] (in backpack)950                    //  Loadout also requires 1 UNTRAPPED POUCH (for main inventory - optionally set as Organizer Agent-01 above) and 1 BAG (for loot, etc.)951                    //  Script will put scissors in each trapped pouch (to keep them from being grabbed during future shelf loading)952                    //  Script then STACKS any trapped pouches on top of your main inventory pouch953                    //  Loot bag will be moved into main inventory pouch and automatically set as your Grab Bag for Gridloot, etc.954                    //  Script will then hide the stack underneath an ATLAS and put a DECOY TRAPPED POUCH out in the open955                    //  ASPECT WEAPON and ARMOR will be re-activated automatically and HP restored to MAX956                    //  Loadout reset finishes by opening backpack, main pouch, loot bag and any satchels957 958 959        #######################################################960        ####'  YOU CAN USE YOUR OWN RAZOR RECALL SCRIPT:  '####961        #######################################################962 963        # Enable use of your own Razor script for Auto Recall (otherwise script will prompt for a Runebook and use built-in auto recall):964            @setvar! EnableDIYRecallScript 0965                createlist DIYRecallScriptList966 967            // Type the name of your own Home Recall Razor script here:968                pushlist DIYRecallScriptList "YOUR RECALL SCRIPT NAME"969                    # Must use built-in Home Recall script if using Infinite Loop setting!970 971 972            ############################################################973            ####'  OR USE THE BUILT-IN AUTO RECALL/ESCAPE SCRIPT:  '####974            ############################################################975 976            // AUTO RECALL DESTINATION (choose only one):977                @setvar! BankRecall 0978                @setvar! OwnerInnRecall 0979                @setvar! CoOwnerInnRecall 0980                @setvar! InsideHouseRecall 0981                @setvar! OutsideHouseRecall 0982 983 984                @setvar! EnableEquipWeaponAfterHomeRecall 1985                    # Will equip your weapon after successful auto recall986 987                if OutsideHouseRecall = 1988                    @setvar! EnableCloseMyDoor 0989                    @setvar! MyDoor 0x00000000990                    # Use ">info" to ID your own house door (to quickly close it behind you)991                endif992 993                @setvar! EnableHideAtHomeorInn 0994                    # Will use hiding skill once inside home or inn room995 996 997            // LOADOUT RESET (after RECALL):998                #  Safe, Repair Bench, Resource Stockpile, Storage Shelf, Magic Recycler and/or Loot Chest must be found within 2 tiles!999                #  Storage Tomes can be locked down (within 2 tiles) or located inside Loot Chest or Storage Tome Container1000 1001                @setvar! EnableAutoRecallOverheadMessages 11002                # Controls overhead messages for Home Recall section only1003 1004                    @setvar! EnableSafeDeposit 01005                        # Will deposit all gold and doubloons found in inventory1006                    @setvar! EnableRepairBench 01007                        # Will repair all equipment (Repair Bench must have charges available)1008                    @setvar! EnableResourceStockpile 01009                        # Will deposit all resources (ingots, boards, gems, etc.)1010                    @setvar! EnableStorageShelf 01011                        # Will restock shelf and then resupply a fresh loadout1012                    @setvar! EnableMagicRecycler 01013                        # Will add all unidentified magic items to your Recycler1014                        @setvar! EnableRecycleItemsWhenFull 01015                            # If Recycler is full, it will attempt to ID, Recycle and deposit resources (if stockpile nearby) before adding items1016                    @setvar! EnableStorageTomes 01017                        # Will add items to any nearby storage tomes (skill scrolls, dyes, runes, maps, cards, etc)1018                        @setvar! EnableStorageTomeContainer 01019                            # Script checks on ground (2 tiles) or in LOOT CHEST (enable below) by default1020                            # Otherwise you can designate a TOME CONTAINER to check for your books1021                    @setvar! EnableLootChest 01022                        # Will open selected chest to store non-shelf/stockpile/tome items in your HOME/INN/BANK (uses Razor organizer agents 06-09)1023                    @setvar! EnableReagentSplitter 01024                        # Will split reagents into smaller stacks after shelf resupply (not really required for this build, but included anyway)1025 1026 1027            // CHIVALRY INFINITE LOOP:1028                # This variable will get you right back into the fight as quickly as possible! (Requires 90+ Chivalry skill for 'Sacred Journey')1029                # After recalling home, script will UNLOAD/REPAIR/RESUPPLY then CHIV GATE back to LAST DUNGEON or CUSTOM WILDERNESS LOCATION1030                # IMPT:  MUST USE 'BUILT-IN HOME RECALL SCRIPT' IF USING 'INFINITE LOOP'1031                # Infinite Loop will always be DISABLED if Recall/Gate was triggered due to tracked RED1032 1033                @setvar! EnableInfiniteLoop 01034                    # '0' = DISABLED1035                    # '1' = Return after WEIGHT or MANUAL Auto Recall/Dungeon Escape1036                    # '2' = Return after WEIGHT Auto Recall/Dungeon Escape only1037 1038                    # Infinite Loop will always be 'disabled' if AUTO RECALL/DUNGEON ESCAPE was triggered due to a tracked PK1039                    # Destination will auto select your 'LAST DUNGEON' Chivalry gate if farming in 'DUNGEONMODE'1040                    # Destination will auto select your 'CUSTOM LOCATION' Chivalry Gate if farming in 'WILDERNESSMODE'1041                   // Automatically selected based on DUNGEONMODE or WILDERNESSMODE setting at top of script!1042 1043 1044////////////////////////1045//'  SCRIPT MODES :  '//1046////////////////////////1047 1048    // I use this variable to set up multiple "modes" with different hotkeys.1049    # Copy and paste to new script and update variables for different setups (Dungeon, Infinite Loop ON/OFF, Wilderness, different Weapon Abilities, etc.)1050    # Just change the NUMBERS (ie. 'elseif ScriptMode = 3'/'@setvar! ScriptMode 3') and overhead message (ie.'overhead "[ LOOP ACTIVE MODE ]" 2116') for each version1051    # Script will only display overhead mode message when switching between script versions or upon first run of a new client login1052    # I use a ROG Ally and set each hotkey to a different button (A, B, X, Y) and have multiple script modes1053 1054        if DUNGEONMODE = 11055            if ScriptMode = 11056                // Do nothing1057            else1058                overhead "[ DUNGEON MODE ]" 23381059                @setvar! ScriptMode 11060                hotkey "Toggle War Only"1061            endif1062 1063        elseif WILDERNESSMODE = 11064            if ScriptMode = 21065                // Do nothing1066            else1067                overhead "[ WILDERNESS MODE ]" 11821068                @setvar! ScriptMode 21069                hotkey "Toggle War Only"1070            endif1071        endif1072 1073 1074///////////////////////////1075//'  MOB IGNORE LIST :  '//1076///////////////////////////1077 1078removelist animalsIgnoreList1079createlist animalsIgnoreList1080    pushlist animalsIgnoreList "a plover"1081    pushlist animalsIgnoreList "a sheep"1082    pushlist animalsIgnoreList "a frenzied ostard"1083    pushlist animalsIgnoreList "a tundra ostard"1084    pushlist animalsIgnoreList "a desert ostard"1085    pushlist animalsIgnoreList "a forest ostard"1086    pushlist animalsIgnoreList "a finch"1087    pushlist animalsIgnoreList "a sparrow"1088    pushlist animalsIgnoreList "a towhee"1089    pushlist animalsIgnoreList "a lapwing"1090    pushlist animalsIgnoreList "a silverback"1091    pushlist animalsIgnoreList "a crow"1092    pushlist animalsIgnoreList "a woodpecker"1093    pushlist animalsIgnoreList "a horse"1094    pushlist animalsIgnoreList "a swift"1095    pushlist animalsIgnoreList "a skylark"1096    pushlist animalsIgnoreList "a hawk"1097    pushlist animalsIgnoreList "a chickadee"1098    pushlist animalsIgnoreList "a cat"1099    pushlist animalsIgnoreList "a dog"1100    pushlist animalsIgnoreList "a black bear"1101    pushlist animalsIgnoreList "a brown bear"1102    pushlist animalsIgnoreList "a bull"1103    pushlist animalsIgnoreList "a cow"1104    pushlist animalsIgnoreList "a chicken"1105    pushlist animalsIgnoreList "a bird"1106    pushlist animalsIgnoreList "an eagle"1107    pushlist animalsIgnoreList "a nuthatch"1108    pushlist animalsIgnoreList "an elk"1109    pushlist animalsIgnoreList "a great hart"1110    pushlist animalsIgnoreList "a kingfisher"1111    pushlist animalsIgnoreList "a hind"1112    pushlist animalsIgnoreList "a llama"1113    pushlist animalsIgnoreList "a sand crab"1114    pushlist animalsIgnoreList "a pig"1115    pushlist animalsIgnoreList "a polar bear"1116    pushlist animalsIgnoreList "a walrus"1117    pushlist animalsIgnoreList "a cougar"1118    pushlist animalsIgnoreList "a goat"1119    pushlist animalsIgnoreList "a raven"1120    pushlist animalsIgnoreList "a magpie"1121    pushlist animalsIgnoreList "a warbler"1122    pushlist animalsIgnoreList "a tern"1123    pushlist animalsIgnoreList "a nightingale"1124    pushlist animalsIgnoreList "a wren"1125    pushlist animalsIgnoreList "a cuckoo"1126    pushlist animalsIgnoreList "a crossbill"1127    pushlist animalsIgnoreList "a starling"1128    pushlist animalsIgnoreList "ADD MOBS TO IGNORE"1129    pushlist animalsIgnoreList "ADD MOBS TO IGNORE"1130    pushlist animalsIgnoreList "ADD MOBS TO IGNORE"1131    pushlist animalsIgnoreList "ADD MOBS TO IGNORE"1132 1133 1134///////////////////////////1135//'  END OF VARIABLES!  '//1136///////////////////////////1137 1138 1139 1140 1141 1142 1143################  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!  ################1144 1145 1146 1147 1148 1149 1150 1151/////////////////////1152//  SCRIPT RESET:  //1153/////////////////////1154 1155if ResetScriptPermanentVariables = 11156    unsetvar AutoRecallChargedRunebook1157    unsetvar FirstRunDexxer1158    unsetvar DexxerAutoPilot1159    unsetvar LootBag1160    unsetvar LootChest1161    unsetvar TomeContainer1162    @setvar! RedTargetFound 01163    @setvar! WarModeToggledWhileFighting 01164    @setvar! TimeToGo 01165    @setvar! DisableWeaponFinisher 01166    @setvar! DisableShieldFinisher 01167    @setvar! DisableVacuums 01168    @setvar! AutoRecallTime 01169    clearignore1170    overhead "[ SCRIPT VARIABLES RESET... ]" 3331171    sysmsg "Please return 'ResetScriptPermanentVariables' to '0' to continue!" 1531172    stop1173endif1174 1175 1176///////////////////////1177//   TIMER SETUPS:   //1178///////////////////////1179 1180if AutoRecallTime != 1 and TimeToGo != 11181    if not timerexists 'PotionKegPVPCooldown'1182        createtimer 'PotionKegPVPCooldown'1183        settimer 'PotionKegPVPCooldown' 300001184    endif1185 1186    if not timerexists "WorldSaveTimer"1187        createtimer "WorldSaveTimer"1188        settimer "WorldSaveTimer" 01189    endif1190 1191    if not timerexists "NoTargetTimer"1192        createtimer "NoTargetTimer"1193        settimer "NoTargetTimer" 01194    endif1195 1196    if not timerexists "WeaponAbilityTimer"1197        createtimer "WeaponAbilityTimer"1198        settimer "WeaponAbilityTimer" 01199    endif1200 1201    if not timerexists 'LootTimer'1202        createtimer 'LootTimer'1203        settimer 'LootTimer' StoreLootTimer1204    endif1205 1206    if not timerexists 'PurplePotionTimer'1207        createtimer 'PurplePotionTimer'1208        settimer 'PurplePotionTimer' 01209    endif1210 1211    if not timerexists 'DisarmedTimer'1212        createtimer 'DisarmedTimer'1213        settimer 'DisarmedTimer' 50001214    endif1215 1216    if not timerexists 'WeightTimer'1217        createtimer 'WeightTimer'1218        settimer 'WeightTimer' 01219    endif1220 1221    if not timerexists 'PKRadar'1222        createtimer 'PKRadar'1223        settimer 'PKRadar' 01224    endif1225 1226    if not timerexists 'AmIclosestMOB'1227        createtimer 'AmIclosestMOB'1228        settimer 'AmIclosestMOB' 01229    endif1230 1231    if not timerexists 'TauntingTimer'1232        createtimer 'TauntingTimer'1233        settimer 'TauntingTimer' 01234    endif1235 1236    if not timerexists "WeaponCodexTimer"1237        createtimer "WeaponCodexTimer"1238        settimer "WeaponCodexTimer" 01239    endif1240 1241    if not timerexists "ShieldCodexTimer"1242        createtimer "ShieldCodexTimer"1243        settimer "ShieldCodexTimer" 01244    endif1245 1246    if not timerexists "DungeonEscape"1247        createtimer "DungeonEscape"1248        settimer "DungeonEscape" 01249    endif1250 1251    if not timerexists "ArrowCleanupTimer"1252        createtimer "ArrowCleanupTimer"1253        settimer "ArrowCleanupTimer"  10001254    endif1255 1256    if not timerexists "DungeonCleanup"1257        createtimer "DungeonCleanup"1258        settimer "DungeonCleanup" 01259    endif1260 1261    if not timerexists "DungeonCleanupRadar"1262        createtimer "DungeonCleanupRadar"1263        settimer "DungeonCleanupRadar" 01264    endif1265 1266    if not timerexists 'TargetTimer'1267        createtimer 'TargetTimer'1268        settimer 'TargetTimer' 45001269    endif1270 1271    if not timerexists 'REDALERT'1272        createtimer 'REDALERT'1273        settimer 'REDALERT' 01274    endif1275 1276    if not timerexists 'MANAWAIT'1277        createtimer 'MANAWAIT'1278        settimer 'MANAWAIT' 45001279    endif1280 1281    if not timerexists 'GETCLOSER'1282        createtimer 'GETCLOSER'1283        settimer 'GETCLOSER' 45001284    endif1285 1286    if not timerexists 'GATEHERE'1287        createtimer 'GATEHERE'1288        settimer 'GATEHERE' 45001289    endif1290 1291    if not timerexists 'RECALLDELAY'1292        createtimer 'RECALLDELAY'1293        settimer 'RECALLDELAY' 45001294    endif1295 1296    if not timerexists 'CANNOTSEE'1297        createtimer 'CANNOTSEE'1298        settimer 'CANNOTSEE' 45001299    endif1300 1301    if not timerexists 'TOOFAR'1302        createtimer 'TOOFAR'1303        settimer 'TOOFAR' 45001304    endif1305 1306    if not timerexists 'HEALERSEARCH'1307        createtimer 'HEALERSEARCH'1308        settimer 'HEALERSEARCH' 45001309    endif1310 1311    if not timerexists 'RUNAWAY'1312        createtimer 'RUNAWAY'1313        settimer 'RUNAWAY' 60001314    endif1315 1316    if not timerexists 'STORELOOT'1317        createtimer 'STORELOOT'1318        settimer 'STORELOOT' 60001319    endif1320 1321    if not timerexists 'ATTACKTIMER'1322        createtimer 'ATTACKTIMER'1323        settimer 'ATTACKTIMER' 150001324    endif1325 1326    if not timerexists 'OverweightMessageTimer'1327        createtimer 'OverweightMessageTimer'1328        settimer 'OverweightMessageTimer' 45001329    endif1330 1331    if not timerexists 'NoTargetMessageTimer'1332        createtimer 'NoTargetMessageTimer'1333        settimer 'NoTargetMessageTimer' 45001334    endif1335 1336    if not timerexists 'AnalyzeTargetMessageTimer'1337        createtimer 'AnalyzeTargetMessageTimer'1338        settimer 'AnalyzeTargetMessageTimer' 45001339    endif1340 1341    if not timerexists 'PopPouchMessageTimer'1342        createtimer 'PopPouchMessageTimer'1343        settimer 'PopPouchMessageTimer' 45001344    endif1345 1346    if not timerexists 'BandageMessageTimer'1347        createtimer 'BandageMessageTimer'1348        settimer 'BandageMessageTimer' 01349    endif1350 1351    if not timerexists 'PotionKegTimer'1352        createtimer 'PotionKegTimer'1353        settimer 'PotionKegTimer' 35001354    endif1355 1356    if not timerexists 'StrengthPotionMessageTimer'1357        createtimer 'StrengthPotionMessageTimer'1358        settimer 'StrengthPotionMessageTimer' 45001359    endif1360 1361    if not timerexists 'AgilityPotionMessageTimer'1362        createtimer 'AgilityPotionMessageTimer'1363        settimer 'AgilityPotionMessageTimer' 45001364    endif1365 1366    if not timerexists 'ResistPotionMessageTimer'1367        createtimer 'ResistPotionMessageTimer'1368        settimer 'ResistPotionMessageTimer' 45001369    endif1370 1371    if not timerexists 'ExplosionPotionMessageTimer'1372        createtimer 'ExplosionPotionMessageTimer'1373        settimer 'ExplosionPotionMessageTimer' 150001374    endif1375 1376    if not timerexists 'CurePotionMessageTimer'1377        createtimer 'CurePotionMessageTimer'1378        settimer 'CurePotionMessageTimer' 45001379    endif1380 1381    if not timerexists 'HealPotionMessageTimer'1382        createtimer 'HealPotionMessageTimer'1383        settimer 'HealPotionMessageTimer' 45001384    endif1385 1386    if not timerexists 'HealPotionTimer'1387        createtimer 'HealPotionTimer'1388        settimer 'HealPotionTimer' 110001389    endif1390 1391    if not timerexists 'RefreshPotionMessageTimer'1392        createtimer 'RefreshPotionMessageTimer'1393        settimer 'RefreshPotionMessageTimer' 45001394    endif1395 1396    if not timerexists 'OrganizerAgentTimer'1397        createtimer 'OrganizerAgentTimer'1398        settimer 'OrganizerAgentTimer' 150001399    endif1400 1401    if not timerexists 'SkinningTimer'1402        createtimer 'SkinningTimer'1403        settimer 'SkinningTimer' 50001404    endif1405 1406    if not timerexists 'WizardSatchelTimer'1407        createtimer 'WizardSatchelTimer'1408        settimer 'WizardSatchelTimer' 600001409    endif1410 1411    if not timerexists 'PotionSatchelTimer'1412        createtimer 'PotionSatchelTimer'1413        settimer 'PotionSatchelTimer' 600001414    endif1415 1416    if not timerexists "QuiverTimer"1417        createtimer "QuiverTimer"1418        settimer "QuiverTimer" 300001419    endif1420 1421    if not timerexists 'HolyLightTimer'1422        createtimer 'HolyLightTimer'1423        settimer 'HolyLightTimer' 310001424    endif1425 1426    if not timerexists 'NobleSacrificeTimer'1427        createtimer 'NobleSacrificeTimer'1428        settimer 'NobleSacrificeTimer' 310001429    endif1430 1431    if not timerexists 'ChivalryPrevented'1432        createtimer 'ChivalryPrevented'1433        settimer 'ChivalryPrevented' 50001434    endif1435 1436    if not timerexists "SongBuffDelay"1437        createtimer "SongBuffDelay"1438        settimer "SongBuffDelay" 01439    endif1440 1441    if not timerexists 'Musicianship'1442        createtimer 'Musicianship'1443        settimer 'Musicianship' 50001444    endif1445 1446    if not timerexists 'DiscordanceTimer'1447        createtimer 'DiscordanceTimer'1448        settimer 'DiscordanceTimer' 110001449    endif1450 1451    if not timerexists "NextTargetCheck"1452        createtimer "NextTargetCheck"1453        settimer "NextTargetCheck" 01454    endif1455 1456    if not timerexists "NextTargetTimer"1457        createtimer "NextTargetTimer"1458        settimer "NextTargetTimer" 01459    endif1460 1461    if not timerexists "AttackingTimer"1462        createtimer "AttackingTimer"1463        settimer "AttackingTimer" 10001464    endif1465 1466    if not timerexists 'TargetAcquired'1467        createtimer 'TargetAcquired'1468        settimer 'TargetAcquired' 40001469    endif1470 1471    if not timerexists 'CloseWoundsTimer'1472        createtimer 'CloseWoundsTimer'1473        settimer 'CloseWoundsTimer' 310001474    endif1475 1476    if not timerexists 'CleanseByFireTimer'1477        createtimer 'CleanseByFireTimer'1478        settimer 'CleanseByFireTimer' 310001479    endif1480 1481    if not timerexists 'DivineFuryTimer'1482        createtimer 'DivineFuryTimer'1483        settimer 'DivineFuryTimer' 310001484    endif1485 1486    if not timerexists 'EnemyOfOneTimer'1487        createtimer 'EnemyOfOneTimer'1488        settimer 'EnemyOfOneTimer' 310001489    endif1490 1491    if not timerexists 'ConsecrateWeaponTimer'1492        createtimer 'ConsecrateWeaponTimer'1493        settimer 'ConsecrateWeaponTimer' 310001494    endif1495 1496    if not timerexists 'AmmunitionTimer'1497        createtimer 'AmmunitionTimer'1498        settimer 'AmmunitionTimer' 60001499    endif1500 1501    if not timerexists "LootStorageTimer"1502        createtimer "LootStorageTimer"1503        settimer "LootStorageTimer" 30001504    endif1505 1506    if not timerexists "Provoked"1507        createtimer "Provoked"1508        settimer "Provoked" 300001509    endif1510 1511    if not timerexists "Pacified"1512        createtimer "Pacified"1513        settimer "Pacified" 300001514    endif1515 1516    if not timerexists "Discorded"1517        createtimer "Discorded"1518        settimer "Discorded" 300001519    endif1520 1521    if not timerexists "ProvokedTimer"1522        createtimer "ProvokedTimer"1523        settimer "ProvokedTimer" 310001524    endif1525 1526    if not timerexists "PacifiedTimer"1527        createtimer "PacifiedTimer"1528        settimer "PacifiedTimer" 310001529    endif1530 1531    if not timerexists "DiscordedTimer"1532        createtimer "DiscordedTimer"1533        settimer "DiscordedTimer" 310001534    endif1535 1536    if not timerexists "Provocation"1537        createtimer "Provocation"1538        settimer "Provocation" 110001539    endif1540 1541    if not timerexists "Discordance"1542        createtimer "Discordance"1543        settimer "Discordance" 110001544    endif1545 1546    if not timerexists "Peacemaking"1547        createtimer "Peacemaking"1548        settimer "Peacemaking" 110001549    endif1550 1551    if not timerexists "DiscoCheck"1552        createtimer "DiscoCheck"1553        settimer "DiscoCheck" 01554    endif1555 1556    if not timerexists "PeaceCheck"1557        createtimer "PeaceCheck"1558        settimer "PeaceCheck" 01559    endif1560 1561    if not timerexists "ProvoCheck"1562        createtimer "ProvoCheck"1563        settimer "ProvoCheck" 01564    endif1565 1566    if not timerexists "RendTimer"1567        createtimer "RendTimer"1568        settimer "RendTimer" 01569    endif1570 1571    if not timerexists "AfterKill"1572        createtimer "AfterKill"1573        settimer "AfterKill" 5001574    endif1575 1576    if not timerexists "GoldRadar"1577        createtimer "GoldRadar"1578        settimer "GoldRadar" 01579    endif1580 1581    if not timerexists "InfiniteLoop"1582        createtimer "InfiniteLoop"1583        settimer "InfiniteLoop" 300001584    endif1585 1586    if not timerexists "CleanupRadar"1587        createtimer "CleanupRadar"1588        settimer "CleanupRadar" 01589    endif1590 1591    if not timerexists "SatchelTimer"1592        createtimer "SatchelTimer"1593        settimer "SatchelTimer" 01594    endif1595 1596    if not timerexists "BoltCleanupRadar"1597        createtimer "BoltCleanupRadar"1598        settimer "BoltCleanupRadar" 01599    endif1600 1601    if not timerexists "ArrowCleanupRadar"1602        createtimer "ArrowCleanupRadar"1603        settimer "ArrowCleanupRadar" 01604    endif1605 1606    if not timerexists "ClearSysmsgTimer"1607        createtimer "ClearSysmsgTimer"1608        settimer "ClearSysmsgTimer" 300001609    endif1610 1611    if not timerexists "AutoHealOverheadTimer"1612        createtimer "AutoHealOverheadTimer"1613        settimer "AutoHealOverheadTimer" 50001614    endif1615 1616    if not timerexists "IgnoreMOBtimer"1617        createtimer "IgnoreMOBtimer"1618        settimer "IgnoreMOBtimer" 25001619    endif1620 1621    if not timerexists "InventoryCheck"1622        createtimer "InventoryCheck"1623        settimer "InventoryCheck" 50001624    endif1625 1626    if not timerexists "RepairTimer"1627        createtimer "RepairTimer"1628        settimer "RepairTimer" 50001629    endif1630 1631    if not timerexists "CleansingBrewTimer"1632        createtimer "CleansingBrewTimer"1633        settimer "CleansingBrewTimer" 1200001634    endif1635 1636    if not timerexists "CleansingBrewOverhead"1637        createtimer "CleansingBrewOverhead"1638        settimer "CleansingBrewOverhead" 150001639    endif1640 1641    if not timerexists "DungeonEscapeOverheadTimer"1642        createtimer "DungeonEscapeOverheadTimer"1643        settimer "DungeonEscapeOverheadTimer" 150001644    endif1645 1646    if not varexist "WarModeToggledWhileFighting"1647        @setvar! "WarModeToggledWhileFighting" 01648    endif1649 1650    if not varexist "NeedtoSecureLoot"1651        @setvar! NeedtoSecureLoot 01652    endif1653 1654    if timer "ClearSysmsgTimer" > 300001655        clearsysmsg1656        settimer "ClearSysmsgTimer" 01657    endif1658 1659    if skill 'Arms Lore' < 501660        @setvar! WeaponAbilityCooldown 600001661    endif1662endif1663 1664# Emote Cooldown1665@setvar! EnableUseEmotes 11666@setvar! SetEmoteCooldown 300001667    # Requires the following emotes to be unlocked: [Awoo, [Yell, [Hurt, [HighFive, [Yes, [Hohoho, [Bark and [Whistle1668    # Requires 'EnableOverheadMessages' set to '1' or '2'1669    # Will use Emotes when Aspect, Codex or Chain Links are leveled up and when entering the Auto Heal loop1670    # Also uses Emotes when certain finishers are performed (W.I.P.) and when target is eliminated1671    # Cooldown defaults to 2 minutes but can be reduced via customizations in-game (375k gold reduces it to 30 seconds)1672    # Add optional cooldown in UO client:  'Emote Cooldown'  (case sensitive)1673    if not timerexists "EmoteCooldownTimer"1674        createtimer "EmoteCooldownTimer"1675        settimer "EmoteCooldownTimer" SetEmoteCooldown1676    endif1677 1678# Juggling Cooldown1679@setvar! EnableAxeJuggling 01680@setvar! SetAxeJugglingCooldown 300001681    # Requires juggling hatchets in inventory, dual wielding skill > 50 and Dual Norse Axes in hands1682    # Only works in DUNGEON MODE due to no mounts and has a minimum 30 second cooldown (set above)1683    # Will juggle hatchets when target is eliminated (if not on cooldown)1684    # Will also trigger emotes if enabled above1685    # Juggling hinders movement for a couple of seconds so flex at your own risk!1686    # Add optional cooldown in UO client:  'Juggling Cooldown'  (case sensitive)1687    if not timerexists "JugglingTimer"1688        createtimer "JugglingTimer"1689        settimer "JugglingTimer" SetAxeJugglingCooldown1690    endif1691 1692@setvar! DisableShieldFinisher 01693@setvar! SkipCheckSection 01694 1695if EnableInfiniteLoop != 0 and skill 'Chivalry' >= 901696    if DUNGEONMODE = 11697        @setvar! InfiniteLoopDestination 11698    elseif WILDERNESSMODE = 11699        @setvar! InfiniteLoopDestination 21700    endif1701endif1702 1703if DUNGEONMODE = 1 and WILDERNESSMODE = 01704    // Valid Dungeon Mode1705elseif DUNGEONMODE = 0 and WILDERNESSMODE = 11706    // Valid Wilderness Mode1707else1708    overhead "[ INVALID SCRIPT STATE! ]" 1531709    wait 15001710    overhead "[ STOPPING SCRIPT! ]" 881711    sysmsg "DUNGEONMODE and WILDERNESSMODE must be set to either 1/0 or 0/1.  Please ENABLE only one mode!" 691712    stop1713endif1714 1715    //////////////////////1716    //  INITIAL SETUP:  //1717    //////////////////////1718 1719if AutoRecallTime != 1 and TimeToGo != 11720    if not dead1721        if not varexist DexxerAutoPilot1722            overhead "Lord Glacier's Chill Dexxer Auto Pilot Script" 22341723            # '1724            overhead "version 3.1.2" 22341725            wait 10001726            overhead "Last Updated: October 9, 2026" 881727            wait 25001728            overhead "Thank you for trying my Dexxer AUTO PILOT script!  It appears this may be your first time running it..." 01729            wait 40001730            overhead "IMPT: Please make sure to check and adjust your required VARIABLES!" 1531731            wait 35001732            overhead "Read the TIPS section at the beginning of the script for more info" 01733            wait 40001734            setvar DexxerAutoPilot 11735            sysmsg "Beginning Lord Glacier's Chill Dexxer Auto Pilot script...... " 881736            # '1737            wait 10001738        endif1739 1740        if EnableDIYRecallScript != 1 and IHAVEDIED != 11741            if EnableAutoRedRecall = 1 or EnableAutoWeightRecall = 1 or EnableRecallAfterResurrection = 1 or EnableRecallAfterDungeonGate = 11742                if not varexist AutoRecallChargedRunebook1743                    wait 5001744                    overhead "You have enabled Auto Recall (PK or Weight) and must select a runebook to continue!" 01745                    wait 15001746                    overhead "Select your escape runebook..." 2531747                    setvar AutoRecallChargedRunebook1748                    wait 5001749                    while targetexists1750                        wait 1001751                    endwhile1752                    sysmsg "Will cast to 'default rune' in Runebook (if 'casting' enabled) or uses scrolls to 'first location' in Runebook (if no Magery skill)" 1531753                    wait 15001754                endif1755                if not find AutoRecallChargedRunebook self1756                    overhead "[ NO RUNEBOOK FOUND! ]" 3371757                    wait 15001758                    overhead "Select your new escape runebook..." 2531759                    wait 5001760                    setvar AutoRecallChargedRunebook1761                    wait 2501762                    while targetexists1763 1764                        wait 1001765                    endwhile1766                endif1767            endif1768        endif1769 1770        if EnableLootChest = 11771            if EnableAutoRedRecall = 1 or EnableAutoWeightRecall = 1 or EnableRecallAfterResurrection = 1 or EnableRecallAfterDungeonGate = 11772                if not varexist LootChest1773                    wait 5001774                    overhead "Select a secure container to store your Loot..." 2531775                    sysmsg "Can be disabled under script variables section." 01776                    wait 10001777                    overhead "Anything that will not go into a Resource Stockpile, Storage Shelf, Tomes or Magic Recycler" 01778                    overhead "(ie. Skill Orbs, Research Mats, Paragon chests, etc.)"1779                    setvar LootChest1780                    wait 5001781                    while targetexists1782                        wait 1001783                    endwhile1784                    sysmsg "Use Razor Organizer Agents 06 - 09 for the Loot Chest and its contents - organize to your own liking!" 01785                    wait 15001786                endif1787            endif1788        endif1789 1790        if EnableStorageTomeContainer = 11791            if EnableAutoRedRecall = 1 or EnableAutoWeightRecall = 1 or EnableRecallAfterResurrection = 1 or EnableRecallAfterDungeonGate = 11792                if not varexist TomeContainer1793                    wait 5001794                    overhead "Please select a secure container to store your Tomes..." 2531795                    sysmsg "Can be disabled under script variables section." 01796                    wait 10001797                    overhead "This will cause script to look in this container for any Storage Tomes when unloading loot..." 01798                    setvar TomeContainer1799                    wait 5001800                    while targetexists1801                        if diffhits >= ActivateAutoHealHPdiff1802                            break1803                        endif1804                        wait 1001805                    endwhile1806                    sysmsg "Turn this variable off if your tomes are stored on the ground in your home/inn room" 01807                    wait 15001808                endif1809            endif1810        endif1811 1812        if EnableLootBag = 1 and IHAVEDIED != 11813            if EnableAutoRedRecall = 1 or EnableAutoWeightRecall = 1 or EnableRecallAfterResurrection = 1 or EnableRecallAfterDungeonGate = 11814                if not varexist LootBag1815                    wait 5001816                    overhead "Please select your loot bag..." 2531817                    wait 10001818                    overhead "This should be whatever is set as your 'Grab Bag' and will be opened when unloading loot after recalling..." 01819                    setvar LootBag1820                    wait 5001821                    while targetexists and diffhits < ActivateAutoHealHPdiff1822                        if diffhits >= ActivateAutoHealHPdiff1823                            break1824                        endif1825                        wait 1001826                    endwhile1827                endif1828 1829                if not find LootBag self1830                    overhead "[ NO LOOT BAG ]" 3371831                    wait 15001832                    overhead "Select your new loot bag..." 2531833                    wait 5001834                    setvar LootBag1835                    wait 2501836                    while targetexists1837                        if diffhits >= ActivateAutoHealHPdiff1838                            break1839                        endif1840                        wait 1001841                    endwhile1842                endif1843            endif1844        endif1845 1846        if not varexist FirstRunDexxer1847            overhead "Ok, looks like you are all set!" 841848            wait 20001849            overhead "Good luck out there!" 22341850            overhead "         - Dan (aka. Lord Glacier)" 22341851            wait 15001852            hotkey 'Toggle War Only'1853            setvar FirstRunDexxer 11854        endif1855    endif1856endif1857 1858 1859 1860 1861 1862 1863                                                                            ###############################1864                                                                           ###    SCRIPT STARTS HERE:    ###1865                                                                            ###############################1866 1867 1868///////////////////1869//  ALIVE LOOP:  //1870///////////////////1871 1872while not dead1873    if dead1874        break1875    endif1876 1877    if paralyzed and EnableAutoParalyzePouch = 11878        if findtype "pouch" self1879            yell "[pouch"1880            wait 2501881            hotkey 'Toggle Peace Only'1882            @setvar! RedTargetFound 11883            @setvar! WarModeToggledWhileFighting 01884            if DUNGEONMODE = 11885                @setvar! TimeToGo 11886            elseif WILDERNESSMODE = 11887                @setvar! AutoRecallTime 11888            endif1889        else1890            if timer PopPouchMessageTimer > 5000 and EnableOverheadMessages = 11891                overhead "[ NO MORE POUCHES! ]" 3371892                settimer PopPouchMessageTimer 01893            endif1894        endif1895    endif1896 1897    if EnableDropGoldWhenOverweight = 11898        if weight > maxweight and diffhits < ActivateAutoHealHPdiff1899            if EnableOverheadMessages = 1 or EnableOverheadMessages = 21900                if timer OverweightMessageTimer > 45001901                    overhead "[ OVERWEIGHT! ]" 341902                    settimer OverweightMessageTimer 01903                endif1904            endif1905 1906            if DropGoldAmount != 01907                clearignore1908                @setvar! DisableVacuums 11909                wait 2501910 1911                if EnablePutLootinLockBox = 11912                    if findtype "wooden box" self as lockbox1913                        if findtype "copper key" self as key1914                            clearignore1915                            getlabel lockbox lockboxlabel1916                            wait 1001917                            if "items" in lockboxlabel1918                                // Do nothing1919                            else1920                                dclick key1921                                wft 15001922                                target lockbox1923                                if EnableOverheadMessages = 11924                                    overhead "[loot box unlocked]" 841925                                endif1926                                wait 5001927                                if insysmsg "It appears to be locked."1928                                    dclick key1929                                    wft 15001930                                    target lockbox1931                                    wait 2501932                                endif1933                            endif1934                        elseif EnableOverheadMessages = 11935                            overhead "[ NO LOCKBOX KEY! ]" 3371936                        endif1937                    endif1938                endif1939 1940                while weight > maxweight and diffhits < ActivateAutoHealHPdiff1941                    if findtype "gold coin" self as easycomeeasygo1942                        lift easycomeeasygo DropGoldAmount1943                        droprelloc 0 01944                        getlabel backpack packdesc1945                        if EnableOverheadMessages = 11946                            overhead "[ DROPPING GOLD... ]" 1491947                        endif1948                        wait 2501949                        if insysmsg "cannot drop anything"1950                            drop backpack -1 -1 -11951                            break1952                        endif1953                        wait 2501954                    else1955                        break1956                    endif1957                    if diffhits >= ActivateAutoHealHPdiff1958                        break1959                    endif1960                endwhile1961 1962                if diffhits >= ActivateAutoHealHPdiff1963                    break1964                endif1965            endif1966        endif1967    endif1968 1969    if AutoRecallTime != 1 and TimeToGo != 11970        if EnableTrackingAutoRecall = 1 and skill 'Tracking' > 501971            if not findbuff 'tracking'1972                while not gumpexists 42674676591973                    useskill 'tracking'1974                    wait 2501975                    waitforgump 4267467659 50001976                endwhile1977                if gumpexists 42674676591978                    while not insysmsg "You will now hunt all hostile players."1979                        gumpresponse 8 42674676591980                        waitforgump 4267467659 50001981                        wait 1001982                    endwhile1983                    gumpresponse 6 42674676591984                    wait 5001985                    clearsysmsg1986                endif1987                gumpclose 42674676591988                if EnableOverheadMessages = 11989                    overhead "[ RED RECALL ACTIVATED! ]" 3341990                endif1991            endif1992        endif1993 1994        if EnableTrackingAutoRecall = 11995            if PKTrackingRange = 601996                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"1997                    hotkey 'Toggle Peace Only'1998                    if EnableRedAlertOverhead = 11999                        overhead "[ !! RED ALERT !! ]" 372000                    endif2001                    settimer "REDALERT" 02002                    @setvar! RedTargetFound 12003                    @setvar! SkipInfiniteLoop 12004                    @setvar! WarModeToggledWhileFighting 02005                    @setvar! TimeToGo 12006                    clearsysmsg2007                endif2008            elseif PKTrackingRange = 502009                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"2010                    hotkey 'Toggle Peace Only'2011                    if EnableRedAlertOverhead = 12012                        overhead "[ !! RED ALERT !! ]" 372013                    endif2014                    settimer "REDALERT" 02015                    @setvar! RedTargetFound 12016                    @setvar! SkipInfiniteLoop 12017                    @setvar! WarModeToggledWhileFighting 02018                    @setvar! TimeToGo 12019                    clearsysmsg2020                endif2021            elseif PKTrackingRange = 402022                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"2023                    hotkey 'Toggle Peace Only'2024                    if EnableRedAlertOverhead = 12025                        overhead "[ !! RED ALERT !! ]" 372026                    endif2027                    settimer "REDALERT" 02028                    @setvar! RedTargetFound 12029                    @setvar! SkipInfiniteLoop 12030                    @setvar! WarModeToggledWhileFighting 02031                    @setvar! TimeToGo 12032                    clearsysmsg2033                endif2034            elseif PKTrackingRange = 02035                if insysmsg "Now tracking"2036                    hotkey 'Toggle Peace Only'2037                    if EnableRedAlertOverhead = 12038                        overhead "[ !! RED ALERT !! ]" 372039                    endif2040                    settimer "REDALERT" 02041                    @setvar! RedTargetFound 12042                    @setvar! SkipInfiniteLoop 12043                    @setvar! WarModeToggledWhileFighting 02044                    @setvar! TimeToGo 12045                    clearsysmsg2046                endif2047            endif2048        endif2049 2050        if EnablePKradar = 12051            if timer "PKRadar" > 10002052                hotkey 'Next Murderer Player Target'2053                wait 2502054                if insysmsg "No one matching that was found"2055                    settimer "PKRadar" 02056                    clearsysmsg2057                else2058                    hotkey 'Toggle Peace Only'2059                    @setvar! RedTargetFound 12060                    @setvar! WarModeToggledWhileFighting 02061                    @setvar! TimeToGo 12062                    @setvar! SkipInfiniteLoop 12063                    @setvar! MurdererTarget lasttarget2064                    if EnableRedAlertOverhead = 12065                        overhead "[ !! RED ALERT !! ]" 372066                    endif2067                    settimer "REDALERT" 02068                endif2069            endif2070        endif2071 2072        if timer "AttackingTimer" > 5002073            if not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange2074                attack ClosestTarget2075                settimer "AttackingTimer" 02076            elseif not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetDisengageRange2077                if timer "NoTargetTimer" > 30002078                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 22079                        overhead "[ GET CLOSER! ]" 3532080                        overhead " � " 353 ClosestTarget2081                    else2082                        overhead " � " 353 ClosestTarget2083                    endif2084                    settimer "NoTargetTimer" 02085                    settimer "TargetAcquired" 02086                endif2087            endif2088        endif2089 2090        if EnableUsePotionKegs = 1 and findtype 'empty bottle%s%' self and findtype 'keg' self and timer 'PotionKegPVPCooldown' > 300002091            if not timerexists PotionKegTimer2092                createtimer PotionKegTimer2093                settimer PotionKegTimer 50002094            endif2095 2096            @setvar! PotionStockCheck 02097 2098            while PotionStockCheck < 8 and findtype 'empty bottle%s%' self2099                @setvar! PotionAmounttoFill 02100                if PotionStockCheck = 02101                    if ExplosionPotionAmount != 02102                        @setvar! PotionType 38532103                        @setvar! KegColour 4192104                        @setvar! PotionAmounttoFill ExplosionPotionAmount2105                    endif2106                    @setvar! PotionStockCheck 12107                elseif PotionStockCheck = 12108                    if HealingPotionAmount != 02109                        @setvar! PotionType 38522110                        @setvar! KegColour 2532111                        @setvar! PotionAmounttoFill HealingPotionAmount2112                    endif2113                    @setvar! PotionStockCheck 22114                elseif PotionStockCheck = 22115                    if CurePotionAmount != 02116                        @setvar! PotionType 38472117                        @setvar! KegColour 442118                        @setvar! PotionAmounttoFill CurePotionAmount2119                    endif2120                    @setvar! PotionStockCheck 32121                elseif PotionStockCheck = 32122                    if RefreshPotionAmount != 02123                        @setvar! PotionType 38512124                        @setvar! KegColour 372125                        @setvar! PotionAmounttoFill RefreshPotionAmount2126                    endif2127                    @setvar! PotionStockCheck 42128                elseif PotionStockCheck = 42129                    if StrengthPotionAmount != 02130                        @setvar! PotionType 38492131                        @setvar! KegColour 9562132                        @setvar! PotionAmounttoFill StrengthPotionAmount2133                    endif2134                    @setvar! PotionStockCheck 52135                elseif PotionStockCheck = 52136                    if AgilityPotionAmount != 02137                        @setvar! PotionType 38482138                        @setvar! KegColour 932139                        @setvar! PotionAmounttoFill AgilityPotionAmount2140                    endif2141                    @setvar! PotionStockCheck 62142                elseif PotionStockCheck = 62143                    if ResistPotionAmount != 02144                        @setvar! PotionType 38462145                        @setvar! KegColour 11092146                        @setvar! PotionAmounttoFill ResistPotionAmount2147                    endif2148                    @setvar! PotionStockCheck 72149                elseif PotionStockCheck = 72150                    if PoisonPotionAmount != 02151                        @setvar! PotionType 38502152                        @setvar! KegColour 3632153                        @setvar! PotionAmounttoFill PoisonPotionAmount2154                    endif2155                    @setvar! PotionStockCheck 82156                endif2157 2158                if PotionAmounttoFill != 02159                    while counttype PotionType self < PotionAmounttoFill2160                        if not findtype 'empty bottle%s%' self2161                            if EnableAutoRecallOverheadMessages = 1 and timer 'PotionKegTimer' > 50002162                                overhead "[ NO EMPTY BOTTLES... ]" 3372163                                settimer 'PotionKegTimer' 02164                            endif2165                            break2166                        endif2167 2168                        if diffhits > 102169                            break2170                        endif2171 2172                        if findtype 'keg' self KegColour as myKeg2173                            dclick myKeg2174                            wait 2502175                            if EnableAutoRecallOverheadMessages = 12176                                if timer 'PotionKegTimer' > 20002177                                    overhead '[ FILLING POTS... ]' KegColour2178                                    settimer 'PotionKegTimer' 02179                                endif2180                            endif2181                        else2182                            if EnableAutoRecallOverheadMessages = 1 and timer 'PotionKegTimer' > 50002183                                overhead "[ NO KEG TO USE... ]" KegColour2184                                settimer 'PotionKegTimer' 02185                            endif2186                            break2187                        endif2188                        if insysmsg "You have been in combat with another player"2189                            settimer "PotionKegPVPCooldown" 02190                            break2191                        endif2192                    endwhile2193 2194                    if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self2195                        if EnableAutoRecallOverheadMessages = 1 and timer 'PotionKegTimer' > 50002196                            overhead "[ NO EMPTY BOTTLES... ]" 3372197                            settimer 'PotionKegTimer' 02198                        endif2199                        break2200                    endif2201                endif2202            endwhile2203        endif2204 2205        if not warmode and WarModeToggledWhileFighting = 12206            if SetWeaponCodexStance = 6 or SetShieldCodexStance = 6 or SetWeaponCodexFinisher = 3 or SetWeaponCodexFinisher = 4 or SetShieldCodexFinisher = 3 or SetShieldCodexFinisher = 42207                hotkey 'Toggle War Only'2208            endif2209            @setvar! WarModeToggledWhileFighting 02210        endif2211    endif2212 2213 2214    //////////////////////////2215    //  AUTO HEALING LOOP:  //2216    //////////////////////////2217 2218    if diffhits >= ActivateAutoHealHPdiff2219        if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 02220            clearsysmsg2221            say "[Hurt"2222            wait 2502223            if insysmsg 'You have not yet unlocked'2224                say "[Yell"2225            endif2226            settimer EmoteCooldownTimer 02227            cooldown "Emote Cooldown" SetEmoteCooldown2228        endif2229        settimer WeaponCodexTimer 30002230        while diffhits > DeactivateAutoHealHPdiff2231            if dead2232                break2233            endif2234 2235            if EnableOverheadMessages = 1 or EnableOverheadMessages = 22236                if timer AutoHealOverheadTimer > 100002237                    sysmsg 'Prioritized healing loop active until HP is restored to a safe level....' 882238                    settimer AutoHealOverheadTimer 02239                endif2240            endif2241 2242            if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff2243                if findtype "Yellow Potion" self as HealPot2244                    getlabel HealPot HealPotlabel2245                    if "next" in HealPotlabel2246                        // Do nothing2247                    else2248                        @setvar! HealPotionCheck 02249 2250                        if counttype 3852 self as HealPotCount2251                            @setvar! HealPotionCheck HealPotCount2252                        endif2253 2254                        clearsysmsg2255                        dclicktype 38522256                        getlabel backpack backpackdesc2257                        wait 2502258 2259                        if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"2260                            settimer 'HealPotionTimer' 02261                            cooldown "Healing Potion" HealingPotionCooldown2262                            if EnableOverheadMessages = 12263                                if insysmsg "potion satchel used"2264                                    overhead '[ FREE HEAL POTION ]' 2532265                                else2266                                    overhead "[ HEAL POTION ]" 2532267                                endif2268                            endif2269                            clearsysmsg2270                        endif2271                    endif2272                else2273                    if timer 'HealPotionMessageTimer' > 45002274                        overhead "[ NO HEAL POTS! ]" 3372275                        settimer 'HealPotionMessageTimer' 02276                    endif2277                endif2278            endif2279 2280            while not gumpexists 13879303252281                say "[ChivalryHotbar"2282                wait 1002283            endwhile2284 2285            if gumpexists 13879303252286                if ingump "12/" 13879303252287                    @setvar! HolySymbols 122288                    @setvar! HolyLightAvailable 12289                    @setvar! NobleSacrificeAvailable 12290                    @setvar! CleanseByFireAvailable 12291                    @setvar! CloseWoundsAvailable 12292                    @setvar! DivineFuryAvailable 12293                    @setvar! EnemyOfOneAvailable 12294                    @setvar! ConsecrateWeaponAvailable 12295                elseif ingump "13/" 13879303252296                    @setvar! HolySymbols 132297                    @setvar! HolyLightAvailable 12298                    @setvar! NobleSacrificeAvailable 12299                    @setvar! CleanseByFireAvailable 12300                    @setvar! CloseWoundsAvailable 12301                    @setvar! DivineFuryAvailable 12302                    @setvar! EnemyOfOneAvailable 12303                    @setvar! ConsecrateWeaponAvailable 12304                elseif ingump "14/" 13879303252305                    @setvar! HolySymbols 142306                    @setvar! HolyLightAvailable 12307                    @setvar! NobleSacrificeAvailable 12308                    @setvar! CleanseByFireAvailable 12309                    @setvar! CloseWoundsAvailable 12310                    @setvar! DivineFuryAvailable 12311                    @setvar! EnemyOfOneAvailable 12312                    @setvar! ConsecrateWeaponAvailable 12313                elseif ingump "15/" 13879303252314                    @setvar! HolySymbols 152315                    @setvar! HolyLightAvailable 12316                    @setvar! NobleSacrificeAvailable 12317                    @setvar! CleanseByFireAvailable 12318                    @setvar! CloseWoundsAvailable 12319                    @setvar! DivineFuryAvailable 12320                    @setvar! EnemyOfOneAvailable 12321                    @setvar! ConsecrateWeaponAvailable 12322                elseif ingump "16/" 13879303252323                    @setvar! HolySymbols 162324                    @setvar! HolyLightAvailable 12325                    @setvar! NobleSacrificeAvailable 12326                    @setvar! CleanseByFireAvailable 12327                    @setvar! CloseWoundsAvailable 12328                    @setvar! DivineFuryAvailable 12329                    @setvar! EnemyOfOneAvailable 12330                    @setvar! ConsecrateWeaponAvailable 12331                elseif ingump "17/" 13879303252332                    @setvar! HolySymbols 172333                    @setvar! HolyLightAvailable 12334                    @setvar! NobleSacrificeAvailable 12335                    @setvar! CleanseByFireAvailable 12336                    @setvar! CloseWoundsAvailable 12337                    @setvar! DivineFuryAvailable 12338                    @setvar! EnemyOfOneAvailable 12339                    @setvar! ConsecrateWeaponAvailable 12340                elseif ingump "18/" 13879303252341                    @setvar! HolySymbols 182342                    @setvar! HolyLightAvailable 12343                    @setvar! NobleSacrificeAvailable 12344                    @setvar! CleanseByFireAvailable 12345                    @setvar! CloseWoundsAvailable 12346                    @setvar! DivineFuryAvailable 12347                    @setvar! EnemyOfOneAvailable 12348                    @setvar! ConsecrateWeaponAvailable 12349                elseif ingump "19/" 13879303252350                    @setvar! HolySymbols 192351                    @setvar! HolyLightAvailable 12352                    @setvar! NobleSacrificeAvailable 12353                    @setvar! CleanseByFireAvailable 12354                    @setvar! CloseWoundsAvailable 12355                    @setvar! DivineFuryAvailable 12356                    @setvar! EnemyOfOneAvailable 12357                    @setvar! ConsecrateWeaponAvailable 12358                elseif ingump "20/" 13879303252359                    @setvar! HolySymbols 202360                    @setvar! HolyLightAvailable 12361                    @setvar! NobleSacrificeAvailable 12362                    @setvar! CleanseByFireAvailable 12363                    @setvar! CloseWoundsAvailable 12364                    @setvar! DivineFuryAvailable 12365                    @setvar! EnemyOfOneAvailable 12366                    @setvar! ConsecrateWeaponAvailable 12367                elseif ingump "21/" 13879303252368                    @setvar! HolySymbols 212369                    @setvar! HolyLightAvailable 12370                    @setvar! NobleSacrificeAvailable 12371                    @setvar! CleanseByFireAvailable 12372                    @setvar! CloseWoundsAvailable 12373                    @setvar! DivineFuryAvailable 12374                    @setvar! EnemyOfOneAvailable 12375                    @setvar! ConsecrateWeaponAvailable 12376                elseif ingump "11/" 13879303252377                    @setvar! HolySymbols 112378                    @setvar! HolyLightAvailable 12379                    @setvar! NobleSacrificeAvailable 12380                    @setvar! CleanseByFireAvailable 12381                    @setvar! CloseWoundsAvailable 12382                    @setvar! DivineFuryAvailable 12383                    @setvar! EnemyOfOneAvailable 12384                    @setvar! ConsecrateWeaponAvailable 12385                elseif ingump "10/" 13879303252386                    @setvar! HolySymbols 102387                    @setvar! HolyLightAvailable 12388                    @setvar! NobleSacrificeAvailable 12389                    @setvar! CleanseByFireAvailable 12390                    @setvar! CloseWoundsAvailable 12391                    @setvar! DivineFuryAvailable 12392                    @setvar! EnemyOfOneAvailable 12393                    @setvar! ConsecrateWeaponAvailable 12394                elseif ingump "9/" 13879303252395                    @setvar! HolySymbols 92396                    @setvar! HolyLightAvailable 12397                    @setvar! NobleSacrificeAvailable 12398                    @setvar! CleanseByFireAvailable 12399                    @setvar! CloseWoundsAvailable 12400                    @setvar! DivineFuryAvailable 12401                    @setvar! EnemyOfOneAvailable 12402                    @setvar! ConsecrateWeaponAvailable 12403                elseif ingump "8/" 13879303252404                    @setvar! HolySymbols 82405                    @setvar! HolyLightAvailable 12406                    @setvar! NobleSacrificeAvailable 12407                    @setvar! CleanseByFireAvailable 12408                    @setvar! CloseWoundsAvailable 12409                    @setvar! DivineFuryAvailable 12410                    @setvar! EnemyOfOneAvailable 12411                    @setvar! ConsecrateWeaponAvailable 12412                elseif ingump "7/" 13879303252413                    @setvar! HolySymbols 72414                    @setvar! HolyLightAvailable 12415                    @setvar! NobleSacrificeAvailable 12416                    @setvar! CleanseByFireAvailable 12417                    @setvar! CloseWoundsAvailable 12418                    @setvar! DivineFuryAvailable 12419                    @setvar! EnemyOfOneAvailable 02420                    @setvar! ConsecrateWeaponAvailable 12421                elseif ingump "6/" 13879303252422                    @setvar! HolySymbols 62423                    @setvar! HolyLightAvailable 12424                    @setvar! NobleSacrificeAvailable 12425                    @setvar! CleanseByFireAvailable 12426                    @setvar! CloseWoundsAvailable 12427                    @setvar! DivineFuryAvailable 02428                    @setvar! EnemyOfOneAvailable 02429                    @setvar! ConsecrateWeaponAvailable 02430                elseif ingump "5/" 13879303252431                    @setvar! HolySymbols 52432                    @setvar! HolyLightAvailable 12433                    @setvar! NobleSacrificeAvailable 12434                    @setvar! CleanseByFireAvailable 12435                    @setvar! CloseWoundsAvailable 12436                    @setvar! DivineFuryAvailable 02437                    @setvar! EnemyOfOneAvailable 02438                    @setvar! ConsecrateWeaponAvailable 02439                elseif ingump "4/" 13879303252440                    @setvar! HolySymbols 42441                    @setvar! HolyLightAvailable 02442                    @setvar! NobleSacrificeAvailable 12443                    @setvar! CleanseByFireAvailable 12444                    @setvar! CloseWoundsAvailable 12445                    @setvar! DivineFuryAvailable 02446                    @setvar! EnemyOfOneAvailable 02447                    @setvar! ConsecrateWeaponAvailable 02448                elseif ingump "3/" 13879303252449                    @setvar! HolySymbols 32450                    @setvar! HolyLightAvailable 02451                    @setvar! NobleSacrificeAvailable 02452                    @setvar! CleanseByFireAvailable 12453                    @setvar! CloseWoundsAvailable 12454                    @setvar! DivineFuryAvailable 02455                    @setvar! EnemyOfOneAvailable 02456                    @setvar! ConsecrateWeaponAvailable 02457                elseif ingump "2/" 13879303252458                    @setvar! HolySymbols 22459                    @setvar! HolyLightAvailable 02460                    @setvar! NobleSacrificeAvailable 02461                    @setvar! CleanseByFireAvailable 12462                    @setvar! CloseWoundsAvailable 02463                    @setvar! DivineFuryAvailable 02464                    @setvar! EnemyOfOneAvailable 02465                    @setvar! ConsecrateWeaponAvailable 02466                elseif ingump "1/" 13879303252467                    @setvar! HolySymbols 12468                    @setvar! HolyLightAvailable 02469                    @setvar! NobleSacrificeAvailable 02470                    @setvar! CleanseByFireAvailable 02471                    @setvar! CloseWoundsAvailable 02472                    @setvar! DivineFuryAvailable 02473                    @setvar! EnemyOfOneAvailable 02474                    @setvar! ConsecrateWeaponAvailable 02475                elseif ingump "0/" 13879303252476                    @setvar! HolySymbols 02477                    @setvar! HolyLightAvailable 02478                    @setvar! NobleSacrificeAvailable 02479                    @setvar! CleanseByFireAvailable 02480                    @setvar! CloseWoundsAvailable 02481                    @setvar! DivineFuryAvailable 02482                    @setvar! EnemyOfOneAvailable 02483                    @setvar! ConsecrateWeaponAvailable 02484                endif2485            endif2486 2487            if EnableNobleSacrifice = 12488                if diffhits >= NobleSacrificeHPdiff and skill "Chivalry" >= 80 and timer 'NobleSacrificeTimer' > 31000 and timer 'ChivalryPrevented' > 5000 and NobleSacrificeAvailable = 12489                    clearsysmsg2490                    yell "[NobleSacrifice"2491                    wait 2502492                    if insysmsg "You do not have enough holy"2493                        settimer 'ChivalryPrevented' 02494                        clearsysmsg2495                    else2496                        wft 10002497                        target 'self'2498                        if EnableOverheadMessages = 12499                            overhead "[ NOBLE SACRIFICE! ]" 1552500                        endif2501                        settimer 'NobleSacrificeTimer' 02502                        cooldown "Noble Sacrifice" 310002503                        settimer 'ChivalryPrevented' 40002504                    endif2505                    wait 2502506                endif2507            endif2508 2509            if EnableHolyLight = 12510                if diffhits >= HolyLightHPdiff and skill "Chivalry" >= 95 and timer 'HolyLightTimer' > 31000 and timer 'ChivalryPrevented' > 5000 and HolyLightAvailable = 12511                    clearsysmsg2512                    yell "[HolyLight"2513                    wait 2502514                    if insysmsg "You do not have enough holy"2515                        settimer 'ChivalryPrevented' 02516                        clearsysmsg2517                    else2518                        if EnableOverheadMessages = 12519                            overhead "[ HOLY LIGHT! ]" 2542520                        endif2521                        settimer 'HolyLightTimer' 02522                        cooldown "Holy Light" 310002523                        settimer 'ChivalryPrevented' 40002524                    endif2525                    wait 2502526                endif2527            endif2528 2529            if paralyzed and EnableAutoParalyzePouch = 12530                if findtype "pouch" self2531                    yell "[pouch"2532                    wait 2502533                    hotkey 'Toggle Peace Only'2534                    @setvar! RedTargetFound 12535                    @setvar! WarModeToggledWhileFighting 02536                    if DUNGEONMODE = 12537                        @setvar! TimeToGo 12538                    elseif WILDERNESSMODE = 12539                        @setvar! AutoRecallTime 12540                    endif2541                else2542                    if timer PopPouchMessageTimer > 5000 and EnableOverheadMessages = 12543                        overhead "[ NO MORE POUCHES! ]" 3372544                        settimer PopPouchMessageTimer 02545                    endif2546                endif2547            endif2548 2549            if diffhits > 0 and not bandaging2550                if skill 'healing' > 02551                    if findtype 'clean bandage%s%' self2552                        if targetexists2553                            hotkey 'cancel current target'2554                        endif2555                        hotkey 'Bandage Self'2556                        if EnableOverheadMessages = 12557                            if timer BandageMessageTimer > 50002558                                overhead "[ BANDAGING... ]" 882559                                settimer BandageMessageTimer 02560                            endif2561                        endif2562                    else2563                        if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 12564                            overhead "[ OUT OF BANDAGES! ]" 3372565                            settimer BandageMessageTimer 02566                        endif2567                    endif2568                endif2569            endif2570 2571            if EnablePanaceaPotion = 1 and skill 'Alchemy' >= 802572                if findbuff "Bleed" or findbuff "Diseased"2573                    if not findbuff "panacea potion cooldown"2574                        if findtype "Orange Potion" self2575                            dclicktype "Orange Potion"2576                            wait 2502577                            if findbuff "panacea potion cooldown" and EnableOverheadMessages = 12578                                overhead '[ PANACEA ACTIVATED ]' 552579                                cooldown "Panacea Potion" 300002580                            endif2581                        endif2582                    endif2583                endif2584            endif2585 2586            if EnableCleansingBrews = 12587                if findbuff "Diseased" or findbuff "Bleed"2588                    if timer CleansingBrewTimer > 1200002589                        if findtype 50675 self 2935 as CleansingBrew2590                            dclick CleansingBrew2591                            if EnableOverheadMessages = 12592                                overhead '[ CLEANSING BREW ]' 21172593                            endif2594                            cooldown 'Cleansing Brew' 1200002595                            settimer CleansingBrewTimer 02596                            wait 2502597                        else2598                            if timer CleansingBrewOverhead > 150002599                                overhead "[ NO CLEANSING BREWS! ]" 3372600                                settimer CleansingBrewOverhead 02601                                settimer CleansingBrewTimer 02602                            endif2603                        endif2604                    else2605                        if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 150002606                            overhead '[ BREW ON COOLDOWN! ]' 372607                            settimer CleansingBrewOverhead 02608                        endif2609                    endif2610                endif2611            endif2612 2613            if EnableCurePotion = 1 and not dead2614                while poisoned2615                    if EnableCleanseByFire = 12616                        if skill "Chivalry" >= 60 and poisoned and timer "CleanseByFireTimer" > 31000 and timer "ChivalryPrevented" > 5000 and timer "DivineFuryTimer" < 31000 and CleanseByFireAvailable = 12617                            clearsysmsg2618                            yell "[CleanseByFire"2619                            wait 2502620                            if insysmsg "You do not have enough holy"2621                                settimer "ChivalryPrevented" 02622                                clearsysmsg2623                            else2624                                settimer "CleanseByFireTimer" 02625                                settimer "ChivalryPrevented" 40002626                                cooldown "Cleanse By Fire" 310002627                                if EnableOverheadMessages = 12628                                    overhead "[ CLEANSE BY FIRE! ]" 432629                                endif2630                            endif2631                            wait 2502632                        endif2633                    endif2634 2635                    if findtype "Orange Potion" self2636                        dclicktype "Orange Potion"2637                        if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 35002638                            overhead "[ CURE POTION ]" 442639                            settimer 'CurePotionMessageTimer' 02640                        endif2641                        wait 2502642                    else2643                        if timer 'CurePotionMessageTimer' > 50002644                            overhead "[ NO CURE POTS! ]" 3372645                            settimer 'CurePotionMessageTimer' 02646                        endif2647                        if not findtype 3972 self or not findtype 3973 self2648                            break2649                        endif2650                    endif2651                    if not poisoned2652                        break2653                    endif2654                endwhile2655            endif2656 2657            if SetWeaponCodexStance = 6 and timer WeaponCodexTimer > 25002658                if skill 'Swordsmanship' >= 80 and UsingSwords = 12659                    if findtype "sword codex" self as MyCodex2660                        getlabel MyCodex MyCodexDesc2661                    endif2662                    wait 2002663                    if AutoWeaponStanceSetting != 02664                        if "Defensive" in MyCodexDesc2665                            // Do nothing2666                        else2667                            yell '[SwordsStance2'2668                            settimer "WeaponCodexTimer" 02669                            wait 2502670                        endif2671                    endif2672                elseif skill 'Mace Fighting' >= 80 and UsingMacing = 12673                    if findtype "macing codex" self as MyCodex2674                        getlabel MyCodex MyCodexDesc2675                    endif2676                    wait 2002677                    if AutoWeaponStanceSetting != 02678                        if "Defensive" in MyCodexDesc2679                            // Do nothing2680                        else2681                            yell '[MacingStance2'2682                            settimer "WeaponCodexTimer" 02683                            wait 2502684                        endif2685                    endif2686                elseif skill 'Fencing' >= 80 and UsingFencing = 12687                    if findtype "fencing codex" self as MyCodex2688                        getlabel MyCodex MyCodexDesc2689                    endif2690                    wait 2002691                    if AutoWeaponStanceSetting != 02692                        if "Defensive" in MyCodexDesc2693                            // Do nothing2694                        else2695                            yell '[FencingStance2'2696                            settimer "WeaponCodexTimer" 02697                            wait 2502698                        endif2699                    endif2700                elseif skill 'Archery' >= 80 and UsingArchery = 12701                    if findtype "archery codex" self as MyCodex2702                        getlabel MyCodex MyCodexDesc2703                    endif2704                    wait 2002705                    if AutoWeaponStanceSetting != 02706                        if "Fowling" in MyCodexDesc2707                            // Do nothing2708                        else2709                            yell "[ArcheryAmmunition2"2710                            settimer "WeaponCodexTimer" 02711                            wait 2502712                        endif2713                    endif2714                elseif skill 'Wrestling' >= 80 and UsingWrestling = 12715                    if findtype "wrestling codex" self as MyCodex2716                        getlabel MyCodex MyCodexDesc2717                    endif2718                    wait 2002719                    if AutoWeaponStanceSetting != 02720                        if "Crab" in MyCodexDesc2721                            // Do nothing2722                        else2723                            yell '[WrestlingStance2'2724                            settimer "WeaponCodexTimer" 02725                            wait 2502726                        endif2727                    endif2728                elseif skill 'Throwing' >= 80 and UsingThrowing = 12729                    if findtype "throwing codex" self as MyCodex2730                        getlabel MyCodex MyCodexDesc2731                    endif2732                    wait 2002733                    if AutoWeaponStanceSetting != 02734                        if "Suppress" in MyCodexDesc2735                            // Do nothing2736                        else2737                            yell '[ThrowingStance2'2738                            settimer "WeaponCodexTimer" 02739                            wait 2502740                        endif2741                    endif2742                elseif skill 'Dual Wielding' >= 80 and UsingDualWield = 12743                    if findtype "dual wield codex" self as MyCodex2744                        getlabel MyCodex MyCodexDesc2745                    endif2746                    wait 2002747                    if AutoWeaponStanceSetting != 02748                        if "Defensive" in MyCodexDesc2749                            // Do nothing2750                        else2751                            yell '[DualWieldingStance2'2752                            settimer "WeaponCodexTimer" 02753                            wait 2502754                        endif2755                    endif2756                endif2757            endif2758 2759            if SetShieldCodexStance = 6 and findbuff "Bleed" or findbuff "Diseased" or poisoned2760                if skill 'Parrying' >= 802761                    if findtype "shield codex" self as ShieldCodex2762                        getlabel ShieldCodex ShieldCodexDesc2763                    endif2764 2765                    if AutoShieldStanceSetting != 02766                        if "Warding" in ShieldCodexDesc2767                            // Do nothing2768                        else2769                            yell '[ShieldsStance2'2770                            settimer "ShieldCodexTimer" 02771                            wait 2502772                        endif2773                    endif2774                endif2775            endif2776 2777            if EnableCloseWounds = 12778                if findbuff "Bleed" or findbuff "Diseased"2779                    if skill "chivalry" >= 70 and timer "CloseWoundsTimer" > 31000 and timer "ChivalryPrevented" > 5000 and CloseWoundsAvailable = 12780                        clearsysmsg2781                        yell "[CloseWounds"2782                        wait 2502783                        if insysmsg "You do not have enough holy"2784                            settimer "ChivalryPrevented" 02785                            clearsysmsg2786                        else2787                            settimer "CloseWoundsTimer" 02788                            settimer "ChivalryPrevented" 40002789                            cooldown "Close Wounds" 310002790                            if EnableOverheadMessages = 12791                                overhead "[ CLOSE WOUNDS! ]" 482792                            endif2793                        endif2794                        wait 2502795                    endif2796                endif2797            endif2798 2799            if EnableCleanseByFire = 12800                if skill "chivalry" >= 60 and poisoned and timer "CleanseByFireTimer" > 31000 and timer "ChivalryPrevented" > 5000 and CleanseByFireAvailable = 12801                    clearsysmsg2802                    yell "[CleanseByFire"2803                    wait 2502804                    if insysmsg "You do not have enough holy"2805                        settimer "ChivalryPrevented" 02806                        clearsysmsg2807                    else2808                        settimer "CleanseByFireTimer" 02809                        settimer "ChivalryPrevented" 40002810                        cooldown "Cleanse By Fire" 310002811                        if EnableOverheadMessages = 12812                            overhead "[ CLEANSE BY FIRE! ]" 432813                        endif2814                    endif2815                    wait 2502816                endif2817            endif2818 2819            if EnableRefreshPotion = 1 and diffstam >= RefreshPotionSPdiff2820                if findtype "Red Potion" self2821                    dclicktype "Red Potion"2822                    if EnableOverheadMessages = 12823                        overhead "[ REFRESH POTION ]" 372824                    endif2825                    wait 2502826                else2827                    if timer RefreshPotionMessageTimer > 45002828                        overhead "[ NO REFRESH POTS! ]" 3372829                        settimer RefreshPotionMessageTimer 02830                    endif2831                endif2832            endif2833 2834            if EnableWeightWarningMessage = 12835                if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer "WeightTimer" > 60002836                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 22837                        overhead "[ WEIGHT WARNING... ]" 772838                        settimer "WeightTimer" 02839                    else2840                        overhead " � " 772841                        settimer "WeightTimer" 02842                    endif2843                    elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer "WeightTimer" > 60002844                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 22845                        overhead "[ WEIGHT WARNING! ]" 1532846                        settimer "WeightTimer" 02847                    else2848                        overhead " � " 1532849                        settimer "WeightTimer" 02850                    endif2851                elseif diffweight <= RedWeightLimitDiffWeight and timer "WeightTimer" > 60002852                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 22853                        overhead "[ WEIGHT LIMIT REACHED! ]" 372854                        settimer "WeightTimer" 02855                    else2856                        overhead " � " 372857                        settimer "WeightTimer" 02858                    endif2859                endif2860            endif2861 2862            if timer "AttackingTimer" > 10002863                if varexist DisengagedTarget2864                    @unignore DisengagedTarget2865 2866                    if not dead DisengagedTarget and find DisengagedTarget ground -1 -1 TargetAnalyzeRange and not find DisengagedTarget ground -1 -1 TargetDisengageRange2867                        @ignore DisengagedTarget2868                    else2869                        unsetvar DisengagedTarget2870                    endif2871                endif2872 2873                clearsysmsg2874                hotkey 'target closest grey monster'2875                getlabel backpack backpacklabel2876                wait 2502877 2878                if insysmsg 'No one matching that'2879                    // Do nothing2880                else2881                    @setvar! TargetToAnalyze lasttarget2882                    getlabel TargetToAnalyze ClosestTargetLabel2883 2884                    if inlist animalsIgnoreList ClosestTargetLabel2885                        if timer "IgnoreMOBtimer" > 25002886                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 22887                                overhead '[ IGNORING MOB! ]' 333 TargetToAnalyze2888                            else2889                                overhead " � " 333 TargetToAnalyze2890                            endif2891                            getlabel backpack backpacklabel2892                            settimer "IgnoreMOBtimer" 02893                        endif2894                        @ignore TargetToAnalyze2895                    else2896                        if find TargetToAnalyze ground -1 -1 6 or find ClosestTarget ground -1 -1 62897                            if TargetToAnalyze != ClosestTarget2898                                @setvar! ClosestTarget lasttarget2899                                getlabel ClosestTarget ClosestTargetLabel2900                                attack ClosestTarget2901                            else2902                                attack ClosestTarget2903                            endif2904                        endif2905                    endif2906                endif2907                settimer "AttackingTimer" 02908            endif2909 2910            if EnableOverheadMessages = 1 or EnableOverheadMessages = 22911                if timer 'TargetAcquired' > 25002912                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange and not dead ClosestTarget2913                        overhead " � PARAGON! � " 12 ClosestTarget2914                        settimer "TargetAcquired" 02915                        settimer "NoTargetTimer" 02916                        attack ClosestTarget2917                    elseif find ClosestTarget ground -1 -1 TargetAttackRange and not dead ClosestTarget2918                        overhead "[ TARGET ]" 253 ClosestTarget2919                        overhead " � " 253 ClosestTarget2920                        settimer "TargetAcquired" 02921                        settimer "NoTargetTimer" 02922                        attack ClosestTarget2923                    elseif find ClosestTarget ground -1 -1 6 and not dead ClosestTarget2924                        overhead "[ TARGET ]" 44 ClosestTarget2925                        overhead " � " 44 ClosestTarget2926                        settimer "TargetAcquired" 02927                        settimer "NoTargetTimer" 02928                        attack ClosestTarget2929                    endif2930                endif2931            else2932                if timer 'TargetAcquired' > 30002933                    if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange and not dead ClosestTarget2934                        overhead " ��� " 12 ClosestTarget2935                        settimer "TargetAcquired" 02936                        settimer "NoTargetTimer" 02937                        attack ClosestTarget2938                    elseif find ClosestTarget ground -1 -1 TargetAttackRange and not dead ClosestTarget2939                        overhead " � " 253 ClosestTarget2940                        settimer "TargetAcquired" 02941                        settimer "NoTargetTimer" 02942                        attack ClosestTarget2943                    elseif find ClosestTarget ground -1 -1 6 and not dead ClosestTarget2944                        overhead " � " 44 ClosestTarget2945                        settimer "TargetAcquired" 02946                        settimer "NoTargetTimer" 02947                        attack ClosestTarget2948                    endif2949                endif2950            endif2951 2952            if EnableUsePotionKegs = 1 and findtype 'empty bottle%s%' self and findtype 'keg' self and timer 'PotionKegPVPCooldown' > 300002953                if not timerexists PotionKegTimer2954                    createtimer PotionKegTimer2955                    settimer PotionKegTimer 50002956                endif2957 2958                @setvar! PotionStockCheck 02959 2960                while PotionStockCheck < 8 and findtype 'empty bottle%s%' self2961                    @setvar! PotionAmounttoFill 02962                    if PotionStockCheck = 02963                        if ExplosionPotionAmount != 02964                            @setvar! PotionType 38532965                            @setvar! KegColour 4192966                            @setvar! PotionAmounttoFill ExplosionPotionAmount2967                        endif2968                        @setvar! PotionStockCheck 12969                    elseif PotionStockCheck = 12970                        if HealingPotionAmount != 02971                            @setvar! PotionType 38522972                            @setvar! KegColour 2532973                            @setvar! PotionAmounttoFill HealingPotionAmount2974                        endif2975                        @setvar! PotionStockCheck 22976                    elseif PotionStockCheck = 22977                        if CurePotionAmount != 02978                            @setvar! PotionType 38472979                            @setvar! KegColour 442980                            @setvar! PotionAmounttoFill CurePotionAmount2981                        endif2982                        @setvar! PotionStockCheck 32983                    elseif PotionStockCheck = 32984                        if RefreshPotionAmount != 02985                            @setvar! PotionType 38512986                            @setvar! KegColour 372987                            @setvar! PotionAmounttoFill RefreshPotionAmount2988                        endif2989                        @setvar! PotionStockCheck 42990                    elseif PotionStockCheck = 42991                        if StrengthPotionAmount != 02992                            @setvar! PotionType 38492993                            @setvar! KegColour 9562994                            @setvar! PotionAmounttoFill StrengthPotionAmount2995                        endif2996                        @setvar! PotionStockCheck 52997                    elseif PotionStockCheck = 52998                        if AgilityPotionAmount != 02999                            @setvar! PotionType 38483000                            @setvar! KegColour 933001                            @setvar! PotionAmounttoFill AgilityPotionAmount3002                        endif3003                        @setvar! PotionStockCheck 63004                    elseif PotionStockCheck = 63005                        if ResistPotionAmount != 03006                            @setvar! PotionType 38463007                            @setvar! KegColour 11093008                            @setvar! PotionAmounttoFill ResistPotionAmount3009                        endif3010                        @setvar! PotionStockCheck 73011                    elseif PotionStockCheck = 73012                        if PoisonPotionAmount != 03013                            @setvar! PotionType 38503014                            @setvar! KegColour 3633015                            @setvar! PotionAmounttoFill PoisonPotionAmount3016                        endif3017                        @setvar! PotionStockCheck 83018                    endif3019 3020                    if PotionAmounttoFill != 03021                        while counttype PotionType self < PotionAmounttoFill3022                            if not findtype 'empty bottle%s%' self3023                                if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50003024                                    overhead "[ NO EMPTY BOTTLES... ]" 3373025                                    settimer 'PotionKegTimer' 03026                                endif3027                                break3028                            endif3029 3030                            if diffhits > 103031                                break3032                            endif3033 3034                            if findtype 'keg' self KegColour as myKeg3035                                dclick myKeg3036                                wait 2503037                                if EnableOverheadMessages = 13038                                    if timer 'PotionKegTimer' > 20003039                                        overhead '[ FILLING POTS... ]' KegColour3040                                        settimer 'PotionKegTimer' 03041                                    endif3042                                endif3043                            else3044                                if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50003045                                    overhead "[ NO KEG TO USE... ]" KegColour3046                                    settimer 'PotionKegTimer' 03047                                endif3048                                break3049                            endif3050                            if insysmsg "You have been in combat with another player"3051                                settimer "PotionKegPVPCooldown" 03052                                break3053                            endif3054                        endwhile3055 3056                        if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self3057                            if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50003058                                overhead "[ NO EMPTY BOTTLES... ]" 3373059                                settimer 'PotionKegTimer' 03060                            endif3061                            break3062                        endif3063                    endif3064                endwhile3065            endif3066 3067            if EnableOverheadMessages = 13068                if insysmsg "something invisible out of"3069                    overhead "� SOMEONE HIDING! �" 63070                endif3071 3072                if insysmsg "additional mastery chain link"3073                    overhead "[ CHAIN LINK UNLOCKED!! ]" 1493074                    wait 5003075                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown3076                        wait 5003077                        say "[Yell"3078                        settimer EmoteCooldownTimer 03079                        cooldown "Emote Cooldown" SetEmoteCooldown3080                    endif3081                endif3082 3083                if insysmsg "enough experience to upgrade"3084                    overhead "[ ASPECT TIER UNLOCKED!! ]" 22343085                    wait 5003086                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown3087                        wait 5003088                        say "[Whistle"3089                        settimer EmoteCooldownTimer 03090                        cooldown "Emote Cooldown" SetEmoteCooldown3091                    endif3092                endif3093 3094                if insysmsg "You have unlocked a codex upgrade point"3095                    overhead "[ CODEX POINT UNLOCKED! ]" 21143096                    wait 2503097                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown3098                        wait 5003099                        say "[HighFive"3100                        settimer EmoteCooldownTimer 03101                        cooldown "Emote Cooldown" SetEmoteCooldown3102                    endif3103                endif3104 3105                if insysmsg "You have completed a society job"3106                    overhead "[ SOCIETY COMPLETE! ]" 4193107                    wait 5003108                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown3109                        wait 5003110                        say "[Yes"3111                        settimer EmoteCooldownTimer 03112                        cooldown "Emote Cooldown" SetEmoteCooldown3113                    endif3114                endif3115 3116                if insysmsg "You execute your target"3117                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown3118                        wait 5003119                        say "[Awoo"3120                        settimer EmoteCooldownTimer 03121                        cooldown "Emote Cooldown" SetEmoteCooldown3122                    else3123                        overhead "[ EXECUTION!! ]" 373124                    endif3125                endif3126 3127                if insysmsg "You shatter your target"3128                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown3129                        wait 5003130                        say "[Awoo"3131                        settimer EmoteCooldownTimer 03132                        cooldown "Emote Cooldown" SetEmoteCooldown3133                    else3134                        overhead "[ SHATTERED!! ]" 3333135                    endif3136                endif3137 3138                if insysmsg "You deliver a coup de grace"3139                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown3140                        wait 5003141                        say "[Bark"3142                        settimer EmoteCooldownTimer 03143                        cooldown "Emote Cooldown" SetEmoteCooldown3144                    else3145                        overhead "[ COUP DE GRACE! ]" 1873146                    endif3147                endif3148 3149                if insysmsg "en garde"3150                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown3151                        wait 5003152                        say "[Bark"3153                        settimer EmoteCooldownTimer 03154                        cooldown "Emote Cooldown" SetEmoteCooldown3155                    else3156                        overhead "En garde!" 1873157                    endif3158                endif3159 3160                if insysmsg "You pulverize your target" and not dead ClosestTarget3161                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown3162                        wait 5003163                        say "[Awoo"3164                        settimer EmoteCooldownTimer 03165                        cooldown "Emote Cooldown" SetEmoteCooldown3166                    else3167                        overhead "*[ PULVERIZED! ]" 420 ClosestTarget3168                    endif3169                endif3170 3171                if insysmsg "You smash" and not dead ClosestTarget3172                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown3173                        wait 5003174                        say "[Awoo"3175                        settimer EmoteCooldownTimer 03176                        cooldown "Emote Cooldown" SetEmoteCooldown3177                    else3178                        overhead "[ SMASHED! ]" 187 ClosestTarget3179                    endif3180                endif3181 3182                if insysmsg "Your attack cripples your target" and not dead ClosestTarget3183                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown3184                        wait 5003185                        say "[Awoo"3186                        settimer EmoteCooldownTimer 03187                        cooldown "Emote Cooldown" SetEmoteCooldown3188                    else3189                        overhead "[ CRIPPLED! ]" 187 ClosestTarget3190                    endif3191                endif3192 3193                if insysmsg "Society Job Progress"3194                    overhead "[ � SOCIETY POINTS � ]" 4193195                endif3196 3197                if insysmsg "causes you to bleed"3198                    overhead "[ YOU ARE BLEEDING... ]" 21183199                endif3200 3201                if insysmsg "been struck by an ancient blight"3202                    overhead "[ DISEASED... ]" 11093203                endif3204 3205                if insysmsg "You feel chilled!"3206                    overhead "[ YOU ARE CHILLED... ]" 22343207                endif3208 3209                if insysmsg "You resist a disease effect"3210                    overhead "[ DISEASE RESISTED! ]" 8883211                endif3212 3213                if insysmsg "resist a bleed"3214                    overhead "[ BLEED RESISTED! ]" 8883215                endif3216 3217                if insysmsg "The creature pierces and bypasses your armor!"3218                    overhead "[ YOU ARE PIERCED... ]" 3373219                endif3220 3221                if insysmsg "You cause your target to bleed out" and not dead ClosestTarget3222                    overhead "[ BLEED OUT! ]" 2118 ClosestTarget3223                endif3224 3225                if insysmsg "Your attack causes your target to bleed" and not dead ClosestTarget3226                    overhead "[ BLEED! ]" 2118 ClosestTarget3227                    @setvar! TargetisBleeding 13228                endif3229 3230                if insysmsg "Your shot hinders" and not dead ClosestTarget3231                    overhead "[ HINDERED! ]" 149 ClosestTarget3232                endif3233 3234                if insysmsg "Your strike disarms your target!" and not dead ClosestTarget3235                    overhead "[ DISARMED! ]" 2114 ClosestTarget3236                endif3237 3238                if insysmsg "Their attack disarms you!"3239                    overhead "[ DISARMED! ]" 3373240                endif3241 3242                if insysmsg "Your attack hamstrings your target!" and not dead ClosestTarget3243                    overhead "[ HAMSTRUNG! ]" 2117 ClosestTarget3244                endif3245 3246                if insysmsg "Their attack hamstrings you!"3247                    overhead "[ HAMSTRUNG! ]" 3373248                endif3249 3250                if insysmsg "Your target overpowers" and not dead ClosestTarget3251                    overhead "[ VICIOUS WOUND! ]" 1664 ClosestTarget3252                endif3253 3254                if insysmsg "Barding break avoided" and not dead ClosestTarget3255                    overhead "[ BREAK AVOIDED! ]" 84 ClosestTarget3256                endif3257 3258                if insysmsg "You parry the spell"3259                    overhead "[ SPELL PARRY ]" 1113260                endif3261 3262                if insysmsg "Frost Shell activated"3263                    overhead "[ FROST SHELL! ]" 22343264                endif3265 3266                if insysmsg "Judgment activated"3267                    overhead "[ JUDGMENT! ]" 21143268                endif3269 3270                if insysmsg "Cacophony activated"3271                    overhead "[ j CACOPHONY! j ]" 22413272                endif3273 3274                if insysmsg "You perform a feint"3275                    overhead "[ FEINT! ]" 1873276                endif3277 3278                if insysmsg "attempting to steal" or insysmsg "attempting to peek"3279                    overhead "[ THIEF DETECTED! ]" 9103280                endif3281            else3282                if insysmsg "something invisible out of"3283                    overhead "� SOMEONE HIDING! �" 63284                endif3285 3286                if insysmsg "additional mastery chain link"3287                    overhead "[ � CHAIN! � ]" 1493288                    wait 5003289                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown3290                        wait 5003291                        say "[Yell"3292                        settimer EmoteCooldownTimer 03293                        cooldown "Emote Cooldown" SetEmoteCooldown3294                    endif3295                endif3296 3297                if insysmsg "enough experience to upgrade"3298                    overhead "[ � ASPECT � ]" 22343299                    wait 5003300                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 03301                        wait 5003302                        say "[Whistle"3303                        settimer EmoteCooldownTimer 03304                        cooldown "Emote Cooldown" SetEmoteCooldown3305                    endif3306                endif3307 3308                if insysmsg "You have unlocked a codex upgrade point"3309                    overhead '[ � CODEX! � ]' 21143310                    wait 2503311                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 03312                        wait 5003313                        say "[HighFive"3314                        settimer EmoteCooldownTimer 03315                        cooldown "Emote Cooldown" SetEmoteCooldown3316                    endif3317                endif3318 3319                if insysmsg "You have completed a society job"3320                    overhead "[ SOCIETY COMPLETE! ]" 4193321                    wait 5003322                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 03323                        wait 5003324                        say "[Yes"3325                        settimer EmoteCooldownTimer 03326                        cooldown "Emote Cooldown" SetEmoteCooldown3327                    endif3328                endif3329 3330                if insysmsg "You deliver a coup de grace"3331                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 03332                        wait 5003333                        say "[Bark"3334                        settimer EmoteCooldownTimer 03335                        cooldown "Emote Cooldown" SetEmoteCooldown3336                    else3337                        overhead "*coup de grace!*" 1873338                    endif3339                endif3340 3341                if insysmsg "en garde"3342                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 03343                        wait 5003344                        say "[Bark"3345                        settimer EmoteCooldownTimer 03346                        cooldown "Emote Cooldown" SetEmoteCooldown3347                    else3348                        overhead "En garde!" 1873349                    endif3350                endif3351 3352                if insysmsg "You cause your target to bleed out" and not dead ClosestTarget3353                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 03354                        wait 5003355                        say "[Awoo"3356                        settimer EmoteCooldownTimer 03357                        cooldown "Emote Cooldown" SetEmoteCooldown3358                    else3359                        overhead "*bleeding out!*" 2118 ClosestTarget3360                    endif3361                endif3362 3363                if insysmsg "You execute your target" and not dead ClosestTarget3364                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 03365                        wait 5003366                        say "[Awoo"3367                        settimer EmoteCooldownTimer 03368                        cooldown "Emote Cooldown" SetEmoteCooldown3369                    else3370                        overhead "*executed!*" 2118 ClosestTarget3371                    endif3372                endif3373 3374                if insysmsg "You shatter your target" and not dead ClosestTarget3375                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 03376                        wait 5003377                        say "[Awoo"3378                        settimer EmoteCooldownTimer 03379                        cooldown "Emote Cooldown" SetEmoteCooldown3380                    else3381                        overhead "*shattered!*" 420 ClosestTarget3382                    endif3383                endif3384 3385                if insysmsg "You pulverize your target" and not dead ClosestTarget3386                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 03387                        wait 5003388                        say "[Awoo"3389                        settimer EmoteCooldownTimer 03390                        cooldown "Emote Cooldown" SetEmoteCooldown3391                    else3392                        overhead "*pulverized!*" 420 ClosestTarget3393                    endif3394                endif3395 3396                if insysmsg "You smash" and not dead ClosestTarget3397                    if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 03398                        wait 5003399                        say "[Awoo"3400                        settimer EmoteCooldownTimer 03401                        cooldown "Emote Cooldown" SetEmoteCooldown3402                    else3403                        overhead "*smashed*" 333 ClosestTarget3404                    endif3405                endif3406 3407                if insysmsg "Society Job Progress"3408                    overhead "[ � SOCIETY � ]" 4193409                endif3410 3411                if insysmsg "attempting to steal" or insysmsg "attempting to peek"3412                    overhead "[ THIEF DETECTED! ]" 9103413                endif3414 3415                if insysmsg "Cacophony activated"3416                    overhead " j j j " 22413417                endif3418 3419                if insysmsg "You perform a feint"3420                    overhead "*feint*" 1873421                endif3422 3423                if insysmsg "causes your target to bleed" and not dead ClosestTarget3424                    overhead "*bleeding*" 2118 ClosestTarget3425                    @setvar! TargetisBleeding 13426                endif3427 3428                if insysmsg "Your attack cripples your target" and not dead ClosestTarget3429                    overhead "*crippled*" 333 ClosestTarget3430                endif3431 3432                if insysmsg "Your target overpowers" and not dead ClosestTarget3433                    overhead "*vicious wound*" 1664 ClosestTarget3434                endif3435 3436                if insysmsg "Your shot hinders" and not dead ClosestTarget3437                    overhead "*hindered*" 149 ClosestTarget3438                endif3439 3440                if insysmsg "Your strike disarms your target!" and not dead ClosestTarget3441                    overhead "*disarmed*" 2114 ClosestTarget3442                endif3443 3444                if insysmsg "Their attack disarms you!"3445                    overhead "*disarmed*" 3373446                endif3447 3448                if insysmsg "Your attack hamstrings your target!" and not dead ClosestTarget3449                    overhead "*hamstrung*" 2117 ClosestTarget3450                endif3451 3452                if insysmsg "Their attack hamstrings you!"3453                    overhead "*hamstrung*" 3373454                endif3455 3456                if insysmsg "You parry the spell"3457                    overhead "*spell parry*" 1113458                endif3459            endif3460 3461            if not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange3462                @setvar! SkipCheckSection 13463            elseif not dead ClosestTarget and find ClosestTarget ground -1 -1 63464                @setvar! SkipCheckSection 13465            else3466                @setvar! SkipCheckSection 03467            endif3468 3469            if diffhits <= DeactivateAutoHealHPdiff3470                if not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange3471                    @setvar! SkipCheckSection 13472                elseif not dead ClosestTarget and find ClosestTarget ground -1 -1 63473                    @setvar! SkipCheckSection 13474                else3475                    @setvar! SkipCheckSection 03476                endif3477                break3478            endif3479        endwhile3480    endif3481 3482    /////////////////////////////3483    //  END AUTO HEALING LOOP  //3484    /////////////////////////////3485 3486 3487    //////////////////////////3488    //  BEGIN AUTO RECALL:  //3489    //////////////////////////3490 3491    if not warmode and WarModeToggledWhileFighting != 1 and not dead3492        if EnableAutoWeightRecall = 1 and AutoWeightRecall = 1 and WILDERNESSMODE = 13493            if EnableDIYRecallScript = 13494                @setvar! RedTargetFound 03495                @setvar! AutoWeightRecall 03496                @setvar! AutoRecallTime 03497                @setvar! TimeToGo 03498                @setvar! RECALLTIME 03499                foreach RecallScript in DIYRecallScriptList3500                    script RecallScript3501                endfor3502            else3503                if targetexists3504                    hotkey 'Cancel Current Target'3505                endif3506 3507                hotkey 'Toggle Peace Only'3508                clearsysmsg3509 3510                while not varexist AutoRecallChargedRunebook and EnableDIYRecallScript != 13511                    overhead "Select your escape runebook..." 2533512                    @setvar! AutoRecallChargedRunebook3513                    wait 25003514                endwhile3515 3516                while mana < 113517                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 23518                        if timer "MANAWAIT" > 40003519                            overhead "[ WAITING FOR MANA... ]" 123520                            settimer "MANAWAIT" 03521                        endif3522                    endif3523                    wait 5003524                endwhile3525 3526                if EnableOverheadMessages = 1 or EnableOverheadMessages = 23527                    overhead "[ AUTO WEIGHT RECALL! ]" 883528                    wait 10003529                endif3530 3531                @setvar! AutoWeightRecall 03532                @setvar! RECALLTIME 13533            endif3534        elseif EnableAutoRedRecall = 1 and RedTargetFound = 1 and WILDERNESSMODE = 13535            if EnableDIYRecallScript = 13536                @setvar! RedTargetFound 03537                @setvar! AutoRecallTime 03538                @setvar! TimeToGo 03539                @setvar! RECALLTIME 03540                foreach RecallScript in DIYRecallScriptList3541                    script RecallScript3542                endfor3543            else3544                if targetexists3545                    hotkey 'Cancel Current Target'3546                endif3547 3548                hotkey 'Toggle Peace Only'3549                clearsysmsg3550 3551                while not varexist AutoRecallChargedRunebook and EnableDIYRecallScript != 13552                    overhead "Select your escape runebook..." 2533553                    @setvar! AutoRecallChargedRunebook3554                    wait 25003555                endwhile3556 3557                while mana < 113558                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 23559                        if timer "MANAWAIT" > 40003560                            overhead "[ WAITING FOR MANA... ]" 123561                            settimer "MANAWAIT" 03562                        endif3563                    endif3564                    wait 5003565                endwhile3566 3567                @setvar! RECALLTIME 13568            endif3569        elseif EnableRecallAfterDungeonGate = 1 and DungeonGateThenTimeToGo = 1 and DUNGEONMODE = 13570            if EnableDIYRecallScript = 13571                @setvar! DungeonGateThenTimeToGo 03572                @setvar! AutoRecallTime 03573                @setvar! TimeToGo 03574                @setvar! RECALLTIME 03575                foreach RecallScript in DIYRecallScriptList3576                    script RecallScript3577                endfor3578            else3579                if targetexists3580                    hotkey 'Cancel Current Target'3581                endif3582 3583                hotkey 'Toggle Peace Only'3584                clearsysmsg3585 3586                while not varexist AutoRecallChargedRunebook and EnableDIYRecallScript != 13587                    overhead "Select your escape runebook..." 2533588                    @setvar! AutoRecallChargedRunebook3589                    wait 25003590                endwhile3591 3592                while mana < 113593                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 23594                        if timer "MANAWAIT" > 40003595                            overhead "[ WAITING FOR MANA... ]" 123596                            settimer "MANAWAIT" 03597                        endif3598                    endif3599                    wait 5003600                endwhile3601 3602                if EnableOverheadMessages = 1 or EnableOverheadMessages = 23603                    overhead "[ AUTO RECALL! ]" 883604                endif3605 3606                @setvar! DungeonGateThenTimeToGo 03607                @setvar! TimeToGo 03608                @setvar! RECALLTIME 13609            endif3610        elseif EnableRecallAfterResurrection = 1 and ResThenTimeToGo = 13611            if EnableDIYRecallScript = 13612                @setvar! ResThenTimeToGo 03613                @setvar! AutoRecallTime 03614                @setvar! TimeToGo 03615                @setvar! RECALLTIME 03616                foreach RecallScript in DIYRecallScriptList3617                    script RecallScript3618                endfor3619            else3620                if targetexists3621                    hotkey 'Cancel Current Target'3622                endif3623 3624                hotkey 'Toggle Peace Only'3625                clearsysmsg3626 3627                while not varexist AutoRecallChargedRunebook and EnableDIYRecallScript != 13628                    overhead "Select your escape runebook..." 2533629                    @setvar! AutoRecallChargedRunebook3630                    wait 25003631                endwhile3632 3633                while mana < 113634                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 23635                        if timer "MANAWAIT" > 40003636                            overhead "[ WAITING FOR MANA... ]" 123637                            settimer "MANAWAIT" 03638                        endif3639                    endif3640                    wait 5003641                endwhile3642 3643                if EnableOverheadMessages = 1 or EnableOverheadMessages = 23644                    overhead "[ AUTO RECALL! ]" 883645                    wait 10003646                endif3647 3648                @setvar! ResThenTimeToGo 03649                @setvar! RecallScrollsOnly 13650                @setvar! RECALLTIME 13651            endif3652        elseif AutoRecallTime = 13653            if EnableDIYRecallScript = 13654                @setvar! AutoRecallTime 03655                @setvar! TimeToGo 03656                @setvar! RECALLTIME 03657                foreach RecallScript in DIYRecallScriptList3658                    script RecallScript3659                endfor3660            else3661                if targetexists3662                    hotkey 'Cancel Current Target'3663                endif3664 3665                hotkey 'Toggle Peace Only'3666                clearsysmsg3667 3668                while not varexist AutoRecallChargedRunebook and EnableDIYRecallScript != 13669                    overhead "Select your escape runebook..." 2533670                    @setvar! AutoRecallChargedRunebook3671                    wait 25003672                endwhile3673 3674                while mana < 113675                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 23676                        if timer "MANAWAIT" > 40003677                            overhead "[ WAITING FOR MANA... ]" 123678                            settimer "MANAWAIT" 03679                        endif3680                    endif3681                    wait 5003682                endwhile3683 3684                if EnableOverheadMessages = 1 or EnableOverheadMessages = 23685                    overhead "[ AUTO RECALL! ]" 883686                    wait 10003687                endif3688                @setvar! AutoRecallTime 03689                @setvar! RECALLTIME 13690            endif3691        elseif TimeToGo = 13692            if EnableAutoRedDungeonGate = 1 or EnableAutoWeightDungeonGate = 1 or EnableManualDungeonEscape = 13693 3694 3695            ////////////////////////////3696            //  DUNGEON ESCAPE LOOP:  //3697            ////////////////////////////3698 3699                if EnableOverheadMessages = 1 or EnableOverheadMessages = 23700                    if RedTargetFound = 1 and timer "REDALERT" > 50003701                        overhead "[ !! RED ALERT !! ]" 373702                        settimer "REDALERT" 03703                    endif3704                endif3705 3706                settimer "DungeonEscape" 03707                getlabel backpack backpacklabel3708 3709                while timer "DungeonEscape" < DungeonEscapeTimeLimit and not dead3710                    if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff and not dead3711                        if findtype "Yellow Potion" self as HealPot3712                            getlabel HealPot HealPotlabel3713                            if "next" in HealPotlabel3714                                // Do nothing3715                            else3716                                @setvar! HealPotionCheck 03717 3718                                if counttype 3852 self as HealPotCount3719                                    @setvar! HealPotionCheck HealPotCount3720                                endif3721 3722                                clearsysmsg3723                                dclicktype 38523724                                getlabel backpack backpackdesc3725                                wait 2503726 3727                                if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"3728                                    settimer 'HealPotionTimer' 03729                                    cooldown "Healing Potion" HealingPotionCooldown3730                                    if EnableOverheadMessages = 13731                                        if insysmsg "potion satchel used"3732                                            overhead '[ FREE HEAL POTION ]' 2533733                                        else3734                                            overhead "[ HEAL POTION ]" 2533735                                        endif3736                                    endif3737                                    clearsysmsg3738                                endif3739                            endif3740                        else3741                            if timer 'HealPotionMessageTimer' > 45003742                                overhead "[ NO HEAL POTS! ]" 3373743                                settimer 'HealPotionMessageTimer' 03744                            endif3745                        endif3746                    endif3747 3748                    if EnableNobleSacrifice = 1 or EnableHolyLight = 1 or EnableCleanseByFire = 13749                        while not gumpexists 13879303253750                            say "[ChivalryHotbar"3751                            wait 1003752                        endwhile3753 3754                        if gumpexists 13879303253755                            if ingump "12/" 13879303253756                                @setvar! HolySymbols 123757                                @setvar! HolyLightAvailable 13758                                @setvar! NobleSacrificeAvailable 13759                                @setvar! CleanseByFireAvailable 13760                                @setvar! CloseWoundsAvailable 13761                                @setvar! DivineFuryAvailable 13762                                @setvar! EnemyOfOneAvailable 13763                                @setvar! ConsecrateWeaponAvailable 13764                            elseif ingump "13/" 13879303253765                                @setvar! HolySymbols 133766                                @setvar! HolyLightAvailable 13767                                @setvar! NobleSacrificeAvailable 13768                                @setvar! CleanseByFireAvailable 13769                                @setvar! CloseWoundsAvailable 13770                                @setvar! DivineFuryAvailable 13771                                @setvar! EnemyOfOneAvailable 13772                                @setvar! ConsecrateWeaponAvailable 13773                            elseif ingump "14/" 13879303253774                                @setvar! HolySymbols 143775                                @setvar! HolyLightAvailable 13776                                @setvar! NobleSacrificeAvailable 13777                                @setvar! CleanseByFireAvailable 13778                                @setvar! CloseWoundsAvailable 13779                                @setvar! DivineFuryAvailable 13780                                @setvar! EnemyOfOneAvailable 13781                                @setvar! ConsecrateWeaponAvailable 13782                            elseif ingump "15/" 13879303253783                                @setvar! HolySymbols 153784                                @setvar! HolyLightAvailable 13785                                @setvar! NobleSacrificeAvailable 13786                                @setvar! CleanseByFireAvailable 13787                                @setvar! CloseWoundsAvailable 13788                                @setvar! DivineFuryAvailable 13789                                @setvar! EnemyOfOneAvailable 13790                                @setvar! ConsecrateWeaponAvailable 13791                            elseif ingump "16/" 13879303253792                                @setvar! HolySymbols 163793                                @setvar! HolyLightAvailable 13794                                @setvar! NobleSacrificeAvailable 13795                                @setvar! CleanseByFireAvailable 13796                                @setvar! CloseWoundsAvailable 13797                                @setvar! DivineFuryAvailable 13798                                @setvar! EnemyOfOneAvailable 13799                                @setvar! ConsecrateWeaponAvailable 13800                            elseif ingump "17/" 13879303253801                                @setvar! HolySymbols 173802                                @setvar! HolyLightAvailable 13803                                @setvar! NobleSacrificeAvailable 13804                                @setvar! CleanseByFireAvailable 13805                                @setvar! CloseWoundsAvailable 13806                                @setvar! DivineFuryAvailable 13807                                @setvar! EnemyOfOneAvailable 13808                                @setvar! ConsecrateWeaponAvailable 13809                            elseif ingump "18/" 13879303253810                                @setvar! HolySymbols 183811                                @setvar! HolyLightAvailable 13812                                @setvar! NobleSacrificeAvailable 13813                                @setvar! CleanseByFireAvailable 13814                                @setvar! CloseWoundsAvailable 13815                                @setvar! DivineFuryAvailable 13816                                @setvar! EnemyOfOneAvailable 13817                                @setvar! ConsecrateWeaponAvailable 13818                            elseif ingump "19/" 13879303253819                                @setvar! HolySymbols 193820                                @setvar! HolyLightAvailable 13821                                @setvar! NobleSacrificeAvailable 13822                                @setvar! CleanseByFireAvailable 13823                                @setvar! CloseWoundsAvailable 13824                                @setvar! DivineFuryAvailable 13825                                @setvar! EnemyOfOneAvailable 13826                                @setvar! ConsecrateWeaponAvailable 13827                            elseif ingump "20/" 13879303253828                                @setvar! HolySymbols 203829                                @setvar! HolyLightAvailable 13830                                @setvar! NobleSacrificeAvailable 13831                                @setvar! CleanseByFireAvailable 13832                                @setvar! CloseWoundsAvailable 13833                                @setvar! DivineFuryAvailable 13834                                @setvar! EnemyOfOneAvailable 13835                                @setvar! ConsecrateWeaponAvailable 13836                            elseif ingump "21/" 13879303253837                                @setvar! HolySymbols 213838                                @setvar! HolyLightAvailable 13839                                @setvar! NobleSacrificeAvailable 13840                                @setvar! CleanseByFireAvailable 13841                                @setvar! CloseWoundsAvailable 13842                                @setvar! DivineFuryAvailable 13843                                @setvar! EnemyOfOneAvailable 13844                                @setvar! ConsecrateWeaponAvailable 13845                            elseif ingump "11/" 13879303253846                                @setvar! HolySymbols 113847                                @setvar! HolyLightAvailable 13848                                @setvar! NobleSacrificeAvailable 13849                                @setvar! CleanseByFireAvailable 13850                                @setvar! CloseWoundsAvailable 13851                                @setvar! DivineFuryAvailable 13852                                @setvar! EnemyOfOneAvailable 13853                                @setvar! ConsecrateWeaponAvailable 13854                            elseif ingump "10/" 13879303253855                                @setvar! HolySymbols 103856                                @setvar! HolyLightAvailable 13857                                @setvar! NobleSacrificeAvailable 13858                                @setvar! CleanseByFireAvailable 13859                                @setvar! CloseWoundsAvailable 13860                                @setvar! DivineFuryAvailable 13861                                @setvar! EnemyOfOneAvailable 13862                                @setvar! ConsecrateWeaponAvailable 13863                            elseif ingump "9/" 13879303253864                                @setvar! HolySymbols 93865                                @setvar! HolyLightAvailable 13866                                @setvar! NobleSacrificeAvailable 13867                                @setvar! CleanseByFireAvailable 13868                                @setvar! CloseWoundsAvailable 13869                                @setvar! DivineFuryAvailable 13870                                @setvar! EnemyOfOneAvailable 13871                                @setvar! ConsecrateWeaponAvailable 13872                            elseif ingump "8/" 13879303253873                                @setvar! HolySymbols 83874                                @setvar! HolyLightAvailable 13875                                @setvar! NobleSacrificeAvailable 13876                                @setvar! CleanseByFireAvailable 13877                                @setvar! CloseWoundsAvailable 13878                                @setvar! DivineFuryAvailable 13879                                @setvar! EnemyOfOneAvailable 13880                                @setvar! ConsecrateWeaponAvailable 13881                            elseif ingump "7/" 13879303253882                                @setvar! HolySymbols 73883                                @setvar! HolyLightAvailable 13884                                @setvar! NobleSacrificeAvailable 13885                                @setvar! CleanseByFireAvailable 13886                                @setvar! CloseWoundsAvailable 13887                                @setvar! DivineFuryAvailable 13888                                @setvar! EnemyOfOneAvailable 03889                                @setvar! ConsecrateWeaponAvailable 13890                            elseif ingump "6/" 13879303253891                                @setvar! HolySymbols 63892                                @setvar! HolyLightAvailable 13893                                @setvar! NobleSacrificeAvailable 13894                                @setvar! CleanseByFireAvailable 03895                                @setvar! CloseWoundsAvailable 03896                                @setvar! DivineFuryAvailable 03897                                @setvar! EnemyOfOneAvailable 03898                                @setvar! ConsecrateWeaponAvailable 03899                            elseif ingump "5/" 13879303253900                                @setvar! HolySymbols 53901                                @setvar! HolyLightAvailable 13902                                @setvar! NobleSacrificeAvailable 13903                                @setvar! CleanseByFireAvailable 03904                                @setvar! CloseWoundsAvailable 03905                                @setvar! DivineFuryAvailable 03906                                @setvar! EnemyOfOneAvailable 03907                                @setvar! ConsecrateWeaponAvailable 03908                            elseif ingump "4/" 13879303253909                                @setvar! HolySymbols 43910                                @setvar! HolyLightAvailable 03911                                @setvar! NobleSacrificeAvailable 13912                                @setvar! CleanseByFireAvailable 03913                                @setvar! CloseWoundsAvailable 03914                                @setvar! DivineFuryAvailable 03915                                @setvar! EnemyOfOneAvailable 03916                                @setvar! ConsecrateWeaponAvailable 03917                            elseif ingump "3/" 13879303253918                                @setvar! HolySymbols 33919                                @setvar! HolyLightAvailable 03920                                @setvar! NobleSacrificeAvailable 03921                                @setvar! CleanseByFireAvailable 03922                                @setvar! CloseWoundsAvailable 03923                                @setvar! DivineFuryAvailable 03924                                @setvar! EnemyOfOneAvailable 03925                                @setvar! ConsecrateWeaponAvailable 03926                            elseif ingump "2/" 13879303253927                                @setvar! HolySymbols 23928                                @setvar! HolyLightAvailable 03929                                @setvar! NobleSacrificeAvailable 03930                                @setvar! CleanseByFireAvailable 03931                                @setvar! CloseWoundsAvailable 03932                                @setvar! DivineFuryAvailable 03933                                @setvar! EnemyOfOneAvailable 03934                                @setvar! ConsecrateWeaponAvailable 03935                            elseif ingump "1/" 13879303253936                                @setvar! HolySymbols 13937                                @setvar! HolyLightAvailable 03938                                @setvar! NobleSacrificeAvailable 03939                                @setvar! CleanseByFireAvailable 03940                                @setvar! CloseWoundsAvailable 03941                                @setvar! DivineFuryAvailable 03942                                @setvar! EnemyOfOneAvailable 03943                                @setvar! ConsecrateWeaponAvailable 03944                            elseif ingump "0/" 13879303253945                                @setvar! HolySymbols 03946                                @setvar! HolyLightAvailable 03947                                @setvar! NobleSacrificeAvailable 03948                                @setvar! CleanseByFireAvailable 03949                                @setvar! CloseWoundsAvailable 03950                                @setvar! DivineFuryAvailable 03951                                @setvar! EnemyOfOneAvailable 03952                                @setvar! ConsecrateWeaponAvailable 03953                            endif3954                        endif3955                    endif3956 3957                    if EnableNobleSacrifice = 1 and not dead and RedTargetFound != 13958                        if diffhits > 50 and skill "Chivalry" >= 80 and timer "NobleSacrificeTimer" > 31000 and timer "ChivalryPrevented" > 50003959                            clearsysmsg3960                            yell "[NobleSacrifice"3961                            wait 2503962                            if insysmsg "You do not have enough holy"3963                                settimer "ChivalryPrevented" 03964                                clearsysmsg3965                            else3966                                wft 10003967                                target 'self'3968                                if EnableOverheadMessages = 13969                                    overhead "[ NOBLE SACRIFICE! ]" 1553970                                endif3971                                settimer "NobleSacrificeTimer" 03972                                cooldown "Noble Sacrifice" 310003973                                settimer "ChivalryPrevented" 03974                            endif3975                            wait 2503976                        endif3977                    endif3978 3979                    if EnableHolyLight = 1 and not dead and RedTargetFound != 13980                        if diffhits > 30 and skill "Chivalry" >= 95 and timer "HolyLightTimer" > 31000 and timer "ChivalryPrevented" > 50003981                            clearsysmsg3982                            yell "[HolyLight"3983                            wait 2503984                            if insysmsg "You do not have enough holy"3985                                settimer "ChivalryPrevented" 03986                                clearsysmsg3987                            else3988                                if EnableOverheadMessages = 13989                                    overhead "[ HOLY LIGHT! ]" 2543990                                endif3991                                settimer "HolyLightTimer" 03992                                cooldown "Holy Light" 310003993                                settimer "ChivalryPrevented" 03994                            endif3995                            wait 2503996                        endif3997                    endif3998 3999                    if EnablePanaceaPotion = 1 and skill 'Alchemy' >= 80 and RedTargetFound != 14000                        if findbuff "Bleed" or findbuff "Diseased"4001                            if not findbuff "panacea potion cooldown"4002                                if findtype "Orange Potion" self4003                                    dclicktype "Orange Potion"4004                                    wait 5004005                                    if findbuff "panacea potion cooldown" and EnableOverheadMessages = 14006                                        overhead '[ PANACEA ACTIVATED ]' 554007                                        cooldown "Panacea Potion" 300004008                                    endif4009                                endif4010                            endif4011                        endif4012                    endif4013 4014                    if EnableCleansingBrews = 14015                        if findbuff "Diseased" or findbuff "Bleed"4016                            if timer CleansingBrewTimer > 1200004017                                if findtype 50675 self 2935 as CleansingBrew4018                                    dclick CleansingBrew4019                                    if EnableOverheadMessages = 14020                                        overhead '[ CLEANSING BREW ]' 21174021                                    endif4022                                    cooldown 'Cleansing Brew' 1200004023                                    settimer CleansingBrewTimer 04024                                    wait 2504025                                else4026                                    if timer CleansingBrewOverhead > 150004027                                        overhead "[ NO CLEANSING BREWS! ]" 3374028                                        settimer CleansingBrewOverhead 04029                                        settimer CleansingBrewTimer 04030                                    endif4031                                endif4032                            else4033                                if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 150004034                                    overhead '[ BREW ON COOLDOWN! ]' 374035                                    settimer CleansingBrewOverhead 04036                                endif4037                            endif4038                        endif4039                    endif4040 4041                    if EnableCurePotion = 1 and not dead4042                        while poisoned4043                            if EnableCleanseByFire = 14044                                if skill "Chivalry" >= 60 and poisoned and timer "CleanseByFireTimer" > 31000 and timer "ChivalryPrevented" > 5000 and timer "DivineFuryTimer" < 31000 and CleanseByFireAvailable = 14045                                    clearsysmsg4046                                    yell "[CleanseByFire"4047                                    wait 2504048                                    if insysmsg "You do not have enough holy"4049                                        settimer "ChivalryPrevented" 04050                                        clearsysmsg4051                                    else4052                                        settimer "CleanseByFireTimer" 04053                                        settimer "ChivalryPrevented" 40004054                                        cooldown "Cleanse By Fire" 310004055                                        if EnableOverheadMessages = 14056                                            overhead "[ CLEANSE BY FIRE! ]" 434057                                        endif4058                                    endif4059                                    wait 2504060                                endif4061                            endif4062                            if findtype "Orange Potion" self4063                                dclicktype "Orange Potion"4064                                if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 35004065                                    overhead "[ CURE POTION ]" 444066                                    settimer 'CurePotionMessageTimer' 04067                                endif4068                                wait 2504069                            else4070                                if timer 'CurePotionMessageTimer' > 50004071                                    overhead "[ NO CURE POTS! ]" 3374072                                    settimer 'CurePotionMessageTimer' 04073                                endif4074 4075                                if not findtype 3972 self or not findtype 3973 self4076                                    break4077                                endif4078                            endif4079                            if not poisoned4080                                break4081                            endif4082                        endwhile4083                    endif4084 4085                    while not gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as EscapeGate4086                        dclick EscapeGate4087                        wait 1504088                        if dead or warmode4089                            break4090                        endif4091                    endwhile4092 4093                    if gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as EscapeGate4094                        while gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as EscapeGate4095                            gumpresponse 2 38990198714096                            wait 2504097                        endwhile4098                        wait 15004099                        if EnableDIYRecallScript = 14100                            foreach RecallScript in DIYRecallScriptList4101                                script RecallScript4102                            endfor4103                        else4104                            hotkey 'Toggle Peace Only'4105                            @setvar! DungeonGateThenTimeToGo 14106                            @setvar! TimeToGo 14107                            break4108                        endif4109                    endif4110 4111                    while not gumpexists 3899019871 and findtype 30528 ground 2091 1 1 as EscapeGate4112                        dclick EscapeGate4113                        wait 1504114                        settimer DungeonEscapeOverheadTimer 04115                        if dead or warmode4116                            break4117                        endif4118                    endwhile4119 4120                    if gumpexists 3899019871 and findtype 30528 ground 2091 1 1 as EscapeGate4121                        while gumpexists 3899019871 and findtype 30528 ground 2091 1 1 as EscapeGate4122                            gumpresponse 2 38990198714123                            wait 2504124                        endwhile4125                        wait 15004126                        if EnableDIYRecallScript = 14127                            foreach RecallScript in DIYRecallScriptList4128                                script RecallScript4129                            endfor4130                        else4131                            hotkey 'Toggle Peace Only'4132                            @setvar! DungeonGateThenTimeToGo 14133                            @setvar! TimeToGo 14134                            break4135                        endif4136                    endif4137 4138                    while not gumpexists 3773199800 and findtype "blue moongate" ground -1 1 2 as EscapeGate4139                        dclick EscapeGate4140                        wait 1504141                        settimer DungeonEscapeOverheadTimer 04142                        if dead or warmode4143                            break4144                        endif4145                    endwhile4146 4147                    if gumpexists 3773199800 and findtype "blue moongate" ground -1 1 2 as EscapeGate4148                        while gumpexists 3773199800 and findtype "blue moongate" ground -1 1 2 as EscapeGate4149                            gumpresponse 2 37731998004150                            wait 2504151                        endwhile4152                        wait 15004153                        if EnableDIYRecallScript = 14154                            foreach RecallScript in DIYRecallScriptList4155                                script RecallScript4156                            endfor4157                        else4158                            hotkey 'Toggle Peace Only'4159                            @setvar! DungeonGateThenTimeToGo 14160                            @setvar! TimeToGo 14161                            break4162                        endif4163                    endif4164 4165                    while not gumpexists 3899019871 and findtype "moongate" ground -1 -1 2 as EscapeGate4166                        dclick EscapeGate4167                        wait 1504168                        settimer DungeonEscapeOverheadTimer 04169                        if dead or warmode4170                            break4171                        endif4172                    endwhile4173 4174                    if gumpexists 3899019871 and findtype "moongate" ground -1 -1 2 as EscapeGate4175                        while gumpexists 3899019871 and findtype "moongate" ground -1 -1 2 as EscapeGate4176                            gumpresponse 2 38990198714177                            wait 2504178                        endwhile4179                        wait 15004180                        if EnableDIYRecallScript = 14181                            foreach RecallScript in DIYRecallScriptList4182                                script RecallScript4183                            endfor4184                        else4185                            hotkey 'Toggle Peace Only'4186                            @setvar! DungeonGateThenTimeToGo 14187                            @setvar! TimeToGo 14188                            break4189                        endif4190                    endif4191 4192                    if findtype "moongate" ground -1 1 12 as EscapeGate4193                        if timer "GETCLOSER" > 40004194                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 24195                                overhead "[ GET CLOSER TO GATE! ]" 2534196                            else4197                                overhead " � " 2534198                            endif4199                            settimer "GETCLOSER" 04200                        endif4201                        if timer "GATEHERE" > 5004202                            overhead " � " 253 EscapeGate4203                            settimer "GATEHERE" 04204                        endif4205                    elseif findtype "blue moongate" ground -1 1 12 as EscapeGate4206                        if timer "GETCLOSER" > 40004207                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 24208                                overhead "[ GET CLOSER TO GATE! ]" 2534209                            else4210                                overhead " � " 2534211                            endif4212                            settimer "GETCLOSER" 04213                        endif4214                        if timer "GATEHERE" > 5004215                            overhead " � " 253 EscapeGate4216                            settimer "GATEHERE" 04217                        endif4218                    else4219                        if timer "RUNAWAY" > 35004220                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 24221                                overhead "[ GET TO A GATE... ]" 774222                            else4223                                overhead " � " 21184224                            endif4225                            settimer "RUNAWAY" 04226                        endif4227                    endif4228 4229                    if diffhits > 0 and not bandaging and not dead4230                        if skill 'healing' > 04231                            if findtype 'clean bandage%s%' self4232                                if targetexists4233                                    hotkey 'cancel current target'4234                                endif4235                                hotkey 'Bandage Self'4236                                if EnableOverheadMessages = 14237                                    if timer BandageMessageTimer > 50004238                                        overhead "[ BANDAGING... ]" 884239                                        settimer BandageMessageTimer 04240                                    endif4241                                endif4242                            else4243                                if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 14244                                    overhead "[ OUT OF BANDAGES! ]" 3374245                                    settimer BandageMessageTimer 04246                                endif4247                            endif4248                        endif4249                    endif4250 4251                    if warmode4252                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 24253                            overhead "[ ESCAPE CANCELLED! ]" 1494254                        else4255                            overhead " � " 1494256                        endif4257                        @setvar! AutoRecallTime 04258                        @setvar! RECALLTIME 04259                        @setvar! TimeToGo 04260                        @setvar! RedTargetFound 04261                        @setvar! WarModeToggledWhileFighting 04262                        @setvar! SkipInfiniteLoop 04263                        break4264                    endif4265 4266                    if EnablePKradar = 1 and RedTargetFound != 14267                        if timer "PKRadar" > 10004268                            hotkey 'Next Murderer Player Target'4269                            wait 5004270                            if insysmsg "No one matching that was found"4271                                settimer "PKRadar" 04272                                clearsysmsg4273                            else4274                                if EnableRedAlertOverhead = 14275                                    if timer "REDALERT" > 300004276                                        overhead "[ !! RED ALERT !! ]" 374277                                        settimer "REDALERT" 04278                                    endif4279                                endif4280                                @setvar! MurdererTarget lasttarget4281                                @setvar! SkipInfiniteLoop 14282                                @setvar! RedTargetFound 14283                            endif4284                        endif4285                    endif4286 4287                    if dead4288                        break4289                    endif4290 4291                    if EnableAutoParalyzePouch = 14292                        if paralyzed4293                            if findtype "pouch" self4294                                yell "[pouch"4295                            else4296                                if EnableOverheadMessages = 14297                                    overhead "[ NO MORE POUCHES! ]" 3374298                                endif4299                            endif4300                        endif4301                    endif4302 4303                    if EnableStrengthPotion = 1 and not dead4304                        if not findbuff "Strength"4305                            if findtype "White Potion" self4306                                dclicktype "White Potion"4307                                if EnableOverheadMessages = 14308                                    overhead "[ STRENGTH POTION ]" 9564309                                endif4310                                wait 2504311                            else4312                                if timer StrengthPotionMessageTimer > 45004313                                    overhead "[ NO STRENGTH POTS! ]" 3374314                                    settimer StrengthPotionMessageTimer 04315                                endif4316                            endif4317                        endif4318                    endif4319 4320                    if EnableAgilityPotion = 1 and not findbuff "Agility" and not dead and RedTargetFound != 14321                        if findtype "Blue Potion" self4322                            dclicktype "Blue Potion"4323                            if EnableOverheadMessages = 14324                                overhead "[ AGILITY POTION ]" 934325                            endif4326                            wait 2504327                        else4328                            if timer AgilityPotionMessageTimer > 45004329                                overhead "[ NO AGILITY POTS! ]" 3374330                                settimer AgilityPotionMessageTimer 04331                            endif4332                        endif4333                    endif4334 4335                    if EnableMagicResistPotion = 1 and not findbuff "Magic Resist" and not dead and RedTargetFound != 14336                        if findtype "Black Potion" self4337                            dclicktype "Black Potion"4338                            if EnableOverheadMessages = 14339                                overhead "[ RESIST POTION ]" 11094340                            endif4341                            wait 2504342                        else4343                            if timer ResistPotionMessageTimer > 45004344                                overhead "[ NO RESIST POTS! ]" 3374345                                settimer ResistPotionMessageTimer 04346                            endif4347                        endif4348                    endif4349 4350                    if RedTargetFound = 14351                        if EnableRefreshPotion = 1 and stam < maxstam and not dead4352                            if findtype "Red Potion" self4353                                dclicktype "Red Potion"4354                                if EnableOverheadMessages = 14355                                    overhead "[ REFRESH POTION ]" 374356                                endif4357                                wait 2504358                            else4359                                if timer RefreshPotionMessageTimer > 45004360                                    overhead "[ NO REFRESH POTS! ]" 3374361                                    settimer RefreshPotionMessageTimer 04362                                endif4363                            endif4364                        endif4365                    else4366                        if EnableRefreshPotion = 1 and diffstam > RefreshPotionSPdiff and not dead4367                            if findtype "Red Potion" self4368                                dclicktype "Red Potion"4369                                if EnableOverheadMessages = 14370                                    overhead "[ REFRESH POTION ]" 374371                                endif4372                                wait 2504373                            else4374                                if timer RefreshPotionMessageTimer > 45004375                                    overhead "[ NO REFRESH POTS! ]" 3374376                                    settimer RefreshPotionMessageTimer 04377                                endif4378                            endif4379                        endif4380                    endif4381 4382                    if EnableAutoCarving = 1 and findtype 11552 self and RedTargetFound != 14383                        while findtype "corpse" ground -1 -1 2 as deadbody and diffhits < ActivateAutoHealHPdiff4384                           if findtype 11552 self4385                                if targetexists4386                                   hotkey 'cancel current target'4387                                endif4388                                while not targetexists4389                                    skill 'forensicevaluation'4390                                    wait 1004391                                endwhile4392                                if targetexists and find deadbody ground -1 -1 24393                                    target 'self'4394                                    @ignore deadbody4395                                    wait 5004396                                endif4397                                if insysmsg "You dont see anything nearby"4398                                    clearsysmsg4399                                    break4400                                else4401                                    if EnableOverheadMessages = 1 and timer SkinningTimer > 30004402                                        overhead "[ SKINNING... ]" 3334403                                        settimer SkinningTimer 04404                                    endif4405                                endif4406                            else4407                                if EnableOverheadMessages = 1 and timer SkinningTimer > 150004408                                    overhead "[ NO SKINNING KNIFE ]" 3374409                                    settimer SkinningTimer 04410                                    break4411                                endif4412                            endif4413                        endwhile4414                    endif4415 4416                    if weight > maxweight and EnableDropGoldWhenOverweight = 14417                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 24418                            if timer OverweightMessageTimer > 45004419                                overhead "[ OVERWEIGHT! ]" 344420                                settimer OverweightMessageTimer 04421                            endif4422                        endif4423 4424                        if DropGoldAmount != 04425                            clearignore4426                            @setvar! DisableVacuums 14427                            wait 2504428 4429                            if EnablePutLootinLockBox = 14430                                if findtype "wooden box" self as lockbox4431                                    if findtype "copper key" self as key4432                                        clearignore4433                                        getlabel lockbox lockboxlabel4434                                        wait 1004435                                        if "items" in lockboxlabel4436                                            // Do nothing4437                                        else4438                                            dclick key4439                                            wft 15004440                                            target lockbox4441                                            if EnableOverheadMessages = 14442                                                overhead "[loot box unlocked]" 844443                                            endif4444                                            wait 5004445                                            if insysmsg "It appears to be locked."4446                                                dclick key4447                                                wft 15004448                                                target lockbox4449                                                wait 2504450                                            endif4451                                        endif4452                                    elseif EnableOverheadMessages = 14453                                        overhead "[ NO LOCKBOX KEY! ]" 3374454                                    endif4455                                endif4456                            endif4457 4458                            while weight > maxweight and diffhits < ActivateAutoHealHPdiff4459                                if findtype "gold coin" self as easycomeeasygo4460                                    lift easycomeeasygo DropGoldAmount4461                                    droprelloc 0 04462                                    getlabel backpack packdesc4463                                    if EnableOverheadMessages = 14464                                        overhead "[ DROPPING GOLD... ]" 1494465                                    endif4466                                    wait 2504467                                    if insysmsg "cannot drop anything"4468                                        drop backpack -1 -1 -14469                                        break4470                                    endif4471                                    wait 2504472                                else4473                                    break4474                                endif4475                            endwhile4476                        endif4477                    endif4478                endwhile4479 4480                ///////////////////////////////4481                //  END DUNGEON ESCAPE LOOP  //4482                ///////////////////////////////4483 4484            endif4485        elseif EnableAutoRedRecall = 0 and EnableAutoWeightRecall = 04486            // Do nothing4487        elseif EnableAutoRedDungeonGate = 0 and EnableAutoWeightDungeonGate = 04488            // Do nothing4489        elseif TimeToGo = 0 and WarModeToggledWhileFighting = 14490           @setvar! WarModeToggledWhileFighting 04491        else4492            hotkey 'Toggle War Only'4493        endif4494    endif4495 4496    if RECALLTIME = 14497        if EnableInfiniteLoop != 0 and skill 'Chivalry' >= 904498            settimer "InfiniteLoop" 04499        endif4500 4501        dclick AutoRecallChargedRunebook4502        waitforgump 15517409694503        gumpresponse 24504        wait 10004505 4506        for 54507        wait 5004508        if insysmsg 'Your concentration is disturbed'4509            dclick AutoRecallChargedRunebook4510            waitforgump 15517409694511            gumpresponse 24512            wait 10004513            clearsysmsg4514        endif4515        endfor4516 4517        if insysmsg 'Your concentration is disturbed'4518            for 54519            if diffhits > 25 and timer 'HealPotionTimer' > HealingPotionCooldown4520                if findtype "Yellow Potion" self as healpot4521                    dclick healpot4522                    wait 2504523                    settimer 'HealPotionTimer' 04524                    cooldown "Healing Potion" HealingPotionCooldown4525                    if EnableOverheadMessages = 14526                        overhead "[ HEAL POTION ]" 2534527                    endif4528                endif4529            endif4530 4531            while poisoned4532                if findtype "Orange Potion" self as curepot4533                    dclick curepot4534                    wait 2504535                endif4536            endwhile4537 4538            clearsysmsg4539            overhead '[ INTERRUPTED! ]' 1534540            wait 25004541            dclick AutoRecallChargedRunebook4542            waitforgump 15517409694543            gumpresponse 24544            wait 10004545            if insysmsg 'Your concentration is disturbed'4546                wait 15004547            else4548                break4549            endif4550            endfor4551        endif4552 4553        @clearignore4554        @setvar! RecallScrollsOnly 04555        @setvar! RECALLTIME 04556        @setvar! TimeToGo 04557        @setvar! AutoRecallTime 04558        @setvar! RedTargetFound 04559 4560        if EnableEquipWeaponAfterHomeRecall = 1 and IHAVEDIED != 14561            if find weapon backpack4562                dclick weapon4563                getlabel backpack backpacklabel4564                wait 2504565            endif4566 4567            if skill 'Swordsmanship' >= 50 and UsingSwords = 14568                if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' self4569                    overhead "[ NO WEAPON! ]" 3374570                else4571                    if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' hand4572                        if findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' backpack as weapon4573                            for 104574                            getlabel weapon WeaponLabel4575                            wait 2504576                            if "unidentified" in WeaponLabel4577                                @ignore weapon4578                                wait 1504579                                if findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' backpack as weapon4580                                    getlabel weapon WeaponLabel4581                                endif4582                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel4583                                break4584                            else4585                                @ignore weapon4586                                wait 1504587                                if findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' backpack as weapon4588                                    getlabel weapon WeaponLabel4589                                endif4590                            endif4591                            endfor4592                            wait 1504593                            clearsysmsg4594                            dclick weapon4595                            wait 2504596                            if insysmsg 'You have been disarmed'4597                                if EnableOverheadMessages = 14598                                    overhead '[ DISARMED! ]' 444599                                elseif EnableOverheadMessages = 24600                                    overhead '*disarmed!*' 444601                                endif4602                                settimer DisarmedTimer 04603                                clearsysmsg4604                            endif4605                        endif4606                    endif4607                endif4608            elseif skill 'Mace Fighting' >= 50 and UsingMacing = 14609                if not findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' self4610                    overhead "[ NO WEAPON! ]" 3374611                else4612                    if not findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' hand4613                        if findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' backpack as weapon4614                            for 104615                            getlabel weapon WeaponLabel4616                            wait 2504617                            if "unidentified" in WeaponLabel4618                                @ignore weapon4619                                wait 1504620                                if findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' backpack as weapon4621                                    getlabel weapon WeaponLabel4622                                endif4623                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel4624                                break4625                            else4626                                @ignore weapon4627                                wait 1504628                                if findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' backpack as weapon4629                                    getlabel weapon WeaponLabel4630                                endif4631                            endif4632                            endfor4633                            wait 1504634                            clearsysmsg4635                            dclick weapon4636                            wait 2504637                            if insysmsg 'You have been disarmed'4638                                if EnableOverheadMessages = 14639                                    overhead '[ DISARMED! ]' 444640                                elseif EnableOverheadMessages = 24641                                    overhead '*disarmed!*' 444642                                endif4643                                settimer DisarmedTimer 04644                                clearsysmsg4645                            endif4646                        endif4647                    endif4648                endif4649            elseif skill 'Fencing' >= 50 and UsingFencing = 14650                if not findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' self4651                    overhead "[ NO WEAPON! ]" 3374652                else4653                    if not findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' hand4654                        if findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' backpack as weapon4655                            for 104656                            getlabel weapon WeaponLabel4657                            wait 2504658                            if "unidentified" in WeaponLabel4659                                @ignore weapon4660                                wait 1504661                                if findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' backpack as weapon4662                                    getlabel weapon WeaponLabel4663                                endif4664                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel4665                                break4666                            else4667                                @ignore weapon4668                                wait 1504669                                if findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' backpack as weapon4670                                    getlabel weapon WeaponLabel4671                                endif4672                            endif4673                            endfor4674                            wait 1504675                            clearsysmsg4676                            dclick weapon4677                            wait 2504678                            if insysmsg 'You have been disarmed'4679                                if EnableOverheadMessages = 14680                                    overhead '[ DISARMED! ]' 444681                                elseif EnableOverheadMessages = 24682                                    overhead '*disarmed!*' 444683                                endif4684                                settimer DisarmedTimer 04685                                clearsysmsg4686                            endif4687                        endif4688                    endif4689                endif4690            elseif skill 'Archery' >= 50 and UsingArchery = 14691                if not findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' self4692                    overhead "[ NO WEAPON! ]" 3374693                else4694                    if not findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' hand4695                        if findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' backpack as weapon4696                            for 104697                            getlabel weapon WeaponLabel4698                            wait 2504699                            if "unidentified" in WeaponLabel4700                                @ignore weapon4701                                wait 1504702                                if findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' backpack as weapon4703                                    getlabel weapon WeaponLabel4704                                endif4705                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel4706                                break4707                            else4708                                @ignore weapon4709                                wait 1504710                                if findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' backpack as weapon4711                                    getlabel weapon WeaponLabel4712                                endif4713                            endif4714                            endfor4715                            wait 1504716                            clearsysmsg4717                            dclick weapon4718                            wait 2504719                            if insysmsg 'You have been disarmed'4720                                if EnableOverheadMessages = 14721                                    overhead '[ DISARMED! ]' 444722                                elseif EnableOverheadMessages = 24723                                    overhead '*disarmed!*' 444724                                endif4725                                settimer DisarmedTimer 04726                                clearsysmsg4727                            endif4728                        endif4729                    endif4730                endif4731            elseif skill 'Wrestling' >= 50 and UsingWrestling = 14732                if not findtype '22187|31141|31142' self4733                    overhead "[ NO WEAPON! ]" 3374734                else4735                    if not findtype '22187|31141|31142' hand4736                        if findtype '22187|31141|31142' backpack as weapon4737                            for 104738                            getlabel weapon WeaponLabel4739                            wait 2504740                            if "unidentified" in WeaponLabel4741                                @ignore weapon4742                                wait 1504743                                if findtype '22187|31141|31142' backpack as weapon4744                                    getlabel weapon WeaponLabel4745                                endif4746                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel4747                                break4748                            else4749                                @ignore weapon4750                                wait 1504751                                if findtype '22187|31141|31142' backpack as weapon4752                                    getlabel weapon WeaponLabel4753                                endif4754                            endif4755                            endfor4756                            wait 1504757                            clearsysmsg4758                            dclick weapon4759                            wait 2504760                            if insysmsg 'You have been disarmed'4761                                if EnableOverheadMessages = 14762                                    overhead '[ DISARMED! ]' 444763                                elseif EnableOverheadMessages = 24764                                    overhead '*disarmed!*' 444765                                endif4766                                settimer DisarmedTimer 04767                                clearsysmsg4768                            endif4769                        endif4770                    endif4771                endif4772            elseif skill 'Throwing' >= 50 and UsingThrowing = 14773                if not findtype '67713|67723|67734|67744|67754|67764' self4774                    overhead "[ NO WEAPON! ]" 3374775                else4776                    if not findtype '67713|67723|67734|67744|67754|67764' hand4777                        if findtype '67713|67723|67734|67744|67754|67764' backpack as weapon4778                            for 104779                            getlabel weapon WeaponLabel4780                            wait 2504781                            if "unidentified" in WeaponLabel4782                                @ignore weapon4783                                wait 1504784                                if findtype '67713|67723|67734|67744|67754|67764' backpack as weapon4785                                    getlabel weapon WeaponLabel4786                                endif4787                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel4788                                break4789                            else4790                                @ignore weapon4791                                wait 1504792                                if findtype '67713|67723|67734|67744|67754|67764' backpack as weapon4793                                    getlabel weapon WeaponLabel4794                                endif4795                            endif4796                            endfor4797                            wait 1504798                            clearsysmsg4799                            dclick weapon4800                            wait 2504801                            if insysmsg 'You have been disarmed'4802                                if EnableOverheadMessages = 14803                                    overhead '[ DISARMED! ]' 444804                                elseif EnableOverheadMessages = 24805                                    overhead '*disarmed!*' 444806                                endif4807                                settimer DisarmedTimer 04808                                clearsysmsg4809                            endif4810                        endif4811                    endif4812                endif4813            elseif skill 'Dual Wielding' >= 50 and UsingDualWield = 14814                if not findtype '67773|67774|67775|67776|67777|67778' self4815                    overhead "[ NO WEAPON! ]" 3374816                else4817                    if not findtype '67773|67774|67775|67776|67777|67778' hand4818                        if findtype '67773|67774|67775|67776|67777|67778' backpack as weapon4819                            for 104820                            getlabel weapon WeaponLabel4821                            wait 2504822                            if "unidentified" in WeaponLabel4823                                @ignore weapon4824                                wait 1504825                                if findtype '67773|67774|67775|67776|67777|67778' backpack as weapon4826                                    getlabel weapon WeaponLabel4827                                endif4828                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel4829                                break4830                            else4831                                @ignore weapon4832                                wait 1504833                                if findtype '67773|67774|67775|67776|67777|67778' backpack as weapon4834                                    getlabel weapon WeaponLabel4835                                endif4836                            endif4837                            endfor4838                            wait 1504839                            clearsysmsg4840                            dclick weapon4841                            wait 2504842                            if insysmsg 'You have been disarmed'4843                                if EnableOverheadMessages = 14844                                    overhead '[ DISARMED! ]' 444845                                elseif EnableOverheadMessages = 24846                                    overhead '*disarmed!*' 444847                                endif4848                                settimer DisarmedTimer 04849                                clearsysmsg4850                            endif4851                        endif4852                    endif4853                endif4854            endif4855        endif4856 4857        if EnableShieldCheck = 14858            wait 2504859            if not findtype 'Order shield|buckler |metal shield|Chaos shield|heater shield|bone shield|bronze shield|kite shield|wooden shield|parrying gauche' lefthand4860                if findtype 'Order shield|buckler |metal shield|Chaos shield|heater shield|bone shield|bronze shield|kite shield|wooden shield|parrying gauche' backpack as shield4861                    getlabel shield ShieldLabel4862                    for 54863                    wait 2504864                    if "unidentified" in ShieldLabel4865                        @ignore shield4866                        wait 2504867                        if findtype 'Order shield|buckler |metal shield|Chaos shield|heater shield|bone shield|bronze shield|kite shield|wooden shield|parrying gauche' backpack as shield4868                            getlabel shield ShieldLabel4869                            wait 2504870                        endif4871                    else4872                        break4873                    endif4874                    endfor4875                    wait 2504876                    dclick shield4877                    wait 5004878                endif4879            endif4880        endif4881 4882        while queued4883            wait 1004884        endwhile4885 4886        if OutsideHouseRecall = 14887            wait 25004888            if find MyDoor ground -1 -1 2 and EnableCloseMyDoor = 14889                dclick MyDoor4890                overhead "*door slams!*" 0 MyDoor4891                wait 10004892            endif4893            wait 25004894        elseif OwnerInnRecall = 14895            wait 5004896            say "Innkeeper, I need a room!" 22344897            waitforgump 23938324114898            gumpresponse 44899            wait 15004900        elseif CoOwnerInnRecall = 14901            wait 5004902            say "Innkeeper, I need a room!" 22344903            waitforgump 23938324114904            gumpresponse 54905            wait 5004906            gumpresponse 1004907            wait 15004908        elseif InsideHouseRecall = 14909            wait 10004910        elseif BankRecall = 14911            say "Open my bank!" 22344912            wait 10004913        else4914            wait 10004915        endif4916 4917        if EnableHideAtHomeorInn = 14918            useskill "Hiding"4919            wait 5004920        endif4921 4922        if EnableResetInventoryAfterDeath = 1 and IHAVEDIED = 14923            wait 5004924            if EnableAutoRecallOverheadMessages = 14925                overhead "[ RESETTING LOADOUT... ]" 774926            endif4927        endif4928 4929        if IHAVEDIED != 14930            if EnableLootBag = 14931                dclick LootBag4932                wait 5004933            endif4934 4935            if EnableLootChest = 14936                dclick LootChest4937                wait 5004938            endif4939 4940            if EnableStorageTomeContainer = 14941                wait 2504942                dclick TomeContainer4943                wait 5004944            endif4945 4946            if EnablePutLootinLockBox = 14947                if findtype "wooden box" self as lockbox4948                    if findtype "copper key" self as key4949                        clearignore4950                        getlabel lockbox lockboxlabel4951                        wait 2504952                        if "items" in lockboxlabel4953                            dclick lockbox4954                            wait 5004955                        else4956                            dclick key4957                            wft 15004958                            target lockbox4959                            if EnableAutoRecallOverheadMessages = 14960                                overhead "[loot box unlocked]" 844961                            endif4962                            wait 5004963                            dclick lockbox4964                            wait 2504965                            if insysmsg "It appears to be locked."4966                                dclick key4967                                wft 15004968                                target lockbox4969                                wait 5004970                                dclick lockbox4971                            endif4972                        endif4973                    elseif EnableAutoRecallOverheadMessages = 14974                        overhead "[ NO LOCKBOX KEY! ]" 3374975                    endif4976                endif4977            endif4978 4979            if EnableSafeDeposit = 14980                if findtype "bank deposit safe" ground -1 -1 2 as safe4981                    clearignore4982                    while findtype "gold coin" self as gold4983                        if findtype "wooden box" self as lockbox4984                            if findtype "copper key" self as key4985                                getlabel lockbox lockboxlabel4986                                if "items" in lockboxlabel4987                                    wait 5004988                                else4989                                    dclick key4990                                    wft 15004991                                    target lockbox4992                                    wait 2504993                                    if insysmsg "It appears to be locked."4994                                        dclick key4995                                        wft 15004996                                        target lockbox4997                                        wait 2504998                                    endif4999                                endif5000                            elseif EnableAutoRecallOverheadMessages = 15001                                overhead '[ NO LOCKBOX KEY! ]' 3375002                            endif5003                        endif5004 5005                        if EnableAutoRecallOverheadMessages = 15006                            overhead '[ DEPOSITING GOLD... ]' 1495007                        else5008                            overhead " � " 1495009                        endif5010 5011                        for 55012                        menu safe 05013                        wait 5005014                        if not findtype 'gold coins' self5015                            break5016                        endif5017                        endfor5018                        break5019                    endwhile5020 5021                    while findtype 2539 self as dubs5022                        if EnableAutoRecallOverheadMessages = 15023                            overhead '[ DEPOSITING DUBS... ]' 1495024                        else5025                            overhead " � " 1495026                        endif5027 5028                        for 55029                        menu safe 05030                        wait 5005031                        if not findtype '2539' self5032                            break5033                        endif5034                        endfor5035                        break5036                    endwhile5037                elseif EnableAutoRecallOverheadMessages = 15038                    overhead '[ NO BANK SAFE FOUND ]' 3375039                    wait 15005040                endif5041            endif5042 5043            if EnableMagicRecycler = 15044                if findtype "ornate elven chest|magic item recycler" ground -1 -1 2 as recycler5045                    for 25046                    getlabel recycler recyclerdesc5047 5048                    if EnableRecycleItemsWhenFull = 15049                        if "(125 items" in recyclerdesc5050                            dclick recycler5051                            waitforgump 40451111015052                            gumpresponse 75053                            waitforgump 40451111015054                            gumpresponse 65055                            waitforgump 40451111015056                            gumpresponse 65057 5058                            if EnableAutoRecallOverheadMessages = 15059                                overhead '[ RECYCLING JUNK... ]' 665060                            else5061                                overhead " � " 665062                            endif5063 5064                            wait 5005065                            gumpclose 40451111015066 5067                            if EnableResourceStockpile = 15068                                if findtype "resource container" ground -1 -1 2 as resource5069                                    menu resource 05070                                    wft 15005071                                    target recycler5072                                    wait 5005073                                    if EnableAutoRecallOverheadMessages = 15074                                        overhead '[ PILING RESOURCES... ]' 845075                                    else5076                                        overhead " � " 845077                                    endif5078                                    wait 5005079                                elseif EnableAutoRecallOverheadMessages = 15080                                    overhead '[ NO RESOURCE STOCKPILE FOUND ]' 3375081                                endif5082                            endif5083 5084                            menu recycler 15085                            getlabel backpack backpacklabel5086 5087                            if insysmsg "0 recyclable"5088                                break5089                            else5090                                if EnableAutoRecallOverheadMessages = 15091                                    overhead '[ ADDING TO RECYCLER... ]' 65092                                else5093                                    overhead " � " 65094                                endif5095                                wait 15005096                            endif5097                        endif5098                    endif5099                    menu recycler 15100                    wait 5005101                    if insysmsg "0 recyclable"5102                        if EnableAutoRecallOverheadMessages = 1 and timer "InventoryCheck" > 50005103                            overhead '[ NO MAGIC LOOT! ]' 65104                        elseif timer "InventoryCheck" > 50005105                            overhead " � " 65106                        endif5107                        break5108                    else5109                        if EnableAutoRecallOverheadMessages = 15110                            overhead '[ ADDING TO RECYCLER... ]' 65111                        else5112                            overhead " � " 65113                        endif5114                        settimer "InventoryCheck" 05115                        wait 15005116                    endif5117                    wait 5005118                    endfor5119                elseif EnableAutoRecallOverheadMessages = 15120                    overhead '[ NO MAGIC ITEM RECYCLER FOUND ]' 3375121                endif5122            endif5123 5124            if EnableLootChest = 15125                dclick LootChest5126                if EnableAutoRecallOverheadMessages = 15127                    overhead '[ STASHING LOOT... ]' 695128                else5129                    overhead " � " 695130                endif5131                wait 5005132                for 25133                hotkey "Organizer Agent-06"5134                wait 2505135                hotkey "Organizer Agent-07"5136                wait 2505137                hotkey "Organizer Agent-08"5138                wait 2505139                hotkey "Organizer Agent-09"5140                wait 2505141                endfor5142                while queued5143                    wait 1005144                endwhile5145            endif5146 5147            if EnableStorageTomes = 15148                if EnableStorageTomeContainer = 15149                    dclick TomeContainer5150                    wait 5005151                endif5152                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 StorageTome5153                    while findtype "70142|70143|70144|70145|70158|70159|70160|70161|70162|70163|70164|70165|70166|70167|70168" ground -1 -1 2 as StorageTome5154                        menu StorageTome 05155                        if EnableAutoRecallOverheadMessages = 1 and timer "InventoryCheck" > 35005156                            overhead '[ STORING TOME ITEMS... ]' 21175157                            settimer "InventoryCheck" 05158                        elseif EnableAutoRecallOverheadMessages = 0 and timer "InventoryCheck" > 35005159                            overhead " � " 21175160                            settimer "InventoryCheck" 05161                        endif5162                        wait 2505163                        @ignore StorageTome5164                    endwhile5165                    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 StorageTome5166                        menu StorageTome 05167                        if EnableAutoRecallOverheadMessages = 1 and timer "InventoryCheck" > 35005168                            overhead '[ STORING TOME ITEMS... ]' 21175169                            settimer "InventoryCheck" 05170                        elseif EnableAutoRecallOverheadMessages = 0 and timer "InventoryCheck" > 35005171                            overhead " � " 21175172                            settimer "InventoryCheck" 05173                        endif5174                        wait 2505175                        @ignore StorageTome5176                    endwhile5177                    @clearignore5178                elseif EnableAutoRecallOverheadMessages = 15179                    overhead '[ NO STORAGE TOMES FOUND ]' 3375180                    wait 15005181                endif5182            endif5183 5184            if EnableResourceStockpile = 15185                if findtype "resource container" ground -1 -1 2 as resource5186                    menu resource 05187                    wft 5005188                    target self5189                        if EnableAutoRecallOverheadMessages = 15190                            overhead '[ PILING RESOURCES... ]' 845191                        else5192                            overhead " � " 845193                        endif5194                    wait 15005195                elseif EnableAutoRecallOverheadMessages = 15196                    overhead '[ NO RESOURCE STOCKPILE FOUND ]' 3375197                    wait 15005198                endif5199            endif5200 5201            if EnableRepairBench = 15202                if findtype "repair bench" ground -1 -1 3 as RepairBench5203                    clearsysmsg5204                    dclick RepairBench5205                    wait 5005206                    if insysmsg "You do not have any items equipped or in your backpack in need of repairs."5207                        if EnableAutoRecallOverheadMessages = 15208                            overhead '[ NOTHING TO REPAIR! ]' 05209                        endif5210                        wait 15005211                    else5212                        if EnableAutoRecallOverheadMessages = 15213                            overhead '[ REPAIRING EQUIPMENT... ]' 3395214                        else5215                            overhead " � " 3395216                        endif5217                        settimer RepairTimer 05218                    while timer RepairTimer <= 50005219                        if insysmsg "Repair"5220                            break5221                        endif5222                    endwhile5223                        if EnableAutoRecallOverheadMessages = 15224                            overhead '[ ITEMS REPAIRED! ]' 05225                            wait 5005226                            overhead "Repair took: {{RepairTimer}}ms" 775227                        else5228                            overhead " � " 05229                        endif5230                        wait 5005231                    endif5232                elseif EnableAutoRecallOverheadMessages = 15233                    overhead '[ NO REPAIR BENCH FOUND ]' 3375234                    wait 15005235                endif5236            endif5237        endif5238 5239        wait 5005240 5241        if EnableStorageShelf = 15242            if findtype "storage shelf" ground -1 -1 2 as shelf5243                if IHAVEDIED != 15244                    menu shelf 05245                    wft 5005246                    target self5247                    if EnableAutoRecallOverheadMessages = 15248                        overhead '[ STORING GOODS... ]' 21145249                    else5250                        overhead " � " 21145251                    endif5252                    wait 5005253                    gumpclose 32328259655254                    wait 10005255                endif5256                menu shelf 15257                if EnableAutoRecallOverheadMessages = 15258                    overhead '[ RESUPPLYING... ]' 935259                    wait 5005260                else5261                    overhead " � " 935262                endif5263                wait 2505264                if insysmsg 'No resupply' and EnableAutoRecallOverheadMessages = 15265                    wait 5005266                    overhead '[loadout missing items]' 21175267                    wait 2505268                endif5269                wait 5005270            elseif EnableAutoRecallOverheadMessages = 15271                overhead '[ NO STORAGE SHELF FOUND ]' 3375272                wait 15005273            endif5274        endif5275 5276        if EnableResetInventoryAfterDeath = 1 and IHAVEDIED = 15277            clearignore5278            if skill 'healing' > 0 and hp < maxhp and not bandaging5279                if findtype 'clean bandage%s%' self and not bandaging5280                    hotkey 'Bandage Self'5281                    if EnableAutoRecallOverheadMessages = 15282                        overhead "[ BANDAGING... ]" 885283                    endif5284                endif5285                wait 5005286            endif5287 5288            if EnableNobleSacrifice = 15289                if diffhits > 50 and skill "Chivalry" >= 80 and timer "NobleSacrificeTimer" > 31000 and timer "ChivalryPrevented" > 50005290                    clearsysmsg5291                    yell "[NobleSacrifice"5292                    wait 2505293                    if insysmsg "You do not have enough holy"5294                        settimer "ChivalryPrevented" 05295                        clearsysmsg5296                    else5297                        wft 10005298                        target 'self'5299                        if EnableOverheadMessages = 15300                            overhead "[ NOBLE SACRIFICE! ]" 1555301                        endif5302                        settimer "NobleSacrificeTimer" 05303                        cooldown "Noble Sacrifice" 310005304                        settimer "ChivalryPrevented" 05305                    endif5306                    wait 2505307                endif5308            endif5309 5310            if not varexist maininventorybag or not find maininventorybag self5311                overhead "[ SELECT MAIN POUCH... ]" 2535312                @setvar! maininventorybag5313                wft 5005314                while targetexists5315                    wait 1005316                endwhile5317                overhead "[ MAIN POUCH SET! ]" 935318                wait 5005319            endif5320 5321            lift maininventorybag5322            wait 5005323            drop backpack 69 69 05324            wait 5005325 5326            if EnableSetMainPouchOrganizer01 = 15327                hotkey 'Set Organizer Hotbag-01'5328                wft 10005329                target maininventorybag5330                if EnableAutoRecallOverheadMessages = 15331                    overhead "[ POUCH SET TO AGENT-01! ]" 845332                endif5333                wait 5005334            endif5335 5336            dclick maininventorybag5337            wait 10005338            sysmsg "Auto-selecting your loot/grab bag..." 05339            hotkey 'Set Grab Item Hotbag'5340            wft 15005341 5342            while targetexists5343                if findtype 'bag' self as grabbag5344                    target grabbag5345                    wait 5005346                else5347                    wait 10005348                    sysmsg "Auto-select failed!  Please manually target your loot/grab bag!" 05349                    wait 10005350                    overhead "[ SELECT GRAB BAG... ]" 2535351                    wait 35005352                endif5353                wait 5005354            endwhile5355            overhead "[ GRAB BAG SET! ]" 935356            wait 5005357 5358            if EnableLootBag = 15359                if not find LootBag self5360                    wait 5005361                    overhead "Select your new loot bag..." 2535362                    wait 5005363                    @setvar! LootBag5364                    wait 5005365                    while targetexists5366                        wait 1005367                    endwhile5368                endif5369            endif5370 5371            if find grabbag self5372                lift grabbag5373                wait 5005374                drop maininventorybag -1 -1 -15375                wait 5005376                @ignore maininventorybag5377            endif5378 5379            while findtype 'scissors' self5380                if findtype 'scissors' self as myscissors5381                    if findtype 'pouch' self as trappedpouch5382                        lift myscissors5383                        wait 2505384                        drop trappedpouch5385                        wait 7505386                        lift trappedpouch5387                        wait 2505388                        drop backpack 69 69 05389                        @ignore trappedpouch5390                        @ignore myscissors5391                    endif5392                endif5393 5394                wait 5005395                while queued5396                    wait 1005397                endwhile5398            endwhile5399 5400            clearignore5401 5402            while findtype 'pouch' backpack as decoypouch5403                getlabel decoypouch decoypouchlabel5404                wait 2505405                if '(1 items' in decoypouchlabel5406                    lift decoypouch5407                    drop backpack 97 97 05408                    break5409                else5410                    @ignore decoypouch5411                endif5412            endwhile5413 5414            if findtype 'atlas' backpack as hidemypouchstack5415                lift hidemypouchstack5416                drop backpack 72 66 05417                wait 5005418            else5419                say "[atlas"5420                wait 5005421                if findtype 'atlas' backpack as hidemypouchstack5422                    lift hidemypouchstack5423                    drop backpack 72 66 05424                    wait 5005425                endif5426            endif5427 5428            if EnableAutoRecallOverheadMessages = 15429                overhead "[ ACTIVATING ASPECT... ]" 22345430                wait 5005431            endif5432 5433            say "[aspect"5434            waitforgump 24242931735435            gumpresponse 85436            wait 5005437            gumpresponse 85438            wait 2505439            gumpresponse 175440            wait 5005441            gumpresponse 175442            wait 2505443            gumpclose 24242931735444            dclick backpack5445            wait 2505446 5447            if findtype "storage shelf" ground -1 -1 2 as shelf5448                menu shelf 15449                wait 5005450            endif5451 5452            if find maininventorybag self5453                dclick maininventorybag5454                wait 5005455            endif5456 5457            if findtype 'alchemists satchel' self as BagofPot5458                dclick BagofPot5459                wait 5005460            endif5461 5462            if findtype 'reagent satchel' self as WizardBag5463                dclick WizardBag5464                wait 5005465            endif5466 5467            if find grabbag self5468                dclick grabbag5469                wait 5005470            endif5471 5472            clearignore5473            @setvar! IHAVEDIED 05474            overhead "[ RESET COMPLETE! ]" 695475            wait 5005476        endif5477 5478        if EnableUsePotionKegs = 1 and findtype 'empty bottle%s%' self and findtype 'keg' self and timer 'PotionKegPVPCooldown' > 300005479            if not timerexists PotionKegTimer5480                createtimer PotionKegTimer5481                settimer PotionKegTimer 50005482            endif5483 5484            @setvar! PotionStockCheck 05485 5486            while PotionStockCheck < 8 and findtype 'empty bottle%s%' self5487                @setvar! PotionAmounttoFill 05488                if PotionStockCheck = 05489                    if ExplosionPotionAmount != 05490                        @setvar! PotionType 38535491                        @setvar! KegColour 4195492                        @setvar! PotionAmounttoFill ExplosionPotionAmount5493                    endif5494                    @setvar! PotionStockCheck 15495                elseif PotionStockCheck = 15496                    if HealingPotionAmount != 05497                        @setvar! PotionType 38525498                        @setvar! KegColour 2535499                        @setvar! PotionAmounttoFill HealingPotionAmount5500                    endif5501                    @setvar! PotionStockCheck 25502                elseif PotionStockCheck = 25503                    if CurePotionAmount != 05504                        @setvar! PotionType 38475505                        @setvar! KegColour 445506                        @setvar! PotionAmounttoFill CurePotionAmount5507                    endif5508                    @setvar! PotionStockCheck 35509                elseif PotionStockCheck = 35510                    if RefreshPotionAmount != 05511                        @setvar! PotionType 38515512                        @setvar! KegColour 375513                        @setvar! PotionAmounttoFill RefreshPotionAmount5514                    endif5515                    @setvar! PotionStockCheck 45516                elseif PotionStockCheck = 45517                    if StrengthPotionAmount != 05518                        @setvar! PotionType 38495519                        @setvar! KegColour 9565520                        @setvar! PotionAmounttoFill StrengthPotionAmount5521                    endif5522                    @setvar! PotionStockCheck 55523                elseif PotionStockCheck = 55524                    if AgilityPotionAmount != 05525                        @setvar! PotionType 38485526                        @setvar! KegColour 935527                        @setvar! PotionAmounttoFill AgilityPotionAmount5528                    endif5529                    @setvar! PotionStockCheck 65530                elseif PotionStockCheck = 65531                    if ResistPotionAmount != 05532                        @setvar! PotionType 38465533                        @setvar! KegColour 11095534                        @setvar! PotionAmounttoFill ResistPotionAmount5535                    endif5536                    @setvar! PotionStockCheck 75537                elseif PotionStockCheck = 75538                    if PoisonPotionAmount != 05539                        @setvar! PotionType 38505540                        @setvar! KegColour 3635541                        @setvar! PotionAmounttoFill PoisonPotionAmount5542                    endif5543                    @setvar! PotionStockCheck 85544                endif5545 5546                if PotionAmounttoFill != 05547                    while counttype PotionType self < PotionAmounttoFill5548                        if not findtype 'empty bottle%s%' self5549                            if EnableAutoRecallOverheadMessages = 1 and timer 'PotionKegTimer' > 50005550                                overhead "[ NO EMPTY BOTTLES... ]" 3375551                                settimer 'PotionKegTimer' 05552                            endif5553                            break5554                        endif5555 5556                        if diffhits > 105557                            break5558                        endif5559 5560                        if findtype 'keg' self KegColour as myKeg5561                            dclick myKeg5562                            wait 2505563                            if EnableAutoRecallOverheadMessages = 15564                                if timer 'PotionKegTimer' > 20005565                                    overhead '[ FILLING POTS... ]' KegColour5566                                    settimer 'PotionKegTimer' 05567                                endif5568                            endif5569                        else5570                            if EnableAutoRecallOverheadMessages = 1 and timer 'PotionKegTimer' > 50005571                                overhead "[ NO KEG TO USE... ]" KegColour5572                                settimer 'PotionKegTimer' 05573                            endif5574                            break5575                        endif5576                        if insysmsg "You have been in combat with another player"5577                            settimer "PotionKegPVPCooldown" 05578                            break5579                        endif5580                    endwhile5581 5582                    if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self5583                        if EnableAutoRecallOverheadMessages = 1 and timer 'PotionKegTimer' > 50005584                            overhead "[ NO EMPTY BOTTLES... ]" 3375585                            settimer 'PotionKegTimer' 05586                        endif5587                        break5588                    endif5589                endif5590            endwhile5591        endif5592 5593        if EnableReagentSplitter = 15594            if findtype "reagent satchel" self5595                while findtype "reagent satchel" self as MyWizardBag5596                    getlabel MyWizardBag MyWizardBagdesc5597                    if 'decorative' in MyWizardBagdesc5598                        @ignore MyWizardBag5599                    else5600                        break5601                    endif5602                endwhile5603                sysmsg "Disable 'EnableReagentSplitter' in script variables to turn off this feature!" 05604                dclick MyWizardBag5605                wait 5005606                if EnableAutoRecallOverheadMessages = 1 and timer "InventoryCheck" > 35005607                    overhead "[ SPLITTING REGS... ]" 1115608                    settimer "InventoryCheck" 05609                elseif EnableAutoRecallOverheadMessages = 0 and timer "InventoryCheck" > 35005610                    overhead " � " 1115611                    settimer "InventoryCheck" 05612                endif5613                @setvar! amount 05614                @setvar! regsID 39815615                @setvar! myCounter 05616                while findtype regsID self as r5617                    @setvar! myCounter index5618                    @ignore r5619                endwhile5620                @clearignore5621                if counttype regsID self <= 155622                    @setvar! amount 25623                elseif counttype regsID self <= 305624                    @setvar! amount 45625                elseif counttype regsID self <= 505626                    @setvar! amount 105627                elseif counttype regsID self <= 1005628                    @setvar! amount 205629                elseif counttype regsID self <= 1505630                    @setvar! amount 305631                elseif counttype regsID self <= 2005632                    @setvar! amount 405633                else5634                    @setvar! amount 505635                endif5636                while findtype regsID self as regs5637                    @setvar! moveRegs 05638                    if myCounter = 05639                        @setvar! moveRegs 15640                    elseif myCounter != 0 and not find regs MyWizardBag5641                        @setvar! moveRegs 15642                    endif5643                    if moveRegs = 15644                        if index = 05645                            lift regs amount5646                            drop MyWizardBag 44 65 05647                            wait 1505648                        elseif index = 15649                            lift regs amount5650                            drop MyWizardBag 68 65 05651                            wait 1505652                        elseif index = 25653                            lift regs amount5654                            drop MyWizardBag 96 65 05655                            wait 1505656                        elseif index = 35657                            lift regs amount5658                            drop MyWizardBag 121 65 05659                            wait 1505660                        else5661                            lift regs amount5662                            drop MyWizardBag 142 65 05663                            wait 1505664                        endif5665                    endif5666                    @ignore regs5667                    if moveRegs = 15668                        wait 5005669                    endif5670                endwhile5671                @setvar! regsID 39625672                @setvar! myCounter 05673                while findtype regsID self as r5674                    @setvar! myCounter index5675                    @ignore r5676                endwhile5677                @clearignore5678                if counttype regsID self <= 105679                    @setvar! amount 25680                elseif counttype regsID self <= 205681                    @setvar! amount 45682                elseif counttype regsID self <= 505683                    @setvar! amount 105684                elseif counttype regsID self <= 1005685                    @setvar! amount 205686                elseif counttype regsID self <= 1505687                    @setvar! amount 305688                elseif counttype regsID self <= 2005689                    @setvar! amount 405690                else5691                    @setvar! amount 505692                endif5693                while findtype regsID self as regs5694                    @setvar! moveRegs 05695                    if myCounter = 05696                        @setvar! moveRegs 15697                    elseif myCounter != 0 and not find regs MyWizardBag5698                        @setvar! moveRegs 15699                    endif5700                    if moveRegs = 15701                        if index = 05702                            lift regs amount5703                            drop MyWizardBag 44 76 05704                            wait 1505705                        elseif index = 15706                            lift regs amount5707                            drop MyWizardBag 68 76 05708                            wait 1505709                        elseif index = 25710                            lift regs amount5711                            drop MyWizardBag 96 76 05712                            wait 1505713                        elseif index = 35714                            lift regs amount5715                            drop MyWizardBag 121 76 05716                            wait 1505717                        else5718                            lift regs amount5719                            drop MyWizardBag 142 76 05720                            wait 1505721                        endif5722                    endif5723                    @ignore regs5724                    if moveRegs = 15725                        wait 5005726                    endif5727                endwhile5728                @setvar! regsID 39765729                @setvar! myCounter 05730                while findtype regsID self as r5731                    @setvar! myCounter index5732                    @ignore r5733                endwhile5734                @clearignore5735                if counttype regsID self <= 105736                    @setvar! amount 25737                elseif counttype regsID self <= 205738                    @setvar! amount 45739                elseif counttype regsID self <= 505740                    @setvar! amount 105741                elseif counttype regsID self <= 1005742                    @setvar! amount 205743                elseif counttype regsID self <= 1505744                    @setvar! amount 305745                elseif counttype regsID self <= 2005746                    @setvar! amount 405747                else5748                    @setvar! amount 505749                endif5750                while findtype regsID self as regs5751                    @setvar! moveRegs 05752                    if myCounter = 05753                        @setvar! moveRegs 15754                    elseif myCounter != 0 and not find regs MyWizardBag5755                        @setvar! moveRegs 15756                    endif5757                    if moveRegs = 15758                        if index = 05759                            lift regs amount5760                            drop MyWizardBag 44 88 05761                            wait 1505762                        elseif index = 15763                            lift regs amount5764                            drop MyWizardBag 68 88 05765                            wait 1505766                        elseif index = 25767                            lift regs amount5768                            drop MyWizardBag 96 88 05769                            wait 1505770                        elseif index = 35771                            lift regs amount5772                            drop MyWizardBag 121 88 05773                            wait 1505774                        else5775                            lift regs amount5776                            drop MyWizardBag 142 88 05777                            wait 1505778                        endif5779                    endif5780                    @ignore regs5781                    if moveRegs = 15782                        wait 5005783                    endif5784                endwhile5785                @setvar! regsID 39745786                @setvar! myCounter 05787                while findtype regsID self as r5788                    @setvar! myCounter index5789                    @ignore r5790                endwhile5791                @clearignore5792                if counttype regsID self <= 105793                    @setvar! amount 25794                elseif counttype regsID self <= 205795                    @setvar! amount 45796                elseif counttype regsID self <= 505797                    @setvar! amount 105798                elseif counttype regsID self <= 1005799                    @setvar! amount 205800                elseif counttype regsID self <= 1505801                    @setvar! amount 305802                elseif counttype regsID self <= 2005803                    @setvar! amount 405804                else5805                    @setvar! amount 505806                endif5807                while findtype regsID self as regs5808                    @setvar! moveRegs 05809                    if myCounter = 05810                        @setvar! moveRegs 15811                    elseif myCounter != 0 and not find regs MyWizardBag5812                        @setvar! moveRegs 15813                    endif5814                    if moveRegs = 15815                        if index = 05816                            lift regs amount5817                            drop MyWizardBag 44 100 05818                            wait 1505819                        elseif index = 15820                            lift regs amount5821                            drop MyWizardBag 68 100 05822                            wait 1505823                        elseif index = 25824                            lift regs amount5825                            drop MyWizardBag 96 100 05826                            wait 1505827                        elseif index = 35828                            lift regs amount5829                            drop MyWizardBag 121 100 05830                            wait 1505831                        else5832                            lift regs amount5833                            drop MyWizardBag 142 100 05834                            wait 1505835                        endif5836                    endif5837                    @ignore regs5838                    if moveRegs = 15839                        wait 5005840                    endif5841                endwhile5842                @setvar! regsID 39805843                @setvar! myCounter 05844                while findtype regsID self as r5845                    @setvar! myCounter index5846                    @ignore r5847                endwhile5848                @clearignore5849                if counttype regsID self <= 105850                    @setvar! amount 25851                elseif counttype regsID self <= 205852                    @setvar! amount 45853                elseif counttype regsID self <= 505854                    @setvar! amount 105855                elseif counttype regsID self <= 1005856                    @setvar! amount 205857                elseif counttype regsID self <= 1505858                    @setvar! amount 305859                elseif counttype regsID self <= 2005860                    @setvar! amount 405861                else5862                    @setvar! amount 505863                endif5864                while findtype regsID self as regs5865                    @setvar! moveRegs 05866                    if myCounter = 05867                        @setvar! moveRegs 15868                    elseif myCounter != 0 and not find regs MyWizardBag5869                        @setvar! moveRegs 15870                    endif5871                    if moveRegs = 15872                        if index = 05873                            lift regs amount5874                            drop MyWizardBag 44 112 05875                            wait 1505876                        elseif index = 15877                            lift regs amount5878                            drop MyWizardBag 68 112 05879                            wait 1505880                        elseif index = 25881                            lift regs amount5882                            drop MyWizardBag 96 112 05883                            wait 1505884                        elseif index = 35885                            lift regs amount5886                            drop MyWizardBag 121 112 05887                            wait 1505888                        else5889                            lift regs amount5890                            drop MyWizardBag 142 112 05891                            wait 1505892                        endif5893                    endif5894                    @ignore regs5895                    if moveRegs = 15896                        wait 5005897                    endif5898                endwhile5899                @setvar! regsID 39735900                @setvar! myCounter 05901                while findtype regsID self as r5902                    @setvar! myCounter index5903                    @ignore r5904                endwhile5905                @clearignore5906                if counttype regsID self <= 105907                    @setvar! amount 25908                elseif counttype regsID self <= 205909                    @setvar! amount 45910                elseif counttype regsID self <= 505911                    @setvar! amount 105912                elseif counttype regsID self <= 1005913                    @setvar! amount 205914                elseif counttype regsID self <= 1505915                    @setvar! amount 305916                elseif counttype regsID self <= 2005917                    @setvar! amount 405918                else5919                    @setvar! amount 505920                endif5921                while findtype regsID self as regs5922                    @setvar! moveRegs 05923                    if myCounter = 05924                        @setvar! moveRegs 15925                    elseif myCounter != 0 and not find regs MyWizardBag5926                        @setvar! moveRegs 15927                    endif5928                    if moveRegs = 15929                        if index = 05930                            lift regs amount5931                            drop MyWizardBag 44 124 05932                            wait 1505933                        elseif index = 15934                            lift regs amount5935                            drop MyWizardBag 68 124 05936                            wait 1505937                        elseif index = 25938                            lift regs amount5939                            drop MyWizardBag 96 124 05940                            wait 1505941                        elseif index = 35942                            lift regs amount5943                            drop MyWizardBag 121 124 05944                            wait 1505945                        else5946                            lift regs amount5947                            drop MyWizardBag 142 124 05948                            wait 1505949                        endif5950                    endif5951                    @ignore regs5952                    if moveRegs = 15953                        wait 5005954                    endif5955                endwhile5956                @setvar! regsID 39635957                @setvar! myCounter 05958                while findtype regsID self as r5959                    @setvar! myCounter index5960                    @ignore r5961                endwhile5962                @clearignore5963                if counttype regsID self <= 105964                    @setvar! amount 25965                elseif counttype regsID self <= 205966                    @setvar! amount 45967                elseif counttype regsID self <= 505968                    @setvar! amount 105969                elseif counttype regsID self <= 1005970                    @setvar! amount 205971                elseif counttype regsID self <= 1505972                    @setvar! amount 305973                elseif counttype regsID self <= 2005974                    @setvar! amount 405975                else5976                    @setvar! amount 505977                endif5978                while findtype regsID self as regs5979                    @setvar! moveRegs 05980                    if myCounter = 05981                        @setvar! moveRegs 15982                    elseif myCounter != 0 and not find regs MyWizardBag5983                        @setvar! moveRegs 15984                    endif5985                    if moveRegs = 15986                        if index = 05987                            lift regs amount5988                            drop MyWizardBag 44 136 05989                            wait 1505990                        elseif index = 15991                            lift regs amount5992                            drop MyWizardBag 68 136 05993                            wait 1505994                        elseif index = 25995                            lift regs amount5996                            drop MyWizardBag 96 136 05997                            wait 1505998                        elseif index = 35999                            lift regs amount6000                            drop MyWizardBag 121 136 06001                            wait 1506002                        else6003                            lift regs amount6004                            drop MyWizardBag 142 136 06005                            wait 1506006                        endif6007                    endif6008                    @ignore regs6009                    if moveRegs = 16010                        wait 5006011                    endif6012                endwhile6013                @setvar! regsID 39726014                @setvar! myCounter 06015                while findtype regsID self as r6016                    @setvar! myCounter index6017                    @ignore r6018                endwhile6019                @clearignore6020                if counttype regsID self <= 106021                    @setvar! amount 26022                elseif counttype regsID self <= 206023                    @setvar! amount 46024                elseif counttype regsID self <= 506025                    @setvar! amount 106026                elseif counttype regsID self <= 1006027                    @setvar! amount 206028                elseif counttype regsID self <= 1506029                    @setvar! amount 306030                elseif counttype regsID self <= 2006031                    @setvar! amount 406032                else6033                    @setvar! amount 506034                endif6035                while findtype regsID self as regs6036                    @setvar! moveRegs 06037                    if myCounter = 06038                        @setvar! moveRegs 16039                    elseif myCounter != 0 and not find regs MyWizardBag6040                        @setvar! moveRegs 16041                    endif6042                    if moveRegs = 16043                        if index = 06044                            lift regs amount6045                            drop MyWizardBag 44 148 06046                            wait 1506047                        elseif index = 16048                            lift regs amount6049                            drop MyWizardBag 68 148 06050                            wait 1506051                        elseif index = 26052                            lift regs amount6053                            drop MyWizardBag 96 148 06054                            wait 1506055                        elseif index = 36056                            lift regs amount6057                            drop MyWizardBag 121 148 06058                            wait 1506059                        else6060                            lift regs amount6061                            drop MyWizardBag 142 148 06062                            wait 1506063                        endif6064                    endif6065                    @ignore regs6066                    if moveRegs = 16067                        wait 5006068                    endif6069                endwhile6070                @setvar! regsID 80126071                @setvar! myCounter 06072                while findtype regsID self as r6073                    @setvar! myCounter index6074                    @ignore r6075                endwhile6076                @clearignore6077                if counttype regsID self <= 56078                    @setvar! amount 16079                elseif counttype regsID self <= 106080                    @setvar! amount 26081                elseif counttype regsID self <= 206082                    @setvar! amount 46083                elseif counttype regsID self <= 406084                    @setvar! amount 86085                else6086                    @setvar! amount 156087                endif6088                while findtype regsID self as regs6089                    @setvar! moveRegs 06090                    if myCounter = 06091                        @setvar! moveRegs 16092                    elseif myCounter != 0 and not find regs MyWizardBag6093                        @setvar! moveRegs 16094                    endif6095                    @ignore regs6096                    if moveRegs = 16097                        wait 5006098                    endif6099                endwhile6100            elseif EnableAutoRecallOverheadMessages = 16101                overhead "[ NO WIZARD BAG! ]" 3376102            endif6103        endif6104 6105        if EnableInfiniteLoop != 0 and RedTargetFound != 1 and SkipInfiniteLoop != 1 and skill 'Chivalry' >= 906106            @setvar! TimeToGo 06107            @setvar! RECALLTIME 06108            hotkey 'Toggle War Only'6109 6110            if skill 'Healing' > 306111                if not bandaging6112                    if hp < maxhp or poisoned or findbuff "Bleed" or findbuff "Diseased"6113                        if EnableAutoRecallOverheadMessages = 16114                            overhead '[ BANDAGING... ]' 886115                        endif6116                        hotkey "Bandage Self"6117                        wait 5006118                    endif6119                endif6120            endif6121 6122            if EnableNobleSacrifice = 16123                if diffhits > 50 and skill "Chivalry" >= 80 and timer "NobleSacrificeTimer" > 31000 and timer "ChivalryPrevented" > 50006124                    clearsysmsg6125                    yell "[NobleSacrifice"6126                    wait 2506127                    if insysmsg "You do not have enough holy"6128                        settimer "ChivalryPrevented" 06129                        clearsysmsg6130                    else6131                        wft 10006132                        target 'self'6133                        if EnableAutoRecallOverheadMessages = 16134                            overhead "[ NOBLE SACRIFICE! ]" 1556135                        endif6136                        settimer "NobleSacrificeTimer" 06137                        cooldown "Noble Sacrifice" 310006138                    endif6139                    wait 2506140                endif6141            endif6142 6143            if EnableHolyLight = 16144                if diffhits > 30 and skill "Chivalry" >= 95 and timer "HolyLightTimer" > 31000 and timer "ChivalryPrevented" > 50006145                    clearsysmsg6146                    yell "[HolyLight"6147                    wait 2506148                    if insysmsg "You do not have enough holy"6149                        settimer "ChivalryPrevented" 06150                        clearsysmsg6151                    else6152                        if EnableAutoRecallOverheadMessages = 16153                            overhead "[ HOLY LIGHT! ]" 2546154                        endif6155                        settimer "HolyLightTimer" 06156                        cooldown "Holy Light" 310006157                    endif6158                    wait 2506159                endif6160            endif6161 6162            if SkipInfiniteLoop != 16163                if EnableAutoRecallOverheadMessages = 16164                    overhead '[ ACTIVATING LOOP! ]' 4206165                endif6166                sysmsg 'Chivalry Infinite Loop activated! Countdown until gate opens...' 4206167                wait 20006168            endif6169 6170            while SkipInfiniteLoop != 16171                sysmsg 'Toggle PEACE MODE to CANCEL Infinite Loop' 1536172                overhead "3" 696173                wait 15006174                if not warmode6175                    @setvar! SkipInfiniteLoop 16176                    break6177                endif6178                overhead "2" 696179                wait 15006180                if not warmode6181                    @setvar! SkipInfiniteLoop 16182                    break6183                endif6184                overhead "1" 696185                wait 15006186                if not warmode6187                    @setvar! SkipInfiniteLoop 16188                    break6189                endif6190                break6191            endwhile6192 6193            getlabel backpack backpacklabel6194 6195            while timer "InfiniteLoop" < 300006196                if timer "NoTargetTimer" < 25006197                    if EnableAutoRecallOverheadMessages = 16198                        overhead "[ WAITING TO LOOP... ]" 4206199                        settimer "NoTargetTimer" 06200                    endif6201                endif6202                wait 5006203                if not warmode6204                    @setvar! SkipInfiniteLoop 16205                    break6206                endif6207            endwhile6208 6209            getlabel backpack backpacklabel6210 6211            if SkipInfiniteLoop != 1 and warmode6212                if EnableAutoRecallOverheadMessages = 16213                    overhead "[ �� INFINITE LOOP! �� ]" 4206214                endif6215 6216                say '[SacredJourney'6217                wait 10006218                for 56219                if insysmsg "You have been in combat"6220                    wait 20006221                    clearsysmsg6222                    say '[SacredJourney'6223                    wait 10006224                else6225                    break6226                endif6227                endfor6228                waitforgump 14826538146229                if InfiniteLoopDestination = 26230                    gumpresponse 46231                elseif InfiniteLoopDestination = 16232                    gumpresponse 26233                endif6234                wait 15006235                for 56236                if findtype 30528 ground -1 -1 1 as ChivGate6237                    dclick ChivGate6238                    wait 15006239                    break6240                else6241                    wait 10006242                endif6243                endfor6244                waitforgump6245                gumpresponse 26246                wait 10006247                hotkey "Organizer Agent-01"6248                @setvar! IHAVEDIED 06249                @setvar! DisableVacuums 06250                @setvar! TimeToGo 06251                @setvar! SkipInfiniteLoop 06252                @setvar! RedTargetFound 06253                @setvar! WarModeToggledWhileFighting 06254                @setvar! RECALLTIME 06255                hotkey 'Toggle War Only'6256                replay6257            else6258                if EnableAutoRecallOverheadMessages = 16259                    wait 5006260                    overhead '[ INFINITE LOOP SKIPPED! ]' 376261                    wait 10006262                endif6263                hotkey "Organizer Agent-01"6264                @setvar! IHAVEDIED 06265                @setvar! DisableVacuums 06266                @setvar! TimeToGo 06267                @setvar! SkipInfiniteLoop 06268                @setvar! RedTargetFound 06269                @setvar! WarModeToggledWhileFighting 06270                @setvar! RECALLTIME 06271 6272                if name = "Glacier"6273                    wait 10006274                    if UsingSwords = 16275                        script 'My Scripts\Sheath Sword'6276                    elseif UsingDualWield = 16277                        script 'My Scripts\Sheath Axes'6278                    endif6279                else6280                    overhead "[ SCRIPT COMPLETE! ]" 886281                endif6282                stop6283            endif6284        else6285            hotkey "Organizer Agent-01"6286            @setvar! IHAVEDIED 06287            @setvar! DisableVacuums 06288            @setvar! TimeToGo 06289            @setvar! SkipInfiniteLoop 06290            @setvar! RedTargetFound 06291            @setvar! WarModeToggledWhileFighting 06292            @setvar! RECALLTIME 06293 6294            if name = "Glacier"6295                wait 10006296                if UsingSwords = 16297                    script 'My Scripts\Sheath Sword'6298                elseif UsingDualWield = 16299                    script 'My Scripts\Sheath Axes'6300                endif6301            else6302                overhead "[ SCRIPT COMPLETE! ]" 886303            endif6304            stop6305        endif6306    endif6307 6308    //////////////////////////6309    //   END AUTO RECALL    //6310    //////////////////////////6311 6312 6313    ///////////////////////6314    //      CHECKS:      //6315    ///////////////////////6316 6317    if dead6318        break6319    endif6320 6321    if skill 'Swordsmanship' >= 506322        if findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' hand as weapon6323            @setvar! UsingSwords 16324        elseif findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' backpack as potentialweapon6325            @setvar! UsingSwords 26326        elseif not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' self6327            @setvar! UsingSwords 06328        endif6329    else6330        @setvar! UsingSwords 06331    endif6332 6333    if skill 'Mace Fighting' >= 506334        if findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' hand as weapon6335            @setvar! UsingMacing 16336        elseif findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' backpack as potentialweapon6337            @setvar! UsingMacing 26338        elseif not findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' self6339            @setvar! UsingMacing 06340        endif6341    else6342        @setvar! UsingMacing 06343    endif6344 6345    if skill 'Fencing' >= 506346        if findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' hand as weapon6347            @setvar! UsingFencing 16348        elseif findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' backpack as potentialweapon6349            @setvar! UsingFencing 26350        elseif not findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' self6351            @setvar! UsingFencing 06352        endif6353    else6354        @setvar! UsingFencing 06355    endif6356 6357    if skill 'Archery' >= 506358        if findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' hand as weapon6359            @setvar! UsingArchery 16360        elseif findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' backpack as potentialweapon6361            @setvar! UsingArchery 26362        elseif not findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' self6363            @setvar! UsingArchery 06364        endif6365    else6366        @setvar! UsingArchery 06367    endif6368 6369    if skill 'Wrestling' >= 506370        if findtype '22187|31141|31142' hand as weapon6371            @setvar! UsingWrestling 16372        elseif findtype '22187|31141|31142' backpack as potentialweapon6373            @setvar! UsingWrestling 26374        elseif not findtype '22187|31141|31142' self6375            @setvar! UsingWrestling 06376        endif6377    else6378        @setvar! UsingWrestling 06379    endif6380 6381    if skill 'Throwing' >= 506382        if findtype '67713|67723|67734|67744|67754|67764' hand as weapon6383            @setvar! UsingThrowing 16384        elseif findtype '67713|67723|67734|67744|67754|67764' backpack as potentialweapon6385            @setvar! UsingThrowing 26386        elseif not findtype '67713|67723|67734|67744|67754|67764' self6387            @setvar! UsingThrowing 06388        endif6389    else6390        @setvar! UsingThrowing 06391    endif6392 6393    if skill 'Dual Wielding' >= 506394        if findtype '67773|67774|67775|67776|67777|67778' hand as weapon6395            @setvar! UsingDualWield 16396        elseif findtype '67773|67774|67775|67776|67777|67778' backpack as potentialweapon6397            @setvar! UsingDualWield 26398        elseif not findtype '67773|67774|67775|67776|67777|67778' self6399            @setvar! UsingDualWield 06400        endif6401    else6402        @setvar! UsingDualWield 06403    endif6404 6405    if EnableAutoEquipWeapon = 16406        if timer DisarmedTimer > 25006407            if skill 'Swordsmanship' >= 50 and UsingSwords != 06408                if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' self6409                    overhead "[ NO WEAPON! ]" 3376410                    wait 15006411                else6412                    if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' hand6413                        if findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' backpack as weapon6414                            for 106415                            getlabel weapon WeaponLabel6416                            wait 2506417                            if "unidentified" in WeaponLabel6418                                @ignore weapon6419                                wait 1506420                                if findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' backpack as weapon6421                                    getlabel weapon WeaponLabel6422                                endif6423                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel6424                                break6425                            else6426                                @ignore weapon6427                                wait 1506428                                if findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' backpack as weapon6429                                    getlabel weapon WeaponLabel6430                                endif6431                            endif6432                            endfor6433                            wait 1506434                            clearsysmsg6435                            dclick weapon6436                            wait 2506437                            if insysmsg 'You have been disarmed'6438                                if EnableOverheadMessages = 16439                                    overhead '[ DISARMED! ]' 446440                                elseif EnableOverheadMessages = 26441                                    overhead '*disarmed!*' 446442                                endif6443                                settimer DisarmedTimer 06444                                clearsysmsg6445                            endif6446                        endif6447                    endif6448                endif6449                elseif skill 'Mace Fighting' >= 50 and UsingMacing != 06450                if not findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' self6451                    overhead "[ NO WEAPON! ]" 3376452                    wait 15006453                else6454                    if not findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' hand6455                        if findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' backpack as weapon6456                            for 106457                            getlabel weapon WeaponLabel6458                            wait 2506459                            if "unidentified" in WeaponLabel6460                                @ignore weapon6461                                wait 1506462                                if findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' backpack as weapon6463                                    getlabel weapon WeaponLabel6464                                endif6465                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel6466                                break6467                            else6468                                @ignore weapon6469                                wait 1506470                                if findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' backpack as weapon6471                                    getlabel weapon WeaponLabel6472                                endif6473                            endif6474                            endfor6475                            wait 1506476                            clearsysmsg6477                            dclick weapon6478                            wait 2506479                            if insysmsg 'You have been disarmed'6480                                if EnableOverheadMessages = 16481                                    overhead '[ DISARMED! ]' 446482                                elseif EnableOverheadMessages = 26483                                    overhead '*disarmed!*' 446484                                endif6485                                settimer DisarmedTimer 06486                                clearsysmsg6487                            endif6488                        endif6489                    endif6490                endif6491                elseif skill 'Fencing' >= 50 and UsingFencing != 06492                if not findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' self6493                    overhead "[ NO WEAPON! ]" 3376494                    wait 15006495                else6496                    if not findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' hand6497                        if findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' backpack as weapon6498                            for 106499                            getlabel weapon WeaponLabel6500                            wait 2506501                            if "unidentified" in WeaponLabel6502                                @ignore weapon6503                                wait 1506504                                if findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' backpack as weapon6505                                    getlabel weapon WeaponLabel6506                                endif6507                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel6508                                break6509                            else6510                                @ignore weapon6511                                wait 1506512                                if findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' backpack as weapon6513                                    getlabel weapon WeaponLabel6514                                endif6515                            endif6516                            endfor6517                            wait 1506518                            clearsysmsg6519                            dclick weapon6520                            wait 2506521                            if insysmsg 'You have been disarmed'6522                                if EnableOverheadMessages = 16523                                    overhead '[ DISARMED! ]' 446524                                elseif EnableOverheadMessages = 26525                                    overhead '*disarmed!*' 446526                                endif6527                                settimer DisarmedTimer 06528                                clearsysmsg6529                            endif6530                        endif6531                    endif6532                endif6533                elseif skill 'Archery' >= 50 and UsingArchery != 06534                if not findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' self6535                    overhead "[ NO WEAPON! ]" 3376536                    wait 15006537                else6538                    if not findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' hand6539                        if findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' backpack as weapon6540                            for 106541                            getlabel weapon WeaponLabel6542                            wait 2506543                            if "unidentified" in WeaponLabel6544                                @ignore weapon6545                                wait 1506546                                if findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' backpack as weapon6547                                    getlabel weapon WeaponLabel6548                                endif6549                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel6550                                break6551                            else6552                                @ignore weapon6553                                wait 1506554                                if findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' backpack as weapon6555                                    getlabel weapon WeaponLabel6556                                endif6557                            endif6558                            endfor6559                            wait 1506560                            clearsysmsg6561                            dclick weapon6562                            wait 2506563                            if insysmsg 'You have been disarmed'6564                                if EnableOverheadMessages = 16565                                    overhead '[ DISARMED! ]' 446566                                elseif EnableOverheadMessages = 26567                                    overhead '*disarmed!*' 446568                                endif6569                                settimer DisarmedTimer 06570                                clearsysmsg6571                            endif6572                        endif6573                    endif6574                endif6575            elseif skill 'Wrestling' >= 50 and UsingWrestling != 06576                if not findtype '22187|31141|31142' self6577                    overhead "[ NO WEAPON! ]" 3376578                    wait 15006579                else6580                    if not findtype '22187|31141|31142' hand6581                        if findtype '22187|31141|31142' backpack as weapon6582                            for 106583                            getlabel weapon WeaponLabel6584                            wait 2506585                            if "unidentified" in WeaponLabel6586                                @ignore weapon6587                                wait 1506588                                if findtype '22187|31141|31142' backpack as weapon6589                                    getlabel weapon WeaponLabel6590                                endif6591                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel6592                                break6593                            else6594                                @ignore weapon6595                                wait 1506596                                if findtype '22187|31141|31142' backpack as weapon6597                                    getlabel weapon WeaponLabel6598                                endif6599                            endif6600                            endfor6601                            wait 1506602                            clearsysmsg6603                            dclick weapon6604                            wait 2506605                            if insysmsg 'You have been disarmed'6606                                if EnableOverheadMessages = 16607                                    overhead '[ DISARMED! ]' 446608                                elseif EnableOverheadMessages = 26609                                    overhead '*disarmed!*' 446610                                endif6611                                settimer DisarmedTimer 06612                                clearsysmsg6613                            endif6614                        endif6615                    endif6616                endif6617            elseif skill 'Throwing' >= 50 and UsingThrowing != 06618                if not findtype '67713|67723|67734|67744|67754|67764' self6619                    overhead "[ NO WEAPON! ]" 3376620                    wait 15006621                else6622                    if not findtype '67713|67723|67734|67744|67754|67764' hand6623                        if findtype '67713|67723|67734|67744|67754|67764' backpack as weapon6624                            for 106625                            getlabel weapon WeaponLabel6626                            wait 2506627                            if "unidentified" in WeaponLabel6628                                @ignore weapon6629                                wait 1506630                                if findtype '67713|67723|67734|67744|67754|67764' backpack as weapon6631                                    getlabel weapon WeaponLabel6632                                endif6633                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel6634                                break6635                            else6636                                @ignore weapon6637                                wait 1506638                                if findtype '67713|67723|67734|67744|67754|67764' backpack as weapon6639                                    getlabel weapon WeaponLabel6640                                endif6641                            endif6642                            endfor6643                            wait 1506644                            clearsysmsg6645                            dclick weapon6646                            wait 2506647                            if insysmsg 'You have been disarmed'6648                                if EnableOverheadMessages = 16649                                    overhead '[ DISARMED! ]' 446650                                elseif EnableOverheadMessages = 26651                                    overhead '*disarmed!*' 446652                                endif6653                                settimer DisarmedTimer 06654                                clearsysmsg6655                            endif6656                        endif6657                    endif6658                endif6659            elseif skill 'Dual Wielding' >= 50 and UsingDualWield != 06660                if not findtype '67773|67774|67775|67776|67777|67778' self6661                    overhead "[ NO WEAPON! ]" 3376662                    wait 15006663                else6664                    if not findtype '67773|67774|67775|67776|67777|67778' hand6665                        if findtype '67773|67774|67775|67776|67777|67778' backpack as weapon6666                            for 106667                            getlabel weapon WeaponLabel6668                            wait 2506669                            if "unidentified" in WeaponLabel6670                                @ignore weapon6671                                wait 1506672                                if findtype '67773|67774|67775|67776|67777|67778' backpack as weapon6673                                    getlabel weapon WeaponLabel6674                                endif6675                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel6676                                break6677                            else6678                                @ignore weapon6679                                wait 1506680                                if findtype '67773|67774|67775|67776|67777|67778' backpack as weapon6681                                    getlabel weapon WeaponLabel6682                                endif6683                            endif6684                            endfor6685                            wait 1506686                            clearsysmsg6687                            dclick weapon6688                            wait 2506689                            if insysmsg 'You have been disarmed'6690                                if EnableOverheadMessages = 16691                                    overhead '[ DISARMED! ]' 446692                                elseif EnableOverheadMessages = 26693                                    overhead '*disarmed!*' 446694                                endif6695                                settimer DisarmedTimer 06696                                clearsysmsg6697                            endif6698                        endif6699                    endif6700                endif6701            endif6702        else6703            overhead '[ WAITING TO ARM... ]' 1546704            wait 5006705        endif6706    elseif EnableAutoEquipWeapon = 26707        if timer DisarmedTimer > 25006708            if skill 'Swordsmanship' >= 506709                if UsingSwords = 16710                   // Do nothing6711                elseif UsingSwords = 26712                    if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3920|5042|5117|30990|30993|30994|30995|31184|31186|22187|31141|31142|67713|67723|67734|67744|67754|67764|67773|67774|67775|67776|67777|67778' hand6713                        if findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' backpack as weapon6714                            for 106715                            getlabel weapon WeaponLabel6716                            wait 2506717                            if "unidentified" in WeaponLabel6718                                @ignore weapon6719                                wait 1506720                                if findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' backpack as weapon6721                                    getlabel weapon WeaponLabel6722                                endif6723                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel6724                                break6725                            else6726                                @ignore weapon6727                                wait 1506728                                if findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' backpack as weapon6729                                    getlabel weapon WeaponLabel6730                                endif6731                            endif6732                            endfor6733                            wait 1506734                            clearsysmsg6735                            dclick weapon6736                            wait 2506737                            if insysmsg 'You have been disarmed'6738                                if EnableOverheadMessages = 16739                                    overhead '[ DISARMED! ]' 446740                                elseif EnableOverheadMessages = 26741                                    overhead '*disarmed!*' 446742                                endif6743                                settimer DisarmedTimer 06744                                clearsysmsg6745                            endif6746                        endif6747                    endif6748                elseif UsingSwords = 06749                    overhead "[ NO SWORD WEAPON! ]" 3376750                    wait 5006751                endif6752            endif6753 6754            if skill 'Mace Fighting' >= 506755                if UsingMacing = 16756                   // Do nothing6757                elseif UsingMacing = 26758                    if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3920|5042|5117|30990|30993|30994|30995|31184|31186|22187|31141|31142|67713|67723|67734|67744|67754|67764|67773|67774|67775|67776|67777|67778' hand6759                        if findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' backpack as weapon6760                            for 106761                            getlabel weapon WeaponLabel6762                            wait 2506763                            if "unidentified" in WeaponLabel6764                                @ignore weapon6765                                wait 1506766                                if findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' backpack as weapon6767                                    getlabel weapon WeaponLabel6768                                endif6769                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel6770                                break6771                            else6772                                @ignore weapon6773                                wait 1506774                                if findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' backpack as weapon6775                                    getlabel weapon WeaponLabel6776                                endif6777                            endif6778                            endfor6779                            wait 1506780                            clearsysmsg6781                            dclick weapon6782                            wait 2506783                            if insysmsg 'You have been disarmed'6784                                if EnableOverheadMessages = 16785                                    overhead '[ DISARMED! ]' 446786                                elseif EnableOverheadMessages = 26787                                    overhead '*disarmed!*' 446788                                endif6789                                settimer DisarmedTimer 06790                                clearsysmsg6791                            endif6792                        endif6793                    endif6794                elseif UsingMacing = 06795                    overhead "[ NO MACE WEAPON! ]" 3376796                    wait 5006797                endif6798            endif6799 6800            if skill 'Fencing' >= 506801                if UsingFencing = 16802                   // Do nothing6803                elseif UsingFencing = 26804                    if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3920|5042|5117|30990|30993|30994|30995|31184|31186|22187|31141|31142|67713|67723|67734|67744|67754|67764|67773|67774|67775|67776|67777|67778' hand6805                        if findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' backpack as weapon6806                            for 106807                            getlabel weapon WeaponLabel6808                            wait 2506809                            if "unidentified" in WeaponLabel6810                                @ignore weapon6811                                wait 1506812                                if findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' backpack as weapon6813                                    getlabel weapon WeaponLabel6814                                endif6815                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel6816                                break6817                            else6818                                @ignore weapon6819                                wait 1506820                                if findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' backpack as weapon6821                                    getlabel weapon WeaponLabel6822                                endif6823                            endif6824                            endfor6825                            wait 1506826                            clearsysmsg6827                            dclick weapon6828                            wait 2506829                            if insysmsg 'You have been disarmed'6830                                if EnableOverheadMessages = 16831                                    overhead '[ DISARMED! ]' 446832                                elseif EnableOverheadMessages = 26833                                    overhead '*disarmed!*' 446834                                endif6835                                settimer DisarmedTimer 06836                                clearsysmsg6837                            endif6838                        endif6839                    endif6840                elseif UsingFencing = 06841                    overhead "[ NO FENCING WEAPON! ]" 3376842                    wait 5006843                endif6844            endif6845 6846            if skill 'Archery' >= 506847                if UsingArchery = 16848                   // Do nothing6849                elseif UsingArchery = 26850                    if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3920|5042|5117|30990|30993|30994|30995|31184|31186|22187|31141|31142|67713|67723|67734|67744|67754|67764|67773|67774|67775|67776|67777|67778' hand6851                        if findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' backpack as weapon6852                            for 106853                            getlabel weapon WeaponLabel6854                            wait 2506855                            if "unidentified" in WeaponLabel6856                                @ignore weapon6857                                wait 1506858                                if findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' backpack as weapon6859                                    getlabel weapon WeaponLabel6860                                endif6861                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel6862                                break6863                            else6864                                @ignore weapon6865                                wait 1506866                                if findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' backpack as weapon6867                                    getlabel weapon WeaponLabel6868                                endif6869                            endif6870                            endfor6871                            wait 1506872                            clearsysmsg6873                            dclick weapon6874                            wait 2506875                            if insysmsg 'You have been disarmed'6876                                if EnableOverheadMessages = 16877                                    overhead '[ DISARMED! ]' 446878                                elseif EnableOverheadMessages = 26879                                    overhead '*disarmed!*' 446880                                endif6881                                settimer DisarmedTimer 06882                                clearsysmsg6883                            endif6884                        endif6885                    endif6886                elseif UsingArchery = 06887                    overhead "[ NO ARCHERY WEAPON! ]" 3376888                    wait 5006889                endif6890            endif6891 6892            if skill 'Wrestling' >= 506893                if UsingWrestling = 16894                   // Do nothing6895                elseif UsingWrestling = 26896                    if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3920|5042|5117|30990|30993|30994|30995|31184|31186|22187|31141|31142|67713|67723|67734|67744|67754|67764|67773|67774|67775|67776|67777|67778' hand6897                    if findtype '22187|31141|31142' backpack as weapon and timer DisarmedTimer > 25006898                            for 106899                            getlabel weapon WeaponLabel6900                            wait 2506901                            if "unidentified" in WeaponLabel6902                                @ignore weapon6903                                wait 1506904                                if findtype '22187|31141|31142' backpack as weapon6905                                    getlabel weapon WeaponLabel6906                                endif6907                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel6908                                break6909                            else6910                                @ignore weapon6911                                wait 1506912                                if findtype '22187|31141|31142' backpack as weapon6913                                    getlabel weapon WeaponLabel6914                                endif6915                            endif6916                            endfor6917                            wait 1506918                            clearsysmsg6919                            dclick weapon6920                            wait 2506921                            if insysmsg 'You have been disarmed'6922                                if EnableOverheadMessages = 16923                                    overhead '[ DISARMED! ]' 446924                                elseif EnableOverheadMessages = 26925                                    overhead '*disarmed!*' 446926                                endif6927                                settimer DisarmedTimer 06928                                clearsysmsg6929                            endif6930                        endif6931                    endif6932                elseif UsingWrestling = 06933                    overhead "[ NO WRESTLING WEAPON! ]" 3376934                    wait 5006935                endif6936            endif6937 6938            if skill 'Throwing' >= 506939                if UsingThrowing = 16940                   // Do nothing6941                elseif UsingThrowing = 26942                    if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3920|5042|5117|30990|30993|30994|30995|31184|31186|22187|31141|31142|67713|67723|67734|67744|67754|67764|67773|67774|67775|67776|67777|67778' hand6943                        if findtype '67713|67723|67734|67744|67754|67764' backpack as weapon6944                            for 106945                            getlabel weapon WeaponLabel6946                            wait 2506947                            if "unidentified" in WeaponLabel6948                                @ignore weapon6949                                wait 1506950                                if findtype '67713|67723|67734|67744|67754|67764' backpack as weapon6951                                    getlabel weapon WeaponLabel6952                                endif6953                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel6954                                break6955                            else6956                                @ignore weapon6957                                wait 1506958                                if findtype '67713|67723|67734|67744|67754|67764' backpack as weapon6959                                    getlabel weapon WeaponLabel6960                                endif6961                            endif6962                            endfor6963                            wait 1506964                            clearsysmsg6965                            dclick weapon6966                            wait 2506967                            if insysmsg 'You have been disarmed'6968                                if EnableOverheadMessages = 16969                                    overhead '[ DISARMED! ]' 446970                                elseif EnableOverheadMessages = 26971                                    overhead '*disarmed!*' 446972                                endif6973                                settimer DisarmedTimer 06974                                clearsysmsg6975                            endif6976                        endif6977                    endif6978                elseif UsingThrowing = 06979                    overhead "[ NO THROWING WEAPON! ]" 3376980                    wait 5006981                endif6982            endif6983 6984            if skill 'Dual Wielding' >= 506985                if UsingDualWield = 16986                   // Do nothing6987                elseif UsingDualWield = 26988                    if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3920|5042|5117|30990|30993|30994|30995|31184|31186|22187|31141|31142|67713|67723|67734|67744|67754|67764|67773|67774|67775|67776|67777|67778' hand6989                        if findtype '67773|67774|67775|67776|67777|67778' backpack as weapon6990                            for 106991                            getlabel weapon WeaponLabel6992                            wait 2506993                            if "unidentified" in WeaponLabel6994                                @ignore weapon6995                                wait 1506996                                if findtype '67773|67774|67775|67776|67777|67778' backpack as weapon6997                                    getlabel weapon WeaponLabel6998                                endif6999                            elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel7000                                break7001                            else7002                                @ignore weapon7003                                wait 1507004                                if findtype '67773|67774|67775|67776|67777|67778' backpack as weapon7005                                    getlabel weapon WeaponLabel7006                                endif7007                            endif7008                            endfor7009                            wait 1507010                            clearsysmsg7011                            dclick weapon7012                            wait 2507013                            if insysmsg 'You have been disarmed'7014                                if EnableOverheadMessages = 17015                                    overhead '[ DISARMED! ]' 447016                                elseif EnableOverheadMessages = 27017                                    overhead '*disarmed!*' 447018                                endif7019                                settimer DisarmedTimer 07020                                clearsysmsg7021                            endif7022                        endif7023                    endif7024                elseif UsingDualWield = 07025                    overhead "[ NO DUAL WIELD WEAPON! ]" 3377026                    wait 5007027                endif7028            endif7029        else7030            overhead '[ WAITING TO ARM... ]' 1547031            wait 5007032        endif7033    endif7034 7035    if EnableShieldCheck = 17036        if not findtype 'Order shield|buckler |metal shield|Chaos shield|heater shield|bone shield|bronze shield|kite shield|wooden shield|parrying gauche' lefthand7037            if findtype 'Order shield|buckler |metal shield|Chaos shield|heater shield|bone shield|bronze shield|kite shield|wooden shield|parrying gauche' backpack as shield7038                getlabel shield ShieldLabel7039                for 47040                wait 2507041                if "unidentified" in ShieldLabel7042                    @ignore shield7043                    wait 1507044                    if findtype 'Order shield|buckler |metal shield|Chaos shield|heater shield|bone shield|bronze shield|kite shield|wooden shield|parrying gauche' backpack as shield7045                        getlabel shield ShieldLabel7046                    endif7047                endif7048                endfor7049                wait 1507050                dclick shield7051                wait 2507052            endif7053        endif7054    endif7055 7056    if SkipCheckSection != 1 or TimeToGo != 17057        if insysmsg "Captcha successful" and EnableOverheadMessages = 17058            overhead "[ CAPTCHA SUCCESSFUL! ]" 847059            clearsysmsg7060        endif7061 7062        if not findbuff 'food satisfaction' and findtype "tray" self and EnableEatingFood = 17063            if findtype "tray" self as Food7064                if EnableOverheadMessages = 17065                    overhead "[ EATING FOOD... ]" 887066                endif7067                dclick Food7068                wait 5007069            endif7070        endif7071 7072        if EnableSetMainPouchOrganizer01 = 17073            if timer "OrganizerAgentTimer" > 300007074                hotkey 'Organizer Agent-01'7075                settimer "OrganizerAgentTimer" 07076            endif7077        endif7078 7079        if dead7080            break7081        endif7082 7083        if EnablePKradar = 17084            if timer "PKRadar" > 10007085                hotkey 'Next Murderer Player Target'7086                wait 2507087                if insysmsg "No one matching that was found"7088                    settimer "PKRadar" 07089                    clearsysmsg7090                else7091                    hotkey 'Toggle Peace Only'7092                    @setvar! RedTargetFound 17093                    @setvar! WarModeToggledWhileFighting 07094                    @setvar! TimeToGo 17095                    @setvar! SkipInfiniteLoop 17096                    @setvar! MurdererTarget lasttarget7097                    if EnableRedAlertOverhead = 17098                        overhead "[ !! RED ALERT !! ]" 377099                    endif7100                    settimer "REDALERT" 07101                    replay7102                endif7103            endif7104        endif7105 7106        if EnableTrackingAutoRecall = 17107            if PKTrackingRange = 607108                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"7109                    hotkey 'Toggle Peace Only'7110                    if EnableRedAlertOverhead = 17111                        overhead "[ !! RED ALERT !! ]" 377112                    endif7113                    settimer "REDALERT" 07114                    @setvar! RedTargetFound 17115                    @setvar! SkipInfiniteLoop 17116                    @setvar! WarModeToggledWhileFighting 07117                    @setvar! TimeToGo 17118                    clearsysmsg7119                    replay7120                endif7121            elseif PKTrackingRange = 507122                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"7123                    hotkey 'Toggle Peace Only'7124                    if EnableRedAlertOverhead = 17125                        overhead "[ !! RED ALERT !! ]" 377126                    endif7127                    settimer "REDALERT" 07128                    @setvar! RedTargetFound 17129                    @setvar! SkipInfiniteLoop 17130                    @setvar! WarModeToggledWhileFighting 07131                    @setvar! TimeToGo 17132                    clearsysmsg7133                    replay7134                endif7135            elseif PKTrackingRange = 407136                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"7137                    hotkey 'Toggle Peace Only'7138                    if EnableRedAlertOverhead = 17139                        overhead "[ !! RED ALERT !! ]" 377140                    endif7141                    settimer "REDALERT" 07142                    @setvar! RedTargetFound 17143                    @setvar! SkipInfiniteLoop 17144                    @setvar! WarModeToggledWhileFighting 07145                    @setvar! TimeToGo 17146                    clearsysmsg7147                    replay7148                endif7149            elseif PKTrackingRange = 07150                if insysmsg "Now tracking"7151                    hotkey 'Toggle Peace Only'7152                    if EnableRedAlertOverhead = 17153                        overhead "[ !! RED ALERT !! ]" 377154                    endif7155                    settimer "REDALERT" 07156                    @setvar! RedTargetFound 17157                    @setvar! SkipInfiniteLoop 17158                    @setvar! WarModeToggledWhileFighting 07159                    @setvar! TimeToGo 17160                    clearsysmsg7161                    replay7162                endif7163            endif7164        endif7165 7166        if diffhits > 0 and not bandaging7167            if skill 'healing' > 07168                if findtype 'clean bandage%s%' self7169                    if targetexists7170                        hotkey 'cancel current target'7171                    endif7172                    hotkey 'Bandage Self'7173                    if EnableOverheadMessages = 17174                        if timer BandageMessageTimer > 50007175                            overhead "[ BANDAGING... ]" 887176                            settimer BandageMessageTimer 07177                        endif7178                    endif7179                    getlabel backpack backpacklabel7180                else7181                    if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 17182                        overhead "[ OUT OF BANDAGES! ]" 3377183                        settimer BandageMessageTimer 07184                    endif7185                endif7186            endif7187        endif7188 7189 7190        ////////////////////////7191        //     BARD BUFFS:    //7192        ////////////////////////7193 7194        if diffhits < ActivateAutoHealHPdiff and not dead and warmode7195            if skill 'Peacemaking' >= 50 or skill 'Provocation' >= 50 or skill 'Discordance' >= 507196                if EnableProvocationBuff = 1 and not findbuff "Song of Provocation" and timer 'Musicianship' > 5000 and timer "SongBuffDelay" > 105007197                    skill "Provocation"7198                    wft 15007199                    if insysmsg "What instrument shall you play?"7200                        if findtype "standing harp|sackbut|bamboo flute|tambourine|drum|lute|lap harp|gemshorn|hurdy gurdy|psaltery|shawm|vielle" as Instrument7201                            target Instrument7202                            wait 2507203                        else7204                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 27205                                overhead "[ NO INSTRUMENT! ]" 3377206                            endif7207                        endif7208                    endif7209 7210                    if not insysmsg "This is not a musical instrument" and targetexists7211                        target backpack7212                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 27213                            overhead "[ j SONG OF PROVOCATION j ]" 21177214                        endif7215                        cooldown "Provocation Buff" 9000007216                        settimer 'Musicianship' 07217                        settimer "SongBuffDelay" 07218                    endif7219                endif7220 7221                if EnableDiscordanceBuff = 1 and not findbuff "Song Of Discordance" and timer 'Musicianship' > 5000 and timer "SongBuffDelay" > 105007222                    skill "Discordance"7223                    wft 15007224                    if insysmsg "What instrument shall you play?"7225                        if findtype "standing harp|sackbut|bamboo flute|tambourine|drum|lute|lap harp|gemshorn|hurdy gurdy|psaltery|shawm|vielle" as Instrument7226                            target Instrument7227                            wait 2507228                        else7229                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 27230                                overhead "[ NO INSTRUMENT! ]" 3377231                            endif7232                        endif7233                    endif7234 7235                    if not insysmsg "This is not a musical instrument" and targetexists7236                        target backpack7237                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 27238                            overhead "[ j SONG OF DISCORDANCE j ]" 697239                        endif7240                        cooldown "Discordance Buff" 9000007241                        settimer 'Musicianship' 07242                        settimer "SongBuffDelay" 07243                    endif7244                endif7245 7246                if EnablePeacemakingBuff = 1 and not findbuff "Song Of Peacemaking" and timer 'Musicianship' > 5000 and timer "SongBuffDelay" > 105007247                    clearsysmsg7248                    skill "Peacemaking"7249                    wft 15007250                    if insysmsg "What instrument shall you play?"7251                        if findtype "standing harp|sackbut|bamboo flute|tambourine|drum|lute|lap harp|gemshorn|hurdy gurdy|psaltery|shawm|vielle" as Instrument7252                            target Instrument7253                            wait 2507254                        else7255                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 27256                                overhead "[ NO INSTRUMENT! ]" 3377257                            endif7258                        endif7259                    endif7260 7261                    if not insysmsg "This is not a musical instrument" and targetexists7262                        target backpack7263                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 27264                            overhead "[ j SONG OF PEACEMAKING j ]" 847265                        endif7266                        cooldown "Peacemaking Buff" 9000007267                        settimer 'Musicianship' 07268                        settimer "SongBuffDelay" 07269                    endif7270                endif7271            endif7272        endif7273    endif7274 7275    if not warmode and WarModeToggledWhileFighting = 17276        if SetWeaponCodexStance = 6 or SetShieldCodexStance = 6 or SetWeaponCodexFinisher = 3 or SetWeaponCodexFinisher = 4 or SetShieldCodexFinisher = 3 or SetShieldCodexFinisher = 47277            hotkey 'Toggle War Only'7278        endif7279        @setvar! WarModeToggledWhileFighting 07280    endif7281 7282 7283    /////////////////////////7284    //     FIND TARGET:    //7285    /////////////////////////7286 7287    if TimeToGo = 1 and DUNGEONMODE = 17288        // Do nothing7289    elseif AutoRecallTime = 1 and WILDERNESSMODE = 17290        // Do nothing7291    elseif not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange7292        if warmode7293            attack ClosestTarget7294        endif7295    else7296        @setvar! TargetisnotClosest 07297        @setvar! NoTargetsFound 07298 7299        if targetexists7300            hotkey 'cancel current target'7301        endif7302 7303        if varexist DisengagedTarget7304            @unignore DisengagedTarget7305 7306            if not dead DisengagedTarget and find DisengagedTarget ground -1 -1 TargetAnalyzeRange and not find DisengagedTarget ground -1 -1 TargetDisengageRange7307                @ignore DisengagedTarget7308            else7309                unsetvar DisengagedTarget7310            endif7311        endif7312 7313        clearsysmsg7314        hotkey 'target closest grey monster'7315        getlabel backpack backpacklabel7316        wait 2507317 7318        if insysmsg 'No one matching that'7319            @setvar! NoTargetsFound 17320            getlabel backpack backpacklabel7321 7322            ///////////////////////7323            //  NO TARGET LOOP:  //7324            ///////////////////////7325 7326            while NoTargetsFound = 1 and diffhits < ActivateAutoHealHPdiff and not dead7327                if dead7328                    break7329                endif7330 7331                if diffhits >= ActivateAutoHealHPdiff7332                    break7333                endif7334 7335                if weight > maxweight and EnableDropGoldWhenOverweight = 17336                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 27337                        if timer OverweightMessageTimer > 45007338                            overhead "[ OVERWEIGHT! ]" 347339                            settimer OverweightMessageTimer 07340                        endif7341                    endif7342 7343                    if DropGoldAmount != 07344                        clearignore7345                        @setvar! DisableVacuums 17346                        wait 2507347 7348                        if EnablePutLootinLockBox = 17349                            if findtype "wooden box" self as lockbox7350                                if findtype "copper key" self as key7351                                    clearignore7352                                    getlabel lockbox lockboxlabel7353                                    wait 1007354                                    if "items" in lockboxlabel7355                                        // Do nothing7356                                    else7357                                        dclick key7358                                        wft 15007359                                        target lockbox7360                                        if EnableOverheadMessages = 17361                                            overhead "[loot box unlocked]" 847362                                        endif7363                                        wait 5007364                                        if insysmsg "It appears to be locked."7365                                            dclick key7366                                            wft 15007367                                            target lockbox7368                                            wait 2507369                                        endif7370                                    endif7371                                elseif EnableOverheadMessages = 17372                                    overhead "[ NO LOCKBOX KEY! ]" 3377373                                endif7374                            endif7375                        endif7376 7377                        while weight > maxweight and diffhits < ActivateAutoHealHPdiff7378                            if findtype "gold coin" self as easycomeeasygo7379                                lift easycomeeasygo DropGoldAmount7380                                droprelloc 0 07381                                getlabel backpack packdesc7382                                if EnableOverheadMessages = 17383                                    overhead "[ DROPPING GOLD... ]" 1497384                                endif7385                                wait 2507386                                if insysmsg "cannot drop anything"7387                                    drop backpack -1 -1 -17388                                    break7389                                endif7390                                wait 2507391                            else7392                                break7393                            endif7394                        endwhile7395                    endif7396                endif7397 7398                if EnableTrackingAutoRecall = 17399                    if PKTrackingRange = 607400                        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"7401                            hotkey 'Toggle Peace Only'7402                            if EnableRedAlertOverhead = 17403                                overhead "[ !! RED ALERT !! ]" 377404                            endif7405                            settimer "REDALERT" 07406                            @setvar! RedTargetFound 17407                            @setvar! SkipInfiniteLoop 17408                            @setvar! WarModeToggledWhileFighting 07409                            @setvar! TimeToGo 17410                            clearsysmsg7411                            replay7412                        endif7413                    elseif PKTrackingRange = 507414                        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"7415                            hotkey 'Toggle Peace Only'7416                            if EnableRedAlertOverhead = 17417                                overhead "[ !! RED ALERT !! ]" 377418                            endif7419                            settimer "REDALERT" 07420                            @setvar! RedTargetFound 17421                            @setvar! SkipInfiniteLoop 17422                            @setvar! WarModeToggledWhileFighting 07423                            @setvar! TimeToGo 17424                            clearsysmsg7425                            replay7426                        endif7427                    elseif PKTrackingRange = 407428                        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"7429                            hotkey 'Toggle Peace Only'7430                            if EnableRedAlertOverhead = 17431                                overhead "[ !! RED ALERT !! ]" 377432                            endif7433                            settimer "REDALERT" 07434                            @setvar! RedTargetFound 17435                            @setvar! SkipInfiniteLoop 17436                            @setvar! WarModeToggledWhileFighting 07437                            @setvar! TimeToGo 17438                            clearsysmsg7439                            replay7440                        endif7441                    elseif PKTrackingRange = 07442                        if insysmsg "Now tracking"7443                            hotkey 'Toggle Peace Only'7444                            if EnableRedAlertOverhead = 17445                                overhead "[ !! RED ALERT !! ]" 377446                            endif7447                            settimer "REDALERT" 07448                            @setvar! RedTargetFound 17449                            @setvar! SkipInfiniteLoop 17450                            @setvar! WarModeToggledWhileFighting 07451                            @setvar! TimeToGo 17452                            clearsysmsg7453                            replay7454                        endif7455                    endif7456                endif7457 7458                if EnablePKradar = 17459                    if timer "PKRadar" > 10007460                        hotkey 'Next Murderer Player Target'7461                        wait 2507462                        if insysmsg "No one matching that was found"7463                            settimer "PKRadar" 07464                            clearsysmsg7465                        else7466                            hotkey 'Toggle Peace Only'7467                            @setvar! RedTargetFound 17468                            @setvar! WarModeToggledWhileFighting 07469                            @setvar! TimeToGo 17470                            @setvar! SkipInfiniteLoop 17471                            @setvar! MurdererTarget lasttarget7472                            if EnableRedAlertOverhead = 17473                                overhead "[ !! RED ALERT !! ]" 377474                            endif7475                            settimer "REDALERT" 07476                            replay7477                        endif7478                    endif7479                endif7480 7481                if EnableWeightWarningMessage = 17482                    if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer "WeightTimer" > 60007483                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 27484                            overhead "[ WEIGHT WARNING... ]" 777485                            settimer "WeightTimer" 07486                        else7487                            overhead " � " 777488                            settimer "WeightTimer" 07489                        endif7490                        elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer "WeightTimer" > 60007491                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 27492                            overhead "[ WEIGHT WARNING! ]" 1537493                            settimer "WeightTimer" 07494                        else7495                            overhead " � " 1537496                            settimer "WeightTimer" 07497                        endif7498                    elseif diffweight <= RedWeightLimitDiffWeight and timer "WeightTimer" > 60007499                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 27500                            overhead "[ WEIGHT LIMIT REACHED! ]" 377501                            settimer "WeightTimer" 07502                        else7503                            overhead " � " 377504                            settimer "WeightTimer" 07505                        endif7506 7507                        if EnableAutoWeightRecall = 1 and not find ClosestTarget ground -1 -1 8 and WILDERNESSMODE = 17508                            wait 2507509                            if EnableInfiniteLoop != 0 and skill 'Chivalry' >= 907510                                settimer "InfiniteLoop" 07511                                if EnableInfiniteLoop = 17512                                    @setvar! SkipInfiniteLoop 07513                                elseif EnableInfiniteLoop = 27514                                    @setvar! SkipInfiniteLoop 07515                                else7516                                    @setvar! SkipInfiniteLoop 17517                                endif7518                            endif7519                            hotkey 'Toggle Peace Only'7520                            @setvar! AutoWeightRecall 17521                            @setvar! WarModeToggledWhileFighting 07522                            @setvar! TimeToGo 17523                            replay7524                        elseif EnableAutoWeightRecall = 1 and find ClosestTarget ground -1 -1 8 and WILDERNESSMODE = 17525                            if EnableInfiniteLoop != 0 and skill 'Chivalry' >= 907526                                settimer "InfiniteLoop" 07527                            endif7528                            if timer "RECALLDELAY" > 3500 and EnableAutoRecallOverheadMessages = 17529                                overhead "[ WAITING TO RECALL... ]" 1497530                                settimer "RECALLDELAY" 07531                            endif7532                            wait 5007533                        elseif EnableAutoWeightDungeonGate = 1 and DUNGEONMODE = 17534                            wait 2507535                            if EnableInfiniteLoop != 0 and skill 'Chivalry' >= 907536                                settimer "InfiniteLoop" 07537                                if EnableInfiniteLoop = 17538                                    @setvar! SkipInfiniteLoop 07539                                elseif EnableInfiniteLoop = 27540                                    @setvar! SkipInfiniteLoop 07541                                else7542                                    @setvar! SkipInfiniteLoop 17543                                endif7544                            endif7545                            hotkey 'Toggle Peace Only'7546                            @setvar! TimeToGo 17547                            replay7548                        else7549                            overhead "[ OVERWEIGHT! ]" 3377550                            sysmsg "Time to head home and unload your loot!" 07551                            settimer "WeightTimer" 07552                        endif7553                    endif7554                endif7555 7556                while not warmode7557                    if WILDERNESSMODE = 17558                         if EnableManualRecall = 17559                            overhead "[ RECALLING IN... ]" 21147560                            if warmode7561                                overhead "[ RECALL CANCELLED! ]" 3377562                                break7563                            endif7564                            wait 5007565                            overhead "3" 697566                            wait 10007567                            if warmode7568                                overhead "[ RECALL CANCELLED! ]" 3377569                                break7570                            endif7571                            overhead "2" 697572                            wait 10007573                            if warmode7574                                overhead "[ RECALL CANCELLED! ]" 3377575                                break7576                            endif7577                            overhead "1" 697578                            wait 5007579                            if warmode7580                                overhead "[ RECALL CANCELLED! ]" 3377581                                break7582                            else7583                                if skill 'Chivalry' >= 907584                                    if EnableInfiniteLoop = 17585                                        @setvar! SkipInfiniteLoop 07586                                    elseif EnableInfiniteLoop = 27587                                        @setvar! SkipInfiniteLoop 17588                                    endif7589                                endif7590                                @setvar! WarModeToggledWhileFighting 07591                                @setvar! AutoRecallTime 17592                                replay7593                            endif7594                        else7595                            hotkey 'Toggle War Only'7596                            break7597                        endif7598                    elseif DUNGEONMODE = 17599                        if EnableManualDungeonEscape = 17600                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 27601                                overhead "[ DUNGEON ESCAPE! ]" 3377602                            else7603                                overhead " � " 3377604                            endif7605 7606                            if skill 'Chivalry' >= 907607                                if EnableInfiniteLoop = 17608                                    @setvar! SkipInfiniteLoop 07609                                elseif EnableInfiniteLoop = 27610                                    @setvar! SkipInfiniteLoop 17611                                else7612                                    @setvar! SkipInfiniteLoop 17613                                endif7614                            endif7615                            settimer "RUNAWAY" 20007616                            @setvar! TimeToGo 17617                            @setvar! WarModeToggledWhileFighting 07618                            replay7619                        else7620                            hotkey 'Toggle War Only'7621                            break7622                        endif7623                    endif7624                endwhile7625 7626                if not find weapon hand7627                    if find weapon backpack7628                        if EnableAutoEquipWeapon != 07629                            if timer DisarmedTimer > 25007630                                dclick weapon7631                                getlabel backpack backpacklabel7632                                wait 2507633                            else7634                                overhead '[ WAITING TO ARM... ]' 447635                                wait 5007636                            endif7637                        else7638                            overhead '[ EQUIP YOUR WEAPON! ]' 1547639                            wait 2507640                        endif7641                    endif7642                endif7643 7644                if skill 'Swordsmanship' >= 507645                    if findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' hand as weapon7646                        @setvar! UsingSwords 17647                    elseif findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' backpack as potentialweapon7648                        @setvar! UsingSwords 27649                    elseif not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' self7650                        @setvar! UsingSwords 07651                    endif7652                else7653                    @setvar! UsingSwords 07654                endif7655 7656                if skill 'Mace Fighting' >= 507657                    if findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' hand as weapon7658                        @setvar! UsingMacing 17659                    elseif findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' backpack as potentialweapon7660                        @setvar! UsingMacing 27661                    elseif not findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' self7662                        @setvar! UsingMacing 07663                    endif7664                else7665                    @setvar! UsingMacing 07666                endif7667 7668                if skill 'Fencing' >= 507669                    if findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' hand as weapon7670                        @setvar! UsingFencing 17671                    elseif findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' backpack as potentialweapon7672                        @setvar! UsingFencing 27673                    elseif not findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' self7674                        @setvar! UsingFencing 07675                    endif7676                else7677                    @setvar! UsingFencing 07678                endif7679 7680                if skill 'Archery' >= 507681                    if findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' hand as weapon7682                        @setvar! UsingArchery 17683                    elseif findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' backpack as potentialweapon7684                        @setvar! UsingArchery 27685                    elseif not findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' self7686                        @setvar! UsingArchery 07687                    endif7688                else7689                    @setvar! UsingArchery 07690                endif7691 7692                if skill 'Wrestling' >= 507693                    if findtype '22187|31141|31142' hand as weapon7694                        @setvar! UsingWrestling 17695                    elseif findtype '22187|31141|31142' backpack as potentialweapon7696                        @setvar! UsingWrestling 27697                    elseif not findtype '22187|31141|31142' self7698                        @setvar! UsingWrestling 07699                    endif7700                else7701                    @setvar! UsingWrestling 07702                endif7703 7704                if skill 'Throwing' >= 507705                    if findtype '67713|67723|67734|67744|67754|67764' hand as weapon7706                        @setvar! UsingThrowing 17707                    elseif findtype '67713|67723|67734|67744|67754|67764' backpack as potentialweapon7708                        @setvar! UsingThrowing 27709                    elseif not findtype '67713|67723|67734|67744|67754|67764' self7710                        @setvar! UsingThrowing 07711                    endif7712                else7713                    @setvar! UsingThrowing 07714                endif7715 7716                if skill 'Dual Wielding' >= 507717                    if findtype '67773|67774|67775|67776|67777|67778' hand as weapon7718                        @setvar! UsingDualWield 17719                    elseif findtype '67773|67774|67775|67776|67777|67778' backpack as potentialweapon7720                        @setvar! UsingDualWield 27721                    elseif not findtype '67773|67774|67775|67776|67777|67778' self7722                        @setvar! UsingDualWield 07723                    endif7724                else7725                    @setvar! UsingDualWield 07726                endif7727 7728                if EnableShieldCheck = 17729                    if not findtype 'Order shield|buckler |metal shield|Chaos shield|heater shield|bone shield|bronze shield|kite shield|wooden shield|parrying gauche' lefthand7730                        if findtype 'Order shield|buckler |metal shield|Chaos shield|heater shield|bone shield|bronze shield|kite shield|wooden shield|parrying gauche' backpack as shield7731                            getlabel shield ShieldLabel7732                            for 47733                            wait 2507734                            if "unidentified" in ShieldLabel7735                                @ignore shield7736                                wait 1507737                                if findtype 'Order shield|buckler |metal shield|Chaos shield|heater shield|bone shield|bronze shield|kite shield|wooden shield|parrying gauche' backpack as shield7738                                    getlabel shield ShieldLabel7739                                endif7740                            endif7741                            endfor7742                            wait 1507743                            dclick shield7744                            wait 2507745                        endif7746                    endif7747                endif7748 7749                if varexist DisengagedTarget7750                    @unignore DisengagedTarget7751 7752                    if not dead DisengagedTarget and find DisengagedTarget ground -1 -1 TargetAnalyzeRange and not find DisengagedTarget ground -1 -1 TargetDisengageRange7753                        @ignore DisengagedTarget7754                    else7755                        unsetvar DisengagedTarget7756                    endif7757                endif7758 7759                clearsysmsg7760                hotkey 'target closest grey monster'7761                getlabel backpack backpacklabel7762                wait 2507763 7764                if insysmsg 'No one matching that'7765                    @setvar! NoTargetsFound 17766                    if timer NoTargetMessageTimer > 3500 and diffweight > RedWeightLimitDiffWeight7767                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 27768                            overhead '[ NOTHING TO TARGET... ]' 23387769                        else7770                            overhead ' � ' 23387771                        endif7772                        settimer NoTargetMessageTimer 07773                    endif7774                else7775                    @setvar! NoTargetsFound 07776                    @setvar! TargetToAnalyze lasttarget7777                    break7778                endif7779 7780                if EnableUsePotionKegs = 1 and findtype 'empty bottle%s%' self and findtype 'keg' self and timer 'PotionKegPVPCooldown' > 300007781                    if not timerexists PotionKegTimer7782                        createtimer PotionKegTimer7783                        settimer PotionKegTimer 50007784                    endif7785 7786                    @setvar! PotionStockCheck 07787 7788                    while PotionStockCheck < 8 and findtype 'empty bottle%s%' self7789                        @setvar! PotionAmounttoFill 07790                        if PotionStockCheck = 07791                            if ExplosionPotionAmount != 07792                                @setvar! PotionType 38537793                                @setvar! KegColour 4197794                                @setvar! PotionAmounttoFill ExplosionPotionAmount7795                            endif7796                            @setvar! PotionStockCheck 17797                        elseif PotionStockCheck = 17798                            if HealingPotionAmount != 07799                                @setvar! PotionType 38527800                                @setvar! KegColour 2537801                                @setvar! PotionAmounttoFill HealingPotionAmount7802                            endif7803                            @setvar! PotionStockCheck 27804                        elseif PotionStockCheck = 27805                            if CurePotionAmount != 07806                                @setvar! PotionType 38477807                                @setvar! KegColour 447808                                @setvar! PotionAmounttoFill CurePotionAmount7809                            endif7810                            @setvar! PotionStockCheck 37811                        elseif PotionStockCheck = 37812                            if RefreshPotionAmount != 07813                                @setvar! PotionType 38517814                                @setvar! KegColour 377815                                @setvar! PotionAmounttoFill RefreshPotionAmount7816                            endif7817                            @setvar! PotionStockCheck 47818                        elseif PotionStockCheck = 47819                            if StrengthPotionAmount != 07820                                @setvar! PotionType 38497821                                @setvar! KegColour 9567822                                @setvar! PotionAmounttoFill StrengthPotionAmount7823                            endif7824                            @setvar! PotionStockCheck 57825                        elseif PotionStockCheck = 57826                            if AgilityPotionAmount != 07827                                @setvar! PotionType 38487828                                @setvar! KegColour 937829                                @setvar! PotionAmounttoFill AgilityPotionAmount7830                            endif7831                            @setvar! PotionStockCheck 67832                        elseif PotionStockCheck = 67833                            if ResistPotionAmount != 07834                                @setvar! PotionType 38467835                                @setvar! KegColour 11097836                                @setvar! PotionAmounttoFill ResistPotionAmount7837                            endif7838                            @setvar! PotionStockCheck 77839                        elseif PotionStockCheck = 77840                            if PoisonPotionAmount != 07841                                @setvar! PotionType 38507842                                @setvar! KegColour 3637843                                @setvar! PotionAmounttoFill PoisonPotionAmount7844                            endif7845                            @setvar! PotionStockCheck 87846                        endif7847 7848                        if PotionAmounttoFill != 07849                            while counttype PotionType self < PotionAmounttoFill7850                                if not findtype 'empty bottle%s%' self7851                                    if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50007852                                        overhead "[ NO EMPTY BOTTLES... ]" 3377853                                        settimer 'PotionKegTimer' 07854                                    endif7855                                    break7856                                endif7857 7858                                if diffhits > 107859                                    break7860                                endif7861 7862                                if findtype 'keg' self KegColour as myKeg7863                                    dclick myKeg7864                                    wait 2507865                                    if EnableOverheadMessages = 17866                                        if timer 'PotionKegTimer' > 20007867                                            overhead '[ FILLING POTS... ]' KegColour7868                                            settimer 'PotionKegTimer' 07869                                        endif7870                                    endif7871                                else7872                                    if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50007873                                        overhead "[ NO KEG TO USE... ]" KegColour7874                                        settimer 'PotionKegTimer' 07875                                    endif7876                                    break7877                                endif7878                                if insysmsg "You have been in combat with another player"7879                                    settimer "PotionKegPVPCooldown" 07880                                    break7881                                endif7882                            endwhile7883 7884                            if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self7885                                if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50007886                                    overhead "[ NO EMPTY BOTTLES... ]" 3377887                                    settimer 'PotionKegTimer' 07888                                endif7889                                break7890                            endif7891                        endif7892                    endwhile7893                endif7894 7895                if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff7896                    if findtype "Yellow Potion" self as HealPot7897                        getlabel HealPot HealPotlabel7898                        if "next" in HealPotlabel7899                            // Do nothing7900                        else7901                            @setvar! HealPotionCheck 07902 7903                            if counttype 3852 self as HealPotCount7904                                @setvar! HealPotionCheck HealPotCount7905                            endif7906 7907                            clearsysmsg7908                            dclicktype 38527909                            getlabel backpack backpackdesc7910                            wait 2507911 7912                            if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"7913                                settimer 'HealPotionTimer' 07914                                cooldown "Healing Potion" HealingPotionCooldown7915                                if EnableOverheadMessages = 17916                                    if insysmsg "potion satchel used"7917                                        overhead '[ FREE HEAL POTION ]' 2537918                                    else7919                                        overhead "[ HEAL POTION ]" 2537920                                    endif7921                                endif7922                                clearsysmsg7923                            endif7924                        endif7925                    else7926                        if timer 'HealPotionMessageTimer' > 45007927                            overhead "[ NO HEAL POTS! ]" 3377928                            settimer 'HealPotionMessageTimer' 07929                        endif7930                    endif7931                endif7932 7933                if diffhits > 0 and not bandaging7934                    if skill 'healing' > 07935                        if findtype 'clean bandage%s%' self7936                            if targetexists7937                                hotkey 'cancel current target'7938                            endif7939                            hotkey 'Bandage Self'7940                            if EnableOverheadMessages = 17941                                if timer BandageMessageTimer > 50007942                                    overhead "[ BANDAGING... ]" 887943                                    settimer BandageMessageTimer 07944                                endif7945                            endif7946                        else7947                            if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 17948                                overhead "[ OUT OF BANDAGES! ]" 3377949                                settimer BandageMessageTimer 07950                            endif7951                        endif7952                    endif7953                endif7954 7955                if EnableAutoSatchels = 17956                    if findtype "3962|3963|3972|3973|3974|3976|3980|3981" backpack and findtype "reagent satchel" self as MyWizardBag7957                        while findtype "reagent satchel" self as MyWizardBag7958                            getlabel MyWizardBag MyWizardBagdesc7959                            if 'decorative' in MyWizardBagdesc7960                                @ignore MyWizardBag7961                            else7962                                break7963                            endif7964                        endwhile7965                        if timer "WizardSatchelTimer" > 600007966                            menu MyWizardBag 07967                            wait 2507968                            settimer "WizardSatchelTimer" 07969                        endif7970                    endif7971                    if findtype "Yellow Potion|Orange Potion|Red Potion|White Potion|Blue Potion|Black Potion" backpack and findtype 31262 self as MyPotBag7972                        if timer "PotionSatchelTimer" > 600007973                            menu MyPotBag 07974                            wait 2507975                            settimer "PotionSatchelTimer" 07976                        endif7977                    endif7978                endif7979 7980                if EnableAutoCarving = 1 and findtype 11552 self7981                    while findtype "corpse" ground -1 -1 2 as deadbody and diffhits < ActivateAutoHealHPdiff7982                        if findtype 11552 self7983                            if targetexists7984                                hotkey 'cancel current target'7985                            endif7986                            while not targetexists7987                                skill 'forensicevaluation'7988                                wait 1007989                            endwhile7990                            if targetexists and find deadbody ground -1 -1 27991                                target 'self'7992                                @ignore deadbody7993                                wait 5007994                            endif7995                            if insysmsg "You dont see anything nearby"7996                                clearsysmsg7997                                break7998                            else7999                                if EnableOverheadMessages = 1 and timer SkinningTimer > 30008000                                    overhead "[ SKINNING... ]" 3338001                                    settimer SkinningTimer 08002                                endif8003                            endif8004                        else8005                            if EnableOverheadMessages = 1 and timer SkinningTimer > 150008006                                overhead "[ NO SKINNING KNIFE ]" 3378007                                settimer SkinningTimer 08008                                break8009                            endif8010                        endif8011                    endwhile8012                endif8013 8014                if EnableGoldVacuum = 1 and DisableVacuums != 18015                    if findtype "gold coin" ground -1 -1 12 as droppedmoney and timer "GoldRadar" > 35008016                        overhead " � " 149 droppedmoney8017                        settimer "GoldRadar" 08018                    endif8019                    while findtype "gold coin" ground -1 -1 2 as droppedmoney and diffhits < ActivateAutoHealHPdiff8020                        overhead " � " 1498021                        clearsysmsg8022                        hotkey "Grab Item"8023                        wft 25008024                        target droppedmoney8025                        wait 2508026                        if insysmsg "Invalid or inaccessible item"8027                            wait 5008028                            @ignore droppedmoney8029                        endif8030                        wait 2508031                    endwhile8032                endif8033 8034                if EnableDungeonCleanup = 1 and DisableVacuums != 18035                    while findtype "iron ingot%s|board%s|cut up leather|3972|3962|3963|3980|3976|3973|3974|3981" ground -1 -1 2 as item and diffhits < ActivateAutoHealHPdiff8036                        if EnableOverheadMessages = 18037                            if timer "DungeonCleanup" > 15008038                                overhead '[ CLEANUP... ]' 4208039                                settimer "DungeonCleanup" 08040                            endif8041                        else8042                            if timer "DungeonCleanup" > 15008043                                overhead ' � ' 4208044                                settimer "DungeonCleanup" 08045                            endif8046                        endif8047                        clearsysmsg8048                        hotkey "Grab Item"8049                        wft 10008050                        target item8051                        wait 2508052                        if insysmsg "Invalid or inaccessible item"8053                            wait 5008054                            @ignore item8055                        endif8056                        if not warmode8057                            hotkey 'Toggle War Only'8058                            break8059                        endif8060                    endwhile8061 8062                    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" > 35008063                        overhead " � " 420 dungeonjunk8064                        settimer "DungeonCleanupRadar" 08065                    endif8066                endif8067 8068                if EnableArrowCleanup = 1 and skill 'Archery' > 508069                    while findtype 7163|3903 ground -1 -1 2 as item and diffhits < ActivateAutoHealHPdiff8070                        if timer "ArrowCleanupTimer" > 35008071                            if EnableOverheadMessages = 18072                                overhead '[ CLEANUP... ]' 938073                                settimer "ArrowCleanupTimer" 08074                            else8075                                overhead ' � ' 938076                                settimer "ArrowCleanupTimer" 08077                            endif8078                        endif8079                        clearsysmsg8080                        hotkey "Grab Item"8081                        wft 10008082                        target item8083                        wait 2508084                        if insysmsg "Invalid or inaccessible item"8085                            wait 5008086                            @ignore item8087                        endif8088                        if not warmode8089                            hotkey 'Toggle War Only'8090                            break8091                        endif8092                    endwhile8093 8094                    if findtype "quiver" self as MyQuiver and timer "QuiverTimer" > 300008095                        while findtype "quiver" self as MyQuiver8096                            getlabel MyQuiver MyQuiverdesc8097                            wait 2508098                            if 'decorative' in MyQuiverdesc8099                                @ignore MyQuiver8100                                wait 5008101                            else8102                                break8103                            endif8104                        endwhile8105                        settimer "QuiverTimer" 08106                        menu MyQuiver 08107                        wait 2508108                    endif8109 8110                    if findtype 7163 ground -1 -1 10 as bolt and timer "BoltCleanupRadar" > 35008111                        overhead " � " 93 bolt8112                        settimer "BoltCleanupRadar" 08113                    endif8114 8115                    if findtype 3903 ground -1 -1 10 as arrow and timer "ArrowCleanupRadar" > 35008116                        overhead " � " 37 arrow8117                        settimer "ArrowCleanupRadar" 08118                    endif8119                endif8120 8121                if timer "SatchelTimer" > 15000 and findtype "reagent satchel" self8122                    for 28123                    if findtype "reagent satchel" self as MyWizardBag8124                        getlabel MyWizardBag MyWizardBagdesc8125                        if "decorative" in MyWizardBagdesc8126                            ignore MyWizardBag8127                        else8128                            menu MyWizardBag 08129                            settimer "SatchelTimer" 08130                            wait 2508131                            break8132                        endif8133                    endif8134                    endfor8135                endif8136 8137                if timer "SatchelTimer" > 15000 and findtype 31262 self as MyPotBag8138                    menu MyPotBag 08139                    settimer "SatchelTimer" 08140                    wait 2508141                endif8142 8143                if findtype "quiver" self as MyQuiver and timer "QuiverTimer" > 300008144                    while findtype "quiver" self as MyQuiver8145                        getlabel MyQuiver MyQuiverdesc8146                        wait 2508147                        if 'decorative' in MyQuiverdesc8148                            @ignore MyQuiver8149                            wait 5008150                        else8151                            break8152                        endif8153                    endwhile8154                    settimer "QuiverTimer" 08155                    menu MyQuiver 08156                    wait 2508157                endif8158 8159                if EnableArcheryWarningMessage = 1 and skill 'Archery' >= 508160                    if findtype 'stubnose crossbow|tower guard crossbow|balestra|heavy crossbow|crossbow' hand8161                        @setvar! AMMO 18162                    elseif findtype 'long bow|bow|recurve bow|composite bow' hand8163                        @setvar! AMMO 28164                    endif8165 8166                    if counttype "crossbow bolt" self < ArcheryLowAmmoWarningAmount and timer "AmmunitionTimer" > 6000 and AMMO = 18167                        overhead "[ AMMO LOW! ]" 378168                        settimer 'AmmunitionTimer' 08169                    endif8170 8171                    if counttype "arrow" self < ArcheryLowAmmoWarningAmount and timer 'AmmunitionTimer' > 6000 and AMMO = 28172                        overhead "[ AMMO LOW! ]" 378173                        settimer 'AmmunitionTimer' 08174                    endif8175                endif8176 8177                if skill 'Peacemaking' >= 50 or skill 'Provocation' >= 50 or skill 'Discordance' >= 508178                    if EnableProvocationBuff = 1 and not findbuff "Song of Provocation" and timer 'Musicianship' > 5000 and timer "SongBuffDelay" > 105008179                        skill "Provocation"8180                        wft 15008181                        if insysmsg "What instrument shall you play?"8182                            if findtype "standing harp|sackbut|bamboo flute|tambourine|drum|lute|lap harp|gemshorn|hurdy gurdy|psaltery|shawm|vielle" as Instrument8183                                target Instrument8184                                wait 2508185                            else8186                                if EnableOverheadMessages = 1 or EnableOverheadMessages = 28187                                    overhead "[ NO INSTRUMENT! ]" 3378188                                endif8189                            endif8190                        endif8191 8192                        if not insysmsg "This is not a musical instrument" and targetexists8193                            target backpack8194                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 28195                                overhead "[ j SONG OF PROVOCATION j ]" 21178196                            endif8197                            cooldown "Provocation Buff" 9000008198                            settimer 'Musicianship' 08199                            settimer "SongBuffDelay" 08200                        endif8201                    endif8202 8203                    if EnableDiscordanceBuff = 1 and not findbuff "Song Of Discordance" and timer 'Musicianship' > 5000 and timer "SongBuffDelay" > 105008204                        skill "Discordance"8205                        wft 15008206                        if insysmsg "What instrument shall you play?"8207                            if findtype "standing harp|sackbut|bamboo flute|tambourine|drum|lute|lap harp|gemshorn|hurdy gurdy|psaltery|shawm|vielle" as Instrument8208                                target Instrument8209                                wait 2508210                            else8211                                if EnableOverheadMessages = 1 or EnableOverheadMessages = 28212                                    overhead "[ NO INSTRUMENT! ]" 3378213                                endif8214                            endif8215                        endif8216 8217                        if not insysmsg "This is not a musical instrument" and targetexists8218                            target backpack8219                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 28220                                overhead "[ j SONG OF DISCORDANCE j ]" 698221                            endif8222                            cooldown "Discordance Buff" 9000008223                            settimer 'Musicianship' 08224                            settimer "SongBuffDelay" 08225                        endif8226                    endif8227 8228                    if EnablePeacemakingBuff = 1 and not findbuff "Song Of Peacemaking" and timer 'Musicianship' > 5000 and timer "SongBuffDelay" > 105008229                        clearsysmsg8230                        skill "Peacemaking"8231                        wft 15008232                        if insysmsg "What instrument shall you play?"8233                            if findtype "standing harp|sackbut|bamboo flute|tambourine|drum|lute|lap harp|gemshorn|hurdy gurdy|psaltery|shawm|vielle" as Instrument8234                                target Instrument8235                                wait 2508236                            else8237                                if EnableOverheadMessages = 1 or EnableOverheadMessages = 28238                                    overhead "[ NO INSTRUMENT! ]" 3378239                                endif8240                            endif8241                        endif8242 8243                        if not insysmsg "This is not a musical instrument" and targetexists8244                            target backpack8245                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 28246                                overhead "[ j SONG OF PEACEMAKING j ]" 848247                            endif8248                            cooldown "Peacemaking Buff" 9000008249                            settimer 'Musicianship' 08250                            settimer "SongBuffDelay" 08251                        endif8252                    endif8253                endif8254 8255                if not varexist "NoLockbox"8256                    @setvar! NoLockbox 08257                endif8258 8259                if findtype "wooden box" self and findtype "copper key" self8260                    @setvar! NoLockbox 08261                else8262                    @setvar! NoLockbox 18263                endif8264 8265                if EnablePutLootinLockBox = 1 and NoLockbox != 1 and timer LootTimer > StoreLootTimer and warmode and NeedtoSecureLoot = 18266                    if not findtype "wooden box" backpack or not findtype "copper key" backpack8267                        if EnableOverheadMessages != 08268                            overhead '[ NO LOCKBOX FOUND! ]' 3378269                        endif8270                        @setvar! NoLockbox 18271                        wait 15008272                    elseif counttype 2474 backpack > 1 or counttype 4110 backpack > 18273                        if EnableOverheadMessages != 08274                            overhead '[ TOO MANY LOCKBOXES/KEYS! ]' 3378275                        endif8276                        @setvar! NoLockbox 18277                        wait 15008278                    else8279                        if targetexists8280                            hotkey 'Cancel Current Target'8281                        endif8282 8283                        clearsysmsg8284                        hotkey 'Target closest grey monster'8285                        wait 2508286 8287                        if insysmsg "No one matching that was found"8288                            if findtype "wooden box" backpack as lockbox and findtype "copper key" backpack as key8289                                @ignore ItemToIgnore18290                                @ignore ItemToIgnore28291                                @ignore ItemToIgnore38292                                @ignore ItemToIgnore48293                                @ignore ItemToIgnore58294                                @ignore Instrument8295                                @ignore shield8296                                @ignore weapon8297                                @ignore potentialweapon8298                                @setvar! FoundNewTarget 08299                                settimer STORELOOT 08300                                settimer LootTimer 08301                                settimer PKRadar 08302                                getlabel lockbox lockboxLabel8303 8304                                if "items" in lockboxLabel8305                                    // Do nothing8306                                else8307                                    if EnableOverheadMessages != 08308                                        overhead "[loot box unlocked]" 848309                                    endif8310                                    dclick key8311                                    wft 15008312                                    target lockbox8313                                    getlabel backpack backpacklabel8314                                endif8315 8316                                removelist TemporaryLootIgnoreList8317                                createlist TemporaryLootIgnoreList8318 8319                                if findtype '3821|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|5356|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 loottostore8320 8321                                    //////////////////////////8322                                    //  LOOT STORAGE LOOP:  //8323                                    //////////////////////////8324 8325                                    while findtype '3821|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|5356|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 loottostore8326                                        if dead8327                                            break8328                                        endif8329 8330                                        if diffhits >= ActivateAutoHealHPdiff8331                                            sysmsg 'Damage threshold exceeded - Loot storage loop cancelled!' 1538332                                            break8333                                        endif8334 8335                                        if not warmode8336                                            sysmsg 'Peace Mode triggered - Loot storage loop cancelled!' 1538337                                            hotkey 'Toggle War Only'8338                                            break8339                                        endif8340 8341                                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 28342                                            if timer "LootStorageTimer" > 30008343                                                overhead '[ SECURING LOOT... ]' 1498344                                                settimer "LootStorageTimer" 08345                                            endif8346                                        endif8347 8348                                        getlabel loottostore loottostorelabel8349                                        wait 2008350 8351                                        if "blessed" in loottostorelabel or "aspect" in loottostorelabel8352                                            @ignore loottostore8353                                            pushlist TemporaryLootIgnoreList loottostore8354                                        else8355                                            lift loottostore 600008356                                            drop lockbox -1 -1 -18357                                            wait 2008358                                            if find loottostore lockbox8359                                                @ignore loottostore8360                                            else8361                                                @ignore loottostore8362                                                pushlist TemporaryLootIgnoreList loottostore8363                                            endif8364                                        endif8365 8366                                        if insysmsg "to be locked"8367                                            clearsysmsg8368                                            dclick key8369                                            wft 15008370                                            target lockbox8371                                            wait 2508372                                        endif8373 8374                                        if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff and not dead8375                                            if findtype "Yellow Potion" self as HealPot8376                                                getlabel HealPot HealPotlabel8377                                                if "next" in HealPotlabel8378                                                    // Do nothing8379                                                else8380                                                    @setvar! HealPotionCheck 08381 8382                                                    if counttype 3852 self as HealPotCount8383                                                        @setvar! HealPotionCheck HealPotCount8384                                                    endif8385 8386                                                    clearsysmsg8387                                                    dclicktype 38528388                                                    getlabel backpack backpackdesc8389                                                    wait 2508390 8391                                                    if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"8392                                                        settimer 'HealPotionTimer' 08393                                                        cooldown "Healing Potion" HealingPotionCooldown8394                                                        if EnableOverheadMessages = 18395                                                            if insysmsg "potion satchel used"8396                                                                overhead '[ FREE HEAL POTION ]' 2538397                                                            else8398                                                                overhead "[ HEAL POTION ]" 2538399                                                            endif8400                                                        endif8401                                                        clearsysmsg8402                                                    endif8403                                                endif8404                                            else8405                                                if timer 'HealPotionMessageTimer' > 45008406                                                    overhead "[ NO HEAL POTS! ]" 3378407                                                    settimer 'HealPotionMessageTimer' 08408                                                endif8409                                            endif8410                                        endif8411 8412                                        if diffhits > 0 and not bandaging and not dead8413                                            if skill 'healing' > 08414                                                if findtype 'clean bandage%s%' self8415                                                    if targetexists8416                                                        hotkey 'cancel current target'8417                                                    endif8418                                                    hotkey 'Bandage Self'8419                                                    if EnableOverheadMessages = 18420                                                        if timer BandageMessageTimer > 50008421                                                            overhead "[ BANDAGING... ]" 888422                                                            settimer BandageMessageTimer 08423                                                        endif8424                                                    endif8425                                                else8426                                                    if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 18427                                                        overhead "[ OUT OF BANDAGES! ]" 3378428                                                        settimer BandageMessageTimer 08429                                                    endif8430                                                endif8431                                            endif8432                                        endif8433 8434                                        if EnableCurePotion = 1 and not dead8435                                            while poisoned8436                                                if findtype "Orange Potion" self8437                                                    dclicktype "Orange Potion"8438                                                    if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 35008439                                                        overhead "[ CURE POTION ]" 448440                                                        settimer 'CurePotionMessageTimer' 08441                                                    endif8442                                                    wait 2508443                                                else8444                                                    if timer 'CurePotionMessageTimer' > 50008445                                                        overhead "[ NO CURE POTS! ]" 3378446                                                        settimer 'CurePotionMessageTimer' 08447                                                    endif8448 8449                                                    if not findtype 3972 self or not findtype 3973 self8450                                                        break8451                                                    endif8452                                                endif8453                                                if not poisoned8454                                                    break8455                                                endif8456                                            endwhile8457                                        endif8458 8459                                        if EnablePKradar = 18460                                            if timer "PKRadar" > 20008461                                                clearsysmsg8462                                                hotkey 'Next Murderer Player Target'8463                                                wait 1508464                                                if insysmsg "No one matching that was found"8465                                                    settimer "PKRadar" 08466                                                else8467                                                    hotkey 'Toggle Peace Only'8468                                                    @setvar! RedTargetFound 18469                                                    @setvar! WarModeToggledWhileFighting 08470                                                    @setvar! TimeToGo 18471                                                    @setvar! SkipInfiniteLoop 18472                                                    @setvar! MurdererTarget lasttarget8473                                                    if EnableRedAlertOverhead = 18474                                                        overhead "[ !! RED ALERT !! ]" 378475                                                    endif8476                                                    settimer "REDALERT" 08477                                                    replay8478                                                endif8479                                            endif8480                                        endif8481 8482                                        if EnableTrackingAutoRecall = 18483                                            if PKTrackingRange = 608484                                                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"8485                                                    hotkey 'Toggle Peace Only'8486                                                    if EnableRedAlertOverhead = 18487                                                        overhead "[ !! RED ALERT !! ]" 378488                                                    endif8489                                                    settimer "REDALERT" 08490                                                    @setvar! RedTargetFound 18491                                                    @setvar! SkipInfiniteLoop 18492                                                    @setvar! WarModeToggledWhileFighting 08493                                                    @setvar! TimeToGo 18494                                                    clearsysmsg8495                                                    replay8496                                                endif8497                                            elseif PKTrackingRange = 508498                                                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"8499                                                    hotkey 'Toggle Peace Only'8500                                                    if EnableRedAlertOverhead = 18501                                                        overhead "[ !! RED ALERT !! ]" 378502                                                    endif8503                                                    settimer "REDALERT" 08504                                                    @setvar! RedTargetFound 18505                                                    @setvar! SkipInfiniteLoop 18506                                                    @setvar! WarModeToggledWhileFighting 08507                                                    @setvar! TimeToGo 18508                                                    clearsysmsg8509                                                    replay8510                                                endif8511                                            elseif PKTrackingRange = 408512                                                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"8513                                                    hotkey 'Toggle Peace Only'8514                                                    if EnableRedAlertOverhead = 18515                                                        overhead "[ !! RED ALERT !! ]" 378516                                                    endif8517                                                    settimer "REDALERT" 08518                                                    @setvar! RedTargetFound 18519                                                    @setvar! SkipInfiniteLoop 18520                                                    @setvar! WarModeToggledWhileFighting 08521                                                    @setvar! TimeToGo 18522                                                    clearsysmsg8523                                                    replay8524                                                endif8525                                            elseif PKTrackingRange = 08526                                                if insysmsg "Now tracking"8527                                                    hotkey 'Toggle Peace Only'8528                                                    if EnableRedAlertOverhead = 18529                                                        overhead "[ !! RED ALERT !! ]" 378530                                                    endif8531                                                    settimer "REDALERT" 08532                                                    @setvar! RedTargetFound 18533                                                    @setvar! SkipInfiniteLoop 18534                                                    @setvar! WarModeToggledWhileFighting 08535                                                    @setvar! TimeToGo 18536                                                    clearsysmsg8537                                                    replay8538                                                endif8539                                            endif8540                                        endif8541 8542                                        if timer 'STORELOOT' > 15008543                                            clearsysmsg8544                                            hotkey 'Target Closest Grey Monster'8545                                            getlabel backpack backpacklabel8546                                            wait 1008547                                            if insysmsg 'No one matching that was found'8548                                                @setvar! FoundNewTarget 08549                                                @setvar! LootTargetMOB 08550                                            else8551                                                @setvar! LootTargetMOB lasttarget8552                                                getlabel LootTargetMOB templabel8553                                                if inlist animalsIgnoreList tempLabel8554                                                    if timer "IgnoreMOBtimer" > 25008555                                                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 28556                                                            overhead '[ IGNORING MOB! ]' 333 LootTargetMOB8557                                                        else8558                                                            overhead " � " 333 LootTargetMOB8559                                                        endif8560                                                        getlabel backpack backpacklabel8561                                                        settimer "IgnoreMOBtimer" 08562                                                    endif8563                                                    @ignore LootTargetMOB8564                                                elseif find LootTargetMOB ground -1 -1 TargetAnalyzeRange8565                                                    clearsysmsg8566                                                    skill 'begging'8567                                                    wft 5008568                                                    if not targetexists or insysmsg 'You must wait'8569                                                        clearsysmsg8570                                                        skill 'begging'8571                                                        wft 5008572                                                    endif8573                                                    target LootTargetMOB8574                                                    getlabel backpack backpackdesc8575 8576                                                    if not dead LootTargetMOB8577                                                        if insysmsg "Target cannot be seen" or insysmsg "That is too far away."8578                                                            @setvar! FoundNewTarget 08579                                                            @setvar! LootTargetMOB 08580                                                        elseif insysmsg "Perhaps" or insysmsg "They do not appear to have anything to offer you"8581                                                            sysmsg 'Nearby MOB detected - Loot storage loop cancelled!' 1538582                                                            @setvar! FoundNewTarget 18583                                                            break8584                                                        endif8585                                                    endif8586                                                else8587                                                    @setvar! LootTargetMOB 08588                                                endif8589                                            endif8590                                            settimer 'STORELOOT' 08591                                        endif8592                                    endwhile8593                                endif8594 8595                                /////////////////////////////8596                                //  END LOOT STORAGE LOOP  //8597                                /////////////////////////////8598 8599                                if not dead8600                                    dclick key8601                                    wft 15008602                                    target lockbox8603                                    if EnableOverheadMessages != 08604                                        overhead "[loot box locked]" 698605                                    endif8606                                endif8607 8608                                foreach TemporaryLootIgnore in TemporaryLootIgnoreList8609                                    @unignore TemporaryLootIgnore8610                                endfor8611 8612                                removelist TemporaryLootIgnoreList8613                                @unignore ItemToIgnore18614                                @unignore ItemToIgnore28615                                @unignore ItemToIgnore38616                                @unignore ItemToIgnore48617                                @unignore ItemToIgnore58618                                @unignore Instrument8619                                @unignore shield8620                                @unignore weapon8621                                @unignore potentialweapon8622                                @setvar! NeedtoSecureLoot 08623                                settimer LootTimer 08624 8625                                getlabel lockbox lockboxLabel8626 8627                                if "items" in lockboxLabel and not dead8628                                    dclick key8629                                    wft 15008630                                    target lockbox8631                                endif8632                            endif8633                        else8634                            @setvar! TargetToAnalyze lasttarget8635                            getlabel backpack backpacklabel8636                            break8637                        endif8638                    endif8639                    settimer LootTimer 08640                endif8641 8642                if targetexists8643                    hotkey 'cancel current target'8644                endif8645 8646                if diffhits >= ActivateAutoHealHPdiff or FoundNewTarget = 18647                    break8648                endif8649 8650                if dead8651                    break8652                endif8653            endwhile8654 8655            //////////////////////////8656            //  END NO TARGET LOOP  //8657            //////////////////////////8658        else8659            @setvar TargetToAnalyze lasttarget8660            getlabel backpack backpacklabel8661        endif8662 8663        if DUNGEONMODE = 18664            if TimeToGo = 18665                replay8666            endif8667        elseif WILDERNESSMODE = 18668            if AutoRecallTime = 1 or RedTargetFound = 18669                replay8670            endif8671        endif8672 8673        if dead8674            break8675        endif8676 8677 8678        ////////////////////////////8679        //  ANALYZE TARGET LOOP:  //8680        ////////////////////////////8681 8682        if not dead TargetToAnalyze and find TargetToAnalyze ground -1 -1 TargetAnalyzeRange and diffhits < ActivateAutoHealHPdiff and warmode8683            while not dead TargetToAnalyze and find TargetToAnalyze ground -1 -1 TargetAnalyzeRange and diffhits < ActivateAutoHealHPdiff and warmode8684                if dead8685                    break8686                endif8687 8688                if dead TargetToAnalyze or not find TargetToAnalyze ground -1 -1 TargetAnalyzeRange8689                    break8690                endif8691 8692                if diffhits >= ActivateAutoHealHPdiff8693                    break8694                endif8695 8696                if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff8697                    if findtype "Yellow Potion" self as HealPot8698                        getlabel HealPot HealPotlabel8699                        if "next" in HealPotlabel8700                            // Do nothing8701                        else8702                            @setvar! HealPotionCheck 08703 8704                            if counttype 3852 self as HealPotCount8705                                @setvar! HealPotionCheck HealPotCount8706                            endif8707 8708                            clearsysmsg8709                            dclicktype 38528710                            getlabel backpack backpackdesc8711                            wait 2508712 8713                            if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"8714                                settimer 'HealPotionTimer' 08715                                cooldown "Healing Potion" HealingPotionCooldown8716                                if EnableOverheadMessages = 18717                                    if insysmsg "potion satchel used"8718                                        overhead '[ FREE HEAL POTION ]' 2538719                                    else8720                                        overhead "[ HEAL POTION ]" 2538721                                    endif8722                                endif8723                                clearsysmsg8724                            endif8725                        endif8726                    else8727                        if timer 'HealPotionMessageTimer' > 45008728                            overhead "[ NO HEAL POTS! ]" 3378729                            settimer 'HealPotionMessageTimer' 08730                        endif8731                    endif8732                endif8733 8734                if diffhits > 0 and not bandaging8735                    if skill 'healing' > 08736                        if findtype 'clean bandage%s%' self8737                            if targetexists8738                                hotkey 'cancel current target'8739                            endif8740                            hotkey 'Bandage Self'8741                            if EnableOverheadMessages = 18742                                if timer BandageMessageTimer > 50008743                                    overhead "[ BANDAGING... ]" 888744                                    settimer BandageMessageTimer 08745                                endif8746                            endif8747                        else8748                            if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 18749                                overhead "[ OUT OF BANDAGES! ]" 3378750                                settimer BandageMessageTimer 08751                            endif8752                        endif8753                    endif8754                endif8755 8756                if EnablePanaceaPotion = 1 and skill 'Alchemy' >= 808757                    if findbuff "Bleed" or findbuff "Diseased"8758                        if not findbuff "panacea potion cooldown"8759                            if findtype "Orange Potion" self8760                                dclicktype "Orange Potion"8761                                wait 2508762                                if findbuff "panacea potion cooldown" and EnableOverheadMessages = 18763                                    overhead '[ PANACEA ACTIVATED ]' 558764                                    cooldown "Panacea Potion" 300008765                                endif8766                            endif8767                        endif8768                    endif8769                endif8770 8771                if EnableCleansingBrews = 18772                    if findbuff "Diseased" or findbuff "Bleed"8773                        if timer CleansingBrewTimer > 1200008774                            if findtype 50675 self 2935 as CleansingBrew8775                                dclick CleansingBrew8776                                if EnableOverheadMessages = 18777                                    overhead '[ CLEANSING BREW ]' 21178778                                endif8779                                cooldown 'Cleansing Brew' 1200008780                                settimer CleansingBrewTimer 08781                                wait 2508782                            else8783                                if timer CleansingBrewOverhead > 150008784                                    overhead "[ NO CLEANSING BREWS! ]" 3378785                                    settimer CleansingBrewOverhead 08786                                    settimer CleansingBrewTimer 08787                                endif8788                            endif8789                        else8790                            if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 150008791                                overhead '[ BREW ON COOLDOWN! ]' 378792                                settimer CleansingBrewOverhead 08793                            endif8794                        endif8795                    endif8796                endif8797 8798                if EnableCurePotion = 1 and not dead8799                    while poisoned8800                        if findtype "Orange Potion" self8801                            dclicktype "Orange Potion"8802                            if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 35008803                                overhead "[ CURE POTION ]" 448804                                settimer 'CurePotionMessageTimer' 08805                            endif8806                            wait 2508807                        else8808                            if timer 'CurePotionMessageTimer' > 50008809                                overhead "[ NO CURE POTS! ]" 3378810                                settimer 'CurePotionMessageTimer' 08811                            endif8812 8813                            if not findtype 3972 self or not findtype 3973 self8814                                break8815                            endif8816                        endif8817                        if not poisoned8818                            break8819                        endif8820                    endwhile8821                endif8822 8823                if not warmode8824                    break8825                endif8826 8827                if weight > maxweight and EnableDropGoldWhenOverweight = 18828                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 28829                        if timer OverweightMessageTimer > 45008830                            overhead "[ OVERWEIGHT! ]" 348831                            settimer OverweightMessageTimer 08832                        endif8833                    endif8834 8835                    if DropGoldAmount != 08836                        clearignore8837                        @setvar! DisableVacuums 18838                        wait 2508839 8840                        if EnablePutLootinLockBox = 18841                            if findtype "wooden box" self as lockbox8842                                if findtype "copper key" self as key8843                                    clearignore8844                                    getlabel lockbox lockboxlabel8845                                    wait 1008846                                    if "items" in lockboxlabel8847                                        // Do nothing8848                                    else8849                                        dclick key8850                                        wft 15008851                                        target lockbox8852                                        if EnableOverheadMessages = 18853                                            overhead "[loot box unlocked]" 848854                                        endif8855                                        wait 5008856                                        if insysmsg "It appears to be locked."8857                                            dclick key8858                                            wft 15008859                                            target lockbox8860                                            wait 2508861                                        endif8862                                    endif8863                                elseif EnableOverheadMessages = 18864                                    overhead "[ NO LOCKBOX KEY! ]" 3378865                                endif8866                            endif8867                        endif8868 8869                        while weight > maxweight and diffhits < ActivateAutoHealHPdiff8870                            if findtype "gold coin" self as easycomeeasygo8871                                lift easycomeeasygo DropGoldAmount8872                                droprelloc 0 08873                                getlabel backpack packdesc8874                                if EnableOverheadMessages = 18875                                    overhead "[ DROPPING GOLD... ]" 1498876                                endif8877                                wait 2508878                                if insysmsg "cannot drop anything"8879                                    drop backpack -1 -1 -18880                                    break8881                                endif8882                                wait 2508883                            else8884                                break8885                            endif8886                        endwhile8887                    endif8888                endif8889 8890                if EnableWeightWarningMessage = 18891                    if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer "WeightTimer" > 60008892                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 28893                            overhead "[ WEIGHT WARNING... ]" 778894                            settimer "WeightTimer" 08895                        else8896                            overhead " � " 778897                            settimer "WeightTimer" 08898                        endif8899                        elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer "WeightTimer" > 60008900                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 28901                            overhead "[ WEIGHT WARNING! ]" 1538902                            settimer "WeightTimer" 08903                        else8904                            overhead " � " 1538905                            settimer "WeightTimer" 08906                        endif8907                    elseif diffweight <= RedWeightLimitDiffWeight and timer "WeightTimer" > 60008908                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 28909                            overhead "[ WEIGHT LIMIT REACHED! ]" 378910                            settimer "WeightTimer" 08911                        else8912                            overhead " � " 378913                            settimer "WeightTimer" 08914                        endif8915 8916                        if EnableAutoWeightRecall = 1 and not find ClosestTarget ground -1 -1 8 and WILDERNESSMODE = 18917                            wait 2508918                            if EnableInfiniteLoop != 0 and skill 'Chivalry' >= 908919                                settimer "InfiniteLoop" 08920                                if EnableInfiniteLoop = 18921                                    @setvar! SkipInfiniteLoop 08922                                elseif EnableInfiniteLoop = 28923                                    @setvar! SkipInfiniteLoop 08924                                else8925                                    @setvar! SkipInfiniteLoop 18926                                endif8927                            endif8928                            hotkey 'Toggle Peace Only'8929                            @setvar! AutoWeightRecall 18930                            @setvar! WarModeToggledWhileFighting 08931                            @setvar! TimeToGo 18932                            break8933                        elseif EnableAutoWeightRecall = 1 and find ClosestTarget ground -1 -1 8 and WILDERNESSMODE = 18934                            if EnableInfiniteLoop != 0 and skill 'Chivalry' >= 908935                                settimer "InfiniteLoop" 08936                            endif8937                            if timer "RECALLDELAY" > 3500 and EnableAutoRecallOverheadMessages = 18938                                overhead "[ WAITING TO RECALL... ]" 1498939                                settimer "RECALLDELAY" 08940                            endif8941                            wait 5008942                        elseif EnableAutoWeightDungeonGate = 1 and DUNGEONMODE = 18943                            wait 2508944                            if EnableInfiniteLoop != 0 and skill 'Chivalry' >= 908945                                settimer "InfiniteLoop" 08946                                if EnableInfiniteLoop = 18947                                    @setvar! SkipInfiniteLoop 08948                                elseif EnableInfiniteLoop = 28949                                    @setvar! SkipInfiniteLoop 08950                                else8951                                    @setvar! SkipInfiniteLoop 18952                                endif8953                            endif8954                            hotkey 'Toggle Peace Only'8955                            @setvar! TimeToGo 18956                            replay8957                        else8958                            overhead "[ OVERWEIGHT! ]" 3378959                            sysmsg "Time to head home and unload your loot!" 08960                            settimer "WeightTimer" 08961                        endif8962                    endif8963                endif8964 8965                if timer AnalyzeTargetMessageTimer > 10000 and TimeToGo != 18966                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 28967                        overhead '[ ANALYZING TARGET... ]' 888968                    else8969                        overhead " � " 888970                    endif8971                    settimer AnalyzeTargetMessageTimer 08972                endif8973 8974                getlabel TargetToAnalyze tempLabel8975                getlabel backpack backpackdesc8976 8977                if inlist animalsIgnoreList tempLabel8978                    if timer "IgnoreMOBtimer" > 25008979                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 28980                            overhead '[ IGNORING MOB! ]' 333 TargetToAnalyze8981                        else8982                            overhead " � " 333 TargetToAnalyze8983                        endif8984                        getlabel backpack backpacklabel8985                        settimer "IgnoreMOBtimer" 08986                    endif8987                    @ignore TargetToAnalyze8988                else8989                    clearsysmsg8990                    skill 'begging'8991                    wft 5008992                    if not targetexists or insysmsg 'You must wait'8993                        clearsysmsg8994                        skill 'begging'8995                        wft 5008996                    endif8997                    target TargetToAnalyze8998                    getlabel backpack backpackdesc8999 9000                    if not dead TargetToAnalyze9001                        if insysmsg "Target cannot be seen"9002                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 29003                                if timer "CANNOTSEE" > 30009004                                    overhead  "[ CANNOT SEE TARGET! ]" 449005                                    settimer "CANNOTSEE" 09006                                    settimer "TargetAcquired" 09007                                    settimer "NoTargetTimer" 09008                                endif9009                            else9010                                if timer "CANNOTSEE" > 30009011                                    overhead " � " 44 TargetToAnalyze9012                                    settimer "CANNOTSEE" 09013                                    settimer "TargetAcquired" 09014                                    settimer "NoTargetTimer" 09015                                endif9016                            endif9017                        elseif insysmsg "That is too far away."9018                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 29019                                if timer "TOOFAR" > 30009020                                    overhead "[ TARGET TOO FAR AWAY! ]" 449021                                    settimer "TOOFAR" 09022                                    settimer "TargetAcquired" 09023                                    settimer "NoTargetTimer" 09024                                endif9025                            else9026                                if timer "TOOFAR" > 30009027                                    overhead " � " 44 TargetToAnalyze9028                                    settimer "TOOFAR" 09029                                    settimer "TargetAcquired" 09030                                    settimer "NoTargetTimer" 09031                                endif9032                            endif9033                        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"9034                            if varexist DisengagedTarget9035                                @unignore DisengagedTarget9036 9037                                if not dead DisengagedTarget and find DisengagedTarget ground -1 -1 TargetAnalyzeRange and not find DisengagedTarget ground -1 -1 TargetDisengageRange9038                                    @ignore DisengagedTarget9039                                else9040                                    unsetvar DisengagedTarget9041                                endif9042                            endif9043 9044                            if insysmsg "You must wait"9045                                hotkey 'target closest grey monster'9046                                getlabel backpack packdesc9047                                @setvar! TargetToAnalyze lasttarget9048                                clearsysmsg9049                            endif9050 9051                            hotkey 'target closest grey monster'9052                            getlabel backpack packdesc9053                            @setvar! ClosestTarget lasttarget9054 9055                            if find TargetToAnalyze ground -1 -1 TargetAttackRange and TargetToAnalyze = ClosestTarget9056                                if timer "NoTargetTimer" > 25009057                                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 29058                                        overhead "[ TARGET ]" 69 TargetToAnalyze9059                                        overhead " � " 69 TargetToAnalyze9060                                    else9061                                        overhead " � " 69 TargetToAnalyze9062                                    endif9063                                    settimer "NoTargetTimer" 09064                                endif9065                                settimer "TargetAcquired" 09066 9067                                if TargetToAnalyze = ClosestTarget9068                                    attack ClosestTarget9069                                else9070                                    break9071                                endif9072 9073                                if skill 'Discordance' >= 50 and EnableDiscordance = 19074                                    @setvar! NeedtoDiscord 19075                                    settimer DiscoCheck 09076                                endif9077 9078                                if skill 'Peacemaking' >= 50 and EnablePeacemaking = 19079                                    @setvar! NeedtoPacify 19080                                    settimer PeaceCheck 09081                                endif9082 9083                                if skill 'Provocation' >= 50 and EnableProvocation = 19084                                    @setvar! NeedtoProvoke 09085                                    settimer ProvoCheck 09086                                    settimer NextTargetCheck 15009087                                    settimer NextTargetTimer 35009088                                endif9089 9090                                if timer "ATTACKTIMER" > 40009091                                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 29092                                        overhead "[ ATTACKING! ]" 699093                                        settimer "ATTACKTIMER" 09094                                        settimer "NoTargetTimer" 09095                                        settimer "TargetAcquired" 09096                                    else9097                                        settimer "ATTACKTIMER" 09098                                        settimer "NoTargetTimer" 09099                                        settimer "TargetAcquired" 09100                                        settimer "AttackingTimer" 5009101                                    endif9102                                endif9103                                break9104                            elseif find TargetToAnalyze ground -1 -1 TargetAnalyzeRange and TargetToAnalyze = ClosestTarget9105                                if timer "NoTargetTimer" > 30009106                                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 29107                                        overhead "[ GET CLOSER! ]" 3539108                                        overhead " � " 353 TargetToAnalyze9109                                    else9110                                        overhead " � " 353 TargetToAnalyze9111                                    endif9112                                    settimer "NoTargetTimer" 09113                                    settimer "TargetAcquired" 09114                                endif9115                            endif9116                        endif9117                    else9118                        break9119                    endif9120                endif9121 9122                if EnablePKradar = 19123                    if timer "PKRadar" > 10009124                        clearsysmsg9125                        hotkey 'Next Murderer Player Target'9126                        getlabel backpack backpacklabel9127                        if insysmsg "No one matching that was found"9128                            settimer "PKRadar" 09129                        else9130                            hotkey 'Toggle Peace Only'9131                            @setvar! RedTargetFound 19132                            @setvar! WarModeToggledWhileFighting 09133                            @setvar! TimeToGo 19134                            @setvar! SkipInfiniteLoop 19135                            @setvar! MurdererTarget lasttarget9136                            if EnableRedAlertOverhead = 19137                                overhead "[ !! RED ALERT !! ]" 379138                            endif9139                            settimer "REDALERT" 09140                            replay9141                        endif9142                    endif9143                endif9144 9145                if EnableTrackingAutoRecall = 19146                    if PKTrackingRange = 609147                        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"9148                            hotkey 'Toggle Peace Only'9149                            if EnableRedAlertOverhead = 19150                                overhead "[ !! RED ALERT !! ]" 379151                            endif9152                            settimer "REDALERT" 09153                            @setvar! RedTargetFound 19154                            @setvar! SkipInfiniteLoop 19155                            @setvar! WarModeToggledWhileFighting 09156                            @setvar! TimeToGo 19157                            clearsysmsg9158                            replay9159                        endif9160                    elseif PKTrackingRange = 509161                        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"9162                            hotkey 'Toggle Peace Only'9163                            if EnableRedAlertOverhead = 19164                                overhead "[ !! RED ALERT !! ]" 379165                            endif9166                            settimer "REDALERT" 09167                            @setvar! RedTargetFound 19168                            @setvar! SkipInfiniteLoop 19169                            @setvar! WarModeToggledWhileFighting 09170                            @setvar! TimeToGo 19171                            clearsysmsg9172                            replay9173                        endif9174                    elseif PKTrackingRange = 409175                        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"9176                            hotkey 'Toggle Peace Only'9177                            if EnableRedAlertOverhead = 19178                                overhead "[ !! RED ALERT !! ]" 379179                            endif9180                            settimer "REDALERT" 09181                            @setvar! RedTargetFound 19182                            @setvar! SkipInfiniteLoop 19183                            @setvar! WarModeToggledWhileFighting 09184                            @setvar! TimeToGo 19185                            clearsysmsg9186                            replay9187                        endif9188                    elseif PKTrackingRange = 09189                        if insysmsg "Now tracking"9190                            hotkey 'Toggle Peace Only'9191                            if EnableRedAlertOverhead = 19192                                overhead "[ !! RED ALERT !! ]" 379193                            endif9194                            settimer "REDALERT" 09195                            @setvar! RedTargetFound 19196                            @setvar! SkipInfiniteLoop 19197                            @setvar! WarModeToggledWhileFighting 09198                            @setvar! TimeToGo 19199                            clearsysmsg9200                            replay9201                        endif9202                    endif9203                endif9204 9205                if targetexists9206                    hotkey 'cancel current target'9207                endif9208 9209                if varexist DisengagedTarget9210                    @unignore DisengagedTarget9211 9212                    if not dead DisengagedTarget and find DisengagedTarget ground -1 -1 TargetAnalyzeRange and not find DisengagedTarget ground -1 -1 TargetDisengageRange9213                        @ignore DisengagedTarget9214                    else9215                        unsetvar DisengagedTarget9216                    endif9217                endif9218 9219                clearsysmsg9220                hotkey 'target closest grey monster'9221                getlabel backpack backpacklabel9222 9223                if varexist TargetCheck9224                    unsetvar TargetCheck9225                else9226                    @setvar TargetCheck 09227                endif9228                wait 2509229 9230                if insysmsg 'No one matching that'9231                    @setvar TargetCheck 09232                    break9233                else9234                    @setvar TargetCheck lasttarget9235                    getlabel backpack backpacklabel9236                endif9237 9238                if TargetToAnalyze != TargetCheck9239                    break9240                endif9241            endwhile9242 9243            ///////////////////////////////9244            //  END ANALYZE TARGET LOOP  //9245            ///////////////////////////////9246        endif9247    endif9248 9249    if dead9250        break9251    endif9252 9253 9254    ///////////////////////////9255    //  ATTACK TARGET LOOP:  //9256    ///////////////////////////9257 9258    while not dead ClosestTarget and diffhits < ActivateAutoHealHPdiff and find ClosestTarget ground -1 -1 TargetDisengageRange9259        if dead9260            break9261        endif9262 9263        if diffhits >= ActivateAutoHealHPdiff9264            break9265        endif9266 9267        if not find ClosestTarget ground -1 -1 TargetDisengageRange9268            if skill 'Archery' > 809269                @setvar! SwitchtoIncendiaryAmmo 09270            endif9271            break9272        endif9273 9274        if not find weapon hand9275            if find weapon backpack9276                if EnableAutoEquipWeapon != 09277                    if timer DisarmedTimer > 25009278                        dclick weapon9279                        getlabel backpack backpacklabel9280                        wait 2509281                    else9282                        overhead '[ WAITING TO ARM... ]' 449283                        wait 5009284                    endif9285                else9286                    overhead '[ EQUIP YOUR WEAPON! ]' 1549287                    wait 2509288                endif9289            endif9290        endif9291 9292        if skill 'Swordsmanship' >= 509293            if findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' hand as weapon9294                @setvar! UsingSwords 19295            elseif findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' backpack as potentialweapon9296                @setvar! UsingSwords 29297            elseif not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' self9298                @setvar! UsingSwords 09299            endif9300        else9301            @setvar! UsingSwords 09302        endif9303 9304        if skill 'Mace Fighting' >= 509305            if findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' hand as weapon9306                @setvar! UsingMacing 19307            elseif findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' backpack as potentialweapon9308                @setvar! UsingMacing 29309            elseif not findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' self9310                @setvar! UsingMacing 09311            endif9312        else9313            @setvar! UsingMacing 09314        endif9315 9316        if skill 'Fencing' >= 509317            if findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' hand as weapon9318                @setvar! UsingFencing 19319            elseif findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' backpack as potentialweapon9320                @setvar! UsingFencing 29321            elseif not findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' self9322                @setvar! UsingFencing 09323            endif9324        else9325            @setvar! UsingFencing 09326        endif9327 9328        if skill 'Archery' >= 509329            if findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' hand as weapon9330                @setvar! UsingArchery 19331            elseif findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' backpack as potentialweapon9332                @setvar! UsingArchery 29333            elseif not findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' self9334                @setvar! UsingArchery 09335            endif9336        else9337            @setvar! UsingArchery 09338        endif9339 9340        if skill 'Wrestling' >= 509341            if findtype '22187|31141|31142' hand as weapon9342                @setvar! UsingWrestling 19343            elseif findtype '22187|31141|31142' backpack as potentialweapon9344                @setvar! UsingWrestling 29345            elseif not findtype '22187|31141|31142' self9346                @setvar! UsingWrestling 09347            endif9348        else9349            @setvar! UsingWrestling 09350        endif9351 9352        if skill 'Throwing' >= 509353            if findtype '67713|67723|67734|67744|67754|67764' hand as weapon9354                @setvar! UsingThrowing 19355            elseif findtype '67713|67723|67734|67744|67754|67764' backpack as potentialweapon9356                @setvar! UsingThrowing 29357            elseif not findtype '67713|67723|67734|67744|67754|67764' self9358                @setvar! UsingThrowing 09359            endif9360        else9361            @setvar! UsingThrowing 09362        endif9363 9364        if skill 'Dual Wielding' >= 509365            if findtype '67773|67774|67775|67776|67777|67778' hand as weapon9366                @setvar! UsingDualWield 19367            elseif findtype '67773|67774|67775|67776|67777|67778' backpack as potentialweapon9368                @setvar! UsingDualWield 29369            elseif not findtype '67773|67774|67775|67776|67777|67778' self9370                @setvar! UsingDualWield 09371            endif9372        else9373            @setvar! UsingDualWield 09374        endif9375 9376        if EnableAutoEquipWeapon = 19377            if timer DisarmedTimer > 25009378                if skill 'Swordsmanship' >= 50 and UsingSwords != 09379                    if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' self9380                        overhead "[ NO WEAPON! ]" 3379381                        wait 15009382                    else9383                        if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' hand9384                            if findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' backpack as weapon9385                                for 109386                                getlabel weapon WeaponLabel9387                                wait 2509388                                if "unidentified" in WeaponLabel9389                                    @ignore weapon9390                                    wait 1509391                                    if findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' backpack as weapon9392                                        getlabel weapon WeaponLabel9393                                    endif9394                                elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel9395                                    break9396                                else9397                                    @ignore weapon9398                                    wait 1509399                                    if findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' backpack as weapon9400                                        getlabel weapon WeaponLabel9401                                    endif9402                                endif9403                                endfor9404                                wait 1509405                                clearsysmsg9406                                dclick weapon9407                                wait 2509408                                if insysmsg 'You have been disarmed'9409                                    if EnableOverheadMessages = 19410                                        overhead '[ DISARMED! ]' 449411                                    elseif EnableOverheadMessages = 29412                                        overhead '*disarmed!*' 449413                                    endif9414                                    settimer DisarmedTimer 09415                                    clearsysmsg9416                                endif9417                            endif9418                        endif9419                    endif9420                    elseif skill 'Mace Fighting' >= 50 and UsingMacing != 09421                    if not findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' self9422                        overhead "[ NO WEAPON! ]" 3379423                        wait 15009424                    else9425                        if not findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' hand9426                            if findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' backpack as weapon9427                                for 109428                                getlabel weapon WeaponLabel9429                                wait 2509430                                if "unidentified" in WeaponLabel9431                                    @ignore weapon9432                                    wait 1509433                                    if findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' backpack as weapon9434                                        getlabel weapon WeaponLabel9435                                    endif9436                                elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel9437                                    break9438                                else9439                                    @ignore weapon9440                                    wait 1509441                                    if findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' backpack as weapon9442                                        getlabel weapon WeaponLabel9443                                    endif9444                                endif9445                                endfor9446                                wait 1509447                                clearsysmsg9448                                dclick weapon9449                                wait 2509450                                if insysmsg 'You have been disarmed'9451                                    if EnableOverheadMessages = 19452                                        overhead '[ DISARMED! ]' 449453                                    elseif EnableOverheadMessages = 29454                                        overhead '*disarmed!*' 449455                                    endif9456                                    settimer DisarmedTimer 09457                                    clearsysmsg9458                                endif9459                            endif9460                        endif9461                    endif9462                    elseif skill 'Fencing' >= 50 and UsingFencing != 09463                    if not findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' self9464                        overhead "[ NO WEAPON! ]" 3379465                        wait 15009466                    else9467                        if not findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' hand9468                            if findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' backpack as weapon9469                                for 109470                                getlabel weapon WeaponLabel9471                                wait 2509472                                if "unidentified" in WeaponLabel9473                                    @ignore weapon9474                                    wait 1509475                                    if findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' backpack as weapon9476                                        getlabel weapon WeaponLabel9477                                    endif9478                                elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel9479                                    break9480                                else9481                                    @ignore weapon9482                                    wait 1509483                                    if findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' backpack as weapon9484                                        getlabel weapon WeaponLabel9485                                    endif9486                                endif9487                                endfor9488                                wait 1509489                                clearsysmsg9490                                dclick weapon9491                                wait 2509492                                if insysmsg 'You have been disarmed'9493                                    if EnableOverheadMessages = 19494                                        overhead '[ DISARMED! ]' 449495                                    elseif EnableOverheadMessages = 29496                                        overhead '*disarmed!*' 449497                                    endif9498                                    settimer DisarmedTimer 09499                                    clearsysmsg9500                                endif9501                            endif9502                        endif9503                    endif9504                    elseif skill 'Archery' >= 50 and UsingArchery != 09505                    if not findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' self9506                        overhead "[ NO WEAPON! ]" 3379507                        wait 15009508                    else9509                        if not findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' hand9510                            if findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' backpack as weapon9511                                for 109512                                getlabel weapon WeaponLabel9513                                wait 2509514                                if "unidentified" in WeaponLabel9515                                    @ignore weapon9516                                    wait 1509517                                    if findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' backpack as weapon9518                                        getlabel weapon WeaponLabel9519                                    endif9520                                elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel9521                                    break9522                                else9523                                    @ignore weapon9524                                    wait 1509525                                    if findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' backpack as weapon9526                                        getlabel weapon WeaponLabel9527                                    endif9528                                endif9529                                endfor9530                                wait 1509531                                clearsysmsg9532                                dclick weapon9533                                wait 2509534                                if insysmsg 'You have been disarmed'9535                                    if EnableOverheadMessages = 19536                                        overhead '[ DISARMED! ]' 449537                                    elseif EnableOverheadMessages = 29538                                        overhead '*disarmed!*' 449539                                    endif9540                                    settimer DisarmedTimer 09541                                    clearsysmsg9542                                endif9543                            endif9544                        endif9545                    endif9546                elseif skill 'Wrestling' >= 50 and UsingWrestling != 09547                    if not findtype '22187|31141|31142' self9548                        overhead "[ NO WEAPON! ]" 3379549                        wait 15009550                    else9551                        if not findtype '22187|31141|31142' hand9552                            if findtype '22187|31141|31142' backpack as weapon9553                                for 109554                                getlabel weapon WeaponLabel9555                                wait 2509556                                if "unidentified" in WeaponLabel9557                                    @ignore weapon9558                                    wait 1509559                                    if findtype '22187|31141|31142' backpack as weapon9560                                        getlabel weapon WeaponLabel9561                                    endif9562                                elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel9563                                    break9564                                else9565                                    @ignore weapon9566                                    wait 1509567                                    if findtype '22187|31141|31142' backpack as weapon9568                                        getlabel weapon WeaponLabel9569                                    endif9570                                endif9571                                endfor9572                                wait 1509573                                clearsysmsg9574                                dclick weapon9575                                wait 2509576                                if insysmsg 'You have been disarmed'9577                                    if EnableOverheadMessages = 19578                                        overhead '[ DISARMED! ]' 449579                                    elseif EnableOverheadMessages = 29580                                        overhead '*disarmed!*' 449581                                    endif9582                                    settimer DisarmedTimer 09583                                    clearsysmsg9584                                endif9585                            endif9586                        endif9587                    endif9588                elseif skill 'Throwing' >= 50 and UsingThrowing != 09589                    if not findtype '67713|67723|67734|67744|67754|67764' self9590                        overhead "[ NO WEAPON! ]" 3379591                        wait 15009592                    else9593                        if not findtype '67713|67723|67734|67744|67754|67764' hand9594                            if findtype '67713|67723|67734|67744|67754|67764' backpack as weapon9595                                for 109596                                getlabel weapon WeaponLabel9597                                wait 2509598                                if "unidentified" in WeaponLabel9599                                    @ignore weapon9600                                    wait 1509601                                    if findtype '67713|67723|67734|67744|67754|67764' backpack as weapon9602                                        getlabel weapon WeaponLabel9603                                    endif9604                                elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel9605                                    break9606                                else9607                                    @ignore weapon9608                                    wait 1509609                                    if findtype '67713|67723|67734|67744|67754|67764' backpack as weapon9610                                        getlabel weapon WeaponLabel9611                                    endif9612                                endif9613                                endfor9614                                wait 1509615                                clearsysmsg9616                                dclick weapon9617                                wait 2509618                                if insysmsg 'You have been disarmed'9619                                    if EnableOverheadMessages = 19620                                        overhead '[ DISARMED! ]' 449621                                    elseif EnableOverheadMessages = 29622                                        overhead '*disarmed!*' 449623                                    endif9624                                    settimer DisarmedTimer 09625                                    clearsysmsg9626                                endif9627                            endif9628                        endif9629                    endif9630                elseif skill 'Dual Wielding' >= 50 and UsingDualWield != 09631                    if not findtype '67773|67774|67775|67776|67777|67778' self9632                        overhead "[ NO WEAPON! ]" 3379633                        wait 15009634                    else9635                        if not findtype '67773|67774|67775|67776|67777|67778' hand9636                            if findtype '67773|67774|67775|67776|67777|67778' backpack as weapon9637                                for 109638                                getlabel weapon WeaponLabel9639                                wait 2509640                                if "unidentified" in WeaponLabel9641                                    @ignore weapon9642                                    wait 1509643                                    if findtype '67773|67774|67775|67776|67777|67778' backpack as weapon9644                                        getlabel weapon WeaponLabel9645                                    endif9646                                elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel9647                                    break9648                                else9649                                    @ignore weapon9650                                    wait 1509651                                    if findtype '67773|67774|67775|67776|67777|67778' backpack as weapon9652                                        getlabel weapon WeaponLabel9653                                    endif9654                                endif9655                                endfor9656                                wait 1509657                                clearsysmsg9658                                dclick weapon9659                                wait 2509660                                if insysmsg 'You have been disarmed'9661                                    if EnableOverheadMessages = 19662                                        overhead '[ DISARMED! ]' 449663                                    elseif EnableOverheadMessages = 29664                                        overhead '*disarmed!*' 449665                                    endif9666                                    settimer DisarmedTimer 09667                                    clearsysmsg9668                                endif9669                            endif9670                        endif9671                    endif9672                endif9673            else9674                overhead '[ WAITING TO ARM... ]' 1549675                wait 5009676            endif9677        elseif EnableAutoEquipWeapon = 29678            if timer DisarmedTimer > 25009679                if skill 'Swordsmanship' >= 509680                    if UsingSwords = 19681                       // Do nothing9682                    elseif UsingSwords = 29683                        if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3920|5042|5117|30990|30993|30994|30995|31184|31186|22187|31141|31142|67713|67723|67734|67744|67754|67764|67773|67774|67775|67776|67777|67778' hand9684                            if findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' backpack as weapon9685                                for 109686                                getlabel weapon WeaponLabel9687                                wait 2509688                                if "unidentified" in WeaponLabel9689                                    @ignore weapon9690                                    wait 1509691                                    if findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' backpack as weapon9692                                        getlabel weapon WeaponLabel9693                                    endif9694                                elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel9695                                    break9696                                else9697                                    @ignore weapon9698                                    wait 1509699                                    if findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190' backpack as weapon9700                                        getlabel weapon WeaponLabel9701                                    endif9702                                endif9703                                endfor9704                                wait 1509705                                clearsysmsg9706                                dclick weapon9707                                wait 2509708                                if insysmsg 'You have been disarmed'9709                                    if EnableOverheadMessages = 19710                                        overhead '[ DISARMED! ]' 449711                                    elseif EnableOverheadMessages = 29712                                        overhead '*disarmed!*' 449713                                    endif9714                                    settimer DisarmedTimer 09715                                    clearsysmsg9716                                endif9717                            endif9718                        endif9719                    elseif UsingSwords = 09720                        overhead "[ NO SWORD WEAPON! ]" 3379721                        wait 5009722                    endif9723                endif9724 9725                if skill 'Mace Fighting' >= 509726                    if UsingMacing = 19727                       // Do nothing9728                    elseif UsingMacing = 29729                        if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3920|5042|5117|30990|30993|30994|30995|31184|31186|22187|31141|31142|67713|67723|67734|67744|67754|67764|67773|67774|67775|67776|67777|67778' hand9730                            if findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' backpack as weapon9731                                for 109732                                getlabel weapon WeaponLabel9733                                wait 2509734                                if "unidentified" in WeaponLabel9735                                    @ignore weapon9736                                    wait 1509737                                    if findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' backpack as weapon9738                                        getlabel weapon WeaponLabel9739                                    endif9740                                elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel9741                                    break9742                                else9743                                    @ignore weapon9744                                    wait 1509745                                    if findtype '31180|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31182' backpack as weapon9746                                        getlabel weapon WeaponLabel9747                                    endif9748                                endif9749                                endfor9750                                wait 1509751                                clearsysmsg9752                                dclick weapon9753                                wait 2509754                                if insysmsg 'You have been disarmed'9755                                    if EnableOverheadMessages = 19756                                        overhead '[ DISARMED! ]' 449757                                    elseif EnableOverheadMessages = 29758                                        overhead '*disarmed!*' 449759                                    endif9760                                    settimer DisarmedTimer 09761                                    clearsysmsg9762                                endif9763                            endif9764                        endif9765                    elseif UsingMacing = 09766                        overhead "[ NO MACE WEAPON! ]" 3379767                        wait 5009768                    endif9769                endif9770 9771                if skill 'Fencing' >= 509772                    if UsingFencing = 19773                       // Do nothing9774                    elseif UsingFencing = 29775                        if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3920|5042|5117|30990|30993|30994|30995|31184|31186|22187|31141|31142|67713|67723|67734|67744|67754|67764|67773|67774|67775|67776|67777|67778' hand9776                            if findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' backpack as weapon9777                                for 109778                                getlabel weapon WeaponLabel9779                                wait 2509780                                if "unidentified" in WeaponLabel9781                                    @ignore weapon9782                                    wait 1509783                                    if findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' backpack as weapon9784                                        getlabel weapon WeaponLabel9785                                    endif9786                                elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel9787                                    break9788                                else9789                                    @ignore weapon9790                                    wait 1509791                                    if findtype '3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188' backpack as weapon9792                                        getlabel weapon WeaponLabel9793                                    endif9794                                endif9795                                endfor9796                                wait 1509797                                clearsysmsg9798                                dclick weapon9799                                wait 2509800                                if insysmsg 'You have been disarmed'9801                                    if EnableOverheadMessages = 19802                                        overhead '[ DISARMED! ]' 449803                                    elseif EnableOverheadMessages = 29804                                        overhead '*disarmed!*' 449805                                    endif9806                                    settimer DisarmedTimer 09807                                    clearsysmsg9808                                endif9809                            endif9810                        endif9811                    elseif UsingFencing = 09812                        overhead "[ NO FENCING WEAPON! ]" 3379813                        wait 5009814                    endif9815                endif9816 9817                if skill 'Archery' >= 509818                    if UsingArchery = 19819                       // Do nothing9820                    elseif UsingArchery = 29821                        if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3920|5042|5117|30990|30993|30994|30995|31184|31186|22187|31141|31142|67713|67723|67734|67744|67754|67764|67773|67774|67775|67776|67777|67778' hand9822                            if findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' backpack as weapon9823                                for 109824                                getlabel weapon WeaponLabel9825                                wait 2509826                                if "unidentified" in WeaponLabel9827                                    @ignore weapon9828                                    wait 1509829                                    if findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' backpack as weapon9830                                        getlabel weapon WeaponLabel9831                                    endif9832                                elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel9833                                    break9834                                else9835                                    @ignore weapon9836                                    wait 1509837                                    if findtype '3920|5042|5117|30990|30993|30994|30995|31184|31186' backpack as weapon9838                                        getlabel weapon WeaponLabel9839                                    endif9840                                endif9841                                endfor9842                                wait 1509843                                clearsysmsg9844                                dclick weapon9845                                wait 2509846                                if insysmsg 'You have been disarmed'9847                                    if EnableOverheadMessages = 19848                                        overhead '[ DISARMED! ]' 449849                                    elseif EnableOverheadMessages = 29850                                        overhead '*disarmed!*' 449851                                    endif9852                                    settimer DisarmedTimer 09853                                    clearsysmsg9854                                endif9855                            endif9856                        endif9857                    elseif UsingArchery = 09858                        overhead "[ NO ARCHERY WEAPON! ]" 3379859                        wait 5009860                    endif9861                endif9862 9863                if skill 'Wrestling' >= 509864                    if UsingWrestling = 19865                       // Do nothing9866                    elseif UsingWrestling = 29867                        if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3920|5042|5117|30990|30993|30994|30995|31184|31186|22187|31141|31142|67713|67723|67734|67744|67754|67764|67773|67774|67775|67776|67777|67778' hand9868                        if findtype '22187|31141|31142' backpack as weapon and timer DisarmedTimer > 25009869                                for 109870                                getlabel weapon WeaponLabel9871                                wait 2509872                                if "unidentified" in WeaponLabel9873                                    @ignore weapon9874                                    wait 1509875                                    if findtype '22187|31141|31142' backpack as weapon9876                                        getlabel weapon WeaponLabel9877                                    endif9878                                elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel9879                                    break9880                                else9881                                    @ignore weapon9882                                    wait 1509883                                    if findtype '22187|31141|31142' backpack as weapon9884                                        getlabel weapon WeaponLabel9885                                    endif9886                                endif9887                                endfor9888                                wait 1509889                                clearsysmsg9890                                dclick weapon9891                                wait 2509892                                if insysmsg 'You have been disarmed'9893                                    if EnableOverheadMessages = 19894                                        overhead '[ DISARMED! ]' 449895                                    elseif EnableOverheadMessages = 29896                                        overhead '*disarmed!*' 449897                                    endif9898                                    settimer DisarmedTimer 09899                                    clearsysmsg9900                                endif9901                            endif9902                        endif9903                    elseif UsingWrestling = 09904                        overhead "[ NO WRESTLING WEAPON! ]" 3379905                        wait 5009906                    endif9907                endif9908 9909                if skill 'Throwing' >= 509910                    if UsingThrowing = 19911                       // Do nothing9912                    elseif UsingThrowing = 29913                        if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3920|5042|5117|30990|30993|30994|30995|31184|31186|22187|31141|31142|67713|67723|67734|67744|67754|67764|67773|67774|67775|67776|67777|67778' hand9914                            if findtype '67713|67723|67734|67744|67754|67764' backpack as weapon9915                                for 109916                                getlabel weapon WeaponLabel9917                                wait 2509918                                if "unidentified" in WeaponLabel9919                                    @ignore weapon9920                                    wait 1509921                                    if findtype '67713|67723|67734|67744|67754|67764' backpack as weapon9922                                        getlabel weapon WeaponLabel9923                                    endif9924                                elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel9925                                    break9926                                else9927                                    @ignore weapon9928                                    wait 1509929                                    if findtype '67713|67723|67734|67744|67754|67764' backpack as weapon9930                                        getlabel weapon WeaponLabel9931                                    endif9932                                endif9933                                endfor9934                                wait 1509935                                clearsysmsg9936                                dclick weapon9937                                wait 2509938                                if insysmsg 'You have been disarmed'9939                                    if EnableOverheadMessages = 19940                                        overhead '[ DISARMED! ]' 449941                                    elseif EnableOverheadMessages = 29942                                        overhead '*disarmed!*' 449943                                    endif9944                                    settimer DisarmedTimer 09945                                    clearsysmsg9946                                endif9947                            endif9948                        endif9949                    elseif UsingThrowing = 09950                        overhead "[ NO THROWING WEAPON! ]" 3379951                        wait 5009952                    endif9953                endif9954 9955                if skill 'Dual Wielding' >= 509956                    if UsingDualWield = 19957                       // Do nothing9958                    elseif UsingDualWield = 29959                        if not findtype '30988|5049|3909|3911|3915|3917|3934|3937|5046|5115|5119|5182|5185|5187|31128|31190|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3920|5042|5117|30990|30993|30994|30995|31184|31186|22187|31141|31142|67713|67723|67734|67744|67754|67764|67773|67774|67775|67776|67777|67778' hand9960                            if findtype '67773|67774|67775|67776|67777|67778' backpack as weapon9961                                for 109962                                getlabel weapon WeaponLabel9963                                wait 2509964                                if "unidentified" in WeaponLabel9965                                    @ignore weapon9966                                    wait 1509967                                    if findtype '67773|67774|67775|67776|67777|67778' backpack as weapon9968                                        getlabel weapon WeaponLabel9969                                    endif9970                                elseif "aspect" in WeaponLabel or "Aspect" in WeaponLabel9971                                    break9972                                else9973                                    @ignore weapon9974                                    wait 1509975                                    if findtype '67773|67774|67775|67776|67777|67778' backpack as weapon9976                                        getlabel weapon WeaponLabel9977                                    endif9978                                endif9979                                endfor9980                                wait 1509981                                clearsysmsg9982                                dclick weapon9983                                wait 2509984                                if insysmsg 'You have been disarmed'9985                                    if EnableOverheadMessages = 19986                                        overhead '[ DISARMED! ]' 449987                                    elseif EnableOverheadMessages = 29988                                        overhead '*disarmed!*' 449989                                    endif9990                                    settimer DisarmedTimer 09991                                    clearsysmsg9992                                endif9993                            endif9994                        endif9995                    elseif UsingDualWield = 09996                        overhead "[ NO DUAL WIELD WEAPON! ]" 3379997                        wait 5009998                    endif9999                endif10000            else10001                overhead '[ WAITING TO ARM... ]' 15410002                wait 50010003            endif10004        endif10005 10006        if EnableShieldCheck = 110007            if not findtype 'Order shield|buckler |metal shield|Chaos shield|heater shield|bone shield|bronze shield|kite shield|wooden shield|parrying gauche' lefthand10008                if findtype 'Order shield|buckler |metal shield|Chaos shield|heater shield|bone shield|bronze shield|kite shield|wooden shield|parrying gauche' backpack as shield10009                    getlabel shield ShieldLabel10010                    for 410011                    wait 25010012                    if "unidentified" in ShieldLabel10013                        @ignore shield10014                        wait 15010015                        if findtype 'Order shield|buckler |metal shield|Chaos shield|heater shield|bone shield|bronze shield|kite shield|wooden shield|parrying gauche' backpack as shield10016                            getlabel shield ShieldLabel10017                        endif10018                    endif10019                    endfor10020                    wait 15010021                    dclick shield10022                    wait 25010023                endif10024            endif10025        endif10026 10027 10028        ///////////////////////10029        //  BARDING SKILLS:  //10030        ///////////////////////10031 10032        if EnableProvocation = 1 and skill "Provocation" >= 50 and diffhits <= ActivateAutoHealHPdiff10033            if timer "NextTargetCheck" > 50010034                hotkey 'Next Grey Monster Target'10035                getlabel backpack backpacklabel10036                @setvar! NextClosestTarget lasttarget10037                for 510038                if NextClosestTarget != ClosestTarget and find NextClosestTarget ground -1 -1 TargetBardingRange10039                    getlabel ClosestTarget descTarget10040                    getlabel NextClosestTarget descNextTarget10041                    wait 25010042                    if inlist animalsIgnoreList descNextTarget10043                        if timer "IgnoreMOBtimer" > 250010044                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 210045                                overhead '[ IGNORING MOB! ]' 333 NextClosestTarget10046                            else10047                                overhead " � " 333 NextClosestTarget10048                            endif10049                            getlabel backpack backpacklabel10050                            settimer "IgnoreMOBtimer" 010051                        endif10052                        @ignore NextClosestTarget10053                        wait 25010054                        @setvar! NextClosestTarget 010055                    elseif "provoked" in descTarget10056                        if timer "ProvokedTimer" > 3100010057                            settimer "ProvokedTimer" 010058                        endif10059                        @setvar! NeedtoProvoke 010060                        settimer "ProvoCheck" 010061                    else10062                        if timer "NextTargetTimer" > 300010063                            if "Paragon" in descNextTarget10064                                if not dead NextClosestTarget10065                                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 210066                                        overhead " � PARAGON! � " 12 NextClosestTarget10067                                    else10068                                        overhead " ��� " 12 NextClosestTarget10069                                    endif10070                                endif10071                            else10072                                if not dead NextClosestTarget10073                                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 210074                                        overhead "[ PROVO TARGET ]" 2117 NextClosestTarget10075                                        overhead " � " 2117 NextClosestTarget10076                                    else10077                                        overhead " � " 2117 NextClosestTarget10078                                    endif10079                                endif10080                            endif10081                            settimer "NextTargetTimer" 010082                        endif10083                        settimer "ProvokedTimer" 3100010084                        settimer "ProvoCheck" 010085                        @setvar! NeedtoProvoke 110086                        hotkey 'Target Closest Grey Monster'10087                        break10088                    endif10089                elseif NextClosestTarget != ClosestTarget and find NextClosestTarget ground -1 -1 TargetAnalyzeRange10090                    hotkey 'Next Grey Monster Target'10091                    getlabel backpack backpacklabel10092                    @setvar! NextClosestTarget lasttarget10093                else10094                    hotkey 'Next Grey Monster Target'10095                    getlabel backpack backpacklabel10096                    @setvar! NextClosestTarget lasttarget10097                endif10098                endfor10099 10100                if NextClosestTarget = ClosestTarget or NextClosestTarget = 0 or dead NextClosestTarget or not find NextClosestTarget ground -1 -1 TargetBardingRange10101                    @setvar! NeedtoProvoke 010102                    @setvar! NextClosestTarget 010103                    settimer ProvoCheck 010104                    hotkey 'Target Closest Grey Monster'10105                endif10106            endif10107 10108            if timer "ProvoCheck" > 500 and NeedtoProvoke != 110109                if find ClosestTarget ground -1 -1 TargetBardingRange and find NextClosestTarget ground -1 -1 TargetBardingRange and ClosestTarget != NextClosestTarget10110                    getlabel ClosestTarget descTarget10111                    getlabel NextClosestTarget descNextTarget10112                    wait 25010113                    if inlist animalsIgnoreList descNextTarget10114                        if timer "IgnoreMOBtimer" > 250010115                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 210116                                overhead '[ IGNORING MOB! ]' 333 NextClosestTarget10117                            else10118                                overhead " � " 333 NextClosestTarget10119                            endif10120                            getlabel backpack backpacklabel10121                            settimer "IgnoreMOBtimer" 010122                        endif10123                        @ignore NextClosestTarget10124                        @setvar! NeedtoProvoke 010125                        wait 25010126                        @setvar! NextClosestTarget 010127                    elseif "provoked" in descTarget or "provoked" in descNextTarget10128                        if timer "ProvokedTimer" > 3100010129                            settimer "ProvokedTimer" 010130                        endif10131                        @setvar! NeedtoProvoke 010132                        @setvar! NeedtoPacify 110133                        @setvar! NeedtoDiscord 110134                        settimer "ProvoCheck" 010135                    else10136                        settimer "ProvokedTimer" 3100010137                        @setvar! NeedtoProvoke 110138                        @setvar! NeedtoPacify 010139                        @setvar! NeedtoDiscord 010140                        settimer "ProvoCheck" 010141                        @setvar! SwitchtoIncendiaryAmmo 010142                    endif10143                else10144                    @setvar! NeedtoProvoke 010145                    settimer "ProvoCheck" 010146                endif10147            endif10148 10149            if NeedtoProvoke = 110150                if timer "Provocation" > 11000 and timer "Musicianship" > 5000 and NextClosestTarget != ClosestTarget10151                    clearsysmsg10152                    skill "Provocation"10153                    wft 100010154                    target NextClosestTarget10155                    wait 25010156                    if insysmsg 'Target cannot be seen'10157                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 210158                            overhead "[ CANNOT SEE TARGET... ]" 4410159                        else10160                            sysmsg "Provoke target cannot be seen..." 211710161                        endif10162                        @setvar! NeedtoProvoke 010163                        @setvar! NeedtoPacify 110164                        @setvar! NeedtoDiscord 110165                        settimer "ProvoCheck" 010166                        settimer "NextTargetTimer" 010167                        clearsysmsg10168                    elseif insysmsg "You must wait"10169                        clearsysmsg10170                        if EnableOverheadMessages = 110171                            overhead "[ WAITING... ]" 211710172                        endif10173                        wait 50010174                        @setvar! NeedtoProvoke 110175                        @setvar! NeedtoPacify 010176                        @setvar! NeedtoDiscord 010177                    elseif insysmsg 'That is too far away.'10178                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 210179                            overhead "[ TARGET TOO FAR AWAY! ]" 4410180                        else10181                            sysmsg "Provoke target is too far away... " 211710182                        endif10183                        @setvar! NeedtoProvoke 010184                        @setvar! NeedtoPacify 110185                        @setvar! NeedtoDiscord 110186                        settimer "ProvoCheck" 010187                        settimer "NextTargetTimer" 010188                        clearsysmsg10189                    else10190                        wft 150010191                        if not dead ClosestTarget10192                            if EnableOverheadMessages = 110193                                overhead "[ j PROVOKING... j ]" 211710194                            else10195                                overhead ' j ' 211710196                            endif10197                            target ClosestTarget10198                        else10199                            hotkey 'Cancel Current Target'10200                        endif10201                        wait 25010202                    endif10203 10204                    if insysmsg 'You play successfully, provoking'10205                        if not dead ClosestTarget10206                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 210207                                overhead '[ j PROVOKED! j ]' 2117 ClosestTarget10208                                overhead '[ j PROVOKED! j ]' 2117 NextClosestTarget10209                                settimer "TargetAcquired" 010210                                settimer "NextTargetTimer" 010211                            else10212                                overhead ' j ' 2117 ClosestTarget10213                                overhead ' j ' 2117 NextClosestTarget10214                                settimer "TargetAcquired" 010215                                settimer "NextTargetTimer" 010216                            endif10217                        endif10218                        if EnableOverheadMessages = 110219                            sysmsg "You play an aggressive tune, provoking rage into your targets..." 211710220                        endif10221                        settimer "Musicianship" 010222                        settimer "Provocation" 010223                        cooldown "Provocation" 1100010224                        cooldown "Provoked" ProvocationReapply10225                        @setvar! NeedtoProvoke 010226                        @setvar! NeedtoPacify 010227                        @setvar! NeedtoDiscord 110228                        if skill 'Archery' >= 80 and SetWeaponCodexStance = 6 and UsingArchery = 110229                            if findtype "archery codex" self as MyCodex10230                                getlabel MyCodex MyCodexDesc10231                                wait 15010232                                if "Incendiary" in MyCodexDesc10233                                    // Do nothing10234                                else10235                                    yell "[ArcheryAmmunition3"10236                                    settimer "WeaponCodexTimer" 010237                                    wait 25010238                                endif10239                                @setvar! SwitchtoIncendiaryAmmo 110240                            endif10241                        endif10242                    elseif insysmsg 'You fail to incite'10243                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 210244                            overhead '[ PROVO FAIL! ]' 33710245                            settimer "TargetAcquired" 010246                            settimer "NextTargetTimer" 010247                        else10248                            if not dead ClosestTarget10249                                overhead ' � ' 337 ClosestTarget10250                                overhead ' � ' 337 NextClosestTarget10251                                settimer "TargetAcquired" 010252                                settimer "NextTargetTimer" 010253                            endif10254                        endif10255                        sysmsg "You fail to provoke your targets!" 33910256                        settimer "Provocation" 550010257                        @setvar! NeedtoProvoke 010258                        @setvar! NeedtoPacify 010259                        @setvar! NeedtoDiscord 110260                    elseif insysmsg 'Target cannot be seen'10261                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 210262                            overhead "[ CANNOT BE SEEN... ]" 4410263                        endif10264                        @setvar! NeedtoProvoke 010265                        @setvar! NeedtoPacify 110266                        @setvar! NeedtoDiscord 110267                    elseif insysmsg 'That is too far away.'10268                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 210269                            overhead "[ TARGET TOO FAR AWAY! ]" 4410270                        endif10271                        @setvar! NeedtoProvoke 010272                        @setvar! NeedtoPacify 110273                        @setvar! NeedtoDiscord 110274                    elseif insysmsg 'The creatures you are trying to provoke are too far away from each'10275                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 210276                            overhead '[ TOO FAR APART! ]' 43 ClosestTarget10277                            overhead '[ TOO FAR APART! ]' 43 NextClosestTarget10278                        endif10279                        wait 25010280                        @setvar! NeedtoProvoke 010281                        @setvar! NeedtoPacify 110282                        @setvar! NeedtoDiscord 110283                    elseif insysmsg 'tell someone to attack themselves'10284                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 210285                            overhead '[ SELF TARGET FAIL... ]' 337 ClosestTarget10286                        else10287                            overhead ' � ' 33710288                        endif10289                        @setvar! NeedtoProvoke 110290                        @setvar! NeedtoPacify 110291                        @setvar! NeedtoDiscord 110292                    endif10293                endif10294            endif10295            if NextClosestTarget = ClosestTarget10296                @setvar! NeedtoProvoke 010297                @setvar! NeedtoPacify 110298                @setvar! NeedtoDiscord 110299            endif10300        endif10301 10302        if skill "Peacemaking" >= 50 and EnablePeacemaking = 1 and diffhits <= ActivateAutoHealHPdiff10303            if timer "PeaceCheck" > 500 and NeedtoProvoke != 1 and NeedtoPacify != 110304                if find ClosestTarget ground -1 -1 TargetBardingRange10305                    getlabel ClosestTarget descTarget10306                    if EnableProvocation  = 1 and NextClosestTarget != ClosestTarget and find NextClosestTarget ground -1 -1 TargetBardingRange10307                        getlabel NextClosestTarget descNextTarget10308                    endif10309                    wait 25010310                    if "pacified" in descTarget10311                        if timer "PacifiedTimer" > 3100010312                            settimer "PacifiedTimer" 010313                        endif10314                        @setvar! NeedtoPacify 010315                        settimer "PeaceCheck" 010316                    elseif EnableProvocation = 110317                        if "provoked" in descTarget or "provoked" in descNextTarget10318                            @setvar! NeedtoPacify 010319                            settimer "PeaceCheck" 010320                        else10321                            settimer "PacifiedTimer" 3100010322                            @setvar! NeedtoPacify 110323                            settimer "PeaceCheck" 010324                        endif10325                    endif10326                else10327                    break10328                endif10329            endif10330        endif10331 10332        if EnablePeacemaking = 1 and skill "Peacemaking" >= 5010333            if NeedtoPacify = 110334                if timer "Pacified" > 30000 and timer "Peacemaking" > 11000 and timer "Musicianship" > 500010335                    clearsysmsg10336                    skill "Peacemaking"10337                    wft 150010338                    if insysmsg "What instrument shall you play?"10339                        if findtype "standing harp|sackbut|bamboo flute|tambourine|drum|lute|lap harp|gemshorn|hurdy gurdy|psaltery|shawm|vielle" as Instrument10340                            target Instrument10341                            wait 25010342                        else10343                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 210344                                overhead "[ NO INSTRUMENT! ]" 33710345                            endif10346                        endif10347                    endif10348 10349                    if not insysmsg "This is not a musical instrument"10350                        target ClosestTarget10351                        wait 25010352                    endif10353 10354                    if insysmsg "Target cannot be seen"10355                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 210356                            overhead "[ CANNOT BE SEEN... ]" 4410357                        endif10358                        break10359                    elseif insysmsg 'That is too far away.'10360                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 210361                            overhead "[ TARGET TOO FAR AWAY! ]" 4410362                        endif10363                        break10364                    elseif insysmsg "You must wait"10365                        clearsysmsg10366                        if EnableOverheadMessages = 110367                            overhead "[ WAITING... ]" 8410368                        endif10369                        wait 50010370                        @setvar! NeedtoProvoke 010371                        @setvar! NeedtoPacify 110372                        @setvar! NeedtoDiscord 010373                    elseif insysmsg "You play successfully, pacifying your"10374                        if EnableOverheadMessages = 110375                            overhead "[ j PACIFYING... j ]" 8410376                        else10377                            overhead " j " 8410378                        endif10379                        cooldown "Pacified" PeacemakingReapply10380                        settimer "Musicianship" 010381                        settimer "Peacemaking" 010382                        cooldown "Peacemaking" 1100010383                        if not dead ClosestTarget10384                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 210385                                wait 25010386                                overhead "[ j PACIFIED! j ]" 84 ClosestTarget10387                            else10388                                overhead ' j ' 84 ClosestTarget10389                                settimer "TargetAcquired" 010390                            endif10391                        endif10392                        if EnableOverheadMessages = 110393                            sysmsg "You play a calming tune, pacifying your target..." 8410394                        endif10395                    elseif insysmsg "you fail to pacify your opponent"10396                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 210397                            overhead "[ PACIFY FAIL! ]" 33710398                        else10399                            overhead ' � ' 337 ClosestTarget10400                            overhead ' � ' 33710401                        endif10402                        sysmsg "You fail to pacify your target!" 33710403                        settimer "Peacemaking" 550010404                    else10405                        if not find ClosestTarget ground -1 -1 TargetBardingRange or dead ClosestTarget10406                            break10407                        endif10408                    endif10409                endif10410            endif10411        endif10412 10413        if EnableDiscordance = 1 and skill "Discordance" >= 50 and diffhits <= ActivateAutoHealHPdiff10414            if timer "DiscoCheck" > 500 and NeedtoProvoke != 1 and NeedtoDiscord != 110415                if find ClosestTarget ground -1 -1 TargetBardingRange10416                    getlabel ClosestTarget descTarget10417                    wait 25010418                    if "discord" in descTarget10419                        if EnableProvocation = 1 and  find NextClosestTarget ground -1 -1 TargetBardingRange and ClosestTarget != NextClosestTarget and NextClosestTarget != 010420                            getlabel NextClosestTarget descNextTarget10421                            wait 25010422                            if "discord" in descNextTarget10423                                @setvar! NeedtoDiscord 010424                                settimer "DiscoCheck" 010425                            else10426                                @setvar! NeedtoDiscord 210427                                settimer "DiscoCheck" 010428                            endif10429                        else10430                            if timer "DiscordedTimer" > 3100010431                                settimer "DiscordedTimer" 010432                            endif10433                            @setvar! NeedtoDiscord 010434                            settimer "DiscoCheck" 010435                        endif10436                    else10437                        settimer "DiscordedTimer" 3100010438                        @setvar! NeedtoDiscord 110439                        settimer "DiscoCheck" 010440                    endif10441                endif10442            endif10443        endif10444 10445        if skill "Discordance" >= 50 and EnableDiscordance = 1 and diffhits <= ActivateAutoHealHPdiff10446            if NeedtoDiscord = 110447                if timer "Discorded" > 31000 and timer "DiscordanceTimer" > 11000 and timer "Musicianship" > 500010448                    clearsysmsg10449                    skill "Discordance"10450                    wft 150010451                    if insysmsg "What instrument shall you play?"10452                        if findtype "standing harp|sackbut|bamboo flute|tambourine|drum|lute|lap harp|gemshorn|hurdy gurdy|psaltery|shawm|vielle" as Instrument10453                            target Instrument10454                            wait 25010455                        else10456                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 210457                                overhead "[ NO INSTRUMENT! ]" 33710458                            endif10459                        endif10460                    elseif not insysmsg "This is not a musical instrument"10461                        target ClosestTarget10462                        wait 25010463                        if insysmsg "Target cannot be seen."10464                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 210465                                overhead "[ CANNOT BE SEEN... ]" 4410466                            endif10467                        elseif insysmsg "You must wait"10468                            clearsysmsg10469                            if EnableOverheadMessages = 110470                                overhead "[ WAITING... ]" 6910471                            endif10472                            wait 50010473                            @setvar! NeedtoProvoke 010474                            @setvar! NeedtoPacify 010475                            @setvar! NeedtoDiscord 110476                        elseif insysmsg "You play successfully, disrupting your opponent"10477                            if EnableOverheadMessages = 110478                                overhead "[ j DISCORDING... j ]" 6910479                            else10480                                overhead " j " 6910481                            endif10482                            cooldown "Discorded" DiscordanceReapply10483                            settimer "Musicianship" 010484                            settimer "Discorded" 010485                            settimer "DiscordanceTimer" 010486                            cooldown "Discordance" 1100010487                            if not dead ClosestTarget10488                                if EnableOverheadMessages = 1 or EnableOverheadMessages = 210489                                    overhead "[ j DISCORDED! j ]" 69 ClosestTarget10490                                else10491                                    overhead ' j ' 69 ClosestTarget10492                                    settimer "TargetAcquired" 010493                                endif10494                            endif10495                            if EnableOverheadMessages = 110496                                sysmsg "You play a mesmerizing tune, disrupting your target's focus..." 6910497                                # '10498                            endif10499                        elseif insysmsg "fail to discord"10500                            settimer "DiscordanceTimer" 550010501                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 210502                                overhead "[ DISCORD FAIL! ]" 33710503                            else10504                                overhead ' � ' 337 ClosestTarget10505                                overhead ' � ' 33710506                                settimer "TargetAcquired" 010507                            endif10508                            sysmsg "You fail to discord your target!" 33710509                        else10510                            if not find ClosestTarget ground -1 -1 TargetBardingRange or dead ClosestTarget10511                                break10512                            endif10513                        endif10514                    else10515                        if not find ClosestTarget ground -1 -1 TargetBardingRange or dead ClosestTarget10516                            break10517                        endif10518                    endif10519                endif10520            elseif NeedtoDiscord = 2 and EnableProvocation = 1 and not dead NextClosestTarget and NextClosestTarget != ClosestTarget and find NextClosestTarget ground -1 -1 TargetBardingRange10521                if timer "DiscordanceTimer" > 11000 and timer "Musicianship" > 5000 and diffhits <= ActivateAutoHealHPdiff10522                    clearsysmsg10523                    skill "Discordance"10524                    wft 150010525                    if insysmsg "What instrument shall you play?"10526                        if findtype "standing harp|sackbut|bamboo flute|tambourine|drum|lute|lap harp|gemshorn|hurdy gurdy|psaltery|shawm|vielle" as Instrument10527                            target Instrument10528                            wait 25010529                        else10530                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 210531                                overhead "[ NO INSTRUMENT! ]" 33710532                            endif10533                        endif10534                    elseif not insysmsg "This is not a musical instrument"10535                        clearsysmsg10536                        target NextClosestTarget10537                        wait 25010538                        if insysmsg "Target cannot be seen."10539                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 210540                                overhead "[ CANNOT BE SEEN... ]" 4410541                            endif10542                        elseif insysmsg "You must wait"10543                            clearsysmsg10544                            if EnableOverheadMessages = 110545                                overhead "[ WAITING... ]" 6910546                            endif10547                            wait 50010548                            @setvar! NeedtoProvoke 010549                            @setvar! NeedtoPacify 010550                            @setvar! NeedtoDiscord 110551                        elseif insysmsg "You play successfully, disrupting your opponent"10552                            if EnableOverheadMessages = 110553                                overhead "[ j DISCORDING... j ]" 6910554                            else10555                                overhead " j " 6910556                            endif10557 10558                            wait 25010559 10560                            settimer "Musicianship" 010561                            settimer "DiscordanceTimer" 010562                            settimer "Discordance" 010563 10564                            if not dead NextClosestTarget10565                                if EnableOverheadMessages = 1 or EnableOverheadMessages = 210566                                    overhead "[ j DISCORDED! j]" 69 NextClosestTarget10567                                else10568                                    overhead ' j ' 69 NextClosestTarget10569                                    settimer "NextTargetTimer" 010570                                endif10571                            endif10572 10573                            if EnableOverheadMessages = 110574                                sysmsg "You play another doozey and distract your provoked target, too!" 6910575                            endif10576                        elseif insysmsg "fail to discord"10577                            settimer "DiscordanceTimer" 550010578                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 210579                                overhead "[ DISCORD FAIL! ]" 3710580                            else10581                                overhead ' � ' 3710582                                settimer "NextTargetTimer" 010583                            endif10584                            sysmsg "You fail to discord your target!" 33710585                            wait 25010586                        else10587                            if not find NextClosestTarget ground -1 -1 TargetBardingRange or dead NextClosestTarget10588                                break10589                            endif10590                        endif10591                    else10592                        if not find NextClosestTarget ground -1 -1 TargetBardingRange or dead NextClosestTarget10593                            break10594                        endif10595                    endif10596                endif10597            endif10598        endif10599 10600        ///////////////////10601        //  END BARDING  //10602        ///////////////////10603 10604 10605        if EnableOverheadMessages = 110606            if insysmsg "something invisible out of"10607                overhead "� SOMEONE HIDING! �" 610608            endif10609 10610            if insysmsg "additional mastery chain link"10611                overhead "[ CHAIN LINK UNLOCKED!! ]" 14910612                wait 50010613                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown10614                    wait 50010615                    say "[Yell"10616                    settimer EmoteCooldownTimer 010617                    cooldown "Emote Cooldown" SetEmoteCooldown10618                endif10619            endif10620 10621            if insysmsg "enough experience to upgrade"10622                overhead "[ ASPECT TIER UNLOCKED!! ]" 223410623                wait 50010624                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown10625                    wait 50010626                    say "[Whistle"10627                    settimer EmoteCooldownTimer 010628                    cooldown "Emote Cooldown" SetEmoteCooldown10629                endif10630            endif10631 10632            if insysmsg "You have unlocked a codex upgrade point"10633                overhead "[ CODEX POINT UNLOCKED! ]" 211410634                wait 25010635                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown10636                    wait 50010637                    say "[HighFive"10638                    settimer EmoteCooldownTimer 010639                    cooldown "Emote Cooldown" SetEmoteCooldown10640                endif10641            endif10642 10643            if insysmsg "You have completed a society job"10644                overhead "[ SOCIETY COMPLETE! ]" 41910645                wait 50010646                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown10647                    wait 50010648                    say "[Yes"10649                    settimer EmoteCooldownTimer 010650                    cooldown "Emote Cooldown" SetEmoteCooldown10651                endif10652            endif10653 10654            if insysmsg "You execute your target"10655                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown10656                    wait 50010657                    say "[Awoo"10658                    settimer EmoteCooldownTimer 010659                    cooldown "Emote Cooldown" SetEmoteCooldown10660                else10661                    overhead "[ EXECUTION!! ]" 3710662                endif10663            endif10664 10665            if insysmsg "You shatter your target"10666                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown10667                    wait 50010668                    say "[Awoo"10669                    settimer EmoteCooldownTimer 010670                    cooldown "Emote Cooldown" SetEmoteCooldown10671                else10672                    overhead "[ SHATTERED!! ]" 33310673                endif10674            endif10675 10676            if insysmsg "You deliver a coup de grace"10677                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown10678                    wait 50010679                    say "[Bark"10680                    settimer EmoteCooldownTimer 010681                    cooldown "Emote Cooldown" SetEmoteCooldown10682                else10683                    overhead "[ COUP DE GRACE! ]" 18710684                endif10685            endif10686 10687            if insysmsg "en garde"10688                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown10689                    wait 50010690                    say "[Bark"10691                    settimer EmoteCooldownTimer 010692                    cooldown "Emote Cooldown" SetEmoteCooldown10693                else10694                    overhead "En garde!" 18710695                endif10696            endif10697 10698            if insysmsg "You pulverize your target" and not dead ClosestTarget10699                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown10700                    wait 50010701                    say "[Awoo"10702                    settimer EmoteCooldownTimer 010703                    cooldown "Emote Cooldown" SetEmoteCooldown10704                else10705                    overhead "*[ PULVERIZED! ]" 420 ClosestTarget10706                endif10707            endif10708 10709            if insysmsg "You smash" and not dead ClosestTarget10710                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown10711                    wait 50010712                    say "[Awoo"10713                    settimer EmoteCooldownTimer 010714                    cooldown "Emote Cooldown" SetEmoteCooldown10715                else10716                    overhead "[ SMASHED! ]" 187 ClosestTarget10717                endif10718            endif10719 10720            if insysmsg "Your attack cripples your target" and not dead ClosestTarget10721                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown10722                    wait 50010723                    say "[Awoo"10724                    settimer EmoteCooldownTimer 010725                    cooldown "Emote Cooldown" SetEmoteCooldown10726                else10727                    overhead "[ CRIPPLED! ]" 187 ClosestTarget10728                endif10729            endif10730 10731            if insysmsg "Society Job Progress"10732                overhead "[ � SOCIETY POINTS � ]" 41910733            endif10734 10735            if insysmsg "causes you to bleed"10736                overhead "[ YOU ARE BLEEDING... ]" 211810737            endif10738 10739            if insysmsg "been struck by an ancient blight"10740                overhead "[ DISEASED... ]" 110910741            endif10742 10743            if insysmsg "You feel chilled!"10744                overhead "[ YOU ARE CHILLED... ]" 223410745            endif10746 10747            if insysmsg "You resist a disease effect"10748                overhead "[ DISEASE RESISTED! ]" 88810749            endif10750 10751            if insysmsg "resist a bleed"10752                overhead "[ BLEED RESISTED! ]" 88810753            endif10754 10755            if insysmsg "The creature pierces and bypasses your armor!"10756                overhead "[ YOU ARE PIERCED... ]" 33710757            endif10758 10759            if insysmsg "You cause your target to bleed out" and not dead ClosestTarget10760                overhead "[ BLEED OUT! ]" 2118 ClosestTarget10761            endif10762 10763            if insysmsg "Your attack causes your target to bleed" and not dead ClosestTarget10764                overhead "[ BLEED! ]" 2118 ClosestTarget10765                @setvar! TargetisBleeding 110766            endif10767 10768            if insysmsg "Your shot hinders" and not dead ClosestTarget10769                overhead "[ HINDERED! ]" 149 ClosestTarget10770            endif10771 10772            if insysmsg "Your strike disarms your target!" and not dead ClosestTarget10773                overhead "[ DISARMED! ]" 2114 ClosestTarget10774            endif10775 10776            if insysmsg "Their attack disarms you!"10777                overhead "[ DISARMED! ]" 33710778            endif10779 10780            if insysmsg "Your attack hamstrings your target!" and not dead ClosestTarget10781                overhead "[ HAMSTRUNG! ]" 2117 ClosestTarget10782            endif10783 10784            if insysmsg "Their attack hamstrings you!"10785                overhead "[ HAMSTRUNG! ]" 33710786            endif10787 10788            if insysmsg "Your target overpowers" and not dead ClosestTarget10789                overhead "[ VICIOUS WOUND! ]" 1664 ClosestTarget10790            endif10791 10792            if insysmsg "Barding break avoided" and not dead ClosestTarget10793                overhead "[ BREAK AVOIDED! ]" 84 ClosestTarget10794            endif10795 10796            if insysmsg "You parry the spell"10797                overhead "[ SPELL PARRY ]" 11110798            endif10799 10800            if insysmsg "Frost Shell activated"10801                overhead "[ FROST SHELL! ]" 223410802            endif10803 10804            if insysmsg "Judgment activated"10805                overhead "[ JUDGMENT! ]" 211410806            endif10807 10808            if insysmsg "Cacophony activated"10809                overhead "[ j CACOPHONY! j ]" 224110810            endif10811 10812            if insysmsg "You perform a feint"10813                overhead "[ FEINT! ]" 18710814            endif10815 10816            if insysmsg "attempting to steal" or insysmsg "attempting to peek"10817                overhead "[ THIEF DETECTED! ]" 91010818            endif10819        else10820            if insysmsg "something invisible out of"10821                overhead "� SOMEONE HIDING! �" 610822            endif10823 10824            if insysmsg "additional mastery chain link"10825                overhead "[ � CHAIN! � ]" 14910826                wait 50010827                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 010828                    wait 50010829                    say "[Yell"10830                    settimer EmoteCooldownTimer 010831                    cooldown "Emote Cooldown" SetEmoteCooldown10832                endif10833            endif10834 10835            if insysmsg "enough experience to upgrade"10836                overhead "[ � ASPECT � ]" 223410837                wait 50010838                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 010839                    wait 50010840                    say "[Whistle"10841                    settimer EmoteCooldownTimer 010842                    cooldown "Emote Cooldown" SetEmoteCooldown10843                endif10844            endif10845 10846            if insysmsg "You have unlocked a codex upgrade point"10847                overhead '[ � CODEX! � ]' 211410848                wait 25010849                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 010850                    wait 50010851                    say "[HighFive"10852                    settimer EmoteCooldownTimer 010853                    cooldown "Emote Cooldown" SetEmoteCooldown10854                endif10855            endif10856 10857            if insysmsg "You have completed a society job"10858                overhead "[ SOCIETY COMPLETE! ]" 41910859                wait 50010860                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 010861                    wait 50010862                    say "[Yes"10863                    settimer EmoteCooldownTimer 010864                    cooldown "Emote Cooldown" SetEmoteCooldown10865                endif10866            endif10867 10868            if insysmsg "You deliver a coup de grace"10869                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 010870                    wait 50010871                    say "[Bark"10872                    settimer EmoteCooldownTimer 010873                    cooldown "Emote Cooldown" SetEmoteCooldown10874                else10875                    overhead "*coup de grace!*" 18710876                endif10877            endif10878 10879            if insysmsg "en garde"10880                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 010881                    wait 50010882                    say "[Bark"10883                    settimer EmoteCooldownTimer 010884                    cooldown "Emote Cooldown" SetEmoteCooldown10885                else10886                    overhead "En garde!" 18710887                endif10888            endif10889 10890            if insysmsg "You cause your target to bleed out" and not dead ClosestTarget10891                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 010892                    wait 50010893                    say "[Awoo"10894                    settimer EmoteCooldownTimer 010895                    cooldown "Emote Cooldown" SetEmoteCooldown10896                else10897                    overhead "*bleeding out!*" 2118 ClosestTarget10898                endif10899            endif10900 10901            if insysmsg "You execute your target" and not dead ClosestTarget10902                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 010903                    wait 50010904                    say "[Awoo"10905                    settimer EmoteCooldownTimer 010906                    cooldown "Emote Cooldown" SetEmoteCooldown10907                else10908                    overhead "*executed!*" 2118 ClosestTarget10909                endif10910            endif10911 10912            if insysmsg "You shatter your target" and not dead ClosestTarget10913                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 010914                    wait 50010915                    say "[Awoo"10916                    settimer EmoteCooldownTimer 010917                    cooldown "Emote Cooldown" SetEmoteCooldown10918                else10919                    overhead "*shattered!*" 420 ClosestTarget10920                endif10921            endif10922 10923            if insysmsg "You pulverize your target" and not dead ClosestTarget10924                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 010925                    wait 50010926                    say "[Awoo"10927                    settimer EmoteCooldownTimer 010928                    cooldown "Emote Cooldown" SetEmoteCooldown10929                else10930                    overhead "*pulverized!*" 420 ClosestTarget10931                endif10932            endif10933 10934            if insysmsg "You smash" and not dead ClosestTarget10935                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 010936                    wait 50010937                    say "[Awoo"10938                    settimer EmoteCooldownTimer 010939                    cooldown "Emote Cooldown" SetEmoteCooldown10940                else10941                    overhead "*smashed*" 333 ClosestTarget10942                endif10943            endif10944 10945            if insysmsg "Society Job Progress"10946                overhead "[ � SOCIETY � ]" 41910947            endif10948 10949            if insysmsg "attempting to steal" or insysmsg "attempting to peek"10950                overhead "[ THIEF DETECTED! ]" 91010951            endif10952 10953            if insysmsg "Cacophony activated"10954                overhead " j j j " 224110955            endif10956 10957            if insysmsg "You perform a feint"10958                overhead "*feint*" 18710959            endif10960 10961            if insysmsg "causes your target to bleed" and not dead ClosestTarget10962                overhead "*bleeding*" 2118 ClosestTarget10963                @setvar! TargetisBleeding 110964            endif10965 10966            if insysmsg "Your attack cripples your target" and not dead ClosestTarget10967                overhead "*crippled*" 333 ClosestTarget10968            endif10969 10970            if insysmsg "Your target overpowers" and not dead ClosestTarget10971                overhead "*vicious wound*" 1664 ClosestTarget10972            endif10973 10974            if insysmsg "Your shot hinders" and not dead ClosestTarget10975                overhead "*hindered*" 149 ClosestTarget10976            endif10977 10978            if insysmsg "Your strike disarms your target!" and not dead ClosestTarget10979                overhead "*disarmed*" 2114 ClosestTarget10980            endif10981 10982            if insysmsg "Their attack disarms you!"10983                overhead "*disarmed*" 33710984            endif10985 10986            if insysmsg "Your attack hamstrings your target!" and not dead ClosestTarget10987                overhead "*hamstrung*" 2117 ClosestTarget10988            endif10989 10990            if insysmsg "Their attack hamstrings you!"10991                overhead "*hamstrung*" 33710992            endif10993 10994            if insysmsg "You parry the spell"10995                overhead "*spell parry*" 11110996            endif10997        endif10998 10999 11000        /////////////////////11001        //  WEAPON CODEX:  //11002        /////////////////////11003 11004        if EnableWeaponCodexStances = 1 and SetWeaponCodexStance != 011005            if skill 'Swordsmanship' >= 80 and UsingSwords = 111006                if EnableWeaponCodexStances = 1 and findtype "sword codex" self as MyCodex11007                    if not gumpexists 2016719803 and EnableWeaponCodexHotbar = 111008                        while not gumpexists 106664755311009                            say "[CodexHotBar"11010                            wait 25011011                            if gumpexists 201671980311012                                break11013                            endif11014                        endwhile11015                    endif11016 11017                    if SetWeaponCodexStance = 611018                        if findbuff "Bleed" or findbuff "Diseased" or cooldown "Frost Shell Cooldown"11019                            if AutoWeaponStanceSetting = 1 or AutoWeaponStanceSetting = 2 or AutoWeaponStanceSetting = 311020                                @setvar! SwitchToFlayingStance 011021                                @setvar! SwitchToDefensiveStance 111022                                @setvar! SwitchToWarriorStance 011023                                @setvar! SwitchToCleaveStance 011024                                @setvar! SwitchToAggressiveStance 011025                            elseif AutoWeaponStanceSetting = 011026                                @setvar! SwitchToFlayingStance 011027                                @setvar! SwitchToDefensiveStance 011028                                @setvar! SwitchToWarriorStance 011029                                @setvar! SwitchToCleaveStance 011030                                @setvar! SwitchToAggressiveStance 011031                            endif11032                        elseif not warmode and TimeToGo != 1 and AutoRecallTime != 111033                            @setvar! WarModeToggledWhileFighting 111034                            if AutoWeaponStanceSetting = 111035                                @setvar! SwitchToFlayingStance 011036                                @setvar! SwitchToDefensiveStance 011037                                @setvar! SwitchToWarriorStance 011038                                @setvar! SwitchToCleaveStance 111039                                @setvar! SwitchToAggressiveStance 011040                            elseif AutoWeaponStanceSetting = 211041                                @setvar! SwitchToFlayingStance 011042                                @setvar! SwitchToDefensiveStance 011043                                @setvar! SwitchToWarriorStance 011044                                @setvar! SwitchToCleaveStance 011045                                @setvar! SwitchToAggressiveStance 111046                            elseif AutoWeaponStanceSetting = 311047                                @setvar! SwitchToFlayingStance 111048                                @setvar! SwitchToDefensiveStance 011049                                @setvar! SwitchToWarriorStance 011050                                @setvar! SwitchToCleaveStance 011051                                @setvar! SwitchToAggressiveStance 011052                            elseif AutoWeaponStanceSetting = 011053                                @setvar! SwitchToFlayingStance 011054                                @setvar! SwitchToDefensiveStance 011055                                @setvar! SwitchToWarriorStance 011056                                @setvar! SwitchToCleaveStance 011057                                @setvar! SwitchToAggressiveStance 011058                            endif11059                        elseif warmode11060                            if AutoWeaponStanceSetting = 111061                                @setvar! SwitchToFlayingStance 111062                                @setvar! SwitchToDefensiveStance 011063                                @setvar! SwitchToWarriorStance 011064                                @setvar! SwitchToCleaveStance 011065                                @setvar! SwitchToAggressiveStance 011066                            elseif AutoWeaponStanceSetting = 211067                                @setvar! SwitchToFlayingStance 011068                                @setvar! SwitchToDefensiveStance 011069                                @setvar! SwitchToWarriorStance 111070                                @setvar! SwitchToCleaveStance 011071                                @setvar! SwitchToAggressiveStance 011072                            elseif AutoWeaponStanceSetting = 311073                                @setvar! SwitchToFlayingStance 011074                                @setvar! SwitchToDefensiveStance 011075                                @setvar! SwitchToWarriorStance 011076                                @setvar! SwitchToCleaveStance 011077                                @setvar! SwitchToAggressiveStance 111078                            elseif AutoWeaponStanceSetting = 011079                                @setvar! SwitchToFlayingStance 011080                                @setvar! SwitchToDefensiveStance 011081                                @setvar! SwitchToWarriorStance 011082                                @setvar! SwitchToCleaveStance 011083                                @setvar! SwitchToAggressiveStance 011084                            endif11085                        endif11086                    elseif SetWeaponCodexStance = 511087                        @setvar! SwitchToFlayingStance 111088                        @setvar! SwitchToDefensiveStance 011089                        @setvar! SwitchToWarriorStance 011090                        @setvar! SwitchToCleaveStance 011091                        @setvar! SwitchToAggressiveStance 011092                    elseif SetWeaponCodexStance = 411093                        @setvar! SwitchToFlayingStance 011094                        @setvar! SwitchToDefensiveStance 011095                        @setvar! SwitchToWarriorStance 111096                        @setvar! SwitchToCleaveStance 011097                        @setvar! SwitchToAggressiveStance 011098                    elseif SetWeaponCodexStance = 311099                        @setvar! SwitchToFlayingStance 011100                        @setvar! SwitchToDefensiveStance 011101                        @setvar! SwitchToWarriorStance 011102                        @setvar! SwitchToCleaveStance 111103                        @setvar! SwitchToAggressiveStance 011104                    elseif SetWeaponCodexStance = 211105                        @setvar! SwitchToFlayingStance 011106                        @setvar! SwitchToDefensiveStance 111107                        @setvar! SwitchToWarriorStance 011108                        @setvar! SwitchToCleaveStance 011109                        @setvar! SwitchToAggressiveStance 011110                    elseif SetWeaponCodexStance = 111111                        @setvar! SwitchToFlayingStance 011112                        @setvar! SwitchToDefensiveStance 011113                        @setvar! SwitchToWarriorStance 011114                        @setvar! SwitchToCleaveStance 011115                        @setvar! SwitchToAggressiveStance 111116                    endif11117 11118                    getlabel MyCodex MyCodexDesc11119 11120                    if EnableWeaponCodexFinishers = 111121                        if SetWeaponCodexFinisher = 111122                            if "Bleed" in MyCodexDesc11123                                // Do nothing11124                            elseif DisableWeaponFinisher != 111125                                say '[SwordsFinisher1'11126                                @setvar! DisableWeaponFinisher 011127                                wait 25011128                                if insysmsg "You must first reach rank 5"11129                                    @setvar! DisableWeaponFinisher 111130                                endif11131                            endif11132                        elseif SetWeaponCodexFinisher = 211133                            if "Execute" in MyCodexDesc11134                                // Do nothing11135                            elseif DisableWeaponFinisher != 111136                                say '[SwordsFinisher2'11137                                @setvar! DisableWeaponFinisher 011138                                wait 25011139                                if insysmsg "You must first reach rank 5"11140                                    @setvar! DisableWeaponFinisher 111141                                endif11142                            endif11143                        elseif SetWeaponCodexFinisher = 311144                            if warmode11145                                if "Bleed" in MyCodexDesc11146                                    // Do nothing11147                                elseif DisableWeaponFinisher != 111148                                    say '[SwordsFinisher1'11149                                    @setvar! DisableWeaponFinisher 011150                                    wait 25011151                                    if insysmsg "You must first reach rank 5"11152                                        @setvar! DisableWeaponFinisher 111153                                    endif11154                                endif11155                            else11156                                if "Execute" in MyCodexDesc11157                                    // Do nothing11158                                elseif DisableWeaponFinisher != 111159                                    say '[SwordsFinisher2'11160                                    @setvar! DisableWeaponFinisher 011161                                    wait 25011162                                    if insysmsg "You must first reach rank 5"11163                                        @setvar! DisableWeaponFinisher 111164                                    endif11165                                endif11166                            endif11167                        elseif SetWeaponCodexFinisher = 411168                            if warmode11169                                if "Execute" in MyCodexDesc11170                                    // Do nothing11171                                elseif DisableWeaponFinisher != 111172                                    say '[SwordsFinisher2'11173                                    @setvar! DisableWeaponFinisher 011174                                    wait 25011175                                    if insysmsg "You must first reach rank 5"11176                                        @setvar! DisableWeaponFinisher 111177                                    endif11178                                endif11179                            else11180                                if "Bleed" in MyCodexDesc11181                                    // Do nothing11182                                elseif DisableWeaponFinisher != 111183                                    say '[SwordsFinisher1'11184                                    @setvar! DisableWeaponFinisher 011185                                    wait 25011186                                    if insysmsg "You must first reach rank 5"11187                                        @setvar! DisableWeaponFinisher 111188                                    endif11189                                endif11190                            endif11191                        endif11192                    endif11193 11194                    if SwitchToFlayingStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11195                        if "Flaying" in MyCodexDesc11196                            // Do nothing11197                        else11198                            yell '[SwordsStance5'11199                            settimer "WeaponCodexTimer" 011200                            wait 25011201                        endif11202                    elseif SwitchToDefensiveStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11203                        if "Defensive" in MyCodexDesc11204                            // Do nothing11205                        else11206                            yell '[SwordsStance2'11207                            settimer "WeaponCodexTimer" 011208                            wait 25011209                        endif11210                    elseif SwitchToWarriorStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11211                        if "Warrior" in MyCodexDesc11212                            // Do nothing11213                        else11214                            yell '[SwordsStance4'11215                            settimer "WeaponCodexTimer" 011216                            wait 25011217                        endif11218                    elseif SwitchToCleaveStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11219                        if "Cleave" in MyCodexDesc11220                            // Do nothing11221                        else11222                            yell '[SwordsStance3'11223                            settimer "WeaponCodexTimer" 011224                            wait 25011225                        endif11226                    elseif SwitchToAggressiveStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11227                        if "Aggressive" in MyCodexDesc11228                            // Do nothing11229                        else11230                            yell '[SwordsStance1'11231                            settimer "WeaponCodexTimer" 011232                            wait 25011233                        endif11234                    endif11235                endif11236            elseif skill 'Mace Fighting' >= 80 and UsingMacing = 111237                if EnableWeaponCodexStances = 1 and findtype "macing codex" self as MyCodex11238                    if not gumpexists 2016719803 and EnableWeaponCodexHotbar = 111239                        while not gumpexists 106664755311240                            say "[CodexHotBar"11241                            wait 25011242                            if gumpexists 201671980311243                                break11244                            endif11245                        endwhile11246                    endif11247 11248                    if SetWeaponCodexStance = 611249                        if findbuff "Bleed" or findbuff "Diseased" or cooldown "Frost Shell Cooldown"11250                            if AutoWeaponStanceSetting = 1 or AutoWeaponStanceSetting = 2 or AutoWeaponStanceSetting = 311251                                @setvar! SwitchToSunderStance 011252                                @setvar! SwitchToWildSwingStance 011253                                @setvar! SwitchToCleaveStance 011254                                @setvar! SwitchToDefensiveStance 111255                                @setvar! SwitchToAggressiveStance 011256                            elseif AutoWeaponStanceSetting = 011257                                @setvar! SwitchToSunderStance 011258                                @setvar! SwitchToWildSwingStance 011259                                @setvar! SwitchToCleaveStance 011260                                @setvar! SwitchToDefensiveStance 011261                                @setvar! SwitchToAggressiveStance 011262                            endif11263                        elseif not warmode and TimeToGo != 1 and AutoRecallTime != 111264                            @setvar! WarModeToggledWhileFighting 111265                            if AutoWeaponStanceSetting = 111266                                @setvar! SwitchToSunderStance 011267                                @setvar! SwitchToWildSwingStance 011268                                @setvar! SwitchToCleaveStance 111269                                @setvar! SwitchToDefensiveStance 011270                                @setvar! SwitchToAggressiveStance 011271                            elseif AutoWeaponStanceSetting = 211272                                @setvar! SwitchToSunderStance 011273                                @setvar! SwitchToWildSwingStance 011274                                @setvar! SwitchToCleaveStance 011275                                @setvar! SwitchToDefensiveStance 011276                                @setvar! SwitchToAggressiveStance 111277                            elseif AutoWeaponStanceSetting = 311278                                @setvar! SwitchToSunderStance 011279                                @setvar! SwitchToWildSwingStance 111280                                @setvar! SwitchToCleaveStance 011281                                @setvar! SwitchToDefensiveStance 011282                                @setvar! SwitchToAggressiveStance 011283                            elseif AutoWeaponStanceSetting = 011284                                @setvar! SwitchToSunderStance 011285                                @setvar! SwitchToWildSwingStance 011286                                @setvar! SwitchToCleaveStance 011287                                @setvar! SwitchToDefensiveStance 011288                                @setvar! SwitchToAggressiveStance 011289                            endif11290                        elseif warmode11291                            if AutoWeaponStanceSetting = 111292                                @setvar! SwitchToSunderStance 011293                                @setvar! SwitchToWildSwingStance 111294                                @setvar! SwitchToCleaveStance 011295                                @setvar! SwitchToDefensiveStance 011296                                @setvar! SwitchToAggressiveStance 011297                            elseif AutoWeaponStanceSetting = 211298                                @setvar! SwitchToSunderStance 111299                                @setvar! SwitchToWildSwingStance 011300                                @setvar! SwitchToCleaveStance 011301                                @setvar! SwitchToDefensiveStance 011302                                @setvar! SwitchToAggressiveStance 011303                            elseif AutoWeaponStanceSetting = 311304                                @setvar! SwitchToSunderStance 011305                                @setvar! SwitchToWildSwingStance 011306                                @setvar! SwitchToCleaveStance 011307                                @setvar! SwitchToDefensiveStance 011308                                @setvar! SwitchToAggressiveStance 111309                            elseif AutoWeaponStanceSetting = 011310                                @setvar! SwitchToSunderStance 011311                                @setvar! SwitchToWildSwingStance 011312                                @setvar! SwitchToCleaveStance 011313                                @setvar! SwitchToDefensiveStance 011314                                @setvar! SwitchToAggressiveStance 011315                            endif11316                        endif11317                    elseif SetWeaponCodexStance = 511318                        @setvar! SwitchToSunderStance 111319                        @setvar! SwitchToWildSwingStance 011320                        @setvar! SwitchToCleaveStance 011321                        @setvar! SwitchToDefensiveStance 011322                        @setvar! SwitchToAggressiveStance 011323                    elseif SetWeaponCodexStance = 411324                        @setvar! SwitchToSunderStance 011325                        @setvar! SwitchToWildSwingStance 111326                        @setvar! SwitchToCleaveStance 011327                        @setvar! SwitchToDefensiveStance 011328                        @setvar! SwitchToAggressiveStance 011329                    elseif SetWeaponCodexStance = 311330                        @setvar! SwitchToSunderStance 011331                        @setvar! SwitchToWildSwingStance 011332                        @setvar! SwitchToCleaveStance 111333                        @setvar! SwitchToDefensiveStance 011334                        @setvar! SwitchToAggressiveStance 011335                    elseif SetWeaponCodexStance = 211336                        @setvar! SwitchToSunderStance 011337                        @setvar! SwitchToWildSwingStance 011338                        @setvar! SwitchToCleaveStance 011339                        @setvar! SwitchToDefensiveStance 111340                        @setvar! SwitchToAggressiveStance 011341                    elseif SetWeaponCodexStance = 111342                        @setvar! SwitchToSunderStance 011343                        @setvar! SwitchToWildSwingStance 011344                        @setvar! SwitchToCleaveStance 011345                        @setvar! SwitchToDefensiveStance 011346                        @setvar! SwitchToAggressiveStance 111347                    endif11348 11349                    getlabel MyCodex MyCodexDesc11350 11351                    if EnableWeaponCodexFinishers = 111352                        if SetWeaponCodexFinisher = 111353                            if "Pulverize" in MyCodexDesc11354                                // Do nothing11355                            elseif DisableWeaponFinisher != 111356                                say '[MacingFinisher1'11357                                @setvar! DisableWeaponFinisher 011358                                wait 25011359                                if insysmsg "You must first reach rank 5"11360                                    @setvar! DisableWeaponFinisher 111361                                endif11362                            endif11363                        elseif SetWeaponCodexFinisher = 211364                            if "Shatter" in MyCodexDesc11365                                // Do nothing11366                            elseif DisableWeaponFinisher != 111367                                yell '[MacingFinisher2'11368                                @setvar! DisableWeaponFinisher 011369                                wait 25011370                                if insysmsg "You must first reach rank 5"11371                                    @setvar! DisableWeaponFinisher 111372                                endif11373                            endif11374                        elseif SetWeaponCodexFinisher = 311375                            if warmode11376                                if "Pulverize" in MyCodexDesc11377                                    // Do nothing11378                                elseif DisableWeaponFinisher != 111379                                    say '[MacingFinisher1'11380                                    @setvar! DisableWeaponFinisher 011381                                    wait 25011382                                    if insysmsg "You must first reach rank 5"11383                                        @setvar! DisableWeaponFinisher 111384                                    endif11385                                endif11386                            else11387                                if "Shatter" in MyCodexDesc11388                                    // Do nothing11389                                elseif DisableWeaponFinisher != 111390                                    yell '[MacingFinisher2'11391                                    @setvar! DisableWeaponFinisher 011392                                    wait 25011393                                    if insysmsg "You must first reach rank 5"11394                                        @setvar! DisableWeaponFinisher 111395                                    endif11396                                endif11397                            endif11398                        elseif SetWeaponCodexFinisher = 411399                            if warmode11400                                if "Shatter" in MyCodexDesc11401                                    // Do nothing11402                                elseif DisableWeaponFinisher != 111403                                    yell '[MacingFinisher2'11404                                    @setvar! DisableWeaponFinisher 011405                                    wait 25011406                                    if insysmsg "You must first reach rank 5"11407                                        @setvar! DisableWeaponFinisher 111408                                    endif11409                                endif11410                            else11411                                if "Pulverize" in MyCodexDesc11412                                    // Do nothing11413                                elseif DisableWeaponFinisher != 111414                                    say '[MacingFinisher1'11415                                    @setvar! DisableWeaponFinisher 011416                                    wait 25011417                                    if insysmsg "You must first reach rank 5"11418                                        @setvar! DisableWeaponFinisher 111419                                    endif11420                                endif11421                            endif11422                        endif11423                    endif11424 11425                    if SwitchToAggressiveStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11426                        if "Aggressive" in MyCodexDesc11427                            // Do nothing11428                        else11429                            yell '[MacingStance1'11430                            settimer "WeaponCodexTimer" 011431                            wait 25011432                        endif11433                    elseif SwitchToDefensiveStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11434                        if "Defensive" in MyCodexDesc11435                            // Do nothing11436                        else11437                            yell '[MacingStance2'11438                            settimer "WeaponCodexTimer" 011439                            wait 25011440                        endif11441                    elseif SwitchToCleaveStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11442                        if "Cleave" in MyCodexDesc11443                            // Do nothing11444                        else11445                            yell '[MacingStance3'11446                            settimer "WeaponCodexTimer" 011447                            wait 25011448                        endif11449                    elseif SwitchToWildSwingStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11450                        if "Wild Swing" in MyCodexDesc11451                            // Do nothing11452                        else11453                            yell '[MacingStance4'11454                            settimer "WeaponCodexTimer" 011455                            wait 25011456                        endif11457                    elseif SwitchToSunderStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11458                        if "Sunder" in MyCodexDesc11459                            // Do nothing11460                        else11461                            yell '[MacingStance5'11462                            settimer "WeaponCodexTimer" 011463                            wait 25011464                        endif11465                    endif11466                endif11467            elseif skill 'Fencing' >= 80 and UsingFencing = 111468                if EnableWeaponCodexStances = 1 and findtype "fencing codex" self as MyCodex11469                    if not gumpexists 2016719803 and EnableWeaponCodexHotbar = 111470                        while not gumpexists 106664755311471                            say "[CodexHotBar"11472                            wait 25011473                            if gumpexists 201671980311474                                break11475                            endif11476                        endwhile11477                    endif11478 11479                    if SetWeaponCodexStance = 611480                        if findbuff "Bleed" or findbuff "Diseased" or cooldown "Frost Shell Cooldown"11481                            if AutoWeaponStanceSetting = 1 or AutoWeaponStanceSetting = 2 or AutoWeaponStanceSetting = 311482                                @setvar! SwitchToAggressiveStance 011483                                @setvar! SwitchToDefensiveStance 111484                                @setvar! SwitchToCleaveStance 011485                                @setvar! SwitchToBlackguardStance 011486                                @setvar! SwitchToFangStance 011487                            elseif AutoWeaponStanceSetting = 011488                                @setvar! SwitchToAggressiveStance 011489                                @setvar! SwitchToDefensiveStance 011490                                @setvar! SwitchToCleaveStance 011491                                @setvar! SwitchToBlackguardStance 011492                                @setvar! SwitchToFangStance 011493                            endif11494                        elseif not warmode and TimeToGo != 1 and AutoRecallTime != 111495                            @setvar! WarModeToggledWhileFighting 111496                            if AutoWeaponStanceSetting = 111497                                @setvar! SwitchToAggressiveStance 011498                                @setvar! SwitchToDefensiveStance 011499                                @setvar! SwitchToCleaveStance 111500                                @setvar! SwitchToBlackguardStance 011501                                @setvar! SwitchToFangStance 011502                            elseif AutoWeaponStanceSetting = 211503                                @setvar! SwitchToAggressiveStance 111504                                @setvar! SwitchToDefensiveStance 011505                                @setvar! SwitchToCleaveStance 011506                                @setvar! SwitchToBlackguardStance 011507                                @setvar! SwitchToFangStance 011508                            elseif AutoWeaponStanceSetting = 311509                                @setvar! SwitchToAggressiveStance 011510                                @setvar! SwitchToDefensiveStance 011511                                @setvar! SwitchToCleaveStance 011512                                @setvar! SwitchToBlackguardStance 111513                                @setvar! SwitchToFangStance 011514                            elseif AutoWeaponStanceSetting = 011515                                @setvar! SwitchToAggressiveStance 011516                                @setvar! SwitchToDefensiveStance 011517                                @setvar! SwitchToCleaveStance 011518                                @setvar! SwitchToBlackguardStance 011519                                @setvar! SwitchToFangStance 011520                            endif11521                        elseif warmode11522                            if AutoWeaponStanceSetting = 111523                                @setvar! SwitchToAggressiveStance 011524                                @setvar! SwitchToDefensiveStance 011525                                @setvar! SwitchToCleaveStance 011526                                @setvar! SwitchToBlackguardStance 111527                                @setvar! SwitchToFangStance 011528                            elseif AutoWeaponStanceSetting = 211529                                @setvar! SwitchToAggressiveStance 011530                                @setvar! SwitchToDefensiveStance 011531                                @setvar! SwitchToCleaveStance 011532                                @setvar! SwitchToBlackguardStance 011533                                @setvar! SwitchToFangStance 111534                            elseif AutoWeaponStanceSetting = 311535                                @setvar! SwitchToAggressiveStance 111536                                @setvar! SwitchToDefensiveStance 011537                                @setvar! SwitchToCleaveStance 011538                                @setvar! SwitchToBlackguardStance 011539                                @setvar! SwitchToFangStance 011540                            elseif AutoWeaponStanceSetting = 011541                                @setvar! SwitchToAggressiveStance 011542                                @setvar! SwitchToDefensiveStance 011543                                @setvar! SwitchToCleaveStance 011544                                @setvar! SwitchToBlackguardStance 011545                                @setvar! SwitchToFangStance 011546                            endif11547                        endif11548                    elseif SetWeaponCodexStance = 511549                        @setvar! SwitchToAggressiveStance 011550                        @setvar! SwitchToDefensiveStance 011551                        @setvar! SwitchToCleaveStance 011552                        @setvar! SwitchToBlackguardStance 011553                        @setvar! SwitchToFangStance 111554                    elseif SetWeaponCodexStance = 411555                        @setvar! SwitchToAggressiveStance 011556                        @setvar! SwitchToDefensiveStance 011557                        @setvar! SwitchToCleaveStance 011558                        @setvar! SwitchToBlackguardStance 111559                        @setvar! SwitchToFangStance 011560                    elseif SetWeaponCodexStance = 311561                        @setvar! SwitchToAggressiveStance 011562                        @setvar! SwitchToDefensiveStance 011563                        @setvar! SwitchToCleaveStance 111564                        @setvar! SwitchToBlackguardStance 011565                        @setvar! SwitchToFangStance 011566                    elseif SetWeaponCodexStance = 211567                        @setvar! SwitchToAggressiveStance 011568                        @setvar! SwitchToDefensiveStance 111569                        @setvar! SwitchToCleaveStance 011570                        @setvar! SwitchToBlackguardStance 011571                        @setvar! SwitchToFangStance 011572                    elseif SetWeaponCodexStance = 111573                        @setvar! SwitchToAggressiveStance 111574                        @setvar! SwitchToDefensiveStance 011575                        @setvar! SwitchToCleaveStance 011576                        @setvar! SwitchToBlackguardStance 011577                        @setvar! SwitchToFangStance 011578                    endif11579 11580                    getlabel MyCodex MyCodexDesc11581 11582                    if EnableWeaponCodexFinishers = 111583                        if SetWeaponCodexFinisher = 111584                            if "Assassinate" in MyCodexDesc11585                                // Do nothing11586                            elseif DisableWeaponFinisher != 111587                                say '[FencingFinisher1'11588                                @setvar! DisableWeaponFinisher 011589                                wait 25011590                                if insysmsg "You must first reach rank 5"11591                                    @setvar! DisableWeaponFinisher 111592                                endif11593                            endif11594                        elseif SetWeaponCodexFinisher = 211595                            if "Flurry" in MyCodexDesc11596                                // Do nothing11597                            elseif DisableWeaponFinisher != 111598                                say '[FencingFinisher2'11599                                @setvar! DisableWeaponFinisher 011600                                wait 25011601                                if insysmsg "You must first reach rank 5"11602                                    @setvar! DisableWeaponFinisher 111603                                endif11604                            endif11605                        elseif SetWeaponCodexFinisher = 311606                            if warmode11607                                if "Assassinate" in MyCodexDesc11608                                    // Do nothing11609                                elseif DisableWeaponFinisher != 111610                                    say '[FencingFinisher1'11611                                    @setvar! DisableWeaponFinisher 011612                                    wait 25011613                                    if insysmsg "You must first reach rank 5"11614                                        @setvar! DisableWeaponFinisher 111615                                    endif11616                                endif11617                            else11618                                if "Flurry" in MyCodexDesc11619                                    // Do nothing11620                                elseif DisableWeaponFinisher != 111621                                    say '[FencingFinisher2'11622                                    @setvar! DisableWeaponFinisher 011623                                    wait 25011624                                    if insysmsg "You must first reach rank 5"11625                                        @setvar! DisableWeaponFinisher 111626                                    endif11627                                endif11628                            endif11629                        elseif SetWeaponCodexFinisher = 411630                            if warmode11631                                if "Flurry" in MyCodexDesc11632                                    // Do nothing11633                                elseif DisableWeaponFinisher != 111634                                    say '[FencingFinisher2'11635                                    @setvar! DisableWeaponFinisher 011636                                    wait 25011637                                    if insysmsg "You must first reach rank 5"11638                                        @setvar! DisableWeaponFinisher 111639                                    endif11640                                endif11641                            else11642                                if "Assassinate" in MyCodexDesc11643                                    // Do nothing11644                                elseif DisableWeaponFinisher != 111645                                    say '[FencingFinisher1'11646                                    @setvar! DisableWeaponFinisher 011647                                    wait 25011648                                    if insysmsg "You must first reach rank 5"11649                                        @setvar! DisableWeaponFinisher 111650                                    endif11651                                endif11652                            endif11653                        endif11654                    endif11655 11656                    if SwitchToAggressiveStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11657                        if "Aggressive" in MyCodexDesc11658                            // Do nothing11659                        else11660                            yell '[FencingStance1'11661                            settimer "WeaponCodexTimer" 011662                            wait 25011663                        endif11664                    elseif SwitchToDefensiveStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11665                        if "Defensive" in MyCodexDesc11666                            // Do nothing11667                        else11668                            yell '[FencingStance2'11669                            settimer "WeaponCodexTimer" 011670                            wait 25011671                        endif11672                    elseif SwitchToCleaveStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11673                        if "Cleave" in MyCodexDesc11674                            // Do nothing11675                        else11676                            yell '[FencingStance3'11677                            settimer "WeaponCodexTimer" 011678                            wait 25011679                        endif11680                    elseif SwitchToBlackguardStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11681                        if "Blackguard" in MyCodexDesc11682                            // Do nothing11683                        else11684                            yell '[FencingStance4'11685                            settimer "WeaponCodexTimer" 011686                            wait 25011687                        endif11688                    elseif SwitchToFangStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11689                        if "Fang" in MyCodexDesc11690                            // Do nothing11691                        else11692                            yell '[FencingStance5'11693                            settimer "WeaponCodexTimer" 011694                            wait 25011695                        endif11696                    endif11697                endif11698            elseif skill 'Archery' >= 80 and UsingArchery = 111699                if EnableWeaponCodexStances = 1 and findtype "archery codex" self as MyCodex11700                    if not gumpexists 2016719803 and EnableWeaponCodexHotbar = 111701                        while not gumpexists 106664755311702                            say "[CodexHotBar"11703                            wait 25011704                            if gumpexists 201671980311705                                break11706                            endif11707                        endwhile11708                    endif11709 11710                    if SetWeaponCodexStance = 611711                        if SwitchtoIncendiaryAmmo = 111712                            if AutoWeaponStanceSetting = 1 or AutoWeaponStanceSetting = 2 or AutoWeaponStanceSetting = 311713                                @setvar! SwitchToArcaneStance 011714                                @setvar! SwitchToFowlingStance 011715                                @setvar! SwitchToIncendiaryStance 111716                                @setvar! SwitchToLongshotStance 011717                                @setvar! SwitchToMaimingStance 011718                            elseif AutoWeaponStanceSetting = 011719                                @setvar! SwitchToArcaneStance 011720                                @setvar! SwitchToFowlingStance 011721                                @setvar! SwitchToIncendiaryStance 111722                                @setvar! SwitchToLongshotStance 011723                                @setvar! SwitchToMaimingStance 011724                            endif11725                        elseif findbuff "Bleed" or findbuff "Diseased" or cooldown "Frost Shell Cooldown"11726                            if AutoWeaponStanceSetting = 1 or AutoWeaponStanceSetting = 2 or AutoWeaponStanceSetting = 311727                                @setvar! SwitchToArcaneStance 011728                                @setvar! SwitchToFowlingStance 111729                                @setvar! SwitchToIncendiaryStance 011730                                @setvar! SwitchToLongshotStance 011731                                @setvar! SwitchToMaimingStance 011732                            elseif AutoWeaponStanceSetting = 011733                                @setvar! SwitchToArcaneStance 011734                                @setvar! SwitchToFowlingStance 011735                                @setvar! SwitchToIncendiaryStance 011736                                @setvar! SwitchToLongshotStance 011737                                @setvar! SwitchToMaimingStance 011738                            endif11739                        elseif not warmode and TimeToGo != 1 and AutoRecallTime != 111740                            @setvar! WarModeToggledWhileFighting 111741                            if AutoWeaponStanceSetting = 111742                                @setvar! SwitchToArcaneStance 011743                                @setvar! SwitchToFowlingStance 011744                                @setvar! SwitchToIncendiaryStance 111745                                @setvar! SwitchToLongshotStance 011746                                @setvar! SwitchToMaimingStance 011747                            elseif AutoWeaponStanceSetting = 211748                                @setvar! SwitchToArcaneStance 011749                                @setvar! SwitchToFowlingStance 011750                                @setvar! SwitchToIncendiaryStance 011751                                @setvar! SwitchToLongshotStance 011752                                @setvar! SwitchToMaimingStance 111753                            elseif AutoWeaponStanceSetting = 311754                                @setvar! SwitchToArcaneStance 111755                                @setvar! SwitchToFowlingStance 011756                                @setvar! SwitchToIncendiaryStance 011757                                @setvar! SwitchToLongshotStance 011758                                @setvar! SwitchToMaimingStance 011759                            elseif AutoWeaponStanceSetting = 011760                                @setvar! SwitchToArcaneStance 011761                                @setvar! SwitchToFowlingStance 011762                                @setvar! SwitchToIncendiaryStance 011763                                @setvar! SwitchToLongshotStance 011764                                @setvar! SwitchToMaimingStance 011765                            endif11766                        elseif warmode11767                            if AutoWeaponStanceSetting = 111768                                @setvar! SwitchToArcaneStance 111769                                @setvar! SwitchToFowlingStance 011770                                @setvar! SwitchToIncendiaryStance 011771                                @setvar! SwitchToLongshotStance 011772                                @setvar! SwitchToMaimingStance 011773                            elseif AutoWeaponStanceSetting = 211774                                @setvar! SwitchToArcaneStance 011775                                @setvar! SwitchToFowlingStance 011776                                @setvar! SwitchToIncendiaryStance 011777                                @setvar! SwitchToLongshotStance 111778                                @setvar! SwitchToMaimingStance 011779                            elseif AutoWeaponStanceSetting = 311780                                @setvar! SwitchToArcaneStance 011781                                @setvar! SwitchToFowlingStance 011782                                @setvar! SwitchToIncendiaryStance 011783                                @setvar! SwitchToLongshotStance 011784                                @setvar! SwitchToMaimingStance 111785                            elseif AutoWeaponStanceSetting = 011786                                @setvar! SwitchToArcaneStance 011787                                @setvar! SwitchToFowlingStance 011788                                @setvar! SwitchToIncendiaryStance 011789                                @setvar! SwitchToLongshotStance 011790                                @setvar! SwitchToMaimingStance 011791                            endif11792                        endif11793                    elseif SetWeaponCodexStance = 511794                        @setvar! SwitchToArcaneStance 011795                        @setvar! SwitchToFowlingStance 011796                        @setvar! SwitchToIncendiaryStance 011797                        @setvar! SwitchToLongshotStance 011798                        @setvar! SwitchToMaimingStance 111799                    elseif SetWeaponCodexStance = 411800                        @setvar! SwitchToArcaneStance 011801                        @setvar! SwitchToFowlingStance 011802                        @setvar! SwitchToIncendiaryStance 011803                        @setvar! SwitchToLongshotStance 111804                        @setvar! SwitchToMaimingStance 011805                    elseif SetWeaponCodexStance = 311806                        @setvar! SwitchToArcaneStance 011807                        @setvar! SwitchToFowlingStance 011808                        @setvar! SwitchToIncendiaryStance 111809                        @setvar! SwitchToLongshotStance 011810                        @setvar! SwitchToMaimingStance 011811                    elseif SetWeaponCodexStance = 211812                        @setvar! SwitchToArcaneStance 011813                        @setvar! SwitchToFowlingStance 111814                        @setvar! SwitchToIncendiaryStance 011815                        @setvar! SwitchToLongshotStance 011816                        @setvar! SwitchToMaimingStance 011817                    elseif SetWeaponCodexStance = 111818                        @setvar! SwitchToArcaneStance 111819                        @setvar! SwitchToFowlingStance 011820                        @setvar! SwitchToIncendiaryStance 011821                        @setvar! SwitchToLongshotStance 011822                        @setvar! SwitchToMaimingStance 011823                    endif11824 11825                    getlabel MyCodex MyCodexDesc11826 11827                    if EnableWeaponCodexFinishers = 111828                        if SetWeaponCodexFinisher = 111829                            if "Ricochet" in MyCodexDesc11830                                // Do nothing11831                            elseif DisableWeaponFinisher != 111832                                say '[ArcheryFinisher1'11833                                @setvar! DisableWeaponFinisher 011834                                wait 25011835                                if insysmsg "You must first reach rank 5"11836                                    @setvar! DisableWeaponFinisher 111837                                endif11838                            endif11839                        elseif SetWeaponCodexFinisher = 211840                            if "Pincushion" in MyCodexDesc11841                                // Do nothing11842                            elseif DisableWeaponFinisher != 111843                                say '[ArcheryFinisher2'11844                                @setvar! DisableWeaponFinisher 011845                                wait 25011846                                if insysmsg "You must first reach rank 5"11847                                    @setvar! DisableWeaponFinisher 111848                                endif11849                            endif11850                        elseif SetWeaponCodexFinisher = 311851                            if warmode11852                                if "Ricochet" in MyCodexDesc11853                                    // Do nothing11854                                elseif DisableWeaponFinisher != 111855                                    say '[ArcheryFinisher1'11856                                    @setvar! DisableWeaponFinisher 011857                                    wait 25011858                                    if insysmsg "You must first reach rank 5"11859                                        @setvar! DisableWeaponFinisher 111860                                    endif11861                                endif11862                            else11863                                if "Pincushion" in MyCodexDesc11864                                    // Do nothing11865                                elseif DisableWeaponFinisher != 111866                                    say '[ArcheryFinisher2'11867                                    @setvar! DisableWeaponFinisher 011868                                    wait 25011869                                    if insysmsg "You must first reach rank 5"11870                                        @setvar! DisableWeaponFinisher 111871                                    endif11872                                endif11873                            endif11874                        elseif SetWeaponCodexFinisher = 411875                            if warmode11876                                if "Pincushion" in MyCodexDesc11877                                    // Do nothing11878                                elseif DisableWeaponFinisher != 111879                                    say '[ArcheryFinisher2'11880                                    @setvar! DisableWeaponFinisher 011881                                    wait 25011882                                    if insysmsg "You must first reach rank 5"11883                                        @setvar! DisableWeaponFinisher 111884                                    endif11885                                endif11886                            else11887                                if "Ricochet" in MyCodexDesc11888                                    // Do nothing11889                                elseif DisableWeaponFinisher != 111890                                    say '[ArcheryFinisher1'11891                                    @setvar! DisableWeaponFinisher 011892                                    wait 25011893                                    if insysmsg "You must first reach rank 5"11894                                        @setvar! DisableWeaponFinisher 111895                                    endif11896                                endif11897                            endif11898                        endif11899                    endif11900 11901                    if SwitchToArcaneStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11902                        if "Arcane" in MyCodexDesc11903                            // Do nothing11904                        else11905                            yell "[ArcheryAmmunition1"11906                            settimer "WeaponCodexTimer" 011907                            wait 25011908                        endif11909                    elseif SwitchToFowlingStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11910                        if "Fowling" in MyCodexDesc11911                            // Do nothing11912                        else11913                            yell "[ArcheryAmmunition2"11914                            settimer "WeaponCodexTimer" 011915                            wait 25011916                        endif11917                    elseif SwitchToIncendiaryStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11918                        if "Incendiary" in MyCodexDesc11919                            // Do nothing11920                        else11921                            yell "[ArcheryAmmunition3"11922                            settimer "WeaponCodexTimer" 011923                            wait 25011924                        endif11925                    elseif SwitchToLongshotStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11926                        if "Longshot" in MyCodexDesc11927                            // Do nothing11928                        else11929                            yell "[ArcheryAmmunition4"11930                            settimer "WeaponCodexTimer" 011931                            wait 25011932                        endif11933                    elseif SwitchToMaimingStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown11934                        if "Maiming" in MyCodexDesc11935                            // Do nothing11936                        else11937                            yell "[ArcheryAmmunition5"11938                            settimer "WeaponCodexTimer" 011939                            wait 25011940                        endif11941                    endif11942                endif11943            elseif skill 'Wrestling' >= 80 and UsingWrestling = 111944                if EnableWeaponCodexStances = 1 and findtype "wrestling codex" self as MyCodex11945                    if not gumpexists 2016719803 and EnableWeaponCodexHotbar = 111946                        while not gumpexists 106664755311947                            say "[CodexHotBar"11948                            wait 25011949                            if gumpexists 201671980311950                                break11951                            endif11952                        endwhile11953                    endif11954 11955                    if SetWeaponCodexStance = 611956                        if findbuff "Bleed" or findbuff "Diseased" or cooldown "Frost Shell Cooldown"11957                            if AutoWeaponStanceSetting = 1 or AutoWeaponStanceSetting = 2 or AutoWeaponStanceSetting = 311958                                @setvar! SwitchToDragonStance 011959                                @setvar! SwitchToCrabStance 111960                                @setvar! SwitchToSpiderStance 011961                                @setvar! SwitchToMonkeyStance 011962                                @setvar! SwitchToCraneStance 011963                            elseif AutoWeaponStanceSetting = 011964                                @setvar! SwitchToDragonStance 011965                                @setvar! SwitchToCrabStance 011966                                @setvar! SwitchToSpiderStance 011967                                @setvar! SwitchToMonkeyStance 011968                                @setvar! SwitchToCraneStance 011969                            endif11970                        elseif not warmode and TimeToGo != 1 and AutoRecallTime != 111971                            @setvar! WarModeToggledWhileFighting 111972                            if AutoWeaponStanceSetting = 111973                                @setvar! SwitchToDragonStance 011974                                @setvar! SwitchToCrabStance 011975                                @setvar! SwitchToSpiderStance 111976                                @setvar! SwitchToMonkeyStance 011977                                @setvar! SwitchToCraneStance 011978                            elseif AutoWeaponStanceSetting = 211979                                @setvar! SwitchToDragonStance 011980                                @setvar! SwitchToCrabStance 011981                                @setvar! SwitchToSpiderStance 011982                                @setvar! SwitchToMonkeyStance 111983                                @setvar! SwitchToCraneStance 011984                            elseif AutoWeaponStanceSetting = 311985                                @setvar! SwitchToDragonStance 111986                                @setvar! SwitchToCrabStance 011987                                @setvar! SwitchToSpiderStance 011988                                @setvar! SwitchToMonkeyStance 011989                                @setvar! SwitchToCraneStance 011990                            elseif AutoWeaponStanceSetting = 011991                                @setvar! SwitchToDragonStance 011992                                @setvar! SwitchToCrabStance 011993                                @setvar! SwitchToSpiderStance 011994                                @setvar! SwitchToMonkeyStance 011995                                @setvar! SwitchToCraneStance 011996                            endif11997                        elseif warmode11998                            if AutoWeaponStanceSetting = 111999                                @setvar! SwitchToDragonStance 112000                                @setvar! SwitchToCrabStance 012001                                @setvar! SwitchToSpiderStance 012002                                @setvar! SwitchToMonkeyStance 012003                                @setvar! SwitchToCraneStance 012004                            elseif AutoWeaponStanceSetting = 212005                                @setvar! SwitchToDragonStance 012006                                @setvar! SwitchToCrabStance 012007                                @setvar! SwitchToSpiderStance 012008                                @setvar! SwitchToMonkeyStance 012009                                @setvar! SwitchToCraneStance 112010                            elseif AutoWeaponStanceSetting = 312011                                @setvar! SwitchToDragonStance 012012                                @setvar! SwitchToCrabStance 012013                                @setvar! SwitchToSpiderStance 012014                                @setvar! SwitchToMonkeyStance 112015                                @setvar! SwitchToCraneStance 012016                            elseif AutoWeaponStanceSetting = 012017                                @setvar! SwitchToDragonStance 012018                                @setvar! SwitchToCrabStance 012019                                @setvar! SwitchToSpiderStance 012020                                @setvar! SwitchToMonkeyStance 012021                                @setvar! SwitchToCraneStance 012022                            endif12023                        endif12024                    elseif SetWeaponCodexStance = 512025                        @setvar! SwitchToDragonStance 012026                        @setvar! SwitchToCrabStance 012027                        @setvar! SwitchToSpiderStance 012028                        @setvar! SwitchToMonkeyStance 012029                        @setvar! SwitchToCraneStance 112030                    elseif SetWeaponCodexStance = 412031                        @setvar! SwitchToDragonStance 012032                        @setvar! SwitchToCrabStance 012033                        @setvar! SwitchToSpiderStance 012034                        @setvar! SwitchToMonkeyStance 112035                        @setvar! SwitchToCraneStance 012036                    elseif SetWeaponCodexStance = 312037                        @setvar! SwitchToDragonStance 012038                        @setvar! SwitchToCrabStance 012039                        @setvar! SwitchToSpiderStance 112040                        @setvar! SwitchToMonkeyStance 012041                        @setvar! SwitchToCraneStance 012042                    elseif SetWeaponCodexStance = 212043                        @setvar! SwitchToDragonStance 012044                        @setvar! SwitchToCrabStance 112045                        @setvar! SwitchToSpiderStance 012046                        @setvar! SwitchToMonkeyStance 012047                        @setvar! SwitchToCraneStance 012048                    elseif SetWeaponCodexStance = 112049                        @setvar! SwitchToDragonStance 112050                        @setvar! SwitchToCrabStance 012051                        @setvar! SwitchToSpiderStance 012052                        @setvar! SwitchToMonkeyStance 012053                        @setvar! SwitchToCraneStance 012054                    endif12055 12056                    getlabel MyCodex MyCodexDesc12057 12058                    if EnableWeaponCodexFinishers = 112059                        if SetWeaponCodexFinisher = 112060                            if "Chi Thrust" in MyCodexDesc12061                                // Do nothing12062                            elseif DisableWeaponFinisher != 112063                                say '[WrestlingFinisher1'12064                                @setvar! DisableWeaponFinisher 012065                                wait 25012066                                if insysmsg "You must first reach rank 5"12067                                    @setvar! DisableWeaponFinisher 112068                                endif12069                            endif12070                        elseif SetWeaponCodexFinisher = 212071                            if "Zen Strike" in MyCodexDesc12072                                // Do nothing12073                            elseif DisableWeaponFinisher != 112074                                say '[WrestlingFinisher2'12075                                @setvar! DisableWeaponFinisher 012076                                wait 25012077                                if insysmsg "You must first reach rank 5"12078                                    @setvar! DisableWeaponFinisher 112079                                endif12080                            endif12081                        elseif SetWeaponCodexFinisher = 312082                            if warmode12083                                if "Chi Thrust" in MyCodexDesc12084                                    // Do nothing12085                                elseif DisableWeaponFinisher != 112086                                    say '[WrestlingFinisher1'12087                                    @setvar! DisableWeaponFinisher 012088                                    wait 25012089                                    if insysmsg "You must first reach rank 5"12090                                        @setvar! DisableWeaponFinisher 112091                                    endif12092                                endif12093                            else12094                                if "Zen Strike" in MyCodexDesc12095                                    // Do nothing12096                                elseif DisableWeaponFinisher != 112097                                    say '[WrestlingFinisher2'12098                                    @setvar! DisableWeaponFinisher 012099                                    wait 25012100                                    if insysmsg "You must first reach rank 5"12101                                        @setvar! DisableWeaponFinisher 112102                                    endif12103                                endif12104                            endif12105                        elseif SetWeaponCodexFinisher = 412106                            if warmode12107                                if "Zen Strike" in MyCodexDesc12108                                    // Do nothing12109                                elseif DisableWeaponFinisher != 112110                                    say '[WrestlingFinisher2'12111                                    @setvar! DisableWeaponFinisher 012112                                    wait 25012113                                    if insysmsg "You must first reach rank 5"12114                                        @setvar! DisableWeaponFinisher 112115                                    endif12116                                endif12117                            else12118                                if "Chi Thrust" in MyCodexDesc12119                                    // Do nothing12120                                elseif DisableWeaponFinisher != 112121                                    say '[WrestlingFinisher1'12122                                    @setvar! DisableWeaponFinisher 012123                                    wait 25012124                                    if insysmsg "You must first reach rank 5"12125                                        @setvar! DisableWeaponFinisher 112126                                    endif12127                                endif12128                            endif12129                        endif12130                    endif12131 12132                    if SwitchToDragonStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown12133                        if "Dragon" in MyCodexDesc12134                            // Do nothing12135                        else12136                            yell '[WrestlingStance1'12137                            settimer "WeaponCodexTimer" 012138                            wait 25012139                        endif12140                    elseif SwitchToCrabStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown12141                        if "Crab" in MyCodexDesc12142                            // Do nothing12143                        else12144                            yell '[WrestlingStance2'12145                            settimer "WeaponCodexTimer" 012146                            wait 25012147                        endif12148                    elseif SwitchToSpiderStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown12149                        if "Spider" in MyCodexDesc12150                            // Do nothing12151                        else12152                            yell '[WrestlingStance3'12153                            settimer "WeaponCodexTimer" 012154                            wait 25012155                        endif12156                    elseif SwitchToMonkeyStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown12157                        if "Monkey" in MyCodexDesc12158                            // Do nothing12159                        else12160                            yell '[WrestlingStance4'12161                            settimer "WeaponCodexTimer" 012162                            wait 25012163                        endif12164                    elseif SwitchToCraneStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown12165                        if "Crane" in MyCodexDesc12166                            // Do nothing12167                        else12168                            yell '[WrestlingStance5'12169                            settimer "WeaponCodexTimer" 012170                            wait 25012171                        endif12172                    endif12173                endif12174            elseif skill 'Throwing' >= 80 and UsingThrowing = 112175                if EnableWeaponCodexStances = 1 and findtype "throwing codex" self as MyCodex12176                    if not gumpexists 2016719803 and EnableWeaponCodexHotbar = 112177                        while not gumpexists 106664755312178                            say "[CodexHotBar"12179                            wait 25012180                            if gumpexists 201671980312181                                break12182                            endif12183                        endwhile12184                    endif12185 12186                    if SetWeaponCodexStance = 612187                        if findbuff "Bleed" or findbuff "Diseased" or cooldown "Frost Shell Cooldown"12188                            if AutoWeaponStanceSetting = 1 or AutoWeaponStanceSetting = 2 or AutoWeaponStanceSetting = 312189                                @setvar! SwitchToTorrentStance 012190                                @setvar! SwitchToSuppressStance 112191                                @setvar! SwitchToReaperStance 012192                                @setvar! SwitchToRakeStance 012193                                @setvar! SwitchToKiteStance 012194                            elseif AutoWeaponStanceSetting = 012195                                @setvar! SwitchToTorrentStance 012196                                @setvar! SwitchToSuppressStance 012197                                @setvar! SwitchToReaperStance 012198                                @setvar! SwitchToRakeStance 012199                                @setvar! SwitchToKiteStance 012200                            endif12201                        elseif not warmode and TimeToGo != 1 and AutoRecallTime != 112202                            @setvar! WarModeToggledWhileFighting 112203                            if AutoWeaponStanceSetting = 112204                                @setvar! SwitchToTorrentStance 012205                                @setvar! SwitchToSuppressStance 012206                                @setvar! SwitchToReaperStance 112207                                @setvar! SwitchToRakeStance 012208                                @setvar! SwitchToKiteStance 012209                            elseif AutoWeaponStanceSetting = 212210                                @setvar! SwitchToTorrentStance 012211                                @setvar! SwitchToSuppressStance 012212                                @setvar! SwitchToReaperStance 012213                                @setvar! SwitchToRakeStance 112214                                @setvar! SwitchToKiteStance 012215                            elseif AutoWeaponStanceSetting = 312216                                @setvar! SwitchToTorrentStance 112217                                @setvar! SwitchToSuppressStance 012218                                @setvar! SwitchToReaperStance 012219                                @setvar! SwitchToRakeStance 012220                                @setvar! SwitchToKiteStance 012221                            elseif AutoWeaponStanceSetting = 012222                                @setvar! SwitchToTorrentStance 012223                                @setvar! SwitchToSuppressStance 012224                                @setvar! SwitchToReaperStance 012225                                @setvar! SwitchToRakeStance 012226                                @setvar! SwitchToKiteStance 012227                            endif12228                        elseif warmode12229                            if AutoWeaponStanceSetting = 112230                                @setvar! SwitchToTorrentStance 112231                                @setvar! SwitchToSuppressStance 012232                                @setvar! SwitchToReaperStance 012233                                @setvar! SwitchToRakeStance 012234                                @setvar! SwitchToKiteStance 012235                            elseif AutoWeaponStanceSetting = 212236                                @setvar! SwitchToTorrentStance 012237                                @setvar! SwitchToSuppressStance 012238                                @setvar! SwitchToReaperStance 012239                                @setvar! SwitchToRakeStance 012240                                @setvar! SwitchToKiteStance 112241                            elseif AutoWeaponStanceSetting = 312242                                @setvar! SwitchToTorrentStance 012243                                @setvar! SwitchToSuppressStance 012244                                @setvar! SwitchToReaperStance 012245                                @setvar! SwitchToRakeStance 112246                                @setvar! SwitchToKiteStance 012247                            elseif AutoWeaponStanceSetting = 012248                                @setvar! SwitchToTorrentStance 012249                                @setvar! SwitchToSuppressStance 012250                                @setvar! SwitchToReaperStance 012251                                @setvar! SwitchToRakeStance 012252                                @setvar! SwitchToKiteStance 012253                            endif12254                        endif12255                    elseif SetWeaponCodexStance = 512256                        @setvar! SwitchToTorrentStance 012257                        @setvar! SwitchToSuppressStance 012258                        @setvar! SwitchToReaperStance 012259                        @setvar! SwitchToRakeStance 012260                        @setvar! SwitchToKiteStance 112261                    elseif SetWeaponCodexStance = 412262                        @setvar! SwitchToTorrentStance 012263                        @setvar! SwitchToSuppressStance 012264                        @setvar! SwitchToReaperStance 012265                        @setvar! SwitchToRakeStance 112266                        @setvar! SwitchToKiteStance 012267                    elseif SetWeaponCodexStance = 312268                        @setvar! SwitchToTorrentStance 012269                        @setvar! SwitchToSuppressStance 012270                        @setvar! SwitchToReaperStance 112271                        @setvar! SwitchToRakeStance 012272                        @setvar! SwitchToKiteStance 012273                    elseif SetWeaponCodexStance = 212274                        @setvar! SwitchToTorrentStance 012275                        @setvar! SwitchToSuppressStance 112276                        @setvar! SwitchToReaperStance 012277                        @setvar! SwitchToRakeStance 012278                        @setvar! SwitchToKiteStance 012279                    elseif SetWeaponCodexStance = 112280                        @setvar! SwitchToTorrentStance 112281                        @setvar! SwitchToSuppressStance 012282                        @setvar! SwitchToReaperStance 012283                        @setvar! SwitchToRakeStance 012284                        @setvar! SwitchToKiteStance 012285                    endif12286 12287                    getlabel MyCodex MyCodexDesc12288 12289                    if EnableWeaponCodexFinishers = 112290                        if SetWeaponCodexFinisher = 112291                            if "Hunter" in MyCodexDesc12292                                // Do nothing12293                            elseif DisableWeaponFinisher != 112294                                say '[ThrowingFinisher1'12295                                @setvar! DisableWeaponFinisher 012296                                wait 25012297                                if insysmsg "You must first reach rank 5"12298                                    @setvar! DisableWeaponFinisher 112299                                endif12300                            endif12301                        elseif SetWeaponCodexFinisher = 212302                            if "Hobble" in MyCodexDesc12303                                // Do nothing12304                            elseif DisableWeaponFinisher != 112305                                say '[ThrowingFinisher2'12306                                @setvar! DisableWeaponFinisher 012307                                wait 25012308                                if insysmsg "You must first reach rank 5"12309                                    @setvar! DisableWeaponFinisher 112310                                endif12311                            endif12312                        elseif SetWeaponCodexFinisher = 312313                            if warmode12314                                if "Hunter" in MyCodexDesc12315                                    // Do nothing12316                                elseif DisableWeaponFinisher != 112317                                    say '[ThrowingFinisher1'12318                                    @setvar! DisableWeaponFinisher 012319                                    wait 25012320                                    if insysmsg "You must first reach rank 5"12321                                        @setvar! DisableWeaponFinisher 112322                                    endif12323                                endif12324                            else12325                                if "Hobble" in MyCodexDesc12326                                    // Do nothing12327                                elseif DisableWeaponFinisher != 112328                                    say '[ThrowingFinisher2'12329                                    @setvar! DisableWeaponFinisher 012330                                    wait 25012331                                    if insysmsg "You must first reach rank 5"12332                                        @setvar! DisableWeaponFinisher 112333                                    endif12334                                endif12335                            endif12336                        elseif SetWeaponCodexFinisher = 412337                            if warmode12338                                if "Hobble" in MyCodexDesc12339                                    // Do nothing12340                                elseif DisableWeaponFinisher != 112341                                    say '[ThrowingFinisher2'12342                                    @setvar! DisableWeaponFinisher 012343                                    wait 25012344                                    if insysmsg "You must first reach rank 5"12345                                        @setvar! DisableWeaponFinisher 112346                                    endif12347                                endif12348                            else12349                                if "Hunter" in MyCodexDesc12350                                    // Do nothing12351                                elseif DisableWeaponFinisher != 112352                                    say '[ThrowingFinisher1'12353                                    @setvar! DisableWeaponFinisher 012354                                    wait 25012355                                    if insysmsg "You must first reach rank 5"12356                                        @setvar! DisableWeaponFinisher 112357                                    endif12358                                endif12359                            endif12360                        endif12361                    endif12362 12363                    if SwitchToTorrentStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown12364                        if "Torrent" in MyCodexDesc12365                            // Do nothing12366                        else12367                            yell '[ThrowingStance1'12368                            settimer "WeaponCodexTimer" 012369                            wait 25012370                        endif12371                    elseif SwitchToSuppressStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown12372                        if "Suppress" in MyCodexDesc12373                            // Do nothing12374                        else12375                            yell '[ThrowingStance2'12376                            settimer "WeaponCodexTimer" 012377                            wait 25012378                        endif12379                    elseif SwitchToReaperStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown12380                        if "Reaper" in MyCodexDesc12381                            // Do nothing12382                        else12383                            yell '[ThrowingStance3'12384                            settimer "WeaponCodexTimer" 012385                            wait 25012386                        endif12387                    elseif SwitchToRakeStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown12388                        if "Rake" in MyCodexDesc12389                            // Do nothing12390                        else12391                            yell '[ThrowingStance4'12392                            settimer "WeaponCodexTimer" 012393                            wait 25012394                        endif12395                    elseif SwitchToKiteStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown12396                        if "Kite" in MyCodexDesc12397                            // Do nothing12398                        else12399                            yell '[ThrowingStance5'12400                            settimer "WeaponCodexTimer" 012401                            wait 25012402                        endif12403                    endif12404                endif12405            elseif skill 'Dual Wielding' >= 80 and UsingDualWield = 112406                if EnableWeaponCodexStances = 1 and findtype "dual wield codex" self as MyCodex12407                    if not gumpexists 2016719803 and EnableWeaponCodexHotbar = 112408                        while not gumpexists 106664755312409                            say "[CodexHotBar"12410                            wait 25012411                            if gumpexists 201671980312412                                break12413                            endif12414                        endwhile12415                    endif12416 12417                    if SetWeaponCodexStance = 612418                        if findbuff "Bleed" or findbuff "Diseased" or cooldown "Frost Shell Cooldown"12419                            if AutoWeaponStanceSetting = 1 or AutoWeaponStanceSetting = 2 or AutoWeaponStanceSetting = 312420                                @setvar! SwitchToAggressiveStance 012421                                @setvar! SwitchToDefensiveStance 112422                                @setvar! SwitchToCleaveStance 012423                                @setvar! SwitchToSquareOffStance 012424                                @setvar! SwitchToShankStance 012425                            elseif AutoWeaponStanceSetting = 012426                                @setvar! SwitchToAggressiveStance 012427                                @setvar! SwitchToDefensiveStance 012428                                @setvar! SwitchToCleaveStance 012429                                @setvar! SwitchToSquareOffStance 012430                                @setvar! SwitchToShankStance 012431                            endif12432                        elseif not warmode and TimeToGo != 1 and AutoRecallTime != 112433                            @setvar! WarModeToggledWhileFighting 112434                            if AutoWeaponStanceSetting = 112435                                @setvar! SwitchToAggressiveStance 012436                                @setvar! SwitchToDefensiveStance 012437                                @setvar! SwitchToCleaveStance 112438                                @setvar! SwitchToSquareOffStance 012439                                @setvar! SwitchToShankStance 012440                            elseif AutoWeaponStanceSetting = 212441                                @setvar! SwitchToAggressiveStance 112442                                @setvar! SwitchToDefensiveStance 012443                                @setvar! SwitchToCleaveStance 012444                                @setvar! SwitchToSquareOffStance 012445                                @setvar! SwitchToShankStance 012446                            elseif AutoWeaponStanceSetting = 312447                                @setvar! SwitchToAggressiveStance 012448                                @setvar! SwitchToDefensiveStance 012449                                @setvar! SwitchToCleaveStance 012450                                @setvar! SwitchToSquareOffStance 112451                                @setvar! SwitchToShankStance 012452                            elseif AutoWeaponStanceSetting = 012453                                @setvar! SwitchToAggressiveStance 012454                                @setvar! SwitchToDefensiveStance 012455                                @setvar! SwitchToCleaveStance 012456                                @setvar! SwitchToSquareOffStance 012457                                @setvar! SwitchToShankStance 012458                            endif12459                        elseif warmode12460                            if AutoWeaponStanceSetting = 112461                                @setvar! SwitchToAggressiveStance 112462                                @setvar! SwitchToDefensiveStance 012463                                @setvar! SwitchToCleaveStance 012464                                @setvar! SwitchToSquareOffStance 012465                                @setvar! SwitchToShankStance 012466                            elseif AutoWeaponStanceSetting = 212467                                @setvar! SwitchToAggressiveStance 012468                                @setvar! SwitchToDefensiveStance 012469                                @setvar! SwitchToCleaveStance 012470                                @setvar! SwitchToSquareOffStance 112471                                @setvar! SwitchToShankStance 012472                            elseif AutoWeaponStanceSetting = 312473                                @setvar! SwitchToAggressiveStance 012474                                @setvar! SwitchToDefensiveStance 012475                                @setvar! SwitchToCleaveStance 012476                                @setvar! SwitchToSquareOffStance 012477                                @setvar! SwitchToShankStance 112478                            elseif AutoWeaponStanceSetting = 012479                                @setvar! SwitchToAggressiveStance 012480                                @setvar! SwitchToDefensiveStance 012481                                @setvar! SwitchToCleaveStance 012482                                @setvar! SwitchToSquareOffStance 012483                                @setvar! SwitchToShankStance 012484                            endif12485                        endif12486                    elseif SetWeaponCodexStance = 512487                        @setvar! SwitchToAggressiveStance 012488                        @setvar! SwitchToDefensiveStance 012489                        @setvar! SwitchToCleaveStance 012490                        @setvar! SwitchToSquareOffStance 012491                        @setvar! SwitchToShankStance 112492                    elseif SetWeaponCodexStance = 412493                        @setvar! SwitchToAggressiveStance 012494                        @setvar! SwitchToDefensiveStance 012495                        @setvar! SwitchToCleaveStance 012496                        @setvar! SwitchToSquareOffStance 112497                        @setvar! SwitchToShankStance 012498                    elseif SetWeaponCodexStance = 312499                        @setvar! SwitchToAggressiveStance 012500                        @setvar! SwitchToDefensiveStance 012501                        @setvar! SwitchToCleaveStance 112502                        @setvar! SwitchToSquareOffStance 012503                        @setvar! SwitchToShankStance 012504                    elseif SetWeaponCodexStance = 212505                        @setvar! SwitchToAggressiveStance 012506                        @setvar! SwitchToDefensiveStance 112507                        @setvar! SwitchToCleaveStance 012508                        @setvar! SwitchToSquareOffStance 012509                        @setvar! SwitchToShankStance 012510                    elseif SetWeaponCodexStance = 112511                        @setvar! SwitchToAggressiveStance 112512                        @setvar! SwitchToDefensiveStance 012513                        @setvar! SwitchToCleaveStance 012514                        @setvar! SwitchToSquareOffStance 012515                        @setvar! SwitchToShankStance 012516                    endif12517 12518                    getlabel MyCodex MyCodexDesc12519 12520                    if EnableWeaponCodexFinishers = 112521                        if SetWeaponCodexFinisher = 112522                            if "En Garde" in MyCodexDesc12523                                // Do nothing12524                            elseif DisableWeaponFinisher != 112525                                say '[DualWieldingFinisher1'12526                                @setvar! DisableWeaponFinisher 012527                                wait 25012528                                if insysmsg "You must first reach rank 5"12529                                    @setvar! DisableWeaponFinisher 112530                                endif12531                            endif12532                        elseif SetWeaponCodexFinisher = 212533                            if "Coup de Grace" in MyCodexDesc12534                                // Do nothing12535                            elseif DisableWeaponFinisher != 112536                                say '[DualWieldingFinisher2'12537                                @setvar! DisableWeaponFinisher 012538                                wait 25012539                                if insysmsg "You must first reach rank 5"12540                                    @setvar! DisableWeaponFinisher 112541                                endif12542                            endif12543                        elseif SetWeaponCodexFinisher = 312544                            if warmode12545                                if "En Garde" in MyCodexDesc12546                                    // Do nothing12547                                elseif DisableWeaponFinisher != 112548                                    say '[DualWieldingFinisher1'12549                                    @setvar! DisableWeaponFinisher 012550                                    wait 25012551                                    if insysmsg "You must first reach rank 5"12552                                        @setvar! DisableWeaponFinisher 112553                                    endif12554                                endif12555                            else12556                                if "Coup de Grace" in MyCodexDesc12557                                    // Do nothing12558                                elseif DisableWeaponFinisher != 112559                                    say '[DualWieldingFinisher2'12560                                    @setvar! DisableWeaponFinisher 012561                                    wait 25012562                                    if insysmsg "You must first reach rank 5"12563                                        @setvar! DisableWeaponFinisher 112564                                    endif12565                                endif12566                            endif12567                        elseif SetWeaponCodexFinisher = 412568                            if warmode12569                                if "Coup de Grace" in MyCodexDesc12570                                    // Do nothing12571                                elseif DisableWeaponFinisher != 112572                                    say '[DualWieldingFinisher2'12573                                    @setvar! DisableWeaponFinisher 012574                                    wait 25012575                                    if insysmsg "You must first reach rank 5"12576                                        @setvar! DisableWeaponFinisher 112577                                    endif12578                                endif12579                            else12580                                if "En Garde" in MyCodexDesc12581                                    // Do nothing12582                                elseif DisableWeaponFinisher != 112583                                    say '[DualWieldingFinisher1'12584                                    @setvar! DisableWeaponFinisher 012585                                    wait 25012586                                    if insysmsg "You must first reach rank 5"12587                                        @setvar! DisableWeaponFinisher 112588                                    endif12589                                endif12590                            endif12591                        endif12592                    endif12593 12594                    if SwitchToAggressiveStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown12595                        if "Aggressive" in MyCodexDesc12596                            // Do nothing12597                        else12598                            yell '[DualWieldingStance1'12599                            settimer "WeaponCodexTimer" 012600                            wait 25012601                        endif12602                    elseif SwitchToDefensiveStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown12603                        if "Defensive" in MyCodexDesc12604                            // Do nothing12605                        else12606                            yell '[DualWieldingStance2'12607                            settimer "WeaponCodexTimer" 012608                            wait 25012609                        endif12610                    elseif SwitchToCleaveStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown12611                        if "Cleave" in MyCodexDesc12612                            // Do nothing12613                        else12614                            yell '[DualWieldingStance3'12615                            settimer "WeaponCodexTimer" 012616                            wait 25012617                        endif12618                    elseif SwitchToSquareOffStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown12619                        if "Square" in MyCodexDesc12620                            // Do nothing12621                        else12622                            yell '[DualWieldingStance4'12623                            settimer "WeaponCodexTimer" 012624                            wait 25012625                        endif12626                    elseif SwitchToShankStance = 1 and timer "WeaponCodexTimer" > SwitchWeaponStanceCooldown12627                        if "Shank" in MyCodexDesc12628                            // Do nothing12629                        else12630                            yell '[DualWieldingStance5'12631                            settimer "WeaponCodexTimer" 012632                            wait 25012633                        endif12634                    endif12635                endif12636            endif12637        endif12638 12639        if timer "AttackingTimer" > 50012640            if not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange12641                attack ClosestTarget12642                settimer "AttackingTimer" 012643            elseif not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetDisengageRange12644                if timer "NoTargetTimer" > 300012645                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 212646                        overhead "[ GET CLOSER! ]" 35312647                        overhead " � " 353 ClosestTarget12648                    else12649                        overhead " � " 353 ClosestTarget12650                    endif12651                    settimer "NoTargetTimer" 012652                    settimer "TargetAcquired" 012653                endif12654            else12655                break12656            endif12657        endif12658 12659        if EnableShieldCodexStances = 1 and SetShieldCodexStance != 012660            if skill "Parrying" >= 80 and findtype "shield codex" self as ShieldCodex12661                if not gumpexists 2016719803 and EnableShieldCodexHotbar = 112662                    while not gumpexists 106664755312663                        say "[CodexHotBar"12664                        wait 25012665                        if gumpexists 201671980312666                            break12667                        endif12668                    endwhile12669                endif12670 12671                if SetShieldCodexStance = 612672                    if findbuff "Bleed" or findbuff "Diseased" or poisoned12673                        if AutoShieldStanceSetting = 1 or AutoShieldStanceSetting  = 2 or AutoShieldStanceSetting  = 312674                            @setvar! SwitchToBulwarkStance 012675                            @setvar! SwitchToWardingStance 112676                            @setvar! SwitchToMirrorStance 012677                            @setvar! SwitchToShieldBashStance 012678                            @setvar! SwitchToTestudoStance 012679                        elseif AutoShieldStanceSetting = 012680                            @setvar! SwitchToBulwarkStance 012681                            @setvar! SwitchToWardingStance 012682                            @setvar! SwitchToMirrorStance 012683                            @setvar! SwitchToShieldBashStance 012684                            @setvar! SwitchToTestudoStance 012685                        endif12686                    elseif not warmode and TimeToGo != 1 and AutoRecallTime != 112687                        @setvar! WarModeToggledWhileFighting 112688                        if AutoShieldStanceSetting = 112689                            @setvar! SwitchToBulwarkStance 112690                            @setvar! SwitchToWardingStance 012691                            @setvar! SwitchToMirrorStance 012692                            @setvar! SwitchToShieldBashStance 012693                            @setvar! SwitchToTestudoStance 012694                        elseif AutoShieldStanceSetting  = 212695                            @setvar! SwitchToBulwarkStance 112696                            @setvar! SwitchToWardingStance 012697                            @setvar! SwitchToMirrorStance 012698                            @setvar! SwitchToShieldBashStance 012699                            @setvar! SwitchToTestudoStance 012700                        elseif AutoShieldStanceSetting = 312701                            @setvar! SwitchToBulwarkStance 012702                            @setvar! SwitchToWardingStance 012703                            @setvar! SwitchToMirrorStance 112704                            @setvar! SwitchToShieldBashStance 012705                            @setvar! SwitchToTestudoStance 012706                        elseif AutoShieldStanceSetting = 012707                            @setvar! SwitchToBulwarkStance 012708                            @setvar! SwitchToWardingStance 012709                            @setvar! SwitchToMirrorStance 012710                            @setvar! SwitchToShieldBashStance 012711                            @setvar! SwitchToTestudoStance 012712                        endif12713                    elseif warmode12714                        if AutoShieldStanceSetting = 112715                            @setvar! SwitchToBulwarkStance 012716                            @setvar! SwitchToWardingStance 012717                            @setvar! SwitchToMirrorStance 012718                            @setvar! SwitchToShieldBashStance 012719                            @setvar! SwitchToTestudoStance 112720                        elseif AutoShieldStanceSetting  = 212721                            @setvar! SwitchToBulwarkStance 012722                            @setvar! SwitchToWardingStance 012723                            @setvar! SwitchToMirrorStance 012724                            @setvar! SwitchToShieldBashStance 112725                            @setvar! SwitchToTestudoStance 012726                        elseif AutoShieldStanceSetting = 312727                            @setvar! SwitchToBulwarkStance 112728                            @setvar! SwitchToWardingStance 012729                            @setvar! SwitchToMirrorStance 012730                            @setvar! SwitchToShieldBashStance 012731                            @setvar! SwitchToTestudoStance 012732                        elseif AutoShieldStanceSetting = 012733                            @setvar! SwitchToBulwarkStance 012734                            @setvar! SwitchToWardingStance 012735                            @setvar! SwitchToMirrorStance 012736                            @setvar! SwitchToShieldBashStance 012737                            @setvar! SwitchToTestudoStance 012738                        endif12739                    endif12740                elseif SetShieldCodexStance = 512741                    @setvar! SwitchToBulwarkStance 112742                    @setvar! SwitchToShieldBashStance 012743                    @setvar! SwitchToMirrorStance 012744                    @setvar! SwitchToWardingStance 012745                    @setvar! SwitchToTestudoStance 012746                elseif SetShieldCodexStance = 412747                    @setvar! SwitchToBulwarkStance 012748                    @setvar! SwitchToShieldBashStance 012749                    @setvar! SwitchToMirrorStance 112750                    @setvar! SwitchToWardingStance 012751                    @setvar! SwitchToTestudoStance 012752                elseif SetShieldCodexStance = 312753                    @setvar! SwitchToBulwarkStance 012754                    @setvar! SwitchToShieldBashStance 012755                    @setvar! SwitchToMirrorStance 012756                    @setvar! SwitchToWardingStance 012757                    @setvar! SwitchToTestudoStance 112758                elseif SetShieldCodexStance = 212759                    @setvar! SwitchToBulwarkStance 012760                    @setvar! SwitchToShieldBashStance 012761                    @setvar! SwitchToMirrorStance 012762                    @setvar! SwitchToWardingStance 112763                    @setvar! SwitchToTestudoStance 012764                elseif SetShieldCodexStance = 112765                    @setvar! SwitchToBulwarkStance 012766                    @setvar! SwitchToShieldBashStance 112767                    @setvar! SwitchToMirrorStance 012768                    @setvar! SwitchToWardingStance 012769                    @setvar! SwitchToTestudoStance 012770                endif12771 12772                getlabel ShieldCodex ShieldCodexDesc12773 12774                if EnableShieldCodexFinishers = 112775                    if SetShieldCodexFinisher = 112776                        if "Last Stand" in ShieldCodexDesc12777                            @setvar! DisableShieldFinisher 012778                        elseif DisableShieldFinisher != 112779                            yell '[ShieldsFinisher1'12780                            wait 25012781                            if insysmsg "You must first reach rank 5"12782                                @setvar! DisableShieldFinisher 112783                            endif12784                        endif12785                    elseif SetShieldCodexFinisher = 212786                        if "Barrier" in ShieldCodexDesc12787                            @setvar! DisableShieldFinisher 012788                        elseif DisableShieldFinisher != 112789                            say '[ShieldsFinisher2'12790                            wait 25012791                            if insysmsg "You must first reach rank 5"12792                                @setvar! DisableShieldFinisher 112793                            endif12794                        endif12795                    elseif SetShieldCodexFinisher = 312796                        if warmode12797                            if "Last Stand" in ShieldCodexDesc12798                                @setvar! DisableShieldFinisher 012799                            elseif DisableShieldFinisher != 112800                                yell '[ShieldsFinisher1'12801                                wait 25012802                                if insysmsg "You must first reach rank 5"12803                                    @setvar! DisableShieldFinisher 112804                                endif12805                            endif12806                        else12807                            if "Barrier" in ShieldCodexDesc12808                                @setvar! DisableShieldFinisher 012809                            elseif DisableShieldFinisher != 112810                                say '[ShieldsFinisher2'12811                                wait 25012812                                if insysmsg "You must first reach rank 5"12813                                    @setvar! DisableShieldFinisher 112814                                endif12815                            endif12816                        endif12817                    elseif SetShieldCodexFinisher = 412818                        if warmode12819                            if "Barrier" in ShieldCodexDesc12820                                @setvar! DisableShieldFinisher 012821                            elseif DisableShieldFinisher != 112822                                say '[ShieldsFinisher2'12823                                wait 25012824                                if insysmsg "You must first reach rank 5"12825                                    @setvar! DisableShieldFinisher 112826                                endif12827                            endif12828                        else12829                            if "Last Stand" in ShieldCodexDesc12830                                @setvar! DisableShieldFinisher 012831                            elseif DisableShieldFinisher != 112832                                yell '[ShieldsFinisher1'12833                                wait 25012834                                if insysmsg "You must first reach rank 5"12835                                    @setvar! DisableShieldFinisher 112836                                endif12837                            endif12838                        endif12839                    endif12840                endif12841 12842                if SwitchToWardingStance = 112843                    if "Warding" in ShieldCodexDesc12844                        // Do nothing12845                    else12846                        yell '[ShieldsStance2'12847                        settimer "ShieldCodexTimer" 012848                        wait 25012849                    endif12850                elseif SwitchToMirrorStance = 1 and timer "ShieldCodexTimer" > SwitchShieldCodexCooldown12851                    if "Mirror" in ShieldCodexDesc12852                        // Do nothing12853                    else12854                        yell '[ShieldsStance4'12855                        settimer "ShieldCodexTimer" 012856                        wait 25012857                    endif12858                elseif SwitchToBulwarkStance = 1 and timer "ShieldCodexTimer" > SwitchShieldCodexCooldown12859                    if "Bulwark" in ShieldCodexDesc12860                        // Do nothing12861                    else12862                        yell '[ShieldsStance5'12863                        settimer "ShieldCodexTimer" 012864                        wait 25012865                    endif12866                elseif SwitchToTestudoStance = 1 and timer "ShieldCodexTimer" > SwitchShieldCodexCooldown12867                    if "Testudo" in ShieldCodexDesc12868                        // Do nothing12869                    else12870                        yell '[ShieldsStance3'12871                        settimer "ShieldCodexTimer" 012872                        wait 25012873                    endif12874                elseif SwitchToShieldBashStance = 1 and timer "ShieldCodexTimer" > SwitchShieldCodexCooldown12875                    if "Shield Bash" in ShieldCodexDesc12876                        // Do nothing12877                    else12878                        yell '[ShieldsStance1'12879                        settimer "ShieldCodexTimer" 012880                        wait 25012881                    endif12882                endif12883            endif12884        endif12885 12886        if EnableProvocation = 1 and skill "Provocation" >= 5012887            if find NextClosestTarget ground -1 -1 TargetBardingRange and ClosestTarget != NextClosestTarget12888                if timer "NextTargetTimer" > 300012889                    if "Paragon" in descNextTarget12890                        if not dead NextClosestTarget12891                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 212892                                overhead " � PARAGON! � " 12 NextClosestTarget12893                            else12894                                overhead " ��� " 12 NextClosestTarget12895                            endif12896                        endif12897                    else12898                        if not dead NextClosestTarget12899                            if EnableOverheadMessages = 1 or EnableOverheadMessages = 212900                                overhead "[ PROVO TARGET ]" 2117 NextClosestTarget12901                                overhead " � " 2117 NextClosestTarget12902                            else12903                                overhead " � " 2117 NextClosestTarget12904                            endif12905                        endif12906                    endif12907                    settimer "NextTargetTimer" 012908                endif12909            endif12910        endif12911 12912        getlabel ClosestTarget TargetDesc12913 12914        if EnableOverheadMessages = 1 or EnableOverheadMessages = 212915            if timer 'TargetAcquired' > 250012916                if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange and not dead ClosestTarget12917                    overhead " � PARAGON! � " 12 ClosestTarget12918                    settimer "TargetAcquired" 012919                    settimer "NoTargetTimer" 012920                    attack ClosestTarget12921                elseif find ClosestTarget ground -1 -1 TargetAttackRange and not dead ClosestTarget12922                    overhead "[ TARGET ]" 253 ClosestTarget12923                    overhead " � " 253 ClosestTarget12924                    settimer "TargetAcquired" 012925                    settimer "NoTargetTimer" 012926                    attack ClosestTarget12927                endif12928            endif12929        else12930            if timer 'TargetAcquired' > 300012931                if "Paragon" in TargetDesc and find ClosestTarget ground -1 -1 TargetAttackRange and not dead ClosestTarget12932                    overhead " ��� " 12 ClosestTarget12933                    settimer "TargetAcquired" 012934                    settimer "NoTargetTimer" 012935                    attack ClosestTarget12936                elseif find ClosestTarget ground -1 -1 TargetAttackRange and not dead ClosestTarget12937                    overhead " � " 253 ClosestTarget12938                    settimer "TargetAcquired" 012939                    settimer "NoTargetTimer" 012940                    attack ClosestTarget12941                endif12942            endif12943        endif12944 12945        if EnableAlwaysTargetClosest = 012946            if not find ClosestTarget ground -1 -1 TargetDisengageRange12947                break12948            endif12949            if not find ClosestTarget ground -1 -1 TargetAttackRange and find ClosestTarget ground -1 -1 TargetDisengageRange12950                if timer "NoTargetTimer" > 300012951                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 212952                        overhead "[ GET CLOSER! ]" 35312953                        overhead " � " 353 ClosestTarget12954                    else12955                        overhead " � " 353 ClosestTarget12956                    endif12957                    settimer "NoTargetTimer" 012958                    settimer "TargetAcquired" 012959                endif12960            elseif find ClosestTarget ground -1 -1 TargetAttackRange12961                attack ClosestTarget12962            endif12963        elseif EnableAlwaysTargetClosest = 112964            if not find ClosestTarget ground -1 -1 TargetDisengageRange12965                break12966            endif12967            if timer "AmIclosestMOB" > 2000 and timer "ATTACKTIMER" > 200012968                hotkey 'Target Closest Grey Monster'12969                @setvar! TargetCheck lasttarget12970                getlabel TargetCheck tempLabel12971                getlabel backpack backpacklabel12972 12973                if inlist animalsIgnoreList tempLabel12974                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 212975                        overhead "[ IGNORING MOB... ]" 34 TargetCheck12976                    else12977                        overhead " � " 34 TargetCheck12978                    endif12979                    @ignore TargetCheck12980                    break12981                elseif ClosestTarget != TargetCheck12982                    settimer "AmIclosestMOB" 012983                    @setvar! TargetisnotClosest 112984                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 212985                        if timer "NoTargetTimer" > 300012986                            overhead '[ RETARGETING... ]' 8812987                            overhead "[ TARGET ]" 88 TargetCheck12988                            overhead " � " 88 TargetCheck12989                            settimer "TargetAcquired" 012990                            settimer "NoTargetTimer" 012991                        endif12992                    else12993                        if timer "NoTargetTimer" > 300012994                            overhead " � " 88 TargetCheck12995                            settimer "TargetAcquired" 012996                            settimer "NoTargetTimer" 012997                        endif12998                    endif12999                    @setvar! TargetCheck 013000                    break13001                else13002                    attack ClosestTarget13003                    attack TargetCheck13004                    settimer "AmIclosestMOB" 013005                    @setvar! TargetCheck 013006                    @setvar! TargetisnotClosest 013007                endif13008            endif13009        endif13010 13011        if diffhits > 0 and not bandaging13012            if skill 'healing' > 013013                if findtype 'clean bandage%s%' self13014                    if targetexists13015                        hotkey 'cancel current target'13016                    endif13017                    hotkey 'Bandage Self'13018                    if EnableOverheadMessages = 113019                        if timer BandageMessageTimer > 500013020                            overhead "[ BANDAGING... ]" 8813021                            settimer BandageMessageTimer 013022                        endif13023                    endif13024                else13025                    if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 113026                        overhead "[ OUT OF BANDAGES! ]" 33713027                        settimer BandageMessageTimer 013028                    endif13029                endif13030            endif13031        endif13032 13033        if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff13034            if findtype "Yellow Potion" self as HealPot13035                getlabel HealPot HealPotlabel13036                if "next" in HealPotlabel13037                    // Do nothing13038                else13039                    @setvar! HealPotionCheck 013040 13041                    if counttype 3852 self as HealPotCount13042                        @setvar! HealPotionCheck HealPotCount13043                    endif13044 13045                    clearsysmsg13046                    dclicktype 385213047                    getlabel backpack backpackdesc13048                    wait 25013049 13050                    if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"13051                        settimer 'HealPotionTimer' 013052                        cooldown "Healing Potion" HealingPotionCooldown13053                        if EnableOverheadMessages = 113054                            if insysmsg "potion satchel used"13055                                overhead '[ FREE HEAL POTION ]' 25313056                            else13057                                overhead "[ HEAL POTION ]" 25313058                            endif13059                        endif13060                        clearsysmsg13061                    endif13062                endif13063            else13064                if timer 'HealPotionMessageTimer' > 450013065                    overhead "[ NO HEAL POTS! ]" 33713066                    settimer 'HealPotionMessageTimer' 013067                endif13068            endif13069        endif13070 13071        if EnablePKradar = 113072            if timer "PKRadar" > 100013073                hotkey 'Next Murderer Player Target'13074                wait 25013075                if insysmsg "No one matching that was found"13076                    settimer "PKRadar" 013077                    clearsysmsg13078                else13079                    hotkey 'Toggle Peace Only'13080                    @setvar! RedTargetFound 113081                    @setvar! WarModeToggledWhileFighting 013082                    @setvar! TimeToGo 113083                    @setvar! SkipInfiniteLoop 113084                    @setvar! MurdererTarget lasttarget13085                    if EnableRedAlertOverhead = 113086                        overhead "[ !! RED ALERT !! ]" 3713087                    endif13088                    settimer "REDALERT" 013089                    replay13090                endif13091            endif13092        endif13093 13094        if EnableTrackingAutoRecall = 113095            if PKTrackingRange = 6013096                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"13097                    hotkey 'Toggle Peace Only'13098                    if EnableRedAlertOverhead = 113099                        overhead "[ !! RED ALERT !! ]" 3713100                    endif13101                    settimer "REDALERT" 013102                    @setvar! RedTargetFound 113103                    @setvar! SkipInfiniteLoop 113104                    @setvar! WarModeToggledWhileFighting 013105                    @setvar! TimeToGo 113106                    clearsysmsg13107                    replay13108                endif13109            elseif PKTrackingRange = 5013110                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"13111                    hotkey 'Toggle Peace Only'13112                    if EnableRedAlertOverhead = 113113                        overhead "[ !! RED ALERT !! ]" 3713114                    endif13115                    settimer "REDALERT" 013116                    @setvar! RedTargetFound 113117                    @setvar! SkipInfiniteLoop 113118                    @setvar! WarModeToggledWhileFighting 013119                    @setvar! TimeToGo 113120                    clearsysmsg13121                    replay13122                endif13123            elseif PKTrackingRange = 4013124                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"13125                    hotkey 'Toggle Peace Only'13126                    if EnableRedAlertOverhead = 113127                        overhead "[ !! RED ALERT !! ]" 3713128                    endif13129                    settimer "REDALERT" 013130                    @setvar! RedTargetFound 113131                    @setvar! SkipInfiniteLoop 113132                    @setvar! WarModeToggledWhileFighting 013133                    @setvar! TimeToGo 113134                    clearsysmsg13135                    replay13136                endif13137            elseif PKTrackingRange = 013138                if insysmsg "Now tracking"13139                    hotkey 'Toggle Peace Only'13140                    if EnableRedAlertOverhead = 113141                        overhead "[ !! RED ALERT !! ]" 3713142                    endif13143                    settimer "REDALERT" 013144                    @setvar! RedTargetFound 113145                    @setvar! SkipInfiniteLoop 113146                    @setvar! WarModeToggledWhileFighting 013147                    @setvar! TimeToGo 113148                    clearsysmsg13149                    replay13150                endif13151            endif13152        endif13153 13154        if EnableOverheadMessages = 113155            if insysmsg "something invisible out of"13156                overhead "� SOMEONE HIDING! �" 613157            endif13158 13159            if insysmsg "additional mastery chain link"13160                overhead "[ CHAIN LINK UNLOCKED!! ]" 14913161                wait 50013162                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown13163                    wait 50013164                    say "[Yell"13165                    settimer EmoteCooldownTimer 013166                    cooldown "Emote Cooldown" SetEmoteCooldown13167                endif13168            endif13169 13170            if insysmsg "enough experience to upgrade"13171                overhead "[ ASPECT TIER UNLOCKED!! ]" 223413172                wait 50013173                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown13174                    wait 50013175                    say "[Whistle"13176                    settimer EmoteCooldownTimer 013177                    cooldown "Emote Cooldown" SetEmoteCooldown13178                endif13179            endif13180 13181            if insysmsg "You have unlocked a codex upgrade point"13182                overhead "[ CODEX POINT UNLOCKED! ]" 211413183                wait 25013184                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown13185                    wait 50013186                    say "[HighFive"13187                    settimer EmoteCooldownTimer 013188                    cooldown "Emote Cooldown" SetEmoteCooldown13189                endif13190            endif13191 13192            if insysmsg "You have completed a society job"13193                overhead "[ SOCIETY JOB COMPLETE! ]" 41913194                wait 50013195                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown13196                    wait 50013197                    say "[Yell"13198                    settimer EmoteCooldownTimer 013199                    cooldown "Emote Cooldown" SetEmoteCooldown13200                endif13201            endif13202 13203            if insysmsg "You execute your target"13204                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown13205                    wait 50013206                    say "[Awoo"13207                    settimer EmoteCooldownTimer 013208                    cooldown "Emote Cooldown" SetEmoteCooldown13209                else13210                    overhead "[ EXECUTION!! ]" 3713211                endif13212            endif13213 13214            if insysmsg "You shatter your target"13215                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown13216                    wait 50013217                    say "[Awoo"13218                    settimer EmoteCooldownTimer 013219                    cooldown "Emote Cooldown" SetEmoteCooldown13220                else13221                    overhead "[ SHATTERED!! ]" 33313222                endif13223            endif13224 13225            if insysmsg "You deliver a coup de grace"13226                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown13227                    wait 50013228                    say "[Bark"13229                    settimer EmoteCooldownTimer 013230                    cooldown "Emote Cooldown" SetEmoteCooldown13231                else13232                    overhead "[ COUP DE GRACE! ]" 18713233                endif13234            endif13235 13236            if insysmsg "en garde"13237                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown13238                    wait 50013239                    say "[Bark"13240                    settimer EmoteCooldownTimer 013241                    cooldown "Emote Cooldown" SetEmoteCooldown13242                else13243                    overhead "En garde!" 18713244                endif13245            endif13246 13247            if insysmsg "You pulverize your target" and not dead ClosestTarget13248                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown13249                    wait 50013250                    say "[Awoo"13251                    settimer EmoteCooldownTimer 013252                    cooldown "Emote Cooldown" SetEmoteCooldown13253                else13254                    overhead "*[ PULVERIZED! ]" 420 ClosestTarget13255                endif13256            endif13257 13258            if insysmsg "You smash" and not dead ClosestTarget13259                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown13260                    wait 50013261                    say "[Awoo"13262                    settimer EmoteCooldownTimer 013263                    cooldown "Emote Cooldown" SetEmoteCooldown13264                else13265                    overhead "[ SMASHED! ]" 187 ClosestTarget13266                endif13267            endif13268 13269            if insysmsg "Your attack cripples your target" and not dead ClosestTarget13270                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown13271                    wait 50013272                    say "[Awoo"13273                    settimer EmoteCooldownTimer 013274                    cooldown "Emote Cooldown" SetEmoteCooldown13275                else13276                    overhead "[ CRIPPLED! ]" 187 ClosestTarget13277                endif13278            endif13279 13280            if insysmsg "Society Job Progress"13281                overhead "[ � SOCIETY POINTS � ]" 41913282            endif13283 13284            if insysmsg "causes you to bleed"13285                overhead "[ YOU ARE BLEEDING... ]" 211813286            endif13287 13288            if insysmsg "been struck by an ancient blight"13289                overhead "[ DISEASED... ]" 110913290            endif13291 13292            if insysmsg "You feel chilled!"13293                overhead "[ YOU ARE CHILLED... ]" 223413294            endif13295 13296            if insysmsg "You resist a disease effect"13297                overhead "[ DISEASE RESISTED! ]" 88813298            endif13299 13300            if insysmsg "resist a bleed"13301                overhead "[ BLEED RESISTED! ]" 88813302            endif13303 13304            if insysmsg "The creature pierces and bypasses your armor!"13305                overhead "[ YOU ARE PIERCED... ]" 33713306            endif13307 13308            if insysmsg "You cause your target to bleed out" and not dead ClosestTarget13309                overhead "[ BLEED OUT! ]" 2118 ClosestTarget13310            endif13311 13312            if insysmsg "Your attack causes your target to bleed" and not dead ClosestTarget13313                overhead "[ BLEED! ]" 2118 ClosestTarget13314                @setvar! TargetisBleeding 113315            endif13316 13317            if insysmsg "Your shot hinders" and not dead ClosestTarget13318                overhead "[ HINDERED! ]" 149 ClosestTarget13319            endif13320 13321            if insysmsg "Your strike disarms your target!" and not dead ClosestTarget13322                overhead "[ DISARMED! ]" 2114 ClosestTarget13323            endif13324 13325            if insysmsg "Their attack disarms you!"13326                overhead "[ DISARMED! ]" 33713327            endif13328 13329            if insysmsg "Your attack hamstrings your target!" and not dead ClosestTarget13330                overhead "[ HAMSTRUNG! ]" 2117 ClosestTarget13331            endif13332 13333            if insysmsg "Their attack hamstrings you!"13334                overhead "[ HAMSTRUNG! ]" 33713335            endif13336 13337            if insysmsg "Your target overpowers" and not dead ClosestTarget13338                overhead "[ VICIOUS WOUND! ]" 1664 ClosestTarget13339            endif13340 13341            if insysmsg "Barding break avoided" and not dead ClosestTarget13342                overhead "[ BREAK AVOIDED! ]" 84 ClosestTarget13343            endif13344 13345            if insysmsg "You parry the spell"13346                overhead "[ SPELL PARRY ]" 11113347            endif13348 13349            if insysmsg "Frost Shell activated"13350                overhead "[ FROST SHELL! ]" 223413351            endif13352 13353            if insysmsg "Judgment activated"13354                overhead "[ JUDGMENT! ]" 211413355            endif13356 13357            if insysmsg "Cacophony activated"13358                overhead "[ j CACOPHONY! j ]" 224113359            endif13360 13361            if insysmsg "You perform a feint"13362                overhead "[ FEINT! ]" 18713363            endif13364 13365            if insysmsg "attempting to steal" or insysmsg "attempting to peek"13366                overhead "[ THIEF DETECTED! ]" 91013367            endif13368        else13369            if insysmsg "something invisible out of"13370                overhead "� SOMEONE HIDING! �" 613371            endif13372 13373            if insysmsg "additional mastery chain link"13374                overhead "[ � CHAIN! � ]" 14913375                wait 50013376                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 013377                    wait 50013378                    say "[Yell"13379                    settimer EmoteCooldownTimer 013380                    cooldown "Emote Cooldown" SetEmoteCooldown13381                endif13382            endif13383 13384            if insysmsg "enough experience to upgrade"13385                overhead "[ � ASPECT � ]" 223413386                wait 50013387                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 013388                    wait 50013389                    say "[Whistle"13390                    settimer EmoteCooldownTimer 013391                    cooldown "Emote Cooldown" SetEmoteCooldown13392                endif13393            endif13394 13395            if insysmsg "You have unlocked a codex upgrade point"13396                overhead '[ � CODEX! � ]' 211413397                wait 25013398                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 013399                    wait 50013400                    say "[HighFive"13401                    settimer EmoteCooldownTimer 013402                    cooldown "Emote Cooldown" SetEmoteCooldown13403                endif13404            endif13405 13406            if insysmsg "You have completed a society job"13407                overhead "[ SOCIETY COMPLETE! ]" 41913408                wait 50013409                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 013410                    wait 50013411                    say "[Yes"13412                    settimer EmoteCooldownTimer 013413                    cooldown "Emote Cooldown" SetEmoteCooldown13414                endif13415            endif13416 13417            if insysmsg "You deliver a coup de grace"13418                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 013419                    wait 50013420                    say "[Bark"13421                    settimer EmoteCooldownTimer 013422                    cooldown "Emote Cooldown" SetEmoteCooldown13423                else13424                    overhead "*coup de grace!*" 18713425                endif13426            endif13427 13428            if insysmsg "en garde"13429                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 013430                    wait 50013431                    say "[Bark"13432                    settimer EmoteCooldownTimer 013433                    cooldown "Emote Cooldown" SetEmoteCooldown13434                else13435                    overhead "En garde!" 18713436                endif13437            endif13438 13439            if insysmsg "You cause your target to bleed out" and not dead ClosestTarget13440                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 013441                    wait 50013442                    say "[Awoo"13443                    settimer EmoteCooldownTimer 013444                    cooldown "Emote Cooldown" SetEmoteCooldown13445                else13446                    overhead "*bleeding out!*" 2118 ClosestTarget13447                endif13448            endif13449 13450            if insysmsg "You execute your target" and not dead ClosestTarget13451                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 013452                    wait 50013453                    say "[Awoo"13454                    settimer EmoteCooldownTimer 013455                    cooldown "Emote Cooldown" SetEmoteCooldown13456                else13457                    overhead "*executed!*" 2118 ClosestTarget13458                endif13459            endif13460 13461            if insysmsg "You shatter your target" and not dead ClosestTarget13462                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 013463                    wait 50013464                    say "[Awoo"13465                    settimer EmoteCooldownTimer 013466                    cooldown "Emote Cooldown" SetEmoteCooldown13467                else13468                    overhead "*shattered!*" 420 ClosestTarget13469                endif13470            endif13471 13472            if insysmsg "You pulverize your target" and not dead ClosestTarget13473                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 013474                    wait 50013475                    say "[Awoo"13476                    settimer EmoteCooldownTimer 013477                    cooldown "Emote Cooldown" SetEmoteCooldown13478                else13479                    overhead "*pulverized!*" 420 ClosestTarget13480                endif13481            endif13482 13483            if insysmsg "You smash" and not dead ClosestTarget13484                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 013485                    wait 50013486                    say "[Awoo"13487                    settimer EmoteCooldownTimer 013488                    cooldown "Emote Cooldown" SetEmoteCooldown13489                else13490                    overhead "*smashed*" 333 ClosestTarget13491                endif13492            endif13493 13494            if insysmsg "Society Job Progress"13495                overhead "[ � SOCIETY � ]" 41913496            endif13497 13498            if insysmsg "attempting to steal" or insysmsg "attempting to peek"13499                overhead "[ THIEF DETECTED! ]" 91013500            endif13501 13502            if insysmsg "Cacophony activated"13503                overhead " j j j " 224113504            endif13505 13506            if insysmsg "You perform a feint"13507                overhead "*feint*" 18713508            endif13509 13510            if insysmsg "causes your target to bleed" and not dead ClosestTarget13511                overhead "*bleeding*" 2118 ClosestTarget13512                @setvar! TargetisBleeding 113513            endif13514 13515            if insysmsg "Your attack cripples your target" and not dead ClosestTarget13516                overhead "*crippled*" 333 ClosestTarget13517            endif13518 13519            if insysmsg "Your target overpowers" and not dead ClosestTarget13520                overhead "*vicious wound*" 1664 ClosestTarget13521            endif13522 13523            if insysmsg "Your shot hinders" and not dead ClosestTarget13524                overhead "*hindered*" 149 ClosestTarget13525            endif13526 13527            if insysmsg "Your strike disarms your target!" and not dead ClosestTarget13528                overhead "*disarmed*" 2114 ClosestTarget13529            endif13530 13531            if insysmsg "Their attack disarms you!"13532                overhead "*disarmed*" 33713533            endif13534 13535            if insysmsg "Your attack hamstrings your target!" and not dead ClosestTarget13536                overhead "*hamstrung*" 2117 ClosestTarget13537            endif13538 13539            if insysmsg "Their attack hamstrings you!"13540                overhead "*hamstrung*" 33713541            endif13542 13543            if insysmsg "You parry the spell"13544                overhead "*spell parry*" 11113545            endif13546        endif13547 13548        if EnableAutoParalyzePouch = 113549            if paralyzed13550                if findtype "pouch" self13551                    yell "[pouch"13552                    hotkey 'Toggle Peace Only'13553                    if DUNGEONMODE = 113554                        @setvar! TimeToGo 113555                    elseif WILDERNESSMODE = 113556                        @setvar! AutoRecallTime 113557                    endif13558                    break13559                else13560                    if EnableOverheadMessages = 113561                        overhead "[ NO MORE POUCHES! ]" 33713562                    endif13563                endif13564            endif13565        endif13566 13567        if EnableGoldVacuum = 1 and DisableVacuums != 113568            if findtype "gold coin" ground -1 -1 12 as droppedmoney and timer "GoldRadar" > 350013569                overhead " � " 149 droppedmoney13570                settimer "GoldRadar" 013571            endif13572            while findtype "gold coin" ground -1 -1 2 as droppedmoney and diffhits < ActivateAutoHealHPdiff13573                overhead " � " 14913574                hotkey "Grab Item"13575                wft 250013576                target droppedmoney13577                wait 25013578                if insysmsg "Invalid or inaccessible item"13579                    wait 50013580                    @ignore droppedmoney13581                endif13582                wait 25013583            endwhile13584        endif13585 13586        if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff13587            if findtype "Yellow Potion" self as HealPot13588                getlabel HealPot HealPotlabel13589                if "next" in HealPotlabel13590                    // Do nothing13591                else13592                    @setvar! HealPotionCheck 013593 13594                    if counttype 3852 self as HealPotCount13595                        @setvar! HealPotionCheck HealPotCount13596                    endif13597 13598                    clearsysmsg13599                    dclicktype 385213600                    getlabel backpack backpackdesc13601                    wait 25013602 13603                    if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"13604                        settimer 'HealPotionTimer' 013605                        cooldown "Healing Potion" HealingPotionCooldown13606                        if EnableOverheadMessages = 113607                            if insysmsg "potion satchel used"13608                                overhead '[ FREE HEAL POTION ]' 25313609                            else13610                                overhead "[ HEAL POTION ]" 25313611                            endif13612                        endif13613                        clearsysmsg13614                    endif13615                endif13616            else13617                if timer 'HealPotionMessageTimer' > 450013618                    overhead "[ NO HEAL POTS! ]" 33713619                    settimer 'HealPotionMessageTimer' 013620                endif13621            endif13622        endif13623 13624        if diffhits > 0 and not bandaging13625            if skill 'healing' > 013626                if findtype 'clean bandage%s%' self13627                    if targetexists13628                        hotkey 'cancel current target'13629                    endif13630                    hotkey 'Bandage Self'13631                    if EnableOverheadMessages = 113632                        if timer BandageMessageTimer > 500013633                            overhead "[ BANDAGING... ]" 8813634                            settimer BandageMessageTimer 013635                        endif13636                    endif13637                else13638                    if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 113639                        overhead "[ OUT OF BANDAGES! ]" 33713640                        settimer BandageMessageTimer 013641                    endif13642                endif13643            endif13644        endif13645 13646        if EnableCurePotion = 1 and not dead13647            while poisoned13648                if findtype "Orange Potion" self13649                    dclicktype "Orange Potion"13650                    if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 350013651                        overhead "[ CURE POTION ]" 4413652                        settimer 'CurePotionMessageTimer' 013653                    endif13654                    wait 25013655                else13656                    if timer 'CurePotionMessageTimer' > 500013657                        overhead "[ NO CURE POTS! ]" 33713658                        settimer 'CurePotionMessageTimer' 013659                    endif13660 13661                    if not findtype 3972 self or not findtype 3973 self13662                        break13663                    endif13664                endif13665                if not poisoned13666                    break13667                endif13668            endwhile13669        endif13670 13671        if EnablePKradar = 113672            if timer "PKRadar" > 100013673                clearsysmsg13674                hotkey 'Next Murderer Player Target'13675                wait 25013676                if insysmsg "No one matching that was found"13677                    settimer "PKRadar" 013678                else13679                    hotkey 'Toggle Peace Only'13680                    @setvar! RedTargetFound 113681                    @setvar! WarModeToggledWhileFighting 013682                    @setvar! TimeToGo 113683                    @setvar! SkipInfiniteLoop 113684                    @setvar! MurdererTarget lasttarget13685                    if EnableRedAlertOverhead = 113686                        overhead "[ !! RED ALERT !! ]" 3713687                    endif13688                    settimer "REDALERT" 013689                    replay13690                endif13691            endif13692        endif13693 13694        if EnableTrackingAutoRecall = 113695            if PKTrackingRange = 6013696                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"13697                    hotkey 'Toggle Peace Only'13698                    if EnableRedAlertOverhead = 113699                        overhead "[ !! RED ALERT !! ]" 3713700                    endif13701                    settimer "REDALERT" 013702                    @setvar! RedTargetFound 113703                    @setvar! SkipInfiniteLoop 113704                    @setvar! WarModeToggledWhileFighting 013705                    @setvar! TimeToGo 113706                    clearsysmsg13707                    replay13708                endif13709            elseif PKTrackingRange = 5013710                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"13711                    hotkey 'Toggle Peace Only'13712                    if EnableRedAlertOverhead = 113713                        overhead "[ !! RED ALERT !! ]" 3713714                    endif13715                    settimer "REDALERT" 013716                    @setvar! RedTargetFound 113717                    @setvar! SkipInfiniteLoop 113718                    @setvar! WarModeToggledWhileFighting 013719                    @setvar! TimeToGo 113720                    clearsysmsg13721                    replay13722                endif13723            elseif PKTrackingRange = 4013724                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"13725                    hotkey 'Toggle Peace Only'13726                    if EnableRedAlertOverhead = 113727                        overhead "[ !! RED ALERT !! ]" 3713728                    endif13729                    settimer "REDALERT" 013730                    @setvar! RedTargetFound 113731                    @setvar! SkipInfiniteLoop 113732                    @setvar! WarModeToggledWhileFighting 013733                    @setvar! TimeToGo 113734                    clearsysmsg13735                    replay13736                endif13737            elseif PKTrackingRange = 013738                if insysmsg "Now tracking"13739                    hotkey 'Toggle Peace Only'13740                    if EnableRedAlertOverhead = 113741                        overhead "[ !! RED ALERT !! ]" 3713742                    endif13743                    settimer "REDALERT" 013744                    @setvar! RedTargetFound 113745                    @setvar! SkipInfiniteLoop 113746                    @setvar! WarModeToggledWhileFighting 013747                    @setvar! TimeToGo 113748                    clearsysmsg13749                    replay13750                endif13751            endif13752        endif13753 13754        if weight > maxweight and EnableDropGoldWhenOverweight = 113755            if EnableOverheadMessages = 1 or EnableOverheadMessages = 213756                if timer OverweightMessageTimer > 450013757                    overhead "[ OVERWEIGHT! ]" 3413758                    settimer OverweightMessageTimer 013759                endif13760            endif13761 13762            if DropGoldAmount != 013763                clearignore13764                @setvar! DisableVacuums 113765                wait 25013766 13767                if EnablePutLootinLockBox = 113768                    if findtype "wooden box" self as lockbox13769                        if findtype "copper key" self as key13770                            clearignore13771                            getlabel lockbox lockboxlabel13772                            wait 10013773                            if "items" in lockboxlabel13774                                // Do nothing13775                            else13776                                dclick key13777                                wft 150013778                                target lockbox13779                                if EnableOverheadMessages = 113780                                    overhead "[loot box unlocked]" 8413781                                endif13782                                wait 50013783                                if insysmsg "It appears to be locked."13784                                    dclick key13785                                    wft 150013786                                    target lockbox13787                                    wait 25013788                                endif13789                            endif13790                        elseif EnableOverheadMessages = 113791                            overhead "[ NO LOCKBOX KEY! ]" 33713792                        endif13793                    endif13794                endif13795 13796                while weight > maxweight and diffhits <= ActivateAutoHealHPdiff13797                    if findtype "gold coin" self as easycomeeasygo13798                        lift easycomeeasygo DropGoldAmount13799                        droprelloc 0 013800                        getlabel backpack packdesc13801                        if EnableOverheadMessages = 113802                            overhead "[ DROPPING GOLD... ]" 14913803                        endif13804                        wait 25013805                        if insysmsg "cannot drop anything"13806                            drop backpack -1 -1 -113807                            break13808                        endif13809                        wait 25013810                    else13811                        break13812                    endif13813                endwhile13814            endif13815        endif13816 13817        if dead13818            break13819        endif13820 13821 13822        ///////////////////////13823        //  CHIVALRY BUFFS:  //13824        ///////////////////////13825 13826        while not gumpexists 138793032513827            say "[ChivalryHotbar"13828            wait 10013829        endwhile13830 13831        if gumpexists 138793032513832            if ingump "12/" 138793032513833                @setvar! HolySymbols 1213834                @setvar! HolyLightAvailable 113835                @setvar! NobleSacrificeAvailable 113836                @setvar! CleanseByFireAvailable 113837                @setvar! CloseWoundsAvailable 113838                @setvar! DivineFuryAvailable 113839                @setvar! EnemyOfOneAvailable 113840                @setvar! ConsecrateWeaponAvailable 113841            elseif ingump "13/" 138793032513842                @setvar! HolySymbols 1313843                @setvar! HolyLightAvailable 113844                @setvar! NobleSacrificeAvailable 113845                @setvar! CleanseByFireAvailable 113846                @setvar! CloseWoundsAvailable 113847                @setvar! DivineFuryAvailable 113848                @setvar! EnemyOfOneAvailable 113849                @setvar! ConsecrateWeaponAvailable 113850            elseif ingump "14/" 138793032513851                @setvar! HolySymbols 1413852                @setvar! HolyLightAvailable 113853                @setvar! NobleSacrificeAvailable 113854                @setvar! CleanseByFireAvailable 113855                @setvar! CloseWoundsAvailable 113856                @setvar! DivineFuryAvailable 113857                @setvar! EnemyOfOneAvailable 113858                @setvar! ConsecrateWeaponAvailable 113859            elseif ingump "15/" 138793032513860                @setvar! HolySymbols 1513861                @setvar! HolyLightAvailable 113862                @setvar! NobleSacrificeAvailable 113863                @setvar! CleanseByFireAvailable 113864                @setvar! CloseWoundsAvailable 113865                @setvar! DivineFuryAvailable 113866                @setvar! EnemyOfOneAvailable 113867                @setvar! ConsecrateWeaponAvailable 113868            elseif ingump "16/" 138793032513869                @setvar! HolySymbols 1613870                @setvar! HolyLightAvailable 113871                @setvar! NobleSacrificeAvailable 113872                @setvar! CleanseByFireAvailable 113873                @setvar! CloseWoundsAvailable 113874                @setvar! DivineFuryAvailable 113875                @setvar! EnemyOfOneAvailable 113876                @setvar! ConsecrateWeaponAvailable 113877            elseif ingump "17/" 138793032513878                @setvar! HolySymbols 1713879                @setvar! HolyLightAvailable 113880                @setvar! NobleSacrificeAvailable 113881                @setvar! CleanseByFireAvailable 113882                @setvar! CloseWoundsAvailable 113883                @setvar! DivineFuryAvailable 113884                @setvar! EnemyOfOneAvailable 113885                @setvar! ConsecrateWeaponAvailable 113886            elseif ingump "18/" 138793032513887                @setvar! HolySymbols 1813888                @setvar! HolyLightAvailable 113889                @setvar! NobleSacrificeAvailable 113890                @setvar! CleanseByFireAvailable 113891                @setvar! CloseWoundsAvailable 113892                @setvar! DivineFuryAvailable 113893                @setvar! EnemyOfOneAvailable 113894                @setvar! ConsecrateWeaponAvailable 113895            elseif ingump "19/" 138793032513896                @setvar! HolySymbols 1913897                @setvar! HolyLightAvailable 113898                @setvar! NobleSacrificeAvailable 113899                @setvar! CleanseByFireAvailable 113900                @setvar! CloseWoundsAvailable 113901                @setvar! DivineFuryAvailable 113902                @setvar! EnemyOfOneAvailable 113903                @setvar! ConsecrateWeaponAvailable 113904            elseif ingump "20/" 138793032513905                @setvar! HolySymbols 2013906                @setvar! HolyLightAvailable 113907                @setvar! NobleSacrificeAvailable 113908                @setvar! CleanseByFireAvailable 113909                @setvar! CloseWoundsAvailable 113910                @setvar! DivineFuryAvailable 113911                @setvar! EnemyOfOneAvailable 113912                @setvar! ConsecrateWeaponAvailable 113913            elseif ingump "21/" 138793032513914                @setvar! HolySymbols 2113915                @setvar! HolyLightAvailable 113916                @setvar! NobleSacrificeAvailable 113917                @setvar! CleanseByFireAvailable 113918                @setvar! CloseWoundsAvailable 113919                @setvar! DivineFuryAvailable 113920                @setvar! EnemyOfOneAvailable 113921                @setvar! ConsecrateWeaponAvailable 113922            elseif ingump "11/" 138793032513923                @setvar! HolySymbols 1113924                @setvar! HolyLightAvailable 113925                @setvar! NobleSacrificeAvailable 113926                @setvar! CleanseByFireAvailable 113927                @setvar! CloseWoundsAvailable 113928                @setvar! DivineFuryAvailable 113929                @setvar! EnemyOfOneAvailable 113930                @setvar! ConsecrateWeaponAvailable 113931            elseif ingump "10/" 138793032513932                @setvar! HolySymbols 1013933                @setvar! HolyLightAvailable 113934                @setvar! NobleSacrificeAvailable 113935                @setvar! CleanseByFireAvailable 113936                @setvar! CloseWoundsAvailable 113937                @setvar! DivineFuryAvailable 113938                @setvar! EnemyOfOneAvailable 113939                @setvar! ConsecrateWeaponAvailable 113940            elseif ingump "9/" 138793032513941                @setvar! HolySymbols 913942                @setvar! HolyLightAvailable 113943                @setvar! NobleSacrificeAvailable 113944                @setvar! CleanseByFireAvailable 113945                @setvar! CloseWoundsAvailable 113946                @setvar! DivineFuryAvailable 113947                @setvar! EnemyOfOneAvailable 113948                @setvar! ConsecrateWeaponAvailable 113949            elseif ingump "8/" 138793032513950                @setvar! HolySymbols 813951                @setvar! HolyLightAvailable 113952                @setvar! NobleSacrificeAvailable 113953                @setvar! CleanseByFireAvailable 113954                @setvar! CloseWoundsAvailable 113955                @setvar! DivineFuryAvailable 113956                @setvar! EnemyOfOneAvailable 113957                @setvar! ConsecrateWeaponAvailable 113958            elseif ingump "7/" 138793032513959                @setvar! HolySymbols 713960                @setvar! HolyLightAvailable 113961                @setvar! NobleSacrificeAvailable 113962                @setvar! CleanseByFireAvailable 113963                @setvar! CloseWoundsAvailable 113964                @setvar! DivineFuryAvailable 113965                @setvar! EnemyOfOneAvailable 013966                @setvar! ConsecrateWeaponAvailable 113967            elseif ingump "6/" 138793032513968                @setvar! HolySymbols 613969                @setvar! HolyLightAvailable 113970                @setvar! NobleSacrificeAvailable 113971                @setvar! CleanseByFireAvailable 013972                @setvar! CloseWoundsAvailable 013973                @setvar! DivineFuryAvailable 013974                @setvar! EnemyOfOneAvailable 013975                @setvar! ConsecrateWeaponAvailable 013976            elseif ingump "5/" 138793032513977                @setvar! HolySymbols 513978                @setvar! HolyLightAvailable 113979                @setvar! NobleSacrificeAvailable 113980                @setvar! CleanseByFireAvailable 013981                @setvar! CloseWoundsAvailable 013982                @setvar! DivineFuryAvailable 013983                @setvar! EnemyOfOneAvailable 013984                @setvar! ConsecrateWeaponAvailable 013985            elseif ingump "4/" 138793032513986                @setvar! HolySymbols 413987                @setvar! HolyLightAvailable 013988                @setvar! NobleSacrificeAvailable 113989                @setvar! CleanseByFireAvailable 013990                @setvar! CloseWoundsAvailable 013991                @setvar! DivineFuryAvailable 013992                @setvar! EnemyOfOneAvailable 013993                @setvar! ConsecrateWeaponAvailable 013994            elseif ingump "3/" 138793032513995                @setvar! HolySymbols 313996                @setvar! HolyLightAvailable 013997                @setvar! NobleSacrificeAvailable 013998                @setvar! CleanseByFireAvailable 013999                @setvar! CloseWoundsAvailable 014000                @setvar! DivineFuryAvailable 014001                @setvar! EnemyOfOneAvailable 014002                @setvar! ConsecrateWeaponAvailable 014003            elseif ingump "2/" 138793032514004                @setvar! HolySymbols 214005                @setvar! HolyLightAvailable 014006                @setvar! NobleSacrificeAvailable 014007                @setvar! CleanseByFireAvailable 014008                @setvar! CloseWoundsAvailable 014009                @setvar! DivineFuryAvailable 014010                @setvar! EnemyOfOneAvailable 014011                @setvar! ConsecrateWeaponAvailable 014012            elseif ingump "1/" 138793032514013                @setvar! HolySymbols 114014                @setvar! HolyLightAvailable 014015                @setvar! NobleSacrificeAvailable 014016                @setvar! CleanseByFireAvailable 014017                @setvar! CloseWoundsAvailable 014018                @setvar! DivineFuryAvailable 014019                @setvar! EnemyOfOneAvailable 014020                @setvar! ConsecrateWeaponAvailable 014021            elseif ingump "0/" 138793032514022                @setvar! HolySymbols 014023                @setvar! HolyLightAvailable 014024                @setvar! NobleSacrificeAvailable 014025                @setvar! CleanseByFireAvailable 014026                @setvar! CloseWoundsAvailable 014027                @setvar! DivineFuryAvailable 014028                @setvar! EnemyOfOneAvailable 014029                @setvar! ConsecrateWeaponAvailable 014030            endif14031        endif14032 14033        if EnableDivineFury = 114034            if skill "Chivalry" >= 85 and timer "DivineFuryTimer" > 31000 and timer "ChivalryPrevented" > 5000 and DivineFuryAvailable = 114035                clearsysmsg14036                yell "[DivineFury"14037                wait 25014038                if not insysmsg "You do not have enough holy"14039                    settimer "DivineFuryTimer" 014040                    settimer "ChivalryPrevented" 400014041                    cooldown "Divine Fury" 3100014042                    if EnableOverheadMessages = 114043                        overhead "[ DIVINE FURY! ]" 211714044                    endif14045                else14046                    settimer "ChivalryPrevented" 014047                endif14048                wait 25014049            endif14050        endif14051 14052        if EnableEnemyOfOne = 114053            if skill "Chivalry" >= 75 and timer "EnemyOfOneTimer" > 31000 and timer "ChivalryPrevented" > 5000 and timer "DivineFuryTimer" < 31000 and EnemyOfOneAvailable = 114054                yell "[EnemyOfOne"14055                wait 25014056                if not insysmsg "You do not have enough holy"14057                    settimer "EnemyOfOneTimer" 014058                    settimer "ChivalryPrevented" 400014059                    cooldown "Enemy Of One" 3100014060                    if EnableOverheadMessages = 114061                        overhead "[ ENEMY OF ONE! ]" 33214062                    endif14063                else14064                    settimer "ChivalryPrevented" 014065                endif14066                wait 25014067            endif14068        endif14069 14070        if EnableConsecrateWeapon = 114071            if skill "Chivalry" >= 65 and timer "ConsecrateWeaponTimer" > 31000 and timer "ChivalryPrevented" > 5000 and timer "DivineFuryTimer" < 31000 and ConsecrateWeaponAvailable = 114072                yell "[ConsecrateWeapon"14073                wait 25014074                if not insysmsg "You do not have enough holy" and not insysmsg "You must wait a moment"14075                    settimer "ConsecrateWeaponTimer" 014076                    settimer "ChivalryPrevented" 400014077                    cooldown "Consecrate Weapon" 3100014078                    if EnableOverheadMessages = 114079                        overhead "[ CONSECRATE WEAPON! ]" 220614080                    endif14081                else14082                    settimer "ChivalryPrevented" 014083                endif14084                wait 25014085            endif14086        endif14087 14088        if EnableCloseWounds = 114089            if findbuff "Bleed" or findbuff "Diseased"14090                if skill "chivalry" >= 70 and timer "CloseWoundsTimer" > 31000 and timer "ChivalryPrevented" > 5000 and timer "DivineFuryTimer" < 31000 and CloseWoundsAvailable = 114091                    clearsysmsg14092                    yell "[CloseWounds"14093                    wait 25014094                    if insysmsg "You do not have enough holy"14095                        settimer "ChivalryPrevented" 014096                        clearsysmsg14097                    else14098                        settimer "CloseWoundsTimer" 014099                        settimer "ChivalryPrevented" 400014100                        cooldown "Close Wounds" 3100014101                        if EnableOverheadMessages = 114102                            overhead "[ CLOSE WOUNDS! ]" 4814103                        endif14104                    endif14105                    wait 25014106                endif14107            endif14108        endif14109 14110        if EnableCleanseByFire = 114111            if skill "Chivalry" >= 60 and poisoned and timer "CleanseByFireTimer" > 31000 and timer "ChivalryPrevented" > 5000 and timer "DivineFuryTimer" < 31000 and CleanseByFireAvailable = 114112                clearsysmsg14113                yell "[CleanseByFire"14114                wait 25014115                if insysmsg "You do not have enough holy"14116                    settimer "ChivalryPrevented" 014117                    clearsysmsg14118                else14119                    settimer "CleanseByFireTimer" 014120                    settimer "ChivalryPrevented" 400014121                    cooldown "Cleanse By Fire" 3100014122                    if EnableOverheadMessages = 114123                        overhead "[ CLEANSE BY FIRE! ]" 4314124                    endif14125                endif14126                wait 25014127            endif14128        endif14129 14130        if EnablePanaceaPotion = 1 and skill 'Alchemy' >= 8014131            if findbuff "Bleed" or findbuff "Diseased"14132                if not findbuff "panacea potion cooldown"14133                    if findtype "Orange Potion" self14134                        dclicktype "Orange Potion"14135                        wait 50014136                        if findbuff "panacea potion cooldown" and EnableOverheadMessages = 114137                            overhead '[ PANACEA ACTIVATED ]' 5514138                            cooldown "Panacea Potion" 3000014139                        endif14140                    endif14141                endif14142            endif14143        endif14144 14145        if EnableCleansingBrews = 114146            if findbuff "Diseased" or findbuff "Bleed"14147                if timer CleansingBrewTimer > 12000014148                    if findtype 50675 self 2935 as CleansingBrew14149                        dclick CleansingBrew14150                        if EnableOverheadMessages = 114151                            overhead '[ CLEANSING BREW ]' 211714152                        endif14153                        cooldown 'Cleansing Brew' 12000014154                        settimer CleansingBrewTimer 014155                        wait 25014156                    else14157                        if timer CleansingBrewOverhead > 1500014158                            overhead "[ NO CLEANSING BREWS! ]" 33714159                            settimer CleansingBrewOverhead 014160                            settimer CleansingBrewTimer 014161                        endif14162                    endif14163                else14164                    if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 1500014165                        overhead '[ BREW ON COOLDOWN! ]' 3714166                        settimer CleansingBrewOverhead 014167                    endif14168                endif14169            endif14170        endif14171 14172        if EnableFrostAspect = 114173            if insysmsg "Frost Shell activated"14174                cooldown "Frost Shell Active" 500014175                if EnableOverheadMessages = 1 or EnableOverheadMessages = 214176                    overhead "[ FROST SHELL! ]" 223414177                endif14178                if FrostAspectTier = 014179                    cooldown "Frost Shell Cooldown" 3000014180                elseif FrostAspectTier = 114181                    cooldown "Frost Shell Cooldown" 2900014182                elseif FrostAspectTier = 214183                    cooldown "Frost Shell Cooldown" 2800014184                elseif FrostAspectTier = 314185                    cooldown "Frost Shell Cooldown" 2700014186                elseif FrostAspectTier = 414187                    cooldown "Frost Shell Cooldown" 2600014188                elseif FrostAspectTier = 514189                    cooldown "Frost Shell Cooldown" 2500014190                elseif FrostAspectTier = 614191                    cooldown "Frost Shell Cooldown" 2400014192                elseif FrostAspectTier = 714193                    cooldown "Frost Shell Cooldown" 2300014194                elseif FrostAspectTier = 814195                    cooldown "Frost Shell Cooldown" 2200014196                elseif FrostAspectTier = 914197                    cooldown "Frost Shell Cooldown" 2100014198                elseif FrostAspectTier = 1014199                    cooldown "Frost Shell Cooldown" 2000014200                elseif FrostAspectTier = 1114201                    cooldown "Frost Shell Cooldown" 1900014202                elseif FrostAspectTier = 1214203                    cooldown "Frost Shell Cooldown" 1800014204                elseif FrostAspectTier = 1314205                    cooldown "Frost Shell Cooldown" 1700014206                elseif FrostAspectTier = 1414207                    cooldown "Frost Shell Cooldown" 1600014208                elseif FrostAspectTier = 1514209                    cooldown "Frost Shell Cooldown" 1500014210                elseif FrostAspectTier = 1414211                    cooldown "Frost Shell Cooldown" 1500014212                endif14213                clearsysmsg14214            endif14215        endif14216 14217        if EnablePKradar = 114218            if timer "PKRadar" > 100014219                clearsysmsg14220                hotkey 'Next Murderer Player Target'14221                wait 25014222                if insysmsg "No one matching that was found"14223                    settimer "PKRadar" 014224                else14225                    hotkey 'Toggle Peace Only'14226                    @setvar! RedTargetFound 114227                    @setvar! WarModeToggledWhileFighting 014228                    @setvar! TimeToGo 114229                    @setvar! SkipInfiniteLoop 114230                    @setvar! MurdererTarget lasttarget14231                    if EnableRedAlertOverhead = 114232                        overhead "[ !! RED ALERT !! ]" 3714233                    endif14234                    settimer "REDALERT" 014235                    replay14236                endif14237            endif14238        endif14239 14240        if EnableTrackingAutoRecall = 114241            if PKTrackingRange = 6014242                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"14243                    hotkey 'Toggle Peace Only'14244                    if EnableRedAlertOverhead = 114245                        overhead "[ !! RED ALERT !! ]" 3714246                    endif14247                    settimer "REDALERT" 014248                    @setvar! RedTargetFound 114249                    @setvar! SkipInfiniteLoop 114250                    @setvar! WarModeToggledWhileFighting 014251                    @setvar! TimeToGo 114252                    clearsysmsg14253                    replay14254                endif14255            elseif PKTrackingRange = 5014256                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"14257                    hotkey 'Toggle Peace Only'14258                    if EnableRedAlertOverhead = 114259                        overhead "[ !! RED ALERT !! ]" 3714260                    endif14261                    settimer "REDALERT" 014262                    @setvar! RedTargetFound 114263                    @setvar! SkipInfiniteLoop 114264                    @setvar! WarModeToggledWhileFighting 014265                    @setvar! TimeToGo 114266                    clearsysmsg14267                    replay14268                endif14269            elseif PKTrackingRange = 4014270                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"14271                    hotkey 'Toggle Peace Only'14272                    if EnableRedAlertOverhead = 114273                        overhead "[ !! RED ALERT !! ]" 3714274                    endif14275                    settimer "REDALERT" 014276                    @setvar! RedTargetFound 114277                    @setvar! SkipInfiniteLoop 114278                    @setvar! WarModeToggledWhileFighting 014279                    @setvar! TimeToGo 114280                    clearsysmsg14281                    replay14282                endif14283            elseif PKTrackingRange = 014284                if insysmsg "Now tracking"14285                    hotkey 'Toggle Peace Only'14286                    if EnableRedAlertOverhead = 114287                        overhead "[ !! RED ALERT !! ]" 3714288                    endif14289                    settimer "REDALERT" 014290                    @setvar! RedTargetFound 114291                    @setvar! SkipInfiniteLoop 114292                    @setvar! WarModeToggledWhileFighting 014293                    @setvar! TimeToGo 114294                    clearsysmsg14295                    replay14296                endif14297            endif14298        endif14299 14300        if EnableWeightWarningMessage = 114301            if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer "WeightTimer" > 600014302                if EnableOverheadMessages = 1 or EnableOverheadMessages = 214303                    overhead "[ WEIGHT WARNING... ]" 7714304                    settimer "WeightTimer" 014305                else14306                    overhead " � " 7714307                    settimer "WeightTimer" 014308                endif14309            elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer "WeightTimer" > 600014310                if EnableOverheadMessages = 1 or EnableOverheadMessages = 214311                    overhead "[ WEIGHT WARNING! ]" 15314312                    settimer "WeightTimer" 014313                else14314                    overhead " � " 15314315                    settimer "WeightTimer" 014316                endif14317            elseif diffweight <= RedWeightLimitDiffWeight and timer "WeightTimer" > 600014318                if EnableOverheadMessages = 1 or EnableOverheadMessages = 214319                    overhead "[ WEIGHT LIMIT REACHED! ]" 3714320                    settimer "WeightTimer" 014321                else14322                    overhead " � " 3714323                    settimer "WeightTimer" 014324                endif14325 14326                if EnableAutoWeightRecall = 1 and not find ClosestTarget ground -1 -1 8 and WILDERNESSMODE = 114327                    wait 25014328                    if EnableInfiniteLoop != 0 and skill 'Chivalry' >= 9014329                        settimer "InfiniteLoop" 014330                        if EnableInfiniteLoop = 114331                            @setvar! SkipInfiniteLoop 014332                        elseif EnableInfiniteLoop = 214333                            @setvar! SkipInfiniteLoop 014334                        else14335                            @setvar! SkipInfiniteLoop 114336                        endif14337                    endif14338                    hotkey 'Toggle Peace Only'14339                    @setvar! AutoWeightRecall 114340                    @setvar! WarModeToggledWhileFighting 014341                    @setvar! TimeToGo 114342                    break14343                elseif EnableAutoWeightRecall = 1 and find ClosestTarget ground -1 -1 8 and WILDERNESSMODE = 114344                    if EnableInfiniteLoop != 0 and skill 'Chivalry' >= 9014345                        settimer "InfiniteLoop" 014346                    endif14347                    if timer "RECALLDELAY" > 3500 and EnableAutoRecallOverheadMessages = 114348                        overhead "[ WAITING TO RECALL... ]" 14914349                        settimer "RECALLDELAY" 014350                    endif14351                    wait 50014352                elseif EnableAutoWeightDungeonGate = 1 and DUNGEONMODE = 114353                    wait 25014354                    if EnableInfiniteLoop != 0 and skill 'Chivalry' >= 9014355                        settimer "InfiniteLoop" 014356                        if EnableInfiniteLoop = 114357                            @setvar! SkipInfiniteLoop 014358                        elseif EnableInfiniteLoop = 214359                            @setvar! SkipInfiniteLoop 014360                        else14361                            @setvar! SkipInfiniteLoop 114362                        endif14363                    endif14364                    hotkey 'Toggle Peace Only'14365                    @setvar! TimeToGo 114366                    replay14367                else14368                    overhead "[ OVERWEIGHT! ]" 33714369                    sysmsg "Time to head home and unload your loot!" 014370                    settimer "WeightTimer" 014371                endif14372            endif14373        endif14374 14375        if EnableAutoTaunting = 1 and diffhits < ActivateAutoHealHPdiff14376            if skill 'Parrying' >= 80 and find ClosestTarget ground -1 -1 TargetAttackRange and timer "TauntingTimer" > 1500014377                say "[Taunt"14378                wft 100014379                target ClosestTarget14380                wait 25014381                if not targetexists14382                    if insysmsg "Cannot be seen"14383                        settimer "TauntingTimer" 1000014384                    else14385                        if EnableOverheadMessages = 114386                            overhead "[ TAUNTING... ]" 6714387                        endif14388                        settimer "TauntingTimer" 014389                    endif14390                endif14391            endif14392        endif14393 14394        if timer "AttackingTimer" > 50014395            if not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange14396                attack ClosestTarget14397                settimer "AttackingTimer" 014398            elseif not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetDisengageRange14399                if timer "NoTargetTimer" > 300014400                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 214401                        overhead "[ GET CLOSER! ]" 35314402                        overhead " � " 353 ClosestTarget14403                    else14404                        overhead " � " 353 ClosestTarget14405                    endif14406                    settimer "NoTargetTimer" 014407                    settimer "TargetAcquired" 014408                endif14409            else14410                break14411            endif14412        endif14413 14414        if diffhits > 0 and not bandaging14415            if skill 'healing' > 014416                if findtype 'clean bandage%s%' self14417                    if targetexists14418                        hotkey 'cancel current target'14419                    endif14420                    hotkey 'Bandage Self'14421                    if EnableOverheadMessages = 114422                        if timer BandageMessageTimer > 500014423                            overhead "[ BANDAGING... ]" 8814424                            settimer BandageMessageTimer 014425                        endif14426                    endif14427                else14428                    if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 114429                        overhead "[ OUT OF BANDAGES! ]" 33714430                        settimer BandageMessageTimer 014431                    endif14432                endif14433            endif14434        endif14435 14436 14437        //////////////////////14438        //     POTIONS:     //14439        //////////////////////14440 14441        if EnableUsePotionKegs = 1 and findtype 'empty bottle%s%' self and findtype 'keg' self and timer 'PotionKegPVPCooldown' > 3000014442            if not timerexists PotionKegTimer14443                createtimer PotionKegTimer14444                settimer PotionKegTimer 500014445            endif14446 14447            @setvar! PotionStockCheck 014448 14449            while PotionStockCheck < 8 and findtype 'empty bottle%s%' self14450                @setvar! PotionAmounttoFill 014451                if PotionStockCheck = 014452                    if ExplosionPotionAmount != 014453                        @setvar! PotionType 385314454                        @setvar! KegColour 41914455                        @setvar! PotionAmounttoFill ExplosionPotionAmount14456                    endif14457                    @setvar! PotionStockCheck 114458                elseif PotionStockCheck = 114459                    if HealingPotionAmount != 014460                        @setvar! PotionType 385214461                        @setvar! KegColour 25314462                        @setvar! PotionAmounttoFill HealingPotionAmount14463                    endif14464                    @setvar! PotionStockCheck 214465                elseif PotionStockCheck = 214466                    if CurePotionAmount != 014467                        @setvar! PotionType 384714468                        @setvar! KegColour 4414469                        @setvar! PotionAmounttoFill CurePotionAmount14470                    endif14471                    @setvar! PotionStockCheck 314472                elseif PotionStockCheck = 314473                    if RefreshPotionAmount != 014474                        @setvar! PotionType 385114475                        @setvar! KegColour 3714476                        @setvar! PotionAmounttoFill RefreshPotionAmount14477                    endif14478                    @setvar! PotionStockCheck 414479                elseif PotionStockCheck = 414480                    if StrengthPotionAmount != 014481                        @setvar! PotionType 384914482                        @setvar! KegColour 95614483                        @setvar! PotionAmounttoFill StrengthPotionAmount14484                    endif14485                    @setvar! PotionStockCheck 514486                elseif PotionStockCheck = 514487                    if AgilityPotionAmount != 014488                        @setvar! PotionType 384814489                        @setvar! KegColour 9314490                        @setvar! PotionAmounttoFill AgilityPotionAmount14491                    endif14492                    @setvar! PotionStockCheck 614493                elseif PotionStockCheck = 614494                    if ResistPotionAmount != 014495                        @setvar! PotionType 384614496                        @setvar! KegColour 110914497                        @setvar! PotionAmounttoFill ResistPotionAmount14498                    endif14499                    @setvar! PotionStockCheck 714500                elseif PotionStockCheck = 714501                    if PoisonPotionAmount != 014502                        @setvar! PotionType 385014503                        @setvar! KegColour 36314504                        @setvar! PotionAmounttoFill PoisonPotionAmount14505                    endif14506                    @setvar! PotionStockCheck 814507                endif14508 14509                if PotionAmounttoFill != 014510                    while counttype PotionType self < PotionAmounttoFill14511                        if not findtype 'empty bottle%s%' self14512                            if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 500014513                                overhead "[ NO EMPTY BOTTLES... ]" 33714514                                settimer 'PotionKegTimer' 014515                            endif14516                            break14517                        endif14518 14519                        if diffhits > 1014520                            break14521                        endif14522 14523                        if findtype 'keg' self KegColour as myKeg14524                            dclick myKeg14525                            wait 25014526                            if EnableOverheadMessages = 114527                                if timer 'PotionKegTimer' > 200014528                                    overhead '[ FILLING POTS... ]' KegColour14529                                    settimer 'PotionKegTimer' 014530                                endif14531                            endif14532                        else14533                            if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 500014534                                overhead "[ NO KEG TO USE... ]" KegColour14535                                settimer 'PotionKegTimer' 014536                            endif14537                            break14538                        endif14539                        if insysmsg "You have been in combat with another player"14540                            settimer "PotionKegPVPCooldown" 014541                            break14542                        endif14543                    endwhile14544 14545                    if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self14546                        if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 500014547                            overhead "[ NO EMPTY BOTTLES... ]" 33714548                            settimer 'PotionKegTimer' 014549                        endif14550                        break14551                    endif14552                endif14553            endwhile14554        endif14555 14556        if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff14557            if findtype "Yellow Potion" self as HealPot14558                getlabel HealPot HealPotlabel14559                if "next" in HealPotlabel14560                    // Do nothing14561                else14562                    @setvar! HealPotionCheck 014563 14564                    if counttype 3852 self as HealPotCount14565                        @setvar! HealPotionCheck HealPotCount14566                    endif14567 14568                    clearsysmsg14569                    dclicktype 385214570                    getlabel backpack backpackdesc14571                    wait 25014572 14573                    if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"14574                        settimer 'HealPotionTimer' 014575                        cooldown "Healing Potion" HealingPotionCooldown14576                        if EnableOverheadMessages = 114577                            if insysmsg "potion satchel used"14578                                overhead '[ FREE HEAL POTION ]' 25314579                            else14580                                overhead "[ HEAL POTION ]" 25314581                            endif14582                        endif14583                        clearsysmsg14584                    endif14585                endif14586            else14587                if timer 'HealPotionMessageTimer' > 450014588                    overhead "[ NO HEAL POTS! ]" 33714589                    settimer 'HealPotionMessageTimer' 014590                endif14591            endif14592        endif14593 14594        if EnableCurePotion = 1 and not dead14595            while poisoned14596                if EnableCleanseByFire = 114597                    if skill "Chivalry" >= 60 and poisoned and timer "CleanseByFireTimer" > 31000 and timer "ChivalryPrevented" > 5000 and timer "DivineFuryTimer" < 31000 and CleanseByFireAvailable = 114598                        clearsysmsg14599                        yell "[CleanseByFire"14600                        wait 25014601                        if insysmsg "You do not have enough holy"14602                            settimer "ChivalryPrevented" 014603                            clearsysmsg14604                        else14605                            settimer "CleanseByFireTimer" 014606                            settimer "ChivalryPrevented" 400014607                            cooldown "Cleanse By Fire" 3100014608                            if EnableOverheadMessages = 114609                                overhead "[ CLEANSE BY FIRE! ]" 4314610                            endif14611                        endif14612                        wait 25014613                    endif14614                endif14615                if findtype "Orange Potion" self14616                    dclicktype "Orange Potion"14617                    if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 350014618                        overhead "[ CURE POTION ]" 4414619                        settimer 'CurePotionMessageTimer' 014620                    endif14621                    wait 25014622                else14623                    if timer 'CurePotionMessageTimer' > 500014624                        overhead "[ NO CURE POTS! ]" 33714625                        settimer 'CurePotionMessageTimer' 014626                    endif14627 14628                    if not findtype 3972 self or not findtype 3973 self14629                        break14630                    endif14631                endif14632                if not poisoned14633                    break14634                endif14635            endwhile14636        endif14637 14638        if EnableStrengthPotion = 1 and diffhits < ActivateAutoHealHPdiff14639            if skill 'Alchemy' > 0 and skill 'Alchemy' < 214640                if insysmsg "You may now use a strength" or not findbuff "Strength"14641                    if findtype "White Potion" self14642                        dclicktype "White Potion"14643                        if EnableOverheadMessages = 114644                            overhead "[ STRENGTH POTION ]" 95614645                        endif14646                        wait 25014647                    else14648                        if timer StrengthPotionMessageTimer > 450014649                            overhead "[ NO STRENGTH POTS! ]" 33714650                            settimer StrengthPotionMessageTimer 014651                        endif14652                    endif14653                    clearsysmsg14654                endif14655            else14656                if not findbuff "Strength"14657                    if findtype "White Potion" self14658                        dclicktype "White Potion"14659                        if EnableOverheadMessages = 114660                            overhead "[ STRENGTH POTION ]" 95614661                        endif14662                        wait 25014663                    else14664                        if timer StrengthPotionMessageTimer > 450014665                            overhead "[ NO STRENGTH POTS! ]" 33714666                            settimer StrengthPotionMessageTimer 014667                        endif14668                    endif14669                endif14670            endif14671        endif14672 14673        if EnableAgilityPotion = 1 and not findbuff "Agility" and diffhits < ActivateAutoHealHPdiff14674            if findtype "Blue Potion" self14675                dclicktype "Blue Potion"14676                if EnableOverheadMessages = 114677                    overhead "[ AGILITY POTION ]" 9314678                endif14679                wait 25014680            else14681                if timer AgilityPotionMessageTimer > 450014682                    overhead "[ NO AGILITY POTS! ]" 33714683                    settimer AgilityPotionMessageTimer 014684                endif14685            endif14686        endif14687 14688        if EnableMagicResistPotion = 1 and not findbuff "Magic Resist" and diffhits < ActivateAutoHealHPdiff14689            if findtype "Black Potion" self14690                dclicktype "Black Potion"14691                if EnableOverheadMessages = 114692                    overhead "[ RESIST POTION ]" 110914693                endif14694                wait 25014695            else14696                if timer ResistPotionMessageTimer > 450014697                    overhead "[ NO RESIST POTS! ]" 33714698                    settimer ResistPotionMessageTimer 014699                endif14700            endif14701        endif14702 14703        if EnableRefreshPotion = 1 and diffstam > RefreshPotionSPdiff14704            if findtype "Red Potion" self14705                dclicktype "Red Potion"14706                if EnableOverheadMessages = 114707                    overhead "[ REFRESH POTION ]" 3714708                endif14709                wait 50014710            else14711                if timer RefreshPotionMessageTimer > 450014712                    overhead "[ NO REFRESH POTS! ]" 33714713                    settimer RefreshPotionMessageTimer 014714                endif14715            endif14716        endif14717 14718        if timer "AttackingTimer" > 50014719            if not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAttackRange14720                attack ClosestTarget14721                settimer "AttackingTimer" 014722            elseif not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetDisengageRange14723                if timer "NoTargetTimer" > 300014724                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 214725                        overhead "[ GET CLOSER! ]" 35314726                        overhead " � " 353 ClosestTarget14727                    else14728                        overhead " � " 353 ClosestTarget14729                    endif14730                    settimer "NoTargetTimer" 014731                    settimer "TargetAcquired" 014732                endif14733            else14734                break14735            endif14736        endif14737 14738        if EnableAutoExplosionPots = 1 and skill 'Alchemy' >= 80 and diffhits < ActivateAutoHealHPdiff14739            if findtype 'purple potion' self as explotPot14740                getlabel explotPot potLabel14741                if "(" in potLabel14742                    if timer PurplePotionTimer > PurplePotionCooldown14743                        @setvar! PurplePotionReady 114744                    else14745                        @setvar! PurplePotionReady 014746                    endif14747                else14748                    @setvar! PurplePotionReady 114749                endif14750            else14751                if EnableOverheadMessages = 1 and timer ExplosionPotionMessageTimer > 1500014752                    overhead '[ NO PURPLE POTIONS ]' 33714753                    settimer ExplosionPotionMessageTimer 014754                endif14755            endif14756 14757            @setvar! SpellInterrupted 014758 14759            if targetexists14760                hotkey 'cancel current target'14761            endif14762 14763            if PurplePotionReady = 1 and not dead ClosestTarget and find ClosestTarget ground -1 -1 PurplePotionTargetRange14764                while not insysmsg "Where should i throw this potion?" and diffhits <= ActivateAutoHealHPdiff14765                    potion 'explosion'14766                    wait 10014767                endwhile14768 14769                @setvar! PurplePotionReady 014770                settimer PurplePotionTimer 014771 14772                while not targetexists14773                    if dead ClosestTarget and not find ClosestTarget ground -1 -1 PurplePotionTargetRange14774                        @setvar! SpellInterrupted 114775                        hotkey 'cancel current target'14776                        @setvar! SwitchtoIncendiaryAmmo 014777                        break14778                    endif14779                endwhile14780 14781                if SpellInterrupted = 014782                    target ClosestTarget14783                    if EnableOverheadMessages = 114784                        overhead '[ EXPLOSION POT... ]' 41914785                    endif14786                    cooldown "Purple Potion" 1500014787                    getlabel backpack packdesc14788                    wait 25014789                endif14790            endif14791        endif14792 14793        if EnableGoldVacuum = 1 and DisableVacuums != 114794            if findtype "gold coin" ground -1 -1 12 as droppedmoney and timer "GoldRadar" > 350014795                overhead " � " 149 droppedmoney14796                settimer "GoldRadar" 014797            endif14798            while findtype "gold coin" ground -1 -1 2 as droppedmoney and diffhits < ActivateAutoHealHPdiff14799                if diffhits > ActivateAutoHealHPdiff14800                    break14801                endif14802                overhead " � " 14914803                hotkey "Grab Item"14804                wft 250014805                target droppedmoney14806                wait 25014807                if insysmsg "Invalid or inaccessible item"14808                    wait 50014809                    @ignore droppedmoney14810                endif14811                wait 25014812            endwhile14813        endif14814 14815        if EnableDungeonCleanup = 1 and DisableVacuums != 114816            while findtype "iron ingot%s|board%s|cut up leather|3972|3962|3963|3980|3976|3973|3974|3981" ground -1 -1 2 as item and diffhits < ActivateAutoHealHPdiff14817                if diffhits > ActivateAutoHealHPdiff14818                    break14819                endif14820                if EnableOverheadMessages = 114821                    if timer "DungeonCleanup" > 150014822                        overhead '[ CLEANUP... ]' 42014823                        settimer "DungeonCleanup" 014824                    endif14825                else14826                    if timer "DungeonCleanup" > 150014827                        overhead ' � ' 42014828                        settimer "DungeonCleanup" 014829                    endif14830                endif14831                clearsysmsg14832                hotkey "Grab Item"14833                wft 100014834                target item14835                wait 25014836                if insysmsg "Invalid or inaccessible item"14837                    wait 50014838                    @ignore item14839                endif14840                if not warmode14841                    hotkey 'Toggle War Only'14842                    break14843                endif14844            endwhile14845 14846            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" > 350014847                overhead " � " 420 dungeonjunk14848                settimer "DungeonCleanupRadar" 014849            endif14850        endif14851 14852        if EnableArrowCleanup = 1 and skill 'Archery' > 5014853            while findtype 7163|3903 ground -1 -1 2 as item and diffhits < ActivateAutoHealHPdiff14854                if timer "ArrowCleanupTimer" > 350014855                    if EnableOverheadMessages = 114856                        overhead '[ CLEANUP... ]' 9314857                        settimer "ArrowCleanupTimer" 014858                    else14859                        overhead ' � ' 9314860                        settimer "ArrowCleanupTimer" 014861                    endif14862                endif14863                clearsysmsg14864                hotkey "Grab Item"14865                wft 100014866                target item14867                wait 25014868                if insysmsg "Invalid or inaccessible item"14869                     wait 50014870                    @ignore item14871                endif14872                if not warmode14873                    hotkey 'Toggle War Only'14874                    break14875                endif14876            endwhile14877 14878            if findtype "quiver" self as MyQuiver and timer "QuiverTimer" > 3000014879                while findtype "quiver" self as MyQuiver14880                    getlabel MyQuiver MyQuiverdesc14881                    wait 25014882                    if 'decorative' in MyQuiverdesc14883                        @ignore MyQuiver14884                        wait 50014885                    else14886                        break14887                    endif14888                endwhile14889                settimer "QuiverTimer" 014890                menu MyQuiver 014891                wait 25014892            endif14893 14894            if findtype 7163 ground -1 -1 10 as bolt and timer "BoltCleanupRadar" > 350014895                overhead " � " 93 bolt14896                settimer "BoltCleanupRadar" 014897            endif14898 14899            if findtype 3903 ground -1 -1 10 as arrow and timer "ArrowCleanupRadar" > 350014900                overhead " � " 37 arrow14901                settimer "ArrowCleanupRadar" 014902            endif14903        endif14904 14905        if EnableAutoCarving = 1 and findtype 11552 self14906            while findtype "corpse" ground -1 -1 2 as deadbody and diffhits < ActivateAutoHealHPdiff14907                if findtype 11552 self14908                    if targetexists14909                        hotkey 'cancel current target'14910                    endif14911                    while not targetexists14912                        skill 'forensicevaluation'14913                        wait 10014914                    endwhile14915                    if targetexists and find deadbody ground -1 -1 214916                        target 'self'14917                        @ignore deadbody14918                        wait 50014919                    endif14920                    if insysmsg "You dont see anything nearby"14921                        clearsysmsg14922                        break14923                    else14924                        if EnableOverheadMessages = 1 and timer SkinningTimer > 300014925                            overhead "[ SKINNING... ]" 33314926                            settimer SkinningTimer 014927                        endif14928                    endif14929                else14930                    if EnableOverheadMessages = 1 and timer SkinningTimer > 1500014931                        overhead "[ NO SKINNING KNIFE ]" 33714932                        settimer SkinningTimer 014933                        break14934                    endif14935                endif14936            endwhile14937        endif14938 14939        if diffhits >= ActivateAutoHealHPdiff14940            break14941        endif14942 14943        if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff14944            if findtype "Yellow Potion" self as HealPot14945                getlabel HealPot HealPotlabel14946                if "next" in HealPotlabel14947                    // Do nothing14948                else14949                    @setvar! HealPotionCheck 014950 14951                    if counttype 3852 self as HealPotCount14952                        @setvar! HealPotionCheck HealPotCount14953                    endif14954 14955                    clearsysmsg14956                    dclicktype 385214957                    getlabel backpack backpackdesc14958                    wait 25014959 14960                    if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"14961                        settimer 'HealPotionTimer' 014962                        cooldown "Healing Potion" HealingPotionCooldown14963                        if EnableOverheadMessages = 114964                            if insysmsg "potion satchel used"14965                                overhead '[ FREE HEAL POTION ]' 25314966                            else14967                                overhead "[ HEAL POTION ]" 25314968                            endif14969                        endif14970                        clearsysmsg14971                    endif14972                endif14973            else14974                if timer 'HealPotionMessageTimer' > 450014975                    overhead "[ NO HEAL POTS! ]" 33714976                    settimer 'HealPotionMessageTimer' 014977                endif14978            endif14979        endif14980 14981        if diffhits > 0 and not bandaging14982            if skill 'healing' > 014983                if findtype 'clean bandage%s%' self14984                    if targetexists14985                        hotkey 'cancel current target'14986                    endif14987                    hotkey 'Bandage Self'14988                    if EnableOverheadMessages = 114989                        if timer BandageMessageTimer > 500014990                            overhead "[ BANDAGING... ]" 8814991                            settimer BandageMessageTimer 014992                        endif14993                    endif14994                else14995                    if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 114996                        overhead "[ OUT OF BANDAGES! ]" 33714997                        settimer BandageMessageTimer 014998                    endif14999                endif15000            endif15001        endif15002 15003        if insysmsg "your target to bleed"15004            @setvar! TargetisBleeding 115005            clearsysmsg15006        endif15007 15008        if dead15009            break15010        endif15011 15012        if skill 'Provocation' >= 50 and EnableProvocation = 1 and diffhits <= ActivateAutoHealHPdiff15013            if timer "ProvoCheck" > 500 and NeedtoProvoke != 115014                if find ClosestTarget ground -1 -1 TargetBardingRange and find NextClosestTarget ground -1 -1 TargetBardingRange and ClosestTarget != NextClosestTarget15015                    getlabel ClosestTarget descTarget15016                    getlabel NextClosestTarget descNextTarget15017                    wait 25015018                    if "provoked" in descTarget or "provoked" in descNextTarget15019                        if timer "ProvokedTimer" > 3100015020                            settimer "ProvokedTimer" 015021                        endif15022                        @setvar! NeedtoProvoke 015023                        @setvar! NeedtoPacify 115024                        @setvar! NeedtoDiscord 115025                        settimer "ProvoCheck" 015026                        @setvar! SwitchtoIncendiaryAmmo 115027                    else15028                        settimer "ProvokedTimer" 3100015029                        @setvar! NeedtoProvoke 115030                        @setvar! NeedtoPacify 015031                        @setvar! NeedtoDiscord 015032                        settimer "ProvoCheck" 015033                        @setvar! SwitchtoIncendiaryAmmo 015034                    endif15035                else15036                    @setvar! NeedtoProvoke 015037                    settimer "ProvoCheck" 015038                endif15039            endif15040        endif15041 15042        if skill "Peacemaking" >= 50 and EnablePeacemaking = 1 and diffhits <= ActivateAutoHealHPdiff15043            if timer "PeaceCheck" > 500 and NeedtoProvoke != 115044                if find ClosestTarget ground -1 -1 TargetBardingRange15045                    getlabel ClosestTarget descTarget15046                    if EnableProvocation  = 1 and NextClosestTarget != ClosestTarget and find NextClosestTarget ground -1 -1 TargetBardingRange15047                        getlabel NextClosestTarget descNextTarget15048                    endif15049                    wait 25015050                    if "pacified" in descTarget15051                        if timer "PacifiedTimer" > 3100015052                            settimer "PacifiedTimer" 015053                        endif15054                        @setvar! NeedtoPacify 015055                        settimer "PeaceCheck" 015056                    elseif EnableProvocation = 115057                        if "provoked" in descTarget or "provoked" in descNextTarget15058                            @setvar! NeedtoPacify 015059                            settimer "PeaceCheck" 015060                        else15061                            settimer "PacifiedTimer" 3100015062                            @setvar! NeedtoPacify 115063                            settimer "PeaceCheck" 015064                        endif15065                    endif15066                else15067                    break15068                endif15069            endif15070        endif15071 15072        if EnableDiscordance = 1 and skill "Discordance" >= 50 and diffhits <= ActivateAutoHealHPdiff15073            if timer "DiscoCheck" > 500 and NeedtoProvoke != 115074                if find ClosestTarget ground -1 -1 TargetBardingRange15075                    getlabel ClosestTarget descTarget15076                    wait 15015077                    if "discord" in descTarget15078                        if EnableProvocation = 1 and  find NextClosestTarget ground -1 -1 TargetBardingRange and ClosestTarget != NextClosestTarget and NextClosestTarget != 015079                            getlabel NextClosestTarget descNextTarget15080                            wait 25015081                            if "discord" in descNextTarget15082                                @setvar! NeedtoDiscord 015083                                settimer "DiscoCheck" 015084                            else15085                                @setvar! NeedtoDiscord 215086                                settimer "DiscoCheck" 015087                            endif15088                        else15089                            if timer "DiscordedTimer" > 3100015090                                settimer "DiscordedTimer" 015091                            endif15092                            @setvar! NeedtoDiscord 015093                            settimer "DiscoCheck" 015094                        endif15095                    else15096                        settimer "DiscordedTimer" 3100015097                        @setvar! NeedtoDiscord 115098                        settimer "DiscoCheck" 015099                    endif15100                endif15101            endif15102        endif15103 15104        if EnableOverheadMessages = 115105            if insysmsg "something invisible out of"15106                overhead "� SOMEONE HIDING! �" 615107            endif15108 15109            if insysmsg "additional mastery chain link"15110                overhead "[ CHAIN LINK UNLOCKED!! ]" 14915111                wait 50015112                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown15113                    wait 50015114                    say "[Yell"15115                    settimer EmoteCooldownTimer 015116                    cooldown "Emote Cooldown" SetEmoteCooldown15117                endif15118            endif15119 15120            if insysmsg "enough experience to upgrade"15121                overhead "[ ASPECT TIER UNLOCKED!! ]" 223415122                wait 50015123                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown15124                    wait 50015125                    say "[Whistle"15126                    settimer EmoteCooldownTimer 015127                    cooldown "Emote Cooldown" SetEmoteCooldown15128                endif15129            endif15130 15131            if insysmsg "You have unlocked a codex upgrade point"15132                overhead "[ CODEX POINT UNLOCKED! ]" 211415133                wait 25015134                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown15135                    wait 50015136                    say "[HighFive"15137                    settimer EmoteCooldownTimer 015138                    cooldown "Emote Cooldown" SetEmoteCooldown15139                endif15140            endif15141 15142            if insysmsg "You have completed a society job"15143                overhead "[ SOCIETY COMPLETE! ]" 41915144                wait 50015145                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown15146                    wait 50015147                    say "[Yes"15148                    settimer EmoteCooldownTimer 015149                    cooldown "Emote Cooldown" SetEmoteCooldown15150                endif15151            endif15152 15153            if insysmsg "You execute your target"15154                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown15155                    wait 50015156                    say "[Awoo"15157                    settimer EmoteCooldownTimer 015158                    cooldown "Emote Cooldown" SetEmoteCooldown15159                else15160                    overhead "[ EXECUTION!! ]" 3715161                endif15162            endif15163 15164            if insysmsg "You shatter your target"15165                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown15166                    wait 50015167                    say "[Awoo"15168                    settimer EmoteCooldownTimer 015169                    cooldown "Emote Cooldown" SetEmoteCooldown15170                else15171                    overhead "[ SHATTERED!! ]" 33315172                endif15173            endif15174 15175            if insysmsg "You deliver a coup de grace"15176                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown15177                    wait 50015178                    say "[Bark"15179                    settimer EmoteCooldownTimer 015180                    cooldown "Emote Cooldown" SetEmoteCooldown15181                else15182                    overhead "[ COUP DE GRACE! ]" 18715183                endif15184            endif15185 15186            if insysmsg "en garde"15187                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown15188                    wait 50015189                    say "[Bark"15190                    settimer EmoteCooldownTimer 015191                    cooldown "Emote Cooldown" SetEmoteCooldown15192                else15193                    overhead "En garde!" 18715194                endif15195            endif15196 15197            if insysmsg "You pulverize your target" and not dead ClosestTarget15198                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown15199                    wait 50015200                    say "[Awoo"15201                    settimer EmoteCooldownTimer 015202                    cooldown "Emote Cooldown" SetEmoteCooldown15203                else15204                    overhead "*[ PULVERIZED! ]" 420 ClosestTarget15205                endif15206            endif15207 15208            if insysmsg "You smash" and not dead ClosestTarget15209                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown15210                    wait 50015211                    say "[Awoo"15212                    settimer EmoteCooldownTimer 015213                    cooldown "Emote Cooldown" SetEmoteCooldown15214                else15215                    overhead "[ SMASHED! ]" 187 ClosestTarget15216                endif15217            endif15218 15219            if insysmsg "Your attack cripples your target" and not dead ClosestTarget15220                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown15221                    wait 50015222                    say "[Awoo"15223                    settimer EmoteCooldownTimer 015224                    cooldown "Emote Cooldown" SetEmoteCooldown15225                else15226                    overhead "[ CRIPPLED! ]" 187 ClosestTarget15227                endif15228            endif15229 15230            if insysmsg "Society Job Progress"15231                overhead "[ � SOCIETY POINTS � ]" 41915232            endif15233 15234            if insysmsg "causes you to bleed"15235                overhead "[ YOU ARE BLEEDING... ]" 211815236            endif15237 15238            if insysmsg "been struck by an ancient blight"15239                overhead "[ DISEASED... ]" 110915240            endif15241 15242            if insysmsg "You feel chilled!"15243                overhead "[ YOU ARE CHILLED... ]" 223415244            endif15245 15246            if insysmsg "You resist a disease effect"15247                overhead "[ DISEASE RESISTED! ]" 88815248            endif15249 15250            if insysmsg "resist a bleed"15251                overhead "[ BLEED RESISTED! ]" 88815252            endif15253 15254            if insysmsg "The creature pierces and bypasses your armor!"15255                overhead "[ YOU ARE PIERCED... ]" 33715256            endif15257 15258            if insysmsg "You cause your target to bleed out" and not dead ClosestTarget15259                overhead "[ BLEED OUT! ]" 2118 ClosestTarget15260            endif15261 15262            if insysmsg "Your attack causes your target to bleed" and not dead ClosestTarget15263                overhead "[ BLEED! ]" 2118 ClosestTarget15264                @setvar! TargetisBleeding 115265            endif15266 15267            if insysmsg "Your shot hinders" and not dead ClosestTarget15268                overhead "[ HINDERED! ]" 149 ClosestTarget15269            endif15270 15271            if insysmsg "Your strike disarms your target!" and not dead ClosestTarget15272                overhead "[ DISARMED! ]" 2114 ClosestTarget15273            endif15274 15275            if insysmsg "Their attack disarms you!"15276                overhead "[ DISARMED! ]" 33715277            endif15278 15279            if insysmsg "Your attack hamstrings your target!" and not dead ClosestTarget15280                overhead "[ HAMSTRUNG! ]" 2117 ClosestTarget15281            endif15282 15283            if insysmsg "Their attack hamstrings you!"15284                overhead "[ HAMSTRUNG! ]" 33715285            endif15286 15287            if insysmsg "Your target overpowers" and not dead ClosestTarget15288                overhead "[ VICIOUS WOUND! ]" 1664 ClosestTarget15289            endif15290 15291            if insysmsg "Barding break avoided" and not dead ClosestTarget15292                overhead "[ BREAK AVOIDED! ]" 84 ClosestTarget15293            endif15294 15295            if insysmsg "You parry the spell"15296                overhead "[ SPELL PARRY ]" 11115297            endif15298 15299            if insysmsg "Frost Shell activated"15300                overhead "[ FROST SHELL! ]" 223415301            endif15302 15303            if insysmsg "Judgment activated"15304                overhead "[ JUDGMENT! ]" 211415305            endif15306 15307            if insysmsg "Cacophony activated"15308                overhead "[ j CACOPHONY! j ]" 224115309            endif15310 15311            if insysmsg "You perform a feint"15312                overhead "[ FEINT! ]" 18715313            endif15314 15315            if insysmsg "attempting to steal" or insysmsg "attempting to peek"15316                overhead "[ THIEF DETECTED! ]" 91015317            endif15318        else15319            if insysmsg "something invisible out of"15320                overhead "� SOMEONE HIDING! �" 615321            endif15322 15323            if insysmsg "additional mastery chain link"15324                overhead "[ � CHAIN! � ]" 14915325                wait 50015326                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 015327                    wait 50015328                    say "[Yell"15329                    settimer EmoteCooldownTimer 015330                    cooldown "Emote Cooldown" SetEmoteCooldown15331                endif15332            endif15333 15334            if insysmsg "enough experience to upgrade"15335                overhead "[ � ASPECT � ]" 223415336                wait 50015337                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 015338                    wait 50015339                    say "[Whistle"15340                    settimer EmoteCooldownTimer 015341                    cooldown "Emote Cooldown" SetEmoteCooldown15342                endif15343            endif15344 15345            if insysmsg "You have unlocked a codex upgrade point"15346                overhead '[ � CODEX! � ]' 211415347                wait 25015348                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 015349                    wait 50015350                    say "[HighFive"15351                    settimer EmoteCooldownTimer 015352                    cooldown "Emote Cooldown" SetEmoteCooldown15353                endif15354            endif15355 15356            if insysmsg "You have completed a society job"15357                overhead "[ SOCIETY COMPLETE! ]" 41915358                wait 50015359                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 015360                    wait 50015361                    say "[Yes"15362                    settimer EmoteCooldownTimer 015363                    cooldown "Emote Cooldown" SetEmoteCooldown15364                endif15365            endif15366 15367            if insysmsg "You deliver a coup de grace"15368                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 015369                    wait 50015370                    say "[Bark"15371                    settimer EmoteCooldownTimer 015372                    cooldown "Emote Cooldown" SetEmoteCooldown15373                else15374                    overhead "*coup de grace!*" 18715375                endif15376            endif15377 15378            if insysmsg "en garde"15379                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 015380                    wait 50015381                    say "[Bark"15382                    settimer EmoteCooldownTimer 015383                    cooldown "Emote Cooldown" SetEmoteCooldown15384                else15385                    overhead "En garde!" 18715386                endif15387            endif15388 15389            if insysmsg "You cause your target to bleed out" and not dead ClosestTarget15390                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 015391                    wait 50015392                    say "[Awoo"15393                    settimer EmoteCooldownTimer 015394                    cooldown "Emote Cooldown" SetEmoteCooldown15395                else15396                    overhead "*bleeding out!*" 2118 ClosestTarget15397                endif15398            endif15399 15400            if insysmsg "You execute your target" and not dead ClosestTarget15401                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 015402                    wait 50015403                    say "[Awoo"15404                    settimer EmoteCooldownTimer 015405                    cooldown "Emote Cooldown" SetEmoteCooldown15406                else15407                    overhead "*executed!*" 2118 ClosestTarget15408                endif15409            endif15410 15411            if insysmsg "You shatter your target" and not dead ClosestTarget15412                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 015413                    wait 50015414                    say "[Awoo"15415                    settimer EmoteCooldownTimer 015416                    cooldown "Emote Cooldown" SetEmoteCooldown15417                else15418                    overhead "*shattered!*" 420 ClosestTarget15419                endif15420            endif15421 15422            if insysmsg "You pulverize your target" and not dead ClosestTarget15423                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 015424                    wait 50015425                    say "[Awoo"15426                    settimer EmoteCooldownTimer 015427                    cooldown "Emote Cooldown" SetEmoteCooldown15428                else15429                    overhead "*pulverized!*" 420 ClosestTarget15430                endif15431            endif15432 15433            if insysmsg "You smash" and not dead ClosestTarget15434                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown15435                    wait 50015436                    say "[Awoo"15437                    settimer EmoteCooldownTimer 015438                    cooldown "Emote Cooldown" SetEmoteCooldown15439                else15440                    overhead "*smashed*" 333 ClosestTarget15441                endif15442            endif15443 15444            if insysmsg "Society Job Progress"15445                overhead "[ � SOCIETY � ]" 41915446            endif15447 15448            if insysmsg "attempting to steal" or insysmsg "attempting to peek"15449                overhead "[ THIEF DETECTED! ]" 91015450            endif15451 15452            if insysmsg "Cacophony activated"15453                overhead " j j j " 224115454            endif15455 15456            if insysmsg "You perform a feint"15457                overhead "*feint*" 18715458            endif15459 15460            if insysmsg "causes your target to bleed" and not dead ClosestTarget15461                overhead "*bleeding*" 2118 ClosestTarget15462                @setvar! TargetisBleeding 115463            endif15464 15465            if insysmsg "Your attack cripples your target" and not dead ClosestTarget15466                overhead "*crippled*" 333 ClosestTarget15467            endif15468 15469            if insysmsg "Your target overpowers" and not dead ClosestTarget15470                overhead "*vicious wound*" 1664 ClosestTarget15471            endif15472 15473            if insysmsg "Your shot hinders" and not dead ClosestTarget15474                overhead "*hindered*" 149 ClosestTarget15475            endif15476 15477            if insysmsg "Your strike disarms your target!" and not dead ClosestTarget15478                overhead "*disarmed*" 2114 ClosestTarget15479            endif15480 15481            if insysmsg "Their attack disarms you!"15482                overhead "*disarmed*" 33715483            endif15484 15485            if insysmsg "Your attack hamstrings your target!" and not dead ClosestTarget15486                overhead "*hamstrung*" 2117 ClosestTarget15487            endif15488 15489            if insysmsg "Their attack hamstrings you!"15490                overhead "*hamstrung*" 33715491            endif15492 15493            if insysmsg "You parry the spell"15494                overhead "*spell parry*" 11115495            endif15496        endif15497 15498 15499        /////////////////////////15500        //  WEAPON ABILITIES:  //15501        /////////////////////////15502 15503        if not gumpexists 3954121934 and EnableWeaponAbilityHotbar = 115504            say '[abilitieshotbar'15505            waitforgump 3954121934 500015506        endif15507 15508        if EnableWeaponCodexAbilities = 1 and diffhits < ActivateAutoHealHPdiff15509            if skill 'Swordsmanship' >= 50 and find ClosestTarget ground -1 -1 TargetAttackRange and UsingSwords = 115510                if timer 'WeaponAbilityTimer' > WeaponAbilityCooldown15511                    if UseRendAbility = 1 and timer "RendTimer" > 6000015512                        if insysmsg "your target to bleed" or TargetisBleeding = 115513                            clearsysmsg15514                            yell "[WeaponAbility2"15515                            wait 25015516                            if insysmsg "You cannot"15517                                settimer "WeaponAbilityTimer" 2500015518                                clearsysmsg15519                                break15520                            else15521                                if EnableOverheadMessages = 115522                                    overhead "[ REND! ]" 33315523                                elseif EnableOverheadMessages = 215524                                    overhead "*rend ability!*" 33315525                                endif15526                                cooldown "Weapon Ability" WeaponAbilityCooldown15527                                cooldown "Rend Ability" 1500015528                                settimer "RendTimer" 015529                                settimer "WeaponAbilityTimer" 015530                            endif15531                        else15532                            // Target not bleeding - Use Spinslash Ability instead:15533                            if UseSpinslashAbility = 115534                                clearsysmsg15535                                yell "[WeaponAbility1"15536                                wait 25015537                                if insysmsg "You cannot"15538                                    settimer "WeaponAbilityTimer" 2500015539                                    clearsysmsg15540                                else15541                                    if EnableOverheadMessages = 115542                                        overhead "[ SPINSLASH! ]" 33315543                                    elseif EnableOverheadMessages = 215544                                        overhead "*spinslash ability!*" 33315545                                    endif15546                                    cooldown "Weapon Ability" WeaponAbilityCooldown15547                                    cooldown "Spinslash Ability" 1500015548                                    settimer "WeaponAbilityTimer" 015549                                endif15550                            endif15551                        endif15552                    elseif UseSpinslashAbility = 115553                        clearsysmsg15554                        yell "[WeaponAbility1"15555                        wait 25015556                        if insysmsg "You cannot"15557                            settimer "WeaponAbilityTimer" 2500015558                            clearsysmsg15559                        else15560                            if EnableOverheadMessages = 115561                                overhead "[ SPINSLASH! ]" 33315562                            elseif EnableOverheadMessages = 215563                                overhead "*spinslash ability!*" 33315564                            endif15565 15566                            cooldown "Weapon Ability" WeaponAbilityCooldown15567                            cooldown "Spinslash Ability" 1500015568                            settimer "WeaponAbilityTimer" 015569                        endif15570                    endif15571 15572                    if UseChopAbility = 115573                        clearsysmsg15574                        yell "[WeaponAbility3"15575                        wait 25015576                        if insysmsg "You cannot"15577                            settimer "WeaponAbilityTimer" 2500015578                            clearsysmsg15579                        else15580                            if EnableOverheadMessages = 115581                                overhead "[ CHOP! ]" 33315582                            elseif EnableOverheadMessages = 215583                                overhead "*chop ability!*" 33315584                            endif15585                            cooldown "Weapon Ability" WeaponAbilityCooldown15586                            cooldown "Chop Ability" 500015587                            settimer "WeaponAbilityTimer" 015588                        endif15589                    endif15590                endif15591            elseif skill 'Mace Fighting' >= 50 and find ClosestTarget ground -1 -1 TargetAttackRange and UsingMacing = 115592                if timer 'WeaponAbilityTimer' > WeaponAbilityCooldown and UsePummelAbility = 115593                    clearsysmsg15594                    yell "[WeaponAbility1"15595                    wait 25015596                    if insysmsg "You cannot"15597                        settimer "WeaponAbilityTimer" 2500015598                        clearsysmsg15599                    else15600                        if EnableOverheadMessages = 115601                            overhead "[ PUMMEL! ]" 33315602                        elseif EnableOverheadMessages = 215603                            overhead "*pummel ability!*" 33315604                        endif15605                        cooldown "Weapon Ability" WeaponAbilityCooldown15606                        cooldown "Pummel Ability" 1500015607                        settimer "WeaponAbilityTimer" 015608                    endif15609                elseif timer "WeaponAbilityTimer" > WeaponAbilityCooldown and UseStunAbility = 115610                    clearsysmsg15611                    yell "[WeaponAbility2"15612                    wait 25015613                    if insysmsg "You cannot"15614                        settimer "WeaponAbilityTimer" 2500015615                        clearsysmsg15616                    else15617                        if EnableOverheadMessages = 115618                            overhead "[ STUN! ]" 33315619                        elseif EnableOverheadMessages = 215620                            overhead "*stun ability!*" 33315621                        endif15622                        cooldown "Weapon Ability" WeaponAbilityCooldown15623                        cooldown "Stun Ability" 1500015624                        settimer "WeaponAbilityTimer" 015625                    endif15626                elseif timer "WeaponAbilityTimer" > WeaponAbilityCooldown and UseSmashAbility = 115627                    clearsysmsg15628                    yell "[WeaponAbility3"15629                    wait 25015630                    if insysmsg "You cannot"15631                        settimer "WeaponAbilityTimer" 2500015632                        clearsysmsg15633                    else15634                        if EnableOverheadMessages = 115635                            overhead "[ SMASH! ]" 33315636                        elseif EnableOverheadMessages = 215637                            overhead "*smash ability!*" 33315638                        endif15639                        cooldown "Weapon Ability" WeaponAbilityCooldown15640                        cooldown "Smash Ability" 500015641                        settimer "WeaponAbilityTimer" 015642                    endif15643                endif15644            elseif skill 'Fencing' >= 50 and find ClosestTarget ground -1 -1 TargetAttackRange and UsingFencing = 115645                if timer "WeaponAbilityTimer" > WeaponAbilityCooldown and UseGambitAbility = 115646                    clearsysmsg15647                    yell "[WeaponAbility1"15648                    wait 25015649                    if insysmsg "You cannot"15650                        settimer "WeaponAbilityTimer" 2500015651                        clearsysmsg15652                    else15653                        if EnableOverheadMessages = 115654                            overhead "[ GAMBIT! ]" 33315655                        elseif EnableOverheadMessages = 215656                            overhead "*gambit ability!*" 33315657                        endif15658                        cooldown "Weapon Ability" WeaponAbilityCooldown15659                        cooldown "Gambit Ability" 1500015660                        settimer "WeaponAbilityTimer" 015661                    endif15662                elseif timer "WeaponAbilityTimer" > WeaponAbilityCooldown and UseSwiftstrikesAbility = 115663                    clearsysmsg15664                    yell "[WeaponAbility2"15665                    wait 25015666                    if insysmsg "You cannot"15667                        settimer "WeaponAbilityTimer" 2500015668                        clearsysmsg15669                    else15670                        if EnableOverheadMessages = 115671                            overhead "[ SWIFTSTRIKES! ]" 33315672                        elseif EnableOverheadMessages = 215673                            overhead "*swiftstrikes ability!*" 33315674                        endif15675                        cooldown "Weapon Ability" WeaponAbilityCooldown15676                        cooldown "Swiftstrikes Ability" 1500015677                        settimer "WeaponAbilityTimer" 015678                    endif15679                elseif timer "WeaponAbilityTimer" > WeaponAbilityCooldown and UseBaneAbility = 115680                    clearsysmsg15681                    yell "[WeaponAbility3"15682                    wait 25015683                    if insysmsg "You cannot"15684                        settimer "WeaponAbilityTimer" 2500015685                        clearsysmsg15686                    else15687                        if EnableOverheadMessages = 115688                            overhead "[ BANE! ]" 33315689                        elseif EnableOverheadMessages = 215690                            overhead "*bane ability!*" 33315691                        endif15692                        cooldown "Weapon Ability" WeaponAbilityCooldown15693                        cooldown "Bane Ability" 500015694                        settimer "WeaponAbilityTimer" 015695                    endif15696                endif15697            elseif skill 'Archery' >= 50 and find ClosestTarget ground -1 -1 TargetAttackRange and UsingArchery = 115698                if timer "WeaponAbilityTimer" > WeaponAbilityCooldown and UseSkirmishAbility = 115699                    clearsysmsg15700                    yell "[WeaponAbility1"15701                    wait 25015702                    if insysmsg "You cannot"15703                        settimer "WeaponAbilityTimer" 2500015704                        clearsysmsg15705                    else15706                        if EnableOverheadMessages = 115707                            overhead "[ SKIRMISH! ]" 33315708                        elseif EnableOverheadMessages = 215709                            overhead "*skirmish ability!*" 33315710                        endif15711                        cooldown "Weapon Ability" WeaponAbilityCooldown15712                        cooldown "Skirmish Ability" 1500015713                        settimer "WeaponAbilityTimer" 015714                    endif15715                elseif timer "WeaponAbilityTimer" > WeaponAbilityCooldown and UseFullDrawAbility = 115716                    clearsysmsg15717                    yell "[WeaponAbility2"15718                    wait 25015719                    if insysmsg "You cannot"15720                        settimer "WeaponAbilityTimer" 2500015721                        clearsysmsg15722                    else15723                        if EnableOverheadMessages = 115724                            overhead "[ FULL DRAW! ]" 33315725                        elseif EnableOverheadMessages = 215726                            overhead "*full draw ability!*" 33315727                        endif15728                        cooldown "Weapon Ability" WeaponAbilityCooldown15729                        cooldown "Full Draw Ability" 1500015730                        settimer "WeaponAbilityTimer" 015731                    endif15732                elseif timer "WeaponAbilityTimer" > WeaponAbilityCooldown and UseRepeaterAbility = 115733                    clearsysmsg15734                    yell "[WeaponAbility3"15735                    wait 25015736                    if insysmsg "You cannot"15737                        settimer "WeaponAbilityTimer" 2500015738                        clearsysmsg15739                    else15740                        if EnableOverheadMessages = 115741                            overhead "[ REPEATER! ]" 33315742                        elseif EnableOverheadMessages = 215743                            overhead "*repeater ability!*" 33315744                        endif15745                        cooldown "Weapon Ability" WeaponAbilityCooldown15746                        cooldown "Repeater Ability" 500015747                        settimer "WeaponAbilityTimer" 015748                    endif15749                endif15750            elseif skill 'Wrestling' >= 50 and find ClosestTarget ground -1 -1 TargetAttackRange and UsingWrestling = 115751                if timer "WeaponAbilityTimer" > WeaponAbilityCooldown and UseBrawlAbility = 115752                    clearsysmsg15753                    yell "[WeaponAbility1"15754                    wait 25015755                    if insysmsg "You cannot"15756                        settimer "WeaponAbilityTimer" 2500015757                        clearsysmsg15758                    else15759                        if EnableOverheadMessages = 115760                            overhead "[ BRAWL! ]" 33315761                        elseif EnableOverheadMessages = 215762                            overhead "*brawl ability!*" 33315763                        endif15764                        cooldown "Weapon Ability" WeaponAbilityCooldown15765                        cooldown "Brawl Ability" 1500015766                        settimer "WeaponAbilityTimer" 015767                    endif15768                elseif timer "WeaponAbilityTimer" > WeaponAbilityCooldown and UseHaymakerAbility = 115769                    clearsysmsg15770                    yell "[WeaponAbility2"15771                    wait 25015772                    if insysmsg "You cannot"15773                        settimer "WeaponAbilityTimer" 2500015774                        clearsysmsg15775                    else15776                        if EnableOverheadMessages = 115777                            overhead "[ HAYMAKER! ]" 33315778                        elseif EnableOverheadMessages = 215779                            overhead "*haymaker ability!*" 33315780                        endif15781                        cooldown "Weapon Ability" WeaponAbilityCooldown15782                        cooldown "Haymaker Ability" 1500015783                        settimer "WeaponAbilityTimer" 015784                    endif15785                elseif timer "WeaponAbilityTimer" > WeaponAbilityCooldown and UseTakedownAbility = 115786                    clearsysmsg15787                    yell "[WeaponAbility3"15788                    wait 25015789                    if insysmsg "You cannot"15790                        settimer "WeaponAbilityTimer" 2500015791                        clearsysmsg15792                    else15793                        if EnableOverheadMessages = 115794                            overhead "[ TAKEDOWN! ]" 33315795                        elseif EnableOverheadMessages = 215796                            overhead "*takedown ability!*" 33315797                        endif15798                        cooldown "Weapon Ability" WeaponAbilityCooldown15799                        cooldown "Takedown Ability" 500015800                        settimer "WeaponAbilityTimer" 015801                    endif15802                endif15803            elseif skill 'Throwing' >= 50 and find ClosestTarget ground -1 -1 TargetAttackRange and UsingThrowing = 115804                if timer "WeaponAbilityTimer" > WeaponAbilityCooldown and UseClashAbility = 115805                    clearsysmsg15806                    yell "[WeaponAbility1"15807                    wait 25015808                    if insysmsg "You cannot"15809                        settimer "WeaponAbilityTimer" 2500015810                        clearsysmsg15811                    else15812                        if EnableOverheadMessages = 115813                            overhead "[ CLASH! ]" 33315814                        elseif EnableOverheadMessages = 215815                            overhead "*clash ability!*" 33315816                        endif15817                        cooldown "Weapon Ability" WeaponAbilityCooldown15818                        cooldown "Clash Ability" 1500015819                        settimer "WeaponAbilityTimer" 015820                    endif15821                elseif timer "WeaponAbilityTimer" > WeaponAbilityCooldown and UseBlitzAbility = 115822                    clearsysmsg15823                    yell "[WeaponAbility2"15824                    wait 25015825                    if insysmsg "You cannot"15826                        settimer "WeaponAbilityTimer" 2500015827                        clearsysmsg15828                    else15829                        if EnableOverheadMessages = 115830                            overhead "[ BLITZ! ]" 33315831                        elseif EnableOverheadMessages = 215832                            overhead "*blitz ability!*" 33315833                        endif15834                        cooldown "Weapon Ability" WeaponAbilityCooldown15835                        cooldown "Blitz Ability" 1500015836                        settimer "WeaponAbilityTimer" 015837                    endif15838                elseif timer "WeaponAbilityTimer" > WeaponAbilityCooldown and UseHailMaryAbility = 115839                    clearsysmsg15840                    yell "[WeaponAbility3"15841                    wait 25015842                    if insysmsg "You cannot"15843                        settimer "WeaponAbilityTimer" 2500015844                        clearsysmsg15845                    else15846                        if EnableOverheadMessages = 115847                            overhead "[ HAIL MARY! ]" 33315848                        elseif EnableOverheadMessages = 215849                            overhead "*hail mary ability!*" 33315850                        endif15851                        cooldown "Weapon Ability" WeaponAbilityCooldown15852                        cooldown "Hail Mary Ability" 500015853                        settimer "WeaponAbilityTimer" 015854                    endif15855                endif15856            elseif skill 'Dual Wielding' >= 50 and find ClosestTarget ground -1 -1 TargetAttackRange and UsingDualWield = 115857                if timer "WeaponAbilityTimer" > WeaponAbilityCooldown and UseBladewhirlAbility = 115858                    clearsysmsg15859                    yell "[WeaponAbility1"15860                    wait 25015861                    if insysmsg "You cannot"15862                        settimer "WeaponAbilityTimer" 2500015863                        clearsysmsg15864                    else15865                        if EnableOverheadMessages = 115866                            overhead "[ BLADEWHIRL! ]" 33315867                        elseif EnableOverheadMessages = 215868                            overhead "*bladewhirl ability!*" 33315869                        endif15870                        cooldown "Weapon Ability" WeaponAbilityCooldown15871                        cooldown "Bladewhirl Ability" 1500015872                        settimer "WeaponAbilityTimer" 015873                    endif15874                elseif timer "WeaponAbilityTimer" > WeaponAbilityCooldown and UseKnightlyAbility = 115875                    clearsysmsg15876                    yell "[WeaponAbility2"15877                    wait 25015878                    if insysmsg "You cannot"15879                        settimer "WeaponAbilityTimer" 2500015880                        clearsysmsg15881                    else15882                        if EnableOverheadMessages = 115883                            overhead "[ KNIGHTLY! ]" 33315884                        elseif EnableOverheadMessages = 215885                            overhead "*knightly ability!*" 33315886                        endif15887                        cooldown "Weapon Ability" WeaponAbilityCooldown15888                        cooldown "Knightly Ability" 1500015889                        settimer "WeaponAbilityTimer" 015890                    endif15891                elseif timer "WeaponAbilityTimer" > WeaponAbilityCooldown and UseKnaveAbility = 115892                    clearsysmsg15893                    yell "[WeaponAbility3"15894                    wait 25015895                    if insysmsg "You cannot"15896                        settimer "WeaponAbilityTimer" 2500015897                        clearsysmsg15898                    else15899                        if EnableOverheadMessages = 115900                            overhead "[ KNAVE! ]" 33315901                        elseif EnableOverheadMessages = 215902                            overhead "*knave! ability*" 33315903                        endif15904                        cooldown "Weapon Ability" WeaponAbilityCooldown15905                        cooldown "Knave Ability" 500015906                        settimer "WeaponAbilityTimer" 015907                    endif15908                endif15909            endif15910        endif15911 15912        if skill 'Peacemaking' >= 50 or skill 'Provocation' >= 50 or skill 'Discordance' >= 5015913            if EnableProvocationBuff = 1 and not findbuff "Song of Provocation" and timer 'Musicianship' > 5000 and timer "SongBuffDelay" > 10500 and diffhits < ActivateAutoHealHPdiff15914                skill "Provocation"15915                wft 150015916                if insysmsg "What instrument shall you play?"15917                    if findtype "standing harp|sackbut|bamboo flute|tambourine|drum|lute|lap harp|gemshorn|hurdy gurdy|psaltery|shawm|vielle" as Instrument15918                        target Instrument15919                        wait 25015920                    else15921                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 215922                            overhead "[ NO INSTRUMENT! ]" 33715923                        endif15924                    endif15925                endif15926 15927                if not insysmsg "This is not a musical instrument" and targetexists15928                    target backpack15929                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 215930                        overhead "[ j SONG OF PROVOCATION j ]" 211715931                    endif15932                    cooldown "Provocation Buff" 90000015933                    settimer 'Musicianship' 015934                    settimer "SongBuffDelay" 015935                endif15936            endif15937 15938            if EnableDiscordanceBuff = 1 and not findbuff "Song Of Discordance" and timer 'Musicianship' > 5000 and timer "SongBuffDelay" > 10500 and diffhits < ActivateAutoHealHPdiff15939                skill "Discordance"15940                wft 150015941                if insysmsg "What instrument shall you play?"15942                    if findtype "standing harp|sackbut|bamboo flute|tambourine|drum|lute|lap harp|gemshorn|hurdy gurdy|psaltery|shawm|vielle" as Instrument15943                        target Instrument15944                        wait 25015945                    else15946                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 215947                            overhead "[ NO INSTRUMENT! ]" 33715948                        endif15949                    endif15950                endif15951 15952                if not insysmsg "This is not a musical instrument" and targetexists15953                    target backpack15954                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 215955                        overhead "[ j SONG OF DISCORDANCE j ]" 6915956                    endif15957                    cooldown "Discordance Buff" 90000015958                    settimer 'Musicianship' 015959                    settimer "SongBuffDelay" 015960                endif15961            endif15962 15963            if EnablePeacemakingBuff = 1 and not findbuff "Song Of Peacemaking" and timer 'Musicianship' > 5000 and timer "SongBuffDelay" > 10500 and diffhits < ActivateAutoHealHPdiff15964                clearsysmsg15965                skill "Peacemaking"15966                wft 150015967                if insysmsg "What instrument shall you play?"15968                    if findtype "standing harp|sackbut|bamboo flute|tambourine|drum|lute|lap harp|gemshorn|hurdy gurdy|psaltery|shawm|vielle" as Instrument15969                        target Instrument15970                        wait 25015971                    else15972                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 215973                            overhead "[ NO INSTRUMENT! ]" 33715974                        endif15975                    endif15976                endif15977 15978                if not insysmsg "This is not a musical instrument" and targetexists15979                    target backpack15980                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 215981                        overhead "[ j SONG OF PEACEMAKING j ]" 8415982                    endif15983                    cooldown "Peacemaking Buff" 90000015984                    settimer 'Musicianship' 015985                    settimer "SongBuffDelay" 015986                endif15987            endif15988        endif15989 15990        if EnableAutoPoisonWeaponinHand = 1 and diffhits < ActivateAutoHealHPdiff15991            if skill "Poisoning" >= 80 and skill "Taste Identification" >= 8015992                if find '30988|5049|3934|3937|5046|5119|5185|3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|67773|67775|67776|67777|67778' hand as myweapon15993                    @setvar! equippedweapon myweapon15994                    getlabel equippedweapon weapondesc15995 15996                    if "poison charges" in weapondesc15997                        // Do nothing15998                    else15999                        if findtype "Green Potion" self16000                            if EnableOverheadMessages = 116001                                overhead "[ APPLYING POISON... ]" 8416002                            endif16003                            menu equippedweapon 016004                            wait 50016005                        else16006                            if timer "InventoryCheck" > 1500016007                                overhead "[ NO POISON POTIONS ]" 33716008                                settimer "InventoryCheck" 016009                            endif16010                        endif16011                    endif16012                endif16013            endif16014        endif16015 16016        if targetexists16017            if findtype "Elven Spellblade" self16018                targettype "Elven Spellblade"16019            else16020                target backpack16021            endif16022        endif16023 16024        if EnableTrackingAutoRecall = 116025            if PKTrackingRange = 6016026                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"16027                    hotkey 'Toggle Peace Only'16028                    if EnableRedAlertOverhead = 116029                        overhead "[ !! RED ALERT !! ]" 3716030                    endif16031                    settimer "REDALERT" 016032                    @setvar! RedTargetFound 116033                    @setvar! SkipInfiniteLoop 116034                    @setvar! WarModeToggledWhileFighting 016035                    @setvar! TimeToGo 116036                    clearsysmsg16037                    replay16038                endif16039            elseif PKTrackingRange = 5016040                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"16041                    hotkey 'Toggle Peace Only'16042                    if EnableRedAlertOverhead = 116043                        overhead "[ !! RED ALERT !! ]" 3716044                    endif16045                    settimer "REDALERT" 016046                    @setvar! RedTargetFound 116047                    @setvar! SkipInfiniteLoop 116048                    @setvar! WarModeToggledWhileFighting 016049                    @setvar! TimeToGo 116050                    clearsysmsg16051                    replay16052                endif16053            elseif PKTrackingRange = 4016054                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"16055                    hotkey 'Toggle Peace Only'16056                    if EnableRedAlertOverhead = 116057                        overhead "[ !! RED ALERT !! ]" 3716058                    endif16059                    settimer "REDALERT" 016060                    @setvar! RedTargetFound 116061                    @setvar! SkipInfiniteLoop 116062                    @setvar! WarModeToggledWhileFighting 016063                    @setvar! TimeToGo 116064                    clearsysmsg16065                    replay16066                endif16067            elseif PKTrackingRange = 016068                if insysmsg "Now tracking"16069                    hotkey 'Toggle Peace Only'16070                    if EnableRedAlertOverhead = 116071                        overhead "[ !! RED ALERT !! ]" 3716072                    endif16073                    settimer "REDALERT" 016074                    @setvar! RedTargetFound 116075                    @setvar! SkipInfiniteLoop 116076                    @setvar! WarModeToggledWhileFighting 016077                    @setvar! TimeToGo 116078                    clearsysmsg16079                    replay16080                endif16081            endif16082        endif16083 16084        if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff16085            if findtype "Yellow Potion" self as HealPot16086                getlabel HealPot HealPotlabel16087                if "next" in HealPotlabel16088                    // Do nothing16089                else16090                    @setvar! HealPotionCheck 016091 16092                    if counttype 3852 self as HealPotCount16093                        @setvar! HealPotionCheck HealPotCount16094                    endif16095 16096                    clearsysmsg16097                    dclicktype 385216098                    getlabel backpack backpackdesc16099                    wait 25016100 16101                    if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"16102                        settimer 'HealPotionTimer' 016103                        cooldown "Healing Potion" HealingPotionCooldown16104                        if EnableOverheadMessages = 116105                            if insysmsg "potion satchel used"16106                                overhead '[ FREE HEAL POTION ]' 25316107                            else16108                                overhead "[ HEAL POTION ]" 25316109                            endif16110                        endif16111                        clearsysmsg16112                    endif16113                endif16114            else16115                if timer 'HealPotionMessageTimer' > 450016116                    overhead "[ NO HEAL POTS! ]" 33716117                    settimer 'HealPotionMessageTimer' 016118                endif16119            endif16120        endif16121 16122        if diffhits > 0 and not bandaging16123            if skill 'healing' > 016124                if findtype 'clean bandage%s%' self16125                    if targetexists16126                        hotkey 'cancel current target'16127                    endif16128                    hotkey 'Bandage Self'16129                    if EnableOverheadMessages = 116130                        if timer BandageMessageTimer > 500016131                            overhead "[ BANDAGING... ]" 8816132                            settimer BandageMessageTimer 016133                        endif16134                    endif16135                else16136                    if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 116137                        overhead "[ OUT OF BANDAGES! ]" 33716138                        settimer BandageMessageTimer 016139                    endif16140                endif16141            endif16142        endif16143 16144        if EnablePKradar = 116145            if timer "PKRadar" > 100016146                hotkey 'Next Murderer Player Target'16147                wait 25016148                if insysmsg "No one matching that was found"16149                    settimer "PKRadar" 016150                    clearsysmsg16151                else16152                    hotkey 'Toggle Peace Only'16153                    @setvar! RedTargetFound 116154                    @setvar! WarModeToggledWhileFighting 016155                    @setvar! TimeToGo 116156                    @setvar! SkipInfiniteLoop 116157                    @setvar! MurdererTarget lasttarget16158                    if EnableRedAlertOverhead = 116159                        overhead "[ !! RED ALERT !! ]" 3716160                    endif16161                    settimer "REDALERT" 016162                    replay16163                endif16164            endif16165        endif16166 16167        if EnableTrackingAutoRecall = 116168            if PKTrackingRange = 6016169                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"16170                    hotkey 'Toggle Peace Only'16171                    if EnableRedAlertOverhead = 116172                        overhead "[ !! RED ALERT !! ]" 3716173                    endif16174                    settimer "REDALERT" 016175                    @setvar! RedTargetFound 116176                    @setvar! SkipInfiniteLoop 116177                    @setvar! WarModeToggledWhileFighting 016178                    @setvar! TimeToGo 116179                    clearsysmsg16180                    replay16181                endif16182            elseif PKTrackingRange = 5016183                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"16184                    hotkey 'Toggle Peace Only'16185                    if EnableRedAlertOverhead = 116186                        overhead "[ !! RED ALERT !! ]" 3716187                    endif16188                    settimer "REDALERT" 016189                    @setvar! RedTargetFound 116190                    @setvar! SkipInfiniteLoop 116191                    @setvar! WarModeToggledWhileFighting 016192                    @setvar! TimeToGo 116193                    clearsysmsg16194                    replay16195                endif16196            elseif PKTrackingRange = 4016197                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"16198                    hotkey 'Toggle Peace Only'16199                    if EnableRedAlertOverhead = 116200                        overhead "[ !! RED ALERT !! ]" 3716201                    endif16202                    settimer "REDALERT" 016203                    @setvar! RedTargetFound 116204                    @setvar! SkipInfiniteLoop 116205                    @setvar! WarModeToggledWhileFighting 016206                    @setvar! TimeToGo 116207                    clearsysmsg16208                    replay16209                endif16210            elseif PKTrackingRange = 016211                if insysmsg "Now tracking"16212                    hotkey 'Toggle Peace Only'16213                    if EnableRedAlertOverhead = 116214                        overhead "[ !! RED ALERT !! ]" 3716215                    endif16216                    settimer "REDALERT" 016217                    @setvar! RedTargetFound 116218                    @setvar! SkipInfiniteLoop 116219                    @setvar! WarModeToggledWhileFighting 016220                    @setvar! TimeToGo 116221                    clearsysmsg16222                    replay16223                endif16224            endif16225        endif16226 16227        if EnableWeaponCodexAbilities = 116228            if insysmsg "your target to bleed"16229                @setvar! TargetisBleeding 116230                clearsysmsg16231            endif16232        endif16233 16234        if dead16235            break16236        endif16237 16238        if EnableOverheadMessages = 116239            if insysmsg "something invisible out of"16240                overhead "� SOMEONE HIDING! �" 616241            endif16242 16243            if insysmsg "additional mastery chain link"16244                overhead "[ CHAIN LINK UNLOCKED!! ]" 14916245                wait 50016246                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16247                    wait 50016248                    say "[Yell"16249                    settimer EmoteCooldownTimer 016250                    cooldown "Emote Cooldown" SetEmoteCooldown16251                endif16252            endif16253 16254            if insysmsg "enough experience to upgrade"16255                overhead "[ ASPECT TIER UNLOCKED!! ]" 223416256                wait 50016257                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16258                    wait 50016259                    say "[Whistle"16260                    settimer EmoteCooldownTimer 016261                    cooldown "Emote Cooldown" SetEmoteCooldown16262                endif16263            endif16264 16265            if insysmsg "You have unlocked a codex upgrade point"16266                overhead "[ CODEX POINT UNLOCKED! ]" 211416267                wait 25016268                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16269                    wait 50016270                    say "[HighFive"16271                    settimer EmoteCooldownTimer 016272                    cooldown "Emote Cooldown" SetEmoteCooldown16273                endif16274            endif16275 16276            if insysmsg "You have completed a society job"16277                overhead "[ SOCIETY COMPLETE! ]" 41916278                wait 50016279                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16280                    wait 50016281                    say "[Yes"16282                    settimer EmoteCooldownTimer 016283                    cooldown "Emote Cooldown" SetEmoteCooldown16284                endif16285            endif16286 16287            if insysmsg "You execute your target"16288                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16289                    wait 50016290                    say "[Awoo"16291                    settimer EmoteCooldownTimer 016292                    cooldown "Emote Cooldown" SetEmoteCooldown16293                else16294                    overhead "[ EXECUTION!! ]" 3716295                endif16296            endif16297 16298            if insysmsg "You shatter your target"16299                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16300                    wait 50016301                    say "[Awoo"16302                    settimer EmoteCooldownTimer 016303                    cooldown "Emote Cooldown" SetEmoteCooldown16304                else16305                    overhead "[ SHATTERED!! ]" 33316306                endif16307            endif16308 16309            if insysmsg "You deliver a coup de grace"16310                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16311                    wait 50016312                    say "[Bark"16313                    settimer EmoteCooldownTimer 016314                    cooldown "Emote Cooldown" SetEmoteCooldown16315                else16316                    overhead "[ COUP DE GRACE! ]" 18716317                endif16318            endif16319 16320            if insysmsg "en garde"16321                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16322                    wait 50016323                    say "[Bark"16324                    settimer EmoteCooldownTimer 016325                    cooldown "Emote Cooldown" SetEmoteCooldown16326                else16327                    overhead "En garde!" 18716328                endif16329            endif16330 16331            if insysmsg "You pulverize your target" and not dead ClosestTarget16332                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16333                    wait 50016334                    say "[Awoo"16335                    settimer EmoteCooldownTimer 016336                    cooldown "Emote Cooldown" SetEmoteCooldown16337                else16338                    overhead "*[ PULVERIZED! ]" 420 ClosestTarget16339                endif16340            endif16341 16342            if insysmsg "You smash" and not dead ClosestTarget16343                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16344                    wait 50016345                    say "[Awoo"16346                    settimer EmoteCooldownTimer 016347                    cooldown "Emote Cooldown" SetEmoteCooldown16348                else16349                    overhead "[ SMASHED! ]" 187 ClosestTarget16350                endif16351            endif16352 16353            if insysmsg "Your attack cripples your target" and not dead ClosestTarget16354                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown16355                    wait 50016356                    say "[Awoo"16357                    settimer EmoteCooldownTimer 016358                    cooldown "Emote Cooldown" SetEmoteCooldown16359                else16360                    overhead "[ CRIPPLED! ]" 187 ClosestTarget16361                endif16362            endif16363 16364            if insysmsg "Society Job Progress"16365                overhead "[ � SOCIETY POINTS � ]" 41916366            endif16367 16368            if insysmsg "causes you to bleed"16369                overhead "[ YOU ARE BLEEDING... ]" 211816370            endif16371 16372            if insysmsg "been struck by an ancient blight"16373                overhead "[ DISEASED... ]" 110916374            endif16375 16376            if insysmsg "You feel chilled!"16377                overhead "[ YOU ARE CHILLED... ]" 223416378            endif16379 16380            if insysmsg "You resist a disease effect"16381                overhead "[ DISEASE RESISTED! ]" 88816382            endif16383 16384            if insysmsg "resist a bleed"16385                overhead "[ BLEED RESISTED! ]" 88816386            endif16387 16388            if insysmsg "The creature pierces and bypasses your armor!"16389                overhead "[ YOU ARE PIERCED... ]" 33716390            endif16391 16392            if insysmsg "You cause your target to bleed out" and not dead ClosestTarget16393                overhead "[ BLEED OUT! ]" 2118 ClosestTarget16394            endif16395 16396            if insysmsg "Your attack causes your target to bleed" and not dead ClosestTarget16397                overhead "[ BLEED! ]" 2118 ClosestTarget16398                @setvar! TargetisBleeding 116399            endif16400 16401            if insysmsg "Your shot hinders" and not dead ClosestTarget16402                overhead "[ HINDERED! ]" 149 ClosestTarget16403            endif16404 16405            if insysmsg "Your strike disarms your target!" and not dead ClosestTarget16406                overhead "[ DISARMED! ]" 2114 ClosestTarget16407            endif16408 16409            if insysmsg "Their attack disarms you!"16410                overhead "[ DISARMED! ]" 33716411            endif16412 16413            if insysmsg "Your attack hamstrings your target!" and not dead ClosestTarget16414                overhead "[ HAMSTRUNG! ]" 2117 ClosestTarget16415            endif16416 16417            if insysmsg "Their attack hamstrings you!"16418                overhead "[ HAMSTRUNG! ]" 33716419            endif16420 16421            if insysmsg "Your target overpowers" and not dead ClosestTarget16422                overhead "[ VICIOUS WOUND! ]" 1664 ClosestTarget16423            endif16424 16425            if insysmsg "Barding break avoided" and not dead ClosestTarget16426                overhead "[ BREAK AVOIDED! ]" 84 ClosestTarget16427            endif16428 16429            if insysmsg "You parry the spell"16430                overhead "[ SPELL PARRY ]" 11116431            endif16432 16433            if insysmsg "Frost Shell activated"16434                overhead "[ FROST SHELL! ]" 223416435            endif16436 16437            if insysmsg "Judgment activated"16438                overhead "[ JUDGMENT! ]" 211416439            endif16440 16441            if insysmsg "Cacophony activated"16442                overhead "[ j CACOPHONY! j ]" 224116443            endif16444 16445            if insysmsg "You perform a feint"16446                overhead "[ FEINT! ]" 18716447            endif16448 16449            if insysmsg "attempting to steal" or insysmsg "attempting to peek"16450                overhead "[ THIEF DETECTED! ]" 91016451            endif16452        else16453            if insysmsg "something invisible out of"16454                overhead "� SOMEONE HIDING! �" 616455            endif16456 16457            if insysmsg "additional mastery chain link"16458                overhead "[ � CHAIN! � ]" 14916459                wait 50016460                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 016461                    wait 50016462                    say "[Yell"16463                    settimer EmoteCooldownTimer 016464                    cooldown "Emote Cooldown" SetEmoteCooldown16465                endif16466            endif16467 16468            if insysmsg "enough experience to upgrade"16469                overhead "[ � ASPECT � ]" 223416470                wait 50016471                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 016472                    wait 50016473                    say "[Whistle"16474                    settimer EmoteCooldownTimer 016475                    cooldown "Emote Cooldown" SetEmoteCooldown16476                endif16477            endif16478 16479            if insysmsg "You have unlocked a codex upgrade point"16480                overhead '[ � CODEX! � ]' 211416481                wait 25016482                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 016483                    wait 50016484                    say "[HighFive"16485                    settimer EmoteCooldownTimer 016486                    cooldown "Emote Cooldown" SetEmoteCooldown16487                endif16488            endif16489 16490            if insysmsg "You have completed a society job"16491                overhead "[ SOCIETY COMPLETE! ]" 41916492                wait 50016493                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 016494                    wait 50016495                    say "[Yes"16496                    settimer EmoteCooldownTimer 016497                    cooldown "Emote Cooldown" SetEmoteCooldown16498                endif16499            endif16500 16501            if insysmsg "You deliver a coup de grace"16502                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 016503                    wait 50016504                    say "[Bark"16505                    settimer EmoteCooldownTimer 016506                    cooldown "Emote Cooldown" SetEmoteCooldown16507                else16508                    overhead "*coup de grace!*" 18716509                endif16510            endif16511 16512            if insysmsg "en garde"16513                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 016514                    wait 50016515                    say "[Bark"16516                    settimer EmoteCooldownTimer 016517                    cooldown "Emote Cooldown" SetEmoteCooldown16518                else16519                    overhead "En garde!" 18716520                endif16521            endif16522 16523            if insysmsg "You cause your target to bleed out" and not dead ClosestTarget16524                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 016525                    wait 50016526                    say "[Awoo"16527                    settimer EmoteCooldownTimer 016528                    cooldown "Emote Cooldown" SetEmoteCooldown16529                else16530                    overhead "*bleeding out!*" 2118 ClosestTarget16531                endif16532            endif16533 16534            if insysmsg "You execute your target" and not dead ClosestTarget16535                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 016536                    wait 50016537                    say "[Awoo"16538                    settimer EmoteCooldownTimer 016539                    cooldown "Emote Cooldown" SetEmoteCooldown16540                else16541                    overhead "*executed!*" 2118 ClosestTarget16542                endif16543            endif16544 16545            if insysmsg "You shatter your target" and not dead ClosestTarget16546                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 016547                    wait 50016548                    say "[Awoo"16549                    settimer EmoteCooldownTimer 016550                    cooldown "Emote Cooldown" SetEmoteCooldown16551                else16552                    overhead "*shattered!*" 420 ClosestTarget16553                endif16554            endif16555 16556            if insysmsg "You pulverize your target" and not dead ClosestTarget16557                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 016558                    wait 50016559                    say "[Awoo"16560                    settimer EmoteCooldownTimer 016561                    cooldown "Emote Cooldown" SetEmoteCooldown16562                else16563                    overhead "*pulverized!*" 420 ClosestTarget16564                endif16565            endif16566 16567            if insysmsg "You smash" and not dead ClosestTarget16568                if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 016569                    wait 50016570                    say "[Awoo"16571                    settimer EmoteCooldownTimer 016572                    cooldown "Emote Cooldown" SetEmoteCooldown16573                else16574                    overhead "*smashed*" 333 ClosestTarget16575                endif16576            endif16577 16578            if insysmsg "Society Job Progress"16579                overhead "[ � SOCIETY � ]" 41916580            endif16581 16582            if insysmsg "attempting to steal" or insysmsg "attempting to peek"16583                overhead "[ THIEF DETECTED! ]" 91016584            endif16585 16586            if insysmsg "Cacophony activated"16587                overhead " j j j " 224116588            endif16589 16590            if insysmsg "You perform a feint"16591                overhead "*feint*" 18716592            endif16593 16594            if insysmsg "causes your target to bleed" and not dead ClosestTarget16595                overhead "*bleeding*" 2118 ClosestTarget16596                @setvar! TargetisBleeding 116597            endif16598 16599            if insysmsg "Your attack cripples your target" and not dead ClosestTarget16600                overhead "*crippled*" 333 ClosestTarget16601            endif16602 16603            if insysmsg "Your target overpowers" and not dead ClosestTarget16604                overhead "*vicious wound*" 1664 ClosestTarget16605            endif16606 16607            if insysmsg "Your shot hinders" and not dead ClosestTarget16608                overhead "*hindered*" 149 ClosestTarget16609            endif16610 16611            if insysmsg "Your strike disarms your target!" and not dead ClosestTarget16612                overhead "*disarmed*" 2114 ClosestTarget16613            endif16614 16615            if insysmsg "Their attack disarms you!"16616                overhead "*disarmed*" 33716617            endif16618 16619            if insysmsg "Your attack hamstrings your target!" and not dead ClosestTarget16620                overhead "*hamstrung*" 2117 ClosestTarget16621            endif16622 16623            if insysmsg "Their attack hamstrings you!"16624                overhead "*hamstrung*" 33716625            endif16626 16627            if insysmsg "You parry the spell"16628                overhead "*spell parry*" 11116629            endif16630        endif16631 16632        if dead16633            break16634        endif16635 16636        if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff16637            if findtype "Yellow Potion" self as HealPot16638                getlabel HealPot HealPotlabel16639                if "next" in HealPotlabel16640                    // Do nothing16641                else16642                    @setvar! HealPotionCheck 016643 16644                    if counttype 3852 self as HealPotCount16645                        @setvar! HealPotionCheck HealPotCount16646                    endif16647 16648                    clearsysmsg16649                    dclicktype 385216650                    getlabel backpack backpackdesc16651                    wait 25016652 16653                    if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"16654                        settimer 'HealPotionTimer' 016655                        cooldown "Healing Potion" HealingPotionCooldown16656                        if EnableOverheadMessages = 116657                            if insysmsg "potion satchel used"16658                                overhead '[ FREE HEAL POTION ]' 25316659                            else16660                                overhead "[ HEAL POTION ]" 25316661                            endif16662                        endif16663                        clearsysmsg16664                    endif16665                endif16666            else16667                if timer 'HealPotionMessageTimer' > 450016668                    overhead "[ NO HEAL POTS! ]" 33716669                    settimer 'HealPotionMessageTimer' 016670                endif16671            endif16672        endif16673 16674        if diffhits > 0 and not bandaging16675            if skill 'healing' > 016676                if findtype 'clean bandage%s%' self16677                    if targetexists16678                        hotkey 'cancel current target'16679                    endif16680                    hotkey 'Bandage Self'16681                    if EnableOverheadMessages = 116682                        if timer BandageMessageTimer > 500016683                            overhead "[ BANDAGING... ]" 8816684                            settimer BandageMessageTimer 016685                        endif16686                    endif16687                else16688                    if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 116689                        overhead "[ OUT OF BANDAGES! ]" 33716690                        settimer BandageMessageTimer 016691                    endif16692                endif16693            endif16694        endif16695 16696        if not warmode and TimeToGo != 1 and AutoRecallTime != 116697            if SetWeaponCodexStance = 6 or SetShieldCodexStance = 6 or SetWeaponCodexFinisher = 3 or SetWeaponCodexFinisher = 4 or SetShieldCodexFinisher = 3 or SetShieldCodexFinisher = 416698                @setvar! WarModeToggledWhileFighting 116699            endif16700        endif16701 16702        if diffhits >= ActivateAutoHealHPdiff16703            break16704        endif16705 16706        if dead ClosestTarget or not find ClosestTarget ground -1 -1 TargetDisengageRange16707            if skill 'Archery' > 8016708                @setvar! SwitchtoIncendiaryAmmo 016709            endif16710            break16711        endif16712    endwhile16713 16714    //////////////////////////////16715    //  END ATTACK TARGET LOOP  //16716    //////////////////////////////16717 16718    cooldown "Pacified" 016719    cooldown "Provoked" 016720    cooldown "Discorded" 016721    @setvar! NeedtoSecureLoot 116722    @setvar! SwitchtoIncendiaryAmmo 016723    @setvar! TargetisBleeding 016724    settimer "LootTimer" 016725    settimer "STORELOOT" 016726    settimer "AfterKill" 016727    getlabel backpack backpacklabel16728 16729    if WarModeToggledWhileFighting = 1 or warmode16730        if FoundNewTarget != 116731            if not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetDisengageRange and not find ClosestTarget ground -1 -1 TargetAttackRange16732                if timer "NoTargetTimer" > 300016733                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 216734                        overhead "[ GET CLOSER! ]" 35316735                        overhead " � " 353 ClosestTarget16736                    else16737                        overhead " � " 353 ClosestTarget16738                    endif16739                    settimer "NoTargetTimer" 016740                    settimer "TargetAcquired" 016741                endif16742            elseif not dead ClosestTarget and find ClosestTarget ground -1 -1 TargetAnalyzeRange and not find ClosestTarget ground -1 -1 TargetDisengageRange16743                if varexist DisengagedTarget16744                    @unignore DisengagedTarget16745                endif16746                if EnableOverheadMessages = 1 or EnableOverheadMessages = 216747                    overhead "[ DISENGAGING... ]" 33916748                endif16749                settimer "AnalyzeTargetMessageTimer" 016750                settimer "NoTargetTimer" 016751                @setvar! DisengagedTarget ClosestTarget16752                @ignore DisengagedTarget16753            elseif not dead ClosestTarget and find ClosestTarget ground -1 -1 18 and not find ClosestTarget ground -1 -1 TargetAnalyzeRange16754                if EnableOverheadMessages = 1 or EnableOverheadMessages = 216755                    if timer 'NoTargetTimer' > 2000 and TimeToGo != 116756                        overhead "[ TARGET LOST... ]" 33916757                        settimer 'NoTargetTimer' 016758                    endif16759                endif16760            elseif dead ClosestTarget16761                if EnableAxeJuggling = 1 and skill 'Dual Wielding' > 50 and findtype 'dual wield norse axe' hand and DUNGEONMODE = 116762                    if findtype 'juggling hatchets' self as MyJugglingAxes and timer JugglingTimer > SetAxeJugglingCooldown16763                        dclick MyJugglingAxes16764                        wait 25016765                        if insysmsg 'You must wait'16766                            settimer JugglingTimer 2500016767                        else16768                            if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 016769                                say "[Hohoho"16770                                settimer EmoteCooldownTimer 016771                                cooldown "Emote Cooldown" SetEmoteCooldown16772                            else16773                                if EnableOverheadMessages != 016774                                    overhead '*showing off*' 41116775                                endif16776                            endif16777                            settimer JugglingTimer 016778                            cooldown 'Juggling Cooldown' SetAxeJugglingCooldown16779                        endif16780                    else16781                        if EnableOverheadMessages = 1 or EnableOverheadMessages = 216782                            if timer 'NoTargetTimer' > 2000 and TimeToGo != 116783                                overhead "[ TARGET ELIMINATED! ]" 211416784                                settimer 'NoTargetTimer' 016785                            endif16786                        endif16787                    endif16788                else16789                    if EnableOverheadMessages = 1 or EnableOverheadMessages = 216790                        if timer 'NoTargetTimer' > 2000 and TimeToGo != 116791                            overhead "[ TARGET ELIMINATED! ]" 211416792                            settimer 'NoTargetTimer' 016793                        endif16794                    endif16795                endif16796            endif16797        endif16798    endif16799 16800    if EnableOverheadMessages = 116801        if insysmsg "additional mastery chain link!"16802            overhead "[ NEW LINK UNLOCKED!! ]" 14916803            wait 25016804            if EnableUseEmotes = 116805                if timer EmoteCooldownTimer > SetEmoteCooldown16806                    say "[Whistle"16807                    settimer EmoteCooldownTimer 016808                    cooldown "Emote Cooldown" SetEmoteCooldown16809                endif16810            endif16811        endif16812 16813        if insysmsg "You have unlocked a codex upgrade point"16814            overhead "[ CODEX POINT UNLOCKED! ]" 211416815            wait 25016816            if EnableUseEmotes = 116817                if timer EmoteCooldownTimer > SetEmoteCooldown16818                    say "[Whistle"16819                    settimer EmoteCooldownTimer 016820                    cooldown "Emote Cooldown" SetEmoteCooldown16821                endif16822            endif16823        endif16824 16825        if insysmsg "enough experience to upgrade"16826            overhead "[ ASPECT TIER UNLOCKED! ]" 223416827            wait 25016828            if EnableUseEmotes = 116829                if timer EmoteCooldownTimer > SetEmoteCooldown16830                    say "[Whistle"16831                    settimer EmoteCooldownTimer 016832                    cooldown "Emote Cooldown" SetEmoteCooldown16833                endif16834            endif16835        endif16836 16837        if insysmsg "Society Job Progress"16838            overhead "[ � SOCIETY POINTS � ]" 41916839        endif16840 16841        if insysmsg "You have completed a society job"16842            overhead "[ SOCIETY JOB COMPLETE! ]" 41916843            if EnableUseEmotes = 116844                if timer EmoteCooldownTimer > SetEmoteCooldown16845                    say "[Whistle"16846                    settimer EmoteCooldownTimer 016847                    cooldown "Emote Cooldown" SetEmoteCooldown16848                endif16849            endif16850        endif16851    else16852        if insysmsg "additional mastery chain link!"16853            overhead "[ � CHAIN � ]" 14916854            if EnableUseEmotes = 116855                if timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 016856                    say "[Whistle"16857                    settimer EmoteCooldownTimer 016858                    cooldown "Emote Cooldown" SetEmoteCooldown16859                endif16860            endif16861        endif16862 16863        if insysmsg "You have unlocked a codex upgrade point"16864            overhead "[ � CODEX � ]" 211416865            if EnableUseEmotes = 116866                if timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 016867                    say "[Whistle"16868                    settimer EmoteCooldownTimer 016869                    cooldown "Emote Cooldown" SetEmoteCooldown16870                endif16871            endif16872        endif16873 16874        if insysmsg "enough experience to upgrade"16875            overhead "[ � ASPECT � ]" 223416876            if EnableUseEmotes = 116877                if timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 016878                    say "[Whistle"16879                    settimer EmoteCooldownTimer 016880                    cooldown "Emote Cooldown" SetEmoteCooldown16881                endif16882            endif16883        endif16884 16885        if insysmsg "Society Job Progress"16886            overhead "[ � SOCIETY � ]" 41916887        endif16888 16889        if insysmsg "You have completed a society job"16890            overhead "[ SOCIETY JOB COMPLETE! ]" 41916891            if EnableUseEmotes = 116892                if timer EmoteCooldownTimer > SetEmoteCooldown and EnableOverheadMessages != 016893                    say "[Whistle"16894                    settimer EmoteCooldownTimer 016895                    cooldown "Emote Cooldown" SetEmoteCooldown16896                endif16897            endif16898        endif16899    endif16900 16901    if dead16902        break16903    endif16904 16905    if EnableAutoCarving = 1 and findtype 11552 self and diffhits < ActivateAutoHealHPdiff and FoundNewTarget != 116906        while findtype "corpse" ground -1 -1 2 as deadbody and diffhits < ActivateAutoHealHPdiff16907            if findtype 11552 self16908                if targetexists16909                    hotkey 'cancel current target'16910                endif16911                while not targetexists16912                    skill 'forensicevaluation'16913                    wait 10016914                endwhile16915                if targetexists and find deadbody ground -1 -1 216916                    target 'self'16917                    @ignore deadbody16918                    wait 50016919                endif16920                if insysmsg "You dont see anything nearby"16921                    clearsysmsg16922                    break16923                else16924                    if EnableOverheadMessages = 1 and timer SkinningTimer > 300016925                        overhead "[ SKINNING... ]" 33316926                        settimer SkinningTimer 016927                    endif16928                    break16929                endif16930            else16931                if EnableOverheadMessages = 1 and timer SkinningTimer > 1500016932                    overhead "[ NO SKINNING KNIFE ]" 33716933                    settimer SkinningTimer 016934                    break16935                endif16936            endif16937        endwhile16938    endif16939 16940    @setvar! FoundNewTarget 016941 16942    ////////////////////////////16943    //    AFTER KILL LOOP:    //16944    ////////////////////////////16945 16946    while timer "AfterKill" < AfterKillTimer and diffhits < ActivateAutoHealHPdiff16947        if dead16948            break16949        endif16950 16951        if diffhits >= ActivateAutoHealHPdiff16952            break16953        endif16954 16955        if EnableAutoParalyzePouch = 116956            if paralyzed16957                if findtype "pouch" self16958                    yell "[pouch"16959                    hotkey 'Toggle Peace Only'16960                    if DUNGEONMODE = 116961                        @setvar! TimeToGo 116962                    elseif WILDERNESSMODE = 116963                        @setvar! AutoRecallTime 116964                    endif16965                    break16966                else16967                    if EnableOverheadMessages = 116968                        overhead "[ NO MORE POUCHES! ]" 33716969                    endif16970                endif16971            endif16972        endif16973 16974        if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff16975            if findtype "Yellow Potion" self as HealPot16976                getlabel HealPot HealPotlabel16977                if "next" in HealPotlabel16978                    // Do nothing16979                else16980                    @setvar! HealPotionCheck 016981 16982                    if counttype 3852 self as HealPotCount16983                        @setvar! HealPotionCheck HealPotCount16984                    endif16985 16986                    clearsysmsg16987                    dclicktype 385216988                    getlabel backpack backpackdesc16989                    wait 25016990 16991                    if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"16992                        settimer 'HealPotionTimer' 016993                        cooldown "Healing Potion" HealingPotionCooldown16994                        if EnableOverheadMessages = 116995                            if insysmsg "potion satchel used"16996                                overhead '[ FREE HEAL POTION ]' 25316997                            else16998                                overhead "[ HEAL POTION ]" 25316999                            endif17000                        endif17001                        clearsysmsg17002                    endif17003                endif17004            else17005                if timer 'HealPotionMessageTimer' > 450017006                    overhead "[ NO HEAL POTS! ]" 33717007                    settimer 'HealPotionMessageTimer' 017008                endif17009            endif17010        endif17011 17012        if diffhits > 0 and not bandaging17013            if skill 'healing' > 017014                if findtype 'clean bandage%s%' self17015                    if targetexists17016                        hotkey 'cancel current target'17017                    endif17018                    hotkey 'Bandage Self'17019                    if EnableOverheadMessages = 117020                        if timer BandageMessageTimer > 500017021                            overhead "[ BANDAGING... ]" 8817022                            settimer BandageMessageTimer 017023                        endif17024                    endif17025                else17026                    if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 117027                        overhead "[ OUT OF BANDAGES! ]" 33717028                        settimer BandageMessageTimer 017029                    endif17030                endif17031            endif17032        endif17033 17034        while not gumpexists 138793032517035            say "[ChivalryHotbar"17036            wait 10017037        endwhile17038 17039        if gumpexists 138793032517040            if ingump "12/" 138793032517041                @setvar! HolySymbols 1217042                @setvar! HolyLightAvailable 117043                @setvar! NobleSacrificeAvailable 117044                @setvar! CleanseByFireAvailable 117045                @setvar! CloseWoundsAvailable 117046                @setvar! DivineFuryAvailable 117047                @setvar! EnemyOfOneAvailable 117048                @setvar! ConsecrateWeaponAvailable 117049            elseif ingump "13/" 138793032517050                @setvar! HolySymbols 1317051                @setvar! HolyLightAvailable 117052                @setvar! NobleSacrificeAvailable 117053                @setvar! CleanseByFireAvailable 117054                @setvar! CloseWoundsAvailable 117055                @setvar! DivineFuryAvailable 117056                @setvar! EnemyOfOneAvailable 117057                @setvar! ConsecrateWeaponAvailable 117058            elseif ingump "14/" 138793032517059                @setvar! HolySymbols 1417060                @setvar! HolyLightAvailable 117061                @setvar! NobleSacrificeAvailable 117062                @setvar! CleanseByFireAvailable 117063                @setvar! CloseWoundsAvailable 117064                @setvar! DivineFuryAvailable 117065                @setvar! EnemyOfOneAvailable 117066                @setvar! ConsecrateWeaponAvailable 117067            elseif ingump "15/" 138793032517068                @setvar! HolySymbols 1517069                @setvar! HolyLightAvailable 117070                @setvar! NobleSacrificeAvailable 117071                @setvar! CleanseByFireAvailable 117072                @setvar! CloseWoundsAvailable 117073                @setvar! DivineFuryAvailable 117074                @setvar! EnemyOfOneAvailable 117075                @setvar! ConsecrateWeaponAvailable 117076            elseif ingump "16/" 138793032517077                @setvar! HolySymbols 1617078                @setvar! HolyLightAvailable 117079                @setvar! NobleSacrificeAvailable 117080                @setvar! CleanseByFireAvailable 117081                @setvar! CloseWoundsAvailable 117082                @setvar! DivineFuryAvailable 117083                @setvar! EnemyOfOneAvailable 117084                @setvar! ConsecrateWeaponAvailable 117085            elseif ingump "17/" 138793032517086                @setvar! HolySymbols 1717087                @setvar! HolyLightAvailable 117088                @setvar! NobleSacrificeAvailable 117089                @setvar! CleanseByFireAvailable 117090                @setvar! CloseWoundsAvailable 117091                @setvar! DivineFuryAvailable 117092                @setvar! EnemyOfOneAvailable 117093                @setvar! ConsecrateWeaponAvailable 117094            elseif ingump "18/" 138793032517095                @setvar! HolySymbols 1817096                @setvar! HolyLightAvailable 117097                @setvar! NobleSacrificeAvailable 117098                @setvar! CleanseByFireAvailable 117099                @setvar! CloseWoundsAvailable 117100                @setvar! DivineFuryAvailable 117101                @setvar! EnemyOfOneAvailable 117102                @setvar! ConsecrateWeaponAvailable 117103            elseif ingump "19/" 138793032517104                @setvar! HolySymbols 1917105                @setvar! HolyLightAvailable 117106                @setvar! NobleSacrificeAvailable 117107                @setvar! CleanseByFireAvailable 117108                @setvar! CloseWoundsAvailable 117109                @setvar! DivineFuryAvailable 117110                @setvar! EnemyOfOneAvailable 117111                @setvar! ConsecrateWeaponAvailable 117112            elseif ingump "20/" 138793032517113                @setvar! HolySymbols 2017114                @setvar! HolyLightAvailable 117115                @setvar! NobleSacrificeAvailable 117116                @setvar! CleanseByFireAvailable 117117                @setvar! CloseWoundsAvailable 117118                @setvar! DivineFuryAvailable 117119                @setvar! EnemyOfOneAvailable 117120                @setvar! ConsecrateWeaponAvailable 117121            elseif ingump "21/" 138793032517122                @setvar! HolySymbols 2117123                @setvar! HolyLightAvailable 117124                @setvar! NobleSacrificeAvailable 117125                @setvar! CleanseByFireAvailable 117126                @setvar! CloseWoundsAvailable 117127                @setvar! DivineFuryAvailable 117128                @setvar! EnemyOfOneAvailable 117129                @setvar! ConsecrateWeaponAvailable 117130            elseif ingump "11/" 138793032517131                @setvar! HolySymbols 1117132                @setvar! HolyLightAvailable 117133                @setvar! NobleSacrificeAvailable 117134                @setvar! CleanseByFireAvailable 117135                @setvar! CloseWoundsAvailable 117136                @setvar! DivineFuryAvailable 117137                @setvar! EnemyOfOneAvailable 117138                @setvar! ConsecrateWeaponAvailable 117139            elseif ingump "10/" 138793032517140                @setvar! HolySymbols 1017141                @setvar! HolyLightAvailable 117142                @setvar! NobleSacrificeAvailable 117143                @setvar! CleanseByFireAvailable 117144                @setvar! CloseWoundsAvailable 117145                @setvar! DivineFuryAvailable 117146                @setvar! EnemyOfOneAvailable 117147                @setvar! ConsecrateWeaponAvailable 117148            elseif ingump "9/" 138793032517149                @setvar! HolySymbols 917150                @setvar! HolyLightAvailable 117151                @setvar! NobleSacrificeAvailable 117152                @setvar! CleanseByFireAvailable 117153                @setvar! CloseWoundsAvailable 117154                @setvar! DivineFuryAvailable 117155                @setvar! EnemyOfOneAvailable 117156                @setvar! ConsecrateWeaponAvailable 117157            elseif ingump "8/" 138793032517158                @setvar! HolySymbols 817159                @setvar! HolyLightAvailable 117160                @setvar! NobleSacrificeAvailable 117161                @setvar! CleanseByFireAvailable 117162                @setvar! CloseWoundsAvailable 117163                @setvar! DivineFuryAvailable 117164                @setvar! EnemyOfOneAvailable 117165                @setvar! ConsecrateWeaponAvailable 117166            elseif ingump "7/" 138793032517167                @setvar! HolySymbols 717168                @setvar! HolyLightAvailable 117169                @setvar! NobleSacrificeAvailable 117170                @setvar! CleanseByFireAvailable 117171                @setvar! CloseWoundsAvailable 117172                @setvar! DivineFuryAvailable 117173                @setvar! EnemyOfOneAvailable 017174                @setvar! ConsecrateWeaponAvailable 117175            elseif ingump "6/" 138793032517176                @setvar! HolySymbols 617177                @setvar! HolyLightAvailable 117178                @setvar! NobleSacrificeAvailable 117179                @setvar! CleanseByFireAvailable 117180                @setvar! CloseWoundsAvailable 117181                @setvar! DivineFuryAvailable 017182                @setvar! EnemyOfOneAvailable 017183                @setvar! ConsecrateWeaponAvailable 017184            elseif ingump "5/" 138793032517185                @setvar! HolySymbols 517186                @setvar! HolyLightAvailable 117187                @setvar! NobleSacrificeAvailable 117188                @setvar! CleanseByFireAvailable 117189                @setvar! CloseWoundsAvailable 117190                @setvar! DivineFuryAvailable 017191                @setvar! EnemyOfOneAvailable 017192                @setvar! ConsecrateWeaponAvailable 017193            elseif ingump "4/" 138793032517194                @setvar! HolySymbols 417195                @setvar! HolyLightAvailable 017196                @setvar! NobleSacrificeAvailable 117197                @setvar! CleanseByFireAvailable 117198                @setvar! CloseWoundsAvailable 117199                @setvar! DivineFuryAvailable 017200                @setvar! EnemyOfOneAvailable 017201                @setvar! ConsecrateWeaponAvailable 017202            elseif ingump "3/" 138793032517203                @setvar! HolySymbols 317204                @setvar! HolyLightAvailable 017205                @setvar! NobleSacrificeAvailable 017206                @setvar! CleanseByFireAvailable 117207                @setvar! CloseWoundsAvailable 117208                @setvar! DivineFuryAvailable 017209                @setvar! EnemyOfOneAvailable 017210                @setvar! ConsecrateWeaponAvailable 017211            elseif ingump "2/" 138793032517212                @setvar! HolySymbols 217213                @setvar! HolyLightAvailable 017214                @setvar! NobleSacrificeAvailable 017215                @setvar! CleanseByFireAvailable 117216                @setvar! CloseWoundsAvailable 017217                @setvar! DivineFuryAvailable 017218                @setvar! EnemyOfOneAvailable 017219                @setvar! ConsecrateWeaponAvailable 017220            elseif ingump "1/" 138793032517221                @setvar! HolySymbols 117222                @setvar! HolyLightAvailable 017223                @setvar! NobleSacrificeAvailable 017224                @setvar! CleanseByFireAvailable 017225                @setvar! CloseWoundsAvailable 017226                @setvar! DivineFuryAvailable 017227                @setvar! EnemyOfOneAvailable 017228                @setvar! ConsecrateWeaponAvailable 017229            elseif ingump "0/" 138793032517230                @setvar! HolySymbols 017231                @setvar! HolyLightAvailable 017232                @setvar! NobleSacrificeAvailable 017233                @setvar! CleanseByFireAvailable 017234                @setvar! CloseWoundsAvailable 017235                @setvar! DivineFuryAvailable 017236                @setvar! EnemyOfOneAvailable 017237                @setvar! ConsecrateWeaponAvailable 017238            endif17239        endif17240 17241        if EnableNobleSacrifice = 117242            if diffhits >= NobleSacrificeHPdiff and skill "Chivalry" >= 80 and timer 'NobleSacrificeTimer' > 31000 and timer 'ChivalryPrevented' > 5000 and NobleSacrificeAvailable = 117243                clearsysmsg17244                yell "[NobleSacrifice"17245                wait 25017246                if insysmsg "You do not have enough holy"17247                    settimer 'ChivalryPrevented' 017248                    clearsysmsg17249                else17250                    wft 100017251                    target 'self'17252                    if EnableOverheadMessages = 117253                        overhead "[ NOBLE SACRIFICE! ]" 15517254                    endif17255                    settimer 'NobleSacrificeTimer' 017256                    cooldown "Noble Sacrifice" 3100017257                    settimer 'ChivalryPrevented' 400017258                endif17259                wait 25017260            endif17261        endif17262 17263        if EnableHolyLight = 117264            if diffhits >= HolyLightHPdiff and skill "Chivalry" >= 95 and timer 'HolyLightTimer' > 31000 and timer 'ChivalryPrevented' > 5000 and HolyLightAvailable = 117265                clearsysmsg17266                yell "[HolyLight"17267                wait 25017268                if insysmsg "You do not have enough holy"17269                    settimer 'ChivalryPrevented' 017270                    clearsysmsg17271                else17272                    if EnableOverheadMessages = 117273                        overhead "[ HOLY LIGHT! ]" 25417274                    endif17275                    settimer 'HolyLightTimer' 017276                    cooldown "Holy Light" 3100017277                    settimer 'ChivalryPrevented' 400017278                endif17279                wait 25017280            endif17281        endif17282 17283        if EnableCurePotion = 1 and not dead17284            while poisoned17285                if EnableCleanseByFire = 117286                    if skill "Chivalry" >= 60 and poisoned and timer "CleanseByFireTimer" > 31000 and timer "ChivalryPrevented" > 5000 and timer "DivineFuryTimer" < 31000 and CleanseByFireAvailable = 117287                        clearsysmsg17288                        yell "[CleanseByFire"17289                        wait 25017290                        if insysmsg "You do not have enough holy"17291                            settimer "ChivalryPrevented" 017292                            clearsysmsg17293                        else17294                            settimer "CleanseByFireTimer" 017295                            settimer "ChivalryPrevented" 400017296                            cooldown "Cleanse By Fire" 3100017297                            if EnableOverheadMessages = 117298                                overhead "[ CLEANSE BY FIRE! ]" 4317299                            endif17300                        endif17301                        wait 25017302                    endif17303                endif17304                if findtype "Orange Potion" self17305                    dclicktype "Orange Potion"17306                    if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 350017307                        overhead "[ CURE POTION ]" 4417308                        settimer 'CurePotionMessageTimer' 017309                    endif17310                    wait 25017311                else17312                    if timer 'CurePotionMessageTimer' > 500017313                        overhead "[ NO CURE POTS! ]" 33717314                        settimer 'CurePotionMessageTimer' 017315                    endif17316 17317                    if not findtype 3972 self or not findtype 3973 self17318                        break17319                    endif17320                endif17321                if not poisoned17322                    break17323                endif17324            endwhile17325        endif17326 17327        if targetexists17328            if findtype " Elven Spellblade" self17329                targettype "Elven Spellblade"17330            else17331                target backpack17332            endif17333        endif17334 17335        if EnableWeightWarningMessage = 117336            if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer "WeightTimer" > 600017337                if EnableOverheadMessages = 1 or EnableOverheadMessages = 217338                    overhead "[ WEIGHT WARNING... ]" 7717339                    settimer "WeightTimer" 017340                else17341                    overhead " � " 7717342                    settimer "WeightTimer" 017343                endif17344            elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer "WeightTimer" > 600017345                if EnableOverheadMessages = 1 or EnableOverheadMessages = 217346                    overhead "[ WEIGHT WARNING! ]" 15317347                    settimer "WeightTimer" 017348                else17349                    overhead " � " 15317350                    settimer "WeightTimer" 017351                endif17352            elseif diffweight <= RedWeightLimitDiffWeight and timer "WeightTimer" > 600017353                if EnableOverheadMessages = 1 or EnableOverheadMessages = 217354                    overhead "[ WEIGHT LIMIT REACHED! ]" 3717355                    settimer "WeightTimer" 017356                else17357                    overhead " � " 3717358                    settimer "WeightTimer" 017359                endif17360 17361                if EnableAutoWeightRecall = 1 and not find ClosestTarget ground -1 -1 8 and WILDERNESSMODE = 117362                    wait 25017363                    if EnableInfiniteLoop != 0 and skill 'Chivalry' >= 9017364                        settimer "InfiniteLoop" 017365                        if EnableInfiniteLoop = 117366                            @setvar! SkipInfiniteLoop 017367                        elseif EnableInfiniteLoop = 217368                            @setvar! SkipInfiniteLoop 017369                        else17370                            @setvar! SkipInfiniteLoop 117371                        endif17372                    endif17373                    hotkey 'Toggle Peace Only'17374                    @setvar! AutoWeightRecall 117375                    @setvar! WarModeToggledWhileFighting 017376                    @setvar! TimeToGo 117377                    break17378                elseif EnableAutoWeightRecall = 1 and find ClosestTarget ground -1 -1 8 and WILDERNESSMODE = 117379                    if timer "RECALLDELAY" > 3500 and EnableAutoRecallOverheadMessages = 117380                        overhead "[ WAITING TO RECALL... ]" 14917381                        settimer "RECALLDELAY" 017382                    endif17383                    wait 50017384                elseif EnableAutoWeightDungeonGate = 1 and DUNGEONMODE = 117385                    wait 25017386                    if EnableInfiniteLoop != 0 and skill 'Chivalry' >= 9017387                        settimer "InfiniteLoop" 017388                        if EnableInfiniteLoop = 117389                            @setvar! SkipInfiniteLoop 017390                        elseif EnableInfiniteLoop = 217391                            @setvar! SkipInfiniteLoop 017392                        else17393                            @setvar! SkipInfiniteLoop 117394                        endif17395                    endif17396                    hotkey 'Toggle Peace Only'17397                    @setvar! TimeToGo 117398                    break17399                else17400                    overhead "[ OVERWEIGHT! ]" 33717401                    sysmsg "Time to head home and unload your loot!" 017402                    settimer "WeightTimer" 017403                endif17404            endif17405        endif17406 17407        if EnableArcheryWarningMessage = 1 and skill 'Archery' >= 5017408            if findtype 'stubnose crossbow|tower guard crossbow|balestra|heavy crossbow|crossbow' hand17409                # BOLTS17410                @setvar! AMMO 117411            elseif findtype 'long bow|bow|recurve bow|composite bow' hand17412                # ARROWS17413                @setvar! AMMO 217414            endif17415 17416            if counttype "crossbow bolt" self < ArcheryLowAmmoWarningAmount and timer "AmmunitionTimer" > 6000 and AMMO = 117417                overhead "[ AMMO LOW! ]" 3717418                settimer "AmmunitionTimer" 017419            endif17420 17421            if counttype "arrow" self < ArcheryLowAmmoWarningAmount and timer "AmmunitionTimer" > 6000 and AMMO = 217422                overhead "[ AMMO LOW! ]" 3717423                settimer "AmmunitionTimer" 017424            endif17425        endif17426 17427        if EnableGoldVacuum = 1 and DisableVacuums != 1 and diffhits < ActivateAutoHealHPdiff17428            if findtype "gold coin" ground -1 -1 12 as droppedmoney and timer "GoldRadar" > 350017429                overhead " � " 149 droppedmoney17430                settimer "GoldRadar" 017431            endif17432            while findtype "gold coin" ground -1 -1 2 as droppedmoney and diffhits < ActivateAutoHealHPdiff17433                overhead " � " 14917434                hotkey "Grab Item"17435                wft 250017436                target droppedmoney17437                wait 25017438                if insysmsg "Invalid or inaccessible item"17439                    wait 50017440                    @ignore droppedmoney17441                endif17442                wait 25017443            endwhile17444        endif17445 17446        if dead17447            break17448        endif17449 17450        if diffhits >= ActivateAutoHealHPdiff17451            break17452        endif17453 17454        if timer AfterKill > AfterKillTimer17455            break17456        endif17457    endwhile17458 17459    ///////////////////////////17460    //  END AFTER KILL LOOP  //17461    ///////////////////////////17462 17463    if dead17464        break17465    endif17466endwhile17467 17468//////////////////////17469//  END ALIVE LOOP  //17470//////////////////////17471 17472 17473///////////////////17474//  DEATH LOOP:  //17475///////////////////17476 17477if dead17478    if EnableOverheadMessages = 1 or EnableOverheadMessages = 217479        overhead "[ R.I.P. ]" 33717480    endif17481    wait 150017482    @setvar! TimeToGo 017483    @setvar! AutoRecallTime 017484 17485    while dead17486        @setvar! IHAVEDIED 117487        wait 50017488 17489        if timer "HEALERSEARCH" > 400017490            overhead "[ FIND A HEALER! ]" 017491            settimer "HEALERSEARCH" 017492        endif17493 17494        if findtype "blue moongate|30528|moongate" ground -1 -1 12 as EscapeGate17495            if timer "GATEHERE" > 200017496                overhead " � " 253 EscapeGate17497                settimer "GATEHERE" 017498            endif17499        endif17500 17501        while not gumpexists 3773199800 and findtype "blue moongate|30528|moongate" ground 0 1 2 as EscapeGate17502            dclick EscapeGate17503            wait 50017504            if dead or warmode17505                break17506            endif17507        endwhile17508 17509        while gumpexists 377319980017510            gumpresponse 1617511            wait 50017512            waitforgump 377319980017513            gumpresponse 217514            overhead "[ GATING TO TOWN... ]" 8817515            break17516        endwhile17517 17518        while gumpexists 295781022517519            overhead "[ HEALED! ]" 8417520            gumpresponse 117521            wait 100017522            gumpclose 295781022517523            break17524        endwhile17525 17526        if not dead17527           break17528        endif17529    endwhile17530endif17531 17532if not dead and IHAVEDIED = 1 and TimeToGo != 1 and AutoRecallTime != 117533    if EnableDressAfterResurrection = 117534        wait 50017535        dress 'UltimateDexxer'17536        wait 50017537        wait 100017538        dress 'UltimateDexxer'17539        wait 100017540        dress 'UltimateDexxer'17541        while queued17542            wait 10017543        endwhile17544    endif17545 17546    wait 100017547 17548    if EnableRecallAfterResurrection = 117549        hotkey 'Toggle Peace Only'17550        @setvar! ResThenTimeToGo 117551        @setvar! TimeToGo 117552        wait 100017553        replay17554    else17555        wait 250017556        @setvar! IHAVEDIED 017557        overhead "[ STOPPING SCRIPT! ]" 8817558        stop17559    endif17560endif17561 17562if not dead and IHAVEDIED != 1 and TimeToGo != 1 and AutoRecallTime != 117563    sysmsg "Script Error - Restarting!" 33317564    replay17565endif17566 17567//////////////////////17568//  END DEATH LOOP  //17569//////////////////////17570 17571 17572 17573 17574 17575 17576                                                                            #############################17577                                                                           ###    SCRIPT ENDS HERE!    ###17578                                                                            #############################17579 17580 17581 17582 17583 17584    // Thank you for using my scripts!  I can be contacted via email here: dan@danstockman.com17585    // Good luck out there and say hello if you see me in Avadon (Lord Glacier) - please don't PK me lol17586 17587 17588 17589 17590 17591 17592 17593 17594