# This is an automated backup - check out https://outlands.uorazorscripts.com/script/156be202-0920-4cf0-a2d6-a2ba04da4f0b for latest # Automation by Jaseowns ## Script: Lord Glacier's Chill STEALTH BACKSTABBER AUTO PILOT - UO OUTLANDS RAZOR SCRIPT - v2.0.0 ## Created by: danstock._98439#0 ############################################# ///////// //////// Lord Glaciers Chill STEALTH BACKSTABBER AUTO PILOT - UO OUTLANDS RAZOR SCRIPT version 2.0.0 /////// ////// UO Outlands Razor script - Released Feb 19, 2026 - Last Updated September 16, 2026 ///// Compiled by DanStock. (aka. Lord Glacier) //// /// ############################### ############################### // SUGGESTED SKILL TEMPLATE: \\ // INVENTORY ITEMS: \\ ################################### ################################### # 120 Stealth Thieves Codex # 100 Tactics (120 Camping w/ codex) Weapon Codex (Macing, Fencing or Archery) # 100 Snooping (120 Item ID w/ codex) 2-handed Aspect weapon ** # 100 Hiding 1-handed Aspect weapon ** # 100 Stealing Aspect platemail armour # 80-100 Mace Fighting ** Smoke Bombs # 80-100 Tracking * Magical Wizards Hat # Potion Satchel (w/ potions) # ASPECT: SHADOW armour Trapped pouches # SHADOW weapon Adventurers rope # Item ID wand * # CHAIN: Backstab Damage Crafting tool (for recycle) * # Damage above 66% Delectable food trays * # Slayer links Skinning knife * # Aspect crystals * # * or Forensic or Alchemy Wooden Box w/ copper key * # ** or Archery (but keep Tactics) # or Fencing * Optional items # ** Magic weapons (if using Item ID) ################################## ################################## ################################ ################################ ############################## ############################## ///////////////////////// //' CHANGE LOG: '// ///////////////////////// # Sep 16 2026 - version 2.0.0: BIG UPDATE: Significant improvements to speed and other efficiencies, lots of bug fixes and cleanup, addition of fencing support and much more! # Script has been completely overhauled and improved in all sections and now is working very well. Email any issues: dan@danstockman.com # # Jul 23 2026 - version 1.0.4: Added war hammer to slow weapons (was incorrectly listed under fast) # Apr 23 2026 - version 1.0.3: Fixed bug when filling pots from kegs if one of the types was set to '0' # Apr 22 2026 - version 1.0.2: Added missing timer in Recycler section, fixed gold vacuum while visible and tweaked potion settings and other small things # Feb 20 2026 - version 1.0.1: Fixed a cooldown issue with the Magic Item Recycler section. Working well otherwise! # Feb 19 2026 - version 1.0.0: Public script release /////////////////// //' TIPS: '// /////////////////// # This script does it all for a STEALTH BACKSTABBER! If you are familiar with any of my other AUTO PILOT scripts, this one should be pretty self-explanatory! # You will automatically be hidden (when in PEACE MODE) and MOBs will be targeted once stealth is active then backstabbed when in target range (and WAR MODE is toggled) # IMPT: Automatic Stealthing MUST BE ENABLED (toggle with '[AutoStealth' command or verify under HELP-> Commands-> Mechanics-> [AutoStealth Setting = Enabled) # IMPT: Stealth steps MUST BE DISPLAYED AS SYSTEM MESSAGE (toggle with '[ShowStealthSteps' command or verify under HELP-> Commands-> Text Displays-> [ShowStealthSteps Setting = Display System Message) # In order to still see your stealth steps overhead, you can turn on 'Count stealth steps' in Razor under Options-> Additional Options. Then check 'overhead' and format as desired # IMPT: This script HAS TWO REQUIRED COOLDOWNS YOU NEED TO ADD IN UO CLIENT ('Hiding' and 'Stealth'). Information and instructions below. # There are also some optional cooldowns you can add to keep track of weapon ability timers, smoke bomb cooldowns, healing potions, etc. These are NOT required for script function! # # As usual, you will find my personal skill template above. This is what I test with and what works for me - I am not an expert backstabber, but here is what I learned so far: # I recommend putting your first 5 points in your THIEVES CODEX into 'Shadow Hands' (and then drop snooping skill for something like Item ID, Camping, Forensic, Arms Lore or Alchemy) # Then putting your next 5 points into 'Ruffian' in order to drop Tactics skill for something to further buff your damage (must keep Tactics if using Archery skill) # From there I put my next points 'Without a Trace' for quicker cooldowns on Smoke Bombs and my last 5 into 'Extortion' for more black goods, etc. # I would also highly recommend BACKSTAB DAMAGE chain links, DAMAGE ABOVE 66% chain links and SLAYER chain links to maximize your damage output and ideally hit the 10k damage cap in all scenarios # I cannot imagine using anything but SHADOW ASPECT on this character for both armour and weapon - the aspect special is great and the armour bonuses are mandatory (for healing and damage buffs) # Script currently supports MACING, FENCING or ARCHERY weapons only! Weapons will be automatically equipped (prioritizes Aspected weapons and ignores unidentified magic) # Once MOB is within Attack Range (set below) and stealth is active, a BACKSTAB attempt will be made when WAR MODE is toggled ('TAB TO STAB!') # Target indicators are BLUE when target is acquired, YELLOW when outside attack range, ORANGE when in attack range but stealth is on cooldown or GREEN when MOB is in attack range AND hiding is available # Backstab attempts will still be made during ORANGE targeting mode, if WAR MODE is toggled, but you may choose to wait until targeting is GREEN (if you want to be able to hide right away) # You can use the 'EnableInstantHide' below to delay backstab attacks until all cooldowns are zeroed, so that Hiding skill will be immediately available # After your backstab attempt, if enabled below, a second hit attempt will immediately be made with a fast one-handed weapon (MACING, FENCING or ARCHERY only) # Prior to the fast second hit attempt, if enabled and available, WEAPON CODEX ABILITIES will be activated (set below) # Second hit attempt with fast weapon will be ignored if VANISH ASPECT EFFECT is activated upon backstab or if targeted MOB is dead # If VANISH ASPECT EFFECT is activated upon backstab and targeted MOB is still alive, another backstab will be initiated immediately (triggered if MOB is still within attack range) # If enabled below and 'magical wizard hat' is found in inventory, it will be used to keep your stamina below max while stealth is active (will equip and remove when stam = max) # The 'magical wizard hat' can be purchased from mage NPCs and is able to be [blessed] with a clothing bless deed (or else they are 40gp to replace) # Keeping stamina below your max while stealthing will prevent accidentally walking through MOBs or other players and revealing yourself! Very helpful # You also have the option (below) to HIDE/SMOKE BOMB immediately after backstab attempt. Script will first attempt to HIDE. If hiding fails due to aggro, SMOKE BOMB will be used # If current targeted MOB is still alive after backstab and smoke bomb, another backstab attempt will be made immediately (if target is still within attack range) # While NOT HIDDEN and in WAR MODE, script will buff, heal and cure with potions (set below), use bandages (if healing skill) and skin corpses (if enabled and skinning knife available) # You can choose to use POTION KEGS (set your potion amounts below) and inventory amounts will be automatically maintained based on amounts set below # As soon as PEACE MODE is toggled (while not hidden) an attempt to HIDE will be made. If hiding fails, WAR MODE will be re-toggled. Break line of sight and try again! # If enabled below, when PEACE MODE is toggled and HIDE is not possible due to MOB aggro, a SMOKE BOMB will be used (if in inventory and not on cooldown) # Cooldown for SMOKE BOMB is set automatically based on your Thieves Codex 'WITHOUT A TRACE' level (set below) - if left at '0' will default to 2 mins # Weapon Codex Stances can be set below. Recommend using 'WILD SWING' for macing, 'BLACKGUARD' for fencing or 'LONG SHOT' for archery. Script will automatically reset stance if found to be incorrect # If enabled and WOODEN BOX and matching COPPER KEY are found in inventory, loot will be automatically moved and secured (make sure key is not inside box and well hidden) # Loot storage will be triggered while HIDING is on cooldown and script is waiting for STEALTH to activate to not interfere with targeting, attacking or evading # My standard UTILITY options are also available below (gold, arrow and/or resource vacuums, skinning, eating food, overhead message toggles, etc.) # Also the script can 'AUTOMATICALLY IDENTIFY AND RECYCLE MAGIC ITEMS' if enabled below! Requires any CRAFTING TOOL in inventory and a CONTAINTER ID WAND (if ITEM ID SKILL < 120) # Recycling of junk magic items is triggered based on weight differential (set below). When weight trigger is reached, items will be identified and then recycled (if junk) # You can then optionally choose to consume the Arcane Essence immediately and/or drop resources on the ground (lumber, ingots, blank scrolls, etc.) # Combining the item recycler with camping carry weight increase and Strongbox 1 & 2 perks makes this build a great farming character who can sneak around PKs and hide in a corner when AFK # It is a slow template to start until you build up your Thieves Codex and Aspect levels, but it really escalates quickly! # # I intentionally did NOT include 'AUTO RECALL' options in this script. I also did NOT include 'DUNGEON ESCAPE MODES' # However, this script pairs very well with my other QOL scripts such as the 'DUNGEON ESCAPE n GATE' or 'RECALL/RESET/RELOAD' scripts you can find in my profile! Just set hotkeys for each # # I think this covers the basics: WAR MODE FOR VISIBLE and PEACE MODE FOR HIDDEN then TAB TO STAB - Follow the overhead prompts and hopefully the script is self-explanatory... # 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 recognition # # - Dan (aka. Lord Glacier) ########################################## ###' COOLDOWNS TO ADD IN UO CLIENT: '### ###' (case sensitive!) '### ########################################## // REQUIRED (IMPT!): # Hiding // Overhead Triggers: "You have hidden yourself well" and "You fail to hide" w/ 10 second cooldown # Stealth // Sysmsg Triggers: "You begin to move quietly" w/ 10 second cooldown // OPTIONAL: # Smoke Bomb # Weapon Ability # Healing Potion # Cleansing Brew # Vanish Buff // OPTIONAL (ALCHEMY ONLY): # Purple Potion # Panacea Potion // OPTIONAL (MACING ONLY): # Pummel Ability # Stun Ability # Smash Ability // OPTIONAL (FENCING ONLY): # Gambit Ability # Swiftstrikes Ability # Bane Ability // OPTIONAL (ARCHERY ONLY): # Skirmish Ability # Full Draw Ability # Repeater Ability ########################################################################################################################### # MOST FEATURES ARE TURNED 'OFF' BY DEFAULT! PLEASE CHECK THE 'VARIABLES' SECTION BELOW CAREFULLY DURING INITIAL SETUP! # ########################################################################################################################### ############################### ###' USER VARIABLES: '### ############################### ///////////////////// //' BACKSTAB: '// ///////////////////// @setvar! EnableWeaponCheck 1 # Requires two-handed weapon (Macing, Fencing or Archery supported) # Checks hands for two-handed weapon and will equip if found in backpack # Prioritizes aspected weapons and ignores unidentified magic items @setvar! TargetAttackRange 1 # Backstab attempt will be made when in WAR MODE and target is within attack range and stealth is active ('TAB TO STAB!') # Leave this variable set to '1' if using Macing or Fencing weapon # Increase range if using Archery (max '8' tiles for 2-handed weapons - or up to '12' with Longshot stance in Archery Codex) @setvar! EnableWizardHatStealthTrick 0 # Requires 'a magical wizards hat' in inventory # Will automatically equip and unequip wizard hat as needed to keep stamina below maximum while stealthing # This prevents accidentally walking through MOBs or other players and revealing yourself # Can be purchased from mage NPC for 40gp and is able to be [blessed] with a clothing bless deed @setvar! EnableInstantHide 0 # If enabled, ATTACKS WILL BE DELAYED until COOLDOWNS are cleared to make sure hiding is available (if MOB is one-shotted) # Immediately after backstab, if target MOB has been killed, you will be hidden # To hide instantly, set 'LootDelayTimer' to '0' (below) - this will keep you from catching aggro from other MOBs but leaves no time for looting # To counter this, you can add a small delay (ex. set 'LootDelayTimer' to '500' or '1000'), but too much may cause your hide to fail! # If disabled, you will still hide instantly after a kill if cooldowns allow (you just need to manually time your backstabs) @setvar! LootDelayTimer 500 # This is the delay timer after target MOB is killed to allow a window for looting # Setting this at '0' will make looting nearly impossible, but makes instant hiding safer # Increase this slightly if skinning or if you are having trouble grabbing loot in time # A setting of '750' is a good balance - allowing you to grab a couple loot items before hiding kicks in, without catching MOB Aggro @setvar! EnableFastSecondHit 0 # Requires one-handed weapon (Macing, Fencing or Archery supported) # If target MOB is NOT one-shotted, an additional hit can be attempted with a fast weapon # Will equip a one-handed weapon immediately after backstab for a quick second hit # Prioritizes aspected weapons and ignores unidentified magic items # Will trigger WEAPON ABILITIES before hitting, if enabled and available (set below) # Will ignore fast second hit attempt if VANISH ASPECT EFFECT is activated upon backstab or target MOB is dead # If VANISH ASPECT EFFECT is activated and target is still alive, another backstab will be attempted immediately @setvar! EnableSmokeBombDoubleTap 0 # Requires Smoke Bombs in inventory # Immediately after backstab, if target MOB is still alive, a Smoke Bomb will be used (if not on cooldown) # Another backstab attempt will be made immediately # If both Hiding and Smoke Bombs are unavailable, WAR MODE will be toggled for VISIBLE MODE # Break Line of Sight and toggle PEACE MODE to immediately hide and reset for another stab @setvar! EnableSmokeBombWhenAggro 0 # Requires Smoke Bombs in inventory # If attempt to HIDE is made but not possible due to MOB aggro, and if not on cooldown and available, script will use SMOKE BOMB # This will immediately put you into stealth mode and makes TAB TO STAB available to activate when target MOB is within attack range @setvar! WithoutaTraceLevel 0 # Adjusts your Smoke Bomb cooldown automatically based on your THIEVES CODEX settings # Can be set to '0', '1', '2' or '3' based on your 'Without a Trace' tier level in Thieves Codex # '0' for '2 minute Smoke Bomb cooldown' # '1' for '1 minute 45 second Smoke Bomb cooldown' # '2' for '1 minute 15 second Smoke Bomb cooldown' # '3' for '45 second Smoke Bomb cooldown' /////////////////////////// //' WEAPON CODEX: '// /////////////////////////// @setvar! EnableWeaponCodexHotbar 0 # Will automatically display your Codex Hotbar gump during combat @setvar! EnableWeaponStances 0 @setvar! SetWeaponStance 0 # Requires Macing, Fencing or Archery codex stances unlocked # Can be set to '0', '1', '2', '3', '4' or '5': # '0' for 'Disabled' # '1' for 'Aggressive' or 'Arcane' stance # '2' for 'Defensive' or 'Fowling' stance # '3' for 'Cleave' or 'Incendiary' stance # '4' for 'Wildswing' or 'Blackguard' or 'Longshot' stance # '5' for 'Sunder' or 'Fang' or 'Maiming' stance @setvar! EnableWeaponAbilities 0 @setvar! SetWeaponAbility 0 # Variable 'EnableFastSecondHit' above must be enabled for weapon abilities to be used # Requires Macing, Fencing or Archery codex Weapon Ability unlocked # Will be activated prior to second hit attempts (if enabled above) # Can be set to '0', '1', '2' or '3': # '0' for 'Disabled' # '1' for 'Pummel' or 'Gambit' or 'Skirmish' ability # '2' for 'Stun' or 'Swiftstrikes' or 'Full Draw' ability # '3' for 'Smash' or 'Bane' or 'Repeater' ability @setvar! WeaponAbilityCooldown 60000 # Adjust Weapon Ability cooldown time if using ARMS LORE skill //////////////////// //' POTIONS: '// //////////////////// // Potions (if enabled) will be used automatically when in WAR MODE and VISIBLE // @setvar! EnableHealPotion 1 @setvar! HealPotionHPdiff 30 # Adjust HP diff set point for Heal potion consumption # Heal potions will be prioritized over all other healing options (if not on cooldown) @setvar! HealPotionCooldown 10000 # This value only affects your OPTIONAL COOLDOWN BAR (script uses other checks to verify heal pots are available) # You can reduce this value if using POTION CODEX # Add cooldown in UO options: 'Healing Potion' (case sensitive) @setvar! EnableCurePotion 1 # Cure pots will be used as needed (if enabled and found in inventory) @setvar! EnablePanaceaPotion 0 # Requires 80+ Alchemy skill, Cure Potions and Potion Codex in inventory w/ Panacea buff unlocked # Will automatically consume Cure Potion if Bleeding or Diseased @setvar! EnableCleansingBrews 0 # Requires Cleansing Brews in inventory # Will automatically consume Cleansing Brew if Bleeding or Diseased (and not on cooldown) @setvar! EnableRefreshPotion 0 @setvar! RefreshPotionSPdiff 10 # Adjust SP diff set point for Refresh potion consumption @setvar! EnableStrengthPotion 0 @setvar! EnableAgilityPotion 0 @setvar! EnableMagicResistPotion 0 # Strength, Agility and Resist potions will auto-buff when effects wear off (if enabled) * @setvar! EnableExplosionPotion 0 @setvar! PurplePotionCooldown 15000 # Requires 80+ Alchemy skill to make potions sticky (increase range if using Archery skill - or if preferred) # WARNING: throwing potions in a crowded dungeon may cause you to flag criminal in rare cases! USE AT OWN RISK @setvar! EnableUsePotionKegs 0 # A good way to carry lots of potions without weighing you down # Requires potion kegs and empty bottles (pack extra if using explosion potions) # Will auto fill empty bottles from potion kegs if counts drop below set amounts: @setvar! HealingPotionAmount 5 @setvar! CurePotionAmount 5 @setvar! RefreshPotionAmount 5 @setvar! StrengthPotionAmount 1 @setvar! AgilityPotionAmount 1 @setvar! ResistPotionAmount 1 @setvar! ExplosionPotionAmount 1 @setvar! PoisonPotionAmount 0 ////////////////////////// //' UTILITY / LOOT : '// ////////////////////////// @setvar! EnableOverheadMessages 1 # Overhead messages can be turned off (minimal indicators will remain) @setvar! EnableOverheadWarnings 1 # Overhead warnings for MOB distance (Macing and Fencing only) and stealth steps @setvar! EnableAutoParalyzePouch 0 # Requires trapped pouches in inventory # Will automatically pop trapped pouches if paralyzed @setvar! EnableAutoCarving 0 # Requires skinning knife in inventory # Will automatically carve nearby corpses (while not hidden) # You may need to increase 'LootDelayTimer' above while skinning @setvar! EnableEatingFood 0 # Requires delectable food trays in inventory # Will automatically eat delectable food trays when not buffed @setvar! EnableAutoSatchels 0 # Will automatically move potions and/or reagents in backpack to corresponding satchels @setvar! EnableGoldVacuum 0 # Will automatically pick up discarded gold nearby (within 2 tiles) # WARNING: This can hinder you with weight issues if you are not careful! @setvar! EnableDungeonCleanup 0 # Will automatically pick up discarded regs, ingots, boards, etc. (within 2 tiles) @setvar! EnableArrowCleanup 0 # Requires Archery skill 50+ # Will automatically pick up arrows and/or bolts from the ground (within 2 tiles) @setvar! EnableArcheryWarningMessage 0 @setvar! ArcheryLowAmmoWarningAmount 10 # Requires Archery skill 50+ # Overhead warning (independent of other Overhead Messages) for low archery ammunition @setvar! EnablePutLootinLockBox 0 # Requires WOODEN BOX and matching COPPER KEY in inventory # Loot will be automatically moved into lockbox and secured during hiding cooldown (while waiting for stealth) # Key cannot be inside the lockbox and should be well hidden in your pack # Being hidden most of the time, having a hidden grab item bag and using a lockbox makes you basically thief-proof @setvar! EnableIDandRecycleMagicItems 0 # Requires 120 Item ID skill (or container ID wand) and a crafting tool in your inventory # Uses crafting tool to Recycle junk magic items after identification # Top-tier items will not be recycled! # Combining this with Camping skill for increased carry weight makes this build a farming machine! @setvar! IDandRecycleWeightdiff 25 # Item identification and junk recycling is initiated when weight diff trigger is reached @setvar! EnableAutoConsumeArcaneEssence 0 # Will automatically consume any Arcane Essence created from recycling @setvar! DropResourcesAfterRecycle 0 # Will automatically drop resources from recycling onto ground (boards, ingots, leather, blank scrolls, etc.) @setvar! EnableDropGoldWhenOverweight 0 # Will drop set amount of gold when overweight until no longer impeded @setvar! DropGoldAmount 250 # Set gold amount to drop (will drop this amount repeatedly until below max weight) @setvar! EnableWeightWarningMessage 0 @setvar! GreenWarningDiffWeight 50 @setvar! YellowWarningDiffWeight 25 @setvar! RedWeightLimitDiffWeight 5 # Weight limit will drop gold (if overweight and enabled above) then stop script OR trigger another script (below) # Recommend using my 'DUNGEON ESCAPE n GATE' script to then exit dungeons safely @setvar! EnableTriggerDungeonEscapeScript 0 # Option to launch another Razor script when Red Weight limit is reached # Recommend using my DUNGEON ESCAPE n GATE script (found on my UORazorScripts.com profile) # If farming in WILDERNESS, this could be used to call a HOME RECALL script instead // Type the name of your DUNGEON ESCAPE or HOME RECALL Razor script here: if EnableTriggerDungeonEscapeScript = 1 createlist DungeonEscapeScriptList pushlist DungeonEscapeScriptList "DUNGEON ESCAPE SCRIPT NAME HERE" endif ////////////////////////// //' PK TRACKING: '// ////////////////////////// @setvar! EnablePKRadar 0 # Requires Tracking skill >= 80 # Uses tracking to detect nearby PKs automatically # Will hide or use Smoke Bomb, if available, when Red is tracked @setvar! EnableRedAlertOverhead 1 # Controls the Red Alert overhead message (displayed when PK is tracked) # I highly recommend setting up a RAZOR OVERHEAD MESSAGE instead of using the script one: // This will display PK name/distance overhead when tracked! // Add overhead message w/ a trigger of "Now tracking" and message "[ RED ALERT: {3} ]" (hue 335) // Then a second with a trigger of "Distance to destination" and message "[ {4} TILES AWAY! ]" (hue 253) // Once complete you should disable "EnableRedAlertOverhead" above // I decided NOT to include Auto Recall in this script due to 99% of backstabbing being done in dungeons and while hidden // If Tracking skill available, Hiding skill and/or Smoke Bombs will be used to evade tracked Reds instead (if PK Radar is on) // Highly recommend using my 'RECALL/RESET/RELOAD' or 'DUNGEON ESCAPE n GATE' scripts to supplement this one! ///////////////////////// //' DEATH LOOP: '// ///////////////////////// @setvar! EnableDeathLoop 0 # Script will detect if you die and enter an optional DEATH LOOP (otherwise script ends upon death) # While in death loop, dungeon gates will be marked with overhead arrows and automatically activated when within 2 tiles # You will be gated to your last moongated town # Script will automatically resurrect you when close enough to a HEALER @setvar! EnableHideAfterResurrection 0 # Will immediately hide after being resurrected @setvar! EnableDressAfterResurrection 0 # Will automatically dress after being resurrected # Must have a Razor 'Dress List' named 'UltimateBackstabber' for all your [blessed] wearables // Script ends after death loop completion. Check out my other scripts for Inventory Reset, Home Recall or other QOL support scripts! // /////////////////////////// //' END OF VARIABLES! '// /////////////////////////// ################ 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! ################ /////////////////////// // TIMER SETUPS: // /////////////////////// if not timerexists FindTargetTimer createtimer FindTargetTimer settimer FindTargetTimer 1000 endif if not timerexists FindTarget createtimer FindTarget settimer FindTarget 2000 endif if not timerexists TargetTimer createtimer TargetTimer settimer TargetTimer 4500 endif if not timerexists NoTargetTimer createtimer NoTargetTimer settimer NoTargetTimer 4500 endif if not timerexists CheckTargetTimer createtimer CheckTargetTimer settimer CheckTargetTimer 5000 endif if not timerexists StabDistanceTimer createtimer StabDistanceTimer settimer StabDistanceTimer 2500 endif if not timerexists HidingCooldownTimer createtimer HidingCooldownTimer settimer HidingCooldownTimer 2500 endif if not timerexists HidingOverheadTimer createtimer HidingOverheadTimer settimer HidingOverheadTimer 4500 endif if not timerexists WaitingForStealthTimer createtimer WaitingForStealthTimer settimer WaitingForStealthTimer 2500 endif if not timerexists StealthCooldownTimer createtimer StealthCooldownTimer settimer StealthCooldownTimer 2500 endif if not timerexists VisibilityTimer createtimer VisibilityTimer settimer VisibilityTimer 2500 endif if not timerexists KeepOnTruckingTimer createtimer KeepOnTruckingTimer settimer KeepOnTruckingTimer 4000 endif if not timerexists DoNotMoveTimer createtimer DoNotMoveTimer settimer DoNotMoveTimer 500 endif if not timerexists DoNotMoveTimeout createtimer DoNotMoveTimeout settimer DoNotMoveTimeout 0 endif if not timerexists PopPouchMessageTimer createtimer PopPouchMessageTimer settimer PopPouchMessageTimer 4500 endif if not timerexists HealPotionTimer createtimer HealPotionTimer settimer HealPotionTimer 4500 endif if not timerexists HealingPotionMessageTimer createtimer HealingPotionMessageTimer settimer HealingPotionMessageTimer 4500 endif if not timerexists CurePotionMessageTimer createtimer CurePotionMessageTimer settimer CurePotionMessageTimer 4500 endif if not timerexists RefreshPotionMessageTimer createtimer RefreshPotionMessageTimer settimer RefreshPotionMessageTimer 4500 endif if not timerexists ResistPotionMessageTimer createtimer ResistPotionMessageTimer settimer ResistPotionMessageTimer 4500 endif if not timerexists StrengthPotionMessageTimer createtimer StrengthPotionMessageTimer settimer StrengthPotionMessageTimer 4500 endif if not timerexists AgilityPotionMessageTimer createtimer AgilityPotionMessageTimer settimer AgilityPotionMessageTimer 4500 endif if not timerexists ExplosionPotionMessageTimer createtimer ExplosionPotionMessageTimer settimer ExplosionPotionMessageTimer 15000 endif if not timerexists ExplosionPotionTimer createtimer ExplosionPotionTimer settimer ExplosionPotionTimer PurplePotionCooldown endif if not timerexists ExplosionPotionTimeout createtimer ExplosionPotionTimeout settimer ExplosionPotionTimeout 1000 endif if not timerexists CleansingBrewOverhead createtimer CleansingBrewOverhead settimer CleansingBrewOverhead 15000 endif if not timerexists CleansingBrewTimer createtimer CleansingBrewTimer settimer CleansingBrewTimer 120000 endif if not timerexists PanaceaOverheadTimer createtimer PanaceaOverheadTimer settimer PanaceaOverheadTimer 15000 endif if not timerexists PotionKegTimer createtimer PotionKegTimer settimer PotionKegTimer 4500 endif if not timerexists PotionKegPVPCooldown createtimer PotionKegPVPCooldown settimer PotionKegPVPCooldown 30000 endif if not timerexists PotionSatchelTimer createtimer PotionSatchelTimer settimer PotionSatchelTimer 60000 endif if not timerexists WizardSatchelTimer createtimer WizardSatchelTimer settimer WizardSatchelTimer 60000 endif if not timerexists OverweightMessageTimer createtimer OverweightMessageTimer settimer OverweightMessageTimer 4500 endif if not timerexists WeightTimer createtimer WeightTimer settimer WeightTimer 5000 endif if not timerexists SkinningTimer createtimer SkinningTimer settimer SkinningTimer 4500 endif if not timerexists HEALERSEARCH createtimer HEALERSEARCH settimer HEALERSEARCH 2500 endif if not timerexists GATEHERE createtimer GATEHERE settimer GATEHERE 3500 endif if not timerexists STORELOOT createtimer STORELOOT settimer STORELOOT 5000 endif if not timerexists LootTimer createtimer LootTimer settimer LootTimer 5000 endif if not timerexists LootCooldownTimer createtimer LootCooldownTimer settimer LootCooldownTimer 10000 endif if not timerexists WeaponCodexTimer createtimer WeaponCodexTimer settimer WeaponCodexTimer 5000 endif if not timerexists WeaponAbilityTimer createtimer WeaponAbilityTimer settimer WeaponAbilityTimer 60000 endif if not timerexists BandageMessageTimer createtimer BandageMessageTimer settimer BandageMessageTimer 5000 endif if not timerexists CooldownOverheadTimer createtimer CooldownOverheadTimer settimer CooldownOverheadTimer 3500 endif if not timerexists DungeonCleanupRadar createtimer DungeonCleanupRadar settimer DungeonCleanupRadar 3500 endif if not timerexists DungeonCleanup createtimer DungeonCleanup settimer DungeonCleanup 4500 endif if not timerexists GoldRadar createtimer GoldRadar settimer GoldRadar 4500 endif if not timerexists BoltCleanupRadar createtimer BoltCleanupRadar settimer BoltCleanupRadar 3500 endif if not timerexists ArrowCleanupRadar createtimer ArrowCleanupRadar settimer ArrowCleanupRadar 3500 endif if not timerexists ArrowCleanupTimer createtimer ArrowCleanupTimer settimer ArrowCleanupTimer 3500 endif if not timerexists QuiverTimer createtimer QuiverTimer settimer QuiverTimer 30000 endif if not timerexists AmmunitionTimer createtimer AmmunitionTimer settimer AmmunitionTimer 6000 endif if not timerexists RecyclingJunkTimer createtimer RecyclingJunkTimer settimer RecyclingJunkTimer 3500 endif if not timerexists MagicRecyclerCooldown createtimer MagicRecyclerCooldown settimer MagicRecyclerCooldown 300000 endif if not timerexists NoWeaponOverheadTimer createtimer NoWeaponOverheadTimer settimer NoWeaponOverheadTimer 5000 endif if not timerexists SkillCooldownTimer createtimer SkillCooldownTimer settimer SkillCooldownTimer 3500 endif if not timerexists OrganizerAgentTimer createtimer OrganizerAgentTimer settimer OrganizerAgentTimer 30000 endif if not timerexists WarModeOverheadTimer createtimer WarModeOverheadTimer settimer WarModeOverheadTimer 3500 endif ////////////////////// // SETUP: // ////////////////////// if EnablePutLootinLockBox = 1 and not varexist EnablePutLootinLockBoxFailed @setvar! EnablePutLootinLockBoxFailed 0 endif if targetexists hotkey 'Cancel Current Target' endif @setvar! CurrentTarget 0 if WithoutaTraceLevel = 0 @setvar! SmokeBombCooldown 120000 elseif WithoutaTraceLevel = 1 @setvar! SmokeBombCooldown 105000 elseif WithoutaTraceLevel = 2 @setvar! SmokeBombCooldown 75000 elseif WithoutaTraceLevel = 3 @setvar! SmokeBombCooldown 45000 endif if EnableWeaponAbilities = 1 if SetWeaponAbility = 0 if skill 'Mace Fighting' >= 50 @setvar! UsePummelAbility 0 @setvar! UseStunAbility 0 @setvar! UseSmashAbility 0 elseif skill 'Fencing' >= 50 @setvar! UseGambitAbility 0 @setvar! UseSwiftstrikesAbility 0 @setvar! UseBaneAbility 0 elseif skill 'Archery' >= 50 @setvar! UseSkirmishAbility 0 @setvar! UseFullDrawAbility 0 @setvar! UseRepeaterAbility 0 endif elseif SetWeaponAbility = 1 if skill 'Mace Fighting' >= 50 @setvar! UsePummelAbility 1 @setvar! UseStunAbility 0 @setvar! UseSmashAbility 0 elseif skill 'Fencing' >= 50 @setvar! UseGambitAbility 1 @setvar! UseSwiftstrikesAbility 0 @setvar! UseBaneAbility 0 elseif skill 'Archery' >= 50 @setvar! UseSkirmishAbility 1 @setvar! UseFullDrawAbility 0 @setvar! UseRepeaterAbility 0 endif elseif SetWeaponAbility = 2 if skill 'Mace Fighting' >= 50 @setvar! UsePummelAbility 0 @setvar! UseStunAbility 1 @setvar! UseSmashAbility 0 elseif skill 'Fencing' >= 50 @setvar! UseGambitAbility 0 @setvar! UseSwiftstrikesAbility 1 @setvar! UseBaneAbility 0 elseif skill 'Archery' >= 50 @setvar! UseSkirmishAbility 0 @setvar! UseFullDrawAbility 1 @setvar! UseRepeaterAbility 0 endif elseif SetWeaponAbility = 3 if skill 'Mace Fighting' >= 50 @setvar! UsePummelAbility 0 @setvar! UseStunAbility 0 @setvar! UseSmashAbility 1 elseif skill 'Fencing' >= 50 @setvar! UseGambitAbility 0 @setvar! UseSwiftstrikesAbility 0 @setvar! UseBaneAbility 1 elseif skill 'Archery' >= 50 @setvar! UseSkirmishAbility 0 @setvar! UseFullDrawAbility 0 @setvar! UseRepeaterAbility 1 endif else if skill 'Mace Fighting' >= 50 @setvar! UsePummelAbility 0 @setvar! UseStunAbility 0 @setvar! UseSmashAbility 0 elseif skill 'Fencing' >= 50 @setvar! UseGambitAbility 0 @setvar! UseSwiftstrikesAbility 0 @setvar! UseBaneAbility 0 elseif skill 'Archery' >= 50 @setvar! UseSkirmishAbility 0 @setvar! UseFullDrawAbility 0 @setvar! UseRepeaterAbility 0 endif endif endif if EnableWeaponStances = 1 if SetWeaponStance = 0 if skill 'Mace Fighting' >= 50 @setvar! SwitchToAggressiveStance 0 @setvar! SwitchToDefensiveStance 0 @setvar! SwitchToCleaveStance 0 @setvar! SwitchToWildSwingStance 0 @setvar! SwitchToSunderStance 0 elseif skill 'Fencing' >= 50 @setvar! SwitchToAggressiveStance 0 @setvar! SwitchToDefensiveStance 0 @setvar! SwitchToCleaveStance 0 @setvar! SwitchToBlackguardStance 0 @setvar! SwitchToFangStance 0 elseif skill 'Archery' >= 50 @setvar! SwitchToArcaneStance 0 @setvar! SwitchToFowlingStance 0 @setvar! SwitchToIncendiaryStance 0 @setvar! SwitchToLongshotStance 0 @setvar! SwitchToMaimingStance 0 endif elseif SetWeaponStance = 1 if skill 'Mace Fighting' >= 50 @setvar! SwitchToAggressiveStance 1 @setvar! SwitchToDefensiveStance 0 @setvar! SwitchToCleaveStance 0 @setvar! SwitchToWildSwingStance 0 @setvar! SwitchToSunderStance 0 elseif skill 'Fencing' >= 50 @setvar! SwitchToAggressiveStance 1 @setvar! SwitchToDefensiveStance 0 @setvar! SwitchToCleaveStance 0 @setvar! SwitchToBlackguardStance 0 @setvar! SwitchToFangStance 0 elseif skill 'Archery' >= 50 @setvar! SwitchToArcaneStance 1 @setvar! SwitchToFowlingStance 0 @setvar! SwitchToIncendiaryStance 0 @setvar! SwitchToLongshotStance 0 @setvar! SwitchToMaimingStance 0 endif elseif SetWeaponStance = 2 if skill 'Mace Fighting' >= 50 @setvar! SwitchToAggressiveStance 0 @setvar! SwitchToDefensiveStance 1 @setvar! SwitchToCleaveStance 0 @setvar! SwitchToWildSwingStance 0 @setvar! SwitchToSunderStance 0 elseif skill 'Fencing' >= 50 @setvar! SwitchToAggressiveStance 0 @setvar! SwitchToDefensiveStance 1 @setvar! SwitchToCleaveStance 0 @setvar! SwitchToBlackguardStance 0 @setvar! SwitchToFangStance 0 elseif skill 'Archery' >= 50 @setvar! SwitchToArcaneStance 0 @setvar! SwitchToFowlingStance 1 @setvar! SwitchToIncendiaryStance 0 @setvar! SwitchToLongshotStance 0 @setvar! SwitchToMaimingStance 0 endif elseif SetWeaponStance = 3 if skill 'Mace Fighting' >= 50 @setvar! SwitchToAggressiveStance 0 @setvar! SwitchToDefensiveStance 0 @setvar! SwitchToCleaveStance 1 @setvar! SwitchToWildSwingStance 0 @setvar! SwitchToSunderStance 0 elseif skill 'Fencing' >= 50 @setvar! SwitchToAggressiveStance 0 @setvar! SwitchToDefensiveStance 0 @setvar! SwitchToCleaveStance 1 @setvar! SwitchToBlackguardStance 0 @setvar! SwitchToFangStance 0 elseif skill 'Archery' >= 50 @setvar! SwitchToArcaneStance 0 @setvar! SwitchToFowlingStance 0 @setvar! SwitchToIncendiaryStance 1 @setvar! SwitchToLongshotStance 0 @setvar! SwitchToMaimingStance 0 endif elseif SetWeaponStance = 4 if skill 'Mace Fighting' >= 50 @setvar! SwitchToAggressiveStance 0 @setvar! SwitchToDefensiveStance 0 @setvar! SwitchToCleaveStance 0 @setvar! SwitchToWildSwingStance 1 @setvar! SwitchToSunderStance 0 elseif skill 'Fencing' >= 50 @setvar! SwitchToAggressiveStance 0 @setvar! SwitchToDefensiveStance 0 @setvar! SwitchToCleaveStance 0 @setvar! SwitchToBlackguardStance 1 @setvar! SwitchToFangStance 0 elseif skill 'Archery' >= 50 @setvar! SwitchToArcaneStance 0 @setvar! SwitchToFowlingStance 0 @setvar! SwitchToIncendiaryStance 0 @setvar! SwitchToLongshotStance 1 @setvar! SwitchToMaimingStance 0 endif elseif SetWeaponStance = 5 if skill 'Mace Fighting' >= 50 @setvar! SwitchToAggressiveStance 0 @setvar! SwitchToDefensiveStance 0 @setvar! SwitchToCleaveStance 0 @setvar! SwitchToWildSwingStance 0 @setvar! SwitchToSunderStance 1 elseif skill 'Fencing' >= 50 @setvar! SwitchToAggressiveStance 0 @setvar! SwitchToDefensiveStance 0 @setvar! SwitchToCleaveStance 0 @setvar! SwitchToBlackguardStance 0 @setvar! SwitchToFangStance 1 elseif skill 'Archery' >= 50 @setvar! SwitchToArcaneStance 0 @setvar! SwitchToFowlingStance 0 @setvar! SwitchToIncendiaryStance 0 @setvar! SwitchToLongshotStance 0 @setvar! SwitchToMaimingStance 1 endif else if skill 'Mace Fighting' >= 50 @setvar! SwitchToAggressiveStance 0 @setvar! SwitchToDefensiveStance 0 @setvar! SwitchToCleaveStance 0 @setvar! SwitchToWildSwingStance 0 @setvar! SwitchToSunderStance 0 elseif skill 'Fencing' >= 50 @setvar! SwitchToAggressiveStance 0 @setvar! SwitchToDefensiveStance 0 @setvar! SwitchToCleaveStance 0 @setvar! SwitchToBlackguardStance 0 @setvar! SwitchToFangStance 0 elseif skill 'Archery' >= 50 @setvar! SwitchToArcaneStance 0 @setvar! SwitchToFowlingStance 0 @setvar! SwitchToIncendiaryStance 0 @setvar! SwitchToLongshotStance 0 @setvar! SwitchToMaimingStance 0 endif endif endif if diffweight >= RedWeightLimitDiffWeight @setvar! DisableVacuums 0 endif if skill 'Archery' >= 50 if not find MyFastWeapon self and EnableFastSecondHit = 1 clearignore while findtype "bow|composite bow|recurve bow|crossbow|balestra|stubnose crossbow" self as FastWeapon getlabel FastWeapon FastWeaponlabel wait 250 if 'aspect' in FastWeaponlabel @setvar! MyFastWeapon FastWeapon if EnableOverheadMessages = 1 overhead '[ FAST WEAPON SET! ]' 1790 endif break elseif 'unidentified' in FastWeaponLabel @ignore FastWeapon else overhead '[ SELECT YOUR FAST WEAPON... ]' 153 getlabel backpack backpacklabel @setvar! FastWeapon while targetexists wait 100 endwhile if EnableOverheadMessages = 1 overhead '[ FAST WEAPON SET! ]' 77 endif @setvar! MyFastWeapon FastWeapon break endif endwhile clearignore endif if not find MySlowWeapon self clearignore while findtype "heavy crossbow|long bow|tower guard crossbow" self as SlowWeapon getlabel SlowWeapon SlowWeaponlabel wait 250 if 'aspect' in SlowWeaponlabel @setvar! MySlowWeapon SlowWeapon if EnableOverheadMessages = 1 overhead '[ MAIN WEAPON SET! ]' 1790 endif break elseif 'unidentified' in SlowWeaponlabel @ignore SlowWeapon else overhead '[ SELECT YOUR MAIN WEAPON... ]' 153 getlabel backpack backpacklabel @setvar! SlowWeapon while targetexists wait 100 endwhile if EnableOverheadMessages = 1 overhead '[ MAIN WEAPON SET! ]' 77 endif @setvar! MySlowWeapon SlowWeapon break endif endwhile clearignore endif elseif skill 'Mace Fighting' >= 50 if not find MyFastWeapon self and EnableFastSecondHit = 1 clearignore while findtype "flail|war axe|war mace|flanged mace|mace|maul|cudgel|hammer pick|club|skull club" self as FastWeapon getlabel FastWeapon FastWeaponlabel wait 250 if 'aspect' in FastWeaponlabel @setvar! MyFastWeapon FastWeapon if EnableOverheadMessages = 1 overhead '[ FAST WEAPON SET! ]' 1790 endif break elseif 'unidentified' in FastWeaponLabel @ignore FastWeapon else overhead '[ SELECT YOUR FAST WEAPON... ]' 153 getlabel backpack backpacklabel @setvar! FastWeapon while targetexists wait 100 endwhile if EnableOverheadMessages = 1 overhead '[ FAST WEAPON SET! ]' 77 endif @setvar! MyFastWeapon FastWeapon break endif endwhile clearignore endif if not find MySlowWeapon self or not varexist MySlowWeapon clearignore while findtype "war hammer|great mace|giant club|giant spiked club|sledgehammer" self as SlowWeapon getlabel SlowWeapon SlowWeaponlabel wait 250 if 'aspect' in SlowWeaponlabel @setvar! MySlowWeapon SlowWeapon if EnableOverheadMessages = 1 overhead '[ MAIN WEAPON SET! ]' 1790 endif break elseif 'unidentified' in SlowWeaponlabel @ignore SlowWeapon else overhead '[ SELECT YOUR MAIN WEAPON... ]' 153 @setvar! SlowWeapon getlabel backpack backpacklabel while targetexists wait 100 endwhile if EnableOverheadMessages = 1 overhead '[ MAIN WEAPON SET! ]' 77 endif @setvar! MySlowWeapon SlowWeapon break endif endwhile clearignore endif elseif skill 'Fencing' >= 50 if not find MyFastWeapon self and EnableFastSecondHit = 1 clearignore while findtype "kryss|war fork|epee|rapier|sabre|assassins dagger|tracker knife|kukri" self as FastWeapon getlabel FastWeapon FastWeaponlabel wait 250 if 'aspect' in FastWeaponlabel @setvar! MyFastWeapon FastWeapon if EnableOverheadMessages = 1 overhead '[ FAST WEAPON SET! ]' 1790 endif break elseif 'unidentified' in FastWeaponLabel @ignore FastWeapon else overhead '[ SELECT YOUR FAST WEAPON... ]' 153 getlabel backpack backpacklabel @setvar! FastWeapon while targetexists wait 100 endwhile if EnableOverheadMessages = 1 overhead '[ FAST WEAPON SET! ]' 77 endif @setvar! MyFastWeapon FastWeapon break endif endwhile clearignore endif if not find MySlowWeapon self or not varexist MySlowWeapon clearignore while findtype "sarissa|Long Spear|short spear|pitchfork" self as SlowWeapon getlabel SlowWeapon SlowWeaponlabel wait 250 if 'aspect' in SlowWeaponlabel @setvar! MySlowWeapon SlowWeapon if EnableOverheadMessages = 1 overhead '[ MAIN WEAPON SET! ]' 1790 endif break elseif 'unidentified' in SlowWeaponlabel @ignore SlowWeapon else overhead '[ SELECT YOUR MAIN WEAPON... ]' 153 @setvar! SlowWeapon getlabel backpack backpacklabel while targetexists wait 100 endwhile if EnableOverheadMessages = 1 overhead '[ MAIN WEAPON SET! ]' 77 endif @setvar! MySlowWeapon SlowWeapon break endif endwhile clearignore endif endif if EnableWizardHatStealthTrick = 1 if not varexist MagicWizardHat or not find MagicWizardHat self clearignore while findtype 5912 backpack as PotentialWizardHat getlabel PotentialWizardHat MyHatdesc wait 250 if 'restyled' in MyHatdesc or 'unidentified' in MyHatdesc @ignore PotentialWizardHat elseif 'armored' in MyHatdesc or 'magical' in MyHatdesc @setvar! MagicWizardHat PotentialWizardHat wait 500 break endif endwhile clearignore endif if find MagicWizardHat backpack if not varexist MyHelmet or not find MyHelmet self if findlayer self head as helm @setvar! MyHelmet helm endif endif endif endif @setvar! EnableUseEmotes 1 @setvar! SetEmoteCooldown 30000 # Requires the following emotes to be unlocked: [Awoo, [HighFive, [Yes and [Whistle # Requires 'EnableOverheadMessages' set to '1' # Will use Emotes when Aspect, Codex or Chain Links are leveled up and when entering the Auto Heal loop # Also uses Emotes when certain finishers are performed (W.I.P.) and when target is eliminated # Cooldown defaults to 2 minutes but can be reduced via customizations in-game (375k gold reduces it to 30 seconds) # Add optional cooldown in UO client: 'Emote Cooldown' (case sensitive) if not timerexists "EmoteCooldownTimer" createtimer "EmoteCooldownTimer" settimer "EmoteCooldownTimer" SetEmoteCooldown endif if hidden if cooldown 'Stealth' @setvar! Stealthing 1 @setvar! StealthingReady 1 else @setvar! Stealthing 0 @setvar! StealthingReady 0 endif else @setvar! Stealthing 0 @setvar! StealthingReady 0 endif @setvar! KeepOnTrucking 0 if EnablePKRadar = 1 if skill 'Tracking' > 50 if not findbuff 'tracking' while not gumpexists 4267467659 useskill 'tracking' wait 250 endwhile if gumpexists 4267467659 while not insysmsg "You will now hunt all hostile players." gumpresponse 8 4267467659 waitforgump 4267467659 5000 endwhile gumpresponse 6 4267467659 wait 500 clearsysmsg endif gumpclose 4267467659 if EnableOverheadMessages = 1 overhead "[ TRACKING ACTIVATED! ]" 334 endif endif endif endif if EnableEatingFood = 1 if not findbuff 'food satisfaction' and findtype "tray" self if findtype "tray" self as Food if EnableOverheadMessages = 1 overhead "[ EATING FOOD... ]" 88 endif dclick Food wait 500 endif endif endif /////////////////// // ALIVE LOOP: // /////////////////// while not dead if insysmsg 'You have been revealed' if EnableOverheadMessages = 1 overhead '[ !! REVEALED !! ]' 153 else overhead ' !! � !! ' 153 endif clearsysmsg hotkey 'Toggle War Only' @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 cooldown 'Hiding' 5000 endif if EnableDropGoldWhenOverweight = 1 if weight > maxweight if timer OverweightMessageTimer > 4500 overhead "[ OVERWEIGHT! ]" 34 settimer OverweightMessageTimer 0 endif if DropGoldAmount != 0 clearignore @setvar! DisableVacuums 1 wait 250 if EnablePutLootinLockBox = 1 if findtype "wooden box" self as lockbox if findtype "copper key" self as key getlabel lockbox lockboxlabel wait 100 if "items" in lockboxlabel // Do nothing else dclick key wft 1500 target lockbox if EnableOverheadMessages = 1 overhead "[loot box unlocked]" 2114 endif wait 500 if insysmsg "It appears to be locked." dclick key wft 1500 target lockbox wait 250 endif endif elseif EnableOverheadMessages = 1 overhead "[ NO LOCKBOX KEY! ]" 337 endif endif endif while weight > maxweight if findtype "gold coin" self as easycomeeasygo lift easycomeeasygo DropGoldAmount droprelloc 0 0 getlabel backpack packdesc if EnableOverheadMessages = 1 overhead "[ DROPPING GOLD... ]" 149 endif wait 250 if insysmsg "cannot drop anything" drop backpack -1 -1 -1 break endif wait 250 else break endif if diffhits > 30 break endif endwhile endif endif endif if EnableAutoParalyzePouch = 1 if paralyzed if findtype "pouch" self yell "[pouch" wait 250 else if timer PopPouchMessageTimer > 5000 and EnableOverheadMessages = 1 overhead "[ NO POUCHES! ]" 337 settimer PopPouchMessageTimer 0 endif endif endif endif if EnableArcheryWarningMessage = 1 and skill 'Archery' >= 50 if findtype 'stubnose crossbow|tower guard crossbow|balestra|heavy crossbow|crossbow' hand @setvar! AMMO 1 elseif findtype 'long bow|bow|recurve bow|composite bow' hand @setvar! AMMO 2 endif if counttype "crossbow bolt" self < ArcheryLowAmmoWarningAmount and timer "AmmunitionTimer" > 6000 and AMMO = 1 overhead "[ AMMO LOW! ]" 37 settimer 'AmmunitionTimer' 0 endif if counttype "arrow" self < ArcheryLowAmmoWarningAmount and timer 'AmmunitionTimer' > 6000 and AMMO = 2 overhead "[ AMMO LOW! ]" 37 settimer 'AmmunitionTimer' 0 endif endif if EnableWeightWarningMessage = 1 if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer WeightTimer > 6000 if EnableOverheadMessages = 1 overhead "[ WEIGHT WARNING... ]" 77 settimer "WeightTimer" 0 else overhead " � " 77 settimer "WeightTimer" 0 endif elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer WeightTimer > 6000 if EnableOverheadMessages = 1 overhead "[ WEIGHT WARNING! ]" 153 settimer "WeightTimer" 0 else overhead " � " 153 settimer "WeightTimer" 0 endif elseif diffweight <= RedWeightLimitDiffWeight and timer WeightTimer > 6000 if EnableOverheadMessages = 1 overhead "[ WEIGHT LIMIT REACHED! ]" 37 settimer "WeightTimer" 0 wait 500 else overhead " � " 37 settimer "WeightTimer" 0 endif wait 500 if weight > maxweight if EnableDropGoldWhenOverweight = 1 if EnableOverheadMessages = 1 wait 1000 overhead "[ OVERWEIGHT! ]" 337 endif replay else if EnableOverheadMessages = 1 overhead "[ OVERWEIGHT! ]" 337 wait 2000 endif overhead "[ STOPPING SCRIPT! ]" 88 stop endif endif if EnableTriggerDungeonEscapeScript = 1 foreach EscapeScript in DungeonEscapeScriptList script EscapeScript endfor endif endif endif if EnableWeaponCheck = 1 if not find MySlowWeapon hand or not varexist MySlowWeapon clearignore if skill 'Mace Fighting' >= 50 if not findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' self if timer NoWeaponOverheadTimer > 5000 overhead "[ NO WEAPON! ]" 337 settimer NoWeaponOverheadTimer 0 endif clearignore else if not findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' hand if findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' backpack as MySlowWeapon for 10 getlabel MySlowWeapon WeaponLabel wait 250 if "aspect" in WeaponLabel break elseif "unidentified" in WeaponLabel @ignore MySlowWeapon wait 250 else @ignore MySlowWeapon wait 250 endif if findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' backpack as MySlowWeapon getlabel MySlowWeapon WeaponLabel wait 250 endif endfor wait 250 dclick MySlowWeapon wait 500 clearignore endif endif endif elseif skill 'Fencing' >= 50 if not findtype '30992|3938|3719|5123' self if timer NoWeaponOverheadTimer > 5000 overhead "[ NO WEAPON! ]" 337 settimer NoWeaponOverheadTimer 0 endif clearignore else if not findtype '30992|3938|3719|5123' hand if findtype '30992|3938|3719|5123' backpack as MySlowWeapon for 10 getlabel MySlowWeapon WeaponLabel wait 250 if "aspect" in WeaponLabel break elseif "unidentified" in WeaponLabel @ignore MySlowWeapon wait 250 else @ignore MySlowWeapon wait 250 endif if findtype '30992|3938|3719|5123' backpack as MySlowWeapon getlabel MySlowWeapon WeaponLabel wait 250 endif endfor wait 250 dclick MySlowWeapon wait 500 clearignore endif endif endif elseif skill 'Archery' >= 50 if not findtype 'heavy crossbow|long bow|tower guard crossbow' self if timer NoWeaponOverheadTimer > 5000 overhead "[ NO WEAPON! ]" 337 settimer NoWeaponOverheadTimer 0 endif clearignore else if not findtype 'heavy crossbow|long bow|tower guard crossbow' hand if findtype 'heavy crossbow|long bow|tower guard crossbow' backpack as MySlowWeapon for 10 getlabel MySlowWeapon WeaponLabel wait 250 if "aspect" in WeaponLabel break elseif "unidentified" in WeaponLabel @ignore MySlowWeapon wait 250 else @ignore MySlowWeapon wait 250 endif if findtype 'heavy crossbow|long bow|tower guard crossbow' backpack as MySlowWeapon getlabel MySlowWeapon WeaponLabel wait 250 endif endfor wait 250 dclick MySlowWeapon wait 500 clearignore endif endif endif endif endif endif ///////////////////// // VISIBLE LOOP: // ///////////////////// while not hidden @setvar! KeepOnTrucking 0 @setvar! Stealthing 0 @setvar! StealthingReady 0 ///////////////////////////// // VISIBLE WARMODE LOOP: // ///////////////////////////// if warmode while warmode if timer WarModeOverheadTimer > 3000 if cooldown 'Hiding' if EnableOverheadMessages = 1 overhead "[ VISIBLE MODE! ]" 1909 else overhead " � " 1909 endif else if EnableOverheadMessages = 1 overhead "[ VISIBLE MODE! ]" 69 else overhead " � " 1909 endif endif settimer WarModeOverheadTimer 0 endif if EnablePKRadar = 1 if insysmsg "Now tracking" clearsysmsg if EnableRedAlertOverhead = 1 overhead "[ !! RED ALERT !! ]" 337 wait 500 endif if not hidden if not cooldown 'Hiding' if targetexists hotkey 'Cancel Current Target' endif useskill "Hiding" wait 500 while insysmsg 'You must wait' clearsysmsg useskill 'Hiding' wait 500 endwhile if not hidden if counttype 52149 self > 0 if not cooldown 'Smoke Bomb' clearsysmsg hotkey 'Smoke Bomb' wait 500 if insysmsg 'You must wait another' if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB UNAVAILABLE ]' 333 endif hotkey 'Toggle War Only' break else if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB! ]' 1790 endif @setvar! Stealthing 1 @setvar! StealthingReady 1 cooldown 'Hiding' 0 cooldown 'Stealth' 10000 cooldown 'Smoke Bomb' SmokeBombCooldown break endif else if EnableOverheadMessages = 1 overhead '[ SMOKE ON COOLDOWN! ]' 33 endif hotkey 'Toggle War Only' break endif else if EnableOverheadMessages = 1 overhead '[ NO SMOKE BOMBS ]' 337 endif break endif endif endif else if EnableOverheadMessages = 1 wait 500 overhead "[ ALREADY HIDDEN! ]" 11 endif endif endif endif if EnableWeaponCheck = 1 if skill 'Mace Fighting' >= 50 if not findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' self if timer NoWeaponOverheadTimer > 5000 overhead "[ NO WEAPON! ]" 337 settimer NoWeaponOverheadTimer 0 endif clearignore else if not findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' hand clearignore if findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' backpack as MySlowWeapon for 10 getlabel MySlowWeapon WeaponLabel wait 250 if "aspect" in WeaponLabel break elseif "unidentified" in WeaponLabel @ignore MySlowWeapon wait 250 else @ignore MySlowWeapon wait 250 endif if findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' backpack as MySlowWeapon getlabel MySlowWeapon WeaponLabel wait 250 endif endfor wait 250 dclick MySlowWeapon wait 500 clearignore endif endif endif elseif skill 'Fencing' >= 50 if not findtype '30992|3938|3719|5123' self if timer NoWeaponOverheadTimer > 5000 overhead "[ NO WEAPON! ]" 337 settimer NoWeaponOverheadTimer 0 endif clearignore else if not findtype '30992|3938|3719|5123' hand if findtype '30992|3938|3719|5123' backpack as MySlowWeapon for 10 getlabel MySlowWeapon WeaponLabel wait 250 if "aspect" in WeaponLabel break elseif "unidentified" in WeaponLabel @ignore MySlowWeapon wait 250 else @ignore MySlowWeapon wait 250 endif if findtype '30992|3938|3719|5123' backpack as MySlowWeapon getlabel MySlowWeapon WeaponLabel wait 250 endif endfor wait 250 dclick MySlowWeapon wait 500 clearignore endif endif endif elseif skill 'Archery' >= 50 if not findtype 'heavy crossbow|long bow|tower guard crossbow' self if timer NoWeaponOverheadTimer > 5000 overhead "[ NO WEAPON! ]" 337 settimer NoWeaponOverheadTimer 0 endif clearignore else if not findtype 'heavy crossbow|long bow|tower guard crossbow' hand clearignore if findtype 'heavy crossbow|long bow|tower guard crossbow' backpack as MySlowWeapon for 10 getlabel MySlowWeapon WeaponLabel wait 250 if "aspect" in WeaponLabel break elseif "unidentified" in WeaponLabel @ignore MySlowWeapon wait 250 else @ignore MySlowWeapon wait 250 endif if findtype 'heavy crossbow|long bow|tower guard crossbow' backpack as MySlowWeapon getlabel MySlowWeapon WeaponLabel wait 250 endif endfor wait 250 dclick MySlowWeapon wait 500 clearignore endif endif endif endif endif if diffweight >= RedWeightLimitDiffWeight @setvar! DisableVacuums 0 endif if EnableAutoParalyzePouch = 1 if paralyzed if findtype "pouch" self yell "[pouch" wait 250 else if timer PopPouchMessageTimer > 5000 and EnableOverheadMessages = 1 overhead "[ NO POUCHES! ]" 337 settimer PopPouchMessageTimer 0 endif endif endif endif if skill 'Healing' > 0 if diffhits > 0 and not bandaging and not hidden if findtype 'clean bandage%s%' self if targetexists hotkey 'cancel current target' endif hotkey 'Bandage Self' if EnableOverheadMessages = 1 if timer BandageMessageTimer > 5000 overhead "[ BANDAGING... ]" 88 settimer BandageMessageTimer 0 endif endif wait 250 else if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 1 overhead "[ OUT OF BANDAGES! ]" 337 settimer BandageMessageTimer 0 endif endif endif endif if not warmode break endif if EnableUsePotionKegs = 1 and findtype 'empty bottle%s%' self and findtype 'keg' self and timer 'PotionKegPVPCooldown' > 30000 if not timerexists PotionKegTimer createtimer PotionKegTimer settimer PotionKegTimer 5000 endif @setvar! PotionStockCheck 0 while PotionStockCheck < 8 and findtype 'empty bottle%s%' self @setvar! PotionAmounttoFill 0 if PotionStockCheck = 0 if ExplosionPotionAmount != 0 @setvar! PotionType 3853 @setvar! KegColour 419 @setvar! PotionAmounttoFill ExplosionPotionAmount endif @setvar! PotionStockCheck 1 elseif PotionStockCheck = 1 if HealingPotionAmount != 0 @setvar! PotionType 3852 @setvar! KegColour 253 @setvar! PotionAmounttoFill HealingPotionAmount endif @setvar! PotionStockCheck 2 elseif PotionStockCheck = 2 if CurePotionAmount != 0 @setvar! PotionType 3847 @setvar! KegColour 44 @setvar! PotionAmounttoFill CurePotionAmount endif @setvar! PotionStockCheck 3 elseif PotionStockCheck = 3 if RefreshPotionAmount != 0 @setvar! PotionType 3851 @setvar! KegColour 37 @setvar! PotionAmounttoFill RefreshPotionAmount endif @setvar! PotionStockCheck 4 elseif PotionStockCheck = 4 if StrengthPotionAmount != 0 @setvar! PotionType 3849 @setvar! KegColour 956 @setvar! PotionAmounttoFill StrengthPotionAmount endif @setvar! PotionStockCheck 5 elseif PotionStockCheck = 5 if AgilityPotionAmount != 0 @setvar! PotionType 3848 @setvar! KegColour 93 @setvar! PotionAmounttoFill AgilityPotionAmount endif @setvar! PotionStockCheck 6 elseif PotionStockCheck = 6 if ResistPotionAmount != 0 @setvar! PotionType 3846 @setvar! KegColour 1109 @setvar! PotionAmounttoFill ResistPotionAmount endif @setvar! PotionStockCheck 7 elseif PotionStockCheck = 7 if PoisonPotionAmount != 0 @setvar! PotionType 3850 @setvar! KegColour 363 @setvar! PotionAmounttoFill PoisonPotionAmount endif @setvar! PotionStockCheck 8 endif if PotionAmounttoFill != 0 while counttype PotionType self < PotionAmounttoFill and warmode if not findtype 'empty bottle%s%' self if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 5000 overhead "[ NO EMPTY BOTTLES... ]" 337 settimer 'PotionKegTimer' 0 endif break endif if diffhits > 10 or not warmode break endif if findtype 'keg' self KegColour as myKeg dclick myKeg wait 250 if EnableOverheadMessages = 1 if timer 'PotionKegTimer' > 2000 overhead '[ FILLING POTS... ]' KegColour settimer 'PotionKegTimer' 0 endif endif else if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 5000 overhead "[ NO KEG TO USE... ]" KegColour settimer 'PotionKegTimer' 0 endif break endif if insysmsg "You have been in combat with another player" settimer "PotionKegPVPCooldown" 0 break endif endwhile if not warmode break endif if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 5000 overhead "[ NO EMPTY BOTTLES... ]" 337 settimer 'PotionKegTimer' 0 endif break endif endif endwhile endif if EnableHealPotion = 1 if diffhits >= HealPotionHPdiff and not hidden if findtype "Yellow Potion" self as HealPot getlabel HealPot HealPotlabel if "next" in HealPotlabel // Do nothing else @setvar! HealPotionCheck 0 if counttype 3852 self as HealPotCount @setvar! HealPotionCheck HealPotCount endif clearsysmsg dclicktype 3852 getlabel backpack backpackdesc wait 250 if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used" settimer 'HealPotionTimer' 0 cooldown "Healing Potion" HealPotionCooldown if EnableOverheadMessages = 1 if insysmsg "potion satchel used" overhead '[ FREE HEAL POTION ]' 253 else overhead "[ HEAL POTION ]" 253 endif endif clearsysmsg endif endif else if timer 'HealingPotionMessageTimer' > 4500 overhead "[ NO HEAL POTS! ]" 337 settimer 'HealingPotionMessageTimer' 0 endif endif endif endif if EnablePanaceaPotion = 1 if findbuff "bleed" or findbuff "diseased" and skill 'Alchemy' >= 80 if not findbuff "panacea potion cooldown" if findtype "Orange Potion" self dclicktype "Orange Potion" wait 500 if findbuff "panacea potion cooldown" and EnableOverheadMessages = 1 overhead "[ PANACEA POTION ]" 2117 endif cooldown 'Panacea Potion' 30000 else if timer 'CurePotionMessageTimer' > 15000 overhead "[ NO CURE POTS! ]" 337 settimer 'CurePotionMessageTimer' 0 endif endif else if EnableOverheadMessages = 1 and timer PanaceaOverheadTimer > 15000 overhead '[ PANACEA ON COOLDOWN! ]' 37 settimer PanaceaOverheadTimer 0 endif endif endif endif if EnableCleansingBrews = 1 if findbuff "Disease" or findbuff "Bleed" if timer CleansingBrewTimer > 120000 if findtype 50675 self 2935 as CleansingBrew dclick CleansingBrew if EnableOverheadMessages = 1 overhead '[ CLEANSING BREW ]' 2117 endif cooldown 'Cleansing Brew' 120000 settimer CleansingBrewTimer 0 wait 250 else if timer CleansingBrewOverhead > 15000 overhead "[ NO CLEANSING BREWS! ]" 337 settimer CleansingBrewOverhead 0 settimer CleansingBrewTimer 0 endif endif else if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 15000 overhead '[ BREW ON COOLDOWN! ]' 37 settimer CleansingBrewOverhead 0 endif endif endif endif if EnableCurePotion = 1 while poisoned if findtype "Orange Potion" self dclicktype "Orange Potion" if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 3500 overhead "[ CURE POTION ]" 44 settimer 'CurePotionMessageTimer' 0 endif wait 500 else if timer 'CurePotionMessageTimer' > 5000 overhead "[ NO CURE POTS! ]" 337 settimer 'CurePotionMessageTimer' 0 endif break endif if diffhits > 50 break endif endwhile endif if not warmode break endif if EnableRefreshPotion = 1 if diffstam >= RefreshPotionSPdiff and not hidden if findtype "Red Potion" self dclicktype "Red Potion" if EnableOverheadMessages = 1 overhead "[ REFRESH POTION ]" 37 endif wait 500 else if timer RefreshPotionMessageTimer > 4500 overhead "[ NO REFRESH POTS! ]" 337 settimer RefreshPotionMessageTimer 0 endif endif wait 500 endif endif if EnableStrengthPotion = 1 if skill 'Alchemy' > 0 and skill 'Alchemy' < 2 if insysmsg "You may now use a strength" or not findbuff "Strength" if findtype "White Potion" self dclicktype "White Potion" if EnableOverheadMessages = 1 overhead "[ STRENGTH POTION ]" 956 endif wait 500 else if timer StrengthPotionMessageTimer > 4500 overhead "[ NO STRENGTH POTS! ]" 337 settimer StrengthPotionMessageTimer 0 endif endif clearsysmsg endif else if not findbuff "Strength" if findtype "White Potion" self dclicktype "White Potion" if EnableOverheadMessages = 1 overhead "[ STRENGTH POTION ]" 956 endif wait 500 else if timer StrengthPotionMessageTimer > 4500 overhead "[ NO STRENGTH POTS! ]" 337 settimer StrengthPotionMessageTimer 0 endif endif endif endif endif if EnableAgilityPotion = 1 if not findbuff "Agility" if findtype "Blue Potion" self dclicktype "Blue Potion" if EnableOverheadMessages = 1 overhead "[ AGILITY POTION ]" 93 endif wait 500 else if timer AgilityPotionMessageTimer > 4500 overhead "[ NO AGILITY POTS! ]" 337 settimer AgilityPotionMessageTimer 0 endif endif endif endif if EnableMagicResistPotion = 1 if not findbuff "Magic Resist" if findtype "Black Potion" self dclicktype "Black Potion" if EnableOverheadMessages = 1 overhead "[ RESIST POTION ]" 1109 endif wait 500 else if timer ResistPotionMessageTimer > 4500 overhead "[ NO RESIST POTS! ]" 337 settimer ResistPotionMessageTimer 0 endif endif endif endif if EnableDropGoldWhenOverweight = 1 if weight > maxweight if timer OverweightMessageTimer > 4500 overhead "[ OVERWEIGHT! ]" 34 settimer OverweightMessageTimer 0 endif if DropGoldAmount != 0 clearignore @setvar! DisableVacuums 1 wait 250 if EnablePutLootinLockBox = 1 if findtype "wooden box" self as lockbox if findtype "copper key" self as key getlabel lockbox lockboxlabel wait 100 if "items" in lockboxlabel // Do nothing else dclick key wft 1500 target lockbox if EnableOverheadMessages = 1 overhead "[loot box unlocked]" 2114 endif wait 500 if insysmsg "It appears to be locked." dclick key wft 1500 target lockbox wait 250 endif endif elseif EnableOverheadMessages = 1 overhead "[ NO LOCKBOX KEY! ]" 337 endif endif endif while weight > maxweight if findtype "gold coin" self as easycomeeasygo lift easycomeeasygo DropGoldAmount droprelloc 0 0 getlabel backpack packdesc if EnableOverheadMessages = 1 overhead "[ DROPPING GOLD... ]" 149 endif wait 250 if insysmsg "cannot drop anything" drop backpack -1 -1 -1 break endif wait 250 else break endif if diffhits > 30 break endif endwhile endif endif endif if timer OrganizerAgentTimer > 30000 hotkey 'Organizer Agent-01' getlabel backpack backpacklabel wait 250 hotkey 'Organizer Agent-02' settimer OrganizerAgentTimer 0 wait 250 endif if insysmsg 'Vanish activated' and hidden if EnableOverheadMessages = 1 overhead '[ VANISHED!! ]' 2114 endif cooldown 'Vanish Buff' 30000 wait 500 @setvar! Stealthing 1 @setvar! StealthingReady 1 if EnableSmokeBombDoubleTap = 1 and not dead CurrentTarget hotkey 'Toggle War Only' else hotkey 'Toggle Peace Only' endif clearsysmsg cooldown 'Stealth' 0 cooldown "Hiding" 0 break endif if EnableEatingFood = 1 if not findbuff 'food satisfaction' and findtype "tray" self if findtype "tray" self as Food if EnableOverheadMessages = 1 overhead "[ EATING FOOD... ]" 88 endif dclick Food wait 500 endif endif endif if EnableArcheryWarningMessage = 1 if skill 'Archery' >= 50 if findtype 'stubnose crossbow|tower guard crossbow|balestra|heavy crossbow|crossbow' hand @setvar! AMMO 1 elseif findtype 'long bow|bow|recurve bow|composite bow' hand @setvar! AMMO 2 endif if counttype "crossbow bolt" self < ArcheryLowAmmoWarningAmount and timer "AmmunitionTimer" > 6000 and AMMO = 1 overhead "[ AMMO LOW! ]" 37 settimer 'AmmunitionTimer' 0 endif if counttype "arrow" self < ArcheryLowAmmoWarningAmount and timer 'AmmunitionTimer' > 6000 and AMMO = 2 overhead "[ AMMO LOW! ]" 37 settimer 'AmmunitionTimer' 0 endif endif endif if EnableWeightWarningMessage = 1 if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer WeightTimer > 6000 if EnableOverheadMessages = 1 overhead "[ WEIGHT WARNING... ]" 77 settimer "WeightTimer" 0 else overhead " � " 77 settimer "WeightTimer" 0 endif elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer WeightTimer > 6000 if EnableOverheadMessages = 1 overhead "[ WEIGHT WARNING! ]" 153 settimer "WeightTimer" 0 else overhead " � " 153 settimer "WeightTimer" 0 endif elseif diffweight <= RedWeightLimitDiffWeight and timer WeightTimer > 6000 if EnableOverheadMessages = 1 overhead "[ WEIGHT LIMIT REACHED! ]" 37 settimer "WeightTimer" 0 wait 500 else overhead " � " 37 settimer "WeightTimer" 0 endif wait 500 if weight > maxweight if EnableDropGoldWhenOverweight = 1 if EnableOverheadMessages = 1 wait 1000 overhead "[ OVERWEIGHT! ]" 337 endif replay else if EnableOverheadMessages = 1 overhead "[ OVERWEIGHT! ]" 337 wait 2000 endif overhead "[ STOPPING SCRIPT! ]" 88 stop endif endif if EnableTriggerDungeonEscapeScript = 1 foreach EscapeScript in DungeonEscapeScriptList script EscapeScript endfor endif endif endif if EnableAutoCarving = 1 while findtype "corpse" ground -1 -1 2 as deadbody if findtype 11552 self if targetexists hotkey 'cancel current target' endif while not targetexists skill 'forensicevaluation' endwhile if targetexists and find deadbody ground -1 -1 2 target 'self' @ignore deadbody wait 500 endif if insysmsg "You dont see anything nearby" clearsysmsg break else if EnableOverheadMessages = 1 and timer SkinningTimer > 3000 overhead "[ SKINNING... ]" 333 settimer SkinningTimer 0 endif endif elseif skill 'forensicevaluation' > 0 if EnableOverheadMessages = 1 and timer SkinningTimer > 15000 overhead "[ NO SKINNING KNIFE ]" 337 settimer SkinningTimer 0 break endif endif endwhile endif if diffweight >= RedWeightLimitDiffWeight @setvar! DisableVacuums 0 endif if EnableGoldVacuum = 1 if DisableVacuums != 1 if findtype "gold coin" ground -1 -1 12 as droppedmoney and timer "GoldRadar" > 3500 overhead " � " 149 droppedmoney settimer "GoldRadar" 0 endif while findtype "gold coin" ground -1 -1 2 as droppedmoney if diffhits > 35 break endif overhead " � " 149 hotkey "Grab Item" wft 2500 target droppedmoney wait 250 if insysmsg "Invalid or inaccessible item" wait 500 @ignore droppedmoney endif wait 250 endwhile endif endif if EnableArrowCleanup = 1 if skill 'Archery' > 50 while findtype 7163|3903 ground -1 -1 2 as item and diffhits < 30 if timer "ArrowCleanupTimer" > 3500 if EnableOverheadMessages = 1 overhead '[ CLEANUP... ]' 93 settimer "ArrowCleanupTimer" 0 else overhead ' � ' 93 settimer "ArrowCleanupTimer" 0 endif endif hotkey "Grab Item" wft 1000 target item wait 250 endwhile if findtype "quiver" self as MyQuiver and timer "QuiverTimer" > 30000 while findtype "quiver" self as MyQuiver getlabel MyQuiver MyQuiverdesc wait 250 if 'decorative' in MyQuiverdesc @ignore MyQuiver wait 500 else break endif endwhile settimer "QuiverTimer" 0 menu MyQuiver 0 wait 250 endif if findtype 7163 ground -1 -1 10 as bolt and timer "BoltCleanupRadar" > 3500 overhead "�" 93 bolt settimer "BoltCleanupRadar" 0 endif if findtype 3903 ground -1 -1 10 as arrow and timer "ArrowCleanupRadar" > 3500 overhead "�" 37 arrow settimer "ArrowCleanupRadar" 0 endif endif endif if EnableDungeonCleanup = 1 if DisableVacuums != 1 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 < 10 if diffhits > 10 break endif if EnableOverheadMessages = 1 if timer "DungeonCleanup" > 1500 overhead '[ CLEANUP... ]' 420 settimer "DungeonCleanup" 0 endif else if timer "DungeonCleanup" > 1500 overhead ' � ' 420 settimer "DungeonCleanup" 0 endif endif hotkey "Grab Item" wft 1000 target item wait 250 endwhile 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" > 3500 overhead " � " 420 dungeonjunk settimer "DungeonCleanupRadar" 0 endif endif endif if not warmode break endif endwhile endif /////////////////////////////// // END VISIBLE WARMODE LOOP // /////////////////////////////// /////////////////////////// // VISIBLE PEACE LOOP: // /////////////////////////// if not warmode while not cooldown 'Hiding' and not cooldown 'Stealth' if targetexists hotkey 'Cancel Current Target' endif useskill 'Hiding' wait 500 if not hidden if insysmsg 'You must wait' and not hidden if timer HidingOverheadTimer > 2800 if EnableOverheadMessages = 1 overhead "[ WAITING TO HIDE... ]" 13 else overhead " � " 13 endif settimer HidingOverheadTimer 0 endif if EnableHealPotion = 1 if diffhits >= HealPotionHPdiff and not hidden if findtype "Yellow Potion" self as HealPot getlabel HealPot HealPotlabel if "next" in HealPotlabel // Do nothing else @setvar! HealPotionCheck 0 if counttype 3852 self as HealPotCount @setvar! HealPotionCheck HealPotCount endif clearsysmsg dclicktype 3852 getlabel backpack backpackdesc wait 250 if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used" settimer 'HealPotionTimer' 0 cooldown "Healing Potion" HealPotionCooldown if EnableOverheadMessages = 1 if insysmsg "potion satchel used" overhead '[ FREE HEAL POTION ]' 253 else overhead "[ HEAL POTION ]" 253 endif endif clearsysmsg endif endif else if timer 'HealingPotionMessageTimer' > 4500 overhead "[ NO HEAL POTS! ]" 337 settimer 'HealingPotionMessageTimer' 0 endif endif endif endif if EnablePanaceaPotion = 1 if skill 'Alchemy' >= 80 if findbuff "bleed" or findbuff "diseased" if not findbuff "panacea potion cooldown" if findtype "Orange Potion" self dclicktype "Orange Potion" wait 500 if findbuff "panacea potion cooldown" and EnableOverheadMessages = 1 overhead "[ PANACEA POTION ]" 2117 endif cooldown 'Panacea Potion' 30000 else if timer 'CurePotionMessageTimer' > 15000 overhead "[ NO CURE POTS! ]" 337 settimer 'CurePotionMessageTimer' 0 endif endif else if EnableOverheadMessages = 1 and timer PanaceaOverheadTimer > 15000 overhead '[ PANACEA ON COOLDOWN! ]' 37 settimer PanaceaOverheadTimer 0 endif endif endif endif endif if EnableCleansingBrews = 1 if findbuff "Disease" or findbuff "Bleed" if timer CleansingBrewTimer > 120000 if findtype 50675 self 2935 as CleansingBrew dclick CleansingBrew if EnableOverheadMessages = 1 overhead '[ CLEANSING BREW ]' 2117 endif cooldown 'Cleansing Brew' 120000 settimer CleansingBrewTimer 0 wait 250 else if timer CleansingBrewOverhead > 15000 overhead "[ NO CLEANSING BREWS! ]" 337 settimer CleansingBrewOverhead 0 settimer CleansingBrewTimer 0 endif endif else if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 15000 overhead '[ BREW ON COOLDOWN! ]' 37 settimer CleansingBrewOverhead 0 endif endif endif endif if EnableCurePotion = 1 while poisoned if findtype "Orange Potion" self dclicktype "Orange Potion" if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 3500 overhead "[ CURE POTION ]" 44 settimer 'CurePotionMessageTimer' 0 endif wait 250 else if timer 'CurePotionMessageTimer' > 5000 overhead "[ NO CURE POTS! ]" 337 settimer 'CurePotionMessageTimer' 0 endif break endif if diffhits > 50 break endif endwhile endif if diffhits > 0 and not bandaging and not hidden and skill 'healing' > 0 if findtype 'clean bandage%s%' self if targetexists hotkey 'cancel current target' endif hotkey 'Bandage Self' if EnableOverheadMessages = 1 if timer BandageMessageTimer > 5000 overhead "[ BANDAGING... ]" 88 settimer BandageMessageTimer 0 endif endif wait 500 else if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 1 overhead "[ OUT OF BANDAGES! ]" 337 settimer BandageMessageTimer 0 endif endif endif if EnableRefreshPotion = 1 if diffstam >= RefreshPotionSPdiff and not hidden if findtype "Red Potion" self dclicktype "Red Potion" if EnableOverheadMessages = 1 overhead "[ REFRESH POTION ]" 37 endif wait 500 else if timer RefreshPotionMessageTimer > 4500 overhead "[ NO REFRESH POTS! ]" 337 settimer RefreshPotionMessageTimer 0 endif endif wait 500 endif endif else if EnableSmokeBombWhenAggro = 1 if counttype 52149 self > 0 if not cooldown 'Smoke Bomb' and not hidden clearsysmsg hotkey 'Smoke Bomb' wait 500 if insysmsg 'You must wait another' if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB UNAVAILABLE ]' 333 endif hotkey 'Toggle War Only' break else if hidden if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB! ]' 1790 endif @setvar! Stealthing 1 @setvar! StealthingReady 1 cooldown 'Hiding' 0 cooldown 'Stealth' 10000 cooldown 'Smoke Bomb' SmokeBombCooldown endif break endif else if EnableOverheadMessages = 1 overhead '[ SMOKE ON COOLDOWN! ]' 33 endif hotkey 'Toggle War Only' break endif else if EnableOverheadMessages = 1 overhead '[ NO SMOKE BOMBS ]' 337 endif cooldown 'Hiding' 1000 if not hidden hotkey 'Toggle War Only' break endif endif else cooldown 'Hiding' 1000 if not hidden hotkey 'Toggle War Only' break endif endif endif else if hidden and not cooldown 'Hiding' @setvar! StealthingReady 1 endif wait 250 break endif endwhile ////////////////////////////// // END VISIBLE PEACE LOOP // ////////////////////////////// if hidden and not cooldown 'Hiding' @setvar! StealthingReady 1 break endif if cooldown 'Hiding' or cooldown 'Stealth' if not hidden if EnableOverheadMessages = 1 if timer CooldownOverheadTimer > 3500 overhead '[ HIDING NOT READY... ]' 111 settimer CooldownOverheadTimer 0 endif endif hotkey 'Toggle War Only' break endif if EnableHealPotion = 1 if diffhits >= HealPotionHPdiff and not hidden if findtype "Yellow Potion" self as HealPot getlabel HealPot HealPotlabel if "next" in HealPotlabel // Do nothing else @setvar! HealPotionCheck 0 if counttype 3852 self as HealPotCount @setvar! HealPotionCheck HealPotCount endif clearsysmsg dclicktype 3852 getlabel backpack backpackdesc wait 250 if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used" settimer 'HealPotionTimer' 0 cooldown "Healing Potion" HealPotionCooldown if EnableOverheadMessages = 1 if insysmsg "potion satchel used" overhead '[ FREE HEAL POTION ]' 253 else overhead "[ HEAL POTION ]" 253 endif endif clearsysmsg endif endif else if timer 'HealingPotionMessageTimer' > 4500 overhead "[ NO HEAL POTS! ]" 337 settimer 'HealingPotionMessageTimer' 0 endif endif endif endif if EnablePanaceaPotion = 1 if skill 'Alchemy' >= 80 if findbuff "bleed" or findbuff "diseased" if not findbuff "panacea potion cooldown" if findtype "Orange Potion" self dclicktype "Orange Potion" wait 500 if findbuff "panacea potion cooldown" and EnableOverheadMessages = 1 overhead "[ PANACEA POTION ]" 2117 endif cooldown 'Panacea Potion' 30000 else if timer 'CurePotionMessageTimer' > 15000 overhead "[ NO CURE POTS! ]" 337 settimer 'CurePotionMessageTimer' 0 endif endif else if EnableOverheadMessages = 1 and timer PanaceaOverheadTimer > 15000 overhead '[ PANACEA ON COOLDOWN! ]' 37 settimer PanaceaOverheadTimer 0 endif endif endif endif endif if EnableCleansingBrews = 1 if findbuff "Disease" or findbuff "Bleed" if timer CleansingBrewTimer > 120000 if findtype 50675 self 2935 as CleansingBrew dclick CleansingBrew if EnableOverheadMessages = 1 overhead '[ CLEANSING BREW ]' 2117 endif cooldown 'Cleansing Brew' 120000 settimer CleansingBrewTimer 0 wait 250 else if timer CleansingBrewOverhead > 15000 overhead "[ NO CLEANSING BREWS! ]" 337 settimer CleansingBrewOverhead 0 settimer CleansingBrewTimer 0 endif endif else if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 15000 overhead '[ BREW ON COOLDOWN! ]' 37 settimer CleansingBrewOverhead 0 endif endif endif endif if EnableCurePotion = 1 while poisoned if findtype "Orange Potion" self dclicktype "Orange Potion" if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 3500 overhead "[ CURE POTION ]" 44 settimer 'CurePotionMessageTimer' 0 endif wait 250 else if timer 'CurePotionMessageTimer' > 5000 overhead "[ NO CURE POTS! ]" 337 settimer 'CurePotionMessageTimer' 0 endif break endif if diffhits > 40 break endif endwhile endif if diffhits > 0 if not bandaging and not hidden and skill 'healing' > 0 if findtype 'clean bandage%s%' self if targetexists hotkey 'cancel current target' endif hotkey 'Bandage Self' if EnableOverheadMessages = 1 if timer BandageMessageTimer > 5000 overhead "[ BANDAGING... ]" 88 settimer BandageMessageTimer 0 endif endif wait 500 else if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 1 overhead "[ OUT OF BANDAGES! ]" 337 settimer BandageMessageTimer 0 endif endif endif endif if EnableRefreshPotion = 1 if diffstam >= RefreshPotionSPdiff and not hidden if findtype "Red Potion" self dclicktype "Red Potion" if EnableOverheadMessages = 1 overhead "[ REFRESH POTION ]" 37 endif wait 500 else if timer RefreshPotionMessageTimer > 4500 overhead "[ NO REFRESH POTS! ]" 337 settimer RefreshPotionMessageTimer 0 endif endif wait 500 endif endif endif endif endwhile //////////////////////// // END VISIBLE LOOP // //////////////////////// /////////////////////////////////// // WAITING FOR STEALTH LOOP: // /////////////////////////////////// while hidden and StealthingReady = 0 if not cooldown 'Hiding' or insysmsg 'You feel comfortable enough to begin' if EnableWizardHatStealthTrick = 1 if find MagicWizardHat backpack and find MyHelmet self if hidden and stam = maxstam if EnableOverheadMessages = 1 overhead '[ HAT TRICK ]' 111 endif dclick MagicWizardHat wait 650 dclick MyHelmet getlabel backpack backpacklabel endif if not findlayer self head and find MyHelmet backpack dclick MyHelmet wait 500 endif endif if find MyHelmet backpack if not find MagicWizardHat backpack dclick MyHelmet wait 500 endif endif endif if EnableOverheadMessages = 1 overhead '[ READY TO STEALTH! ]' 69 else overhead ' � ' 69 endif @setvar! StealthingReady 1 @setvar! Stealthing 0 settimer NoTargetTimer 0 clearsysmsg break else @setvar! Stealthing 0 @setvar! StealthingReady 0 getlabel backpack backpacklabel clearsysmsg if timer WaitingForStealthTimer > 3000 if EnableOverheadMessages = 1 overhead '[ WAITING FOR STEALTH... ]' 153 else overhead ' � ' 153 endif settimer WaitingForStealthTimer 0 endif if insysmsg 'You have been revealed' if EnableOverheadMessages = 1 overhead '[ !! REVEALED !! ]' 153 else overhead '!! � !!' 153 endif clearsysmsg hotkey 'Toggle War Only' @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 cooldown 'Hiding' 5000 break endif if not hidden @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if timer OrganizerAgentTimer > 30000 hotkey 'Organizer Agent-01' getlabel backpack backpacklabel wait 250 hotkey 'Organizer Agent-02' settimer OrganizerAgentTimer 0 wait 250 endif if EnablePKRadar = 1 if insysmsg "Now tracking" clearsysmsg if EnableRedAlertOverhead = 1 overhead "[ !! RED ALERT !! ]" 337 wait 500 endif if not hidden if not cooldown 'Hiding' if targetexists hotkey 'Cancel Current Target' endif useskill "Hiding" wait 500 while insysmsg 'You must wait' clearsysmsg wait 250 useskill 'Hiding' endwhile if hidden // Do nothing else if counttype 52149 self > 0 if not cooldown 'Smoke Bomb' and not hidden clearsysmsg hotkey 'Smoke Bomb' wait 500 if insysmsg 'You must wait another' if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB UNAVAILABLE ]' 333 endif hotkey 'Toggle War Only' break else if hidden if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB! ]' 1790 endif @setvar! Stealthing 1 @setvar! StealthingReady 1 cooldown 'Hiding' 0 cooldown 'Stealth' 10000 cooldown 'Smoke Bomb' SmokeBombCooldown endif break endif elseif not hidden if EnableOverheadMessages = 1 overhead '[ SMOKE ON COOLDOWN! ]' 33 endif hotkey 'Toggle War Only' break endif else if EnableOverheadMessages = 1 overhead '[ NO SMOKE BOMBS ]' 337 endif endif endif endif else if EnableOverheadMessages = 1 wait 500 overhead "[ ALREADY HIDDEN! ]" 11 endif wait 500 endif wait 500 endif endif if EnableArcheryWarningMessage = 1 and skill 'Archery' >= 50 if findtype 'stubnose crossbow|tower guard crossbow|balestra|heavy crossbow|crossbow' hand @setvar! AMMO 1 elseif findtype 'long bow|bow|recurve bow|composite bow' hand @setvar! AMMO 2 endif if counttype "crossbow bolt" self < ArcheryLowAmmoWarningAmount and timer "AmmunitionTimer" > 6000 and AMMO = 1 overhead "[ AMMO LOW! ]" 37 settimer 'AmmunitionTimer' 0 endif if counttype "arrow" self < ArcheryLowAmmoWarningAmount and timer 'AmmunitionTimer' > 6000 and AMMO = 2 overhead "[ AMMO LOW! ]" 37 settimer 'AmmunitionTimer' 0 endif endif if EnableWeightWarningMessage = 1 if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer WeightTimer > 6000 if EnableOverheadMessages = 1 overhead "[ WEIGHT WARNING... ]" 77 settimer "WeightTimer" 0 else overhead " � " 77 settimer "WeightTimer" 0 endif elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer WeightTimer > 6000 if EnableOverheadMessages = 1 overhead "[ WEIGHT WARNING! ]" 153 settimer "WeightTimer" 0 else overhead " � " 153 settimer "WeightTimer" 0 endif elseif diffweight <= RedWeightLimitDiffWeight and timer WeightTimer > 6000 if EnableOverheadMessages = 1 overhead "[ WEIGHT LIMIT REACHED! ]" 37 settimer "WeightTimer" 0 wait 500 else overhead " � " 37 settimer "WeightTimer" 0 endif wait 500 if weight > maxweight if EnableDropGoldWhenOverweight = 1 if EnableOverheadMessages = 1 wait 1000 overhead "[ OVERWEIGHT! ]" 337 endif replay else if EnableOverheadMessages = 1 overhead "[ OVERWEIGHT! ]" 337 wait 2000 endif overhead "[ STOPPING SCRIPT! ]" 88 stop endif endif if EnableTriggerDungeonEscapeScript = 1 foreach EscapeScript in DungeonEscapeScriptList script EscapeScript endfor endif endif endif if EnableUsePotionKegs = 1 and findtype 'empty bottle%s%' self and findtype 'keg' self and timer 'PotionKegPVPCooldown' > 30000 if not timerexists PotionKegTimer createtimer PotionKegTimer settimer PotionKegTimer 5000 endif @setvar! PotionStockCheck 0 while PotionStockCheck < 8 and findtype 'empty bottle%s%' self @setvar! PotionAmounttoFill 0 if PotionStockCheck = 0 if ExplosionPotionAmount != 0 @setvar! PotionType 3853 @setvar! KegColour 419 @setvar! PotionAmounttoFill ExplosionPotionAmount endif @setvar! PotionStockCheck 1 elseif PotionStockCheck = 1 if HealingPotionAmount != 0 @setvar! PotionType 3852 @setvar! KegColour 253 @setvar! PotionAmounttoFill HealingPotionAmount endif @setvar! PotionStockCheck 2 elseif PotionStockCheck = 2 if CurePotionAmount != 0 @setvar! PotionType 3847 @setvar! KegColour 44 @setvar! PotionAmounttoFill CurePotionAmount endif @setvar! PotionStockCheck 3 elseif PotionStockCheck = 3 if RefreshPotionAmount != 0 @setvar! PotionType 3851 @setvar! KegColour 37 @setvar! PotionAmounttoFill RefreshPotionAmount endif @setvar! PotionStockCheck 4 elseif PotionStockCheck = 4 if StrengthPotionAmount != 0 @setvar! PotionType 3849 @setvar! KegColour 956 @setvar! PotionAmounttoFill StrengthPotionAmount endif @setvar! PotionStockCheck 5 elseif PotionStockCheck = 5 if AgilityPotionAmount != 0 @setvar! PotionType 3848 @setvar! KegColour 93 @setvar! PotionAmounttoFill AgilityPotionAmount endif @setvar! PotionStockCheck 6 elseif PotionStockCheck = 6 if ResistPotionAmount != 0 @setvar! PotionType 3846 @setvar! KegColour 1109 @setvar! PotionAmounttoFill ResistPotionAmount endif @setvar! PotionStockCheck 7 elseif PotionStockCheck = 7 if PoisonPotionAmount != 0 @setvar! PotionType 3850 @setvar! KegColour 363 @setvar! PotionAmounttoFill PoisonPotionAmount endif @setvar! PotionStockCheck 8 endif if PotionAmounttoFill != 0 while counttype PotionType self < PotionAmounttoFill if not findtype 'empty bottle%s%' self if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 5000 overhead "[ NO EMPTY BOTTLES... ]" 337 settimer 'PotionKegTimer' 0 endif break endif if diffhits > 10 or not hidden break endif if findtype 'keg' self KegColour as myKeg dclick myKeg wait 250 if EnableOverheadMessages = 1 if timer 'PotionKegTimer' > 2000 overhead '[ FILLING POTS... ]' KegColour settimer 'PotionKegTimer' 0 endif endif else if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 5000 overhead "[ NO KEG TO USE... ]" KegColour settimer 'PotionKegTimer' 0 endif break endif if insysmsg "You have been in combat with another player" settimer "PotionKegPVPCooldown" 0 break endif endwhile if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 5000 overhead "[ NO EMPTY BOTTLES... ]" 337 settimer 'PotionKegTimer' 0 endif break endif endif endwhile endif if EnableWeaponCheck = 1 if not find MySlowWeapon hand if skill 'Mace Fighting' >= 50 if not findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' self if timer NoWeaponOverheadTimer > 5000 overhead "[ NO WEAPON! ]" 337 settimer NoWeaponOverheadTimer 0 endif clearignore else if not findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' hand clearignore if findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' backpack as MySlowWeapon for 10 getlabel MySlowWeapon WeaponLabel wait 250 if "aspect" in WeaponLabel break elseif "unidentified" in WeaponLabel @ignore MySlowWeapon wait 250 else @ignore MySlowWeapon wait 250 endif if findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' backpack as MySlowWeapon getlabel MySlowWeapon WeaponLabel wait 250 endif endfor wait 250 dclick MySlowWeapon wait 500 clearignore endif endif endif elseif skill 'Fencing' >= 50 if not findtype '30992|3938|3719|5123' self if timer NoWeaponOverheadTimer > 5000 overhead "[ NO WEAPON! ]" 337 settimer NoWeaponOverheadTimer 0 endif clearignore else if not findtype '30992|3938|3719|5123' hand if findtype '30992|3938|3719|5123' backpack as MySlowWeapon for 10 getlabel MySlowWeapon WeaponLabel wait 250 if "aspect" in WeaponLabel break elseif "unidentified" in WeaponLabel @ignore MySlowWeapon wait 250 else @ignore MySlowWeapon wait 250 endif if findtype '30992|3938|3719|5123' backpack as MySlowWeapon getlabel MySlowWeapon WeaponLabel wait 250 endif endfor wait 250 dclick MySlowWeapon wait 500 clearignore endif endif endif elseif skill 'Archery' >= 50 if not findtype 'heavy crossbow|long bow|tower guard crossbow' self if timer NoWeaponOverheadTimer > 5000 overhead "[ NO WEAPON! ]" 337 settimer NoWeaponOverheadTimer 0 endif clearignore else if not findtype 'heavy crossbow|long bow|tower guard crossbow' hand clearignore if findtype 'heavy crossbow|long bow|tower guard crossbow' backpack as MySlowWeapon for 10 getlabel MySlowWeapon WeaponLabel wait 250 if "aspect" in WeaponLabel break elseif "unidentified" in WeaponLabel @ignore MySlowWeapon wait 250 else @ignore MySlowWeapon wait 250 endif if findtype 'heavy crossbow|long bow|tower guard crossbow' backpack as MySlowWeapon getlabel MySlowWeapon WeaponLabel wait 250 endif endfor wait 250 dclick MySlowWeapon wait 500 clearignore endif endif endif endif endif endif if EnableEatingFood = 1 if not findbuff 'food satisfaction' and findtype "tray" self if findtype "tray" self as Food if EnableOverheadMessages = 1 overhead "[ EATING FOOD... ]" 88 endif dclick Food wait 500 endif endif endif if EnableAutoSatchels = 1 if findtype "3962|3963|3972|3973|3974|3976|3980|3981" backpack and findtype "reagent satchel" self as MyWizardBag while findtype "reagent satchel" self as MyWizardBag getlabel MyWizardBag MyWizardBagdesc wait 250 if 'decorative' in MyWizardBagdesc @ignore MyWizardBag else break endif endwhile if timer "WizardSatchelTimer" > 60000 menu MyWizardBag 0 wait 250 settimer "WizardSatchelTimer" 0 endif endif if findtype "Yellow Potion|Orange Potion|Red Potion|White Potion|Blue Potion|Black Potion|" backpack and findtype 31262 self as MyPotBag if timer "PotionSatchelTimer" > 60000 menu MyPotBag 0 wait 250 settimer "PotionSatchelTimer" 0 endif endif endif if not varexist "NoLockbox" @setvar! NoLockbox 0 endif if findtype "wooden box" self and findtype "copper key" self @setvar! NoLockbox 0 else @setvar! NoLockbox 1 endif if EnableIDandRecycleMagicItems = 1 and not findtype "3997|4148|4032|7864" self @setvar! DisableRecycler 1 else @setvar! DisableRecycler 0 endif if EnablePutLootinLockBox = 1 and NoLockbox != 1 and timer LootCooldownTimer > 10000 if not findtype "wooden box" self or not findtype "copper key" self if EnableOverheadMessages = 1 overhead "[ NO LOCKBOX FOUND! ]" 337 endif @setvar! NoLockbox 1 wait 1500 elseif counttype 2474 self > 1 or counttype 4110 self > 1 if EnableOverheadMessages = 1 overhead "[ TOO MANY LOCKBOXES/KEYS! ]" 337 endif @setvar! NoLockbox 1 wait 1500 else if EnableWizardHatStealthTrick = 1 ignore MyHelmet ignore MagicWizardHat endif ignore MySlowWeapon ignore MyFastWeapon if findtype "wooden box" self as lockbox and findtype "copper key" self as key 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|126867981|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 loottostore getlabel lockbox lockboxLabel wait 250 if "items" in lockboxLabel if EnableOverheadMessages = 1 if timer "STORELOOT" > 3500 overhead "[ SECURING LOOT... ]" 88 settimer "STORELOOT" 0 endif endif else if EnableOverheadMessages = 1 overhead "[loot box unlocked]" 2114 endif dclick key wft 1500 target lockbox wait 250 if EnableOverheadMessages = 1 if timer "STORELOOT" > 3500 overhead "[ SECURING LOOT... ]" 88 settimer "STORELOOT" 0 endif endif endif 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|126867981|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 loottostore if find loottostore lockbox @ignore loottostore else clearsysmsg lift loottostore 9999 drop lockbox -1 -1 -1 wait 500 if insysmsg "appears to be locked" dclick key wft 1500 target lockbox wait 250 clearsysmsg endif endif if not hidden break endif endwhile dclick key wft 1500 target lockbox if EnableOverheadMessages = 1 overhead "[loot box locked]" 2117 endif @setvar! NeedtoSecureLoot 0 settimer LootCooldownTimer 0 endif getlabel lockbox lockboxLabel wait 250 if "items" in lockboxLabel dclick key wft 1500 target lockbox @setvar! NeedtoSecureLoot 0 settimer LootTimer 0 settimer LootCooldownTimer 0 endif endif unignore MySlowWeapon unignore MyFastWeapon if EnableWizardHatStealthTrick = 1 unignore MyHelmet unignore MagicWizardHat endif endif endif if EnableIDandRecycleMagicItems = 1 and DisableRecycler != 1 and diffweight < IDandRecycleWeightdiff and timer MagicRecyclerCooldown > 300000 if findtype "3997|4148|4032|7864" self as RecyclingTool hotkey "Cancel Current Target" settimer MagicRecyclerCooldown 0 if not find MyContainerIDWand self and findtype 20495 self as NewContainterIDWand @setvar! MyContainerIDWand NewContainterIDWand endif if skill "Item ID" = 120 or find MyContainerIDWand self clearsysmsg clearignore if EnablePutLootinLockBox = 1 and EnablePutLootinLockBoxFailed != 1 if findtype "wooden box" self as lockbox if findtype "copper key" self as key getlabel lockbox lockboxlabel wait 250 @setvar! EnablePutLootinLockBoxFailed 0 if 'items' in lockboxlabel // Do nothing else dclick key wft 1500 target lockbox wait 250 overhead '[loot box unlocked]' 2114 endif else if EnableOverheadMessages = 1 overhead '[ KEY IS MISSING! ]' 337 @setvar! EnablePutLootinLockBox 0 wait 250 endif endif else if EnableOverheadMessages = 1 overhead '[ NO LOCKBOX FOUND! ]' 337 @setvar! EnablePutLootinLockBoxFailed 1 wait 250 endif endif endif while cooldown "Hiding" or cooldown "Stealth" if EnableOverheadMessages = 1 and timer SkillCooldownTimer > 3500 overhead '[ WAITING TO ID ITEMS... ]' 2117 settimer SkillCooldownTimer 0 endif wait 100 if not cooldown 'Hiding' and not cooldown 'Stealth' break endif endwhile if skill "Item ID" = 120 skill "Item ID" wait 500 elseif find MyContainerIDWand self dclick MyContainerIDWand wait 500 endif if insysmsg 'What do you wish to appraise and identify?' if EnablePutLootinLockBox = 1 if findtype 'wooden box' self as lockbox target lockbox else overhead '[ NO LOCKBOX FOUND ]' 337 @setvar! EnablePutLootinLockBoxFailed 1 endif wait 500 elseif EnablePutLootinLockBox = 0 overhead "[ SELECT CONTAINER TO ID... ]" 88 while targetexists wait 100 endwhile endif endif wait 500 if insysmsg "No unidentified items found." if EnableOverheadMessages = 1 wait 1000 overhead "[ NO ITEMS TO ID ]" 337 endif elseif insysmsg "That is not a container." if EnableOverheadMessages = 1 wait 1000 overhead "[ INVALID CONTAINER ]" 337 endif elseif insysmsg "You must wait a few moments to use another skill" while cooldown 'Hiding' or cooldown 'Stealth' if EnableOverheadMessages = 1 and timer SkillCooldownTimer > 3500 settimer SkillCooldownTimer 0 overhead "[ WAITING TO ID ITEMS... ]" 2117 endif wait 100 if not cooldown 'Hiding' and not cooldown 'Stealth' break endif endwhile if skill "Item ID" = 120 skill "Item ID" wait 500 elseif find MyContainerIDWand self dclick MyContainerIDWand wait 500 endif if insysmsg 'What do you wish to appraise and identify?' if EnablePutLootinLockBox = 1 if findtype 'wooden box' self as lockbox target lockbox else overhead '[ NO LOCKBOX FOUND ]' 337 @setvar! EnablePutLootinLockBoxFailed 1 endif wait 500 elseif EnablePutLootinLockBox = 0 overhead "[ SELECT CONTAINER TO ID... ]" 88 while targetexists wait 100 endwhile endif endif wait 500 if insysmsg "No unidentified items found." if EnableOverheadMessages = 1 wait 1000 overhead "[ NO ITEMS TO ID ]" 337 endif elseif insysmsg "That is not a container." if EnableOverheadMessages = 1 wait 1000 overhead "[ INVALID CONTAINER ]" 337 endif else if EnableOverheadMessages = 1 overhead "[ IDENTIFYING ITEMS... ]" 88 endif endif else if EnableOverheadMessages = 1 overhead "[ IDENTIFYING ITEMS... ]" 88 endif endif while findtype 67773|67774|67775|67776|67777|67778|67713|67723|67734|67744|67754|67764|5056|5059|5060|5061|5063|5070|5074|5075|5076|5078|5085|5089|5090|5101|5103|5105|5106|5129|5131|5132|5135|5138|5139|5142|5143|5144|5146|5201|5203|5204|5205|5207|7169|7170|7173|7175|7177|7179|7181|7610|7947|31003|31004|31005|31006|31007|31008|31009|31010|31011|31012|31015|31191|31017|31019|31021|31023|31025|31027|31029|31031|31033|31035|31037|31038|31041|31043|31045|31047|31049|31051|31053|31055|3834|3740|3742|3762|3763|10245|20006|20008|20010|20012|20014|20016|7026|7027|7029|7031|7033|7034|7035|7107|7109|31002|31130|3920|5042|5117|30990|30993|30994|30995|31184|31186|3719|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3909|3911|3913|3915|3917|3934|3937|5046|5049|5115|5119|5182|5185|5187|30988|31128|31190|22187|31141|31142|31169|31172 backpack as UnidentifiedItem getlabel UnidentifiedItem UnidentifiedItemlabel wait 150 if "aspect" in UnidentifiedItemlabel or "training" in UnidentifiedItemlabel or "vanquishing" in UnidentifiedItemlabel or "supremely" in UnidentifiedItemlabel or "greater slaying" in UnidentifiedItemlabel or "invulnerability" in UnidentifiedItemlabel or "valorite" in UnidentifiedItemlabel or "valehide" in UnidentifiedItemlabel or "valewood" in UnidentifiedItemlabel or "avarite" in UnidentifiedItemlabel or "avarhide" in UnidentifiedItemlabel or "avarwood" in UnidentifiedItemlabel or "verite" in UnidentifiedItemlabel or "verehide" in UnidentifiedItemlabel or "verewood" in UnidentifiedItemlabel or "agapite" in UnidentifiedItemlabel or "rosehide" in UnidentifiedItemlabel or "rosewood" in UnidentifiedItemlabel @ignore UnidentifiedItem elseif "durable" in UnidentifiedItemlabel or "substantial" in UnidentifiedItemlabel or "massive" in UnidentifiedItemlabel or "fortified" in UnidentifiedItemlabel or "indestructible" in UnidentifiedItemlabel or "exceptional" in UnidentifiedItemlabel or "accurate" in UnidentifiedItemlabel or "surpassingly" in UnidentifiedItemlabel or "eminently" in UnidentifiedItemlabel or "exceedingly" in UnidentifiedItemlabel or "ruin" in UnidentifiedItemlabel or "might" in UnidentifiedItemlabel or "force" in UnidentifiedItemlabel or "power" in UnidentifiedItemlabel or "mastercrafted" in UnidentifiedItemlabel or "defense" in UnidentifiedItemlabel or "guarding" in UnidentifiedItemlabel or "hardening" in UnidentifiedItemlabel or "potent" in UnidentifiedItemlabel or "melodious" in UnidentifiedItemlabel while not gumpexists 949095101 while queued // Do nothing endwhile dclick RecyclingTool waitforgump 949095101 1000 endwhile while not ingump "Recycle Single Item" 949095101 gumpresponse 2 waitforgump 949095101 1000 endwhile if EnableOverheadMessages = 1 if timer RecyclingJunkTimer > 4000 overhead '[ RECYCLING JUNK... ]' 1182 settimer RecyclingJunkTimer 0 endif endif gumpresponse 3 waitforgump 949095101 1000 target UnidentifiedItem getlabel backpack backpacklabel wait 250 gumpclose 949095101 else @ignore UnidentifiedItem endif if skill "Item ID" = 120 // Do nothing elseif not find MyContainerIDWand self break endif endwhile if gumpexists 949095101 gumpclose 949095101 endif else if EnableOverheadMessages = 1 overhead '[ NO CONTAINER ID WAND ]' 337 endif endif if targetexists hotkey "Cancel Current Target" endif if EnableAutoConsumeArcaneEssence = 1 and findtype 3901 self as MyArcaneEssence dclick MyArcaneEssence wft 1500 target self if EnableOverheadMessages = 1 overhead '[ CONSUMING ESSENCE... ]' 12 endif wait 500 endif if DropResourcesAfterRecycle = 1 while findtype "iron ingot%s|board%s|cut up leather|cut%s% of raw ribs|raw chicken leg%s%|feather%s" self as ResourcestoDrop if diffhits > 30 break endif if EnableOverheadMessages = 1 if timer "DungeonCleanup" > 2500 overhead '[ DROPPING RESOURCES... ]' 420 settimer "DungeonCleanup" 0 endif endif lift ResourcestoDrop 60000 drop 0 wait 500 endwhile endif if EnableOverheadMessages = 1 overhead '[ RECYCLE COMPLETE! ]' 2114 endif settimer MagicRecyclerCooldown 0 hotkey "Cancel Current Target" if EnablePutLootinLockBox = 1 if findtype "wooden box" self as lockbox if findtype "copper key" self as key getlabel lockbox lockboxlabel wait 250 if 'items' in lockboxlabel dclick key wft 1500 target lockbox wait 250 overhead '[loot box locked]' 2117 else // Do nothing endif else if EnableOverheadMessages = 1 overhead '[ KEY IS MISSING! ]' 337 @setvar! EnablePutLootinLockBox 0 wait 250 endif endif else if EnableOverheadMessages = 1 overhead '[ NO LOCKBOX FOUND! ]' 337 @setvar! EnablePutLootinLockBox 0 wait 250 endif endif endif else if EnableOverheadMessages = 1 overhead '[ NO RECYCLING TOOL! ]' 337 endif @setvar! DisableRecycler 1 endif endif if insysmsg 'You have been revealed' if EnableOverheadMessages = 1 overhead '[ !! REVEALED !! ]' 153 else overhead '!! � !!' 153 endif clearsysmsg hotkey 'Toggle War Only' @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 cooldown 'Hiding' 5000 break endif if not hidden @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if hidden and not cooldown 'Hiding' @setvar! StealthingReady 1 endif endif endwhile /////////////////////////////////// // END WAITING FOR STEALTH LOOP // /////////////////////////////////// @setvar! TargetAcquired 0 getlabel backpack backpacklabel clearsysmsg ///////////////////// // STEALTH LOOP: // ///////////////////// while hidden and StealthingReady = 1 and TargetAcquired != 1 if EnableWizardHatStealthTrick = 1 if find MagicWizardHat backpack and find MyHelmet self if hidden and stam = maxstam if EnableOverheadMessages = 1 overhead '[ HAT TRICK ]' 111 endif dclick MagicWizardHat wait 650 dclick MyHelmet getlabel backpack backpacklabel endif if not findlayer self head and find MyHelmet backpack dclick MyHelmet wait 500 endif endif if find MyHelmet backpack if not find MagicWizardHat backpack dclick MyHelmet wait 500 endif endif endif if insysmsg 'You begin to move quietly.' @setvar! Stealthing 1 @setvar! KeepOnTrucking 0 clearsysmsg cooldown 'Stealth' 10000 endif if insysmsg 'You feel ready to continue stealthing.' or insysmsg 'stealth steps remaining' @setvar! Stealthing 1 @setvar! KeepOnTrucking 0 endif if insysmsg 'You will automatically stealth when out of steps.' if EnableOverheadMessages = 1 overhead '[ STEALTH RENEWED ]' 69 else overhead ' � ' 69 endif @setvar! Stealthing 1 @setvar! KeepOnTrucking 1 endif if not hidden @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if EnableOverheadWarnings = 1 if cooldown 'Stealth' if insysmsg 'You have 0 stealth steps remaining.' and hidden settimer DoNotMoveTimeout 0 clearsysmsg while not insysmsg 'You feel ready to continue stealthing.' if timer DoNotMoveTimer > 500 if EnableOverheadMessages = 1 overhead '[ !!! STOP !!! ]' 37 else overhead ' � ' 37 endif settimer NoTargetTimer 0 settimer DoNotMoveTimer 0 endif if not hidden if EnableOverheadMessages = 1 overhead '[ STEALTH ENDED! ]' 2117 else overhead ' � ' 2117 endif settimer NoTargetTimer 0 @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if timer DoNotMoveTimeout > 8000 or not hidden or not cooldown 'Stealth' break endif endwhile wait 250 if hidden if EnableOverheadMessages = 1 overhead '[ KEEP GOING! ]' 69 else overhead ' � ' 69 endif settimer NoTargetTimer 0 endif elseif insysmsg 'You have 1 stealth steps remaining.' and hidden if EnableOverheadMessages = 1 overhead '[ SLOW!! ]' 333 else overhead ' � ' 333 endif settimer NoTargetTimer 0 @setvar! Stealthing 1 elseif insysmsg 'You have 2 stealth steps remaining.' and hidden if EnableOverheadMessages = 1 overhead '[ SLOW!]' 44 else overhead ' � ' 44 endif settimer NoTargetTimer 0 @setvar! Stealthing 1 elseif insysmsg 'You have 3 stealth steps remaining.' and hidden if EnableOverheadMessages = 1 overhead '[ SLOW ]' 153 else overhead ' � ' 153 endif settimer NoTargetTimer 0 @setvar! Stealthing 1 endif endif endif if Stealthing = 1 if timer FindTargetTimer > 500 hotkey "Target Closest Grey Monster" getlabel backpack backpacklabel wait 100 if insysmsg "no one matching" if timer NoTargetTimer > 3200 if EnableOverheadMessages = 1 overhead "[ NOTHING TO TARGET... ]" 2338 endif settimer NoTargetTimer 0 endif @setvar! TargetAcquired 0 else @setvar! CurrentTarget lasttarget @setvar! TargetAcquired 1 getlabel backpack backpacklabel endif settimer FindTargetTimer 0 endif else if timer NoTargetTimer > 3200 if EnableOverheadMessages = 1 overhead '[ READY TO STEALTH! ]' 69 else overhead ' � ' 69 endif settimer NoTargetTimer 0 endif endif if TargetAcquired = 1 and Stealthing = 1 break endif if insysmsg 'You have been revealed' if EnableOverheadMessages = 1 overhead '[ !! REVEALED !! ]' 153 else overhead '!! � !!' 153 endif clearsysmsg hotkey 'Toggle War Only' @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 cooldown 'Hiding' 5000 break endif if not hidden @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if EnablePKRadar = 1 if skill 'Tracking' > 50 if not findbuff 'tracking' while not gumpexists 4267467659 useskill 'tracking' wait 250 endwhile if gumpexists 4267467659 while not insysmsg "You will now hunt all hostile players." gumpresponse 8 4267467659 waitforgump 4267467659 5000 endwhile gumpresponse 6 4267467659 wait 500 clearsysmsg endif gumpclose 4267467659 if EnableOverheadMessages = 1 overhead "[ TRACKING ACTIVATED! ]" 334 endif endif endif endif if insysmsg 'You begin to move quietly.' @setvar! Stealthing 1 @setvar! KeepOnTrucking 0 clearsysmsg cooldown 'Stealth' 10000 endif if insysmsg 'You feel ready to continue stealthing.' @setvar! Stealthing 1 @setvar! KeepOnTrucking 1 endif if insysmsg 'You will automatically stealth when out of steps.' if EnableOverheadMessages = 1 overhead '[ STEALTH RENEWED ]' 69 else overhead ' � ' 69 endif @setvar! Stealthing 1 @setvar! KeepOnTrucking 1 endif if not hidden @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if EnableOverheadWarnings = 1 if cooldown 'Stealth' if insysmsg 'You have 0 stealth steps remaining.' and hidden settimer DoNotMoveTimeout 0 clearsysmsg while not insysmsg 'You feel ready to continue stealthing.' if timer DoNotMoveTimer > 500 if EnableOverheadMessages = 1 overhead '[ !!! STOP !!! ]' 37 else overhead ' � ' 37 endif settimer NoTargetTimer 0 settimer DoNotMoveTimer 0 endif if not hidden if EnableOverheadMessages = 1 overhead '[ STEALTH ENDED! ]' 2117 else overhead ' � ' 2117 endif settimer NoTargetTimer 0 @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if timer DoNotMoveTimeout > 8000 or not hidden or not cooldown 'Stealth' break endif endwhile wait 250 if hidden if EnableOverheadMessages = 1 overhead '[ KEEP GOING! ]' 69 else overhead ' � ' 69 endif settimer NoTargetTimer 0 endif elseif insysmsg 'You have 1 stealth steps remaining.' and hidden if EnableOverheadMessages = 1 overhead '[ SLOW!! ]' 333 else overhead ' � ' 333 endif settimer NoTargetTimer 0 @setvar! Stealthing 1 elseif insysmsg 'You have 2 stealth steps remaining.' and hidden if EnableOverheadMessages = 1 overhead '[ SLOW!]' 44 else overhead ' � ' 44 endif settimer NoTargetTimer 0 @setvar! Stealthing 1 elseif insysmsg 'You have 3 stealth steps remaining.' and hidden if EnableOverheadMessages = 1 overhead '[ SLOW ]' 153 else overhead ' � ' 153 endif settimer NoTargetTimer 0 @setvar! Stealthing 1 endif endif endif if insysmsg 'You have been revealed' if EnableOverheadMessages = 1 overhead '[ !! REVEALED !! ]' 153 else overhead '!! � !!' 153 endif clearsysmsg hotkey 'Toggle War Only' @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 cooldown 'Hiding' 5000 break endif if not hidden @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if EnablePKRadar = 1 if insysmsg "Now tracking" clearsysmsg if EnableRedAlertOverhead = 1 overhead "[ !! RED ALERT !! ]" 337 wait 500 endif if not hidden if not cooldown 'Hiding' if targetexists hotkey 'Cancel Current Target' endif useskill "Hiding" wait 500 while insysmsg 'You must wait' clearsysmsg wait 250 useskill 'Hiding' endwhile if hidden // Do nothing else if counttype 52149 self > 0 if not cooldown 'Smoke Bomb' and not hidden clearsysmsg hotkey 'Smoke Bomb' wait 500 if insysmsg 'You must wait another' if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB UNAVAILABLE ]' 333 endif hotkey 'Toggle War Only' break else if hidden if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB! ]' 1790 endif clearsysmsg @setvar! Stealthing 1 @setvar! StealthingReady 1 cooldown 'Hiding' 0 cooldown 'Stealth' 10000 cooldown 'Smoke Bomb' SmokeBombCooldown endif break endif else if EnableOverheadMessages = 1 overhead '[ SMOKE ON COOLDOWN! ]' 33 endif hotkey 'Toggle War Only' break endif else if EnableOverheadMessages = 1 overhead '[ NO SMOKE BOMBS ]' 337 endif break endif endif endif else if EnableOverheadMessages = 1 wait 500 overhead "[ ALREADY HIDDEN! ]" 11 endif endif endif endif if EnableArcheryWarningMessage = 1 if skill 'Archery' >= 50 if findtype 'stubnose crossbow|tower guard crossbow|balestra|heavy crossbow|crossbow' hand @setvar! AMMO 1 elseif findtype 'long bow|bow|recurve bow|composite bow' hand @setvar! AMMO 2 endif if counttype "crossbow bolt" self < ArcheryLowAmmoWarningAmount and timer "AmmunitionTimer" > 6000 and AMMO = 1 overhead "[ AMMO LOW! ]" 37 settimer 'AmmunitionTimer' 0 endif if counttype "arrow" self < ArcheryLowAmmoWarningAmount and timer 'AmmunitionTimer' > 6000 and AMMO = 2 overhead "[ AMMO LOW! ]" 37 settimer 'AmmunitionTimer' 0 endif endif endif if EnableWeightWarningMessage = 1 if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer WeightTimer > 6000 if EnableOverheadMessages = 1 overhead "[ WEIGHT WARNING... ]" 77 settimer "WeightTimer" 0 else overhead " � " 77 settimer "WeightTimer" 0 endif elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer WeightTimer > 6000 if EnableOverheadMessages = 1 overhead "[ WEIGHT WARNING! ]" 153 settimer "WeightTimer" 0 else overhead " � " 153 settimer "WeightTimer" 0 endif elseif diffweight <= RedWeightLimitDiffWeight and timer WeightTimer > 6000 if EnableOverheadMessages = 1 overhead "[ WEIGHT LIMIT REACHED! ]" 37 settimer "WeightTimer" 0 wait 500 else overhead " � " 37 settimer "WeightTimer" 0 endif wait 500 if weight > maxweight if EnableDropGoldWhenOverweight = 1 if EnableOverheadMessages = 1 wait 1000 overhead "[ OVERWEIGHT! ]" 337 endif replay else if EnableOverheadMessages = 1 overhead "[ OVERWEIGHT! ]" 337 wait 2000 endif overhead "[ STOPPING SCRIPT! ]" 88 stop endif endif if EnableTriggerDungeonEscapeScript = 1 foreach EscapeScript in DungeonEscapeScriptList script EscapeScript endfor endif endif endif if diffweight >= RedWeightLimitDiffWeight @setvar! DisableVacuums 0 endif if EnableGoldVacuum = 1 if DisableVacuums != 1 if findtype "gold coin" ground -1 -1 12 as droppedmoney and timer "GoldRadar" > 3500 overhead " � " 149 droppedmoney settimer "GoldRadar" 0 endif while findtype "gold coin" ground -1 -1 2 as droppedmoney overhead " � " 149 hotkey "Grab Item" wft 2500 target droppedmoney wait 250 if insysmsg "Invalid or inaccessible item" wait 500 @ignore droppedmoney endif wait 250 endwhile endif endif if EnableArrowCleanup = 1 if skill 'Archery' > 50 and DisableVacuums != 1 while findtype 7163|3903 ground -1 -1 2 as item if timer "ArrowCleanupTimer" > 3500 if EnableOverheadMessages = 1 overhead '[ CLEANUP... ]' 93 settimer "ArrowCleanupTimer" 0 else overhead ' � ' 93 settimer "ArrowCleanupTimer" 0 endif endif hotkey "Grab Item" wft 1000 target item wait 250 endwhile if findtype "quiver" self as MyQuiver and timer "QuiverTimer" > 30000 while findtype "quiver" self as MyQuiver getlabel MyQuiver MyQuiverdesc wait 250 if 'decorative' in MyQuiverdesc @ignore MyQuiver wait 500 else break endif endwhile settimer "QuiverTimer" 0 menu MyQuiver 0 wait 250 endif if findtype 7163 ground -1 -1 10 as bolt and timer "BoltCleanupRadar" > 3500 overhead "�" 93 bolt settimer "BoltCleanupRadar" 0 endif if findtype 3903 ground -1 -1 10 as arrow and timer "ArrowCleanupRadar" > 3500 overhead "�" 37 arrow settimer "ArrowCleanupRadar" 0 endif endif endif if EnableDungeonCleanup = 1 if DisableVacuums != 1 while findtype "iron ingot%s|board%s|cut up leather|3972|3962|3963|3980|3976|3973|3974|3981" ground -1 -1 2 as item if EnableOverheadMessages = 1 if timer "DungeonCleanup" > 1500 overhead '[ CLEANUP... ]' 420 settimer "DungeonCleanup" 0 endif else if timer "DungeonCleanup" > 1500 overhead ' � ' 420 settimer "DungeonCleanup" 0 endif endif hotkey "Grab Item" wft 1000 target item wait 250 endwhile 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" > 3500 overhead " � " 420 dungeonjunk settimer "DungeonCleanupRadar" 0 endif endif endif if EnableDropGoldWhenOverweight = 1 if weight > maxweight if timer OverweightMessageTimer > 4500 overhead "[ OVERWEIGHT! ]" 34 settimer OverweightMessageTimer 0 endif if DropGoldAmount != 0 clearignore @setvar! DisableVacuums 1 wait 250 if EnablePutLootinLockBox = 1 if findtype "wooden box" self as lockbox if findtype "copper key" self as key getlabel lockbox lockboxlabel wait 100 if "items" in lockboxlabel // Do nothing else dclick key wft 1500 target lockbox if EnableOverheadMessages = 1 overhead "[loot box unlocked]" 2114 endif wait 500 if insysmsg "It appears to be locked." dclick key wft 1500 target lockbox wait 250 endif endif elseif EnableOverheadMessages = 1 overhead "[ NO LOCKBOX KEY! ]" 337 endif endif endif while weight > maxweight if findtype "gold coin" self as easycomeeasygo lift easycomeeasygo DropGoldAmount droprelloc 0 0 getlabel backpack packdesc if EnableOverheadMessages = 1 overhead "[ DROPPING GOLD... ]" 149 endif wait 250 if insysmsg "cannot drop anything" drop backpack -1 -1 -1 break endif wait 250 else break endif if diffhits > 30 break endif endwhile endif endif endif if EnableWizardHatStealthTrick = 1 if find MagicWizardHat backpack and find MyHelmet self if hidden and stam = maxstam if EnableOverheadMessages = 1 overhead '[ HAT TRICK ]' 111 endif dclick MagicWizardHat wait 650 dclick MyHelmet getlabel backpack backpacklabel endif if not findlayer self head and find MyHelmet backpack dclick MyHelmet wait 500 endif endif if find MyHelmet backpack if not find MagicWizardHat backpack dclick MyHelmet wait 500 endif endif endif if EnableIDandRecycleMagicItems = 1 and not findtype "3997|4148|4032|7864" self @setvar! DisableRecycler 1 getlabel backpack backpacklabel else @setvar! DisableRecycler 0 endif if EnableIDandRecycleMagicItems = 1 if DisableRecycler != 1 and diffweight < IDandRecycleWeightdiff and timer MagicRecyclerCooldown > 30000 if findtype "3997|4148|4032|7864" self as RecyclingTool hotkey "Cancel Current Target" settimer MagicRecyclerCooldown 0 if not find MyContainerIDWand self and findtype 20495 self as NewContainterIDWand @setvar! MyContainerIDWand NewContainterIDWand endif if skill "Item ID" = 120 or find MyContainerIDWand self clearsysmsg clearignore if EnablePutLootinLockBox = 1 and EnablePutLootinLockBoxFailed != 1 if findtype "wooden box" self as lockbox if findtype "copper key" self as key getlabel lockbox lockboxlabel wait 250 @setvar! EnablePutLootinLockBoxFailed 0 if 'items' in lockboxlabel // Do nothing else dclick key wft 1500 target lockbox wait 250 overhead '[loot box unlocked]' 2114 endif else if EnableOverheadMessages = 1 overhead '[ KEY IS MISSING! ]' 337 @setvar! EnablePutLootinLockBox 0 wait 250 endif endif else if EnableOverheadMessages = 1 overhead '[ NO LOCKBOX FOUND! ]' 337 @setvar! EnablePutLootinLockBoxFailed 1 wait 250 endif endif endif while cooldown "Hiding" or cooldown "Stealth" if EnableOverheadMessages = 1 and timer SkillCooldownTimer > 3500 overhead '[ WAITING TO ID ITEMS... ]' 2117 settimer SkillCooldownTimer 0 endif wait 100 if not cooldown 'Hiding' and not cooldown 'Stealth' break endif endwhile if skill "Item ID" = 120 skill "Item ID" wait 500 elseif find MyContainerIDWand self dclick MyContainerIDWand wait 500 endif if insysmsg 'What do you wish to appraise and identify?' if EnablePutLootinLockBox = 1 if findtype 'wooden box' self as lockbox target lockbox else overhead '[ NO LOCKBOX FOUND ]' 337 @setvar! EnablePutLootinLockBoxFailed 1 endif wait 500 elseif EnablePutLootinLockBox = 0 overhead "[ SELECT CONTAINER TO ID... ]" 88 while targetexists wait 100 endwhile endif endif wait 500 if insysmsg "No unidentified items found." if EnableOverheadMessages = 1 wait 1000 overhead "[ NO ITEMS TO ID ]" 337 endif elseif insysmsg "That is not a container." if EnableOverheadMessages = 1 wait 1000 overhead "[ INVALID CONTAINER ]" 337 endif elseif insysmsg "You must wait a few moments to use another skill" while cooldown 'Hiding' or cooldown 'Stealth' if EnableOverheadMessages = 1 and timer SkillCooldownTimer > 3500 settimer SkillCooldownTimer 0 overhead "[ WAITING TO ID ITEMS... ]" 2117 endif wait 100 if not cooldown 'Hiding' and not cooldown 'Stealth' break endif endwhile if skill "Item ID" = 120 skill "Item ID" wait 500 elseif find MyContainerIDWand self dclick MyContainerIDWand wait 500 endif if insysmsg 'What do you wish to appraise and identify?' if EnablePutLootinLockBox = 1 if findtype 'wooden box' self as lockbox target lockbox else overhead '[ NO LOCKBOX FOUND ]' 337 @setvar! EnablePutLootinLockBoxFailed 1 endif wait 500 elseif EnablePutLootinLockBox = 0 overhead "[ SELECT CONTAINER TO ID... ]" 88 while targetexists wait 100 endwhile endif endif wait 500 if insysmsg "No unidentified items found." if EnableOverheadMessages = 1 wait 1000 overhead "[ NO ITEMS TO ID ]" 337 endif elseif insysmsg "That is not a container." if EnableOverheadMessages = 1 wait 1000 overhead "[ INVALID CONTAINER ]" 337 endif else if EnableOverheadMessages = 1 overhead "[ IDENTIFYING ITEMS... ]" 88 endif endif else if EnableOverheadMessages = 1 overhead "[ IDENTIFYING ITEMS... ]" 88 endif endif while findtype 5056|5059|5060|5061|5063|5070|5074|5075|5076|5078|5085|5089|5090|5101|5103|5105|5106|5129|5131|5132|5135|5138|5139|5142|5143|5144|5146|5201|5203|5204|5205|5207|7169|7170|7173|7175|7177|7179|7181|7610|7947|31003|31004|31005|31006|31007|31008|31009|31010|31011|31012|31015|31191|31017|31019|31021|31023|31025|31027|31029|31031|31033|31035|31037|31038|31041|31043|31045|31047|31049|31051|31053|31055|3834|3740|3742|3762|3763|10245|20006|20008|20010|20012|20014|20016|7026|7027|7029|7031|7033|7034|7035|7107|7109|31002|31130|3920|5042|5117|30990|30993|30994|30995|31184|31186|3719|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3909|3911|3913|3915|3917|3934|3937|5046|5049|5115|5119|5182|5185|5187|30988|31128|31190|22187|31141|31142|31169|31172 backpack as UnidentifiedItem getlabel UnidentifiedItem UnidentifiedItemlabel if "aspect" in UnidentifiedItemlabel or "training" in UnidentifiedItemlabel or "vanquishing" in UnidentifiedItemlabel or "supremely" in UnidentifiedItemlabel or "slaying" in UnidentifiedItemlabel or "enticement" in UnidentifiedItemlabel or "invulnerability" in UnidentifiedItemlabel or "power" in UnidentifiedItemlabel or "exceedingly accurate force" in UnidentifiedItemlabel or "exceedingly potent" in UnidentifiedItemlabel or "valorite" in UnidentifiedItemlabel or "valehide" in UnidentifiedItemlabel or "valewood" in UnidentifiedItemlabel or "avarite" in UnidentifiedItemlabel or "avarhide" in UnidentifiedItemlabel or "avarwood" in UnidentifiedItemlabel or "verite" in UnidentifiedItemlabel or "verehide" in UnidentifiedItemlabel or "verewood" in UnidentifiedItemlabel or "agapite" in UnidentifiedItemlabel or "rosehide" in UnidentifiedItemlabel or "rosewood" in UnidentifiedItemlabel or "fortification" in UnidentifiedItemlabel @ignore UnidentifiedItem elseif "durable" in UnidentifiedItemlabel or "substantial" in UnidentifiedItemlabel or "massive" in UnidentifiedItemlabel or "fortified" in UnidentifiedItemlabel or "indestructible" in UnidentifiedItemlabel or "exceptional" in UnidentifiedItemlabel or "accurate" in UnidentifiedItemlabel or "surpassingly" in UnidentifiedItemlabel or "eminently" in UnidentifiedItemlabel or "exceedingly" in UnidentifiedItemlabel or "ruin" in UnidentifiedItemlabel or "might" in UnidentifiedItemlabel or "force" in UnidentifiedItemlabel or "power" in UnidentifiedItemlabel or "mastercrafted" in UnidentifiedItemlabel or "defense" in UnidentifiedItemlabel or "guarding" in UnidentifiedItemlabel or "hardening" in UnidentifiedItemlabel or "potent" in UnidentifiedItemlabel or "melodious" in UnidentifiedItemlabel while not gumpexists 949095101 while queued // Do nothing endwhile dclick RecyclingTool waitforgump 949095101 1000 endwhile while not ingump "Recycle Single Item" 949095101 gumpresponse 2 waitforgump 949095101 1000 endwhile if EnableOverheadMessages = 1 if timer RecyclingJunkTimer > 4000 overhead '[ RECYCLING JUNK... ]' 1182 settimer RecyclingJunkTimer 0 endif endif gumpresponse 3 waitforgump 949095101 1000 target UnidentifiedItem getlabel backpack backpacklabel wait 250 gumpclose 949095101 else @ignore UnidentifiedItem endif if skill "Item ID" = 120 // Do nothing elseif not find MyContainerIDWand self break endif endwhile if gumpexists 949095101 gumpclose 949095101 endif else if EnableOverheadMessages = 1 overhead '[ NO CONTAINER ID WAND ]' 337 endif endif if targetexists hotkey "Cancel Current Target" endif if EnableAutoConsumeArcaneEssence = 1 if findtype 3901 self as MyArcaneEssence dclick MyArcaneEssence wft 1500 target self if EnableOverheadMessages = 1 overhead '[ CONSUMING ESSENCE... ]' 12 endif wait 500 endif endif if DropResourcesAfterRecycle = 1 while findtype "iron ingot%s|board%s|cut up leather|cut%s% of raw ribs|raw chicken leg%s%|feather%s" self as ResourcestoDrop if diffhits > 30 break endif if EnableOverheadMessages = 1 if timer "DungeonCleanup" > 2500 overhead '[ DROPPING RESOURCES... ]' 420 settimer "DungeonCleanup" 0 endif endif lift ResourcestoDrop 60000 drop 0 wait 500 endwhile endif if EnableOverheadMessages = 1 overhead '[ RECYCLE COMPLETE! ]' 2114 endif settimer MagicRecyclerCooldown 0 hotkey "Cancel Current Target" if EnablePutLootinLockBox = 1 if findtype "wooden box" self as lockbox if findtype "copper key" self as key getlabel lockbox lockboxlabel wait 250 if 'items' in lockboxlabel dclick key wft 1500 target lockbox wait 250 overhead '[loot box locked]' 2117 else // Do nothing endif else if EnableOverheadMessages = 1 overhead '[ KEY IS MISSING! ]' 337 @setvar! EnablePutLootinLockBox 0 wait 250 endif endif else if EnableOverheadMessages = 1 overhead '[ NO LOCKBOX FOUND! ]' 337 @setvar! EnablePutLootinLockBox 0 wait 250 endif endif endif else if EnableOverheadMessages = 1 overhead '[ NO RECYCLING TOOL! ]' 337 endif @setvar! DisableRecycler 1 endif endif endif if EnableUsePotionKegs = 1 if findtype 'empty bottle%s%' self and findtype 'keg' self and timer 'PotionKegPVPCooldown' > 30000 if not timerexists PotionKegTimer createtimer PotionKegTimer settimer PotionKegTimer 5000 endif @setvar! PotionStockCheck 0 while PotionStockCheck < 8 and findtype 'empty bottle%s%' self @setvar! PotionAmounttoFill 0 if PotionStockCheck = 0 if ExplosionPotionAmount != 0 @setvar! PotionType 3853 @setvar! KegColour 419 @setvar! PotionAmounttoFill ExplosionPotionAmount endif @setvar! PotionStockCheck 1 elseif PotionStockCheck = 1 if HealingPotionAmount != 0 @setvar! PotionType 3852 @setvar! KegColour 253 @setvar! PotionAmounttoFill HealingPotionAmount endif @setvar! PotionStockCheck 2 elseif PotionStockCheck = 2 if CurePotionAmount != 0 @setvar! PotionType 3847 @setvar! KegColour 44 @setvar! PotionAmounttoFill CurePotionAmount endif @setvar! PotionStockCheck 3 elseif PotionStockCheck = 3 if RefreshPotionAmount != 0 @setvar! PotionType 3851 @setvar! KegColour 37 @setvar! PotionAmounttoFill RefreshPotionAmount endif @setvar! PotionStockCheck 4 elseif PotionStockCheck = 4 if StrengthPotionAmount != 0 @setvar! PotionType 3849 @setvar! KegColour 956 @setvar! PotionAmounttoFill StrengthPotionAmount endif @setvar! PotionStockCheck 5 elseif PotionStockCheck = 5 if AgilityPotionAmount != 0 @setvar! PotionType 3848 @setvar! KegColour 93 @setvar! PotionAmounttoFill AgilityPotionAmount endif @setvar! PotionStockCheck 6 elseif PotionStockCheck = 6 if ResistPotionAmount != 0 @setvar! PotionType 3846 @setvar! KegColour 1109 @setvar! PotionAmounttoFill ResistPotionAmount endif @setvar! PotionStockCheck 7 elseif PotionStockCheck = 7 if PoisonPotionAmount != 0 @setvar! PotionType 3850 @setvar! KegColour 363 @setvar! PotionAmounttoFill PoisonPotionAmount endif @setvar! PotionStockCheck 8 endif if PotionAmounttoFill != 0 while counttype PotionType self < PotionAmounttoFill if not findtype 'empty bottle%s%' self if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 5000 overhead "[ NO EMPTY BOTTLES... ]" 337 settimer 'PotionKegTimer' 0 endif break endif if diffhits > 10 break endif if findtype 'keg' self KegColour as myKeg dclick myKeg wait 250 if EnableOverheadMessages = 1 if timer 'PotionKegTimer' > 2000 overhead '[ FILLING POTS... ]' KegColour settimer 'PotionKegTimer' 0 endif endif else if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 5000 overhead "[ NO KEG TO USE... ]" KegColour settimer 'PotionKegTimer' 0 endif break endif if insysmsg "You have been in combat with another player" settimer "PotionKegPVPCooldown" 0 break endif endwhile if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 5000 overhead "[ NO EMPTY BOTTLES... ]" 337 settimer 'PotionKegTimer' 0 endif break endif endif endwhile endif endif if insysmsg 'You feel ready to continue stealthing.' @setvar! Stealthing 1 @setvar! KeepOnTrucking 1 endif if insysmsg 'You will automatically stealth when out of steps.' if EnableOverheadMessages = 1 overhead '[ STEALTH RENEWED ]' 69 else overhead ' � ' 69 endif @setvar! KeepOnTrucking 1 endif if not hidden @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if EnableOverheadWarnings = 1 if cooldown 'Stealth' if insysmsg 'You have 0 stealth steps remaining.' and hidden settimer DoNotMoveTimeout 0 clearsysmsg while not insysmsg 'You feel ready to continue stealthing.' if timer DoNotMoveTimer > 500 if EnableOverheadMessages = 1 overhead '[ !!! STOP !!! ]' 37 else overhead ' � ' 37 endif settimer NoTargetTimer 0 settimer DoNotMoveTimer 0 endif if not hidden if EnableOverheadMessages = 1 overhead '[ STEALTH ENDED! ]' 2117 else overhead ' � ' 2117 endif settimer NoTargetTimer 0 @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if timer DoNotMoveTimeout > 8000 or not hidden or not cooldown 'Stealth' break endif endwhile wait 250 if hidden if EnableOverheadMessages = 1 overhead '[ KEEP GOING! ]' 69 else overhead ' � ' 69 endif settimer NoTargetTimer 0 endif elseif insysmsg 'You have 1 stealth steps remaining.' and hidden if EnableOverheadMessages = 1 overhead '[ SLOW!! ]' 333 else overhead ' � ' 333 endif settimer NoTargetTimer 0 @setvar! Stealthing 1 elseif insysmsg 'You have 2 stealth steps remaining.' and hidden if EnableOverheadMessages = 1 overhead '[ SLOW!]' 44 else overhead ' � ' 44 endif settimer NoTargetTimer 0 @setvar! Stealthing 1 elseif insysmsg 'You have 3 stealth steps remaining.' and hidden if EnableOverheadMessages = 1 overhead '[ SLOW ]' 153 else overhead ' � ' 153 endif settimer NoTargetTimer 0 @setvar! Stealthing 1 endif endif endif endwhile //////////////////////// // END STEALTH LOOP // //////////////////////// getlabel CurrentTarget descTarget /////////////////////////// // ATTACK TARGET LOOP: // /////////////////////////// while hidden and not dead CurrentTarget and find CurrentTarget ground -1 -1 12 and TargetAcquired = 1 and Stealthing = 1 if insysmsg 'You have been revealed' if EnableOverheadMessages = 1 overhead '[ !! REVEALED !! ]' 153 else overhead '!! � !!' 153 endif clearsysmsg hotkey 'Toggle War Only' @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 cooldown 'Hiding' 5000 break endif if not hidden @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if insysmsg 'You begin to move quietly.' clearsysmsg @setvar! KeepOnTrucking 0 endif if insysmsg 'You feel ready to continue stealthing.' if timer KeepOnTruckingTimer > 500 if EnableOverheadMessages = 1 overhead '[ KEEP GOING! ]' 69 else overhead ' � ' 69 endif settimer KeepOnTruckingTimer 0 endif clearsysmsg settimer NoTargetTimer 0 @setvar! KeepOnTrucking 1 endif if insysmsg 'You will automatically stealth when out of steps.' if timer KeepOnTruckingTimer > 2000 and not find CurrentTarget ground -1 -1 TargetAttackRange if EnableOverheadMessages = 1 overhead '[ STEALTH RENEWED ]' 69 else overhead ' � ' 69 endif settimer KeepOnTruckingTimer 0 endif settimer NoTargetTimer 0 @setvar! KeepOnTrucking 1 wait 250 getlabel backpack backpacklabel clearsysmsg endif if not hidden @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if EnableOverheadWarnings = 1 if cooldown 'Stealth' if insysmsg 'You have 0 stealth steps remaining.' and hidden settimer DoNotMoveTimeout 0 clearsysmsg while not insysmsg 'You feel ready to continue stealthing.' if timer DoNotMoveTimer > 500 if EnableOverheadMessages = 1 overhead '[ !!! STOP !!! ]' 37 else overhead ' � ' 37 endif settimer NoTargetTimer 0 settimer DoNotMoveTimer 0 endif if not hidden if EnableOverheadMessages = 1 overhead '[ STEALTH ENDED! ]' 2117 else overhead ' � ' 2117 endif settimer NoTargetTimer 0 @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if timer DoNotMoveTimeout > 8000 or not hidden or not cooldown 'Stealth' break endif endwhile wait 250 if hidden if EnableOverheadMessages = 1 overhead '[ KEEP GOING! ]' 69 else overhead ' � ' 69 endif settimer NoTargetTimer 0 endif elseif insysmsg 'You have 1 stealth steps remaining.' and hidden if EnableOverheadMessages = 1 overhead '[ SLOW!! ]' 333 else overhead ' � ' 333 endif settimer NoTargetTimer 0 @setvar! Stealthing 1 elseif insysmsg 'You have 2 stealth steps remaining.' and hidden if EnableOverheadMessages = 1 overhead '[ SLOW!]' 44 else overhead ' � ' 44 endif settimer NoTargetTimer 0 @setvar! Stealthing 1 elseif insysmsg 'You have 3 stealth steps remaining.' and hidden if EnableOverheadMessages = 1 overhead '[ SLOW ]' 153 else overhead ' � ' 153 endif settimer NoTargetTimer 0 @setvar! Stealthing 1 endif endif endif if timer CheckTargetTimer > 1000 settimer CheckTargetTimer 0 clearsysmsg hotkey "Target Closest Grey Monster" wait 500 @setvar! TargetCheck lasttarget wait 150 if insysmsg "no one matching" or TargetCheck != CurrentTarget break endif endif if skill 'Archery' >= 50 while find CurrentTarget ground -1 -1 TargetAttackRange and hidden and Stealthing = 1 getlabel CurrentTarget descTarget if find CurrentTarget ground -1 -1 TargetAttackRange if cooldown "Hiding" if timer TargetTimer > 3000 if "Paragon" in descTarget if EnableOverheadMessages = 1 overhead "[ PARAGON! ]" 12 CurrentTarget endif overhead " � " 12 CurrentTarget else if EnableOverheadMessages = 1 overhead "[ TARGET ]" 333 CurrentTarget endif overhead " � " 333 CurrentTarget endif settimer TargetTimer 0 endif elseif cooldown "Stealth" if timer TargetTimer > 3000 if "Paragon" in descTarget if EnableOverheadMessages = 1 overhead "[ PARAGON! ]" 12 CurrentTarget endif overhead " � " 12 CurrentTarget else if EnableOverheadMessages = 1 overhead "[ TARGET ]" 44 CurrentTarget endif overhead " � " 44 CurrentTarget endif settimer TargetTimer 0 endif else if timer TargetTimer > 3000 if "Paragon" in descTarget if EnableOverheadMessages = 1 overhead "[ PARAGON! ]" 12 CurrentTarget endif overhead " � " 12 CurrentTarget else if EnableOverheadMessages = 1 overhead "[ TARGET ]" 69 CurrentTarget endif overhead " � " 69 CurrentTarget endif settimer TargetTimer 0 endif endif else if timer TargetTimer > 3000 if "Paragon" in descTarget if EnableOverheadMessages = 1 overhead "[ PARAGON! ]" 12 CurrentTarget endif overhead " � " 12 CurrentTarget else if EnableOverheadMessages = 1 overhead "[ TARGET ]" 153 CurrentTarget endif overhead " � " 153 CurrentTarget endif settimer TargetTimer 0 endif endif if find CurrentTarget ground -1 -1 TargetAttackRange and not warmode if not cooldown "Hiding" if EnableOverheadMessages = 1 and timer StabDistanceTimer > 2500 overhead "[ TAB TO STAB! ]" 69 settimer StabDistanceTimer 0 endif else if timer StealthCooldownTimer > 3200 if EnableOverheadMessages = 1 overhead "[ WAITING FOR STEALTH... ]" 153 settimer StealthCooldownTimer 0 else overhead " � " 153 settimer StealthCooldownTimer 0 endif endif endif endif if dead CurrentTarget or not find CurrentTarget ground -1 -1 TargetAttackRange break endif if insysmsg 'You have been revealed' if EnableOverheadMessages = 1 overhead '[ !! REVEALED !! ]' 153 else overhead '!! � !!' 153 endif clearsysmsg hotkey 'Toggle War Only' @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 cooldown 'Hiding' 5000 break endif if not hidden @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if diffweight >= RedWeightLimitDiffWeight @setvar! DisableVacuums 0 endif if EnableGoldVacuum = 1 if DisableVacuums != 1 if findtype "gold coin" ground -1 -1 12 as droppedmoney and timer "GoldRadar" > 3500 overhead " � " 149 droppedmoney settimer "GoldRadar" 0 endif while findtype "gold coin" ground -1 -1 2 as droppedmoney overhead " � " 149 hotkey "Grab Item" wft 2500 target droppedmoney wait 250 if insysmsg "Invalid or inaccessible item" wait 500 @ignore droppedmoney endif wait 250 endwhile endif endif if EnableArrowCleanup = 1 if skill 'Archery' > 50 and DisableVacuums != 1 while findtype 7163|3903 ground -1 -1 2 as item if timer "ArrowCleanupTimer" > 3500 if EnableOverheadMessages = 1 overhead '[ CLEANUP... ]' 93 settimer "ArrowCleanupTimer" 0 else overhead ' � ' 93 settimer "ArrowCleanupTimer" 0 endif endif hotkey "Grab Item" wft 1000 target item wait 250 endwhile if findtype "quiver" self as MyQuiver and timer "QuiverTimer" > 30000 while findtype "quiver" self as MyQuiver getlabel MyQuiver MyQuiverdesc wait 250 if 'decorative' in MyQuiverdesc @ignore MyQuiver wait 500 else break endif endwhile settimer "QuiverTimer" 0 menu MyQuiver 0 wait 250 endif if findtype 7163 ground -1 -1 10 as bolt and timer "BoltCleanupRadar" > 3500 overhead "�" 93 bolt settimer "BoltCleanupRadar" 0 endif if findtype 3903 ground -1 -1 10 as arrow and timer "ArrowCleanupRadar" > 3500 overhead "�" 37 arrow settimer "ArrowCleanupRadar" 0 endif endif endif if EnableDungeonCleanup = 1 if DisableVacuums != 1 while findtype "iron ingot%s|board%s|cut up leather|3972|3962|3963|3980|3976|3973|3974|3981" ground -1 -1 2 as item if EnableOverheadMessages = 1 if timer "DungeonCleanup" > 1500 overhead '[ CLEANUP... ]' 420 settimer "DungeonCleanup" 0 endif else if timer "DungeonCleanup" > 1500 overhead ' � ' 420 settimer "DungeonCleanup" 0 endif endif hotkey "Grab Item" wft 1000 target item wait 250 endwhile 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" > 3500 overhead " � " 420 dungeonjunk settimer "DungeonCleanupRadar" 0 endif endif endif if EnablePKRadar = 1 if insysmsg "Now tracking" clearsysmsg if EnableRedAlertOverhead = 1 overhead "[ !! RED ALERT !! ]" 337 wait 500 endif if not hidden if not cooldown 'Hiding' if targetexists hotkey 'Cancel Current Target' endif useskill "Hiding" wait 500 while insysmsg 'You must wait' clearsysmsg wait 250 useskill 'Hiding' endwhile if hidden // Do nothing else if counttype 52149 self > 0 if not cooldown 'Smoke Bomb' and not hidden clearsysmsg hotkey 'Smoke Bomb' wait 500 if insysmsg 'You must wait another' if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB UNAVAILABLE ]' 333 endif hotkey 'Toggle War Only' break else if hidden if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB! ]' 1790 endif clearsysmsg @setvar! Stealthing 1 @setvar! StealthingReady 1 cooldown 'Hiding' 0 cooldown 'Stealth' 10000 cooldown 'Smoke Bomb' SmokeBombCooldown endif break endif else if EnableOverheadMessages = 1 overhead '[ SMOKE ON COOLDOWN! ]' 33 endif hotkey 'Toggle War Only' break endif else if EnableOverheadMessages = 1 overhead '[ NO SMOKE BOMBS ]' 337 endif break endif endif endif else if EnableOverheadMessages = 1 wait 500 overhead "[ ALREADY HIDDEN! ]" 11 endif wait 500 endif wait 500 endif endif if insysmsg 'You begin to move quietly.' clearsysmsg @setvar! KeepOnTrucking 0 cooldown 'Stealth' 10000 endif if insysmsg 'You feel ready to continue stealthing.' if timer KeepOnTruckingTimer > 500 if EnableOverheadMessages = 1 overhead '[ KEEP GOING! ]' 69 else overhead ' � ' 69 endif settimer KeepOnTruckingTimer 0 endif settimer NoTargetTimer 0 @setvar! KeepOnTrucking 1 endif if insysmsg 'You will automatically stealth when out of steps.' if timer KeepOnTruckingTimer > 2000 and not find CurrentTarget ground -1 -1 TargetAttackRange if EnableOverheadMessages = 1 overhead '[ STEALTH RENEWED ]' 69 else overhead ' � ' 69 endif settimer KeepOnTruckingTimer 0 endif settimer NoTargetTimer 0 @setvar! KeepOnTrucking 1 wait 250 getlabel backpack backpacklabel endif if not hidden @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if EnableOverheadWarnings = 1 if cooldown 'Stealth' if insysmsg 'You have 0 stealth steps remaining.' and hidden settimer DoNotMoveTimeout 0 clearsysmsg while not insysmsg 'You feel ready to continue stealthing.' if timer DoNotMoveTimer > 500 if EnableOverheadMessages = 1 overhead '[ !!! STOP !!! ]' 37 else overhead ' � ' 37 endif settimer NoTargetTimer 0 settimer DoNotMoveTimer 0 endif if not hidden if EnableOverheadMessages = 1 overhead '[ STEALTH ENDED! ]' 2117 else overhead ' � ' 2117 endif settimer NoTargetTimer 0 @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if timer DoNotMoveTimeout > 8000 or not hidden or not cooldown 'Stealth' break endif endwhile wait 250 if hidden if EnableOverheadMessages = 1 overhead '[ KEEP GOING! ]' 69 else overhead ' � ' 69 endif settimer NoTargetTimer 0 endif elseif insysmsg 'You have 1 stealth steps remaining.' and hidden if EnableOverheadMessages = 1 overhead '[ SLOW!! ]' 333 else overhead ' � ' 333 endif settimer NoTargetTimer 0 @setvar! Stealthing 1 elseif insysmsg 'You have 2 stealth steps remaining.' and hidden if EnableOverheadMessages = 1 overhead '[ SLOW!]' 44 else overhead ' � ' 44 endif settimer NoTargetTimer 0 @setvar! Stealthing 1 elseif insysmsg 'You have 3 stealth steps remaining.' and hidden if EnableOverheadMessages = 1 overhead '[ SLOW ]' 153 else overhead ' � ' 153 endif settimer NoTargetTimer 0 @setvar! Stealthing 1 endif endif endif if EnableWeaponStances != 0 and findtype "archery codex" self as MyCodex if not gumpexists 2016719803 and EnableWeaponCodexHotbar = 1 while not gumpexists 1066647553 say "[CodexHotBar" wait 250 if gumpexists 2016719803 break endif endwhile endif getlabel MyCodex MyCodexDesc wait 250 if SwitchToArcaneStance = 1 if "Arcane" in MyCodexDesc // Do nothing else yell "[ArcheryAmmunition1" settimer "WeaponCodexTimer" 0 wait 250 endif elseif SwitchToFowlingStance = 1 if "Fowling" in MyCodexDesc // Do nothing else yell "[ArcheryAmmunition2" settimer "WeaponCodexTimer" 0 wait 250 endif elseif SwitchToIncendiaryStance = 1 if "Incendiary" in MyCodexDesc // Do nothing else yell "[ArcheryAmmunition3" settimer "WeaponCodexTimer" 0 wait 250 endif elseif SwitchToLongshotStance = 1 if "Longshot" in MyCodexDesc // Do nothing else yell "[ArcheryAmmunition4" settimer "WeaponCodexTimer" 0 wait 250 endif elseif SwitchToMaimingStance = 1 if "Maiming" in MyCodexDesc // Do nothing else yell "[ArcheryAmmunition5" settimer "WeaponCodexTimer" 0 wait 250 endif endif endif if EnableArcheryWarningMessage = 1 and skill 'Archery' >= 50 if findtype 'stubnose crossbow|tower guard crossbow|balestra|heavy crossbow|crossbow' hand @setvar! AMMO 1 elseif findtype 'long bow|bow|recurve bow|composite bow' hand @setvar! AMMO 2 endif if counttype "crossbow bolt" self < ArcheryLowAmmoWarningAmount and timer "AmmunitionTimer" > 6000 and AMMO = 1 overhead "[ AMMO LOW! ]" 37 settimer 'AmmunitionTimer' 0 endif if counttype "arrow" self < ArcheryLowAmmoWarningAmount and timer 'AmmunitionTimer' > 6000 and AMMO = 2 overhead "[ AMMO LOW! ]" 37 settimer 'AmmunitionTimer' 0 endif endif if EnableWeightWarningMessage = 1 if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer WeightTimer > 6000 if EnableOverheadMessages = 1 overhead "[ WEIGHT WARNING... ]" 77 settimer "WeightTimer" 0 else overhead " � " 77 settimer "WeightTimer" 0 endif elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer WeightTimer > 6000 if EnableOverheadMessages = 1 overhead "[ WEIGHT WARNING! ]" 153 settimer "WeightTimer" 0 else overhead " � " 153 settimer "WeightTimer" 0 endif elseif diffweight <= RedWeightLimitDiffWeight and timer WeightTimer > 6000 if EnableOverheadMessages = 1 overhead "[ WEIGHT LIMIT REACHED! ]" 37 settimer "WeightTimer" 0 wait 500 else overhead " � " 37 settimer "WeightTimer" 0 endif wait 500 if weight > maxweight if EnableDropGoldWhenOverweight = 1 if EnableOverheadMessages = 1 wait 1000 overhead "[ OVERWEIGHT! ]" 337 endif replay else if EnableOverheadMessages = 1 overhead "[ OVERWEIGHT! ]" 337 wait 2000 endif overhead "[ STOPPING SCRIPT! ]" 88 stop endif endif if EnableTriggerDungeonEscapeScript = 1 foreach EscapeScript in DungeonEscapeScriptList script EscapeScript endfor endif endif endif if EnableWizardHatStealthTrick = 1 if find MagicWizardHat backpack and find MyHelmet self if hidden and stam = maxstam if EnableOverheadMessages = 1 overhead '[ HAT TRICK ]' 111 endif dclick MagicWizardHat wait 650 dclick MyHelmet getlabel backpack backpacklabel endif if not findlayer self head and find MyHelmet backpack dclick MyHelmet wait 500 endif endif if find MyHelmet backpack if not find MagicWizardHat backpack dclick MyHelmet wait 500 endif endif endif if EnableWeaponCheck = 1 if not find MySlowWeapon hand if not findtype 'heavy crossbow|long bow|tower guard crossbow' self if timer NoWeaponOverheadTimer > 5000 overhead "[ NO WEAPON! ]" 337 settimer NoWeaponOverheadTimer 0 endif clearignore else if not findtype 'heavy crossbow|long bow|tower guard crossbow' hand clearignore if findtype 'heavy crossbow|long bow|tower guard crossbow' backpack as MySlowWeapon for 10 getlabel MySlowWeapon WeaponLabel wait 250 if "aspect" in WeaponLabel break elseif "unidentified" in WeaponLabel @ignore MySlowWeapon wait 250 else @ignore MySlowWeapon wait 250 endif if findtype 'heavy crossbow|long bow|tower guard crossbow' backpack as MySlowWeapon getlabel MySlowWeapon WeaponLabel wait 250 endif endfor wait 250 dclick MySlowWeapon wait 500 clearignore endif endif endif endif endif if find CurrentTarget ground -1 -1 TargetAttackRange and warmode if EnableInstantHide = 1 while cooldown Stealth or cooldown Hiding wait 100 if not cooldown Stealth and not cooldown Hiding break endif if timer HidingOverheadTimer > 3000 if EnableOverheadMessages = 1 overhead "[ WAITING TO STAB... ]" 13 else overhead " � " 13 endif settimer HidingOverheadTimer 0 endif endwhile endif attack CurrentTarget wait 500 @setvar! Stealthing 0 @setvar! StealthingReady 0 if insysmsg 'You strike your target from the shadows!' if EnableOverheadMessages = 1 overhead "[ BACKSTAB!! ]" 1790 CurrentTarget endif overhead " � " 1790 CurrentTarget endif if insysmsg 'Vanish activated' if EnableOverheadMessages = 1 overhead '[ VANISHED!! ]' 2114 endif cooldown 'Vanish Buff' 30000 wait 500 @setvar! Stealthing 1 @setvar! StealthingReady 1 if EnableSmokeBombDoubleTap = 1 and not dead CurrentTarget hotkey 'Toggle War Only' else hotkey 'Toggle Peace Only' endif clearsysmsg cooldown 'Stealth' 0 cooldown "Hiding" 0 break endif if EnableExplosionPotion = 1 if not hidden and not dead CurrentTarget if skill 'Alchemy' >= 80 @setvar! PurplePotionReady 0 if findtype 'purple potion' self as explotPot getlabel explotPot potLabel if "(" in potLabel if timer ExplosionPotionTimer > PurplePotionCooldown @setvar! PurplePotionReady 1 wait 250 else @setvar! PurplePotionReady 0 endif else @setvar! PurplePotionReady 1 wait 250 endif else if EnableOverheadMessages = 1 and timer ExplosionPotionMessageTimer > 15000 overhead '[ NO PURPLE POTIONS ]' 337 settimer ExplosionPotionMessageTimer 0 endif endif if targetexists hotkey 'cancel current target' endif @setvar! Interrupted 0 if PurplePotionReady = 1 and not dead CurrentTarget and find CurrentTarget ground -1 -1 TargetAttackRange settimer ExplosionPotionTimeout 0 while not insysmsg "Where should i throw this potion?" and timer ExplosionPotionTimeout < 1000 potion 'explosion' wait 250 endwhile @setvar! PurplePotionReady 0 settimer ExplosionPotionTimer 0 settimer ExplosionPotionTimeout 0 while not targetexists and timer ExplosionPotionTimeout < 2000 if dead CurrentTarget or not find CurrentTarget ground -1 -1 TargetAttackRange @setvar! Interrupted 1 hotkey 'cancel current target' break endif wait 100 endwhile if Interrupted = 0 and targetexists target CurrentTarget if EnableOverheadMessages = 1 overhead '[ EXPLOSION POT... ]' 419 endif cooldown "Purple Potion" PurplePotionCooldown getlabel backpack packdesc wait 250 endif endif endif endif endif if EnableFastSecondHit = 1 if not hidden and not dead CurrentTarget if EnableWeaponAbilities = 1 if timer WeaponAbilityTimer > WeaponAbilityCooldown and UseSkirmishAbility = 1 clearsysmsg yell "[WeaponAbility1" wait 250 if insysmsg "You cannot" settimer WeaponAbilityTimer 25000 clearsysmsg else if EnableOverheadMessages = 1 overhead "[ SKIRMISH! ]" 37 endif cooldown "Weapon Ability" WeaponAbilityCooldown cooldown "Skirmish Ability" 15000 settimer WeaponAbilityTimer 0 endif elseif timer WeaponAbilityTimer > WeaponAbilityCooldown and UseFullDrawAbility = 1 clearsysmsg yell "[WeaponAbility2" wait 250 if insysmsg "You cannot" settimer WeaponAbilityTimer 25000 clearsysmsg else if EnableOverheadMessages = 1 overhead "[ FULL DRAW! ]" 37 endif cooldown "Weapon Ability" WeaponAbilityCooldown cooldown "Full Draw Ability" 15000 settimer WeaponAbilityTimer 0 endif elseif timer WeaponAbilityTimer > WeaponAbilityCooldown and UseRepeaterAbility = 1 clearsysmsg yell "[WeaponAbility3" wait 250 if insysmsg "You cannot" settimer WeaponAbilityTimer 25000 clearsysmsg else if EnableOverheadMessages = 1 overhead "[ REPEATER! ]" 37 endif cooldown "Weapon Ability" WeaponAbilityCooldown cooldown "Repeater Ability" 5000 settimer WeaponAbilityTimer 0 endif endif endif if find MyFastWeapon self dclick MyFastWeapon getlabel backpack backpacklabel wait 250 attack CurrentTarget wait 500 else if EnableOverheadMessages = 1 overhead '[ NO FAST WEAPON! ]' 333 endif endif if find MySlowWeapon self wait 250 dclick MySlowWeapon getlabel backpack backpacklabel wait 250 else if EnableOverheadMessages = 1 overhead '[ NO SLOW WEAPON! ]' 333 endif endif endif endif if not dead CurrentTarget if EnableSmokeBombDoubleTap = 1 wait 500 while cooldown Hiding or cooldown Stealth if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff and not hidden if findtype "Yellow Potion" self as HealPot getlabel HealPot HealPotlabel if "next" in HealPotlabel // Do nothing else @setvar! HealPotionCheck 0 if counttype 3852 self as HealPotCount @setvar! HealPotionCheck HealPotCount endif clearsysmsg dclicktype 3852 getlabel backpack backpackdesc wait 250 if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used" settimer 'HealPotionTimer' 0 cooldown "Healing Potion" HealPotionCooldown if EnableOverheadMessages = 1 if insysmsg "potion satchel used" overhead '[ FREE HEAL POTION ]' 253 else overhead "[ HEAL POTION ]" 253 endif endif clearsysmsg endif endif else if timer 'HealingPotionMessageTimer' > 4500 overhead "[ NO HEAL POTS! ]" 337 settimer 'HealingPotionMessageTimer' 0 endif endif endif if EnablePanaceaPotion = 1 if skill 'Alchemy' >= 80 if findbuff "bleed" or findbuff "diseased" if not findbuff "panacea potion cooldown" if findtype "Orange Potion" self dclicktype "Orange Potion" wait 500 if findbuff "panacea potion cooldown" and EnableOverheadMessages = 1 overhead "[ PANACEA POTION ]" 2117 endif cooldown 'Panacea Potion' 30000 else if timer 'CurePotionMessageTimer' > 15000 overhead "[ NO CURE POTS! ]" 337 settimer 'CurePotionMessageTimer' 0 endif endif else if EnableOverheadMessages = 1 and timer PanaceaOverheadTimer > 15000 overhead '[ PANACEA ON COOLDOWN! ]' 37 settimer PanaceaOverheadTimer 0 endif endif endif endif endif if EnableCleansingBrews = 1 if findbuff "Disease" or findbuff "Bleed" if timer CleansingBrewTimer > 120000 if findtype 50675 self 2935 as CleansingBrew dclick CleansingBrew if EnableOverheadMessages = 1 overhead '[ CLEANSING BREW ]' 2117 endif cooldown 'Cleansing Brew' 120000 settimer CleansingBrewTimer 0 wait 250 else if timer CleansingBrewOverhead > 15000 overhead "[ NO CLEANSING BREWS! ]" 337 settimer CleansingBrewOverhead 0 settimer CleansingBrewTimer 0 endif endif else if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 15000 overhead '[ BREW ON COOLDOWN! ]' 37 settimer CleansingBrewOverhead 0 endif endif endif endif if EnableCurePotion = 1 while poisoned if findtype "Orange Potion" self dclicktype "Orange Potion" if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 3500 overhead "[ CURE POTION ]" 44 settimer 'CurePotionMessageTimer' 0 endif wait 250 else if timer 'CurePotionMessageTimer' > 5000 overhead "[ NO CURE POTS! ]" 337 settimer 'CurePotionMessageTimer' 0 endif break endif if diffhits > 40 break endif endwhile endif if skill 'Healing' > 0 if diffhits > 0 and not bandaging and not hidden if findtype 'clean bandage%s%' self if targetexists hotkey 'cancel current target' endif hotkey 'Bandage Self' if EnableOverheadMessages = 1 if timer BandageMessageTimer > 5000 overhead "[ BANDAGING... ]" 88 settimer BandageMessageTimer 0 endif endif wait 500 else if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 1 overhead "[ OUT OF BANDAGES! ]" 337 settimer BandageMessageTimer 0 endif endif endif endif if EnableRefreshPotion = 1 if diffstam >= RefreshPotionSPdiff and not hidden if findtype "Red Potion" self dclicktype "Red Potion" if EnableOverheadMessages = 1 overhead "[ REFRESH POTION ]" 37 endif wait 500 else if timer RefreshPotionMessageTimer > 4500 overhead "[ NO REFRESH POTS! ]" 337 settimer RefreshPotionMessageTimer 0 endif endif wait 500 endif endif if not cooldown Hiding break endif endwhile getlabel backpack backpacklabel if counttype 52149 self > 0 if not cooldown 'Smoke Bomb' and not hidden hotkey 'Smoke Bomb' wait 350 if insysmsg 'You must wait another' if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB UNAVAILABLE ]' 333 endif if not cooldown 'Hiding' useskill 'Hiding' wait 500 endif if hidden break else clearsysmsg hotkey 'Toggle War Only' break endif else if hidden if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB! ]' 1790 endif clearsysmsg @setvar! Stealthing 1 @setvar! StealthingReady 1 cooldown 'Hiding' 0 cooldown 'Stealth' 10000 cooldown 'Smoke Bomb' SmokeBombCooldown hotkey 'Toggle War Only' if find CurrentTarget ground -1 -1 TargetAttackRange and not dead CurrentTarget attack CurrentTarget wait 250 endif endif if dead CurrentTarget hotkey 'Toggle Peace Only' else hotkey 'Toggle War Only' endif break endif else if EnableOverheadMessages = 1 overhead '[ SMOKE ON COOLDOWN! ]' 333 endif if not cooldown 'Hiding' useskill 'Hiding' wait 500 endif if hidden break endif endif else if EnableOverheadMessages = 1 overhead '[ NO SMOKE BOMBS ]' 333 endif if not cooldown 'Hiding' useskill 'Hiding' wait 500 endif if hidden break endif endif endif if dead CurrentTarget settimer STORELOOT 0 @setvar! TargetAcquired 0 endif if not hidden hotkey 'Toggle War Only' @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 clearsysmsg break endif else hotkey 'Toggle Peace Only' if EnableAutoCarving = 1 if findtype 11552 self and not hidden and dead CurrentTarget while findtype "corpse" ground -1 -1 2 as deadbody if findtype 11552 self if targetexists hotkey 'cancel current target' endif while not targetexists skill 'forensicevaluation' endwhile if targetexists and find deadbody ground -1 -1 2 target 'self' @ignore deadbody wait 500 endif if insysmsg "You dont see anything nearby" clearsysmsg break else if EnableOverheadMessages = 1 and timer SkinningTimer > 3000 overhead "[ SKINNING... ]" 333 settimer SkinningTimer 0 endif endif elseif skill 'forensicevaluation' > 0 if EnableOverheadMessages = 1 and timer SkinningTimer > 15000 overhead "[ NO SKINNING KNIFE ]" 337 settimer SkinningTimer 0 break endif endif endwhile endif endif wait LootDelayTimer while cooldown Hiding or cooldown Stealth if timer HidingOverheadTimer > 2800 if EnableOverheadMessages = 1 overhead "[ WAITING TO HIDE... ]" 13 else overhead " � " 13 endif settimer HidingOverheadTimer 0 endif wait 100 if not cooldown Hiding and not cooldown Stealth break endif if warmode break endif if EnableHealPotion = 1 if diffhits >= HealPotionHPdiff and not hidden if findtype "Yellow Potion" self as HealPot getlabel HealPot HealPotlabel if "next" in HealPotlabel // Do nothing else @setvar! HealPotionCheck 0 if counttype 3852 self as HealPotCount @setvar! HealPotionCheck HealPotCount endif clearsysmsg dclicktype 3852 getlabel backpack backpackdesc wait 250 if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used" settimer 'HealPotionTimer' 0 cooldown "Healing Potion" HealPotionCooldown if EnableOverheadMessages = 1 if insysmsg "potion satchel used" overhead '[ FREE HEAL POTION ]' 253 else overhead "[ HEAL POTION ]" 253 endif endif clearsysmsg endif endif else if timer 'HealingPotionMessageTimer' > 4500 overhead "[ NO HEAL POTS! ]" 337 settimer 'HealingPotionMessageTimer' 0 endif endif endif endif if EnablePanaceaPotion = 1 if skill 'Alchemy' >= 80 if findbuff "bleed" or findbuff "diseased" if not findbuff "panacea potion cooldown" if findtype "Orange Potion" self dclicktype "Orange Potion" wait 500 if findbuff "panacea potion cooldown" and EnableOverheadMessages = 1 overhead "[ PANACEA POTION ]" 2117 endif cooldown 'Panacea Potion' 30000 else if timer 'CurePotionMessageTimer' > 15000 overhead "[ NO CURE POTS! ]" 337 settimer 'CurePotionMessageTimer' 0 endif endif else if EnableOverheadMessages = 1 and timer PanaceaOverheadTimer > 15000 overhead '[ PANACEA ON COOLDOWN! ]' 37 settimer PanaceaOverheadTimer 0 endif endif endif endif endif if EnableCleansingBrews = 1 if findbuff "Disease" or findbuff "Bleed" if timer CleansingBrewTimer > 120000 if findtype 50675 self 2935 as CleansingBrew dclick CleansingBrew if EnableOverheadMessages = 1 overhead '[ CLEANSING BREW ]' 2117 endif cooldown 'Cleansing Brew' 120000 settimer CleansingBrewTimer 0 wait 250 else if timer CleansingBrewOverhead > 15000 overhead "[ NO CLEANSING BREWS! ]" 337 settimer CleansingBrewOverhead 0 settimer CleansingBrewTimer 0 endif endif else if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 15000 overhead '[ BREW ON COOLDOWN! ]' 37 settimer CleansingBrewOverhead 0 endif endif endif endif if EnableCurePotion = 1 while poisoned if findtype "Orange Potion" self dclicktype "Orange Potion" if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 3500 overhead "[ CURE POTION ]" 44 settimer 'CurePotionMessageTimer' 0 endif wait 250 else if timer 'CurePotionMessageTimer' > 5000 overhead "[ NO CURE POTS! ]" 337 settimer 'CurePotionMessageTimer' 0 endif break endif if diffhits > 40 break endif endwhile endif if skill 'Healing' > 0 if diffhits > 0 and not bandaging and not hidden if findtype 'clean bandage%s%' self if targetexists hotkey 'cancel current target' endif hotkey 'Bandage Self' if EnableOverheadMessages = 1 if timer BandageMessageTimer > 5000 overhead "[ BANDAGING... ]" 88 settimer BandageMessageTimer 0 endif endif wait 500 else if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 1 overhead "[ OUT OF BANDAGES! ]" 337 settimer BandageMessageTimer 0 endif endif endif endif if EnableRefreshPotion = 1 if diffstam >= RefreshPotionSPdiff and not hidden if findtype "Red Potion" self dclicktype "Red Potion" if EnableOverheadMessages = 1 overhead "[ REFRESH POTION ]" 37 endif wait 500 else if timer RefreshPotionMessageTimer > 4500 overhead "[ NO REFRESH POTS! ]" 337 settimer RefreshPotionMessageTimer 0 endif endif wait 500 endif endif endwhile clearsysmsg useskill 'Hiding' wait 250 hotkey 'Toggle Peace Only' wait 250 while insysmsg 'You must wait' if timer HidingOverheadTimer > 2800 if EnableOverheadMessages = 1 overhead "[ WAITING TO HIDE... ]" 13 else overhead " � " 13 endif settimer HidingOverheadTimer 0 endif clearsysmsg useskill 'Hiding' wait 250 if hidden break endif if warmode break endif if EnableHealPotion = 1 if diffhits >= HealPotionHPdiff and not hidden if findtype "Yellow Potion" self as HealPot getlabel HealPot HealPotlabel if "next" in HealPotlabel // Do nothing else @setvar! HealPotionCheck 0 if counttype 3852 self as HealPotCount @setvar! HealPotionCheck HealPotCount endif clearsysmsg dclicktype 3852 getlabel backpack backpackdesc wait 250 if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used" settimer 'HealPotionTimer' 0 cooldown "Healing Potion" HealPotionCooldown if EnableOverheadMessages = 1 if insysmsg "potion satchel used" overhead '[ FREE HEAL POTION ]' 253 else overhead "[ HEAL POTION ]" 253 endif endif clearsysmsg endif endif else if timer 'HealingPotionMessageTimer' > 4500 overhead "[ NO HEAL POTS! ]" 337 settimer 'HealingPotionMessageTimer' 0 endif endif endif endif if EnablePanaceaPotion = 1 if skill 'Alchemy' >= 80 if findbuff "bleed" or findbuff "diseased" if not findbuff "panacea potion cooldown" if findtype "Orange Potion" self dclicktype "Orange Potion" wait 500 if findbuff "panacea potion cooldown" and EnableOverheadMessages = 1 overhead "[ PANACEA POTION ]" 2117 endif cooldown 'Panacea Potion' 30000 else if timer 'CurePotionMessageTimer' > 15000 overhead "[ NO CURE POTS! ]" 337 settimer 'CurePotionMessageTimer' 0 endif endif else if EnableOverheadMessages = 1 and timer PanaceaOverheadTimer > 15000 overhead '[ PANACEA ON COOLDOWN! ]' 37 settimer PanaceaOverheadTimer 0 endif endif endif endif endif if EnableCleansingBrews = 1 if findbuff "Disease" or findbuff "Bleed" if timer CleansingBrewTimer > 120000 if findtype 50675 self 2935 as CleansingBrew dclick CleansingBrew if EnableOverheadMessages = 1 overhead '[ CLEANSING BREW ]' 2117 endif cooldown 'Cleansing Brew' 120000 settimer CleansingBrewTimer 0 wait 250 else if timer CleansingBrewOverhead > 15000 overhead "[ NO CLEANSING BREWS! ]" 337 settimer CleansingBrewOverhead 0 settimer CleansingBrewTimer 0 endif endif else if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 15000 overhead '[ BREW ON COOLDOWN! ]' 37 settimer CleansingBrewOverhead 0 endif endif endif endif if EnableCurePotion = 1 while poisoned if findtype "Orange Potion" self dclicktype "Orange Potion" if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 3500 overhead "[ CURE POTION ]" 44 settimer 'CurePotionMessageTimer' 0 endif wait 250 else if timer 'CurePotionMessageTimer' > 5000 overhead "[ NO CURE POTS! ]" 337 settimer 'CurePotionMessageTimer' 0 endif break endif if diffhits > 40 break endif endwhile endif if skill 'Healing' > 0 if diffhits > 0 and not bandaging and not hidden if findtype 'clean bandage%s%' self if targetexists hotkey 'cancel current target' endif hotkey 'Bandage Self' if EnableOverheadMessages = 1 if timer BandageMessageTimer > 5000 overhead "[ BANDAGING... ]" 88 settimer BandageMessageTimer 0 endif endif wait 500 else if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 1 overhead "[ OUT OF BANDAGES! ]" 337 settimer BandageMessageTimer 0 endif endif endif endif if EnableRefreshPotion = 1 if diffstam >= RefreshPotionSPdiff and not hidden if findtype "Red Potion" self dclicktype "Red Potion" if EnableOverheadMessages = 1 overhead "[ REFRESH POTION ]" 37 endif wait 500 else if timer RefreshPotionMessageTimer > 4500 overhead "[ NO REFRESH POTS! ]" 337 settimer RefreshPotionMessageTimer 0 endif endif wait 500 endif endif endwhile wait 500 if hidden hotkey 'Toggle Peace Only' break elseif not hidden if EnableSmokeBombWhenAggro = 1 if counttype 52149 self > 0 if not cooldown 'Smoke Bomb' clearsysmsg hotkey 'Smoke Bomb' wait 500 if insysmsg 'You must wait another' if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB UNAVAILABLE ]' 333 endif hotkey 'Toggle War Only' break else if hidden if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB! ]' 1790 endif clearsysmsg @setvar! Stealthing 1 @setvar! StealthingReady 1 cooldown 'Hiding' 0 cooldown 'Stealth' 10000 cooldown 'Smoke Bomb' SmokeBombCooldown endif break endif else if EnableOverheadMessages = 1 overhead '[ SMOKE ON COOLDOWN! ]' 33 endif hotkey 'Toggle War Only' break endif else if EnableOverheadMessages = 1 overhead '[ NO SMOKE BOMBS ]' 337 endif cooldown 'Hiding' 1000 if not hidden hotkey 'Toggle War Only' break endif endif else hotkey 'Toggle War Only' @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 clearsysmsg endif break endif if dead CurrentTarget wait 1500 settimer STORELOOT 0 endif endif endif endwhile elseif skill 'Mace Fighting' >= 50 or skill 'Fencing' >= 50 while find CurrentTarget ground -1 -1 12 and hidden and TargetAcquired = 1 getlabel CurrentTarget descTarget wait 250 if timer CheckTargetTimer > 1000 settimer CheckTargetTimer 0 hotkey "Target Closest Grey Monster" wait 500 @setvar! TargetCheck lasttarget wait 150 if insysmsg "no one matching" or TargetCheck != CurrentTarget @setvar! TargetAcquired 0 clearsysmsg break endif endif if find CurrentTarget ground -1 -1 TargetAttackRange and not warmode if not cooldown "Hiding" if timer StabDistanceTimer > 3000 if EnableOverheadMessages = 1 overhead "[ TAB TO STAB! ]" 69 endif settimer StabDistanceTimer 0 endif else if timer StealthCooldownTimer > 3200 if EnableOverheadMessages = 1 overhead "[ WAITING FOR STEALTH... ]" 153 settimer StealthCooldownTimer 0 else overhead " � " 153 settimer StealthCooldownTimer 0 endif endif endif endif if EnableOverheadWarnings = 1 if find CurrentTarget ground -1 -1 2 if timer StabDistanceTimer > 2500 overhead "[ 2 TILES AWAY... ]" 153 settimer StabDistanceTimer 0 settimer TargetTimer 0 elseif find CurrentTarget ground -1 -1 3 if timer StabDistanceTimer > 2500 overhead "[ 3 TILES AWAY... ]" 44 settimer StabDistanceTimer 0 settimer TargetTimer 0 endif endif endif if find CurrentTarget ground -1 -1 TargetAttackRange if cooldown "Hiding" if timer TargetTimer > 3000 if "Paragon" in descTarget if EnableOverheadMessages = 1 overhead "[ PARAGON! ]" 12 CurrentTarget endif overhead " � " 12 CurrentTarget else if EnableOverheadMessages = 1 overhead "[ TARGET ]" 333 CurrentTarget endif overhead " � " 333 CurrentTarget endif settimer TargetTimer 0 endif elseif cooldown "Stealth" if timer TargetTimer > 3000 if "Paragon" in descTarget if EnableOverheadMessages = 1 overhead "[ PARAGON! ]" 12 CurrentTarget endif overhead " � " 12 CurrentTarget else if EnableOverheadMessages = 1 overhead "[ TARGET ]" 44 CurrentTarget endif overhead " � " 44 CurrentTarget endif settimer TargetTimer 0 endif else if timer TargetTimer > 3000 if "Paragon" in descTarget if EnableOverheadMessages = 1 overhead "[ PARAGON! ]" 12 CurrentTarget endif overhead " � " 12 CurrentTarget else if EnableOverheadMessages = 1 overhead "[ TARGET ]" 69 CurrentTarget endif overhead " � " 69 CurrentTarget endif settimer TargetTimer 0 endif endif else if timer TargetTimer > 3000 if "Paragon" in descTarget if EnableOverheadMessages = 1 overhead "[ PARAGON! ]" 12 CurrentTarget endif overhead " � " 12 CurrentTarget else if EnableOverheadMessages = 1 overhead "[ TARGET ]" 153 CurrentTarget endif overhead " � " 153 CurrentTarget endif settimer TargetTimer 0 endif endif if dead CurrentTarget or not find CurrentTarget ground -1 -1 12 @setvar! TargetAcquired 0 break endif if insysmsg 'You have been revealed' if EnableOverheadMessages = 1 overhead '[ !! REVEALED !! ]' 153 else overhead '!! � !!' 153 endif clearsysmsg hotkey 'Toggle War Only' @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 cooldown 'Hiding' 5000 break endif if not hidden @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if insysmsg 'You begin to move quietly.' clearsysmsg @setvar! Stealthing 1 @setvar! KeepOnTrucking 0 cooldown 'Stealth' 10000 endif if insysmsg 'You feel ready to continue stealthing.' settimer NoTargetTimer 0 @setvar! KeepOnTrucking 1 endif if insysmsg 'You will automatically stealth when out of steps.' if EnableOverheadMessages = 1 overhead '[ STEALTH RENEWED ]' 69 else overhead ' � ' 69 endif @setvar! KeepOnTrucking 1 endif if not hidden @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if EnableOverheadWarnings = 1 if cooldown 'Stealth' if insysmsg 'You have 0 stealth steps remaining.' and hidden settimer DoNotMoveTimeout 0 clearsysmsg while not insysmsg 'You feel ready to continue stealthing.' if timer DoNotMoveTimer > 500 if EnableOverheadMessages = 1 overhead '[ !!! STOP !!! ]' 37 else overhead ' � ' 37 endif settimer NoTargetTimer 0 settimer DoNotMoveTimer 0 endif if not hidden if EnableOverheadMessages = 1 overhead '[ STEALTH ENDED! ]' 2117 else overhead ' � ' 2117 endif settimer NoTargetTimer 0 @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 hotkey 'Toggle War Only' break endif if timer DoNotMoveTimeout > 8000 or not hidden or not cooldown 'Stealth' break endif endwhile wait 250 if hidden if EnableOverheadMessages = 1 overhead '[ KEEP GOING! ]' 69 else overhead ' � ' 69 endif settimer NoTargetTimer 0 endif elseif insysmsg 'You have 1 stealth steps remaining.' and hidden if EnableOverheadMessages = 1 overhead '[ SLOW!! ]' 333 else overhead ' � ' 333 endif settimer NoTargetTimer 0 @setvar! Stealthing 1 elseif insysmsg 'You have 2 stealth steps remaining.' and hidden if EnableOverheadMessages = 1 overhead '[ SLOW!]' 44 else overhead ' � ' 44 endif settimer NoTargetTimer 0 @setvar! Stealthing 1 elseif insysmsg 'You have 3 stealth steps remaining.' and hidden if EnableOverheadMessages = 1 overhead '[ SLOW ]' 153 else overhead ' � ' 153 endif settimer NoTargetTimer 0 @setvar! Stealthing 1 endif endif endif if skill 'Mace Fighting' >= 50 if EnableWeaponStances != 0 and findtype "macing codex" self as MyCodex if not gumpexists 2016719803 and EnableWeaponCodexHotbar = 1 while not gumpexists 1066647553 say "[CodexHotBar" wait 250 if gumpexists 2016719803 break endif endwhile endif getlabel MyCodex MyCodexDesc wait 250 if SwitchToAggressiveStance = 1 if "Aggressive" in MyCodexDesc // Do nothing else yell '[MacingStance1' settimer "WeaponCodexTimer" 0 wait 250 endif elseif SwitchToDefensiveStance = 1 if "Defensive" in MyCodexDesc // Do nothing else yell '[MacingStance2' settimer "WeaponCodexTimer" 0 wait 250 endif elseif SwitchToCleaveStance = 1 if "Cleave" in MyCodexDesc // Do nothing else yell '[MacingStance3' settimer "WeaponCodexTimer" 0 wait 250 endif elseif SwitchToWildSwingStance = 1 if "Wild Swing" in MyCodexDesc // Do nothing else yell '[MacingStance4' settimer "WeaponCodexTimer" 0 wait 250 endif elseif SwitchToSunderStance = 1 if "Sunder" in MyCodexDesc // Do nothing else yell '[MacingStance5' settimer "WeaponCodexTimer" 0 wait 250 endif endif endif elseif skill 'Fencing' >= 50 if EnableWeaponStances != 0 and findtype "fencing codex" self as MyCodex if not gumpexists 2016719803 and EnableWeaponCodexHotbar = 1 while not gumpexists 1066647553 say "[CodexHotBar" wait 250 if gumpexists 2016719803 break endif endwhile endif getlabel MyCodex MyCodexDesc wait 250 if SwitchToAggressiveStance = 1 if "Aggressive" in MyCodexDesc // Do nothing else yell '[FencingStance1' settimer "WeaponCodexTimer" 0 wait 250 endif elseif SwitchToDefensiveStance = 1 if "Defensive" in MyCodexDesc // Do nothing else yell '[FencingStance2' settimer "WeaponCodexTimer" 0 wait 250 endif elseif SwitchToCleaveStance = 1 if "Cleave" in MyCodexDesc // Do nothing else yell '[FencingStance3' settimer "WeaponCodexTimer" 0 wait 250 endif elseif SwitchToBlackguardStance = 1 if "Blackguard" in MyCodexDesc // Do nothing else yell '[FencingStance4' settimer "WeaponCodexTimer" 0 wait 250 endif elseif SwitchToFangStance = 1 if "Fang" in MyCodexDesc // Do nothing else yell '[FencingStance5' settimer "WeaponCodexTimer" 0 wait 250 endif endif endif endif if diffweight >= RedWeightLimitDiffWeight @setvar! DisableVacuums 0 endif if EnableGoldVacuum = 1 if DisableVacuums != 1 if findtype "gold coin" ground -1 -1 12 as droppedmoney and timer "GoldRadar" > 3500 overhead " � " 149 droppedmoney settimer "GoldRadar" 0 endif while findtype "gold coin" ground -1 -1 2 as droppedmoney if diffhits > 35 break endif overhead " � " 149 hotkey "Grab Item" wft 2500 target droppedmoney wait 250 if insysmsg "Invalid or inaccessible item" wait 500 @ignore droppedmoney endif wait 250 endwhile endif endif if EnableDungeonCleanup = 1 if DisableVacuums != 1 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 < 35 if diffhits > 35 break endif if EnableOverheadMessages = 1 if timer "DungeonCleanup" > 1500 overhead '[ CLEANUP... ]' 420 settimer "DungeonCleanup" 0 endif else if timer "DungeonCleanup" > 1500 overhead ' � ' 420 settimer "DungeonCleanup" 0 endif endif hotkey "Grab Item" wft 1000 target item wait 250 endwhile 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" > 3500 overhead " � " 420 dungeonjunk settimer "DungeonCleanupRadar" 0 endif endif endif if EnablePKRadar = 1 if insysmsg "Now tracking" clearsysmsg if EnableRedAlertOverhead = 1 overhead "[ !! RED ALERT !! ]" 337 wait 500 endif if not hidden if not cooldown 'Hiding' if targetexists hotkey 'Cancel Current Target' endif useskill "Hiding" wait 500 while insysmsg 'You must wait' clearsysmsg wait 250 useskill 'Hiding' endwhile if hidden // Do nothing else if counttype 52149 self > 0 if not cooldown 'Smoke Bomb' and not hidden clearsysmsg hotkey 'Smoke Bomb' wait 500 if insysmsg 'You must wait another' if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB UNAVAILABLE ]' 333 endif hotkey 'Toggle War Only' break else if hidden if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB! ]' 1790 endif clearsysmsg @setvar! Stealthing 1 @setvar! StealthingReady 1 cooldown 'Hiding' 0 cooldown 'Stealth' 10000 cooldown 'Smoke Bomb' SmokeBombCooldown endif break endif else if EnableOverheadMessages = 1 overhead '[ SMOKE ON COOLDOWN! ]' 33 endif hotkey 'Toggle War Only' break endif else if EnableOverheadMessages = 1 overhead '[ NO SMOKE BOMBS ]' 337 endif break endif endif endif else if EnableOverheadMessages = 1 wait 500 overhead "[ ALREADY HIDDEN! ]" 11 endif wait 500 endif wait 500 endif endif if EnableWeightWarningMessage = 1 if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer WeightTimer > 6000 if EnableOverheadMessages = 1 overhead "[ WEIGHT WARNING... ]" 77 settimer "WeightTimer" 0 else overhead " � " 77 settimer "WeightTimer" 0 endif elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer WeightTimer > 6000 if EnableOverheadMessages = 1 overhead "[ WEIGHT WARNING! ]" 153 settimer "WeightTimer" 0 else overhead " � " 153 settimer "WeightTimer" 0 endif elseif diffweight <= RedWeightLimitDiffWeight and timer WeightTimer > 6000 if EnableOverheadMessages = 1 overhead "[ WEIGHT LIMIT REACHED! ]" 37 settimer "WeightTimer" 0 wait 500 else overhead " � " 37 settimer "WeightTimer" 0 endif wait 500 if weight > maxweight if EnableDropGoldWhenOverweight = 1 if EnableOverheadMessages = 1 wait 1000 overhead "[ OVERWEIGHT! ]" 337 endif replay else if EnableOverheadMessages = 1 overhead "[ OVERWEIGHT! ]" 337 wait 2000 endif overhead "[ STOPPING SCRIPT! ]" 88 stop endif endif if EnableTriggerDungeonEscapeScript = 1 foreach EscapeScript in DungeonEscapeScriptList script EscapeScript endfor endif endif endif if EnableWizardHatStealthTrick = 1 if find MagicWizardHat backpack and find MyHelmet self if hidden and stam = maxstam if EnableOverheadMessages = 1 overhead '[ HAT TRICK ]' 111 endif dclick MagicWizardHat wait 650 dclick MyHelmet getlabel backpack backpacklabel endif if not findlayer self head and find MyHelmet backpack dclick MyHelmet wait 500 endif endif if find MyHelmet backpack if not find MagicWizardHat backpack dclick MyHelmet wait 500 endif endif endif if EnableWeaponCheck = 1 and not find MySlowWeapon hand if skill 'Mace Fighting' >= 50 if not findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' self if timer NoWeaponOverheadTimer > 5000 overhead "[ NO WEAPON! ]" 337 settimer NoWeaponOverheadTimer 0 endif clearignore else if not findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' hand clearignore if findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' backpack as MySlowWeapon for 10 getlabel MySlowWeapon WeaponLabel wait 250 if "aspect" in WeaponLabel break elseif "unidentified" in WeaponLabel @ignore MySlowWeapon wait 250 else @ignore MySlowWeapon wait 250 endif if findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' backpack as MySlowWeapon getlabel MySlowWeapon WeaponLabel wait 250 endif endfor wait 250 dclick MySlowWeapon wait 500 clearignore endif endif endif elseif skill 'Fencing' >= 50 if not findtype '30992|3938|3719|5123' self if timer NoWeaponOverheadTimer > 5000 overhead "[ NO WEAPON! ]" 337 settimer NoWeaponOverheadTimer 0 endif clearignore else if not findtype '30992|3938|3719|5123' hand if findtype '30992|3938|3719|5123' backpack as MySlowWeapon for 10 getlabel MySlowWeapon WeaponLabel wait 250 if "aspect" in WeaponLabel break elseif "unidentified" in WeaponLabel @ignore MySlowWeapon wait 250 else @ignore MySlowWeapon wait 250 endif if findtype '30992|3938|3719|5123' backpack as MySlowWeapon getlabel MySlowWeapon WeaponLabel wait 250 endif endfor wait 250 dclick MySlowWeapon wait 500 clearignore endif endif endif endif endif if find CurrentTarget ground -1 -1 TargetAttackRange and warmode if EnableInstantHide = 1 while cooldown Stealth or cooldown Hiding wait 100 if not cooldown Stealth and not cooldown Hiding break endif if timer HidingOverheadTimer > 2500 and EnableOverheadMessages = 1 overhead "[ INSTA-HIDE DELAY... ]" 13 settimer HidingOverheadTimer 0 wait 500 elseif timer HidingOverheadTimer > 2500 overhead " � " 13 settimer HidingOverheadTimer 0 wait 500 endif endwhile endif attack CurrentTarget wait 500 @setvar! Stealthing 0 @setvar! StealthingReady 0 if insysmsg 'You strike your target from the shadows!' if EnableOverheadMessages = 1 overhead "[ BACKSTAB!! ]" 1790 CurrentTarget endif overhead " � " 1790 CurrentTarget endif if insysmsg 'Vanish activated' if EnableOverheadMessages = 1 overhead '[ VANISHED!! ]' 2114 endif cooldown 'Vanish Buff' 30000 wait 500 @setvar! Stealthing 1 @setvar! StealthingReady 1 if EnableSmokeBombDoubleTap = 1 and not dead CurrentTarget hotkey 'Toggle War Only' else hotkey 'Toggle Peace Only' endif clearsysmsg cooldown 'Stealth' 0 cooldown "Hiding" 0 break endif if EnableExplosionPotion = 1 if skill 'Alchemy' >= 80 and not hidden and not dead CurrentTarget @setvar! PurplePotionReady 0 if findtype 'purple potion' self as explotPot getlabel explotPot potLabel if "(" in potLabel if timer ExplosionPotionTimer > PurplePotionCooldown @setvar! PurplePotionReady 1 wait 250 else @setvar! PurplePotionReady 0 endif else @setvar! PurplePotionReady 1 wait 250 endif else if EnableOverheadMessages = 1 and timer ExplosionPotionMessageTimer > 15000 overhead '[ NO PURPLE POTIONS ]' 337 settimer ExplosionPotionMessageTimer 0 endif endif if targetexists hotkey 'cancel current target' endif @setvar! Interrupted 0 if PurplePotionReady = 1 and not dead CurrentTarget and find CurrentTarget ground -1 -1 TargetAttackRange settimer ExplosionPotionTimeout 0 while not insysmsg "Where should i throw this potion?" and timer ExplosionPotionTimeout < 1000 potion 'explosion' wait 250 endwhile @setvar! PurplePotionReady 0 settimer ExplosionPotionTimer 0 settimer ExplosionPotionTimeout 0 while not targetexists and timer ExplosionPotionTimeout < 2000 if dead CurrentTarget or not find CurrentTarget ground -1 -1 TargetAttackRange @setvar! Interrupted 1 hotkey 'cancel current target' break endif wait 100 endwhile if Interrupted = 0 and targetexists target CurrentTarget if EnableOverheadMessages = 1 overhead '[ EXPLOSION POT... ]' 419 endif cooldown "Purple Potion" PurplePotionCooldown getlabel backpack packdesc wait 250 endif endif endif endif if EnableFastSecondHit = 1 if not hidden and not dead CurrentTarget if EnableWeaponAbilities = 1 if skill 'Mace Fighting' >= 80 if timer WeaponAbilityTimer > WeaponAbilityCooldown and UsePummelAbility = 1 clearsysmsg yell "[WeaponAbility1" wait 250 if insysmsg "You cannot" settimer WeaponAbilityTimer 25000 clearsysmsg else if EnableOverheadMessages = 1 overhead "[ PUMMEL! ]" 37 endif cooldown "Weapon Ability" WeaponAbilityCooldown cooldown "Pummel Ability" 15000 settimer WeaponAbilityTimer 0 endif elseif timer WeaponAbilityTimer > WeaponAbilityCooldown and UseStunAbility = 1 clearsysmsg yell "[WeaponAbility2" wait 250 if insysmsg "You cannot" settimer WeaponAbilityTimer 25000 clearsysmsg else if EnableOverheadMessages = 1 overhead "[ STUN! ]" 37 endif cooldown "Weapon Ability" WeaponAbilityCooldown cooldown "Stun Ability" 15000 settimer WeaponAbilityTimer 0 endif elseif timer WeaponAbilityTimer > WeaponAbilityCooldown and UseSmashAbility = 1 clearsysmsg yell "[WeaponAbility3" wait 250 if insysmsg "You cannot" settimer WeaponAbilityTimer 25000 clearsysmsg else if EnableOverheadMessages = 1 overhead "[ SMASH! ]" 37 endif cooldown "Weapon Ability" WeaponAbilityCooldown cooldown "Smash Ability" 5000 settimer WeaponAbilityTimer 0 endif wait 500 endif elseif skill 'Fencing' >= 80 if timer WeaponAbilityTimer > WeaponAbilityCooldown and UseGambitAbility = 1 clearsysmsg yell "[WeaponAbility1" wait 250 if insysmsg "You cannot" settimer WeaponAbilityTimer 25000 clearsysmsg else if EnableOverheadMessages = 1 overhead "[ GAMBIT! ]" 37 endif cooldown "Weapon Ability" WeaponAbilityCooldown cooldown "Gambit Ability" 15000 settimer WeaponAbilityTimer 0 endif elseif timer WeaponAbilityTimer > WeaponAbilityCooldown and UseSwiftstrikesAbility = 1 clearsysmsg yell "[WeaponAbility2" wait 250 if insysmsg "You cannot" settimer WeaponAbilityTimer 25000 clearsysmsg else if EnableOverheadMessages = 1 overhead "[ SWIFTSTRIKES! ]" 37 endif cooldown "Weapon Ability" WeaponAbilityCooldown cooldown "Swiftstrikes Ability" 15000 settimer WeaponAbilityTimer 0 endif elseif timer WeaponAbilityTimer > WeaponAbilityCooldown and UseBaneAbility = 1 clearsysmsg yell "[WeaponAbility3" wait 250 if insysmsg "You cannot" settimer WeaponAbilityTimer 25000 clearsysmsg else if EnableOverheadMessages = 1 overhead "[ BANE! ]" 37 endif cooldown "Weapon Ability" WeaponAbilityCooldown cooldown "Bane Ability" 5000 settimer WeaponAbilityTimer 0 endif wait 500 endif endif endif wait 500 if find MyFastWeapon self dclick MyFastWeapon getlabel backpack backpacklabel wait 250 attack CurrentTarget wait 1000 else if EnableOverheadMessages = 1 overhead '[ NO FAST WEAPON! ]' 333 endif endif if find MySlowWeapon self dclick MySlowWeapon getlabel backpack backpacklabel wait 250 else if EnableOverheadMessages = 1 overhead '[ NO SLOW WEAPON! ]' 333 endif endif endif endif if not dead CurrentTarget if EnableSmokeBombDoubleTap = 1 wait 500 while cooldown Hiding or cooldown Stealth if EnableHealPotion = 1 if diffhits >= HealPotionHPdiff and not hidden if findtype "Yellow Potion" self as HealPot getlabel HealPot HealPotlabel if "next" in HealPotlabel // Do nothing else @setvar! HealPotionCheck 0 if counttype 3852 self as HealPotCount @setvar! HealPotionCheck HealPotCount endif clearsysmsg dclicktype 3852 getlabel backpack backpackdesc wait 250 if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used" settimer 'HealPotionTimer' 0 cooldown "Healing Potion" HealPotionCooldown if EnableOverheadMessages = 1 if insysmsg "potion satchel used" overhead '[ FREE HEAL POTION ]' 253 else overhead "[ HEAL POTION ]" 253 endif endif clearsysmsg endif endif else if timer 'HealingPotionMessageTimer' > 4500 overhead "[ NO HEAL POTS! ]" 337 settimer 'HealingPotionMessageTimer' 0 endif endif endif endif if EnablePanaceaPotion = 1 if skill 'Alchemy' >= 80 if findbuff "bleed" or findbuff "diseased" if not findbuff "panacea potion cooldown" if findtype "Orange Potion" self dclicktype "Orange Potion" wait 500 if findbuff "panacea potion cooldown" and EnableOverheadMessages = 1 overhead "[ PANACEA POTION ]" 2117 endif cooldown 'Panacea Potion' 30000 else if timer 'CurePotionMessageTimer' > 15000 overhead "[ NO CURE POTS! ]" 337 settimer 'CurePotionMessageTimer' 0 endif endif else if EnableOverheadMessages = 1 and timer PanaceaOverheadTimer > 15000 overhead '[ PANACEA ON COOLDOWN! ]' 37 settimer PanaceaOverheadTimer 0 endif endif endif endif endif if EnableCleansingBrews = 1 if findbuff "Disease" or findbuff "Bleed" if timer CleansingBrewTimer > 120000 if findtype 50675 self 2935 as CleansingBrew dclick CleansingBrew if EnableOverheadMessages = 1 overhead '[ CLEANSING BREW ]' 2117 endif cooldown 'Cleansing Brew' 120000 settimer CleansingBrewTimer 0 wait 250 else if timer CleansingBrewOverhead > 15000 overhead "[ NO CLEANSING BREWS! ]" 337 settimer CleansingBrewOverhead 0 settimer CleansingBrewTimer 0 endif endif else if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 15000 overhead '[ BREW ON COOLDOWN! ]' 37 settimer CleansingBrewOverhead 0 endif endif endif endif if EnableCurePotion = 1 while poisoned if findtype "Orange Potion" self dclicktype "Orange Potion" if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 3500 overhead "[ CURE POTION ]" 44 settimer 'CurePotionMessageTimer' 0 endif wait 250 else if timer 'CurePotionMessageTimer' > 5000 overhead "[ NO CURE POTS! ]" 337 settimer 'CurePotionMessageTimer' 0 endif break endif if diffhits > 40 break endif endwhile endif if skill 'Healing' > 0 if diffhits > 0 and not bandaging and not hidden if findtype 'clean bandage%s%' self if targetexists hotkey 'cancel current target' endif hotkey 'Bandage Self' if EnableOverheadMessages = 1 if timer BandageMessageTimer > 5000 overhead "[ BANDAGING... ]" 88 settimer BandageMessageTimer 0 endif endif wait 500 else if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 1 overhead "[ OUT OF BANDAGES! ]" 337 settimer BandageMessageTimer 0 endif endif endif endif if EnableRefreshPotion = 1 if diffstam >= RefreshPotionSPdiff and not hidden if findtype "Red Potion" self dclicktype "Red Potion" if EnableOverheadMessages = 1 overhead "[ REFRESH POTION ]" 37 endif wait 500 else if timer RefreshPotionMessageTimer > 4500 overhead "[ NO REFRESH POTS! ]" 337 settimer RefreshPotionMessageTimer 0 endif endif wait 500 endif endif if not cooldown Hiding break endif endwhile getlabel backpack backpacklabel if counttype 52149 self > 0 if not cooldown 'Smoke Bomb' and not hidden hotkey 'Smoke Bomb' wait 500 if insysmsg 'You must wait another' if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB UNAVAILABLE ]' 333 endif wait 1000 if not cooldown 'Hiding' useskill 'Hiding' wait 500 endif if not hidden clearsysmsg hotkey 'Toggle War Only' break endif else if hidden if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB! ]' 1790 endif clearsysmsg @setvar! Stealthing 1 @setvar! StealthingReady 1 cooldown 'Hiding' 0 cooldown 'Stealth' 10000 cooldown 'Smoke Bomb' SmokeBombCooldown hotkey 'Toggle War Only' if find CurrentTarget ground -1 -1 TargetAttackRange and not dead CurrentTarget attack CurrentTarget wait 250 endif endif if dead CurrentTarget hotkey 'Toggle Peace Only' else hotkey 'Toggle War Only' endif break endif else if EnableOverheadMessages = 1 overhead '[ SMOKE ON COOLDOWN! ]' 333 endif if not cooldown 'Hiding' useskill 'Hiding' wait 500 endif if hidden break endif endif else if EnableOverheadMessages = 1 overhead '[ NO SMOKE BOMBS ]' 333 endif if not cooldown 'Hiding' useskill 'Hiding' wait 500 endif if hidden break endif endif endif if dead CurrentTarget settimer STORELOOT 0 @setvar! TargetAcquired 0 endif if not hidden hotkey 'Toggle War Only' @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 clearsysmsg break endif else hotkey 'Toggle Peace Only' if EnableAutoCarving = 1 if findtype 11552 self and not hidden and dead CurrentTarget while findtype "corpse" ground -1 -1 2 as deadbody if findtype 11552 self if targetexists hotkey 'cancel current target' endif while not targetexists skill 'forensicevaluation' endwhile if targetexists and find deadbody ground -1 -1 2 target 'self' @ignore deadbody wait 500 endif if insysmsg "You dont see anything nearby" clearsysmsg break else if EnableOverheadMessages = 1 and timer SkinningTimer > 3000 overhead "[ SKINNING... ]" 333 settimer SkinningTimer 0 endif endif elseif skill 'forensicevaluation' > 0 if EnableOverheadMessages = 1 and timer SkinningTimer > 15000 overhead "[ NO SKINNING KNIFE ]" 337 settimer SkinningTimer 0 break endif endif endwhile endif endif wait LootDelayTimer while cooldown Hiding or cooldown Stealth if timer HidingOverheadTimer > 2800 if EnableOverheadMessages = 1 overhead "[ WAITING TO HIDE... ]" 13 else overhead " � " 13 endif settimer HidingOverheadTimer 0 endif if not cooldown Hiding and not cooldown Stealth break endif if warmode break endif if EnableHealPotion = 1 if diffhits >= HealPotionHPdiff and not hidden if findtype "Yellow Potion" self as HealPot getlabel HealPot HealPotlabel if "next" in HealPotlabel // Do nothing else @setvar! HealPotionCheck 0 if counttype 3852 self as HealPotCount @setvar! HealPotionCheck HealPotCount endif clearsysmsg dclicktype 3852 getlabel backpack backpackdesc wait 250 if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used" settimer 'HealPotionTimer' 0 cooldown "Healing Potion" HealPotionCooldown if EnableOverheadMessages = 1 if insysmsg "potion satchel used" overhead '[ FREE HEAL POTION ]' 253 else overhead "[ HEAL POTION ]" 253 endif endif clearsysmsg endif endif else if timer 'HealingPotionMessageTimer' > 4500 overhead "[ NO HEAL POTS! ]" 337 settimer 'HealingPotionMessageTimer' 0 endif endif endif endif if EnablePanaceaPotion = 1 if skill 'Alchemy' >= 80 if findbuff "bleed" or findbuff "diseased" if not findbuff "panacea potion cooldown" if findtype "Orange Potion" self dclicktype "Orange Potion" wait 500 if findbuff "panacea potion cooldown" and EnableOverheadMessages = 1 overhead "[ PANACEA POTION ]" 2117 endif cooldown 'Panacea Potion' 30000 else if timer 'CurePotionMessageTimer' > 15000 overhead "[ NO CURE POTS! ]" 337 settimer 'CurePotionMessageTimer' 0 endif endif else if EnableOverheadMessages = 1 and timer PanaceaOverheadTimer > 15000 overhead '[ PANACEA ON COOLDOWN! ]' 37 settimer PanaceaOverheadTimer 0 endif endif endif endif endif if EnableCleansingBrews = 1 if findbuff "Disease" or findbuff "Bleed" if timer CleansingBrewTimer > 120000 if findtype 50675 self 2935 as CleansingBrew dclick CleansingBrew if EnableOverheadMessages = 1 overhead '[ CLEANSING BREW ]' 2117 endif cooldown 'Cleansing Brew' 120000 settimer CleansingBrewTimer 0 wait 250 else if timer CleansingBrewOverhead > 15000 overhead "[ NO CLEANSING BREWS! ]" 337 settimer CleansingBrewOverhead 0 settimer CleansingBrewTimer 0 endif endif else if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 15000 overhead '[ BREW ON COOLDOWN! ]' 37 settimer CleansingBrewOverhead 0 endif endif endif endif if EnableCurePotion = 1 while poisoned if findtype "Orange Potion" self dclicktype "Orange Potion" if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 3500 overhead "[ CURE POTION ]" 44 settimer 'CurePotionMessageTimer' 0 endif wait 250 else if timer 'CurePotionMessageTimer' > 5000 overhead "[ NO CURE POTS! ]" 337 settimer 'CurePotionMessageTimer' 0 endif break endif if diffhits > 40 break endif endwhile endif if skill 'Healing' > 0 if diffhits > 0 and not bandaging and not hidden if findtype 'clean bandage%s%' self if targetexists hotkey 'cancel current target' endif hotkey 'Bandage Self' if EnableOverheadMessages = 1 if timer BandageMessageTimer > 5000 overhead "[ BANDAGING... ]" 88 settimer BandageMessageTimer 0 endif endif wait 500 else if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 1 overhead "[ OUT OF BANDAGES! ]" 337 settimer BandageMessageTimer 0 endif endif endif endif if EnableRefreshPotion = 1 if diffstam >= RefreshPotionSPdiff and not hidden if findtype "Red Potion" self dclicktype "Red Potion" if EnableOverheadMessages = 1 overhead "[ REFRESH POTION ]" 37 endif wait 500 else if timer RefreshPotionMessageTimer > 4500 overhead "[ NO REFRESH POTS! ]" 337 settimer RefreshPotionMessageTimer 0 endif endif wait 500 endif endif endwhile if warmode break endif clearsysmsg useskill 'Hiding' wait 250 hotkey 'Toggle Peace Only' wait 250 while insysmsg 'You must wait' if timer HidingOverheadTimer > 2800 if EnableOverheadMessages = 1 overhead "[ WAITING TO HIDE... ]" 13 else overhead " � " 13 endif settimer HidingOverheadTimer 0 endif clearsysmsg useskill 'Hiding' wait 500 if hidden break endif if warmode break endif if EnableHealPotion = 1 if diffhits >= HealPotionHPdiff and not hidden if findtype "Yellow Potion" self as HealPot getlabel HealPot HealPotlabel if "next" in HealPotlabel // Do nothing else @setvar! HealPotionCheck 0 if counttype 3852 self as HealPotCount @setvar! HealPotionCheck HealPotCount endif clearsysmsg dclicktype 3852 getlabel backpack backpackdesc wait 250 if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used" settimer 'HealPotionTimer' 0 cooldown "Healing Potion" HealPotionCooldown if EnableOverheadMessages = 1 if insysmsg "potion satchel used" overhead '[ FREE HEAL POTION ]' 253 else overhead "[ HEAL POTION ]" 253 endif endif clearsysmsg endif endif else if timer 'HealingPotionMessageTimer' > 4500 overhead "[ NO HEAL POTS! ]" 337 settimer 'HealingPotionMessageTimer' 0 endif endif endif endif if EnablePanaceaPotion = 1 if skill 'Alchemy' >= 80 if findbuff "bleed" or findbuff "diseased" if not findbuff "panacea potion cooldown" if findtype "Orange Potion" self dclicktype "Orange Potion" wait 500 if findbuff "panacea potion cooldown" and EnableOverheadMessages = 1 overhead "[ PANACEA POTION ]" 2117 endif cooldown 'Panacea Potion' 30000 else if timer 'CurePotionMessageTimer' > 15000 overhead "[ NO CURE POTS! ]" 337 settimer 'CurePotionMessageTimer' 0 endif endif else if EnableOverheadMessages = 1 and timer PanaceaOverheadTimer > 15000 overhead '[ PANACEA ON COOLDOWN! ]' 37 settimer PanaceaOverheadTimer 0 endif endif endif endif endif if EnableCleansingBrews = 1 if findbuff "Disease" or findbuff "Bleed" if timer CleansingBrewTimer > 120000 if findtype 50675 self 2935 as CleansingBrew dclick CleansingBrew if EnableOverheadMessages = 1 overhead '[ CLEANSING BREW ]' 2117 endif cooldown 'Cleansing Brew' 120000 settimer CleansingBrewTimer 0 wait 250 else if timer CleansingBrewOverhead > 15000 overhead "[ NO CLEANSING BREWS! ]" 337 settimer CleansingBrewOverhead 0 settimer CleansingBrewTimer 0 endif endif else if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 15000 overhead '[ BREW ON COOLDOWN! ]' 37 settimer CleansingBrewOverhead 0 endif endif endif endif if EnableCurePotion = 1 while poisoned if findtype "Orange Potion" self dclicktype "Orange Potion" if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 3500 overhead "[ CURE POTION ]" 44 settimer 'CurePotionMessageTimer' 0 endif wait 250 else if timer 'CurePotionMessageTimer' > 5000 overhead "[ NO CURE POTS! ]" 337 settimer 'CurePotionMessageTimer' 0 endif break endif if diffhits > 40 break endif endwhile endif if skill 'Healing' > 0 if diffhits > 0 and not bandaging and not hidden if findtype 'clean bandage%s%' self if targetexists hotkey 'cancel current target' endif hotkey 'Bandage Self' if EnableOverheadMessages = 1 if timer BandageMessageTimer > 5000 overhead "[ BANDAGING... ]" 88 settimer BandageMessageTimer 0 endif endif wait 500 else if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 1 overhead "[ OUT OF BANDAGES! ]" 337 settimer BandageMessageTimer 0 endif endif endif endif if EnableRefreshPotion = 1 if diffstam >= RefreshPotionSPdiff and not hidden if findtype "Red Potion" self dclicktype "Red Potion" if EnableOverheadMessages = 1 overhead "[ REFRESH POTION ]" 37 endif wait 500 else if timer RefreshPotionMessageTimer > 4500 overhead "[ NO REFRESH POTS! ]" 337 settimer RefreshPotionMessageTimer 0 endif endif wait 500 endif endif endwhile wait 500 if hidden hotkey 'Toggle Peace Only' break elseif not hidden if EnableSmokeBombWhenAggro = 1 if counttype 52149 self > 0 if not cooldown 'Smoke Bomb' and not hidden clearsysmsg hotkey 'Smoke Bomb' wait 500 if insysmsg 'You must wait another' if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB UNAVAILABLE ]' 333 endif hotkey 'Toggle War Only' break else if hidden if EnableOverheadMessages = 1 overhead '[ SMOKE BOMB! ]' 1790 endif clearsysmsg @setvar! Stealthing 1 @setvar! StealthingReady 1 cooldown 'Hiding' 0 cooldown 'Stealth' 10000 cooldown 'Smoke Bomb' SmokeBombCooldown endif break endif else if EnableOverheadMessages = 1 overhead '[ SMOKE ON COOLDOWN! ]' 33 endif hotkey 'Toggle War Only' break endif else if EnableOverheadMessages = 1 overhead '[ NO SMOKE BOMBS ]' 337 endif cooldown 'Hiding' 1000 if not hidden hotkey 'Toggle War Only' break endif endif else hotkey 'Toggle War Only' @setvar! Stealthing 0 @setvar! StealthingReady 0 @setvar! KeepOnTrucking 0 clearsysmsg endif break endif if dead CurrentTarget wait 1500 settimer STORELOOT 0 break endif endif endif if dead break endif endwhile endif if EnableOverheadMessages = 1 if insysmsg "something invisible out of" overhead "� SOMEONE HIDING! �" 6 endif if insysmsg "additional mastery chain link" overhead "[ CHAIN LINK UNLOCKED!! ]" 149 wait 500 if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown wait 500 say "[Yes" settimer EmoteCooldownTimer 0 cooldown "Emote Cooldown" SetEmoteCooldown endif endif if insysmsg "enough experience to upgrade" overhead "[ ASPECT TIER UNLOCKED!! ]" 2234 wait 500 if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown wait 500 say "[Whistle" settimer EmoteCooldownTimer 0 cooldown "Emote Cooldown" SetEmoteCooldown endif endif if insysmsg "You have unlocked a codex upgrade point" overhead "[ CODEX POINT UNLOCKED! ]" 2114 wait 250 if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown wait 500 say "[HighFive" settimer EmoteCooldownTimer 0 cooldown "Emote Cooldown" SetEmoteCooldown endif endif if insysmsg "You have completed a society job" overhead "[ SOCIETY JOB COMPLETE! ]" 419 wait 500 if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown wait 500 say "[Awoo" settimer EmoteCooldownTimer 0 cooldown "Emote Cooldown" SetEmoteCooldown endif endif if insysmsg "Society Job Progress" overhead "[ � SOCIETY POINTS � ]" 419 endif if insysmsg "causes you to bleed" overhead "[ YOU ARE BLEEDING... ]" 2118 endif if insysmsg "been struck by an ancient blight" overhead "[ DISEASED... ]" 1109 endif if insysmsg "You feel chilled!" overhead "[ YOU ARE CHILLED... ]" 2234 endif if insysmsg "You resist a disease effect" overhead "[ DISEASE RESISTED! ]" 888 endif if insysmsg "resist a bleed" overhead "[ BLEED RESISTED! ]" 888 endif if insysmsg "The creature pierces and bypasses your armor!" overhead "[ YOU ARE PIERCED... ]" 337 endif if insysmsg "Their attack disarms you!" overhead "[ DISARMED! ]" 337 endif if insysmsg "Their attack hamstrings you!" overhead "[ HAMSTRUNG! ]" 337 endif if insysmsg "attempting to steal" or insysmsg "attempting to peek" overhead "[ THIEF DETECTED! ]" 910 endif else if insysmsg "something invisible out of" overhead "� SOMEONE HIDING! �" 6 endif if insysmsg "additional mastery chain link" overhead "[ � CHAIN! � ]" 149 wait 500 if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown wait 500 say "[Yes" settimer EmoteCooldownTimer 0 cooldown "Emote Cooldown" SetEmoteCooldown endif endif if insysmsg "enough experience to upgrade" overhead "[ � ASPECT � ]" 2234 wait 500 if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown wait 500 say "[Whistle" settimer EmoteCooldownTimer 0 cooldown "Emote Cooldown" SetEmoteCooldown endif endif if insysmsg "You have unlocked a codex upgrade point" overhead '[ � CODEX! � ]' 2114 wait 250 if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown wait 500 say "[HighFive" settimer EmoteCooldownTimer 0 cooldown "Emote Cooldown" SetEmoteCooldown endif endif if insysmsg "You have completed a society job" overhead "[ SOCIETY COMPLETE! ]" 419 wait 500 if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown wait 500 say "[Awoo" settimer EmoteCooldownTimer 0 cooldown "Emote Cooldown" SetEmoteCooldown endif endif if insysmsg "Society Job Progress" overhead "[ � SOCIETY � ]" 419 endif if insysmsg "attempting to steal" or insysmsg "attempting to peek" overhead "[ THIEF DETECTED! ]" 910 endif if insysmsg "Their attack disarms you!" overhead "*disarmed*" 337 endif if insysmsg "Their attack hamstrings you!" overhead "*hamstrung*" 337 endif endif if dead break endif endwhile ////////////////////////////// // END ATTACK TARGET LOOP // ////////////////////////////// if dead break endif endwhile ////////////////////// // END ALIVE LOOP // ////////////////////// ///////////////////////// // BEGIN DEATH LOOP: // ///////////////////////// if dead overhead "[ R.I.P. ]" 337 wait 1500 if EnableDeathLoop = 1 while dead if timer "HEALERSEARCH" > 4000 overhead "[ FIND A HEALER! ]" 0 settimer "HEALERSEARCH" 0 endif if findtype "blue moongate|30528|moongate" ground -1 -1 12 as EscapeGate if timer "GATEHERE" > 2000 overhead " � " 253 EscapeGate settimer "GATEHERE" 0 endif endif while not gumpexists 3773199800 and findtype "blue moongate|30528|moongate" ground 0 1 2 as EscapeGate dclick EscapeGate wait 500 endwhile while gumpexists 3773199800 gumpresponse 16 wait 500 waitforgump 3773199800 gumpresponse 2 overhead "[ GATING TO TOWN... ]" 88 break endwhile while gumpexists 2957810225 overhead "[ HEALED! ]" 84 gumpresponse 1 wait 1000 gumpclose 2957810225 while not dead and not hidden and EnableHideAfterResurrection = 1 if targetexists hotkey 'Cancel Current Target' endif wait 500 useskill 'Hiding' wait 500 if hidden break endif endwhile break endwhile if not dead break endif endwhile else wait 1000 overhead "[ STOPPING SCRIPT! ]" 88 stop endif endif if not dead if EnableDressAfterResurrection = 1 if EnableOverheadMessages = 1 overhead '[ DRESSING... ]' 1790 endif wait 500 dress 'UltimateBackstabber' wait 500 while queued wait 100 endwhile wait 1000 dress 'UltimateBackstabber' while queued wait 100 endwhile wait 1000 dress 'UltimateBackstabber' while queued wait 100 endwhile endif wait 1000 overhead "[ STOPPING SCRIPT! ]" 88 stop else replay endif ////////////////////// // END DEATH LOOP // ////////////////////// ############################# ### SCRIPT ENDS HERE! ### ############################# // Thank you for using my scripts! I can be contacted via email here: dan@danstockman.com // Good luck out there and say hello if you see me in Avadon (Lord Glacier) - please don't PK me lol