Razor script
Lord Glacier's Chill STEALTH BACKSTABBER AUTO PILOT - UO OUTLANDS RAZOR SCRIPT - v2.0.0
by danstock._98439 · 8469 lines
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)
ThievingHidingStealthTracking
Lord Glaciers Chill STEALTH BACKSTABBER AUTO PILOT - UO OUTLANDS RAZOR SCRIPT - v200.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/156be202-0920-4cf0-a2d6-a2ba04da4f0b for latest2# Automation by Jaseowns3## Script: Lord Glacier's Chill STEALTH BACKSTABBER AUTO PILOT - UO OUTLANDS RAZOR SCRIPT - v2.0.04## Created by: danstock._98439#05#############################################6 7/////////8//////// Lord Glaciers Chill STEALTH BACKSTABBER AUTO PILOT - UO OUTLANDS RAZOR SCRIPT version 2.0.09///////10////// UO Outlands Razor script - Released Feb 19, 2026 - Last Updated September 16, 202611///// Compiled by DanStock. (aka. Lord Glacier)12////13///14 15 16 17 18 19 ############################### ###############################20 // SUGGESTED SKILL TEMPLATE: \\ // INVENTORY ITEMS: \\21 ################################### ###################################22 23 # 120 Stealth Thieves Codex24 # 100 Tactics (120 Camping w/ codex) Weapon Codex (Macing, Fencing or Archery)25 # 100 Snooping (120 Item ID w/ codex) 2-handed Aspect weapon **26 # 100 Hiding 1-handed Aspect weapon **27 # 100 Stealing Aspect platemail armour28 # 80-100 Mace Fighting ** Smoke Bombs29 # 80-100 Tracking * Magical Wizards Hat30 # Potion Satchel (w/ potions)31 # ASPECT: SHADOW armour Trapped pouches32 # SHADOW weapon Adventurers rope33 # Item ID wand *34 # CHAIN: Backstab Damage Crafting tool (for recycle) *35 # Damage above 66% Delectable food trays *36 # Slayer links Skinning knife *37 # Aspect crystals *38 # * or Forensic or Alchemy Wooden Box w/ copper key *39 # ** or Archery (but keep Tactics)40 # or Fencing * Optional items41 # ** Magic weapons (if using Item ID)42 43 ################################## ##################################44 ################################ ################################45 ############################## ##############################46 47 48 49 50 51 /////////////////////////52 //' CHANGE LOG: '//53 /////////////////////////54 55 # 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!56 # Script has been completely overhauled and improved in all sections and now is working very well. Email any issues: dan@danstockman.com57 #58 # Jul 23 2026 - version 1.0.4: Added war hammer to slow weapons (was incorrectly listed under fast)59 # Apr 23 2026 - version 1.0.3: Fixed bug when filling pots from kegs if one of the types was set to '0'60 # 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 things61 # Feb 20 2026 - version 1.0.1: Fixed a cooldown issue with the Magic Item Recycler section. Working well otherwise!62 # Feb 19 2026 - version 1.0.0: Public script release63 64 65 66 ///////////////////67 //' TIPS: '//68 ///////////////////69 70# 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!71# 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)72# IMPT: Automatic Stealthing MUST BE ENABLED (toggle with '[AutoStealth' command or verify under HELP-> Commands-> Mechanics-> [AutoStealth Setting = Enabled)73# 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)74# 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 desired75# IMPT: This script HAS TWO REQUIRED COOLDOWNS YOU NEED TO ADD IN UO CLIENT ('Hiding' and 'Stealth'). Information and instructions below.76# 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!77#78# 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:79# 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)80# 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)81# 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.82# 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 scenarios83# 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)84# Script currently supports MACING, FENCING or ARCHERY weapons only! Weapons will be automatically equipped (prioritizes Aspected weapons and ignores unidentified magic)85# 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!')86# 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 available87# 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)88# You can use the 'EnableInstantHide' below to delay backstab attacks until all cooldowns are zeroed, so that Hiding skill will be immediately available89# 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)90# Prior to the fast second hit attempt, if enabled and available, WEAPON CODEX ABILITIES will be activated (set below)91# Second hit attempt with fast weapon will be ignored if VANISH ASPECT EFFECT is activated upon backstab or if targeted MOB is dead92# 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)93# 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)94# 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)95# Keeping stamina below your max while stealthing will prevent accidentally walking through MOBs or other players and revealing yourself! Very helpful96# 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 used97# 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)98# 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)99# You can choose to use POTION KEGS (set your potion amounts below) and inventory amounts will be automatically maintained based on amounts set below100# 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!101# 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)102# 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 mins103# 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 incorrect104# 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)105# 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 evading106# My standard UTILITY options are also available below (gold, arrow and/or resource vacuums, skinning, eating food, overhead message toggles, etc.)107# 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)108# 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)109# You can then optionally choose to consume the Arcane Essence immediately and/or drop resources on the ground (lumber, ingots, blank scrolls, etc.)110# 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 AFK111# It is a slow template to start until you build up your Thieves Codex and Aspect levels, but it really escalates quickly!112#113# I intentionally did NOT include 'AUTO RECALL' options in this script. I also did NOT include 'DUNGEON ESCAPE MODES'114# 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 each115#116# 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...117# 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 recognition118#119# - Dan (aka. Lord Glacier)120 121 122 123 ##########################################124 ###' COOLDOWNS TO ADD IN UO CLIENT: '###125 ###' (case sensitive!) '###126 ##########################################127 128 // REQUIRED (IMPT!):129 # Hiding130 // Overhead Triggers: "You have hidden yourself well" and "You fail to hide" w/ 10 second cooldown131 # Stealth132 // Sysmsg Triggers: "You begin to move quietly" w/ 10 second cooldown133 134 // OPTIONAL:135 # Smoke Bomb136 # Weapon Ability137 # Healing Potion138 # Cleansing Brew139 # Vanish Buff140 141 // OPTIONAL (ALCHEMY ONLY): 142 # Purple Potion143 # Panacea Potion144 145 // OPTIONAL (MACING ONLY):146 # Pummel Ability147 # Stun Ability148 # Smash Ability149 150 // OPTIONAL (FENCING ONLY):151 # Gambit Ability152 # Swiftstrikes Ability153 # Bane Ability154 155 // OPTIONAL (ARCHERY ONLY):156 # Skirmish Ability157 # Full Draw Ability158 # Repeater Ability159 160 161 162 163 ###########################################################################################################################164 # MOST FEATURES ARE TURNED 'OFF' BY DEFAULT! PLEASE CHECK THE 'VARIABLES' SECTION BELOW CAREFULLY DURING INITIAL SETUP! #165 ###########################################################################################################################166 167 168 169 170 ###############################171 ###' USER VARIABLES: '###172 ###############################173 174 175/////////////////////176//' BACKSTAB: '//177/////////////////////178 179@setvar! EnableWeaponCheck 1180 # Requires two-handed weapon (Macing, Fencing or Archery supported)181 # Checks hands for two-handed weapon and will equip if found in backpack182 # Prioritizes aspected weapons and ignores unidentified magic items183 184@setvar! TargetAttackRange 1185 # Backstab attempt will be made when in WAR MODE and target is within attack range and stealth is active ('TAB TO STAB!')186 # Leave this variable set to '1' if using Macing or Fencing weapon187 # Increase range if using Archery (max '8' tiles for 2-handed weapons - or up to '12' with Longshot stance in Archery Codex)188 189@setvar! EnableWizardHatStealthTrick 0190 # Requires 'a magical wizards hat' in inventory191 # Will automatically equip and unequip wizard hat as needed to keep stamina below maximum while stealthing192 # This prevents accidentally walking through MOBs or other players and revealing yourself 193 # Can be purchased from mage NPC for 40gp and is able to be [blessed] with a clothing bless deed194 195@setvar! EnableInstantHide 0196 # If enabled, ATTACKS WILL BE DELAYED until COOLDOWNS are cleared to make sure hiding is available (if MOB is one-shotted)197 # Immediately after backstab, if target MOB has been killed, you will be hidden198 # To hide instantly, set 'LootDelayTimer' to '0' (below) - this will keep you from catching aggro from other MOBs but leaves no time for looting199 # 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!200 # If disabled, you will still hide instantly after a kill if cooldowns allow (you just need to manually time your backstabs)201 202@setvar! LootDelayTimer 500203 # This is the delay timer after target MOB is killed to allow a window for looting204 # Setting this at '0' will make looting nearly impossible, but makes instant hiding safer205 # Increase this slightly if skinning or if you are having trouble grabbing loot in time 206 # A setting of '750' is a good balance - allowing you to grab a couple loot items before hiding kicks in, without catching MOB Aggro207 208@setvar! EnableFastSecondHit 0209 # Requires one-handed weapon (Macing, Fencing or Archery supported)210 # If target MOB is NOT one-shotted, an additional hit can be attempted with a fast weapon211 # Will equip a one-handed weapon immediately after backstab for a quick second hit212 # Prioritizes aspected weapons and ignores unidentified magic items213 # Will trigger WEAPON ABILITIES before hitting, if enabled and available (set below)214 # Will ignore fast second hit attempt if VANISH ASPECT EFFECT is activated upon backstab or target MOB is dead 215 # If VANISH ASPECT EFFECT is activated and target is still alive, another backstab will be attempted immediately216 217@setvar! EnableSmokeBombDoubleTap 0218 # Requires Smoke Bombs in inventory219 # Immediately after backstab, if target MOB is still alive, a Smoke Bomb will be used (if not on cooldown)220 # Another backstab attempt will be made immediately221 # If both Hiding and Smoke Bombs are unavailable, WAR MODE will be toggled for VISIBLE MODE222 # Break Line of Sight and toggle PEACE MODE to immediately hide and reset for another stab223 224@setvar! EnableSmokeBombWhenAggro 0225 # Requires Smoke Bombs in inventory226 # If attempt to HIDE is made but not possible due to MOB aggro, and if not on cooldown and available, script will use SMOKE BOMB227 # This will immediately put you into stealth mode and makes TAB TO STAB available to activate when target MOB is within attack range228 229@setvar! WithoutaTraceLevel 0230 # Adjusts your Smoke Bomb cooldown automatically based on your THIEVES CODEX settings231 # Can be set to '0', '1', '2' or '3' based on your 'Without a Trace' tier level in Thieves Codex232 # '0' for '2 minute Smoke Bomb cooldown'233 # '1' for '1 minute 45 second Smoke Bomb cooldown'234 # '2' for '1 minute 15 second Smoke Bomb cooldown'235 # '3' for '45 second Smoke Bomb cooldown'236 237 238///////////////////////////239//' WEAPON CODEX: '//240///////////////////////////241 242@setvar! EnableWeaponCodexHotbar 0243 # Will automatically display your Codex Hotbar gump during combat244 245@setvar! EnableWeaponStances 0246 @setvar! SetWeaponStance 0247 # Requires Macing, Fencing or Archery codex stances unlocked248 # Can be set to '0', '1', '2', '3', '4' or '5':249 # '0' for 'Disabled'250 # '1' for 'Aggressive' or 'Arcane' stance251 # '2' for 'Defensive' or 'Fowling' stance252 # '3' for 'Cleave' or 'Incendiary' stance253 # '4' for 'Wildswing' or 'Blackguard' or 'Longshot' stance254 # '5' for 'Sunder' or 'Fang' or 'Maiming' stance255 256@setvar! EnableWeaponAbilities 0257 @setvar! SetWeaponAbility 0258 # Variable 'EnableFastSecondHit' above must be enabled for weapon abilities to be used259 # Requires Macing, Fencing or Archery codex Weapon Ability unlocked260 # Will be activated prior to second hit attempts (if enabled above)261 # Can be set to '0', '1', '2' or '3':262 # '0' for 'Disabled'263 # '1' for 'Pummel' or 'Gambit' or 'Skirmish' ability264 # '2' for 'Stun' or 'Swiftstrikes' or 'Full Draw' ability265 # '3' for 'Smash' or 'Bane' or 'Repeater' ability266 267 @setvar! WeaponAbilityCooldown 60000268 # Adjust Weapon Ability cooldown time if using ARMS LORE skill269 270 271////////////////////272//' POTIONS: '//273////////////////////274 275// Potions (if enabled) will be used automatically when in WAR MODE and VISIBLE //276 277@setvar! EnableHealPotion 1278 @setvar! HealPotionHPdiff 30279 # Adjust HP diff set point for Heal potion consumption280 # Heal potions will be prioritized over all other healing options (if not on cooldown)281 282 @setvar! HealPotionCooldown 10000283 # This value only affects your OPTIONAL COOLDOWN BAR (script uses other checks to verify heal pots are available)284 # You can reduce this value if using POTION CODEX285 # Add cooldown in UO options: 'Healing Potion' (case sensitive)286 287@setvar! EnableCurePotion 1288 # Cure pots will be used as needed (if enabled and found in inventory)289 290 @setvar! EnablePanaceaPotion 0291 # Requires 80+ Alchemy skill, Cure Potions and Potion Codex in inventory w/ Panacea buff unlocked292 # Will automatically consume Cure Potion if Bleeding or Diseased293 294 @setvar! EnableCleansingBrews 0295 # Requires Cleansing Brews in inventory296 # Will automatically consume Cleansing Brew if Bleeding or Diseased (and not on cooldown)297 298@setvar! EnableRefreshPotion 0299 @setvar! RefreshPotionSPdiff 10300 # Adjust SP diff set point for Refresh potion consumption301 302@setvar! EnableStrengthPotion 0303@setvar! EnableAgilityPotion 0304@setvar! EnableMagicResistPotion 0305 # Strength, Agility and Resist potions will auto-buff when effects wear off (if enabled) *306 307@setvar! EnableExplosionPotion 0308 @setvar! PurplePotionCooldown 15000309 # Requires 80+ Alchemy skill to make potions sticky (increase range if using Archery skill - or if preferred)310 # WARNING: throwing potions in a crowded dungeon may cause you to flag criminal in rare cases! USE AT OWN RISK311 312 @setvar! EnableUsePotionKegs 0313 # A good way to carry lots of potions without weighing you down314 # Requires potion kegs and empty bottles (pack extra if using explosion potions)315 # Will auto fill empty bottles from potion kegs if counts drop below set amounts:316 @setvar! HealingPotionAmount 5317 @setvar! CurePotionAmount 5318 @setvar! RefreshPotionAmount 5319 @setvar! StrengthPotionAmount 1320 @setvar! AgilityPotionAmount 1321 @setvar! ResistPotionAmount 1322 @setvar! ExplosionPotionAmount 1323 @setvar! PoisonPotionAmount 0324 325 326//////////////////////////327//' UTILITY / LOOT : '//328//////////////////////////329 330@setvar! EnableOverheadMessages 1331 # Overhead messages can be turned off (minimal indicators will remain)332 333@setvar! EnableOverheadWarnings 1334 # Overhead warnings for MOB distance (Macing and Fencing only) and stealth steps335 336@setvar! EnableAutoParalyzePouch 0337 # Requires trapped pouches in inventory338 # Will automatically pop trapped pouches if paralyzed339 340@setvar! EnableAutoCarving 0341 # Requires skinning knife in inventory342 # Will automatically carve nearby corpses (while not hidden)343 # You may need to increase 'LootDelayTimer' above while skinning344 345@setvar! EnableEatingFood 0346 # Requires delectable food trays in inventory347 # Will automatically eat delectable food trays when not buffed348 349@setvar! EnableAutoSatchels 0350 # Will automatically move potions and/or reagents in backpack to corresponding satchels351 352@setvar! EnableGoldVacuum 0353 # Will automatically pick up discarded gold nearby (within 2 tiles)354 # WARNING: This can hinder you with weight issues if you are not careful!355 356@setvar! EnableDungeonCleanup 0357 # Will automatically pick up discarded regs, ingots, boards, etc. (within 2 tiles)358 359@setvar! EnableArrowCleanup 0360 # Requires Archery skill 50+361 # Will automatically pick up arrows and/or bolts from the ground (within 2 tiles)362 363@setvar! EnableArcheryWarningMessage 0364 @setvar! ArcheryLowAmmoWarningAmount 10365 # Requires Archery skill 50+366 # Overhead warning (independent of other Overhead Messages) for low archery ammunition367 368@setvar! EnablePutLootinLockBox 0369 # Requires WOODEN BOX and matching COPPER KEY in inventory370 # Loot will be automatically moved into lockbox and secured during hiding cooldown (while waiting for stealth)371 # Key cannot be inside the lockbox and should be well hidden in your pack372 # Being hidden most of the time, having a hidden grab item bag and using a lockbox makes you basically thief-proof373 374@setvar! EnableIDandRecycleMagicItems 0375 # Requires 120 Item ID skill (or container ID wand) and a crafting tool in your inventory376 # Uses crafting tool to Recycle junk magic items after identification377 # Top-tier items will not be recycled! 378 # Combining this with Camping skill for increased carry weight makes this build a farming machine!379 @setvar! IDandRecycleWeightdiff 25380 # Item identification and junk recycling is initiated when weight diff trigger is reached381 @setvar! EnableAutoConsumeArcaneEssence 0382 # Will automatically consume any Arcane Essence created from recycling383 @setvar! DropResourcesAfterRecycle 0384 # Will automatically drop resources from recycling onto ground (boards, ingots, leather, blank scrolls, etc.)385 386@setvar! EnableDropGoldWhenOverweight 0387 # Will drop set amount of gold when overweight until no longer impeded388 @setvar! DropGoldAmount 250389 # Set gold amount to drop (will drop this amount repeatedly until below max weight)390 391@setvar! EnableWeightWarningMessage 0392 @setvar! GreenWarningDiffWeight 50393 @setvar! YellowWarningDiffWeight 25394 @setvar! RedWeightLimitDiffWeight 5395 # Weight limit will drop gold (if overweight and enabled above) then stop script OR trigger another script (below)396 # Recommend using my 'DUNGEON ESCAPE n GATE' script to then exit dungeons safely397 398 @setvar! EnableTriggerDungeonEscapeScript 0 399 # Option to launch another Razor script when Red Weight limit is reached400 # Recommend using my DUNGEON ESCAPE n GATE script (found on my UORazorScripts.com profile)401 # If farming in WILDERNESS, this could be used to call a HOME RECALL script instead402 403 // Type the name of your DUNGEON ESCAPE or HOME RECALL Razor script here:404 if EnableTriggerDungeonEscapeScript = 1405 createlist DungeonEscapeScriptList406 pushlist DungeonEscapeScriptList "DUNGEON ESCAPE SCRIPT NAME HERE"407 endif408 409 410//////////////////////////411//' PK TRACKING: '//412//////////////////////////413 414@setvar! EnablePKRadar 0415 # Requires Tracking skill >= 80416 # Uses tracking to detect nearby PKs automatically417 # Will hide or use Smoke Bomb, if available, when Red is tracked418 @setvar! EnableRedAlertOverhead 1419 # Controls the Red Alert overhead message (displayed when PK is tracked)420 # I highly recommend setting up a RAZOR OVERHEAD MESSAGE instead of using the script one:421 // This will display PK name/distance overhead when tracked!422 // Add overhead message w/ a trigger of "Now tracking" and message "[ RED ALERT: {3} ]" (hue 335)423 // Then a second with a trigger of "Distance to destination" and message "[ {4} TILES AWAY! ]" (hue 253)424 // Once complete you should disable "EnableRedAlertOverhead" above425 426 // I decided NOT to include Auto Recall in this script due to 99% of backstabbing being done in dungeons and while hidden427 // If Tracking skill available, Hiding skill and/or Smoke Bombs will be used to evade tracked Reds instead (if PK Radar is on)428 // Highly recommend using my 'RECALL/RESET/RELOAD' or 'DUNGEON ESCAPE n GATE' scripts to supplement this one!429 430 431/////////////////////////432//' DEATH LOOP: '//433/////////////////////////434 435@setvar! EnableDeathLoop 0436 # Script will detect if you die and enter an optional DEATH LOOP (otherwise script ends upon death)437 # While in death loop, dungeon gates will be marked with overhead arrows and automatically activated when within 2 tiles 438 # You will be gated to your last moongated town439 # Script will automatically resurrect you when close enough to a HEALER440 441 @setvar! EnableHideAfterResurrection 0442 # Will immediately hide after being resurrected443 444 @setvar! EnableDressAfterResurrection 0445 # Will automatically dress after being resurrected 446 # Must have a Razor 'Dress List' named 'UltimateBackstabber' for all your [blessed] wearables447 448 449 // Script ends after death loop completion. Check out my other scripts for Inventory Reset, Home Recall or other QOL support scripts! //450 451 452///////////////////////////453//' END OF VARIABLES! '//454///////////////////////////455 456 457 458 459 460 461################ 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! ################462 463 464 465 466 467 468///////////////////////469// TIMER SETUPS: //470///////////////////////471 472if not timerexists FindTargetTimer473 createtimer FindTargetTimer474 settimer FindTargetTimer 1000475endif476 477if not timerexists FindTarget478 createtimer FindTarget479 settimer FindTarget 2000480endif481 482if not timerexists TargetTimer483 createtimer TargetTimer484 settimer TargetTimer 4500485endif486 487if not timerexists NoTargetTimer488 createtimer NoTargetTimer489 settimer NoTargetTimer 4500490endif491 492if not timerexists CheckTargetTimer493 createtimer CheckTargetTimer494 settimer CheckTargetTimer 5000495endif496 497if not timerexists StabDistanceTimer498 createtimer StabDistanceTimer499 settimer StabDistanceTimer 2500500endif501 502if not timerexists HidingCooldownTimer503 createtimer HidingCooldownTimer504 settimer HidingCooldownTimer 2500505endif506 507if not timerexists HidingOverheadTimer508 createtimer HidingOverheadTimer509 settimer HidingOverheadTimer 4500510endif511 512if not timerexists WaitingForStealthTimer513 createtimer WaitingForStealthTimer514 settimer WaitingForStealthTimer 2500515endif516 517if not timerexists StealthCooldownTimer518 createtimer StealthCooldownTimer519 settimer StealthCooldownTimer 2500520endif521 522if not timerexists VisibilityTimer523 createtimer VisibilityTimer524 settimer VisibilityTimer 2500525endif526 527if not timerexists KeepOnTruckingTimer528 createtimer KeepOnTruckingTimer529 settimer KeepOnTruckingTimer 4000530endif531 532if not timerexists DoNotMoveTimer533 createtimer DoNotMoveTimer534 settimer DoNotMoveTimer 500535endif536 537if not timerexists DoNotMoveTimeout538 createtimer DoNotMoveTimeout539 settimer DoNotMoveTimeout 0540endif541 542if not timerexists PopPouchMessageTimer543 createtimer PopPouchMessageTimer544 settimer PopPouchMessageTimer 4500545endif546 547if not timerexists HealPotionTimer548 createtimer HealPotionTimer549 settimer HealPotionTimer 4500550endif551 552if not timerexists HealingPotionMessageTimer553 createtimer HealingPotionMessageTimer554 settimer HealingPotionMessageTimer 4500555endif556 557if not timerexists CurePotionMessageTimer558 createtimer CurePotionMessageTimer559 settimer CurePotionMessageTimer 4500560endif561 562if not timerexists RefreshPotionMessageTimer563 createtimer RefreshPotionMessageTimer564 settimer RefreshPotionMessageTimer 4500565endif566 567if not timerexists ResistPotionMessageTimer568 createtimer ResistPotionMessageTimer569 settimer ResistPotionMessageTimer 4500570endif571 572if not timerexists StrengthPotionMessageTimer573 createtimer StrengthPotionMessageTimer574 settimer StrengthPotionMessageTimer 4500575endif576 577if not timerexists AgilityPotionMessageTimer578 createtimer AgilityPotionMessageTimer579 settimer AgilityPotionMessageTimer 4500580endif581 582if not timerexists ExplosionPotionMessageTimer583 createtimer ExplosionPotionMessageTimer584 settimer ExplosionPotionMessageTimer 15000585endif586 587if not timerexists ExplosionPotionTimer588 createtimer ExplosionPotionTimer589 settimer ExplosionPotionTimer PurplePotionCooldown590endif591 592if not timerexists ExplosionPotionTimeout593 createtimer ExplosionPotionTimeout594 settimer ExplosionPotionTimeout 1000595endif 596 597if not timerexists CleansingBrewOverhead 598 createtimer CleansingBrewOverhead599 settimer CleansingBrewOverhead 15000600endif601 602if not timerexists CleansingBrewTimer603 createtimer CleansingBrewTimer604 settimer CleansingBrewTimer 120000605endif606 607if not timerexists PanaceaOverheadTimer608 createtimer PanaceaOverheadTimer609 settimer PanaceaOverheadTimer 15000610endif611 612if not timerexists PotionKegTimer613 createtimer PotionKegTimer614 settimer PotionKegTimer 4500615endif616 617if not timerexists PotionKegPVPCooldown618 createtimer PotionKegPVPCooldown619 settimer PotionKegPVPCooldown 30000620endif621 622if not timerexists PotionSatchelTimer623 createtimer PotionSatchelTimer624 settimer PotionSatchelTimer 60000625endif626 627if not timerexists WizardSatchelTimer628 createtimer WizardSatchelTimer629 settimer WizardSatchelTimer 60000630endif631 632if not timerexists OverweightMessageTimer633 createtimer OverweightMessageTimer634 settimer OverweightMessageTimer 4500635endif636 637if not timerexists WeightTimer638 createtimer WeightTimer639 settimer WeightTimer 5000640endif641 642if not timerexists SkinningTimer643 createtimer SkinningTimer644 settimer SkinningTimer 4500645endif646 647if not timerexists HEALERSEARCH648 createtimer HEALERSEARCH649 settimer HEALERSEARCH 2500650endif651 652if not timerexists GATEHERE653 createtimer GATEHERE654 settimer GATEHERE 3500655endif656 657if not timerexists STORELOOT658 createtimer STORELOOT659 settimer STORELOOT 5000660endif661 662if not timerexists LootTimer663 createtimer LootTimer664 settimer LootTimer 5000665endif666 667if not timerexists LootCooldownTimer668 createtimer LootCooldownTimer669 settimer LootCooldownTimer 10000670endif671 672if not timerexists WeaponCodexTimer673 createtimer WeaponCodexTimer 674 settimer WeaponCodexTimer 5000675endif676 677if not timerexists WeaponAbilityTimer678 createtimer WeaponAbilityTimer679 settimer WeaponAbilityTimer 60000680endif681 682if not timerexists BandageMessageTimer683 createtimer BandageMessageTimer684 settimer BandageMessageTimer 5000685endif686 687if not timerexists CooldownOverheadTimer688 createtimer CooldownOverheadTimer689 settimer CooldownOverheadTimer 3500690endif691 692if not timerexists DungeonCleanupRadar693 createtimer DungeonCleanupRadar694 settimer DungeonCleanupRadar 3500695endif696 697if not timerexists DungeonCleanup698 createtimer DungeonCleanup699 settimer DungeonCleanup 4500700endif701 702if not timerexists GoldRadar703 createtimer GoldRadar704 settimer GoldRadar 4500705endif706 707if not timerexists BoltCleanupRadar708 createtimer BoltCleanupRadar709 settimer BoltCleanupRadar 3500710endif711 712if not timerexists ArrowCleanupRadar713 createtimer ArrowCleanupRadar714 settimer ArrowCleanupRadar 3500715endif716 717if not timerexists ArrowCleanupTimer718 createtimer ArrowCleanupTimer719 settimer ArrowCleanupTimer 3500720endif721 722if not timerexists QuiverTimer723 createtimer QuiverTimer724 settimer QuiverTimer 30000725endif726 727if not timerexists AmmunitionTimer728 createtimer AmmunitionTimer729 settimer AmmunitionTimer 6000730endif731 732if not timerexists RecyclingJunkTimer733 createtimer RecyclingJunkTimer734 settimer RecyclingJunkTimer 3500735endif736 737if not timerexists MagicRecyclerCooldown738 createtimer MagicRecyclerCooldown739 settimer MagicRecyclerCooldown 300000740endif741 742if not timerexists NoWeaponOverheadTimer743 createtimer NoWeaponOverheadTimer744 settimer NoWeaponOverheadTimer 5000745endif746 747if not timerexists SkillCooldownTimer748 createtimer SkillCooldownTimer749 settimer SkillCooldownTimer 3500750endif751 752if not timerexists OrganizerAgentTimer753 createtimer OrganizerAgentTimer754 settimer OrganizerAgentTimer 30000755endif756 757if not timerexists WarModeOverheadTimer758 createtimer WarModeOverheadTimer759 settimer WarModeOverheadTimer 3500760endif761 762 763 //////////////////////764 // SETUP: //765 //////////////////////766 767 if EnablePutLootinLockBox = 1 and not varexist EnablePutLootinLockBoxFailed768 @setvar! EnablePutLootinLockBoxFailed 0769 endif 770 771 if targetexists772 hotkey 'Cancel Current Target'773 endif774 775 @setvar! CurrentTarget 0776 777 if WithoutaTraceLevel = 0778 @setvar! SmokeBombCooldown 120000779 elseif WithoutaTraceLevel = 1780 @setvar! SmokeBombCooldown 105000781 elseif WithoutaTraceLevel = 2782 @setvar! SmokeBombCooldown 75000783 elseif WithoutaTraceLevel = 3784 @setvar! SmokeBombCooldown 45000785 endif786 787 if EnableWeaponAbilities = 1788 if SetWeaponAbility = 0789 if skill 'Mace Fighting' >= 50790 @setvar! UsePummelAbility 0791 @setvar! UseStunAbility 0792 @setvar! UseSmashAbility 0793 elseif skill 'Fencing' >= 50794 @setvar! UseGambitAbility 0795 @setvar! UseSwiftstrikesAbility 0796 @setvar! UseBaneAbility 0 797 elseif skill 'Archery' >= 50798 @setvar! UseSkirmishAbility 0799 @setvar! UseFullDrawAbility 0800 @setvar! UseRepeaterAbility 0801 endif802 elseif SetWeaponAbility = 1803 if skill 'Mace Fighting' >= 50804 @setvar! UsePummelAbility 1805 @setvar! UseStunAbility 0806 @setvar! UseSmashAbility 0807 elseif skill 'Fencing' >= 50808 @setvar! UseGambitAbility 1809 @setvar! UseSwiftstrikesAbility 0810 @setvar! UseBaneAbility 0 811 elseif skill 'Archery' >= 50812 @setvar! UseSkirmishAbility 1813 @setvar! UseFullDrawAbility 0814 @setvar! UseRepeaterAbility 0815 endif816 elseif SetWeaponAbility = 2817 if skill 'Mace Fighting' >= 50818 @setvar! UsePummelAbility 0819 @setvar! UseStunAbility 1820 @setvar! UseSmashAbility 0821 elseif skill 'Fencing' >= 50822 @setvar! UseGambitAbility 0823 @setvar! UseSwiftstrikesAbility 1824 @setvar! UseBaneAbility 0 825 elseif skill 'Archery' >= 50826 @setvar! UseSkirmishAbility 0827 @setvar! UseFullDrawAbility 1828 @setvar! UseRepeaterAbility 0829 endif830 elseif SetWeaponAbility = 3831 if skill 'Mace Fighting' >= 50832 @setvar! UsePummelAbility 0833 @setvar! UseStunAbility 0834 @setvar! UseSmashAbility 1835 elseif skill 'Fencing' >= 50836 @setvar! UseGambitAbility 0837 @setvar! UseSwiftstrikesAbility 0838 @setvar! UseBaneAbility 1839 elseif skill 'Archery' >= 50840 @setvar! UseSkirmishAbility 0841 @setvar! UseFullDrawAbility 0842 @setvar! UseRepeaterAbility 1843 endif844 else845 if skill 'Mace Fighting' >= 50846 @setvar! UsePummelAbility 0847 @setvar! UseStunAbility 0848 @setvar! UseSmashAbility 0849 elseif skill 'Fencing' >= 50850 @setvar! UseGambitAbility 0851 @setvar! UseSwiftstrikesAbility 0852 @setvar! UseBaneAbility 0 853 elseif skill 'Archery' >= 50854 @setvar! UseSkirmishAbility 0855 @setvar! UseFullDrawAbility 0856 @setvar! UseRepeaterAbility 0857 endif858 endif859 endif860 861 if EnableWeaponStances = 1862 if SetWeaponStance = 0863 if skill 'Mace Fighting' >= 50864 @setvar! SwitchToAggressiveStance 0865 @setvar! SwitchToDefensiveStance 0866 @setvar! SwitchToCleaveStance 0867 @setvar! SwitchToWildSwingStance 0868 @setvar! SwitchToSunderStance 0869 elseif skill 'Fencing' >= 50870 @setvar! SwitchToAggressiveStance 0871 @setvar! SwitchToDefensiveStance 0872 @setvar! SwitchToCleaveStance 0873 @setvar! SwitchToBlackguardStance 0874 @setvar! SwitchToFangStance 0875 elseif skill 'Archery' >= 50876 @setvar! SwitchToArcaneStance 0877 @setvar! SwitchToFowlingStance 0878 @setvar! SwitchToIncendiaryStance 0879 @setvar! SwitchToLongshotStance 0880 @setvar! SwitchToMaimingStance 0881 endif882 elseif SetWeaponStance = 1883 if skill 'Mace Fighting' >= 50884 @setvar! SwitchToAggressiveStance 1885 @setvar! SwitchToDefensiveStance 0886 @setvar! SwitchToCleaveStance 0887 @setvar! SwitchToWildSwingStance 0888 @setvar! SwitchToSunderStance 0889 elseif skill 'Fencing' >= 50890 @setvar! SwitchToAggressiveStance 1891 @setvar! SwitchToDefensiveStance 0892 @setvar! SwitchToCleaveStance 0893 @setvar! SwitchToBlackguardStance 0894 @setvar! SwitchToFangStance 0895 elseif skill 'Archery' >= 50896 @setvar! SwitchToArcaneStance 1897 @setvar! SwitchToFowlingStance 0898 @setvar! SwitchToIncendiaryStance 0899 @setvar! SwitchToLongshotStance 0900 @setvar! SwitchToMaimingStance 0901 endif902 elseif SetWeaponStance = 2903 if skill 'Mace Fighting' >= 50904 @setvar! SwitchToAggressiveStance 0905 @setvar! SwitchToDefensiveStance 1906 @setvar! SwitchToCleaveStance 0907 @setvar! SwitchToWildSwingStance 0908 @setvar! SwitchToSunderStance 0909 elseif skill 'Fencing' >= 50910 @setvar! SwitchToAggressiveStance 0911 @setvar! SwitchToDefensiveStance 1912 @setvar! SwitchToCleaveStance 0913 @setvar! SwitchToBlackguardStance 0914 @setvar! SwitchToFangStance 0915 elseif skill 'Archery' >= 50916 @setvar! SwitchToArcaneStance 0917 @setvar! SwitchToFowlingStance 1918 @setvar! SwitchToIncendiaryStance 0919 @setvar! SwitchToLongshotStance 0920 @setvar! SwitchToMaimingStance 0921 endif922 elseif SetWeaponStance = 3923 if skill 'Mace Fighting' >= 50924 @setvar! SwitchToAggressiveStance 0925 @setvar! SwitchToDefensiveStance 0926 @setvar! SwitchToCleaveStance 1927 @setvar! SwitchToWildSwingStance 0928 @setvar! SwitchToSunderStance 0929 elseif skill 'Fencing' >= 50930 @setvar! SwitchToAggressiveStance 0931 @setvar! SwitchToDefensiveStance 0932 @setvar! SwitchToCleaveStance 1933 @setvar! SwitchToBlackguardStance 0934 @setvar! SwitchToFangStance 0935 elseif skill 'Archery' >= 50936 @setvar! SwitchToArcaneStance 0937 @setvar! SwitchToFowlingStance 0938 @setvar! SwitchToIncendiaryStance 1939 @setvar! SwitchToLongshotStance 0940 @setvar! SwitchToMaimingStance 0941 endif942 elseif SetWeaponStance = 4943 if skill 'Mace Fighting' >= 50944 @setvar! SwitchToAggressiveStance 0945 @setvar! SwitchToDefensiveStance 0946 @setvar! SwitchToCleaveStance 0947 @setvar! SwitchToWildSwingStance 1948 @setvar! SwitchToSunderStance 0949 elseif skill 'Fencing' >= 50950 @setvar! SwitchToAggressiveStance 0951 @setvar! SwitchToDefensiveStance 0952 @setvar! SwitchToCleaveStance 0953 @setvar! SwitchToBlackguardStance 1954 @setvar! SwitchToFangStance 0955 elseif skill 'Archery' >= 50956 @setvar! SwitchToArcaneStance 0957 @setvar! SwitchToFowlingStance 0958 @setvar! SwitchToIncendiaryStance 0959 @setvar! SwitchToLongshotStance 1960 @setvar! SwitchToMaimingStance 0961 endif962 elseif SetWeaponStance = 5963 if skill 'Mace Fighting' >= 50964 @setvar! SwitchToAggressiveStance 0965 @setvar! SwitchToDefensiveStance 0966 @setvar! SwitchToCleaveStance 0967 @setvar! SwitchToWildSwingStance 0968 @setvar! SwitchToSunderStance 1969 elseif skill 'Fencing' >= 50970 @setvar! SwitchToAggressiveStance 0971 @setvar! SwitchToDefensiveStance 0972 @setvar! SwitchToCleaveStance 0973 @setvar! SwitchToBlackguardStance 0974 @setvar! SwitchToFangStance 1975 elseif skill 'Archery' >= 50976 @setvar! SwitchToArcaneStance 0977 @setvar! SwitchToFowlingStance 0978 @setvar! SwitchToIncendiaryStance 0979 @setvar! SwitchToLongshotStance 0980 @setvar! SwitchToMaimingStance 1981 endif982 else983 if skill 'Mace Fighting' >= 50984 @setvar! SwitchToAggressiveStance 0985 @setvar! SwitchToDefensiveStance 0986 @setvar! SwitchToCleaveStance 0987 @setvar! SwitchToWildSwingStance 0988 @setvar! SwitchToSunderStance 0989 elseif skill 'Fencing' >= 50990 @setvar! SwitchToAggressiveStance 0991 @setvar! SwitchToDefensiveStance 0992 @setvar! SwitchToCleaveStance 0993 @setvar! SwitchToBlackguardStance 0994 @setvar! SwitchToFangStance 0995 elseif skill 'Archery' >= 50996 @setvar! SwitchToArcaneStance 0997 @setvar! SwitchToFowlingStance 0998 @setvar! SwitchToIncendiaryStance 0999 @setvar! SwitchToLongshotStance 01000 @setvar! SwitchToMaimingStance 01001 endif1002 endif1003 endif1004 1005 if diffweight >= RedWeightLimitDiffWeight1006 @setvar! DisableVacuums 01007 endif1008 1009 if skill 'Archery' >= 501010 if not find MyFastWeapon self and EnableFastSecondHit = 11011 clearignore 1012 while findtype "bow|composite bow|recurve bow|crossbow|balestra|stubnose crossbow" self as FastWeapon1013 getlabel FastWeapon FastWeaponlabel1014 wait 2501015 if 'aspect' in FastWeaponlabel1016 @setvar! MyFastWeapon FastWeapon1017 if EnableOverheadMessages = 11018 overhead '[ FAST WEAPON SET! ]' 17901019 endif1020 break1021 elseif 'unidentified' in FastWeaponLabel1022 @ignore FastWeapon1023 else 1024 overhead '[ SELECT YOUR FAST WEAPON... ]' 1531025 getlabel backpack backpacklabel1026 @setvar! FastWeapon1027 while targetexists 1028 wait 1001029 endwhile1030 if EnableOverheadMessages = 11031 overhead '[ FAST WEAPON SET! ]' 771032 endif1033 @setvar! MyFastWeapon FastWeapon1034 break1035 endif1036 endwhile1037 clearignore 1038 endif 1039 if not find MySlowWeapon self 1040 clearignore 1041 while findtype "heavy crossbow|long bow|tower guard crossbow" self as SlowWeapon1042 getlabel SlowWeapon SlowWeaponlabel1043 wait 2501044 if 'aspect' in SlowWeaponlabel1045 @setvar! MySlowWeapon SlowWeapon1046 if EnableOverheadMessages = 11047 overhead '[ MAIN WEAPON SET! ]' 17901048 endif1049 break1050 elseif 'unidentified' in SlowWeaponlabel1051 @ignore SlowWeapon1052 else 1053 overhead '[ SELECT YOUR MAIN WEAPON... ]' 1531054 getlabel backpack backpacklabel1055 @setvar! SlowWeapon1056 while targetexists 1057 wait 1001058 endwhile1059 if EnableOverheadMessages = 11060 overhead '[ MAIN WEAPON SET! ]' 771061 endif1062 @setvar! MySlowWeapon SlowWeapon1063 break 1064 endif1065 endwhile1066 clearignore1067 endif1068 elseif skill 'Mace Fighting' >= 501069 if not find MyFastWeapon self and EnableFastSecondHit = 11070 clearignore1071 while findtype "flail|war axe|war mace|flanged mace|mace|maul|cudgel|hammer pick|club|skull club" self as FastWeapon1072 getlabel FastWeapon FastWeaponlabel1073 wait 2501074 if 'aspect' in FastWeaponlabel1075 @setvar! MyFastWeapon FastWeapon1076 if EnableOverheadMessages = 11077 overhead '[ FAST WEAPON SET! ]' 17901078 endif1079 break1080 elseif 'unidentified' in FastWeaponLabel1081 @ignore FastWeapon1082 else 1083 overhead '[ SELECT YOUR FAST WEAPON... ]' 1531084 getlabel backpack backpacklabel1085 @setvar! FastWeapon1086 while targetexists 1087 wait 1001088 endwhile1089 if EnableOverheadMessages = 11090 overhead '[ FAST WEAPON SET! ]' 771091 endif1092 @setvar! MyFastWeapon FastWeapon1093 break1094 endif1095 endwhile1096 clearignore1097 endif1098 if not find MySlowWeapon self or not varexist MySlowWeapon1099 clearignore1100 while findtype "war hammer|great mace|giant club|giant spiked club|sledgehammer" self as SlowWeapon1101 getlabel SlowWeapon SlowWeaponlabel1102 wait 2501103 if 'aspect' in SlowWeaponlabel1104 @setvar! MySlowWeapon SlowWeapon1105 if EnableOverheadMessages = 11106 overhead '[ MAIN WEAPON SET! ]' 17901107 endif1108 break1109 elseif 'unidentified' in SlowWeaponlabel1110 @ignore SlowWeapon1111 else 1112 overhead '[ SELECT YOUR MAIN WEAPON... ]' 1531113 @setvar! SlowWeapon1114 getlabel backpack backpacklabel1115 while targetexists 1116 wait 1001117 endwhile1118 if EnableOverheadMessages = 11119 overhead '[ MAIN WEAPON SET! ]' 771120 endif1121 @setvar! MySlowWeapon SlowWeapon1122 break 1123 endif1124 endwhile1125 clearignore1126 endif1127 elseif skill 'Fencing' >= 50 1128 if not find MyFastWeapon self and EnableFastSecondHit = 11129 clearignore1130 while findtype "kryss|war fork|epee|rapier|sabre|assassins dagger|tracker knife|kukri" self as FastWeapon1131 getlabel FastWeapon FastWeaponlabel1132 wait 2501133 if 'aspect' in FastWeaponlabel1134 @setvar! MyFastWeapon FastWeapon1135 if EnableOverheadMessages = 11136 overhead '[ FAST WEAPON SET! ]' 17901137 endif1138 break1139 elseif 'unidentified' in FastWeaponLabel1140 @ignore FastWeapon1141 else 1142 overhead '[ SELECT YOUR FAST WEAPON... ]' 1531143 getlabel backpack backpacklabel1144 @setvar! FastWeapon1145 while targetexists 1146 wait 1001147 endwhile1148 if EnableOverheadMessages = 11149 overhead '[ FAST WEAPON SET! ]' 771150 endif1151 @setvar! MyFastWeapon FastWeapon1152 break1153 endif1154 endwhile1155 clearignore1156 endif1157 if not find MySlowWeapon self or not varexist MySlowWeapon1158 clearignore1159 while findtype "sarissa|Long Spear|short spear|pitchfork" self as SlowWeapon1160 getlabel SlowWeapon SlowWeaponlabel1161 wait 2501162 if 'aspect' in SlowWeaponlabel1163 @setvar! MySlowWeapon SlowWeapon1164 if EnableOverheadMessages = 11165 overhead '[ MAIN WEAPON SET! ]' 17901166 endif1167 break1168 elseif 'unidentified' in SlowWeaponlabel1169 @ignore SlowWeapon1170 else 1171 overhead '[ SELECT YOUR MAIN WEAPON... ]' 1531172 @setvar! SlowWeapon1173 getlabel backpack backpacklabel1174 while targetexists 1175 wait 1001176 endwhile1177 if EnableOverheadMessages = 11178 overhead '[ MAIN WEAPON SET! ]' 771179 endif1180 @setvar! MySlowWeapon SlowWeapon1181 break 1182 endif1183 endwhile1184 clearignore1185 endif1186 endif1187 1188 if EnableWizardHatStealthTrick = 11189 if not varexist MagicWizardHat or not find MagicWizardHat self1190 clearignore1191 while findtype 5912 backpack as PotentialWizardHat1192 getlabel PotentialWizardHat MyHatdesc1193 wait 2501194 if 'restyled' in MyHatdesc or 'unidentified' in MyHatdesc1195 @ignore PotentialWizardHat1196 elseif 'armored' in MyHatdesc or 'magical' in MyHatdesc1197 @setvar! MagicWizardHat PotentialWizardHat1198 wait 5001199 break1200 endif1201 endwhile1202 clearignore1203 endif1204 if find MagicWizardHat backpack1205 if not varexist MyHelmet or not find MyHelmet self1206 if findlayer self head as helm1207 @setvar! MyHelmet helm1208 endif1209 endif1210 endif1211 endif1212 1213 @setvar! EnableUseEmotes 11214 @setvar! SetEmoteCooldown 300001215 # Requires the following emotes to be unlocked: [Awoo, [HighFive, [Yes and [Whistle 1216 # Requires 'EnableOverheadMessages' set to '1'1217 # Will use Emotes when Aspect, Codex or Chain Links are leveled up and when entering the Auto Heal loop1218 # Also uses Emotes when certain finishers are performed (W.I.P.) and when target is eliminated1219 # Cooldown defaults to 2 minutes but can be reduced via customizations in-game (375k gold reduces it to 30 seconds)1220 # Add optional cooldown in UO client: 'Emote Cooldown' (case sensitive) 1221 1222 if not timerexists "EmoteCooldownTimer"1223 createtimer "EmoteCooldownTimer"1224 settimer "EmoteCooldownTimer" SetEmoteCooldown1225 endif1226 1227 if hidden1228 if cooldown 'Stealth'1229 @setvar! Stealthing 11230 @setvar! StealthingReady 11231 else 1232 @setvar! Stealthing 01233 @setvar! StealthingReady 01234 endif1235 else 1236 @setvar! Stealthing 0 1237 @setvar! StealthingReady 0 1238 endif 1239 1240 @setvar! KeepOnTrucking 01241 1242 if EnablePKRadar = 11243 if skill 'Tracking' > 501244 if not findbuff 'tracking'1245 while not gumpexists 42674676591246 useskill 'tracking'1247 wait 2501248 endwhile1249 if gumpexists 42674676591250 while not insysmsg "You will now hunt all hostile players."1251 gumpresponse 8 42674676591252 waitforgump 4267467659 50001253 endwhile1254 gumpresponse 6 42674676591255 wait 5001256 clearsysmsg1257 endif1258 gumpclose 42674676591259 if EnableOverheadMessages = 11260 overhead "[ TRACKING ACTIVATED! ]" 3341261 endif1262 endif1263 endif1264 endif1265 1266 if EnableEatingFood = 11267 if not findbuff 'food satisfaction' and findtype "tray" self1268 if findtype "tray" self as Food1269 if EnableOverheadMessages = 11270 overhead "[ EATING FOOD... ]" 881271 endif1272 dclick Food1273 wait 5001274 endif1275 endif1276 endif1277 1278 1279///////////////////1280// ALIVE LOOP: //1281///////////////////1282 1283while not dead1284 if insysmsg 'You have been revealed'1285 if EnableOverheadMessages = 11286 overhead '[ !! REVEALED !! ]' 1531287 else 1288 overhead ' !! � !! ' 1531289 endif1290 clearsysmsg 1291 hotkey 'Toggle War Only' 1292 @setvar! Stealthing 01293 @setvar! StealthingReady 01294 @setvar! KeepOnTrucking 01295 cooldown 'Hiding' 50001296 endif1297 1298 if EnableDropGoldWhenOverweight = 11299 if weight > maxweight1300 if timer OverweightMessageTimer > 45001301 overhead "[ OVERWEIGHT! ]" 341302 settimer OverweightMessageTimer 01303 endif1304 if DropGoldAmount != 01305 clearignore1306 @setvar! DisableVacuums 11307 wait 2501308 if EnablePutLootinLockBox = 11309 if findtype "wooden box" self as lockbox1310 if findtype "copper key" self as key1311 getlabel lockbox lockboxlabel1312 wait 1001313 if "items" in lockboxlabel1314 // Do nothing1315 else1316 dclick key1317 wft 15001318 target lockbox1319 if EnableOverheadMessages = 11320 overhead "[loot box unlocked]" 21141321 endif1322 wait 5001323 if insysmsg "It appears to be locked."1324 dclick key1325 wft 15001326 target lockbox1327 wait 2501328 endif1329 endif1330 elseif EnableOverheadMessages = 11331 overhead "[ NO LOCKBOX KEY! ]" 3371332 endif1333 endif1334 endif1335 while weight > maxweight1336 if findtype "gold coin" self as easycomeeasygo1337 lift easycomeeasygo DropGoldAmount1338 droprelloc 0 01339 getlabel backpack packdesc1340 if EnableOverheadMessages = 11341 overhead "[ DROPPING GOLD... ]" 1491342 endif1343 wait 2501344 if insysmsg "cannot drop anything"1345 drop backpack -1 -1 -11346 break1347 endif1348 wait 2501349 else1350 break1351 endif1352 if diffhits > 301353 break1354 endif1355 endwhile1356 endif1357 endif1358 endif1359 1360 if EnableAutoParalyzePouch = 11361 if paralyzed 1362 if findtype "pouch" self1363 yell "[pouch"1364 wait 2501365 else1366 if timer PopPouchMessageTimer > 5000 and EnableOverheadMessages = 11367 overhead "[ NO POUCHES! ]" 3371368 settimer PopPouchMessageTimer 01369 endif1370 endif1371 endif1372 endif1373 1374 if EnableArcheryWarningMessage = 1 and skill 'Archery' >= 501375 if findtype 'stubnose crossbow|tower guard crossbow|balestra|heavy crossbow|crossbow' hand1376 @setvar! AMMO 11377 elseif findtype 'long bow|bow|recurve bow|composite bow' hand1378 @setvar! AMMO 21379 endif1380 1381 if counttype "crossbow bolt" self < ArcheryLowAmmoWarningAmount and timer "AmmunitionTimer" > 6000 and AMMO = 11382 overhead "[ AMMO LOW! ]" 371383 settimer 'AmmunitionTimer' 01384 endif1385 1386 if counttype "arrow" self < ArcheryLowAmmoWarningAmount and timer 'AmmunitionTimer' > 6000 and AMMO = 21387 overhead "[ AMMO LOW! ]" 371388 settimer 'AmmunitionTimer' 01389 endif1390 endif1391 1392 if EnableWeightWarningMessage = 11393 if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer WeightTimer > 60001394 if EnableOverheadMessages = 11395 overhead "[ WEIGHT WARNING... ]" 771396 settimer "WeightTimer" 01397 else1398 overhead " � " 771399 settimer "WeightTimer" 01400 endif1401 elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer WeightTimer > 60001402 if EnableOverheadMessages = 11403 overhead "[ WEIGHT WARNING! ]" 1531404 settimer "WeightTimer" 01405 else1406 overhead " � " 1531407 settimer "WeightTimer" 01408 endif1409 elseif diffweight <= RedWeightLimitDiffWeight and timer WeightTimer > 60001410 if EnableOverheadMessages = 11411 overhead "[ WEIGHT LIMIT REACHED! ]" 371412 settimer "WeightTimer" 01413 wait 5001414 else1415 overhead " � " 371416 settimer "WeightTimer" 01417 endif1418 wait 5001419 if weight > maxweight1420 if EnableDropGoldWhenOverweight = 11421 if EnableOverheadMessages = 11422 wait 10001423 overhead "[ OVERWEIGHT! ]" 3371424 endif1425 replay1426 else1427 if EnableOverheadMessages = 11428 overhead "[ OVERWEIGHT! ]" 3371429 wait 20001430 endif1431 overhead "[ STOPPING SCRIPT! ]" 881432 stop1433 endif1434 endif1435 if EnableTriggerDungeonEscapeScript = 11436 foreach EscapeScript in DungeonEscapeScriptList1437 script EscapeScript1438 endfor1439 endif1440 endif1441 endif1442 1443 if EnableWeaponCheck = 11444 if not find MySlowWeapon hand or not varexist MySlowWeapon1445 clearignore1446 if skill 'Mace Fighting' >= 501447 if not findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' self1448 if timer NoWeaponOverheadTimer > 50001449 overhead "[ NO WEAPON! ]" 3371450 settimer NoWeaponOverheadTimer 01451 endif1452 clearignore 1453 else1454 if not findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' hand1455 if findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' backpack as MySlowWeapon1456 for 101457 getlabel MySlowWeapon WeaponLabel1458 wait 2501459 if "aspect" in WeaponLabel1460 break1461 elseif "unidentified" in WeaponLabel1462 @ignore MySlowWeapon1463 wait 2501464 else1465 @ignore MySlowWeapon1466 wait 2501467 endif1468 if findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' backpack as MySlowWeapon1469 getlabel MySlowWeapon WeaponLabel1470 wait 2501471 endif1472 endfor1473 wait 2501474 dclick MySlowWeapon1475 wait 5001476 clearignore 1477 endif1478 endif1479 endif1480 elseif skill 'Fencing' >= 50 1481 if not findtype '30992|3938|3719|5123' self1482 if timer NoWeaponOverheadTimer > 50001483 overhead "[ NO WEAPON! ]" 3371484 settimer NoWeaponOverheadTimer 01485 endif1486 clearignore 1487 else1488 if not findtype '30992|3938|3719|5123' hand1489 if findtype '30992|3938|3719|5123' backpack as MySlowWeapon1490 for 101491 getlabel MySlowWeapon WeaponLabel1492 wait 2501493 if "aspect" in WeaponLabel1494 break1495 elseif "unidentified" in WeaponLabel1496 @ignore MySlowWeapon1497 wait 2501498 else1499 @ignore MySlowWeapon1500 wait 2501501 endif1502 if findtype '30992|3938|3719|5123' backpack as MySlowWeapon1503 getlabel MySlowWeapon WeaponLabel1504 wait 2501505 endif1506 endfor1507 wait 2501508 dclick MySlowWeapon1509 wait 5001510 clearignore 1511 endif1512 endif1513 endif1514 elseif skill 'Archery' >= 501515 if not findtype 'heavy crossbow|long bow|tower guard crossbow' self1516 if timer NoWeaponOverheadTimer > 50001517 overhead "[ NO WEAPON! ]" 3371518 settimer NoWeaponOverheadTimer 01519 endif1520 clearignore 1521 else1522 if not findtype 'heavy crossbow|long bow|tower guard crossbow' hand1523 if findtype 'heavy crossbow|long bow|tower guard crossbow' backpack as MySlowWeapon1524 for 101525 getlabel MySlowWeapon WeaponLabel1526 wait 2501527 if "aspect" in WeaponLabel1528 break1529 elseif "unidentified" in WeaponLabel1530 @ignore MySlowWeapon1531 wait 2501532 else1533 @ignore MySlowWeapon1534 wait 2501535 endif1536 if findtype 'heavy crossbow|long bow|tower guard crossbow' backpack as MySlowWeapon1537 getlabel MySlowWeapon WeaponLabel1538 wait 2501539 endif1540 endfor1541 wait 2501542 dclick MySlowWeapon1543 wait 5001544 clearignore 1545 endif1546 endif1547 endif1548 endif1549 endif1550 endif1551 1552 1553 /////////////////////1554 // VISIBLE LOOP: //1555 /////////////////////1556 1557 while not hidden 1558 @setvar! KeepOnTrucking 01559 @setvar! Stealthing 01560 @setvar! StealthingReady 01561 1562 1563 /////////////////////////////1564 // VISIBLE WARMODE LOOP: //1565 /////////////////////////////1566 1567 if warmode1568 while warmode1569 if timer WarModeOverheadTimer > 30001570 if cooldown 'Hiding'1571 if EnableOverheadMessages = 11572 overhead "[ VISIBLE MODE! ]" 19091573 else1574 overhead " � " 19091575 endif1576 else 1577 if EnableOverheadMessages = 11578 overhead "[ VISIBLE MODE! ]" 691579 else1580 overhead " � " 19091581 endif 1582 endif1583 settimer WarModeOverheadTimer 01584 endif1585 1586 if EnablePKRadar = 11587 if insysmsg "Now tracking"1588 clearsysmsg1589 if EnableRedAlertOverhead = 11590 overhead "[ !! RED ALERT !! ]" 3371591 wait 5001592 endif1593 if not hidden1594 if not cooldown 'Hiding'1595 if targetexists1596 hotkey 'Cancel Current Target'1597 endif1598 useskill "Hiding"1599 wait 5001600 while insysmsg 'You must wait'1601 clearsysmsg1602 useskill 'Hiding'1603 wait 5001604 endwhile1605 if not hidden1606 if counttype 52149 self > 01607 if not cooldown 'Smoke Bomb'1608 clearsysmsg1609 hotkey 'Smoke Bomb'1610 wait 5001611 if insysmsg 'You must wait another'1612 if EnableOverheadMessages = 11613 overhead '[ SMOKE BOMB UNAVAILABLE ]' 3331614 endif1615 hotkey 'Toggle War Only'1616 break1617 else1618 if EnableOverheadMessages = 11619 overhead '[ SMOKE BOMB! ]' 17901620 endif1621 @setvar! Stealthing 11622 @setvar! StealthingReady 11623 cooldown 'Hiding' 01624 cooldown 'Stealth' 100001625 cooldown 'Smoke Bomb' SmokeBombCooldown1626 break1627 endif1628 else1629 if EnableOverheadMessages = 11630 overhead '[ SMOKE ON COOLDOWN! ]' 331631 endif1632 hotkey 'Toggle War Only'1633 break1634 endif1635 else1636 if EnableOverheadMessages = 11637 overhead '[ NO SMOKE BOMBS ]' 3371638 endif1639 break1640 endif1641 endif1642 endif1643 else1644 if EnableOverheadMessages = 11645 wait 5001646 overhead "[ ALREADY HIDDEN! ]" 111647 endif1648 endif1649 endif1650 endif1651 1652 if EnableWeaponCheck = 11653 if skill 'Mace Fighting' >= 501654 if not findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' self1655 if timer NoWeaponOverheadTimer > 50001656 overhead "[ NO WEAPON! ]" 3371657 settimer NoWeaponOverheadTimer 01658 endif1659 clearignore 1660 else1661 if not findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' hand1662 clearignore1663 if findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' backpack as MySlowWeapon1664 for 101665 getlabel MySlowWeapon WeaponLabel1666 wait 2501667 if "aspect" in WeaponLabel1668 break1669 elseif "unidentified" in WeaponLabel1670 @ignore MySlowWeapon1671 wait 2501672 else1673 @ignore MySlowWeapon1674 wait 2501675 endif1676 if findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' backpack as MySlowWeapon1677 getlabel MySlowWeapon WeaponLabel1678 wait 2501679 endif1680 endfor1681 wait 2501682 dclick MySlowWeapon1683 wait 5001684 clearignore1685 endif1686 endif1687 endif1688 elseif skill 'Fencing' >= 50 1689 if not findtype '30992|3938|3719|5123' self1690 if timer NoWeaponOverheadTimer > 50001691 overhead "[ NO WEAPON! ]" 3371692 settimer NoWeaponOverheadTimer 01693 endif1694 clearignore 1695 else1696 if not findtype '30992|3938|3719|5123' hand1697 if findtype '30992|3938|3719|5123' backpack as MySlowWeapon1698 for 101699 getlabel MySlowWeapon WeaponLabel1700 wait 2501701 if "aspect" in WeaponLabel1702 break1703 elseif "unidentified" in WeaponLabel1704 @ignore MySlowWeapon1705 wait 2501706 else1707 @ignore MySlowWeapon1708 wait 2501709 endif1710 if findtype '30992|3938|3719|5123' backpack as MySlowWeapon1711 getlabel MySlowWeapon WeaponLabel1712 wait 2501713 endif1714 endfor1715 wait 2501716 dclick MySlowWeapon1717 wait 5001718 clearignore 1719 endif1720 endif1721 endif1722 elseif skill 'Archery' >= 501723 if not findtype 'heavy crossbow|long bow|tower guard crossbow' self1724 if timer NoWeaponOverheadTimer > 50001725 overhead "[ NO WEAPON! ]" 3371726 settimer NoWeaponOverheadTimer 01727 endif1728 clearignore 1729 else1730 if not findtype 'heavy crossbow|long bow|tower guard crossbow' hand1731 clearignore1732 if findtype 'heavy crossbow|long bow|tower guard crossbow' backpack as MySlowWeapon1733 for 101734 getlabel MySlowWeapon WeaponLabel1735 wait 2501736 if "aspect" in WeaponLabel1737 break1738 elseif "unidentified" in WeaponLabel1739 @ignore MySlowWeapon1740 wait 2501741 else1742 @ignore MySlowWeapon1743 wait 2501744 endif1745 if findtype 'heavy crossbow|long bow|tower guard crossbow' backpack as MySlowWeapon1746 getlabel MySlowWeapon WeaponLabel1747 wait 2501748 endif1749 endfor1750 wait 2501751 dclick MySlowWeapon1752 wait 5001753 clearignore1754 endif1755 endif1756 endif1757 endif1758 endif1759 1760 if diffweight >= RedWeightLimitDiffWeight1761 @setvar! DisableVacuums 01762 endif1763 1764 if EnableAutoParalyzePouch = 11765 if paralyzed 1766 if findtype "pouch" self1767 yell "[pouch"1768 wait 2501769 else1770 if timer PopPouchMessageTimer > 5000 and EnableOverheadMessages = 11771 overhead "[ NO POUCHES! ]" 3371772 settimer PopPouchMessageTimer 01773 endif1774 endif1775 endif1776 endif1777 1778 if skill 'Healing' > 01779 if diffhits > 0 and not bandaging and not hidden1780 if findtype 'clean bandage%s%' self1781 if targetexists1782 hotkey 'cancel current target'1783 endif1784 hotkey 'Bandage Self'1785 if EnableOverheadMessages = 11786 if timer BandageMessageTimer > 50001787 overhead "[ BANDAGING... ]" 881788 settimer BandageMessageTimer 01789 endif1790 endif1791 wait 2501792 else1793 if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 11794 overhead "[ OUT OF BANDAGES! ]" 3371795 settimer BandageMessageTimer 01796 endif1797 endif1798 endif1799 endif1800 1801 if not warmode 1802 break1803 endif1804 1805 if EnableUsePotionKegs = 1 and findtype 'empty bottle%s%' self and findtype 'keg' self and timer 'PotionKegPVPCooldown' > 300001806 if not timerexists PotionKegTimer1807 createtimer PotionKegTimer1808 settimer PotionKegTimer 50001809 endif1810 1811 @setvar! PotionStockCheck 01812 1813 while PotionStockCheck < 8 and findtype 'empty bottle%s%' self1814 @setvar! PotionAmounttoFill 01815 if PotionStockCheck = 01816 if ExplosionPotionAmount != 01817 @setvar! PotionType 38531818 @setvar! KegColour 4191819 @setvar! PotionAmounttoFill ExplosionPotionAmount1820 endif1821 @setvar! PotionStockCheck 11822 elseif PotionStockCheck = 11823 if HealingPotionAmount != 01824 @setvar! PotionType 38521825 @setvar! KegColour 2531826 @setvar! PotionAmounttoFill HealingPotionAmount1827 endif1828 @setvar! PotionStockCheck 21829 elseif PotionStockCheck = 21830 if CurePotionAmount != 01831 @setvar! PotionType 38471832 @setvar! KegColour 441833 @setvar! PotionAmounttoFill CurePotionAmount1834 endif1835 @setvar! PotionStockCheck 31836 elseif PotionStockCheck = 31837 if RefreshPotionAmount != 01838 @setvar! PotionType 38511839 @setvar! KegColour 371840 @setvar! PotionAmounttoFill RefreshPotionAmount1841 endif1842 @setvar! PotionStockCheck 41843 elseif PotionStockCheck = 41844 if StrengthPotionAmount != 01845 @setvar! PotionType 38491846 @setvar! KegColour 9561847 @setvar! PotionAmounttoFill StrengthPotionAmount1848 endif1849 @setvar! PotionStockCheck 51850 elseif PotionStockCheck = 51851 if AgilityPotionAmount != 01852 @setvar! PotionType 38481853 @setvar! KegColour 931854 @setvar! PotionAmounttoFill AgilityPotionAmount1855 endif1856 @setvar! PotionStockCheck 61857 elseif PotionStockCheck = 61858 if ResistPotionAmount != 01859 @setvar! PotionType 38461860 @setvar! KegColour 11091861 @setvar! PotionAmounttoFill ResistPotionAmount1862 endif1863 @setvar! PotionStockCheck 71864 elseif PotionStockCheck = 71865 if PoisonPotionAmount != 01866 @setvar! PotionType 38501867 @setvar! KegColour 3631868 @setvar! PotionAmounttoFill PoisonPotionAmount1869 endif1870 @setvar! PotionStockCheck 81871 endif1872 1873 if PotionAmounttoFill != 01874 while counttype PotionType self < PotionAmounttoFill and warmode1875 if not findtype 'empty bottle%s%' self1876 if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50001877 overhead "[ NO EMPTY BOTTLES... ]" 3371878 settimer 'PotionKegTimer' 01879 endif1880 break1881 endif1882 if diffhits > 10 or not warmode1883 break1884 endif1885 if findtype 'keg' self KegColour as myKeg1886 dclick myKeg1887 wait 2501888 if EnableOverheadMessages = 11889 if timer 'PotionKegTimer' > 20001890 overhead '[ FILLING POTS... ]' KegColour1891 settimer 'PotionKegTimer' 01892 endif1893 endif1894 else1895 if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50001896 overhead "[ NO KEG TO USE... ]" KegColour1897 settimer 'PotionKegTimer' 01898 endif1899 break1900 endif1901 if insysmsg "You have been in combat with another player"1902 settimer "PotionKegPVPCooldown" 01903 break1904 endif1905 endwhile1906 if not warmode 1907 break1908 endif1909 if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self1910 if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50001911 overhead "[ NO EMPTY BOTTLES... ]" 3371912 settimer 'PotionKegTimer' 01913 endif1914 break1915 endif1916 endif1917 endwhile1918 endif1919 1920 if EnableHealPotion = 1 1921 if diffhits >= HealPotionHPdiff and not hidden1922 if findtype "Yellow Potion" self as HealPot1923 getlabel HealPot HealPotlabel1924 if "next" in HealPotlabel1925 // Do nothing1926 else1927 @setvar! HealPotionCheck 01928 1929 if counttype 3852 self as HealPotCount1930 @setvar! HealPotionCheck HealPotCount1931 endif1932 1933 clearsysmsg1934 dclicktype 38521935 getlabel backpack backpackdesc1936 wait 2501937 1938 if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"1939 settimer 'HealPotionTimer' 01940 cooldown "Healing Potion" HealPotionCooldown1941 if EnableOverheadMessages = 11942 if insysmsg "potion satchel used"1943 overhead '[ FREE HEAL POTION ]' 2531944 else1945 overhead "[ HEAL POTION ]" 2531946 endif1947 endif1948 clearsysmsg1949 endif1950 endif1951 else1952 if timer 'HealingPotionMessageTimer' > 45001953 overhead "[ NO HEAL POTS! ]" 3371954 settimer 'HealingPotionMessageTimer' 01955 endif1956 endif1957 endif1958 endif1959 1960 if EnablePanaceaPotion = 1 1961 if findbuff "bleed" or findbuff "diseased" and skill 'Alchemy' >= 801962 if not findbuff "panacea potion cooldown"1963 if findtype "Orange Potion" self1964 dclicktype "Orange Potion"1965 wait 5001966 if findbuff "panacea potion cooldown" and EnableOverheadMessages = 11967 overhead "[ PANACEA POTION ]" 21171968 endif1969 cooldown 'Panacea Potion' 300001970 else 1971 if timer 'CurePotionMessageTimer' > 150001972 overhead "[ NO CURE POTS! ]" 3371973 settimer 'CurePotionMessageTimer' 01974 endif1975 endif1976 else 1977 if EnableOverheadMessages = 1 and timer PanaceaOverheadTimer > 150001978 overhead '[ PANACEA ON COOLDOWN! ]' 371979 settimer PanaceaOverheadTimer 01980 endif1981 endif1982 endif1983 endif1984 1985 if EnableCleansingBrews = 11986 if findbuff "Disease" or findbuff "Bleed"1987 if timer CleansingBrewTimer > 1200001988 if findtype 50675 self 2935 as CleansingBrew1989 dclick CleansingBrew1990 if EnableOverheadMessages = 11991 overhead '[ CLEANSING BREW ]' 21171992 endif1993 cooldown 'Cleansing Brew' 1200001994 settimer CleansingBrewTimer 01995 wait 2501996 else1997 if timer CleansingBrewOverhead > 150001998 overhead "[ NO CLEANSING BREWS! ]" 3371999 settimer CleansingBrewOverhead 02000 settimer CleansingBrewTimer 02001 endif2002 endif2003 else 2004 if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 150002005 overhead '[ BREW ON COOLDOWN! ]' 372006 settimer CleansingBrewOverhead 02007 endif2008 endif2009 endif2010 endif2011 2012 if EnableCurePotion = 12013 while poisoned2014 if findtype "Orange Potion" self2015 dclicktype "Orange Potion"2016 if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 35002017 overhead "[ CURE POTION ]" 442018 settimer 'CurePotionMessageTimer' 02019 endif2020 wait 5002021 else2022 if timer 'CurePotionMessageTimer' > 50002023 overhead "[ NO CURE POTS! ]" 3372024 settimer 'CurePotionMessageTimer' 02025 endif2026 break 2027 endif2028 if diffhits > 502029 break2030 endif2031 endwhile2032 endif2033 2034 if not warmode 2035 break2036 endif2037 2038 if EnableRefreshPotion = 1 2039 if diffstam >= RefreshPotionSPdiff and not hidden2040 if findtype "Red Potion" self2041 dclicktype "Red Potion"2042 if EnableOverheadMessages = 12043 overhead "[ REFRESH POTION ]" 372044 endif2045 wait 5002046 else2047 if timer RefreshPotionMessageTimer > 45002048 overhead "[ NO REFRESH POTS! ]" 3372049 settimer RefreshPotionMessageTimer 02050 endif2051 endif2052 wait 5002053 endif2054 endif2055 2056 if EnableStrengthPotion = 12057 if skill 'Alchemy' > 0 and skill 'Alchemy' < 22058 if insysmsg "You may now use a strength" or not findbuff "Strength"2059 if findtype "White Potion" self2060 dclicktype "White Potion"2061 if EnableOverheadMessages = 12062 overhead "[ STRENGTH POTION ]" 9562063 endif2064 wait 5002065 else2066 if timer StrengthPotionMessageTimer > 45002067 overhead "[ NO STRENGTH POTS! ]" 3372068 settimer StrengthPotionMessageTimer 02069 endif2070 endif2071 clearsysmsg2072 endif2073 else2074 if not findbuff "Strength"2075 if findtype "White Potion" self2076 dclicktype "White Potion"2077 if EnableOverheadMessages = 12078 overhead "[ STRENGTH POTION ]" 9562079 endif2080 wait 5002081 else2082 if timer StrengthPotionMessageTimer > 45002083 overhead "[ NO STRENGTH POTS! ]" 3372084 settimer StrengthPotionMessageTimer 02085 endif2086 endif2087 endif2088 endif2089 endif2090 2091 if EnableAgilityPotion = 1 2092 if not findbuff "Agility"2093 if findtype "Blue Potion" self2094 dclicktype "Blue Potion"2095 if EnableOverheadMessages = 12096 overhead "[ AGILITY POTION ]" 932097 endif2098 wait 5002099 else2100 if timer AgilityPotionMessageTimer > 45002101 overhead "[ NO AGILITY POTS! ]" 3372102 settimer AgilityPotionMessageTimer 02103 endif2104 endif2105 endif2106 endif2107 2108 if EnableMagicResistPotion = 1 2109 if not findbuff "Magic Resist"2110 if findtype "Black Potion" self2111 dclicktype "Black Potion"2112 if EnableOverheadMessages = 12113 overhead "[ RESIST POTION ]" 11092114 endif2115 wait 5002116 else2117 if timer ResistPotionMessageTimer > 45002118 overhead "[ NO RESIST POTS! ]" 3372119 settimer ResistPotionMessageTimer 02120 endif2121 endif2122 endif2123 endif2124 2125 if EnableDropGoldWhenOverweight = 12126 if weight > maxweight2127 if timer OverweightMessageTimer > 45002128 overhead "[ OVERWEIGHT! ]" 342129 settimer OverweightMessageTimer 02130 endif2131 if DropGoldAmount != 02132 clearignore2133 @setvar! DisableVacuums 12134 wait 2502135 if EnablePutLootinLockBox = 12136 if findtype "wooden box" self as lockbox2137 if findtype "copper key" self as key2138 getlabel lockbox lockboxlabel2139 wait 1002140 if "items" in lockboxlabel2141 // Do nothing2142 else2143 dclick key2144 wft 15002145 target lockbox2146 if EnableOverheadMessages = 12147 overhead "[loot box unlocked]" 21142148 endif2149 wait 5002150 if insysmsg "It appears to be locked."2151 dclick key2152 wft 15002153 target lockbox2154 wait 2502155 endif2156 endif2157 elseif EnableOverheadMessages = 12158 overhead "[ NO LOCKBOX KEY! ]" 3372159 endif2160 endif2161 endif2162 while weight > maxweight2163 if findtype "gold coin" self as easycomeeasygo2164 lift easycomeeasygo DropGoldAmount2165 droprelloc 0 02166 getlabel backpack packdesc2167 if EnableOverheadMessages = 12168 overhead "[ DROPPING GOLD... ]" 1492169 endif2170 wait 2502171 if insysmsg "cannot drop anything"2172 drop backpack -1 -1 -12173 break2174 endif2175 wait 2502176 else2177 break2178 endif2179 if diffhits > 302180 break2181 endif2182 endwhile2183 endif2184 endif2185 endif2186 2187 if timer OrganizerAgentTimer > 300002188 hotkey 'Organizer Agent-01'2189 getlabel backpack backpacklabel2190 wait 2502191 hotkey 'Organizer Agent-02'2192 settimer OrganizerAgentTimer 02193 wait 2502194 endif2195 2196 if insysmsg 'Vanish activated' and hidden2197 if EnableOverheadMessages = 12198 overhead '[ VANISHED!! ]' 21142199 endif2200 cooldown 'Vanish Buff' 300002201 wait 5002202 @setvar! Stealthing 12203 @setvar! StealthingReady 12204 if EnableSmokeBombDoubleTap = 1 and not dead CurrentTarget2205 hotkey 'Toggle War Only'2206 else 2207 hotkey 'Toggle Peace Only'2208 endif2209 clearsysmsg2210 cooldown 'Stealth' 02211 cooldown "Hiding" 02212 break2213 endif2214 2215 if EnableEatingFood = 12216 if not findbuff 'food satisfaction' and findtype "tray" self2217 if findtype "tray" self as Food2218 if EnableOverheadMessages = 12219 overhead "[ EATING FOOD... ]" 882220 endif2221 dclick Food2222 wait 5002223 endif2224 endif2225 endif 2226 2227 if EnableArcheryWarningMessage = 12228 if skill 'Archery' >= 502229 if findtype 'stubnose crossbow|tower guard crossbow|balestra|heavy crossbow|crossbow' hand2230 @setvar! AMMO 12231 elseif findtype 'long bow|bow|recurve bow|composite bow' hand2232 @setvar! AMMO 22233 endif2234 2235 if counttype "crossbow bolt" self < ArcheryLowAmmoWarningAmount and timer "AmmunitionTimer" > 6000 and AMMO = 12236 overhead "[ AMMO LOW! ]" 372237 settimer 'AmmunitionTimer' 02238 endif2239 2240 if counttype "arrow" self < ArcheryLowAmmoWarningAmount and timer 'AmmunitionTimer' > 6000 and AMMO = 22241 overhead "[ AMMO LOW! ]" 372242 settimer 'AmmunitionTimer' 02243 endif2244 endif2245 endif2246 2247 if EnableWeightWarningMessage = 12248 if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer WeightTimer > 60002249 if EnableOverheadMessages = 12250 overhead "[ WEIGHT WARNING... ]" 772251 settimer "WeightTimer" 02252 else2253 overhead " � " 772254 settimer "WeightTimer" 02255 endif2256 elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer WeightTimer > 60002257 if EnableOverheadMessages = 12258 overhead "[ WEIGHT WARNING! ]" 1532259 settimer "WeightTimer" 02260 else2261 overhead " � " 1532262 settimer "WeightTimer" 02263 endif2264 elseif diffweight <= RedWeightLimitDiffWeight and timer WeightTimer > 60002265 if EnableOverheadMessages = 12266 overhead "[ WEIGHT LIMIT REACHED! ]" 372267 settimer "WeightTimer" 02268 wait 5002269 else2270 overhead " � " 372271 settimer "WeightTimer" 02272 endif2273 wait 5002274 if weight > maxweight2275 if EnableDropGoldWhenOverweight = 12276 if EnableOverheadMessages = 12277 wait 10002278 overhead "[ OVERWEIGHT! ]" 3372279 endif2280 replay2281 else2282 if EnableOverheadMessages = 12283 overhead "[ OVERWEIGHT! ]" 3372284 wait 20002285 endif2286 overhead "[ STOPPING SCRIPT! ]" 882287 stop2288 endif2289 endif2290 if EnableTriggerDungeonEscapeScript = 12291 foreach EscapeScript in DungeonEscapeScriptList2292 script EscapeScript2293 endfor2294 endif2295 endif2296 endif2297 2298 if EnableAutoCarving = 12299 while findtype "corpse" ground -1 -1 2 as deadbody2300 if findtype 11552 self2301 if targetexists2302 hotkey 'cancel current target'2303 endif2304 while not targetexists2305 skill 'forensicevaluation'2306 endwhile2307 if targetexists and find deadbody ground -1 -1 22308 target 'self'2309 @ignore deadbody2310 wait 5002311 endif2312 if insysmsg "You dont see anything nearby"2313 clearsysmsg2314 break2315 else2316 if EnableOverheadMessages = 1 and timer SkinningTimer > 30002317 overhead "[ SKINNING... ]" 3332318 settimer SkinningTimer 02319 endif2320 endif2321 elseif skill 'forensicevaluation' > 02322 if EnableOverheadMessages = 1 and timer SkinningTimer > 150002323 overhead "[ NO SKINNING KNIFE ]" 3372324 settimer SkinningTimer 02325 break2326 endif2327 endif2328 endwhile2329 endif2330 2331 if diffweight >= RedWeightLimitDiffWeight2332 @setvar! DisableVacuums 02333 endif2334 2335 if EnableGoldVacuum = 1 2336 if DisableVacuums != 12337 if findtype "gold coin" ground -1 -1 12 as droppedmoney and timer "GoldRadar" > 35002338 overhead " � " 149 droppedmoney2339 settimer "GoldRadar" 02340 endif2341 2342 while findtype "gold coin" ground -1 -1 2 as droppedmoney2343 if diffhits > 352344 break2345 endif2346 overhead " � " 1492347 hotkey "Grab Item"2348 wft 25002349 target droppedmoney2350 wait 2502351 if insysmsg "Invalid or inaccessible item"2352 wait 5002353 @ignore droppedmoney2354 endif2355 wait 2502356 endwhile2357 endif2358 endif2359 2360 if EnableArrowCleanup = 1 2361 if skill 'Archery' > 502362 while findtype 7163|3903 ground -1 -1 2 as item and diffhits < 302363 if timer "ArrowCleanupTimer" > 35002364 if EnableOverheadMessages = 12365 overhead '[ CLEANUP... ]' 932366 settimer "ArrowCleanupTimer" 02367 else2368 overhead ' � ' 932369 settimer "ArrowCleanupTimer" 02370 endif2371 endif2372 hotkey "Grab Item"2373 wft 10002374 target item2375 wait 2502376 endwhile2377 2378 if findtype "quiver" self as MyQuiver and timer "QuiverTimer" > 300002379 while findtype "quiver" self as MyQuiver2380 getlabel MyQuiver MyQuiverdesc2381 wait 2502382 if 'decorative' in MyQuiverdesc2383 @ignore MyQuiver2384 wait 5002385 else2386 break2387 endif2388 endwhile2389 settimer "QuiverTimer" 02390 menu MyQuiver 02391 wait 2502392 endif2393 2394 if findtype 7163 ground -1 -1 10 as bolt and timer "BoltCleanupRadar" > 35002395 overhead "�" 93 bolt2396 settimer "BoltCleanupRadar" 02397 endif2398 2399 if findtype 3903 ground -1 -1 10 as arrow and timer "ArrowCleanupRadar" > 35002400 overhead "�" 37 arrow2401 settimer "ArrowCleanupRadar" 02402 endif2403 endif2404 endif2405 2406 if EnableDungeonCleanup = 12407 if DisableVacuums != 12408 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 < 102409 if diffhits > 102410 break2411 endif2412 if EnableOverheadMessages = 12413 if timer "DungeonCleanup" > 15002414 overhead '[ CLEANUP... ]' 4202415 settimer "DungeonCleanup" 02416 endif2417 else2418 if timer "DungeonCleanup" > 15002419 overhead ' � ' 4202420 settimer "DungeonCleanup" 02421 endif2422 endif2423 hotkey "Grab Item"2424 wft 10002425 target item2426 wait 2502427 endwhile2428 2429 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" > 35002430 overhead " � " 420 dungeonjunk2431 settimer "DungeonCleanupRadar" 02432 endif2433 endif2434 endif2435 2436 if not warmode 2437 break2438 endif2439 endwhile2440 endif2441 2442 ///////////////////////////////2443 // END VISIBLE WARMODE LOOP //2444 ///////////////////////////////2445 2446 2447 ///////////////////////////2448 // VISIBLE PEACE LOOP: //2449 ///////////////////////////2450 2451 if not warmode2452 while not cooldown 'Hiding' and not cooldown 'Stealth'2453 if targetexists2454 hotkey 'Cancel Current Target'2455 endif2456 2457 useskill 'Hiding'2458 wait 5002459 2460 if not hidden2461 if insysmsg 'You must wait' and not hidden2462 if timer HidingOverheadTimer > 28002463 if EnableOverheadMessages = 12464 overhead "[ WAITING TO HIDE... ]" 132465 else 2466 overhead " � " 132467 endif2468 settimer HidingOverheadTimer 02469 endif2470 2471 if EnableHealPotion = 12472 if diffhits >= HealPotionHPdiff and not hidden2473 if findtype "Yellow Potion" self as HealPot2474 getlabel HealPot HealPotlabel2475 if "next" in HealPotlabel2476 // Do nothing2477 else2478 @setvar! HealPotionCheck 02479 if counttype 3852 self as HealPotCount2480 @setvar! HealPotionCheck HealPotCount2481 endif2482 clearsysmsg2483 dclicktype 38522484 getlabel backpack backpackdesc2485 wait 2502486 if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"2487 settimer 'HealPotionTimer' 02488 cooldown "Healing Potion" HealPotionCooldown2489 if EnableOverheadMessages = 12490 if insysmsg "potion satchel used"2491 overhead '[ FREE HEAL POTION ]' 2532492 else2493 overhead "[ HEAL POTION ]" 2532494 endif2495 endif2496 clearsysmsg2497 endif2498 endif2499 else2500 if timer 'HealingPotionMessageTimer' > 45002501 overhead "[ NO HEAL POTS! ]" 3372502 settimer 'HealingPotionMessageTimer' 02503 endif2504 endif2505 endif2506 endif2507 2508 if EnablePanaceaPotion = 1 2509 if skill 'Alchemy' >= 802510 if findbuff "bleed" or findbuff "diseased"2511 if not findbuff "panacea potion cooldown"2512 if findtype "Orange Potion" self2513 dclicktype "Orange Potion"2514 wait 5002515 if findbuff "panacea potion cooldown" and EnableOverheadMessages = 12516 overhead "[ PANACEA POTION ]" 21172517 endif2518 cooldown 'Panacea Potion' 300002519 else 2520 if timer 'CurePotionMessageTimer' > 150002521 overhead "[ NO CURE POTS! ]" 3372522 settimer 'CurePotionMessageTimer' 02523 endif 2524 endif2525 else 2526 if EnableOverheadMessages = 1 and timer PanaceaOverheadTimer > 150002527 overhead '[ PANACEA ON COOLDOWN! ]' 372528 settimer PanaceaOverheadTimer 02529 endif2530 endif2531 endif2532 endif2533 endif2534 2535 if EnableCleansingBrews = 12536 if findbuff "Disease" or findbuff "Bleed"2537 if timer CleansingBrewTimer > 1200002538 if findtype 50675 self 2935 as CleansingBrew2539 dclick CleansingBrew2540 if EnableOverheadMessages = 12541 overhead '[ CLEANSING BREW ]' 21172542 endif2543 cooldown 'Cleansing Brew' 1200002544 settimer CleansingBrewTimer 02545 wait 2502546 else2547 if timer CleansingBrewOverhead > 150002548 overhead "[ NO CLEANSING BREWS! ]" 3372549 settimer CleansingBrewOverhead 02550 settimer CleansingBrewTimer 02551 endif2552 endif2553 else 2554 if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 150002555 overhead '[ BREW ON COOLDOWN! ]' 372556 settimer CleansingBrewOverhead 02557 endif2558 endif2559 endif2560 endif2561 2562 if EnableCurePotion = 12563 while poisoned2564 if findtype "Orange Potion" self2565 dclicktype "Orange Potion"2566 if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 35002567 overhead "[ CURE POTION ]" 442568 settimer 'CurePotionMessageTimer' 02569 endif2570 wait 2502571 else2572 if timer 'CurePotionMessageTimer' > 50002573 overhead "[ NO CURE POTS! ]" 3372574 settimer 'CurePotionMessageTimer' 02575 endif2576 break2577 endif2578 if diffhits > 502579 break2580 endif2581 endwhile2582 endif2583 2584 if diffhits > 0 and not bandaging and not hidden and skill 'healing' > 02585 if findtype 'clean bandage%s%' self2586 if targetexists2587 hotkey 'cancel current target'2588 endif2589 hotkey 'Bandage Self'2590 if EnableOverheadMessages = 12591 if timer BandageMessageTimer > 50002592 overhead "[ BANDAGING... ]" 882593 settimer BandageMessageTimer 02594 endif2595 endif2596 wait 5002597 else2598 if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 12599 overhead "[ OUT OF BANDAGES! ]" 3372600 settimer BandageMessageTimer 02601 endif2602 endif2603 endif2604 2605 if EnableRefreshPotion = 1 2606 if diffstam >= RefreshPotionSPdiff and not hidden2607 if findtype "Red Potion" self2608 dclicktype "Red Potion"2609 if EnableOverheadMessages = 12610 overhead "[ REFRESH POTION ]" 372611 endif2612 wait 5002613 else2614 if timer RefreshPotionMessageTimer > 45002615 overhead "[ NO REFRESH POTS! ]" 3372616 settimer RefreshPotionMessageTimer 02617 endif2618 endif2619 wait 5002620 endif2621 endif2622 else2623 if EnableSmokeBombWhenAggro = 12624 if counttype 52149 self > 02625 if not cooldown 'Smoke Bomb' and not hidden2626 clearsysmsg2627 hotkey 'Smoke Bomb'2628 wait 5002629 if insysmsg 'You must wait another'2630 if EnableOverheadMessages = 12631 overhead '[ SMOKE BOMB UNAVAILABLE ]' 3332632 endif2633 hotkey 'Toggle War Only'2634 break2635 else2636 if hidden2637 if EnableOverheadMessages = 12638 overhead '[ SMOKE BOMB! ]' 17902639 endif2640 @setvar! Stealthing 12641 @setvar! StealthingReady 12642 cooldown 'Hiding' 02643 cooldown 'Stealth' 100002644 cooldown 'Smoke Bomb' SmokeBombCooldown2645 endif2646 break2647 endif2648 else2649 if EnableOverheadMessages = 12650 overhead '[ SMOKE ON COOLDOWN! ]' 332651 endif2652 hotkey 'Toggle War Only'2653 break2654 endif2655 else2656 if EnableOverheadMessages = 12657 overhead '[ NO SMOKE BOMBS ]' 3372658 endif2659 cooldown 'Hiding' 10002660 if not hidden2661 hotkey 'Toggle War Only'2662 break2663 endif2664 endif2665 else2666 cooldown 'Hiding' 10002667 if not hidden2668 hotkey 'Toggle War Only'2669 break2670 endif2671 endif2672 endif2673 else 2674 if hidden and not cooldown 'Hiding'2675 @setvar! StealthingReady 12676 endif2677 wait 2502678 break2679 endif2680 endwhile2681 2682 //////////////////////////////2683 // END VISIBLE PEACE LOOP //2684 //////////////////////////////2685 2686 2687 if hidden and not cooldown 'Hiding'2688 @setvar! StealthingReady 12689 break2690 endif2691 2692 if cooldown 'Hiding' or cooldown 'Stealth'2693 if not hidden2694 if EnableOverheadMessages = 12695 if timer CooldownOverheadTimer > 35002696 overhead '[ HIDING NOT READY... ]' 1112697 settimer CooldownOverheadTimer 02698 endif2699 endif2700 hotkey 'Toggle War Only'2701 break2702 endif2703 2704 if EnableHealPotion = 1 2705 if diffhits >= HealPotionHPdiff and not hidden2706 if findtype "Yellow Potion" self as HealPot2707 getlabel HealPot HealPotlabel2708 if "next" in HealPotlabel2709 // Do nothing2710 else2711 @setvar! HealPotionCheck 02712 2713 if counttype 3852 self as HealPotCount2714 @setvar! HealPotionCheck HealPotCount2715 endif2716 2717 clearsysmsg2718 dclicktype 38522719 getlabel backpack backpackdesc2720 wait 2502721 2722 if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"2723 settimer 'HealPotionTimer' 02724 cooldown "Healing Potion" HealPotionCooldown2725 if EnableOverheadMessages = 12726 if insysmsg "potion satchel used"2727 overhead '[ FREE HEAL POTION ]' 2532728 else2729 overhead "[ HEAL POTION ]" 2532730 endif2731 endif2732 clearsysmsg2733 endif2734 endif2735 else2736 if timer 'HealingPotionMessageTimer' > 45002737 overhead "[ NO HEAL POTS! ]" 3372738 settimer 'HealingPotionMessageTimer' 02739 endif2740 endif2741 endif2742 endif2743 2744 if EnablePanaceaPotion = 1 2745 if skill 'Alchemy' >= 802746 if findbuff "bleed" or findbuff "diseased"2747 if not findbuff "panacea potion cooldown"2748 if findtype "Orange Potion" self2749 dclicktype "Orange Potion"2750 wait 5002751 if findbuff "panacea potion cooldown" and EnableOverheadMessages = 12752 overhead "[ PANACEA POTION ]" 21172753 endif2754 cooldown 'Panacea Potion' 300002755 else 2756 if timer 'CurePotionMessageTimer' > 150002757 overhead "[ NO CURE POTS! ]" 3372758 settimer 'CurePotionMessageTimer' 02759 endif2760 endif2761 else 2762 if EnableOverheadMessages = 1 and timer PanaceaOverheadTimer > 150002763 overhead '[ PANACEA ON COOLDOWN! ]' 372764 settimer PanaceaOverheadTimer 02765 endif2766 endif2767 endif2768 endif2769 endif2770 2771 if EnableCleansingBrews = 12772 if findbuff "Disease" or findbuff "Bleed"2773 if timer CleansingBrewTimer > 1200002774 if findtype 50675 self 2935 as CleansingBrew2775 dclick CleansingBrew2776 if EnableOverheadMessages = 12777 overhead '[ CLEANSING BREW ]' 21172778 endif2779 cooldown 'Cleansing Brew' 1200002780 settimer CleansingBrewTimer 02781 wait 2502782 else2783 if timer CleansingBrewOverhead > 150002784 overhead "[ NO CLEANSING BREWS! ]" 3372785 settimer CleansingBrewOverhead 02786 settimer CleansingBrewTimer 02787 endif2788 endif2789 else 2790 if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 150002791 overhead '[ BREW ON COOLDOWN! ]' 372792 settimer CleansingBrewOverhead 02793 endif2794 endif2795 endif2796 endif2797 2798 if EnableCurePotion = 12799 while poisoned2800 if findtype "Orange Potion" self2801 dclicktype "Orange Potion"2802 if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 35002803 overhead "[ CURE POTION ]" 442804 settimer 'CurePotionMessageTimer' 02805 endif2806 wait 2502807 else2808 if timer 'CurePotionMessageTimer' > 50002809 overhead "[ NO CURE POTS! ]" 3372810 settimer 'CurePotionMessageTimer' 02811 endif2812 break2813 endif2814 if diffhits > 402815 break2816 endif2817 endwhile2818 endif2819 2820 if diffhits > 0 2821 if not bandaging and not hidden and skill 'healing' > 02822 if findtype 'clean bandage%s%' self2823 if targetexists2824 hotkey 'cancel current target'2825 endif2826 hotkey 'Bandage Self'2827 if EnableOverheadMessages = 12828 if timer BandageMessageTimer > 50002829 overhead "[ BANDAGING... ]" 882830 settimer BandageMessageTimer 02831 endif2832 endif2833 wait 5002834 else2835 if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 12836 overhead "[ OUT OF BANDAGES! ]" 3372837 settimer BandageMessageTimer 02838 endif2839 endif2840 endif2841 endif2842 2843 if EnableRefreshPotion = 1 2844 if diffstam >= RefreshPotionSPdiff and not hidden2845 if findtype "Red Potion" self2846 dclicktype "Red Potion"2847 if EnableOverheadMessages = 12848 overhead "[ REFRESH POTION ]" 372849 endif2850 wait 5002851 else2852 if timer RefreshPotionMessageTimer > 45002853 overhead "[ NO REFRESH POTS! ]" 3372854 settimer RefreshPotionMessageTimer 02855 endif2856 endif2857 wait 5002858 endif2859 endif2860 endif2861 endif2862 endwhile2863 2864 ////////////////////////2865 // END VISIBLE LOOP //2866 ////////////////////////2867 2868 2869 ///////////////////////////////////2870 // WAITING FOR STEALTH LOOP: //2871 ///////////////////////////////////2872 2873 while hidden and StealthingReady = 0 2874 if not cooldown 'Hiding' or insysmsg 'You feel comfortable enough to begin'2875 if EnableWizardHatStealthTrick = 12876 if find MagicWizardHat backpack and find MyHelmet self2877 if hidden and stam = maxstam2878 if EnableOverheadMessages = 12879 overhead '[ HAT TRICK ]' 1112880 endif2881 dclick MagicWizardHat2882 wait 6502883 dclick MyHelmet2884 getlabel backpack backpacklabel2885 endif2886 if not findlayer self head and find MyHelmet backpack2887 dclick MyHelmet2888 wait 5002889 endif2890 endif2891 if find MyHelmet backpack 2892 if not find MagicWizardHat backpack2893 dclick MyHelmet2894 wait 500 2895 endif2896 endif2897 endif2898 2899 if EnableOverheadMessages = 12900 overhead '[ READY TO STEALTH! ]' 692901 else2902 overhead ' � ' 692903 endif2904 2905 @setvar! StealthingReady 12906 @setvar! Stealthing 02907 settimer NoTargetTimer 02908 clearsysmsg2909 break2910 else2911 @setvar! Stealthing 02912 @setvar! StealthingReady 02913 getlabel backpack backpacklabel2914 clearsysmsg 2915 2916 if timer WaitingForStealthTimer > 30002917 if EnableOverheadMessages = 12918 overhead '[ WAITING FOR STEALTH... ]' 1532919 else2920 overhead ' � ' 1532921 endif2922 settimer WaitingForStealthTimer 02923 endif2924 2925 if insysmsg 'You have been revealed'2926 if EnableOverheadMessages = 12927 overhead '[ !! REVEALED !! ]' 1532928 else 2929 overhead '!! � !!' 1532930 endif2931 clearsysmsg 2932 hotkey 'Toggle War Only' 2933 @setvar! Stealthing 02934 @setvar! StealthingReady 02935 @setvar! KeepOnTrucking 02936 cooldown 'Hiding' 50002937 break2938 endif2939 2940 if not hidden2941 @setvar! Stealthing 02942 @setvar! StealthingReady 02943 @setvar! KeepOnTrucking 02944 hotkey 'Toggle War Only'2945 break2946 endif2947 2948 if timer OrganizerAgentTimer > 300002949 hotkey 'Organizer Agent-01'2950 getlabel backpack backpacklabel2951 wait 2502952 hotkey 'Organizer Agent-02'2953 settimer OrganizerAgentTimer 02954 wait 2502955 endif2956 2957 if EnablePKRadar = 12958 if insysmsg "Now tracking"2959 clearsysmsg2960 if EnableRedAlertOverhead = 12961 overhead "[ !! RED ALERT !! ]" 3372962 wait 5002963 endif2964 if not hidden2965 if not cooldown 'Hiding'2966 if targetexists2967 hotkey 'Cancel Current Target'2968 endif2969 2970 useskill "Hiding"2971 wait 5002972 2973 while insysmsg 'You must wait'2974 clearsysmsg2975 wait 2502976 useskill 'Hiding'2977 endwhile2978 2979 if hidden2980 // Do nothing2981 else2982 if counttype 52149 self > 02983 if not cooldown 'Smoke Bomb' and not hidden2984 clearsysmsg2985 hotkey 'Smoke Bomb'2986 wait 5002987 if insysmsg 'You must wait another'2988 if EnableOverheadMessages = 12989 overhead '[ SMOKE BOMB UNAVAILABLE ]' 3332990 endif2991 hotkey 'Toggle War Only'2992 break2993 else2994 if hidden2995 if EnableOverheadMessages = 12996 overhead '[ SMOKE BOMB! ]' 17902997 endif2998 @setvar! Stealthing 12999 @setvar! StealthingReady 13000 cooldown 'Hiding' 03001 cooldown 'Stealth' 100003002 cooldown 'Smoke Bomb' SmokeBombCooldown3003 endif3004 break3005 endif3006 elseif not hidden3007 if EnableOverheadMessages = 13008 overhead '[ SMOKE ON COOLDOWN! ]' 333009 endif3010 hotkey 'Toggle War Only'3011 break3012 endif3013 else3014 if EnableOverheadMessages = 13015 overhead '[ NO SMOKE BOMBS ]' 3373016 endif3017 endif3018 endif3019 endif3020 else3021 if EnableOverheadMessages = 13022 wait 5003023 overhead "[ ALREADY HIDDEN! ]" 113024 endif3025 wait 5003026 endif3027 wait 5003028 endif3029 endif3030 3031 if EnableArcheryWarningMessage = 1 and skill 'Archery' >= 503032 if findtype 'stubnose crossbow|tower guard crossbow|balestra|heavy crossbow|crossbow' hand3033 @setvar! AMMO 13034 elseif findtype 'long bow|bow|recurve bow|composite bow' hand3035 @setvar! AMMO 23036 endif3037 3038 if counttype "crossbow bolt" self < ArcheryLowAmmoWarningAmount and timer "AmmunitionTimer" > 6000 and AMMO = 13039 overhead "[ AMMO LOW! ]" 373040 settimer 'AmmunitionTimer' 03041 endif3042 3043 if counttype "arrow" self < ArcheryLowAmmoWarningAmount and timer 'AmmunitionTimer' > 6000 and AMMO = 23044 overhead "[ AMMO LOW! ]" 373045 settimer 'AmmunitionTimer' 03046 endif3047 endif3048 3049 if EnableWeightWarningMessage = 13050 if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer WeightTimer > 60003051 if EnableOverheadMessages = 13052 overhead "[ WEIGHT WARNING... ]" 773053 settimer "WeightTimer" 03054 else3055 overhead " � " 773056 settimer "WeightTimer" 03057 endif3058 elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer WeightTimer > 60003059 if EnableOverheadMessages = 13060 overhead "[ WEIGHT WARNING! ]" 1533061 settimer "WeightTimer" 03062 else3063 overhead " � " 1533064 settimer "WeightTimer" 03065 endif3066 elseif diffweight <= RedWeightLimitDiffWeight and timer WeightTimer > 60003067 if EnableOverheadMessages = 13068 overhead "[ WEIGHT LIMIT REACHED! ]" 373069 settimer "WeightTimer" 03070 wait 5003071 else3072 overhead " � " 373073 settimer "WeightTimer" 03074 endif3075 wait 5003076 if weight > maxweight3077 if EnableDropGoldWhenOverweight = 13078 if EnableOverheadMessages = 13079 wait 10003080 overhead "[ OVERWEIGHT! ]" 3373081 endif3082 replay3083 else3084 if EnableOverheadMessages = 13085 overhead "[ OVERWEIGHT! ]" 3373086 wait 20003087 endif3088 overhead "[ STOPPING SCRIPT! ]" 883089 stop3090 endif3091 endif3092 if EnableTriggerDungeonEscapeScript = 13093 foreach EscapeScript in DungeonEscapeScriptList3094 script EscapeScript3095 endfor3096 endif3097 endif3098 endif3099 3100 if EnableUsePotionKegs = 1 and findtype 'empty bottle%s%' self and findtype 'keg' self and timer 'PotionKegPVPCooldown' > 300003101 if not timerexists PotionKegTimer3102 createtimer PotionKegTimer3103 settimer PotionKegTimer 50003104 endif3105 3106 @setvar! PotionStockCheck 03107 3108 while PotionStockCheck < 8 and findtype 'empty bottle%s%' self3109 @setvar! PotionAmounttoFill 03110 if PotionStockCheck = 03111 if ExplosionPotionAmount != 03112 @setvar! PotionType 38533113 @setvar! KegColour 4193114 @setvar! PotionAmounttoFill ExplosionPotionAmount3115 endif3116 @setvar! PotionStockCheck 13117 elseif PotionStockCheck = 13118 if HealingPotionAmount != 03119 @setvar! PotionType 38523120 @setvar! KegColour 2533121 @setvar! PotionAmounttoFill HealingPotionAmount3122 endif3123 @setvar! PotionStockCheck 23124 elseif PotionStockCheck = 23125 if CurePotionAmount != 03126 @setvar! PotionType 38473127 @setvar! KegColour 443128 @setvar! PotionAmounttoFill CurePotionAmount3129 endif3130 @setvar! PotionStockCheck 33131 elseif PotionStockCheck = 33132 if RefreshPotionAmount != 03133 @setvar! PotionType 38513134 @setvar! KegColour 373135 @setvar! PotionAmounttoFill RefreshPotionAmount3136 endif3137 @setvar! PotionStockCheck 43138 elseif PotionStockCheck = 43139 if StrengthPotionAmount != 03140 @setvar! PotionType 38493141 @setvar! KegColour 9563142 @setvar! PotionAmounttoFill StrengthPotionAmount3143 endif3144 @setvar! PotionStockCheck 53145 elseif PotionStockCheck = 53146 if AgilityPotionAmount != 03147 @setvar! PotionType 38483148 @setvar! KegColour 933149 @setvar! PotionAmounttoFill AgilityPotionAmount3150 endif3151 @setvar! PotionStockCheck 63152 elseif PotionStockCheck = 63153 if ResistPotionAmount != 03154 @setvar! PotionType 38463155 @setvar! KegColour 11093156 @setvar! PotionAmounttoFill ResistPotionAmount3157 endif3158 @setvar! PotionStockCheck 73159 elseif PotionStockCheck = 73160 if PoisonPotionAmount != 03161 @setvar! PotionType 38503162 @setvar! KegColour 3633163 @setvar! PotionAmounttoFill PoisonPotionAmount3164 endif3165 @setvar! PotionStockCheck 83166 endif3167 3168 if PotionAmounttoFill != 03169 while counttype PotionType self < PotionAmounttoFill3170 if not findtype 'empty bottle%s%' self3171 if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50003172 overhead "[ NO EMPTY BOTTLES... ]" 3373173 settimer 'PotionKegTimer' 03174 endif3175 break3176 endif3177 3178 if diffhits > 10 or not hidden3179 break3180 endif3181 3182 if findtype 'keg' self KegColour as myKeg3183 dclick myKeg3184 wait 2503185 if EnableOverheadMessages = 13186 if timer 'PotionKegTimer' > 20003187 overhead '[ FILLING POTS... ]' KegColour3188 settimer 'PotionKegTimer' 03189 endif3190 endif3191 else3192 if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50003193 overhead "[ NO KEG TO USE... ]" KegColour3194 settimer 'PotionKegTimer' 03195 endif3196 break3197 endif3198 if insysmsg "You have been in combat with another player"3199 settimer "PotionKegPVPCooldown" 03200 break3201 endif3202 endwhile3203 3204 if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self3205 if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50003206 overhead "[ NO EMPTY BOTTLES... ]" 3373207 settimer 'PotionKegTimer' 03208 endif3209 break3210 endif3211 endif3212 endwhile3213 endif3214 3215 if EnableWeaponCheck = 13216 if not find MySlowWeapon hand3217 if skill 'Mace Fighting' >= 503218 if not findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' self3219 if timer NoWeaponOverheadTimer > 50003220 overhead "[ NO WEAPON! ]" 3373221 settimer NoWeaponOverheadTimer 03222 endif3223 clearignore 3224 else3225 if not findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' hand3226 clearignore3227 if findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' backpack as MySlowWeapon3228 for 103229 getlabel MySlowWeapon WeaponLabel3230 wait 2503231 if "aspect" in WeaponLabel3232 break3233 elseif "unidentified" in WeaponLabel3234 @ignore MySlowWeapon3235 wait 2503236 else3237 @ignore MySlowWeapon3238 wait 2503239 endif3240 if findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' backpack as MySlowWeapon3241 getlabel MySlowWeapon WeaponLabel3242 wait 2503243 endif3244 endfor3245 wait 2503246 dclick MySlowWeapon3247 wait 5003248 clearignore3249 endif3250 endif3251 endif3252 elseif skill 'Fencing' >= 50 3253 if not findtype '30992|3938|3719|5123' self3254 if timer NoWeaponOverheadTimer > 50003255 overhead "[ NO WEAPON! ]" 3373256 settimer NoWeaponOverheadTimer 03257 endif3258 clearignore 3259 else3260 if not findtype '30992|3938|3719|5123' hand3261 if findtype '30992|3938|3719|5123' backpack as MySlowWeapon3262 for 103263 getlabel MySlowWeapon WeaponLabel3264 wait 2503265 if "aspect" in WeaponLabel3266 break3267 elseif "unidentified" in WeaponLabel3268 @ignore MySlowWeapon3269 wait 2503270 else3271 @ignore MySlowWeapon3272 wait 2503273 endif3274 if findtype '30992|3938|3719|5123' backpack as MySlowWeapon3275 getlabel MySlowWeapon WeaponLabel3276 wait 2503277 endif3278 endfor3279 wait 2503280 dclick MySlowWeapon3281 wait 5003282 clearignore 3283 endif3284 endif3285 endif3286 elseif skill 'Archery' >= 503287 if not findtype 'heavy crossbow|long bow|tower guard crossbow' self3288 if timer NoWeaponOverheadTimer > 50003289 overhead "[ NO WEAPON! ]" 3373290 settimer NoWeaponOverheadTimer 03291 endif3292 clearignore 3293 else3294 if not findtype 'heavy crossbow|long bow|tower guard crossbow' hand3295 clearignore3296 if findtype 'heavy crossbow|long bow|tower guard crossbow' backpack as MySlowWeapon3297 for 103298 getlabel MySlowWeapon WeaponLabel3299 wait 2503300 if "aspect" in WeaponLabel3301 break3302 elseif "unidentified" in WeaponLabel3303 @ignore MySlowWeapon3304 wait 2503305 else3306 @ignore MySlowWeapon3307 wait 2503308 endif3309 if findtype 'heavy crossbow|long bow|tower guard crossbow' backpack as MySlowWeapon3310 getlabel MySlowWeapon WeaponLabel3311 wait 2503312 endif3313 endfor3314 wait 2503315 dclick MySlowWeapon3316 wait 5003317 clearignore3318 endif3319 endif3320 endif3321 endif3322 endif3323 endif3324 3325 if EnableEatingFood = 13326 if not findbuff 'food satisfaction' and findtype "tray" self3327 if findtype "tray" self as Food3328 if EnableOverheadMessages = 13329 overhead "[ EATING FOOD... ]" 883330 endif3331 dclick Food3332 wait 5003333 endif3334 endif3335 endif3336 3337 if EnableAutoSatchels = 13338 if findtype "3962|3963|3972|3973|3974|3976|3980|3981" backpack and findtype "reagent satchel" self as MyWizardBag3339 while findtype "reagent satchel" self as MyWizardBag3340 getlabel MyWizardBag MyWizardBagdesc3341 wait 2503342 if 'decorative' in MyWizardBagdesc3343 @ignore MyWizardBag3344 else3345 break3346 endif3347 endwhile3348 if timer "WizardSatchelTimer" > 600003349 menu MyWizardBag 03350 wait 2503351 settimer "WizardSatchelTimer" 03352 endif3353 endif3354 3355 if findtype "Yellow Potion|Orange Potion|Red Potion|White Potion|Blue Potion|Black Potion|" backpack and findtype 31262 self as MyPotBag3356 if timer "PotionSatchelTimer" > 600003357 menu MyPotBag 03358 wait 2503359 settimer "PotionSatchelTimer" 03360 endif3361 endif3362 endif3363 3364 if not varexist "NoLockbox"3365 @setvar! NoLockbox 03366 endif3367 3368 if findtype "wooden box" self and findtype "copper key" self3369 @setvar! NoLockbox 03370 else3371 @setvar! NoLockbox 13372 endif3373 3374 if EnableIDandRecycleMagicItems = 1 and not findtype "3997|4148|4032|7864" self3375 @setvar! DisableRecycler 13376 else3377 @setvar! DisableRecycler 03378 endif3379 3380 if EnablePutLootinLockBox = 1 and NoLockbox != 1 and timer LootCooldownTimer > 100003381 if not findtype "wooden box" self or not findtype "copper key" self3382 if EnableOverheadMessages = 13383 overhead "[ NO LOCKBOX FOUND! ]" 3373384 endif3385 @setvar! NoLockbox 13386 wait 15003387 elseif counttype 2474 self > 1 or counttype 4110 self > 13388 if EnableOverheadMessages = 13389 overhead "[ TOO MANY LOCKBOXES/KEYS! ]" 3373390 endif3391 @setvar! NoLockbox 13392 wait 15003393 else3394 if EnableWizardHatStealthTrick = 13395 ignore MyHelmet3396 ignore MagicWizardHat3397 endif3398 ignore MySlowWeapon3399 ignore MyFastWeapon 3400 if findtype "wooden box" self as lockbox and findtype "copper key" self as key3401 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 loottostore3402 getlabel lockbox lockboxLabel3403 wait 2503404 if "items" in lockboxLabel3405 if EnableOverheadMessages = 13406 if timer "STORELOOT" > 35003407 overhead "[ SECURING LOOT... ]" 883408 settimer "STORELOOT" 03409 endif3410 endif3411 else3412 if EnableOverheadMessages = 13413 overhead "[loot box unlocked]" 21143414 endif3415 dclick key3416 wft 15003417 target lockbox3418 wait 2503419 if EnableOverheadMessages = 13420 if timer "STORELOOT" > 35003421 overhead "[ SECURING LOOT... ]" 883422 settimer "STORELOOT" 03423 endif3424 endif3425 endif3426 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 loottostore3427 if find loottostore lockbox3428 @ignore loottostore3429 else3430 clearsysmsg3431 lift loottostore 99993432 drop lockbox -1 -1 -13433 wait 5003434 if insysmsg "appears to be locked"3435 dclick key3436 wft 15003437 target lockbox3438 wait 2503439 clearsysmsg3440 endif3441 endif3442 if not hidden 3443 break3444 endif3445 endwhile3446 dclick key3447 wft 15003448 target lockbox3449 if EnableOverheadMessages = 13450 overhead "[loot box locked]" 21173451 endif3452 @setvar! NeedtoSecureLoot 03453 settimer LootCooldownTimer 03454 endif3455 getlabel lockbox lockboxLabel3456 wait 2503457 if "items" in lockboxLabel3458 dclick key3459 wft 1500 3460 target lockbox3461 @setvar! NeedtoSecureLoot 03462 settimer LootTimer 03463 settimer LootCooldownTimer 03464 endif3465 endif3466 unignore MySlowWeapon3467 unignore MyFastWeapon3468 if EnableWizardHatStealthTrick = 13469 unignore MyHelmet3470 unignore MagicWizardHat3471 endif 3472 endif3473 endif3474 3475 if EnableIDandRecycleMagicItems = 1 and DisableRecycler != 1 and diffweight < IDandRecycleWeightdiff and timer MagicRecyclerCooldown > 3000003476 if findtype "3997|4148|4032|7864" self as RecyclingTool3477 hotkey "Cancel Current Target"3478 settimer MagicRecyclerCooldown 03479 3480 if not find MyContainerIDWand self and findtype 20495 self as NewContainterIDWand3481 @setvar! MyContainerIDWand NewContainterIDWand3482 endif3483 3484 if skill "Item ID" = 120 or find MyContainerIDWand self3485 clearsysmsg3486 clearignore3487 3488 if EnablePutLootinLockBox = 1 and EnablePutLootinLockBoxFailed != 13489 if findtype "wooden box" self as lockbox3490 if findtype "copper key" self as key3491 getlabel lockbox lockboxlabel3492 wait 2503493 @setvar! EnablePutLootinLockBoxFailed 03494 if 'items' in lockboxlabel3495 // Do nothing3496 else3497 dclick key3498 wft 15003499 target lockbox3500 wait 2503501 overhead '[loot box unlocked]' 21143502 endif3503 else3504 if EnableOverheadMessages = 13505 overhead '[ KEY IS MISSING! ]' 3373506 @setvar! EnablePutLootinLockBox 03507 wait 2503508 endif3509 endif3510 else3511 if EnableOverheadMessages = 13512 overhead '[ NO LOCKBOX FOUND! ]' 3373513 @setvar! EnablePutLootinLockBoxFailed 13514 wait 2503515 endif3516 endif3517 endif3518 3519 while cooldown "Hiding" or cooldown "Stealth"3520 if EnableOverheadMessages = 1 and timer SkillCooldownTimer > 35003521 overhead '[ WAITING TO ID ITEMS... ]' 21173522 settimer SkillCooldownTimer 03523 endif3524 wait 1003525 if not cooldown 'Hiding' and not cooldown 'Stealth'3526 break3527 endif3528 endwhile3529 3530 if skill "Item ID" = 1203531 skill "Item ID"3532 wait 5003533 elseif find MyContainerIDWand self3534 dclick MyContainerIDWand3535 wait 5003536 endif3537 3538 if insysmsg 'What do you wish to appraise and identify?'3539 if EnablePutLootinLockBox = 13540 if findtype 'wooden box' self as lockbox3541 target lockbox3542 else 3543 overhead '[ NO LOCKBOX FOUND ]' 3373544 @setvar! EnablePutLootinLockBoxFailed 13545 endif3546 wait 5003547 elseif EnablePutLootinLockBox = 03548 overhead "[ SELECT CONTAINER TO ID... ]" 883549 while targetexists3550 wait 1003551 endwhile3552 endif3553 endif3554 3555 wait 5003556 3557 if insysmsg "No unidentified items found."3558 if EnableOverheadMessages = 13559 wait 10003560 overhead "[ NO ITEMS TO ID ]" 3373561 endif3562 elseif insysmsg "That is not a container."3563 if EnableOverheadMessages = 13564 wait 10003565 overhead "[ INVALID CONTAINER ]" 3373566 endif3567 elseif insysmsg "You must wait a few moments to use another skill"3568 while cooldown 'Hiding' or cooldown 'Stealth'3569 if EnableOverheadMessages = 1 and timer SkillCooldownTimer > 35003570 settimer SkillCooldownTimer 03571 overhead "[ WAITING TO ID ITEMS... ]" 21173572 endif3573 wait 1003574 if not cooldown 'Hiding' and not cooldown 'Stealth'3575 break3576 endif3577 endwhile3578 3579 if skill "Item ID" = 1203580 skill "Item ID"3581 wait 5003582 elseif find MyContainerIDWand self3583 dclick MyContainerIDWand3584 wait 5003585 endif3586 3587 if insysmsg 'What do you wish to appraise and identify?'3588 if EnablePutLootinLockBox = 13589 if findtype 'wooden box' self as lockbox3590 target lockbox3591 else 3592 overhead '[ NO LOCKBOX FOUND ]' 3373593 @setvar! EnablePutLootinLockBoxFailed 13594 endif3595 wait 5003596 elseif EnablePutLootinLockBox = 03597 overhead "[ SELECT CONTAINER TO ID... ]" 883598 while targetexists3599 wait 1003600 endwhile3601 endif3602 endif3603 wait 5003604 if insysmsg "No unidentified items found."3605 if EnableOverheadMessages = 13606 wait 10003607 overhead "[ NO ITEMS TO ID ]" 3373608 endif3609 elseif insysmsg "That is not a container."3610 if EnableOverheadMessages = 13611 wait 10003612 overhead "[ INVALID CONTAINER ]" 3373613 endif3614 else 3615 if EnableOverheadMessages = 13616 overhead "[ IDENTIFYING ITEMS... ]" 883617 endif3618 endif3619 else3620 if EnableOverheadMessages = 13621 overhead "[ IDENTIFYING ITEMS... ]" 883622 endif3623 endif3624 3625 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 UnidentifiedItem3626 getlabel UnidentifiedItem UnidentifiedItemlabel3627 wait 1503628 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 UnidentifiedItemlabel3629 @ignore UnidentifiedItem3630 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 UnidentifiedItemlabel3631 while not gumpexists 9490951013632 while queued3633 // Do nothing3634 endwhile3635 dclick RecyclingTool3636 waitforgump 949095101 10003637 endwhile3638 3639 while not ingump "Recycle Single Item" 9490951013640 gumpresponse 23641 waitforgump 949095101 10003642 endwhile3643 3644 if EnableOverheadMessages = 13645 if timer RecyclingJunkTimer > 40003646 overhead '[ RECYCLING JUNK... ]' 11823647 settimer RecyclingJunkTimer 03648 endif3649 endif3650 gumpresponse 33651 waitforgump 949095101 10003652 target UnidentifiedItem3653 getlabel backpack backpacklabel3654 wait 2503655 gumpclose 9490951013656 else3657 @ignore UnidentifiedItem3658 endif3659 3660 if skill "Item ID" = 1203661 // Do nothing3662 elseif not find MyContainerIDWand self3663 break3664 endif3665 endwhile3666 if gumpexists 9490951013667 gumpclose 9490951013668 endif3669 else3670 if EnableOverheadMessages = 13671 overhead '[ NO CONTAINER ID WAND ]' 3373672 endif3673 endif3674 3675 if targetexists3676 hotkey "Cancel Current Target"3677 endif3678 3679 if EnableAutoConsumeArcaneEssence = 1 and findtype 3901 self as MyArcaneEssence3680 dclick MyArcaneEssence3681 wft 15003682 target self3683 if EnableOverheadMessages = 13684 overhead '[ CONSUMING ESSENCE... ]' 123685 endif3686 wait 5003687 endif3688 3689 if DropResourcesAfterRecycle = 13690 while findtype "iron ingot%s|board%s|cut up leather|cut%s% of raw ribs|raw chicken leg%s%|feather%s" self as ResourcestoDrop3691 if diffhits > 303692 break3693 endif3694 if EnableOverheadMessages = 13695 if timer "DungeonCleanup" > 25003696 overhead '[ DROPPING RESOURCES... ]' 4203697 settimer "DungeonCleanup" 03698 endif3699 endif3700 lift ResourcestoDrop 600003701 drop 03702 wait 5003703 endwhile3704 endif3705 3706 if EnableOverheadMessages = 13707 overhead '[ RECYCLE COMPLETE! ]' 21143708 endif3709 3710 settimer MagicRecyclerCooldown 03711 hotkey "Cancel Current Target"3712 3713 if EnablePutLootinLockBox = 13714 if findtype "wooden box" self as lockbox3715 if findtype "copper key" self as key3716 getlabel lockbox lockboxlabel3717 wait 2503718 if 'items' in lockboxlabel3719 dclick key3720 wft 15003721 target lockbox3722 wait 2503723 overhead '[loot box locked]' 21173724 else3725 // Do nothing3726 endif3727 else3728 if EnableOverheadMessages = 13729 overhead '[ KEY IS MISSING! ]' 3373730 @setvar! EnablePutLootinLockBox 03731 wait 2503732 endif3733 endif3734 else3735 if EnableOverheadMessages = 13736 overhead '[ NO LOCKBOX FOUND! ]' 3373737 @setvar! EnablePutLootinLockBox 03738 wait 2503739 endif3740 endif3741 endif3742 else3743 if EnableOverheadMessages = 13744 overhead '[ NO RECYCLING TOOL! ]' 3373745 endif3746 @setvar! DisableRecycler 13747 endif3748 endif3749 3750 if insysmsg 'You have been revealed'3751 if EnableOverheadMessages = 13752 overhead '[ !! REVEALED !! ]' 1533753 else 3754 overhead '!! � !!' 1533755 endif3756 clearsysmsg 3757 hotkey 'Toggle War Only' 3758 @setvar! Stealthing 03759 @setvar! StealthingReady 03760 @setvar! KeepOnTrucking 03761 cooldown 'Hiding' 50003762 break3763 endif3764 3765 if not hidden3766 @setvar! Stealthing 03767 @setvar! StealthingReady 03768 @setvar! KeepOnTrucking 03769 hotkey 'Toggle War Only'3770 break3771 endif3772 3773 if hidden and not cooldown 'Hiding'3774 @setvar! StealthingReady 13775 endif3776 endif3777 endwhile3778 3779 ///////////////////////////////////3780 // END WAITING FOR STEALTH LOOP //3781 ///////////////////////////////////3782 3783 @setvar! TargetAcquired 03784 getlabel backpack backpacklabel3785 clearsysmsg 3786 3787 /////////////////////3788 // STEALTH LOOP: //3789 /////////////////////3790 3791 while hidden and StealthingReady = 1 and TargetAcquired != 13792 if EnableWizardHatStealthTrick = 13793 if find MagicWizardHat backpack and find MyHelmet self3794 if hidden and stam = maxstam3795 if EnableOverheadMessages = 13796 overhead '[ HAT TRICK ]' 1113797 endif3798 dclick MagicWizardHat3799 wait 6503800 dclick MyHelmet3801 getlabel backpack backpacklabel3802 endif3803 if not findlayer self head and find MyHelmet backpack3804 dclick MyHelmet3805 wait 5003806 endif3807 endif3808 if find MyHelmet backpack 3809 if not find MagicWizardHat backpack3810 dclick MyHelmet3811 wait 500 3812 endif3813 endif3814 endif3815 3816 if insysmsg 'You begin to move quietly.'3817 @setvar! Stealthing 13818 @setvar! KeepOnTrucking 03819 clearsysmsg3820 cooldown 'Stealth' 100003821 endif3822 3823 if insysmsg 'You feel ready to continue stealthing.' or insysmsg 'stealth steps remaining'3824 @setvar! Stealthing 13825 @setvar! KeepOnTrucking 03826 endif3827 3828 if insysmsg 'You will automatically stealth when out of steps.'3829 if EnableOverheadMessages = 13830 overhead '[ STEALTH RENEWED ]' 693831 else3832 overhead ' � ' 693833 endif3834 @setvar! Stealthing 13835 @setvar! KeepOnTrucking 13836 endif3837 3838 if not hidden3839 @setvar! Stealthing 03840 @setvar! StealthingReady 03841 @setvar! KeepOnTrucking 03842 hotkey 'Toggle War Only'3843 break3844 endif3845 3846 if EnableOverheadWarnings = 13847 if cooldown 'Stealth'3848 if insysmsg 'You have 0 stealth steps remaining.' and hidden3849 settimer DoNotMoveTimeout 03850 clearsysmsg 3851 while not insysmsg 'You feel ready to continue stealthing.'3852 if timer DoNotMoveTimer > 5003853 if EnableOverheadMessages = 13854 overhead '[ !!! STOP !!! ]' 373855 else3856 overhead ' � ' 373857 endif3858 settimer NoTargetTimer 03859 settimer DoNotMoveTimer 03860 endif3861 3862 if not hidden3863 if EnableOverheadMessages = 13864 overhead '[ STEALTH ENDED! ]' 21173865 else3866 overhead ' � ' 21173867 endif3868 settimer NoTargetTimer 03869 @setvar! Stealthing 03870 @setvar! StealthingReady 03871 @setvar! KeepOnTrucking 03872 hotkey 'Toggle War Only'3873 break3874 endif3875 3876 if timer DoNotMoveTimeout > 8000 or not hidden or not cooldown 'Stealth'3877 break3878 endif3879 endwhile3880 wait 2503881 if hidden3882 if EnableOverheadMessages = 13883 overhead '[ KEEP GOING! ]' 693884 else3885 overhead ' � ' 693886 endif3887 settimer NoTargetTimer 03888 endif 3889 elseif insysmsg 'You have 1 stealth steps remaining.' and hidden3890 if EnableOverheadMessages = 13891 overhead '[ SLOW!! ]' 3333892 else3893 overhead ' � ' 3333894 endif3895 settimer NoTargetTimer 03896 @setvar! Stealthing 13897 elseif insysmsg 'You have 2 stealth steps remaining.' and hidden3898 if EnableOverheadMessages = 13899 overhead '[ SLOW!]' 443900 else3901 overhead ' � ' 443902 endif3903 settimer NoTargetTimer 03904 @setvar! Stealthing 13905 elseif insysmsg 'You have 3 stealth steps remaining.' and hidden3906 if EnableOverheadMessages = 13907 overhead '[ SLOW ]' 1533908 else3909 overhead ' � ' 1533910 endif3911 settimer NoTargetTimer 03912 @setvar! Stealthing 13913 endif3914 endif3915 endif3916 3917 if Stealthing = 13918 if timer FindTargetTimer > 5003919 hotkey "Target Closest Grey Monster"3920 getlabel backpack backpacklabel3921 wait 1003922 if insysmsg "no one matching"3923 if timer NoTargetTimer > 32003924 if EnableOverheadMessages = 13925 overhead "[ NOTHING TO TARGET... ]" 23383926 endif3927 settimer NoTargetTimer 03928 endif3929 @setvar! TargetAcquired 03930 else3931 @setvar! CurrentTarget lasttarget3932 @setvar! TargetAcquired 13933 getlabel backpack backpacklabel3934 endif3935 settimer FindTargetTimer 03936 endif3937 else 3938 if timer NoTargetTimer > 32003939 if EnableOverheadMessages = 13940 overhead '[ READY TO STEALTH! ]' 693941 else3942 overhead ' � ' 693943 endif3944 settimer NoTargetTimer 03945 endif 3946 endif3947 3948 if TargetAcquired = 1 and Stealthing = 13949 break3950 endif3951 3952 if insysmsg 'You have been revealed'3953 if EnableOverheadMessages = 13954 overhead '[ !! REVEALED !! ]' 1533955 else 3956 overhead '!! � !!' 1533957 endif3958 clearsysmsg 3959 hotkey 'Toggle War Only' 3960 @setvar! Stealthing 03961 @setvar! StealthingReady 03962 @setvar! KeepOnTrucking 03963 cooldown 'Hiding' 50003964 break3965 endif3966 3967 if not hidden3968 @setvar! Stealthing 03969 @setvar! StealthingReady 03970 @setvar! KeepOnTrucking 03971 hotkey 'Toggle War Only'3972 break3973 endif3974 3975 if EnablePKRadar = 13976 if skill 'Tracking' > 503977 if not findbuff 'tracking'3978 while not gumpexists 42674676593979 useskill 'tracking'3980 wait 2503981 endwhile3982 if gumpexists 42674676593983 while not insysmsg "You will now hunt all hostile players."3984 gumpresponse 8 42674676593985 waitforgump 4267467659 50003986 endwhile3987 gumpresponse 6 42674676593988 wait 5003989 clearsysmsg3990 endif3991 gumpclose 42674676593992 if EnableOverheadMessages = 13993 overhead "[ TRACKING ACTIVATED! ]" 3343994 endif3995 endif3996 endif3997 endif3998 3999 if insysmsg 'You begin to move quietly.'4000 @setvar! Stealthing 14001 @setvar! KeepOnTrucking 04002 clearsysmsg4003 cooldown 'Stealth' 100004004 endif4005 4006 if insysmsg 'You feel ready to continue stealthing.'4007 @setvar! Stealthing 14008 @setvar! KeepOnTrucking 14009 endif4010 4011 if insysmsg 'You will automatically stealth when out of steps.'4012 if EnableOverheadMessages = 14013 overhead '[ STEALTH RENEWED ]' 694014 else4015 overhead ' � ' 694016 endif4017 @setvar! Stealthing 14018 @setvar! KeepOnTrucking 14019 endif4020 4021 if not hidden4022 @setvar! Stealthing 04023 @setvar! StealthingReady 04024 @setvar! KeepOnTrucking 04025 hotkey 'Toggle War Only'4026 break4027 endif4028 4029 if EnableOverheadWarnings = 14030 if cooldown 'Stealth'4031 if insysmsg 'You have 0 stealth steps remaining.' and hidden4032 settimer DoNotMoveTimeout 04033 clearsysmsg 4034 while not insysmsg 'You feel ready to continue stealthing.'4035 if timer DoNotMoveTimer > 5004036 if EnableOverheadMessages = 14037 overhead '[ !!! STOP !!! ]' 374038 else4039 overhead ' � ' 374040 endif4041 settimer NoTargetTimer 04042 settimer DoNotMoveTimer 04043 endif4044 4045 if not hidden4046 if EnableOverheadMessages = 14047 overhead '[ STEALTH ENDED! ]' 21174048 else4049 overhead ' � ' 21174050 endif4051 settimer NoTargetTimer 04052 @setvar! Stealthing 04053 @setvar! StealthingReady 04054 @setvar! KeepOnTrucking 04055 hotkey 'Toggle War Only'4056 break4057 endif4058 4059 if timer DoNotMoveTimeout > 8000 or not hidden or not cooldown 'Stealth'4060 break4061 endif4062 endwhile4063 wait 2504064 if hidden4065 if EnableOverheadMessages = 14066 overhead '[ KEEP GOING! ]' 694067 else4068 overhead ' � ' 694069 endif4070 settimer NoTargetTimer 04071 endif 4072 elseif insysmsg 'You have 1 stealth steps remaining.' and hidden4073 if EnableOverheadMessages = 14074 overhead '[ SLOW!! ]' 3334075 else4076 overhead ' � ' 3334077 endif4078 settimer NoTargetTimer 04079 @setvar! Stealthing 14080 elseif insysmsg 'You have 2 stealth steps remaining.' and hidden4081 if EnableOverheadMessages = 14082 overhead '[ SLOW!]' 444083 else4084 overhead ' � ' 444085 endif4086 settimer NoTargetTimer 04087 @setvar! Stealthing 14088 elseif insysmsg 'You have 3 stealth steps remaining.' and hidden4089 if EnableOverheadMessages = 14090 overhead '[ SLOW ]' 1534091 else4092 overhead ' � ' 1534093 endif4094 settimer NoTargetTimer 04095 @setvar! Stealthing 14096 endif4097 endif4098 endif4099 4100 if insysmsg 'You have been revealed'4101 if EnableOverheadMessages = 14102 overhead '[ !! REVEALED !! ]' 1534103 else 4104 overhead '!! � !!' 1534105 endif4106 clearsysmsg 4107 hotkey 'Toggle War Only' 4108 @setvar! Stealthing 04109 @setvar! StealthingReady 04110 @setvar! KeepOnTrucking 04111 cooldown 'Hiding' 50004112 break4113 endif4114 4115 if not hidden4116 @setvar! Stealthing 04117 @setvar! StealthingReady 04118 @setvar! KeepOnTrucking 04119 hotkey 'Toggle War Only'4120 break4121 endif4122 4123 if EnablePKRadar = 14124 if insysmsg "Now tracking"4125 clearsysmsg4126 if EnableRedAlertOverhead = 14127 overhead "[ !! RED ALERT !! ]" 3374128 wait 5004129 endif4130 if not hidden4131 if not cooldown 'Hiding'4132 if targetexists4133 hotkey 'Cancel Current Target'4134 endif4135 useskill "Hiding"4136 wait 5004137 while insysmsg 'You must wait'4138 clearsysmsg4139 wait 2504140 useskill 'Hiding'4141 endwhile4142 4143 if hidden4144 // Do nothing4145 else4146 if counttype 52149 self > 04147 if not cooldown 'Smoke Bomb' and not hidden4148 clearsysmsg4149 hotkey 'Smoke Bomb'4150 wait 5004151 if insysmsg 'You must wait another'4152 if EnableOverheadMessages = 14153 overhead '[ SMOKE BOMB UNAVAILABLE ]' 3334154 endif4155 hotkey 'Toggle War Only'4156 break4157 else4158 if hidden4159 if EnableOverheadMessages = 14160 overhead '[ SMOKE BOMB! ]' 17904161 endif4162 clearsysmsg 4163 @setvar! Stealthing 14164 @setvar! StealthingReady 14165 cooldown 'Hiding' 04166 cooldown 'Stealth' 100004167 cooldown 'Smoke Bomb' SmokeBombCooldown4168 endif4169 break4170 endif4171 else4172 if EnableOverheadMessages = 14173 overhead '[ SMOKE ON COOLDOWN! ]' 334174 endif4175 hotkey 'Toggle War Only'4176 break4177 endif4178 else4179 if EnableOverheadMessages = 14180 overhead '[ NO SMOKE BOMBS ]' 3374181 endif4182 break4183 endif4184 endif4185 endif4186 else4187 if EnableOverheadMessages = 14188 wait 5004189 overhead "[ ALREADY HIDDEN! ]" 114190 endif4191 endif4192 endif4193 endif4194 4195 if EnableArcheryWarningMessage = 1 4196 if skill 'Archery' >= 504197 if findtype 'stubnose crossbow|tower guard crossbow|balestra|heavy crossbow|crossbow' hand4198 @setvar! AMMO 14199 elseif findtype 'long bow|bow|recurve bow|composite bow' hand4200 @setvar! AMMO 24201 endif4202 4203 if counttype "crossbow bolt" self < ArcheryLowAmmoWarningAmount and timer "AmmunitionTimer" > 6000 and AMMO = 14204 overhead "[ AMMO LOW! ]" 374205 settimer 'AmmunitionTimer' 04206 endif4207 4208 if counttype "arrow" self < ArcheryLowAmmoWarningAmount and timer 'AmmunitionTimer' > 6000 and AMMO = 24209 overhead "[ AMMO LOW! ]" 374210 settimer 'AmmunitionTimer' 04211 endif4212 endif4213 endif4214 4215 if EnableWeightWarningMessage = 14216 if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer WeightTimer > 60004217 if EnableOverheadMessages = 14218 overhead "[ WEIGHT WARNING... ]" 774219 settimer "WeightTimer" 04220 else4221 overhead " � " 774222 settimer "WeightTimer" 04223 endif4224 elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer WeightTimer > 60004225 if EnableOverheadMessages = 14226 overhead "[ WEIGHT WARNING! ]" 1534227 settimer "WeightTimer" 04228 else4229 overhead " � " 1534230 settimer "WeightTimer" 04231 endif4232 elseif diffweight <= RedWeightLimitDiffWeight and timer WeightTimer > 60004233 if EnableOverheadMessages = 14234 overhead "[ WEIGHT LIMIT REACHED! ]" 374235 settimer "WeightTimer" 04236 wait 5004237 else4238 overhead " � " 374239 settimer "WeightTimer" 04240 endif4241 wait 5004242 if weight > maxweight4243 if EnableDropGoldWhenOverweight = 14244 if EnableOverheadMessages = 14245 wait 10004246 overhead "[ OVERWEIGHT! ]" 3374247 endif4248 replay4249 else4250 if EnableOverheadMessages = 14251 overhead "[ OVERWEIGHT! ]" 3374252 wait 20004253 endif4254 overhead "[ STOPPING SCRIPT! ]" 884255 stop4256 endif4257 endif4258 if EnableTriggerDungeonEscapeScript = 14259 foreach EscapeScript in DungeonEscapeScriptList4260 script EscapeScript4261 endfor4262 endif4263 endif4264 endif4265 4266 if diffweight >= RedWeightLimitDiffWeight4267 @setvar! DisableVacuums 04268 endif4269 4270 if EnableGoldVacuum = 1 4271 if DisableVacuums != 14272 if findtype "gold coin" ground -1 -1 12 as droppedmoney and timer "GoldRadar" > 35004273 overhead " � " 149 droppedmoney4274 settimer "GoldRadar" 04275 endif4276 4277 while findtype "gold coin" ground -1 -1 2 as droppedmoney4278 overhead " � " 1494279 hotkey "Grab Item"4280 wft 25004281 target droppedmoney4282 wait 2504283 if insysmsg "Invalid or inaccessible item"4284 wait 5004285 @ignore droppedmoney4286 endif4287 wait 2504288 endwhile4289 endif4290 endif4291 4292 if EnableArrowCleanup = 1 4293 if skill 'Archery' > 50 and DisableVacuums != 14294 while findtype 7163|3903 ground -1 -1 2 as item4295 if timer "ArrowCleanupTimer" > 35004296 if EnableOverheadMessages = 14297 overhead '[ CLEANUP... ]' 934298 settimer "ArrowCleanupTimer" 04299 else4300 overhead ' � ' 934301 settimer "ArrowCleanupTimer" 04302 endif4303 endif4304 hotkey "Grab Item"4305 wft 10004306 target item4307 wait 2504308 endwhile4309 if findtype "quiver" self as MyQuiver and timer "QuiverTimer" > 300004310 while findtype "quiver" self as MyQuiver4311 getlabel MyQuiver MyQuiverdesc4312 wait 2504313 if 'decorative' in MyQuiverdesc4314 @ignore MyQuiver4315 wait 5004316 else4317 break4318 endif4319 endwhile4320 settimer "QuiverTimer" 04321 menu MyQuiver 04322 wait 2504323 endif4324 if findtype 7163 ground -1 -1 10 as bolt and timer "BoltCleanupRadar" > 35004325 overhead "�" 93 bolt4326 settimer "BoltCleanupRadar" 04327 endif4328 if findtype 3903 ground -1 -1 10 as arrow and timer "ArrowCleanupRadar" > 35004329 overhead "�" 37 arrow4330 settimer "ArrowCleanupRadar" 04331 endif4332 endif4333 endif4334 4335 if EnableDungeonCleanup = 1 4336 if DisableVacuums != 14337 while findtype "iron ingot%s|board%s|cut up leather|3972|3962|3963|3980|3976|3973|3974|3981" ground -1 -1 2 as item4338 if EnableOverheadMessages = 14339 if timer "DungeonCleanup" > 15004340 overhead '[ CLEANUP... ]' 4204341 settimer "DungeonCleanup" 04342 endif4343 else4344 if timer "DungeonCleanup" > 15004345 overhead ' � ' 4204346 settimer "DungeonCleanup" 04347 endif4348 endif4349 hotkey "Grab Item"4350 wft 10004351 target item4352 wait 2504353 endwhile4354 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" > 35004355 overhead " � " 420 dungeonjunk4356 settimer "DungeonCleanupRadar" 04357 endif4358 endif4359 endif4360 4361 if EnableDropGoldWhenOverweight = 14362 if weight > maxweight4363 if timer OverweightMessageTimer > 45004364 overhead "[ OVERWEIGHT! ]" 344365 settimer OverweightMessageTimer 04366 endif4367 if DropGoldAmount != 04368 clearignore4369 @setvar! DisableVacuums 14370 wait 2504371 if EnablePutLootinLockBox = 14372 if findtype "wooden box" self as lockbox4373 if findtype "copper key" self as key4374 getlabel lockbox lockboxlabel4375 wait 1004376 if "items" in lockboxlabel4377 // Do nothing4378 else4379 dclick key4380 wft 15004381 target lockbox4382 if EnableOverheadMessages = 14383 overhead "[loot box unlocked]" 21144384 endif4385 wait 5004386 if insysmsg "It appears to be locked."4387 dclick key4388 wft 15004389 target lockbox4390 wait 2504391 endif4392 endif4393 elseif EnableOverheadMessages = 14394 overhead "[ NO LOCKBOX KEY! ]" 3374395 endif4396 endif4397 endif4398 while weight > maxweight4399 if findtype "gold coin" self as easycomeeasygo4400 lift easycomeeasygo DropGoldAmount4401 droprelloc 0 04402 getlabel backpack packdesc4403 if EnableOverheadMessages = 14404 overhead "[ DROPPING GOLD... ]" 1494405 endif4406 wait 2504407 if insysmsg "cannot drop anything"4408 drop backpack -1 -1 -14409 break4410 endif4411 wait 2504412 else4413 break4414 endif4415 if diffhits > 304416 break4417 endif4418 endwhile4419 endif4420 endif4421 endif4422 4423 if EnableWizardHatStealthTrick = 14424 if find MagicWizardHat backpack and find MyHelmet self4425 if hidden and stam = maxstam4426 if EnableOverheadMessages = 14427 overhead '[ HAT TRICK ]' 1114428 endif4429 dclick MagicWizardHat4430 wait 6504431 dclick MyHelmet4432 getlabel backpack backpacklabel4433 endif4434 if not findlayer self head and find MyHelmet backpack4435 dclick MyHelmet4436 wait 5004437 endif4438 endif4439 if find MyHelmet backpack 4440 if not find MagicWizardHat backpack4441 dclick MyHelmet4442 wait 500 4443 endif4444 endif4445 endif4446 4447 if EnableIDandRecycleMagicItems = 1 and not findtype "3997|4148|4032|7864" self4448 @setvar! DisableRecycler 14449 getlabel backpack backpacklabel4450 else4451 @setvar! DisableRecycler 04452 endif4453 4454 if EnableIDandRecycleMagicItems = 1 4455 if DisableRecycler != 1 and diffweight < IDandRecycleWeightdiff and timer MagicRecyclerCooldown > 300004456 if findtype "3997|4148|4032|7864" self as RecyclingTool4457 hotkey "Cancel Current Target"4458 settimer MagicRecyclerCooldown 04459 4460 if not find MyContainerIDWand self and findtype 20495 self as NewContainterIDWand4461 @setvar! MyContainerIDWand NewContainterIDWand4462 endif4463 4464 if skill "Item ID" = 120 or find MyContainerIDWand self4465 clearsysmsg4466 clearignore4467 4468 if EnablePutLootinLockBox = 1 and EnablePutLootinLockBoxFailed != 14469 if findtype "wooden box" self as lockbox4470 if findtype "copper key" self as key4471 getlabel lockbox lockboxlabel4472 wait 2504473 @setvar! EnablePutLootinLockBoxFailed 04474 if 'items' in lockboxlabel4475 // Do nothing4476 else4477 dclick key4478 wft 15004479 target lockbox4480 wait 2504481 overhead '[loot box unlocked]' 21144482 endif4483 else4484 if EnableOverheadMessages = 14485 overhead '[ KEY IS MISSING! ]' 3374486 @setvar! EnablePutLootinLockBox 04487 wait 2504488 endif4489 endif4490 else4491 if EnableOverheadMessages = 14492 overhead '[ NO LOCKBOX FOUND! ]' 3374493 @setvar! EnablePutLootinLockBoxFailed 14494 wait 2504495 endif4496 endif4497 endif4498 4499 while cooldown "Hiding" or cooldown "Stealth"4500 if EnableOverheadMessages = 1 and timer SkillCooldownTimer > 35004501 overhead '[ WAITING TO ID ITEMS... ]' 21174502 settimer SkillCooldownTimer 04503 endif4504 wait 1004505 if not cooldown 'Hiding' and not cooldown 'Stealth'4506 break4507 endif4508 endwhile4509 4510 if skill "Item ID" = 1204511 skill "Item ID"4512 wait 5004513 elseif find MyContainerIDWand self4514 dclick MyContainerIDWand4515 wait 5004516 endif4517 4518 if insysmsg 'What do you wish to appraise and identify?'4519 if EnablePutLootinLockBox = 14520 if findtype 'wooden box' self as lockbox4521 target lockbox4522 else 4523 overhead '[ NO LOCKBOX FOUND ]' 3374524 @setvar! EnablePutLootinLockBoxFailed 14525 endif4526 wait 5004527 elseif EnablePutLootinLockBox = 04528 overhead "[ SELECT CONTAINER TO ID... ]" 884529 while targetexists4530 wait 1004531 endwhile4532 endif4533 endif4534 wait 5004535 if insysmsg "No unidentified items found."4536 if EnableOverheadMessages = 14537 wait 10004538 overhead "[ NO ITEMS TO ID ]" 3374539 endif4540 elseif insysmsg "That is not a container."4541 if EnableOverheadMessages = 14542 wait 10004543 overhead "[ INVALID CONTAINER ]" 3374544 endif4545 elseif insysmsg "You must wait a few moments to use another skill"4546 while cooldown 'Hiding' or cooldown 'Stealth'4547 if EnableOverheadMessages = 1 and timer SkillCooldownTimer > 35004548 settimer SkillCooldownTimer 04549 overhead "[ WAITING TO ID ITEMS... ]" 21174550 endif4551 wait 1004552 if not cooldown 'Hiding' and not cooldown 'Stealth'4553 break4554 endif4555 endwhile4556 if skill "Item ID" = 1204557 skill "Item ID"4558 wait 5004559 elseif find MyContainerIDWand self4560 dclick MyContainerIDWand4561 wait 5004562 endif4563 if insysmsg 'What do you wish to appraise and identify?'4564 if EnablePutLootinLockBox = 14565 if findtype 'wooden box' self as lockbox4566 target lockbox4567 else 4568 overhead '[ NO LOCKBOX FOUND ]' 3374569 @setvar! EnablePutLootinLockBoxFailed 14570 endif4571 wait 5004572 elseif EnablePutLootinLockBox = 04573 overhead "[ SELECT CONTAINER TO ID... ]" 884574 while targetexists4575 wait 1004576 endwhile4577 endif4578 endif4579 wait 5004580 if insysmsg "No unidentified items found."4581 if EnableOverheadMessages = 14582 wait 10004583 overhead "[ NO ITEMS TO ID ]" 3374584 endif4585 elseif insysmsg "That is not a container."4586 if EnableOverheadMessages = 14587 wait 10004588 overhead "[ INVALID CONTAINER ]" 3374589 endif4590 else 4591 if EnableOverheadMessages = 14592 overhead "[ IDENTIFYING ITEMS... ]" 884593 endif4594 endif4595 else4596 if EnableOverheadMessages = 14597 overhead "[ IDENTIFYING ITEMS... ]" 884598 endif4599 endif4600 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 UnidentifiedItem4601 getlabel UnidentifiedItem UnidentifiedItemlabel4602 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 UnidentifiedItemlabel4603 @ignore UnidentifiedItem4604 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 UnidentifiedItemlabel4605 while not gumpexists 9490951014606 while queued4607 // Do nothing4608 endwhile4609 dclick RecyclingTool4610 waitforgump 949095101 10004611 endwhile4612 while not ingump "Recycle Single Item" 9490951014613 gumpresponse 24614 waitforgump 949095101 10004615 endwhile4616 if EnableOverheadMessages = 14617 if timer RecyclingJunkTimer > 40004618 overhead '[ RECYCLING JUNK... ]' 11824619 settimer RecyclingJunkTimer 04620 endif4621 endif4622 gumpresponse 34623 waitforgump 949095101 10004624 target UnidentifiedItem4625 getlabel backpack backpacklabel4626 wait 2504627 gumpclose 9490951014628 else4629 @ignore UnidentifiedItem4630 endif4631 4632 if skill "Item ID" = 1204633 // Do nothing4634 elseif not find MyContainerIDWand self4635 break4636 endif4637 endwhile4638 if gumpexists 9490951014639 gumpclose 9490951014640 endif4641 else4642 if EnableOverheadMessages = 14643 overhead '[ NO CONTAINER ID WAND ]' 3374644 endif4645 endif4646 if targetexists4647 hotkey "Cancel Current Target"4648 endif4649 4650 if EnableAutoConsumeArcaneEssence = 1 4651 if findtype 3901 self as MyArcaneEssence4652 dclick MyArcaneEssence4653 wft 15004654 target self4655 if EnableOverheadMessages = 14656 overhead '[ CONSUMING ESSENCE... ]' 124657 endif4658 wait 5004659 endif4660 endif4661 4662 if DropResourcesAfterRecycle = 14663 while findtype "iron ingot%s|board%s|cut up leather|cut%s% of raw ribs|raw chicken leg%s%|feather%s" self as ResourcestoDrop4664 if diffhits > 304665 break4666 endif4667 if EnableOverheadMessages = 14668 if timer "DungeonCleanup" > 25004669 overhead '[ DROPPING RESOURCES... ]' 4204670 settimer "DungeonCleanup" 04671 endif4672 endif4673 lift ResourcestoDrop 600004674 drop 04675 wait 5004676 endwhile4677 endif4678 4679 if EnableOverheadMessages = 14680 overhead '[ RECYCLE COMPLETE! ]' 21144681 endif4682 4683 settimer MagicRecyclerCooldown 04684 hotkey "Cancel Current Target"4685 4686 if EnablePutLootinLockBox = 14687 if findtype "wooden box" self as lockbox4688 if findtype "copper key" self as key4689 getlabel lockbox lockboxlabel4690 wait 2504691 if 'items' in lockboxlabel4692 dclick key4693 wft 15004694 target lockbox4695 wait 2504696 overhead '[loot box locked]' 21174697 else4698 // Do nothing4699 endif4700 else4701 if EnableOverheadMessages = 14702 overhead '[ KEY IS MISSING! ]' 3374703 @setvar! EnablePutLootinLockBox 04704 wait 2504705 endif4706 endif4707 else4708 if EnableOverheadMessages = 14709 overhead '[ NO LOCKBOX FOUND! ]' 3374710 @setvar! EnablePutLootinLockBox 04711 wait 2504712 endif4713 endif4714 endif4715 else4716 if EnableOverheadMessages = 14717 overhead '[ NO RECYCLING TOOL! ]' 3374718 endif4719 @setvar! DisableRecycler 14720 endif4721 endif4722 endif4723 4724 if EnableUsePotionKegs = 14725 if findtype 'empty bottle%s%' self and findtype 'keg' self and timer 'PotionKegPVPCooldown' > 300004726 if not timerexists PotionKegTimer4727 createtimer PotionKegTimer4728 settimer PotionKegTimer 50004729 endif4730 @setvar! PotionStockCheck 04731 while PotionStockCheck < 8 and findtype 'empty bottle%s%' self4732 @setvar! PotionAmounttoFill 04733 if PotionStockCheck = 04734 if ExplosionPotionAmount != 04735 @setvar! PotionType 38534736 @setvar! KegColour 4194737 @setvar! PotionAmounttoFill ExplosionPotionAmount4738 endif4739 @setvar! PotionStockCheck 14740 elseif PotionStockCheck = 14741 if HealingPotionAmount != 04742 @setvar! PotionType 38524743 @setvar! KegColour 2534744 @setvar! PotionAmounttoFill HealingPotionAmount4745 endif4746 @setvar! PotionStockCheck 24747 elseif PotionStockCheck = 24748 if CurePotionAmount != 04749 @setvar! PotionType 38474750 @setvar! KegColour 444751 @setvar! PotionAmounttoFill CurePotionAmount4752 endif4753 @setvar! PotionStockCheck 34754 elseif PotionStockCheck = 34755 if RefreshPotionAmount != 04756 @setvar! PotionType 38514757 @setvar! KegColour 374758 @setvar! PotionAmounttoFill RefreshPotionAmount4759 endif4760 @setvar! PotionStockCheck 44761 elseif PotionStockCheck = 44762 if StrengthPotionAmount != 04763 @setvar! PotionType 38494764 @setvar! KegColour 9564765 @setvar! PotionAmounttoFill StrengthPotionAmount4766 endif4767 @setvar! PotionStockCheck 54768 elseif PotionStockCheck = 54769 if AgilityPotionAmount != 04770 @setvar! PotionType 38484771 @setvar! KegColour 934772 @setvar! PotionAmounttoFill AgilityPotionAmount4773 endif4774 @setvar! PotionStockCheck 64775 elseif PotionStockCheck = 64776 if ResistPotionAmount != 04777 @setvar! PotionType 38464778 @setvar! KegColour 11094779 @setvar! PotionAmounttoFill ResistPotionAmount4780 endif4781 @setvar! PotionStockCheck 74782 elseif PotionStockCheck = 74783 if PoisonPotionAmount != 04784 @setvar! PotionType 38504785 @setvar! KegColour 3634786 @setvar! PotionAmounttoFill PoisonPotionAmount4787 endif4788 @setvar! PotionStockCheck 84789 endif4790 if PotionAmounttoFill != 04791 while counttype PotionType self < PotionAmounttoFill4792 if not findtype 'empty bottle%s%' self4793 if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50004794 overhead "[ NO EMPTY BOTTLES... ]" 3374795 settimer 'PotionKegTimer' 04796 endif4797 break4798 endif4799 if diffhits > 104800 break4801 endif4802 if findtype 'keg' self KegColour as myKeg4803 dclick myKeg4804 wait 2504805 if EnableOverheadMessages = 14806 if timer 'PotionKegTimer' > 20004807 overhead '[ FILLING POTS... ]' KegColour4808 settimer 'PotionKegTimer' 04809 endif4810 endif4811 else4812 if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50004813 overhead "[ NO KEG TO USE... ]" KegColour4814 settimer 'PotionKegTimer' 04815 endif4816 break4817 endif4818 if insysmsg "You have been in combat with another player"4819 settimer "PotionKegPVPCooldown" 04820 break4821 endif4822 endwhile4823 if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self4824 if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 50004825 overhead "[ NO EMPTY BOTTLES... ]" 3374826 settimer 'PotionKegTimer' 04827 endif4828 break4829 endif4830 endif4831 endwhile4832 endif4833 endif4834 4835 if insysmsg 'You feel ready to continue stealthing.'4836 @setvar! Stealthing 14837 @setvar! KeepOnTrucking 14838 endif4839 4840 if insysmsg 'You will automatically stealth when out of steps.'4841 if EnableOverheadMessages = 14842 overhead '[ STEALTH RENEWED ]' 694843 else4844 overhead ' � ' 694845 endif4846 @setvar! KeepOnTrucking 14847 endif4848 4849 if not hidden4850 @setvar! Stealthing 04851 @setvar! StealthingReady 04852 @setvar! KeepOnTrucking 04853 hotkey 'Toggle War Only'4854 break4855 endif4856 4857 if EnableOverheadWarnings = 14858 if cooldown 'Stealth'4859 if insysmsg 'You have 0 stealth steps remaining.' and hidden4860 settimer DoNotMoveTimeout 04861 clearsysmsg 4862 while not insysmsg 'You feel ready to continue stealthing.'4863 if timer DoNotMoveTimer > 5004864 if EnableOverheadMessages = 14865 overhead '[ !!! STOP !!! ]' 374866 else4867 overhead ' � ' 374868 endif4869 settimer NoTargetTimer 04870 settimer DoNotMoveTimer 04871 endif4872 4873 if not hidden4874 if EnableOverheadMessages = 14875 overhead '[ STEALTH ENDED! ]' 21174876 else4877 overhead ' � ' 21174878 endif4879 settimer NoTargetTimer 04880 @setvar! Stealthing 04881 @setvar! StealthingReady 04882 @setvar! KeepOnTrucking 04883 hotkey 'Toggle War Only'4884 break4885 endif4886 4887 if timer DoNotMoveTimeout > 8000 or not hidden or not cooldown 'Stealth'4888 break4889 endif4890 endwhile4891 wait 2504892 if hidden4893 if EnableOverheadMessages = 14894 overhead '[ KEEP GOING! ]' 694895 else4896 overhead ' � ' 694897 endif4898 settimer NoTargetTimer 04899 endif 4900 elseif insysmsg 'You have 1 stealth steps remaining.' and hidden4901 if EnableOverheadMessages = 14902 overhead '[ SLOW!! ]' 3334903 else4904 overhead ' � ' 3334905 endif4906 settimer NoTargetTimer 04907 @setvar! Stealthing 14908 elseif insysmsg 'You have 2 stealth steps remaining.' and hidden4909 if EnableOverheadMessages = 14910 overhead '[ SLOW!]' 444911 else4912 overhead ' � ' 444913 endif4914 settimer NoTargetTimer 04915 @setvar! Stealthing 14916 elseif insysmsg 'You have 3 stealth steps remaining.' and hidden4917 if EnableOverheadMessages = 14918 overhead '[ SLOW ]' 1534919 else4920 overhead ' � ' 1534921 endif4922 settimer NoTargetTimer 04923 @setvar! Stealthing 14924 endif4925 endif4926 endif4927 endwhile4928 4929 ////////////////////////4930 // END STEALTH LOOP //4931 ////////////////////////4932 4933 4934 getlabel CurrentTarget descTarget4935 4936 4937 ///////////////////////////4938 // ATTACK TARGET LOOP: //4939 ///////////////////////////4940 4941 while hidden and not dead CurrentTarget and find CurrentTarget ground -1 -1 12 and TargetAcquired = 1 and Stealthing = 14942 if insysmsg 'You have been revealed'4943 if EnableOverheadMessages = 14944 overhead '[ !! REVEALED !! ]' 1534945 else 4946 overhead '!! � !!' 1534947 endif4948 clearsysmsg 4949 hotkey 'Toggle War Only' 4950 @setvar! Stealthing 04951 @setvar! StealthingReady 04952 @setvar! KeepOnTrucking 04953 cooldown 'Hiding' 50004954 break4955 endif4956 4957 if not hidden4958 @setvar! Stealthing 04959 @setvar! StealthingReady 04960 @setvar! KeepOnTrucking 04961 hotkey 'Toggle War Only'4962 break4963 endif4964 4965 if insysmsg 'You begin to move quietly.'4966 clearsysmsg4967 @setvar! KeepOnTrucking 04968 endif4969 4970 if insysmsg 'You feel ready to continue stealthing.'4971 if timer KeepOnTruckingTimer > 5004972 if EnableOverheadMessages = 14973 overhead '[ KEEP GOING! ]' 694974 else4975 overhead ' � ' 694976 endif4977 settimer KeepOnTruckingTimer 04978 endif4979 clearsysmsg4980 settimer NoTargetTimer 04981 @setvar! KeepOnTrucking 14982 endif4983 4984 if insysmsg 'You will automatically stealth when out of steps.'4985 if timer KeepOnTruckingTimer > 2000 and not find CurrentTarget ground -1 -1 TargetAttackRange4986 if EnableOverheadMessages = 14987 overhead '[ STEALTH RENEWED ]' 694988 else4989 overhead ' � ' 694990 endif4991 settimer KeepOnTruckingTimer 04992 endif4993 settimer NoTargetTimer 04994 @setvar! KeepOnTrucking 14995 wait 2504996 getlabel backpack backpacklabel4997 clearsysmsg4998 endif4999 5000 if not hidden5001 @setvar! Stealthing 05002 @setvar! StealthingReady 05003 @setvar! KeepOnTrucking 05004 hotkey 'Toggle War Only'5005 break5006 endif5007 5008 if EnableOverheadWarnings = 15009 if cooldown 'Stealth'5010 if insysmsg 'You have 0 stealth steps remaining.' and hidden5011 settimer DoNotMoveTimeout 05012 clearsysmsg 5013 while not insysmsg 'You feel ready to continue stealthing.'5014 if timer DoNotMoveTimer > 5005015 if EnableOverheadMessages = 15016 overhead '[ !!! STOP !!! ]' 375017 else5018 overhead ' � ' 375019 endif5020 settimer NoTargetTimer 05021 settimer DoNotMoveTimer 05022 endif5023 5024 if not hidden5025 if EnableOverheadMessages = 15026 overhead '[ STEALTH ENDED! ]' 21175027 else5028 overhead ' � ' 21175029 endif5030 settimer NoTargetTimer 05031 @setvar! Stealthing 05032 @setvar! StealthingReady 05033 @setvar! KeepOnTrucking 05034 hotkey 'Toggle War Only'5035 break5036 endif5037 5038 if timer DoNotMoveTimeout > 8000 or not hidden or not cooldown 'Stealth'5039 break5040 endif5041 endwhile5042 wait 2505043 if hidden5044 if EnableOverheadMessages = 15045 overhead '[ KEEP GOING! ]' 695046 else5047 overhead ' � ' 695048 endif5049 settimer NoTargetTimer 05050 endif 5051 elseif insysmsg 'You have 1 stealth steps remaining.' and hidden5052 if EnableOverheadMessages = 15053 overhead '[ SLOW!! ]' 3335054 else5055 overhead ' � ' 3335056 endif5057 settimer NoTargetTimer 05058 @setvar! Stealthing 15059 elseif insysmsg 'You have 2 stealth steps remaining.' and hidden5060 if EnableOverheadMessages = 15061 overhead '[ SLOW!]' 445062 else5063 overhead ' � ' 445064 endif5065 settimer NoTargetTimer 05066 @setvar! Stealthing 15067 elseif insysmsg 'You have 3 stealth steps remaining.' and hidden5068 if EnableOverheadMessages = 15069 overhead '[ SLOW ]' 1535070 else5071 overhead ' � ' 1535072 endif5073 settimer NoTargetTimer 05074 @setvar! Stealthing 15075 endif5076 endif5077 endif5078 5079 if timer CheckTargetTimer > 10005080 settimer CheckTargetTimer 05081 clearsysmsg 5082 hotkey "Target Closest Grey Monster"5083 wait 5005084 @setvar! TargetCheck lasttarget5085 wait 1505086 if insysmsg "no one matching" or TargetCheck != CurrentTarget5087 break5088 endif5089 endif5090 5091 if skill 'Archery' >= 505092 while find CurrentTarget ground -1 -1 TargetAttackRange and hidden and Stealthing = 15093 getlabel CurrentTarget descTarget5094 if find CurrentTarget ground -1 -1 TargetAttackRange5095 if cooldown "Hiding"5096 if timer TargetTimer > 30005097 if "Paragon" in descTarget5098 if EnableOverheadMessages = 15099 overhead "[ PARAGON! ]" 12 CurrentTarget5100 endif5101 overhead " � " 12 CurrentTarget5102 else5103 if EnableOverheadMessages = 15104 overhead "[ TARGET ]" 333 CurrentTarget5105 endif5106 overhead " � " 333 CurrentTarget5107 endif5108 settimer TargetTimer 05109 endif5110 elseif cooldown "Stealth"5111 if timer TargetTimer > 30005112 if "Paragon" in descTarget5113 if EnableOverheadMessages = 15114 overhead "[ PARAGON! ]" 12 CurrentTarget5115 endif5116 overhead " � " 12 CurrentTarget5117 else5118 if EnableOverheadMessages = 15119 overhead "[ TARGET ]" 44 CurrentTarget5120 endif5121 overhead " � " 44 CurrentTarget5122 endif5123 settimer TargetTimer 05124 endif5125 else5126 if timer TargetTimer > 30005127 if "Paragon" in descTarget5128 if EnableOverheadMessages = 15129 overhead "[ PARAGON! ]" 12 CurrentTarget5130 endif5131 overhead " � " 12 CurrentTarget5132 else5133 if EnableOverheadMessages = 15134 overhead "[ TARGET ]" 69 CurrentTarget5135 endif5136 overhead " � " 69 CurrentTarget5137 endif5138 settimer TargetTimer 05139 endif5140 endif5141 else 5142 if timer TargetTimer > 30005143 if "Paragon" in descTarget5144 if EnableOverheadMessages = 15145 overhead "[ PARAGON! ]" 12 CurrentTarget5146 endif5147 overhead " � " 12 CurrentTarget5148 else5149 if EnableOverheadMessages = 15150 overhead "[ TARGET ]" 153 CurrentTarget5151 endif5152 overhead " � " 153 CurrentTarget5153 endif5154 settimer TargetTimer 05155 endif5156 endif5157 5158 if find CurrentTarget ground -1 -1 TargetAttackRange and not warmode5159 if not cooldown "Hiding"5160 if EnableOverheadMessages = 1 and timer StabDistanceTimer > 25005161 overhead "[ TAB TO STAB! ]" 695162 settimer StabDistanceTimer 05163 endif5164 else5165 if timer StealthCooldownTimer > 32005166 if EnableOverheadMessages = 15167 overhead "[ WAITING FOR STEALTH... ]" 1535168 settimer StealthCooldownTimer 05169 else5170 overhead " � " 1535171 settimer StealthCooldownTimer 05172 endif5173 endif5174 endif5175 endif5176 5177 if dead CurrentTarget or not find CurrentTarget ground -1 -1 TargetAttackRange5178 break5179 endif5180 5181 if insysmsg 'You have been revealed'5182 if EnableOverheadMessages = 15183 overhead '[ !! REVEALED !! ]' 1535184 else 5185 overhead '!! � !!' 1535186 endif5187 clearsysmsg 5188 hotkey 'Toggle War Only' 5189 @setvar! Stealthing 05190 @setvar! StealthingReady 05191 @setvar! KeepOnTrucking 05192 cooldown 'Hiding' 50005193 break5194 endif5195 5196 if not hidden5197 @setvar! Stealthing 05198 @setvar! StealthingReady 05199 @setvar! KeepOnTrucking 05200 hotkey 'Toggle War Only'5201 break5202 endif5203 5204 if diffweight >= RedWeightLimitDiffWeight5205 @setvar! DisableVacuums 05206 endif5207 5208 if EnableGoldVacuum = 1 5209 if DisableVacuums != 15210 if findtype "gold coin" ground -1 -1 12 as droppedmoney and timer "GoldRadar" > 35005211 overhead " � " 149 droppedmoney5212 settimer "GoldRadar" 05213 endif5214 while findtype "gold coin" ground -1 -1 2 as droppedmoney5215 overhead " � " 1495216 hotkey "Grab Item"5217 wft 25005218 target droppedmoney5219 wait 2505220 if insysmsg "Invalid or inaccessible item"5221 wait 5005222 @ignore droppedmoney5223 endif5224 wait 2505225 endwhile5226 endif5227 endif5228 5229 if EnableArrowCleanup = 1 5230 if skill 'Archery' > 50 and DisableVacuums != 15231 while findtype 7163|3903 ground -1 -1 2 as item5232 if timer "ArrowCleanupTimer" > 35005233 if EnableOverheadMessages = 15234 overhead '[ CLEANUP... ]' 935235 settimer "ArrowCleanupTimer" 05236 else5237 overhead ' � ' 935238 settimer "ArrowCleanupTimer" 05239 endif5240 endif5241 hotkey "Grab Item"5242 wft 10005243 target item5244 wait 2505245 endwhile5246 if findtype "quiver" self as MyQuiver and timer "QuiverTimer" > 300005247 while findtype "quiver" self as MyQuiver5248 getlabel MyQuiver MyQuiverdesc5249 wait 2505250 if 'decorative' in MyQuiverdesc5251 @ignore MyQuiver5252 wait 5005253 else5254 break5255 endif5256 endwhile5257 settimer "QuiverTimer" 05258 menu MyQuiver 05259 wait 2505260 endif5261 if findtype 7163 ground -1 -1 10 as bolt and timer "BoltCleanupRadar" > 35005262 overhead "�" 93 bolt5263 settimer "BoltCleanupRadar" 05264 endif5265 if findtype 3903 ground -1 -1 10 as arrow and timer "ArrowCleanupRadar" > 35005266 overhead "�" 37 arrow5267 settimer "ArrowCleanupRadar" 05268 endif5269 endif5270 endif5271 5272 if EnableDungeonCleanup = 1 5273 if DisableVacuums != 15274 while findtype "iron ingot%s|board%s|cut up leather|3972|3962|3963|3980|3976|3973|3974|3981" ground -1 -1 2 as item5275 if EnableOverheadMessages = 15276 if timer "DungeonCleanup" > 15005277 overhead '[ CLEANUP... ]' 4205278 settimer "DungeonCleanup" 05279 endif5280 else5281 if timer "DungeonCleanup" > 15005282 overhead ' � ' 4205283 settimer "DungeonCleanup" 05284 endif5285 endif5286 hotkey "Grab Item"5287 wft 10005288 target item5289 wait 2505290 endwhile5291 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" > 35005292 overhead " � " 420 dungeonjunk5293 settimer "DungeonCleanupRadar" 05294 endif5295 endif5296 endif5297 5298 if EnablePKRadar = 15299 if insysmsg "Now tracking"5300 clearsysmsg5301 if EnableRedAlertOverhead = 15302 overhead "[ !! RED ALERT !! ]" 3375303 wait 5005304 endif5305 if not hidden5306 if not cooldown 'Hiding'5307 if targetexists5308 hotkey 'Cancel Current Target'5309 endif5310 useskill "Hiding"5311 wait 5005312 while insysmsg 'You must wait'5313 clearsysmsg5314 wait 2505315 useskill 'Hiding'5316 endwhile5317 if hidden5318 // Do nothing5319 else5320 if counttype 52149 self > 05321 if not cooldown 'Smoke Bomb' and not hidden5322 clearsysmsg5323 hotkey 'Smoke Bomb'5324 wait 5005325 if insysmsg 'You must wait another'5326 if EnableOverheadMessages = 15327 overhead '[ SMOKE BOMB UNAVAILABLE ]' 3335328 endif5329 hotkey 'Toggle War Only'5330 break5331 else5332 if hidden5333 if EnableOverheadMessages = 15334 overhead '[ SMOKE BOMB! ]' 17905335 endif5336 clearsysmsg 5337 @setvar! Stealthing 15338 @setvar! StealthingReady 15339 cooldown 'Hiding' 05340 cooldown 'Stealth' 100005341 cooldown 'Smoke Bomb' SmokeBombCooldown5342 endif5343 break5344 endif5345 else5346 if EnableOverheadMessages = 15347 overhead '[ SMOKE ON COOLDOWN! ]' 335348 endif5349 hotkey 'Toggle War Only'5350 break5351 endif5352 else5353 if EnableOverheadMessages = 15354 overhead '[ NO SMOKE BOMBS ]' 3375355 endif5356 break5357 endif5358 endif5359 endif5360 else5361 if EnableOverheadMessages = 15362 wait 5005363 overhead "[ ALREADY HIDDEN! ]" 115364 endif5365 wait 5005366 endif5367 wait 5005368 endif5369 endif5370 5371 if insysmsg 'You begin to move quietly.'5372 clearsysmsg5373 @setvar! KeepOnTrucking 05374 cooldown 'Stealth' 100005375 endif5376 5377 if insysmsg 'You feel ready to continue stealthing.'5378 if timer KeepOnTruckingTimer > 5005379 if EnableOverheadMessages = 15380 overhead '[ KEEP GOING! ]' 695381 else5382 overhead ' � ' 695383 endif5384 settimer KeepOnTruckingTimer 05385 endif5386 settimer NoTargetTimer 05387 @setvar! KeepOnTrucking 15388 endif5389 5390 if insysmsg 'You will automatically stealth when out of steps.'5391 if timer KeepOnTruckingTimer > 2000 and not find CurrentTarget ground -1 -1 TargetAttackRange5392 if EnableOverheadMessages = 15393 overhead '[ STEALTH RENEWED ]' 695394 else5395 overhead ' � ' 695396 endif5397 settimer KeepOnTruckingTimer 05398 endif5399 settimer NoTargetTimer 05400 @setvar! KeepOnTrucking 15401 wait 2505402 getlabel backpack backpacklabel5403 endif5404 5405 if not hidden5406 @setvar! Stealthing 05407 @setvar! StealthingReady 05408 @setvar! KeepOnTrucking 05409 hotkey 'Toggle War Only'5410 break5411 endif5412 5413 if EnableOverheadWarnings = 15414 if cooldown 'Stealth'5415 if insysmsg 'You have 0 stealth steps remaining.' and hidden5416 settimer DoNotMoveTimeout 05417 clearsysmsg 5418 while not insysmsg 'You feel ready to continue stealthing.'5419 if timer DoNotMoveTimer > 5005420 if EnableOverheadMessages = 15421 overhead '[ !!! STOP !!! ]' 375422 else5423 overhead ' � ' 375424 endif5425 settimer NoTargetTimer 05426 settimer DoNotMoveTimer 05427 endif5428 5429 if not hidden5430 if EnableOverheadMessages = 15431 overhead '[ STEALTH ENDED! ]' 21175432 else5433 overhead ' � ' 21175434 endif5435 settimer NoTargetTimer 05436 @setvar! Stealthing 05437 @setvar! StealthingReady 05438 @setvar! KeepOnTrucking 05439 hotkey 'Toggle War Only'5440 break5441 endif5442 5443 if timer DoNotMoveTimeout > 8000 or not hidden or not cooldown 'Stealth'5444 break5445 endif5446 endwhile5447 wait 2505448 if hidden5449 if EnableOverheadMessages = 15450 overhead '[ KEEP GOING! ]' 695451 else5452 overhead ' � ' 695453 endif5454 settimer NoTargetTimer 05455 endif 5456 elseif insysmsg 'You have 1 stealth steps remaining.' and hidden5457 if EnableOverheadMessages = 15458 overhead '[ SLOW!! ]' 3335459 else5460 overhead ' � ' 3335461 endif5462 settimer NoTargetTimer 05463 @setvar! Stealthing 15464 elseif insysmsg 'You have 2 stealth steps remaining.' and hidden5465 if EnableOverheadMessages = 15466 overhead '[ SLOW!]' 445467 else5468 overhead ' � ' 445469 endif5470 settimer NoTargetTimer 05471 @setvar! Stealthing 15472 elseif insysmsg 'You have 3 stealth steps remaining.' and hidden5473 if EnableOverheadMessages = 15474 overhead '[ SLOW ]' 1535475 else5476 overhead ' � ' 1535477 endif5478 settimer NoTargetTimer 05479 @setvar! Stealthing 15480 endif5481 endif5482 endif5483 5484 if EnableWeaponStances != 0 and findtype "archery codex" self as MyCodex5485 if not gumpexists 2016719803 and EnableWeaponCodexHotbar = 15486 while not gumpexists 10666475535487 say "[CodexHotBar"5488 wait 2505489 if gumpexists 20167198035490 break5491 endif5492 endwhile5493 endif5494 5495 getlabel MyCodex MyCodexDesc5496 wait 2505497 5498 if SwitchToArcaneStance = 15499 if "Arcane" in MyCodexDesc5500 // Do nothing5501 else5502 yell "[ArcheryAmmunition1"5503 settimer "WeaponCodexTimer" 05504 wait 2505505 endif5506 elseif SwitchToFowlingStance = 15507 if "Fowling" in MyCodexDesc5508 // Do nothing5509 else5510 yell "[ArcheryAmmunition2"5511 settimer "WeaponCodexTimer" 05512 wait 2505513 endif5514 elseif SwitchToIncendiaryStance = 15515 if "Incendiary" in MyCodexDesc5516 // Do nothing5517 else5518 yell "[ArcheryAmmunition3"5519 settimer "WeaponCodexTimer" 05520 wait 2505521 endif5522 elseif SwitchToLongshotStance = 1 5523 if "Longshot" in MyCodexDesc5524 // Do nothing5525 else5526 yell "[ArcheryAmmunition4"5527 settimer "WeaponCodexTimer" 05528 wait 2505529 endif5530 elseif SwitchToMaimingStance = 15531 if "Maiming" in MyCodexDesc5532 // Do nothing5533 else5534 yell "[ArcheryAmmunition5"5535 settimer "WeaponCodexTimer" 05536 wait 2505537 endif5538 endif5539 endif5540 5541 if EnableArcheryWarningMessage = 1 and skill 'Archery' >= 505542 if findtype 'stubnose crossbow|tower guard crossbow|balestra|heavy crossbow|crossbow' hand5543 @setvar! AMMO 15544 elseif findtype 'long bow|bow|recurve bow|composite bow' hand5545 @setvar! AMMO 25546 endif5547 5548 if counttype "crossbow bolt" self < ArcheryLowAmmoWarningAmount and timer "AmmunitionTimer" > 6000 and AMMO = 15549 overhead "[ AMMO LOW! ]" 375550 settimer 'AmmunitionTimer' 05551 endif5552 5553 if counttype "arrow" self < ArcheryLowAmmoWarningAmount and timer 'AmmunitionTimer' > 6000 and AMMO = 25554 overhead "[ AMMO LOW! ]" 375555 settimer 'AmmunitionTimer' 05556 endif5557 endif5558 5559 if EnableWeightWarningMessage = 15560 if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer WeightTimer > 60005561 if EnableOverheadMessages = 15562 overhead "[ WEIGHT WARNING... ]" 775563 settimer "WeightTimer" 05564 else5565 overhead " � " 775566 settimer "WeightTimer" 05567 endif5568 elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer WeightTimer > 60005569 if EnableOverheadMessages = 15570 overhead "[ WEIGHT WARNING! ]" 1535571 settimer "WeightTimer" 05572 else5573 overhead " � " 1535574 settimer "WeightTimer" 05575 endif5576 elseif diffweight <= RedWeightLimitDiffWeight and timer WeightTimer > 60005577 if EnableOverheadMessages = 15578 overhead "[ WEIGHT LIMIT REACHED! ]" 375579 settimer "WeightTimer" 05580 wait 5005581 else5582 overhead " � " 375583 settimer "WeightTimer" 05584 endif5585 wait 5005586 if weight > maxweight5587 if EnableDropGoldWhenOverweight = 15588 if EnableOverheadMessages = 15589 wait 10005590 overhead "[ OVERWEIGHT! ]" 3375591 endif5592 replay5593 else5594 if EnableOverheadMessages = 15595 overhead "[ OVERWEIGHT! ]" 3375596 wait 20005597 endif5598 overhead "[ STOPPING SCRIPT! ]" 885599 stop5600 endif5601 endif5602 if EnableTriggerDungeonEscapeScript = 15603 foreach EscapeScript in DungeonEscapeScriptList5604 script EscapeScript5605 endfor5606 endif5607 endif5608 endif5609 5610 if EnableWizardHatStealthTrick = 15611 if find MagicWizardHat backpack and find MyHelmet self5612 if hidden and stam = maxstam5613 if EnableOverheadMessages = 15614 overhead '[ HAT TRICK ]' 1115615 endif5616 dclick MagicWizardHat5617 wait 6505618 dclick MyHelmet5619 getlabel backpack backpacklabel5620 endif5621 if not findlayer self head and find MyHelmet backpack5622 dclick MyHelmet5623 wait 5005624 endif5625 endif5626 if find MyHelmet backpack 5627 if not find MagicWizardHat backpack5628 dclick MyHelmet5629 wait 500 5630 endif5631 endif5632 endif5633 5634 if EnableWeaponCheck = 15635 if not find MySlowWeapon hand5636 if not findtype 'heavy crossbow|long bow|tower guard crossbow' self5637 if timer NoWeaponOverheadTimer > 50005638 overhead "[ NO WEAPON! ]" 3375639 settimer NoWeaponOverheadTimer 05640 endif5641 clearignore 5642 else5643 if not findtype 'heavy crossbow|long bow|tower guard crossbow' hand5644 clearignore5645 if findtype 'heavy crossbow|long bow|tower guard crossbow' backpack as MySlowWeapon5646 for 105647 getlabel MySlowWeapon WeaponLabel5648 wait 2505649 if "aspect" in WeaponLabel5650 break5651 elseif "unidentified" in WeaponLabel5652 @ignore MySlowWeapon5653 wait 2505654 else5655 @ignore MySlowWeapon5656 wait 2505657 endif5658 if findtype 'heavy crossbow|long bow|tower guard crossbow' backpack as MySlowWeapon5659 getlabel MySlowWeapon WeaponLabel5660 wait 2505661 endif5662 endfor5663 wait 2505664 dclick MySlowWeapon5665 wait 5005666 clearignore5667 endif5668 endif5669 endif5670 endif5671 endif5672 5673 if find CurrentTarget ground -1 -1 TargetAttackRange and warmode5674 if EnableInstantHide = 15675 while cooldown Stealth or cooldown Hiding5676 wait 1005677 if not cooldown Stealth and not cooldown Hiding5678 break5679 endif5680 if timer HidingOverheadTimer > 3000 5681 if EnableOverheadMessages = 1 5682 overhead "[ WAITING TO STAB... ]" 135683 else 5684 overhead " � " 135685 endif5686 settimer HidingOverheadTimer 05687 endif5688 endwhile5689 endif5690 5691 attack CurrentTarget5692 wait 5005693 @setvar! Stealthing 05694 @setvar! StealthingReady 05695 5696 if insysmsg 'You strike your target from the shadows!' 5697 if EnableOverheadMessages = 15698 overhead "[ BACKSTAB!! ]" 1790 CurrentTarget5699 endif 5700 overhead " � " 1790 CurrentTarget5701 endif5702 5703 if insysmsg 'Vanish activated'5704 if EnableOverheadMessages = 15705 overhead '[ VANISHED!! ]' 21145706 endif5707 cooldown 'Vanish Buff' 300005708 wait 5005709 @setvar! Stealthing 15710 @setvar! StealthingReady 15711 if EnableSmokeBombDoubleTap = 1 and not dead CurrentTarget5712 hotkey 'Toggle War Only'5713 else 5714 hotkey 'Toggle Peace Only'5715 endif5716 clearsysmsg5717 cooldown 'Stealth' 05718 cooldown "Hiding" 05719 break5720 endif5721 5722 if EnableExplosionPotion = 1 5723 if not hidden and not dead CurrentTarget5724 if skill 'Alchemy' >= 805725 @setvar! PurplePotionReady 05726 if findtype 'purple potion' self as explotPot5727 getlabel explotPot potLabel5728 if "(" in potLabel5729 if timer ExplosionPotionTimer > PurplePotionCooldown5730 @setvar! PurplePotionReady 15731 wait 250 5732 else5733 @setvar! PurplePotionReady 05734 endif5735 else5736 @setvar! PurplePotionReady 15737 wait 2505738 endif5739 else5740 if EnableOverheadMessages = 1 and timer ExplosionPotionMessageTimer > 150005741 overhead '[ NO PURPLE POTIONS ]' 3375742 settimer ExplosionPotionMessageTimer 05743 endif5744 endif5745 5746 if targetexists5747 hotkey 'cancel current target'5748 endif5749 5750 @setvar! Interrupted 0 5751 5752 if PurplePotionReady = 1 and not dead CurrentTarget and find CurrentTarget ground -1 -1 TargetAttackRange5753 settimer ExplosionPotionTimeout 05754 while not insysmsg "Where should i throw this potion?" and timer ExplosionPotionTimeout < 10005755 potion 'explosion' 5756 wait 250 5757 endwhile5758 @setvar! PurplePotionReady 05759 settimer ExplosionPotionTimer 05760 settimer ExplosionPotionTimeout 05761 while not targetexists and timer ExplosionPotionTimeout < 20005762 if dead CurrentTarget or not find CurrentTarget ground -1 -1 TargetAttackRange5763 @setvar! Interrupted 15764 hotkey 'cancel current target'5765 break5766 endif5767 wait 1005768 endwhile5769 5770 if Interrupted = 0 and targetexists5771 target CurrentTarget5772 if EnableOverheadMessages = 15773 overhead '[ EXPLOSION POT... ]' 4195774 endif5775 cooldown "Purple Potion" PurplePotionCooldown5776 getlabel backpack packdesc5777 wait 2505778 endif5779 endif5780 endif5781 endif5782 endif 5783 5784 if EnableFastSecondHit = 1 5785 if not hidden and not dead CurrentTarget5786 if EnableWeaponAbilities = 15787 if timer WeaponAbilityTimer > WeaponAbilityCooldown and UseSkirmishAbility = 15788 clearsysmsg5789 yell "[WeaponAbility1"5790 wait 2505791 if insysmsg "You cannot"5792 settimer WeaponAbilityTimer 250005793 clearsysmsg5794 else5795 if EnableOverheadMessages = 15796 overhead "[ SKIRMISH! ]" 375797 endif5798 cooldown "Weapon Ability" WeaponAbilityCooldown5799 cooldown "Skirmish Ability" 150005800 settimer WeaponAbilityTimer 05801 endif5802 elseif timer WeaponAbilityTimer > WeaponAbilityCooldown and UseFullDrawAbility = 15803 clearsysmsg5804 yell "[WeaponAbility2"5805 wait 2505806 if insysmsg "You cannot"5807 settimer WeaponAbilityTimer 250005808 clearsysmsg5809 else5810 if EnableOverheadMessages = 15811 overhead "[ FULL DRAW! ]" 375812 endif5813 cooldown "Weapon Ability" WeaponAbilityCooldown5814 cooldown "Full Draw Ability" 150005815 settimer WeaponAbilityTimer 05816 endif5817 elseif timer WeaponAbilityTimer > WeaponAbilityCooldown and UseRepeaterAbility = 15818 clearsysmsg5819 yell "[WeaponAbility3"5820 wait 2505821 if insysmsg "You cannot"5822 settimer WeaponAbilityTimer 250005823 clearsysmsg5824 else5825 if EnableOverheadMessages = 15826 overhead "[ REPEATER! ]" 375827 endif5828 cooldown "Weapon Ability" WeaponAbilityCooldown5829 cooldown "Repeater Ability" 50005830 settimer WeaponAbilityTimer 05831 endif5832 endif5833 endif5834 if find MyFastWeapon self5835 dclick MyFastWeapon5836 getlabel backpack backpacklabel5837 wait 2505838 attack CurrentTarget5839 wait 5005840 else5841 if EnableOverheadMessages = 15842 overhead '[ NO FAST WEAPON! ]' 3335843 endif5844 endif5845 if find MySlowWeapon self5846 wait 250 5847 dclick MySlowWeapon5848 getlabel backpack backpacklabel5849 wait 2505850 else5851 if EnableOverheadMessages = 15852 overhead '[ NO SLOW WEAPON! ]' 3335853 endif5854 endif5855 endif5856 endif5857 5858 if not dead CurrentTarget5859 if EnableSmokeBombDoubleTap = 15860 wait 5005861 while cooldown Hiding or cooldown Stealth5862 if EnableHealPotion = 1 and diffhits >= HealPotionHPdiff and not hidden5863 if findtype "Yellow Potion" self as HealPot5864 getlabel HealPot HealPotlabel5865 if "next" in HealPotlabel5866 // Do nothing5867 else5868 @setvar! HealPotionCheck 05869 5870 if counttype 3852 self as HealPotCount5871 @setvar! HealPotionCheck HealPotCount5872 endif5873 5874 clearsysmsg5875 dclicktype 38525876 getlabel backpack backpackdesc5877 wait 2505878 5879 if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"5880 settimer 'HealPotionTimer' 05881 cooldown "Healing Potion" HealPotionCooldown5882 if EnableOverheadMessages = 15883 if insysmsg "potion satchel used"5884 overhead '[ FREE HEAL POTION ]' 2535885 else5886 overhead "[ HEAL POTION ]" 2535887 endif5888 endif5889 clearsysmsg5890 endif5891 endif5892 else5893 if timer 'HealingPotionMessageTimer' > 45005894 overhead "[ NO HEAL POTS! ]" 3375895 settimer 'HealingPotionMessageTimer' 05896 endif5897 endif5898 endif5899 5900 if EnablePanaceaPotion = 1 5901 if skill 'Alchemy' >= 805902 if findbuff "bleed" or findbuff "diseased"5903 if not findbuff "panacea potion cooldown"5904 if findtype "Orange Potion" self5905 dclicktype "Orange Potion"5906 wait 5005907 if findbuff "panacea potion cooldown" and EnableOverheadMessages = 15908 overhead "[ PANACEA POTION ]" 21175909 endif5910 cooldown 'Panacea Potion' 300005911 else 5912 if timer 'CurePotionMessageTimer' > 150005913 overhead "[ NO CURE POTS! ]" 3375914 settimer 'CurePotionMessageTimer' 05915 endif5916 endif5917 else 5918 if EnableOverheadMessages = 1 and timer PanaceaOverheadTimer > 150005919 overhead '[ PANACEA ON COOLDOWN! ]' 375920 settimer PanaceaOverheadTimer 05921 endif5922 endif5923 endif5924 endif5925 endif5926 5927 if EnableCleansingBrews = 15928 if findbuff "Disease" or findbuff "Bleed"5929 if timer CleansingBrewTimer > 1200005930 if findtype 50675 self 2935 as CleansingBrew5931 dclick CleansingBrew5932 if EnableOverheadMessages = 15933 overhead '[ CLEANSING BREW ]' 21175934 endif5935 cooldown 'Cleansing Brew' 1200005936 settimer CleansingBrewTimer 05937 wait 2505938 else5939 if timer CleansingBrewOverhead > 150005940 overhead "[ NO CLEANSING BREWS! ]" 3375941 settimer CleansingBrewOverhead 05942 settimer CleansingBrewTimer 05943 endif5944 endif5945 else 5946 if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 150005947 overhead '[ BREW ON COOLDOWN! ]' 375948 settimer CleansingBrewOverhead 05949 endif5950 endif5951 endif5952 endif5953 5954 if EnableCurePotion = 15955 while poisoned5956 if findtype "Orange Potion" self5957 dclicktype "Orange Potion"5958 if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 35005959 overhead "[ CURE POTION ]" 445960 settimer 'CurePotionMessageTimer' 05961 endif5962 wait 2505963 else5964 if timer 'CurePotionMessageTimer' > 50005965 overhead "[ NO CURE POTS! ]" 3375966 settimer 'CurePotionMessageTimer' 05967 endif5968 break5969 endif5970 if diffhits > 405971 break5972 endif5973 endwhile5974 endif5975 5976 if skill 'Healing' > 05977 if diffhits > 0 and not bandaging and not hidden5978 if findtype 'clean bandage%s%' self5979 if targetexists5980 hotkey 'cancel current target'5981 endif5982 hotkey 'Bandage Self'5983 if EnableOverheadMessages = 15984 if timer BandageMessageTimer > 50005985 overhead "[ BANDAGING... ]" 885986 settimer BandageMessageTimer 05987 endif5988 endif5989 wait 5005990 else5991 if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 15992 overhead "[ OUT OF BANDAGES! ]" 3375993 settimer BandageMessageTimer 05994 endif5995 endif5996 endif5997 endif5998 5999 if EnableRefreshPotion = 1 6000 if diffstam >= RefreshPotionSPdiff and not hidden6001 if findtype "Red Potion" self6002 dclicktype "Red Potion"6003 if EnableOverheadMessages = 16004 overhead "[ REFRESH POTION ]" 376005 endif6006 wait 5006007 else6008 if timer RefreshPotionMessageTimer > 45006009 overhead "[ NO REFRESH POTS! ]" 3376010 settimer RefreshPotionMessageTimer 06011 endif6012 endif6013 wait 5006014 endif6015 endif6016 6017 if not cooldown Hiding6018 break6019 endif6020 endwhile6021 6022 getlabel backpack backpacklabel6023 6024 if counttype 52149 self > 06025 if not cooldown 'Smoke Bomb' and not hidden6026 hotkey 'Smoke Bomb'6027 wait 3506028 if insysmsg 'You must wait another'6029 if EnableOverheadMessages = 16030 overhead '[ SMOKE BOMB UNAVAILABLE ]' 3336031 endif6032 if not cooldown 'Hiding'6033 useskill 'Hiding'6034 wait 5006035 endif6036 if hidden6037 break6038 else6039 clearsysmsg6040 hotkey 'Toggle War Only'6041 break6042 endif6043 else6044 if hidden6045 if EnableOverheadMessages = 16046 overhead '[ SMOKE BOMB! ]' 17906047 endif6048 clearsysmsg 6049 @setvar! Stealthing 16050 @setvar! StealthingReady 16051 cooldown 'Hiding' 06052 cooldown 'Stealth' 100006053 cooldown 'Smoke Bomb' SmokeBombCooldown6054 hotkey 'Toggle War Only'6055 if find CurrentTarget ground -1 -1 TargetAttackRange and not dead CurrentTarget6056 attack CurrentTarget6057 wait 2506058 endif6059 endif6060 if dead CurrentTarget6061 hotkey 'Toggle Peace Only'6062 else6063 hotkey 'Toggle War Only'6064 endif6065 break6066 endif6067 else6068 if EnableOverheadMessages = 16069 overhead '[ SMOKE ON COOLDOWN! ]' 3336070 endif6071 if not cooldown 'Hiding'6072 useskill 'Hiding'6073 wait 5006074 endif6075 if hidden6076 break6077 endif6078 endif6079 else6080 if EnableOverheadMessages = 16081 overhead '[ NO SMOKE BOMBS ]' 3336082 endif6083 if not cooldown 'Hiding'6084 useskill 'Hiding'6085 wait 5006086 endif6087 if hidden6088 break6089 endif6090 endif6091 endif6092 6093 if dead CurrentTarget6094 settimer STORELOOT 06095 @setvar! TargetAcquired 06096 endif6097 6098 if not hidden 6099 hotkey 'Toggle War Only'6100 @setvar! Stealthing 06101 @setvar! StealthingReady 06102 @setvar! KeepOnTrucking 06103 clearsysmsg 6104 break6105 endif6106 else 6107 hotkey 'Toggle Peace Only'6108 if EnableAutoCarving = 1 6109 if findtype 11552 self and not hidden and dead CurrentTarget6110 while findtype "corpse" ground -1 -1 2 as deadbody6111 if findtype 11552 self6112 if targetexists6113 hotkey 'cancel current target'6114 endif6115 while not targetexists6116 skill 'forensicevaluation'6117 endwhile6118 if targetexists and find deadbody ground -1 -1 26119 target 'self'6120 @ignore deadbody6121 wait 5006122 endif6123 if insysmsg "You dont see anything nearby"6124 clearsysmsg6125 break6126 else6127 if EnableOverheadMessages = 1 and timer SkinningTimer > 30006128 overhead "[ SKINNING... ]" 3336129 settimer SkinningTimer 06130 endif6131 endif6132 elseif skill 'forensicevaluation' > 06133 if EnableOverheadMessages = 1 and timer SkinningTimer > 150006134 overhead "[ NO SKINNING KNIFE ]" 3376135 settimer SkinningTimer 06136 break6137 endif6138 endif6139 endwhile6140 endif6141 endif6142 6143 wait LootDelayTimer6144 6145 while cooldown Hiding or cooldown Stealth6146 if timer HidingOverheadTimer > 28006147 if EnableOverheadMessages = 16148 overhead "[ WAITING TO HIDE... ]" 136149 else 6150 overhead " � " 136151 endif6152 settimer HidingOverheadTimer 06153 endif6154 6155 wait 1006156 6157 if not cooldown Hiding and not cooldown Stealth6158 break6159 endif6160 6161 if warmode 6162 break6163 endif6164 6165 if EnableHealPotion = 1 6166 if diffhits >= HealPotionHPdiff and not hidden6167 if findtype "Yellow Potion" self as HealPot6168 getlabel HealPot HealPotlabel6169 if "next" in HealPotlabel6170 // Do nothing6171 else6172 @setvar! HealPotionCheck 06173 6174 if counttype 3852 self as HealPotCount6175 @setvar! HealPotionCheck HealPotCount6176 endif6177 6178 clearsysmsg6179 dclicktype 38526180 getlabel backpack backpackdesc6181 wait 2506182 6183 if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"6184 settimer 'HealPotionTimer' 06185 cooldown "Healing Potion" HealPotionCooldown6186 if EnableOverheadMessages = 16187 if insysmsg "potion satchel used"6188 overhead '[ FREE HEAL POTION ]' 2536189 else6190 overhead "[ HEAL POTION ]" 2536191 endif6192 endif6193 clearsysmsg6194 endif6195 endif6196 else6197 if timer 'HealingPotionMessageTimer' > 45006198 overhead "[ NO HEAL POTS! ]" 3376199 settimer 'HealingPotionMessageTimer' 06200 endif6201 endif6202 endif6203 endif6204 6205 if EnablePanaceaPotion = 1 6206 if skill 'Alchemy' >= 806207 if findbuff "bleed" or findbuff "diseased"6208 if not findbuff "panacea potion cooldown"6209 if findtype "Orange Potion" self6210 dclicktype "Orange Potion"6211 wait 5006212 if findbuff "panacea potion cooldown" and EnableOverheadMessages = 16213 overhead "[ PANACEA POTION ]" 21176214 endif6215 cooldown 'Panacea Potion' 300006216 else 6217 if timer 'CurePotionMessageTimer' > 150006218 overhead "[ NO CURE POTS! ]" 3376219 settimer 'CurePotionMessageTimer' 06220 endif6221 endif6222 else 6223 if EnableOverheadMessages = 1 and timer PanaceaOverheadTimer > 150006224 overhead '[ PANACEA ON COOLDOWN! ]' 376225 settimer PanaceaOverheadTimer 06226 endif6227 endif6228 endif6229 endif6230 endif6231 6232 if EnableCleansingBrews = 16233 if findbuff "Disease" or findbuff "Bleed"6234 if timer CleansingBrewTimer > 1200006235 if findtype 50675 self 2935 as CleansingBrew6236 dclick CleansingBrew6237 if EnableOverheadMessages = 16238 overhead '[ CLEANSING BREW ]' 21176239 endif6240 cooldown 'Cleansing Brew' 1200006241 settimer CleansingBrewTimer 06242 wait 2506243 else6244 if timer CleansingBrewOverhead > 150006245 overhead "[ NO CLEANSING BREWS! ]" 3376246 settimer CleansingBrewOverhead 06247 settimer CleansingBrewTimer 06248 endif6249 endif6250 else 6251 if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 150006252 overhead '[ BREW ON COOLDOWN! ]' 376253 settimer CleansingBrewOverhead 06254 endif6255 endif6256 endif6257 endif6258 6259 if EnableCurePotion = 16260 while poisoned6261 if findtype "Orange Potion" self6262 dclicktype "Orange Potion"6263 if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 35006264 overhead "[ CURE POTION ]" 446265 settimer 'CurePotionMessageTimer' 06266 endif6267 wait 2506268 else6269 if timer 'CurePotionMessageTimer' > 50006270 overhead "[ NO CURE POTS! ]" 3376271 settimer 'CurePotionMessageTimer' 06272 endif6273 break6274 endif6275 if diffhits > 406276 break6277 endif6278 endwhile6279 endif6280 6281 if skill 'Healing' > 06282 if diffhits > 0 and not bandaging and not hidden6283 if findtype 'clean bandage%s%' self6284 if targetexists6285 hotkey 'cancel current target'6286 endif6287 hotkey 'Bandage Self'6288 if EnableOverheadMessages = 16289 if timer BandageMessageTimer > 50006290 overhead "[ BANDAGING... ]" 886291 settimer BandageMessageTimer 06292 endif6293 endif6294 wait 5006295 else6296 if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 16297 overhead "[ OUT OF BANDAGES! ]" 3376298 settimer BandageMessageTimer 06299 endif6300 endif6301 endif6302 endif6303 6304 if EnableRefreshPotion = 1 6305 if diffstam >= RefreshPotionSPdiff and not hidden6306 if findtype "Red Potion" self6307 dclicktype "Red Potion"6308 if EnableOverheadMessages = 16309 overhead "[ REFRESH POTION ]" 376310 endif6311 wait 5006312 else6313 if timer RefreshPotionMessageTimer > 45006314 overhead "[ NO REFRESH POTS! ]" 3376315 settimer RefreshPotionMessageTimer 06316 endif6317 endif6318 wait 5006319 endif6320 endif6321 endwhile6322 6323 clearsysmsg 6324 useskill 'Hiding'6325 wait 2506326 hotkey 'Toggle Peace Only'6327 wait 2506328 6329 while insysmsg 'You must wait'6330 if timer HidingOverheadTimer > 28006331 if EnableOverheadMessages = 16332 overhead "[ WAITING TO HIDE... ]" 136333 else 6334 overhead " � " 136335 endif6336 settimer HidingOverheadTimer 06337 endif6338 6339 clearsysmsg6340 useskill 'Hiding'6341 wait 2506342 6343 if hidden6344 break6345 endif6346 6347 if warmode 6348 break6349 endif6350 6351 if EnableHealPotion = 1 6352 if diffhits >= HealPotionHPdiff and not hidden6353 if findtype "Yellow Potion" self as HealPot6354 getlabel HealPot HealPotlabel6355 if "next" in HealPotlabel6356 // Do nothing6357 else6358 @setvar! HealPotionCheck 06359 6360 if counttype 3852 self as HealPotCount6361 @setvar! HealPotionCheck HealPotCount6362 endif6363 6364 clearsysmsg6365 dclicktype 38526366 getlabel backpack backpackdesc6367 wait 2506368 6369 if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"6370 settimer 'HealPotionTimer' 06371 cooldown "Healing Potion" HealPotionCooldown6372 if EnableOverheadMessages = 16373 if insysmsg "potion satchel used"6374 overhead '[ FREE HEAL POTION ]' 2536375 else6376 overhead "[ HEAL POTION ]" 2536377 endif6378 endif6379 clearsysmsg6380 endif6381 endif6382 else6383 if timer 'HealingPotionMessageTimer' > 45006384 overhead "[ NO HEAL POTS! ]" 3376385 settimer 'HealingPotionMessageTimer' 06386 endif6387 endif6388 endif6389 endif6390 6391 if EnablePanaceaPotion = 1 6392 if skill 'Alchemy' >= 806393 if findbuff "bleed" or findbuff "diseased"6394 if not findbuff "panacea potion cooldown"6395 if findtype "Orange Potion" self6396 dclicktype "Orange Potion"6397 wait 5006398 if findbuff "panacea potion cooldown" and EnableOverheadMessages = 16399 overhead "[ PANACEA POTION ]" 21176400 endif6401 cooldown 'Panacea Potion' 300006402 else 6403 if timer 'CurePotionMessageTimer' > 150006404 overhead "[ NO CURE POTS! ]" 3376405 settimer 'CurePotionMessageTimer' 06406 endif6407 endif6408 else 6409 if EnableOverheadMessages = 1 and timer PanaceaOverheadTimer > 150006410 overhead '[ PANACEA ON COOLDOWN! ]' 376411 settimer PanaceaOverheadTimer 06412 endif6413 endif6414 endif6415 endif6416 endif6417 6418 if EnableCleansingBrews = 16419 if findbuff "Disease" or findbuff "Bleed"6420 if timer CleansingBrewTimer > 1200006421 if findtype 50675 self 2935 as CleansingBrew6422 dclick CleansingBrew6423 if EnableOverheadMessages = 16424 overhead '[ CLEANSING BREW ]' 21176425 endif6426 cooldown 'Cleansing Brew' 1200006427 settimer CleansingBrewTimer 06428 wait 2506429 else6430 if timer CleansingBrewOverhead > 150006431 overhead "[ NO CLEANSING BREWS! ]" 3376432 settimer CleansingBrewOverhead 06433 settimer CleansingBrewTimer 06434 endif6435 endif6436 else 6437 if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 150006438 overhead '[ BREW ON COOLDOWN! ]' 376439 settimer CleansingBrewOverhead 06440 endif6441 endif6442 endif6443 endif6444 6445 if EnableCurePotion = 16446 while poisoned6447 if findtype "Orange Potion" self6448 dclicktype "Orange Potion"6449 if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 35006450 overhead "[ CURE POTION ]" 446451 settimer 'CurePotionMessageTimer' 06452 endif6453 wait 2506454 else6455 if timer 'CurePotionMessageTimer' > 50006456 overhead "[ NO CURE POTS! ]" 3376457 settimer 'CurePotionMessageTimer' 06458 endif6459 break6460 endif6461 if diffhits > 406462 break6463 endif6464 endwhile6465 endif6466 6467 if skill 'Healing' > 06468 if diffhits > 0 and not bandaging and not hidden6469 if findtype 'clean bandage%s%' self6470 if targetexists6471 hotkey 'cancel current target'6472 endif6473 hotkey 'Bandage Self'6474 if EnableOverheadMessages = 16475 if timer BandageMessageTimer > 50006476 overhead "[ BANDAGING... ]" 886477 settimer BandageMessageTimer 06478 endif6479 endif6480 wait 5006481 else6482 if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 16483 overhead "[ OUT OF BANDAGES! ]" 3376484 settimer BandageMessageTimer 06485 endif6486 endif6487 endif6488 endif6489 6490 if EnableRefreshPotion = 1 6491 if diffstam >= RefreshPotionSPdiff and not hidden6492 if findtype "Red Potion" self6493 dclicktype "Red Potion"6494 if EnableOverheadMessages = 16495 overhead "[ REFRESH POTION ]" 376496 endif6497 wait 5006498 else6499 if timer RefreshPotionMessageTimer > 45006500 overhead "[ NO REFRESH POTS! ]" 3376501 settimer RefreshPotionMessageTimer 06502 endif6503 endif6504 wait 5006505 endif6506 endif6507 endwhile6508 6509 wait 5006510 6511 if hidden6512 hotkey 'Toggle Peace Only'6513 break6514 elseif not hidden6515 if EnableSmokeBombWhenAggro = 16516 if counttype 52149 self > 06517 if not cooldown 'Smoke Bomb'6518 clearsysmsg6519 hotkey 'Smoke Bomb'6520 wait 5006521 if insysmsg 'You must wait another'6522 if EnableOverheadMessages = 16523 overhead '[ SMOKE BOMB UNAVAILABLE ]' 3336524 endif6525 hotkey 'Toggle War Only'6526 break6527 else6528 if hidden6529 if EnableOverheadMessages = 16530 overhead '[ SMOKE BOMB! ]' 17906531 endif6532 clearsysmsg 6533 @setvar! Stealthing 16534 @setvar! StealthingReady 16535 cooldown 'Hiding' 06536 cooldown 'Stealth' 100006537 cooldown 'Smoke Bomb' SmokeBombCooldown6538 endif6539 break6540 endif6541 else6542 if EnableOverheadMessages = 16543 overhead '[ SMOKE ON COOLDOWN! ]' 336544 endif6545 hotkey 'Toggle War Only'6546 break6547 endif6548 else6549 if EnableOverheadMessages = 16550 overhead '[ NO SMOKE BOMBS ]' 3376551 endif6552 cooldown 'Hiding' 10006553 if not hidden6554 hotkey 'Toggle War Only'6555 break6556 endif6557 endif6558 else 6559 hotkey 'Toggle War Only'6560 @setvar! Stealthing 06561 @setvar! StealthingReady 06562 @setvar! KeepOnTrucking 06563 clearsysmsg 6564 endif6565 break6566 endif6567 if dead CurrentTarget6568 wait 15006569 settimer STORELOOT 06570 endif6571 endif6572 endif6573 endwhile6574 elseif skill 'Mace Fighting' >= 50 or skill 'Fencing' >= 50 6575 while find CurrentTarget ground -1 -1 12 and hidden and TargetAcquired = 16576 getlabel CurrentTarget descTarget6577 wait 2506578 if timer CheckTargetTimer > 10006579 settimer CheckTargetTimer 06580 hotkey "Target Closest Grey Monster"6581 wait 5006582 @setvar! TargetCheck lasttarget6583 wait 1506584 if insysmsg "no one matching" or TargetCheck != CurrentTarget6585 @setvar! TargetAcquired 06586 clearsysmsg6587 break6588 endif6589 endif6590 6591 if find CurrentTarget ground -1 -1 TargetAttackRange and not warmode6592 if not cooldown "Hiding"6593 if timer StabDistanceTimer > 30006594 if EnableOverheadMessages = 16595 overhead "[ TAB TO STAB! ]" 696596 endif6597 settimer StabDistanceTimer 06598 endif6599 else6600 if timer StealthCooldownTimer > 32006601 if EnableOverheadMessages = 16602 overhead "[ WAITING FOR STEALTH... ]" 1536603 settimer StealthCooldownTimer 06604 else6605 overhead " � " 1536606 settimer StealthCooldownTimer 06607 endif6608 endif6609 endif6610 endif6611 6612 if EnableOverheadWarnings = 16613 if find CurrentTarget ground -1 -1 26614 if timer StabDistanceTimer > 25006615 overhead "[ 2 TILES AWAY... ]" 153 6616 settimer StabDistanceTimer 06617 settimer TargetTimer 06618 elseif find CurrentTarget ground -1 -1 36619 if timer StabDistanceTimer > 25006620 overhead "[ 3 TILES AWAY... ]" 44 6621 settimer StabDistanceTimer 06622 settimer TargetTimer 06623 endif6624 endif6625 endif6626 6627 if find CurrentTarget ground -1 -1 TargetAttackRange6628 if cooldown "Hiding"6629 if timer TargetTimer > 30006630 if "Paragon" in descTarget6631 if EnableOverheadMessages = 16632 overhead "[ PARAGON! ]" 12 CurrentTarget6633 endif6634 overhead " � " 12 CurrentTarget6635 else6636 if EnableOverheadMessages = 16637 overhead "[ TARGET ]" 333 CurrentTarget6638 endif6639 overhead " � " 333 CurrentTarget6640 endif6641 settimer TargetTimer 06642 endif6643 elseif cooldown "Stealth"6644 if timer TargetTimer > 30006645 if "Paragon" in descTarget6646 if EnableOverheadMessages = 16647 overhead "[ PARAGON! ]" 12 CurrentTarget6648 endif6649 overhead " � " 12 CurrentTarget6650 else6651 if EnableOverheadMessages = 16652 overhead "[ TARGET ]" 44 CurrentTarget6653 endif6654 overhead " � " 44 CurrentTarget6655 endif6656 settimer TargetTimer 06657 endif6658 else6659 if timer TargetTimer > 30006660 if "Paragon" in descTarget6661 if EnableOverheadMessages = 16662 overhead "[ PARAGON! ]" 12 CurrentTarget6663 endif6664 overhead " � " 12 CurrentTarget6665 else6666 if EnableOverheadMessages = 16667 overhead "[ TARGET ]" 69 CurrentTarget6668 endif6669 overhead " � " 69 CurrentTarget6670 endif6671 settimer TargetTimer 06672 endif6673 endif6674 else 6675 if timer TargetTimer > 30006676 if "Paragon" in descTarget6677 if EnableOverheadMessages = 16678 overhead "[ PARAGON! ]" 12 CurrentTarget6679 endif6680 overhead " � " 12 CurrentTarget6681 else6682 if EnableOverheadMessages = 16683 overhead "[ TARGET ]" 153 CurrentTarget6684 endif6685 overhead " � " 153 CurrentTarget6686 endif6687 settimer TargetTimer 06688 endif6689 endif6690 6691 if dead CurrentTarget or not find CurrentTarget ground -1 -1 126692 @setvar! TargetAcquired 06693 break6694 endif6695 6696 if insysmsg 'You have been revealed'6697 if EnableOverheadMessages = 16698 overhead '[ !! REVEALED !! ]' 1536699 else 6700 overhead '!! � !!' 1536701 endif6702 clearsysmsg 6703 hotkey 'Toggle War Only' 6704 @setvar! Stealthing 06705 @setvar! StealthingReady 06706 @setvar! KeepOnTrucking 06707 cooldown 'Hiding' 50006708 break6709 endif6710 6711 if not hidden6712 @setvar! Stealthing 06713 @setvar! StealthingReady 06714 @setvar! KeepOnTrucking 06715 hotkey 'Toggle War Only'6716 break6717 endif6718 6719 if insysmsg 'You begin to move quietly.'6720 clearsysmsg6721 @setvar! Stealthing 16722 @setvar! KeepOnTrucking 06723 cooldown 'Stealth' 100006724 endif6725 6726 if insysmsg 'You feel ready to continue stealthing.'6727 settimer NoTargetTimer 06728 @setvar! KeepOnTrucking 16729 endif6730 6731 if insysmsg 'You will automatically stealth when out of steps.'6732 if EnableOverheadMessages = 16733 overhead '[ STEALTH RENEWED ]' 696734 else6735 overhead ' � ' 696736 endif6737 @setvar! KeepOnTrucking 16738 endif6739 6740 if not hidden6741 @setvar! Stealthing 06742 @setvar! StealthingReady 06743 @setvar! KeepOnTrucking 06744 hotkey 'Toggle War Only'6745 break6746 endif6747 6748 if EnableOverheadWarnings = 16749 if cooldown 'Stealth'6750 if insysmsg 'You have 0 stealth steps remaining.' and hidden6751 settimer DoNotMoveTimeout 06752 clearsysmsg 6753 while not insysmsg 'You feel ready to continue stealthing.'6754 if timer DoNotMoveTimer > 5006755 if EnableOverheadMessages = 16756 overhead '[ !!! STOP !!! ]' 376757 else6758 overhead ' � ' 376759 endif6760 settimer NoTargetTimer 06761 settimer DoNotMoveTimer 06762 endif6763 6764 if not hidden6765 if EnableOverheadMessages = 16766 overhead '[ STEALTH ENDED! ]' 21176767 else6768 overhead ' � ' 21176769 endif6770 settimer NoTargetTimer 06771 @setvar! Stealthing 06772 @setvar! StealthingReady 06773 @setvar! KeepOnTrucking 06774 hotkey 'Toggle War Only'6775 break6776 endif6777 6778 if timer DoNotMoveTimeout > 8000 or not hidden or not cooldown 'Stealth'6779 break6780 endif6781 endwhile6782 wait 2506783 if hidden6784 if EnableOverheadMessages = 16785 overhead '[ KEEP GOING! ]' 696786 else6787 overhead ' � ' 696788 endif6789 settimer NoTargetTimer 06790 endif 6791 elseif insysmsg 'You have 1 stealth steps remaining.' and hidden6792 if EnableOverheadMessages = 16793 overhead '[ SLOW!! ]' 3336794 else6795 overhead ' � ' 3336796 endif6797 settimer NoTargetTimer 06798 @setvar! Stealthing 16799 elseif insysmsg 'You have 2 stealth steps remaining.' and hidden6800 if EnableOverheadMessages = 16801 overhead '[ SLOW!]' 446802 else6803 overhead ' � ' 446804 endif6805 settimer NoTargetTimer 06806 @setvar! Stealthing 16807 elseif insysmsg 'You have 3 stealth steps remaining.' and hidden6808 if EnableOverheadMessages = 16809 overhead '[ SLOW ]' 1536810 else6811 overhead ' � ' 1536812 endif6813 settimer NoTargetTimer 06814 @setvar! Stealthing 16815 endif6816 endif6817 endif6818 6819 if skill 'Mace Fighting' >= 50 6820 if EnableWeaponStances != 0 and findtype "macing codex" self as MyCodex6821 if not gumpexists 2016719803 and EnableWeaponCodexHotbar = 16822 while not gumpexists 10666475536823 say "[CodexHotBar"6824 wait 2506825 if gumpexists 20167198036826 break6827 endif6828 endwhile6829 endif6830 6831 getlabel MyCodex MyCodexDesc6832 wait 2506833 6834 if SwitchToAggressiveStance = 16835 if "Aggressive" in MyCodexDesc6836 // Do nothing6837 else6838 yell '[MacingStance1'6839 settimer "WeaponCodexTimer" 06840 wait 2506841 endif6842 elseif SwitchToDefensiveStance = 16843 if "Defensive" in MyCodexDesc6844 // Do nothing6845 else6846 yell '[MacingStance2'6847 settimer "WeaponCodexTimer" 06848 wait 2506849 endif6850 elseif SwitchToCleaveStance = 16851 if "Cleave" in MyCodexDesc6852 // Do nothing6853 else6854 yell '[MacingStance3'6855 settimer "WeaponCodexTimer" 06856 wait 2506857 endif6858 elseif SwitchToWildSwingStance = 16859 if "Wild Swing" in MyCodexDesc6860 // Do nothing6861 else6862 yell '[MacingStance4'6863 settimer "WeaponCodexTimer" 06864 wait 2506865 endif6866 elseif SwitchToSunderStance = 16867 if "Sunder" in MyCodexDesc6868 // Do nothing6869 else6870 yell '[MacingStance5'6871 settimer "WeaponCodexTimer" 06872 wait 2506873 endif6874 endif6875 endif6876 elseif skill 'Fencing' >= 50 6877 if EnableWeaponStances != 0 and findtype "fencing codex" self as MyCodex6878 if not gumpexists 2016719803 and EnableWeaponCodexHotbar = 16879 while not gumpexists 10666475536880 say "[CodexHotBar"6881 wait 2506882 if gumpexists 20167198036883 break6884 endif6885 endwhile6886 endif6887 6888 getlabel MyCodex MyCodexDesc6889 wait 2506890 6891 if SwitchToAggressiveStance = 16892 if "Aggressive" in MyCodexDesc6893 // Do nothing6894 else6895 yell '[FencingStance1'6896 settimer "WeaponCodexTimer" 06897 wait 2506898 endif6899 elseif SwitchToDefensiveStance = 16900 if "Defensive" in MyCodexDesc6901 // Do nothing6902 else6903 yell '[FencingStance2'6904 settimer "WeaponCodexTimer" 06905 wait 2506906 endif6907 elseif SwitchToCleaveStance = 16908 if "Cleave" in MyCodexDesc6909 // Do nothing6910 else6911 yell '[FencingStance3'6912 settimer "WeaponCodexTimer" 06913 wait 2506914 endif6915 elseif SwitchToBlackguardStance = 16916 if "Blackguard" in MyCodexDesc6917 // Do nothing6918 else6919 yell '[FencingStance4'6920 settimer "WeaponCodexTimer" 06921 wait 2506922 endif6923 elseif SwitchToFangStance = 16924 if "Fang" in MyCodexDesc6925 // Do nothing6926 else6927 yell '[FencingStance5'6928 settimer "WeaponCodexTimer" 06929 wait 2506930 endif6931 endif6932 endif6933 endif6934 6935 if diffweight >= RedWeightLimitDiffWeight6936 @setvar! DisableVacuums 06937 endif6938 6939 if EnableGoldVacuum = 1 6940 if DisableVacuums != 16941 if findtype "gold coin" ground -1 -1 12 as droppedmoney and timer "GoldRadar" > 35006942 overhead " � " 149 droppedmoney6943 settimer "GoldRadar" 06944 endif6945 6946 while findtype "gold coin" ground -1 -1 2 as droppedmoney6947 if diffhits > 356948 break6949 endif6950 overhead " � " 1496951 hotkey "Grab Item"6952 wft 25006953 target droppedmoney6954 wait 2506955 if insysmsg "Invalid or inaccessible item"6956 wait 5006957 @ignore droppedmoney6958 endif6959 wait 2506960 endwhile6961 endif6962 endif6963 6964 if EnableDungeonCleanup = 1 6965 if DisableVacuums != 16966 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 < 356967 if diffhits > 356968 break6969 endif6970 if EnableOverheadMessages = 16971 if timer "DungeonCleanup" > 15006972 overhead '[ CLEANUP... ]' 4206973 settimer "DungeonCleanup" 06974 endif6975 else6976 if timer "DungeonCleanup" > 15006977 overhead ' � ' 4206978 settimer "DungeonCleanup" 06979 endif6980 endif6981 hotkey "Grab Item"6982 wft 10006983 target item6984 wait 2506985 endwhile6986 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" > 35006987 overhead " � " 420 dungeonjunk6988 settimer "DungeonCleanupRadar" 06989 endif6990 endif6991 endif6992 6993 if EnablePKRadar = 16994 if insysmsg "Now tracking"6995 clearsysmsg6996 if EnableRedAlertOverhead = 16997 overhead "[ !! RED ALERT !! ]" 3376998 wait 5006999 endif7000 if not hidden7001 if not cooldown 'Hiding'7002 if targetexists7003 hotkey 'Cancel Current Target'7004 endif7005 useskill "Hiding"7006 wait 5007007 while insysmsg 'You must wait'7008 clearsysmsg7009 wait 2507010 useskill 'Hiding'7011 endwhile7012 7013 if hidden7014 // Do nothing7015 else7016 if counttype 52149 self > 07017 if not cooldown 'Smoke Bomb' and not hidden7018 clearsysmsg7019 hotkey 'Smoke Bomb'7020 wait 5007021 if insysmsg 'You must wait another'7022 if EnableOverheadMessages = 17023 overhead '[ SMOKE BOMB UNAVAILABLE ]' 3337024 endif7025 hotkey 'Toggle War Only'7026 break7027 else7028 if hidden7029 if EnableOverheadMessages = 17030 overhead '[ SMOKE BOMB! ]' 17907031 endif7032 clearsysmsg 7033 @setvar! Stealthing 17034 @setvar! StealthingReady 17035 cooldown 'Hiding' 07036 cooldown 'Stealth' 100007037 cooldown 'Smoke Bomb' SmokeBombCooldown7038 endif7039 break7040 endif7041 else7042 if EnableOverheadMessages = 17043 overhead '[ SMOKE ON COOLDOWN! ]' 337044 endif7045 hotkey 'Toggle War Only'7046 break7047 endif7048 else7049 if EnableOverheadMessages = 17050 overhead '[ NO SMOKE BOMBS ]' 3377051 endif7052 break7053 endif7054 endif7055 endif7056 else7057 if EnableOverheadMessages = 17058 wait 5007059 overhead "[ ALREADY HIDDEN! ]" 117060 endif7061 wait 5007062 endif7063 wait 5007064 endif7065 endif7066 7067 if EnableWeightWarningMessage = 17068 if diffweight < GreenWarningDiffWeight and diffweight > YellowWarningDiffWeight and timer WeightTimer > 60007069 if EnableOverheadMessages = 17070 overhead "[ WEIGHT WARNING... ]" 777071 settimer "WeightTimer" 07072 else7073 overhead " � " 777074 settimer "WeightTimer" 07075 endif7076 elseif diffweight < YellowWarningDiffWeight and diffweight > RedWeightLimitDiffWeight and timer WeightTimer > 60007077 if EnableOverheadMessages = 17078 overhead "[ WEIGHT WARNING! ]" 1537079 settimer "WeightTimer" 07080 else7081 overhead " � " 1537082 settimer "WeightTimer" 07083 endif7084 elseif diffweight <= RedWeightLimitDiffWeight and timer WeightTimer > 60007085 if EnableOverheadMessages = 17086 overhead "[ WEIGHT LIMIT REACHED! ]" 377087 settimer "WeightTimer" 07088 wait 5007089 else7090 overhead " � " 377091 settimer "WeightTimer" 07092 endif7093 wait 5007094 if weight > maxweight7095 if EnableDropGoldWhenOverweight = 17096 if EnableOverheadMessages = 17097 wait 10007098 overhead "[ OVERWEIGHT! ]" 3377099 endif7100 replay7101 else7102 if EnableOverheadMessages = 17103 overhead "[ OVERWEIGHT! ]" 3377104 wait 20007105 endif7106 overhead "[ STOPPING SCRIPT! ]" 887107 stop7108 endif7109 endif7110 if EnableTriggerDungeonEscapeScript = 17111 foreach EscapeScript in DungeonEscapeScriptList7112 script EscapeScript7113 endfor7114 endif7115 endif7116 endif7117 7118 if EnableWizardHatStealthTrick = 17119 if find MagicWizardHat backpack and find MyHelmet self7120 if hidden and stam = maxstam7121 if EnableOverheadMessages = 17122 overhead '[ HAT TRICK ]' 1117123 endif7124 dclick MagicWizardHat7125 wait 6507126 dclick MyHelmet7127 getlabel backpack backpacklabel7128 endif7129 if not findlayer self head and find MyHelmet backpack7130 dclick MyHelmet7131 wait 5007132 endif7133 endif7134 if find MyHelmet backpack 7135 if not find MagicWizardHat backpack7136 dclick MyHelmet7137 wait 500 7138 endif7139 endif7140 endif7141 7142 if EnableWeaponCheck = 1 and not find MySlowWeapon hand7143 if skill 'Mace Fighting' >= 50 7144 if not findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' self7145 if timer NoWeaponOverheadTimer > 50007146 overhead "[ NO WEAPON! ]" 3377147 settimer NoWeaponOverheadTimer 07148 endif7149 clearignore 7150 else7151 if not findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' hand7152 clearignore7153 if findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' backpack as MySlowWeapon7154 for 107155 getlabel MySlowWeapon WeaponLabel7156 wait 2507157 if "aspect" in WeaponLabel7158 break7159 elseif "unidentified" in WeaponLabel7160 @ignore MySlowWeapon7161 wait 2507162 else7163 @ignore MySlowWeapon7164 wait 2507165 endif7166 if findtype 'war hammer|great mace|giant club|giant spiked club|sledgehammer' backpack as MySlowWeapon7167 getlabel MySlowWeapon WeaponLabel7168 wait 2507169 endif7170 endfor7171 wait 2507172 dclick MySlowWeapon7173 wait 5007174 clearignore7175 endif7176 endif7177 endif7178 elseif skill 'Fencing' >= 50 7179 if not findtype '30992|3938|3719|5123' self7180 if timer NoWeaponOverheadTimer > 50007181 overhead "[ NO WEAPON! ]" 3377182 settimer NoWeaponOverheadTimer 07183 endif7184 clearignore 7185 else7186 if not findtype '30992|3938|3719|5123' hand7187 if findtype '30992|3938|3719|5123' backpack as MySlowWeapon7188 for 107189 getlabel MySlowWeapon WeaponLabel7190 wait 2507191 if "aspect" in WeaponLabel7192 break7193 elseif "unidentified" in WeaponLabel7194 @ignore MySlowWeapon7195 wait 2507196 else7197 @ignore MySlowWeapon7198 wait 2507199 endif7200 if findtype '30992|3938|3719|5123' backpack as MySlowWeapon7201 getlabel MySlowWeapon WeaponLabel7202 wait 2507203 endif7204 endfor7205 wait 2507206 dclick MySlowWeapon7207 wait 5007208 clearignore 7209 endif7210 endif7211 endif7212 endif7213 endif7214 7215 if find CurrentTarget ground -1 -1 TargetAttackRange and warmode7216 if EnableInstantHide = 17217 while cooldown Stealth or cooldown Hiding7218 wait 1007219 if not cooldown Stealth and not cooldown Hiding7220 break7221 endif7222 if timer HidingOverheadTimer > 2500 and EnableOverheadMessages = 1 7223 overhead "[ INSTA-HIDE DELAY... ]" 137224 settimer HidingOverheadTimer 07225 wait 5007226 elseif timer HidingOverheadTimer > 25007227 overhead " � " 137228 settimer HidingOverheadTimer 07229 wait 5007230 endif7231 endwhile7232 endif7233 7234 attack CurrentTarget7235 wait 5007236 @setvar! Stealthing 07237 @setvar! StealthingReady 07238 7239 if insysmsg 'You strike your target from the shadows!' 7240 if EnableOverheadMessages = 17241 overhead "[ BACKSTAB!! ]" 1790 CurrentTarget7242 endif 7243 overhead " � " 1790 CurrentTarget7244 endif7245 7246 if insysmsg 'Vanish activated'7247 if EnableOverheadMessages = 17248 overhead '[ VANISHED!! ]' 21147249 endif7250 cooldown 'Vanish Buff' 300007251 wait 5007252 @setvar! Stealthing 17253 @setvar! StealthingReady 17254 if EnableSmokeBombDoubleTap = 1 and not dead CurrentTarget7255 hotkey 'Toggle War Only'7256 else 7257 hotkey 'Toggle Peace Only'7258 endif7259 clearsysmsg7260 cooldown 'Stealth' 07261 cooldown "Hiding" 07262 break7263 endif7264 7265 if EnableExplosionPotion = 17266 if skill 'Alchemy' >= 80 and not hidden and not dead CurrentTarget7267 @setvar! PurplePotionReady 07268 if findtype 'purple potion' self as explotPot7269 getlabel explotPot potLabel7270 if "(" in potLabel7271 if timer ExplosionPotionTimer > PurplePotionCooldown7272 @setvar! PurplePotionReady 17273 wait 250 7274 else7275 @setvar! PurplePotionReady 07276 endif7277 else7278 @setvar! PurplePotionReady 17279 wait 2507280 endif7281 else7282 if EnableOverheadMessages = 1 and timer ExplosionPotionMessageTimer > 150007283 overhead '[ NO PURPLE POTIONS ]' 3377284 settimer ExplosionPotionMessageTimer 07285 endif7286 endif7287 7288 if targetexists7289 hotkey 'cancel current target'7290 endif7291 7292 @setvar! Interrupted 0 7293 7294 if PurplePotionReady = 1 and not dead CurrentTarget and find CurrentTarget ground -1 -1 TargetAttackRange7295 settimer ExplosionPotionTimeout 07296 while not insysmsg "Where should i throw this potion?" and timer ExplosionPotionTimeout < 10007297 potion 'explosion' 7298 wait 250 7299 endwhile7300 @setvar! PurplePotionReady 07301 settimer ExplosionPotionTimer 07302 settimer ExplosionPotionTimeout 07303 while not targetexists and timer ExplosionPotionTimeout < 20007304 if dead CurrentTarget or not find CurrentTarget ground -1 -1 TargetAttackRange7305 @setvar! Interrupted 17306 hotkey 'cancel current target'7307 break7308 endif7309 wait 1007310 endwhile7311 7312 if Interrupted = 0 and targetexists7313 target CurrentTarget7314 if EnableOverheadMessages = 17315 overhead '[ EXPLOSION POT... ]' 4197316 endif7317 cooldown "Purple Potion" PurplePotionCooldown7318 getlabel backpack packdesc7319 wait 2507320 endif7321 endif7322 endif7323 endif 7324 7325 if EnableFastSecondHit = 17326 if not hidden and not dead CurrentTarget7327 if EnableWeaponAbilities = 17328 if skill 'Mace Fighting' >= 807329 if timer WeaponAbilityTimer > WeaponAbilityCooldown and UsePummelAbility = 17330 clearsysmsg7331 yell "[WeaponAbility1"7332 wait 2507333 if insysmsg "You cannot"7334 settimer WeaponAbilityTimer 250007335 clearsysmsg7336 else7337 if EnableOverheadMessages = 17338 overhead "[ PUMMEL! ]" 377339 endif7340 cooldown "Weapon Ability" WeaponAbilityCooldown7341 cooldown "Pummel Ability" 150007342 settimer WeaponAbilityTimer 07343 endif7344 elseif timer WeaponAbilityTimer > WeaponAbilityCooldown and UseStunAbility = 17345 clearsysmsg7346 yell "[WeaponAbility2"7347 wait 2507348 if insysmsg "You cannot"7349 settimer WeaponAbilityTimer 250007350 clearsysmsg7351 else7352 if EnableOverheadMessages = 17353 overhead "[ STUN! ]" 377354 endif7355 cooldown "Weapon Ability" WeaponAbilityCooldown7356 cooldown "Stun Ability" 150007357 settimer WeaponAbilityTimer 07358 endif7359 elseif timer WeaponAbilityTimer > WeaponAbilityCooldown and UseSmashAbility = 17360 clearsysmsg7361 yell "[WeaponAbility3"7362 wait 2507363 if insysmsg "You cannot"7364 settimer WeaponAbilityTimer 250007365 clearsysmsg7366 else7367 if EnableOverheadMessages = 17368 overhead "[ SMASH! ]" 377369 endif7370 cooldown "Weapon Ability" WeaponAbilityCooldown7371 cooldown "Smash Ability" 50007372 settimer WeaponAbilityTimer 07373 endif7374 wait 5007375 endif7376 elseif skill 'Fencing' >= 807377 if timer WeaponAbilityTimer > WeaponAbilityCooldown and UseGambitAbility = 17378 clearsysmsg7379 yell "[WeaponAbility1"7380 wait 2507381 if insysmsg "You cannot"7382 settimer WeaponAbilityTimer 250007383 clearsysmsg7384 else7385 if EnableOverheadMessages = 17386 overhead "[ GAMBIT! ]" 377387 endif7388 cooldown "Weapon Ability" WeaponAbilityCooldown7389 cooldown "Gambit Ability" 150007390 settimer WeaponAbilityTimer 07391 endif7392 elseif timer WeaponAbilityTimer > WeaponAbilityCooldown and UseSwiftstrikesAbility = 17393 clearsysmsg7394 yell "[WeaponAbility2"7395 wait 2507396 if insysmsg "You cannot"7397 settimer WeaponAbilityTimer 250007398 clearsysmsg7399 else7400 if EnableOverheadMessages = 17401 overhead "[ SWIFTSTRIKES! ]" 377402 endif7403 cooldown "Weapon Ability" WeaponAbilityCooldown7404 cooldown "Swiftstrikes Ability" 150007405 settimer WeaponAbilityTimer 07406 endif7407 elseif timer WeaponAbilityTimer > WeaponAbilityCooldown and UseBaneAbility = 17408 clearsysmsg7409 yell "[WeaponAbility3"7410 wait 2507411 if insysmsg "You cannot"7412 settimer WeaponAbilityTimer 250007413 clearsysmsg7414 else7415 if EnableOverheadMessages = 17416 overhead "[ BANE! ]" 377417 endif7418 cooldown "Weapon Ability" WeaponAbilityCooldown7419 cooldown "Bane Ability" 50007420 settimer WeaponAbilityTimer 07421 endif7422 wait 5007423 endif 7424 endif7425 endif7426 7427 wait 5007428 7429 if find MyFastWeapon self7430 dclick MyFastWeapon7431 getlabel backpack backpacklabel7432 wait 2507433 attack CurrentTarget7434 wait 10007435 else7436 if EnableOverheadMessages = 17437 overhead '[ NO FAST WEAPON! ]' 3337438 endif7439 endif7440 7441 if find MySlowWeapon self7442 dclick MySlowWeapon7443 getlabel backpack backpacklabel7444 wait 2507445 else7446 if EnableOverheadMessages = 17447 overhead '[ NO SLOW WEAPON! ]' 3337448 endif7449 endif7450 endif7451 endif7452 7453 if not dead CurrentTarget7454 if EnableSmokeBombDoubleTap = 17455 wait 5007456 while cooldown Hiding or cooldown Stealth7457 if EnableHealPotion = 1 7458 if diffhits >= HealPotionHPdiff and not hidden7459 if findtype "Yellow Potion" self as HealPot7460 getlabel HealPot HealPotlabel7461 if "next" in HealPotlabel7462 // Do nothing7463 else7464 @setvar! HealPotionCheck 07465 7466 if counttype 3852 self as HealPotCount7467 @setvar! HealPotionCheck HealPotCount7468 endif7469 clearsysmsg7470 dclicktype 38527471 getlabel backpack backpackdesc7472 wait 2507473 if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"7474 settimer 'HealPotionTimer' 07475 cooldown "Healing Potion" HealPotionCooldown7476 if EnableOverheadMessages = 17477 if insysmsg "potion satchel used"7478 overhead '[ FREE HEAL POTION ]' 2537479 else7480 overhead "[ HEAL POTION ]" 2537481 endif7482 endif7483 clearsysmsg7484 endif7485 endif7486 else7487 if timer 'HealingPotionMessageTimer' > 45007488 overhead "[ NO HEAL POTS! ]" 3377489 settimer 'HealingPotionMessageTimer' 07490 endif7491 endif7492 endif7493 endif7494 7495 if EnablePanaceaPotion = 1 7496 if skill 'Alchemy' >= 807497 if findbuff "bleed" or findbuff "diseased"7498 if not findbuff "panacea potion cooldown"7499 if findtype "Orange Potion" self7500 dclicktype "Orange Potion"7501 wait 5007502 if findbuff "panacea potion cooldown" and EnableOverheadMessages = 17503 overhead "[ PANACEA POTION ]" 21177504 endif7505 cooldown 'Panacea Potion' 300007506 else 7507 if timer 'CurePotionMessageTimer' > 150007508 overhead "[ NO CURE POTS! ]" 3377509 settimer 'CurePotionMessageTimer' 07510 endif7511 endif7512 else 7513 if EnableOverheadMessages = 1 and timer PanaceaOverheadTimer > 150007514 overhead '[ PANACEA ON COOLDOWN! ]' 377515 settimer PanaceaOverheadTimer 07516 endif7517 endif7518 endif7519 endif7520 endif7521 7522 if EnableCleansingBrews = 17523 if findbuff "Disease" or findbuff "Bleed"7524 if timer CleansingBrewTimer > 1200007525 if findtype 50675 self 2935 as CleansingBrew7526 dclick CleansingBrew7527 if EnableOverheadMessages = 17528 overhead '[ CLEANSING BREW ]' 21177529 endif7530 cooldown 'Cleansing Brew' 1200007531 settimer CleansingBrewTimer 07532 wait 2507533 else7534 if timer CleansingBrewOverhead > 150007535 overhead "[ NO CLEANSING BREWS! ]" 3377536 settimer CleansingBrewOverhead 07537 settimer CleansingBrewTimer 07538 endif7539 endif7540 else 7541 if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 150007542 overhead '[ BREW ON COOLDOWN! ]' 377543 settimer CleansingBrewOverhead 07544 endif7545 endif7546 endif7547 endif7548 7549 if EnableCurePotion = 17550 while poisoned7551 if findtype "Orange Potion" self7552 dclicktype "Orange Potion"7553 if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 35007554 overhead "[ CURE POTION ]" 447555 settimer 'CurePotionMessageTimer' 07556 endif7557 wait 2507558 else7559 if timer 'CurePotionMessageTimer' > 50007560 overhead "[ NO CURE POTS! ]" 3377561 settimer 'CurePotionMessageTimer' 07562 endif7563 break7564 endif7565 if diffhits > 407566 break7567 endif7568 endwhile7569 endif7570 7571 if skill 'Healing' > 07572 if diffhits > 0 and not bandaging and not hidden7573 if findtype 'clean bandage%s%' self7574 if targetexists7575 hotkey 'cancel current target'7576 endif7577 hotkey 'Bandage Self'7578 if EnableOverheadMessages = 17579 if timer BandageMessageTimer > 50007580 overhead "[ BANDAGING... ]" 887581 settimer BandageMessageTimer 07582 endif7583 endif7584 wait 5007585 else7586 if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 17587 overhead "[ OUT OF BANDAGES! ]" 3377588 settimer BandageMessageTimer 07589 endif7590 endif7591 endif7592 endif7593 7594 if EnableRefreshPotion = 1 7595 if diffstam >= RefreshPotionSPdiff and not hidden7596 if findtype "Red Potion" self7597 dclicktype "Red Potion"7598 if EnableOverheadMessages = 17599 overhead "[ REFRESH POTION ]" 377600 endif7601 wait 5007602 else7603 if timer RefreshPotionMessageTimer > 45007604 overhead "[ NO REFRESH POTS! ]" 3377605 settimer RefreshPotionMessageTimer 07606 endif7607 endif7608 wait 5007609 endif7610 endif7611 7612 if not cooldown Hiding7613 break7614 endif7615 endwhile7616 7617 getlabel backpack backpacklabel7618 7619 if counttype 52149 self > 07620 if not cooldown 'Smoke Bomb' and not hidden7621 hotkey 'Smoke Bomb'7622 wait 5007623 if insysmsg 'You must wait another'7624 if EnableOverheadMessages = 17625 overhead '[ SMOKE BOMB UNAVAILABLE ]' 3337626 endif7627 wait 10007628 if not cooldown 'Hiding'7629 useskill 'Hiding'7630 wait 5007631 endif7632 if not hidden7633 clearsysmsg7634 hotkey 'Toggle War Only'7635 break7636 endif7637 else7638 if hidden7639 if EnableOverheadMessages = 17640 overhead '[ SMOKE BOMB! ]' 17907641 endif7642 clearsysmsg 7643 @setvar! Stealthing 17644 @setvar! StealthingReady 17645 cooldown 'Hiding' 07646 cooldown 'Stealth' 100007647 cooldown 'Smoke Bomb' SmokeBombCooldown7648 hotkey 'Toggle War Only'7649 if find CurrentTarget ground -1 -1 TargetAttackRange and not dead CurrentTarget7650 attack CurrentTarget7651 wait 2507652 endif7653 endif7654 if dead CurrentTarget7655 hotkey 'Toggle Peace Only'7656 else7657 hotkey 'Toggle War Only'7658 endif7659 break7660 endif7661 else7662 if EnableOverheadMessages = 17663 overhead '[ SMOKE ON COOLDOWN! ]' 3337664 endif7665 if not cooldown 'Hiding'7666 useskill 'Hiding'7667 wait 5007668 endif7669 if hidden7670 break7671 endif7672 endif7673 else7674 if EnableOverheadMessages = 17675 overhead '[ NO SMOKE BOMBS ]' 3337676 endif7677 if not cooldown 'Hiding'7678 useskill 'Hiding'7679 wait 5007680 endif7681 if hidden7682 break7683 endif7684 endif7685 endif7686 7687 if dead CurrentTarget7688 settimer STORELOOT 07689 @setvar! TargetAcquired 07690 endif7691 7692 if not hidden 7693 hotkey 'Toggle War Only'7694 @setvar! Stealthing 07695 @setvar! StealthingReady 07696 @setvar! KeepOnTrucking 07697 clearsysmsg 7698 break7699 endif7700 else 7701 hotkey 'Toggle Peace Only'7702 if EnableAutoCarving = 1 7703 if findtype 11552 self and not hidden and dead CurrentTarget7704 while findtype "corpse" ground -1 -1 2 as deadbody7705 if findtype 11552 self7706 if targetexists7707 hotkey 'cancel current target'7708 endif7709 while not targetexists7710 skill 'forensicevaluation'7711 endwhile7712 if targetexists and find deadbody ground -1 -1 27713 target 'self'7714 @ignore deadbody7715 wait 5007716 endif7717 if insysmsg "You dont see anything nearby"7718 clearsysmsg7719 break7720 else7721 if EnableOverheadMessages = 1 and timer SkinningTimer > 30007722 overhead "[ SKINNING... ]" 3337723 settimer SkinningTimer 07724 endif7725 endif7726 elseif skill 'forensicevaluation' > 07727 if EnableOverheadMessages = 1 and timer SkinningTimer > 150007728 overhead "[ NO SKINNING KNIFE ]" 3377729 settimer SkinningTimer 07730 break7731 endif7732 endif7733 endwhile7734 endif7735 endif7736 7737 wait LootDelayTimer7738 7739 while cooldown Hiding or cooldown Stealth7740 if timer HidingOverheadTimer > 28007741 if EnableOverheadMessages = 17742 overhead "[ WAITING TO HIDE... ]" 137743 else 7744 overhead " � " 137745 endif7746 settimer HidingOverheadTimer 07747 endif7748 7749 if not cooldown Hiding and not cooldown Stealth7750 break7751 endif7752 7753 if warmode 7754 break7755 endif7756 7757 if EnableHealPotion = 1 7758 if diffhits >= HealPotionHPdiff and not hidden7759 if findtype "Yellow Potion" self as HealPot7760 getlabel HealPot HealPotlabel7761 if "next" in HealPotlabel7762 // Do nothing7763 else7764 @setvar! HealPotionCheck 07765 7766 if counttype 3852 self as HealPotCount7767 @setvar! HealPotionCheck HealPotCount7768 endif7769 7770 clearsysmsg7771 dclicktype 38527772 getlabel backpack backpackdesc7773 wait 2507774 7775 if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"7776 settimer 'HealPotionTimer' 07777 cooldown "Healing Potion" HealPotionCooldown7778 if EnableOverheadMessages = 17779 if insysmsg "potion satchel used"7780 overhead '[ FREE HEAL POTION ]' 2537781 else7782 overhead "[ HEAL POTION ]" 2537783 endif7784 endif7785 clearsysmsg7786 endif7787 endif7788 else7789 if timer 'HealingPotionMessageTimer' > 45007790 overhead "[ NO HEAL POTS! ]" 3377791 settimer 'HealingPotionMessageTimer' 07792 endif7793 endif7794 endif7795 endif7796 7797 if EnablePanaceaPotion = 1 7798 if skill 'Alchemy' >= 807799 if findbuff "bleed" or findbuff "diseased"7800 if not findbuff "panacea potion cooldown"7801 if findtype "Orange Potion" self7802 dclicktype "Orange Potion"7803 wait 5007804 if findbuff "panacea potion cooldown" and EnableOverheadMessages = 17805 overhead "[ PANACEA POTION ]" 21177806 endif7807 cooldown 'Panacea Potion' 300007808 else 7809 if timer 'CurePotionMessageTimer' > 150007810 overhead "[ NO CURE POTS! ]" 3377811 settimer 'CurePotionMessageTimer' 07812 endif7813 endif7814 else 7815 if EnableOverheadMessages = 1 and timer PanaceaOverheadTimer > 150007816 overhead '[ PANACEA ON COOLDOWN! ]' 377817 settimer PanaceaOverheadTimer 07818 endif7819 endif7820 endif7821 endif7822 endif7823 7824 if EnableCleansingBrews = 17825 if findbuff "Disease" or findbuff "Bleed"7826 if timer CleansingBrewTimer > 1200007827 if findtype 50675 self 2935 as CleansingBrew7828 dclick CleansingBrew7829 if EnableOverheadMessages = 17830 overhead '[ CLEANSING BREW ]' 21177831 endif7832 cooldown 'Cleansing Brew' 1200007833 settimer CleansingBrewTimer 07834 wait 2507835 else7836 if timer CleansingBrewOverhead > 150007837 overhead "[ NO CLEANSING BREWS! ]" 3377838 settimer CleansingBrewOverhead 07839 settimer CleansingBrewTimer 07840 endif7841 endif7842 else 7843 if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 150007844 overhead '[ BREW ON COOLDOWN! ]' 377845 settimer CleansingBrewOverhead 07846 endif7847 endif7848 endif7849 endif7850 7851 if EnableCurePotion = 17852 while poisoned7853 if findtype "Orange Potion" self7854 dclicktype "Orange Potion"7855 if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 35007856 overhead "[ CURE POTION ]" 447857 settimer 'CurePotionMessageTimer' 07858 endif7859 wait 2507860 else7861 if timer 'CurePotionMessageTimer' > 50007862 overhead "[ NO CURE POTS! ]" 3377863 settimer 'CurePotionMessageTimer' 07864 endif7865 break7866 endif7867 if diffhits > 407868 break7869 endif7870 endwhile7871 endif7872 7873 if skill 'Healing' > 07874 if diffhits > 0 and not bandaging and not hidden7875 if findtype 'clean bandage%s%' self7876 if targetexists7877 hotkey 'cancel current target'7878 endif7879 hotkey 'Bandage Self'7880 if EnableOverheadMessages = 17881 if timer BandageMessageTimer > 50007882 overhead "[ BANDAGING... ]" 887883 settimer BandageMessageTimer 07884 endif7885 endif7886 wait 5007887 else7888 if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 17889 overhead "[ OUT OF BANDAGES! ]" 3377890 settimer BandageMessageTimer 07891 endif7892 endif7893 endif7894 endif7895 7896 if EnableRefreshPotion = 1 7897 if diffstam >= RefreshPotionSPdiff and not hidden7898 if findtype "Red Potion" self7899 dclicktype "Red Potion"7900 if EnableOverheadMessages = 17901 overhead "[ REFRESH POTION ]" 377902 endif7903 wait 5007904 else7905 if timer RefreshPotionMessageTimer > 45007906 overhead "[ NO REFRESH POTS! ]" 3377907 settimer RefreshPotionMessageTimer 07908 endif7909 endif7910 wait 5007911 endif7912 endif7913 endwhile7914 7915 if warmode 7916 break7917 endif7918 7919 clearsysmsg 7920 useskill 'Hiding'7921 wait 2507922 hotkey 'Toggle Peace Only'7923 wait 2507924 7925 while insysmsg 'You must wait'7926 if timer HidingOverheadTimer > 28007927 if EnableOverheadMessages = 17928 overhead "[ WAITING TO HIDE... ]" 137929 else 7930 overhead " � " 137931 endif7932 settimer HidingOverheadTimer 07933 endif7934 7935 clearsysmsg7936 useskill 'Hiding'7937 wait 5007938 7939 if hidden7940 break7941 endif7942 7943 if warmode 7944 break7945 endif7946 7947 if EnableHealPotion = 1 7948 if diffhits >= HealPotionHPdiff and not hidden7949 if findtype "Yellow Potion" self as HealPot7950 getlabel HealPot HealPotlabel7951 if "next" in HealPotlabel7952 // Do nothing7953 else7954 @setvar! HealPotionCheck 07955 7956 if counttype 3852 self as HealPotCount7957 @setvar! HealPotionCheck HealPotCount7958 endif7959 7960 clearsysmsg7961 dclicktype 38527962 getlabel backpack backpackdesc7963 wait 2507964 7965 if HealPotionCheck != counttype 3852 self or insysmsg "potion satchel used"7966 settimer 'HealPotionTimer' 07967 cooldown "Healing Potion" HealPotionCooldown7968 if EnableOverheadMessages = 17969 if insysmsg "potion satchel used"7970 overhead '[ FREE HEAL POTION ]' 2537971 else7972 overhead "[ HEAL POTION ]" 2537973 endif7974 endif7975 clearsysmsg7976 endif7977 endif7978 else7979 if timer 'HealingPotionMessageTimer' > 45007980 overhead "[ NO HEAL POTS! ]" 3377981 settimer 'HealingPotionMessageTimer' 07982 endif7983 endif7984 endif7985 endif7986 7987 if EnablePanaceaPotion = 1 7988 if skill 'Alchemy' >= 807989 if findbuff "bleed" or findbuff "diseased"7990 if not findbuff "panacea potion cooldown"7991 if findtype "Orange Potion" self7992 dclicktype "Orange Potion"7993 wait 5007994 if findbuff "panacea potion cooldown" and EnableOverheadMessages = 17995 overhead "[ PANACEA POTION ]" 21177996 endif7997 cooldown 'Panacea Potion' 300007998 else 7999 if timer 'CurePotionMessageTimer' > 150008000 overhead "[ NO CURE POTS! ]" 3378001 settimer 'CurePotionMessageTimer' 08002 endif8003 endif8004 else 8005 if EnableOverheadMessages = 1 and timer PanaceaOverheadTimer > 150008006 overhead '[ PANACEA ON COOLDOWN! ]' 378007 settimer PanaceaOverheadTimer 08008 endif8009 endif8010 endif8011 endif8012 endif8013 8014 if EnableCleansingBrews = 18015 if findbuff "Disease" or findbuff "Bleed"8016 if timer CleansingBrewTimer > 1200008017 if findtype 50675 self 2935 as CleansingBrew8018 dclick CleansingBrew8019 if EnableOverheadMessages = 18020 overhead '[ CLEANSING BREW ]' 21178021 endif8022 cooldown 'Cleansing Brew' 1200008023 settimer CleansingBrewTimer 08024 wait 2508025 else8026 if timer CleansingBrewOverhead > 150008027 overhead "[ NO CLEANSING BREWS! ]" 3378028 settimer CleansingBrewOverhead 08029 settimer CleansingBrewTimer 08030 endif8031 endif8032 else 8033 if EnableOverheadMessages = 1 and timer CleansingBrewOverhead > 150008034 overhead '[ BREW ON COOLDOWN! ]' 378035 settimer CleansingBrewOverhead 08036 endif8037 endif8038 endif8039 endif8040 8041 if EnableCurePotion = 18042 while poisoned8043 if findtype "Orange Potion" self8044 dclicktype "Orange Potion"8045 if EnableOverheadMessages = 1 and timer 'CurePotionMessageTimer' > 35008046 overhead "[ CURE POTION ]" 448047 settimer 'CurePotionMessageTimer' 08048 endif8049 wait 2508050 else8051 if timer 'CurePotionMessageTimer' > 50008052 overhead "[ NO CURE POTS! ]" 3378053 settimer 'CurePotionMessageTimer' 08054 endif8055 break8056 endif8057 if diffhits > 408058 break8059 endif8060 endwhile8061 endif8062 8063 if skill 'Healing' > 08064 if diffhits > 0 and not bandaging and not hidden8065 if findtype 'clean bandage%s%' self8066 if targetexists8067 hotkey 'cancel current target'8068 endif8069 hotkey 'Bandage Self'8070 if EnableOverheadMessages = 18071 if timer BandageMessageTimer > 50008072 overhead "[ BANDAGING... ]" 888073 settimer BandageMessageTimer 08074 endif8075 endif8076 wait 5008077 else8078 if timer BandageMessageTimer > 5000 and EnableOverheadMessages = 18079 overhead "[ OUT OF BANDAGES! ]" 3378080 settimer BandageMessageTimer 08081 endif8082 endif8083 endif8084 endif8085 8086 if EnableRefreshPotion = 1 8087 if diffstam >= RefreshPotionSPdiff and not hidden8088 if findtype "Red Potion" self8089 dclicktype "Red Potion"8090 if EnableOverheadMessages = 18091 overhead "[ REFRESH POTION ]" 378092 endif8093 wait 5008094 else8095 if timer RefreshPotionMessageTimer > 45008096 overhead "[ NO REFRESH POTS! ]" 3378097 settimer RefreshPotionMessageTimer 08098 endif8099 endif8100 wait 5008101 endif8102 endif8103 endwhile8104 8105 wait 5008106 8107 if hidden8108 hotkey 'Toggle Peace Only'8109 break8110 elseif not hidden8111 if EnableSmokeBombWhenAggro = 18112 if counttype 52149 self > 08113 if not cooldown 'Smoke Bomb' and not hidden8114 clearsysmsg8115 hotkey 'Smoke Bomb'8116 wait 5008117 if insysmsg 'You must wait another'8118 if EnableOverheadMessages = 18119 overhead '[ SMOKE BOMB UNAVAILABLE ]' 3338120 endif8121 hotkey 'Toggle War Only'8122 break8123 else8124 if hidden8125 if EnableOverheadMessages = 18126 overhead '[ SMOKE BOMB! ]' 17908127 endif8128 clearsysmsg 8129 @setvar! Stealthing 18130 @setvar! StealthingReady 18131 cooldown 'Hiding' 08132 cooldown 'Stealth' 100008133 cooldown 'Smoke Bomb' SmokeBombCooldown8134 endif8135 break8136 endif8137 else8138 if EnableOverheadMessages = 18139 overhead '[ SMOKE ON COOLDOWN! ]' 338140 endif8141 hotkey 'Toggle War Only'8142 break8143 endif8144 else8145 if EnableOverheadMessages = 18146 overhead '[ NO SMOKE BOMBS ]' 3378147 endif8148 cooldown 'Hiding' 10008149 if not hidden8150 hotkey 'Toggle War Only'8151 break8152 endif8153 endif8154 else 8155 hotkey 'Toggle War Only'8156 @setvar! Stealthing 08157 @setvar! StealthingReady 08158 @setvar! KeepOnTrucking 08159 clearsysmsg 8160 endif8161 break8162 endif8163 if dead CurrentTarget8164 wait 15008165 settimer STORELOOT 08166 break8167 endif8168 endif8169 endif8170 if dead 8171 break8172 endif8173 endwhile8174 endif8175 8176 if EnableOverheadMessages = 18177 if insysmsg "something invisible out of"8178 overhead "� SOMEONE HIDING! �" 68179 endif8180 8181 if insysmsg "additional mastery chain link"8182 overhead "[ CHAIN LINK UNLOCKED!! ]" 1498183 wait 5008184 if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown8185 wait 5008186 say "[Yes"8187 settimer EmoteCooldownTimer 08188 cooldown "Emote Cooldown" SetEmoteCooldown8189 endif8190 endif8191 8192 if insysmsg "enough experience to upgrade"8193 overhead "[ ASPECT TIER UNLOCKED!! ]" 22348194 wait 5008195 if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown8196 wait 5008197 say "[Whistle"8198 settimer EmoteCooldownTimer 08199 cooldown "Emote Cooldown" SetEmoteCooldown8200 endif8201 endif8202 8203 if insysmsg "You have unlocked a codex upgrade point"8204 overhead "[ CODEX POINT UNLOCKED! ]" 21148205 wait 2508206 if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown8207 wait 5008208 say "[HighFive"8209 settimer EmoteCooldownTimer 08210 cooldown "Emote Cooldown" SetEmoteCooldown8211 endif8212 endif8213 8214 if insysmsg "You have completed a society job"8215 overhead "[ SOCIETY JOB COMPLETE! ]" 4198216 wait 5008217 if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown8218 wait 5008219 say "[Awoo"8220 settimer EmoteCooldownTimer 08221 cooldown "Emote Cooldown" SetEmoteCooldown8222 endif8223 endif8224 8225 if insysmsg "Society Job Progress"8226 overhead "[ � SOCIETY POINTS � ]" 4198227 endif8228 8229 if insysmsg "causes you to bleed"8230 overhead "[ YOU ARE BLEEDING... ]" 21188231 endif8232 8233 if insysmsg "been struck by an ancient blight"8234 overhead "[ DISEASED... ]" 11098235 endif8236 8237 if insysmsg "You feel chilled!"8238 overhead "[ YOU ARE CHILLED... ]" 22348239 endif8240 8241 if insysmsg "You resist a disease effect"8242 overhead "[ DISEASE RESISTED! ]" 8888243 endif8244 8245 if insysmsg "resist a bleed"8246 overhead "[ BLEED RESISTED! ]" 8888247 endif8248 8249 if insysmsg "The creature pierces and bypasses your armor!"8250 overhead "[ YOU ARE PIERCED... ]" 3378251 endif8252 8253 if insysmsg "Their attack disarms you!"8254 overhead "[ DISARMED! ]" 337 8255 endif8256 8257 if insysmsg "Their attack hamstrings you!"8258 overhead "[ HAMSTRUNG! ]" 3378259 endif8260 8261 if insysmsg "attempting to steal" or insysmsg "attempting to peek"8262 overhead "[ THIEF DETECTED! ]" 9108263 endif8264 else8265 if insysmsg "something invisible out of"8266 overhead "� SOMEONE HIDING! �" 68267 endif8268 8269 if insysmsg "additional mastery chain link"8270 overhead "[ � CHAIN! � ]" 1498271 wait 5008272 if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown8273 wait 5008274 say "[Yes"8275 settimer EmoteCooldownTimer 08276 cooldown "Emote Cooldown" SetEmoteCooldown8277 endif8278 endif8279 8280 if insysmsg "enough experience to upgrade"8281 overhead "[ � ASPECT � ]" 22348282 wait 5008283 if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown8284 wait 5008285 say "[Whistle"8286 settimer EmoteCooldownTimer 08287 cooldown "Emote Cooldown" SetEmoteCooldown8288 endif8289 endif8290 8291 if insysmsg "You have unlocked a codex upgrade point"8292 overhead '[ � CODEX! � ]' 21148293 wait 2508294 if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown8295 wait 5008296 say "[HighFive"8297 settimer EmoteCooldownTimer 08298 cooldown "Emote Cooldown" SetEmoteCooldown8299 endif8300 endif8301 8302 if insysmsg "You have completed a society job"8303 overhead "[ SOCIETY COMPLETE! ]" 4198304 wait 5008305 if EnableUseEmotes = 1 and timer EmoteCooldownTimer > SetEmoteCooldown8306 wait 5008307 say "[Awoo"8308 settimer EmoteCooldownTimer 08309 cooldown "Emote Cooldown" SetEmoteCooldown8310 endif8311 endif8312 8313 if insysmsg "Society Job Progress"8314 overhead "[ � SOCIETY � ]" 4198315 endif8316 8317 if insysmsg "attempting to steal" or insysmsg "attempting to peek"8318 overhead "[ THIEF DETECTED! ]" 9108319 endif8320 8321 if insysmsg "Their attack disarms you!"8322 overhead "*disarmed*" 337 8323 endif8324 8325 if insysmsg "Their attack hamstrings you!"8326 overhead "*hamstrung*" 3378327 endif8328 endif8329 8330 if dead 8331 break8332 endif8333 endwhile8334 8335 //////////////////////////////8336 // END ATTACK TARGET LOOP //8337 //////////////////////////////8338 8339 if dead 8340 break8341 endif8342endwhile8343 8344//////////////////////8345// END ALIVE LOOP //8346//////////////////////8347 8348 8349/////////////////////////8350// BEGIN DEATH LOOP: //8351/////////////////////////8352 8353if dead 8354 overhead "[ R.I.P. ]" 3378355 wait 15008356 if EnableDeathLoop = 18357 while dead8358 if timer "HEALERSEARCH" > 40008359 overhead "[ FIND A HEALER! ]" 08360 settimer "HEALERSEARCH" 08361 endif8362 8363 if findtype "blue moongate|30528|moongate" ground -1 -1 12 as EscapeGate8364 if timer "GATEHERE" > 20008365 overhead " � " 253 EscapeGate8366 settimer "GATEHERE" 08367 endif8368 endif8369 8370 while not gumpexists 3773199800 and findtype "blue moongate|30528|moongate" ground 0 1 2 as EscapeGate8371 dclick EscapeGate8372 wait 5008373 endwhile8374 8375 while gumpexists 37731998008376 gumpresponse 168377 wait 5008378 waitforgump 37731998008379 gumpresponse 28380 overhead "[ GATING TO TOWN... ]" 888381 break8382 endwhile8383 8384 while gumpexists 29578102258385 overhead "[ HEALED! ]" 848386 gumpresponse 18387 wait 10008388 gumpclose 29578102258389 while not dead and not hidden and EnableHideAfterResurrection = 18390 if targetexists8391 hotkey 'Cancel Current Target'8392 endif8393 wait 5008394 useskill 'Hiding'8395 wait 5008396 if hidden8397 break8398 endif8399 endwhile8400 break8401 endwhile8402 8403 if not dead8404 break8405 endif8406 endwhile8407 else 8408 wait 10008409 overhead "[ STOPPING SCRIPT! ]" 888410 stop 8411 endif8412endif8413 8414if not dead8415 if EnableDressAfterResurrection = 18416 if EnableOverheadMessages = 18417 overhead '[ DRESSING... ]' 17908418 endif8419 wait 5008420 dress 'UltimateBackstabber'8421 wait 5008422 while queued8423 wait 1008424 endwhile8425 wait 10008426 dress 'UltimateBackstabber'8427 while queued8428 wait 1008429 endwhile8430 wait 10008431 dress 'UltimateBackstabber'8432 while queued8433 wait 1008434 endwhile8435 endif8436 wait 10008437 overhead "[ STOPPING SCRIPT! ]" 888438 stop8439else 8440 replay8441endif 8442 8443//////////////////////8444// END DEATH LOOP //8445//////////////////////8446 8447 8448 8449 8450 8451 8452 #############################8453 ### SCRIPT ENDS HERE! ###8454 #############################8455 8456 8457 8458 8459 8460 8461// Thank you for using my scripts! I can be contacted via email here: dan@danstockman.com8462// Good luck out there and say hello if you see me in Avadon (Lord Glacier) - please don't PK me lol8463 8464 8465 8466 8467 8468 8469 