Skip to content
Outlands Hub

Razor script

Potion Buffs: Handle all weapon types

by Jaseowns · 92 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.

by Jaseowns UO Outlands https://youtube.com/jaseowns/live This handles: Alchemy, all two handed, one handed and shield builds This only drinks buff potions if you need them There will be another script…

CraftingCombatAlchemy
Potion Buffs Handle all weapon types.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/d9dd5ae8-f46d-4d7b-9371-3f392896fb23 for latest2# Automation by Jaseowns3## Script: Potion Buffs: Handle all weapon types4## Created by: Jaseowns#66945#############################################6 7# Potion Buffs: Handle all weapon types by Jaseowns8# UO Outlands9# https://youtube.com/jaseowns/live10# This handles: Alchemy, all two handed, one handed and shield builds11# This only drinks buff potions if you need them12# There will be another script for healing, cures and red pots.13# Update 4/30/2025: Potions no longe require a free hand to drink14 15// Check buff controllers16@setvar! checkStr 117@setvar! checkDex 118@setvar! checkMagic 119 20@setvar! needStrBuff 021@setvar! needDexBuff 022@setvar! needMagicBuff 023 24if checkStr = 1 and not findbuff "Strength"25    @setvar! needStrBuff 126endif27 28if checkDex = 1 and not findbuff "Agility"29    @setvar! needDexBuff 1 30endif31 32if checkMagic = 1 and not findbuff "Magic Resist Potion"33    @setvar! needMagicBuff 1 34endif35 36 37if needStrBuff = 1 and not findtype "White Potion" self38    overhead "No white potions!" 3439    @setvar! needStrBuff 040endif41 42if needDexBuff = 1 and not findtype "Blue Potion" self43    overhead "No blue agi potions!" 3444    @setvar! needDexBuff 045endif46 47if needMagicBuff = 1 and not findtype "Black Potion" self48    @setvar! needMagicBuff 049endif50 51@setvar! jaseCanDrinkPotion 052 53if needStrBuff = 1 or needDexBuff = 1 or needMagicBuff = 154 55        if needStrBuff = 156            if findtype "White Potion" self as jotion57                overhead "chug"58                dclick jotion59                wait 65060            else61                overhead "No STR potion found!" 3462            endif63        endif64        65        if needDexBuff = 166            if findtype "Blue Potion" self as jotion67                overhead "chug"68                dclick jotion69                wait 65070            else71                overhead "No AGI potion found!" 3472            endif73        endif74        75        if needMagicBuff = 176            if findtype "Black Potion" self as jotion77                overhead "chug"78                dclick jotion79                wait 65080            else81                overhead "No MR potion found!" 3482            endif83        endif84 85    endif86endif87 88 89 90 91 92