Skip to content
Outlands Hub

Razor script

Two handed dexxer healing loop w/ one hand potion swap

by Jaseowns · 109 lines
Download

Compatibility unverified

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

Heals with…

HealingCombatHealing
Two handed dexxer healing loop w one hand potion swap.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/ac7c1680-bc50-47bc-8d62-1cf3df0317b8 for latest2# Automation by Jaseowns3## Script: Two handed dexxer healing loop w/ one hand potion swap4## Created by: Jaseowns#66945#############################################6 7# Two handed dexxer healing loop, potion weapon swap by Jaseowns8# UO Outlands9# Requirements:10#   use >info in game to get the item id of your11#   favorite two handed weapon and one handed weapon12#   these values must be numbers13# Description:14#   Heals with bandaids and tries to drink 15#   cures or heals16 17// Heal pot when below this health18@setvar! heal_pot_hp_trigger 2619 20// executioners axe21@setvar! preferred_twohand_weapon_type_id 390922// viking sword23@setvar! preferred_onehand_weapon_type_id 504924 25// General wait after actions26@setvar! globalTimeout 65027 28while not dead29    if hidden30        continue31    endif32    33    if findtype "clean bandage%s%" backpack34        if bandaging = 0 35            if hp != maxhp36                if targetexists any37                    target cancel38                endif39                hotkey 'Bandage self' 40                wait globalTimeout41            endif42        endif43    endif44 45    if paralyzed46        overhead 'Paralyzed!' 3847        if findtype "pouch" backpack 38 any any 48            say '[pouch'49            wait globalTimeout50        endif51    endif52    53    if poisoned54        if findtype "Orange Potion" backpack55            overhead 'Drinking cure!' 4856            if findtype preferred_twohand_weapon_type_id lefthand57                if findtype preferred_onehand_weapon_type_id backpack as swappy58                    dclick swappy59                else60                    overhead "This is slow, find a damn one hander" 3461                    undress LeftHand62                endif63            endif64 65            wait globalTimeout66            potion "cure" 67            wait globalTimeout68            69            if not findtype preferred_twohand_weapon_type_id lefthand70                if findtype preferred_twohand_weapon_type_id backpack as swappy71                    dclick swappy72                endif73            endif74            wait globalTimeout      75        endif76    endif77 78    if hp < heal_pot_hp_trigger79        if findtype 3852 backpack as PotsHeal 80            getlabel PotsHeal LabelPotsHeal81            if 'next usable' in LabelPotsHeal82                sysmsg 'Unable to use Heal Potion Yet!' 33   83                wait globalTimeout       84            else85                overhead 'Drinking heal!' 6886                if findtype preferred_twohand_weapon_type_id lefthand87                    if findtype preferred_onehand_weapon_type_id backpack as swappy88                        dclick swappy89                    else90                        overhead "This is slow, find a damn one hander" 3491                        undress LeftHand92                    endif93                endif94 95                wait globalTimeout96                dclick PotsHeal97                wait globalTimeout98 99                if not findtype preferred_twohand_weapon_type_id lefthand100                    if findtype preferred_twohand_weapon_type_id backpack as swappy101                        dclick swappy102                    endif103                endif    104 105            endif106        endif 107    endif108 109endwhile