Compatibility unverified
This community Razor script has not been tested in game by the Hub. Read its setup and client requirements before use.
Heals with bandaids and tries to drink cures or heals (handles…
HealingCombatHealing
Sword and Shield Dexxer Healing Loop removes shield to drink pots.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/d5fb5680-ccf9-4bdf-a7db-e832fda84ca5 for latest2# Automation by Jaseowns3## Script: Sword and Shield Dexxer Healing Loop (removes shield to drink pots)4## Created by: Jaseowns#66945#############################################6 7# Sword and shield healing loop, unequips shield to drink pot by Jaseowns8# UO Outlands9# Requirements:10# use a one handed weapon and shield when running this script11# Description:12# Heals with bandaids and tries to drink 13# cures or heals (handles unequipping shield)14 15// Heal pot when below this health ex: (hp < heal_pot_hp_trigger)16@setvar! heal_pot_hp_trigger 3117 18// Drink red pots when drink_red is 119@setvar! drink_red 120// when below stam ex: (diffstam < red_pot_stamdiff_trigger)21@setvar! red_pot_stamdiff_trigger 2022 23// General wait after actions24@setvar! globalTimeout 65025 26 27 28##########################################################29#30# You do not need to edit anything below this.... 31# unless you are a wild beast - youtube.com/jaseowns32#33##########################################################34 35@setvar! weapon_equipped 036@setvar! sheild_equipped 037 38if findlayer self righthand as found39 @setvar! weapon_equipped found40endif 41 42if findlayer self lefthand as found43 @setvar! sheild_equipped found44endif 45 46 47if not timerexists '_refreshTimer'48 createtimer '_refreshTimer'49 settimer '_refreshTimer' 99999950endif51 52while not dead53 54 if hidden55 continue56 endif57 58 if findtype "clean bandage%s%" backpack59 if bandaging = 0 60 if hp != maxhp61 if targetexists any62 target cancel63 endif64 hotkey 'Bandage self' 65 wait globalTimeout66 endif67 endif68 endif69 70 if insysmsg 'You cannot move!' or paralyzed71 overhead 'Paralyzed!' 3872 if findtype "pouch" backpack 3873 say '[pouch'74 wait globalTimeout75 endif76 endif77 78 if poisoned79 if findtype "Orange Potion" backpack as pot80 if hits < 9081 if not rhandempty and not lhandempty82 overhead "Remove shield..."83 if findlayer self lefthand as found84 @setvar! sheild_equipped found85 lift sheild_equipped86 drop backpack87 wait globalTimeout88 endif 89 endif90 91 dclick pot92 wait globalTimeout93 endif94 else95 overhead "Out of cure pots!" 3496 if lhandempty and hp > heal_pot_hp_trigger97 overhead "Requip shield..." 098 if sheild_equipped != 099 dclick sheild_equipped100 else101 overhead "Unable to find your shield, re-equip manually!" 34102 endif103 endif104 wait globalTimeout105 endif106 elseif lhandempty and hp > heal_pot_hp_trigger107 overhead "Requip shield..." 0108 if sheild_equipped != 0109 dclick sheild_equipped110 else111 overhead "Unable to find your shield, re-equip manually!" 34112 endif113 wait globalTimeout114 endif115 116 // If Dex is at least 76.117 // If stamina is 75 or less, drink a Refesh potion.118 // Set the refresh timer lower or higher, to adjust.119 if drink_red = 1 and timer '_refreshTimer' >= 300 and findtype 'Red Potion' backpack as pot120 if diffstam > red_pot_stamdiff_trigger121 if not rhandempty and not lhandempty122 overhead "Remove shield..."123 if findlayer self lefthand as found124 @setvar! sheild_equipped found125 lift sheild_equipped126 drop backpack127 wait globalTimeout128 endif 129 endif130 131 dclick pot132 settimer '_refreshTimer' 0133 overhead 'Total Refreshed.' 69134 wait globalTimeout135 endif136 endif137 endif138 139 if hp < heal_pot_hp_trigger140 if findtype 3852 backpack as PotsHeal 141 getlabel PotsHeal LabelPotsHeal142 if 'next usable' in LabelPotsHeal143 sysmsg 'Unable to use Heal Potion Yet!' 33 144 wait globalTimeout 145 wait globalTimeout146 else147 overhead 'Drinking heal!' 68148 if not rhandempty and not lhandempty149 overhead "Remove shield..."150 if findlayer self lefthand as found151 @setvar! sheild_equipped found152 lift sheild_equipped153 drop backpack154 endif 155 endif156 dclick PotsHeal157 wait globalTimeout158 endif159 endif 160 endif161 162endwhile