Skip to content
Outlands Hub

Razor script

Recover Potion Bottles

by thisideasucks · 116 lines
Download

What to consume to recover bottles from

Recover Potion Bottles.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/e3907358-a657-4944-a3ea-436a8bc181c8 for latest2# Automation by Jaseowns3## Script: Recover Potion Bottles4## Created by: thisideasucks#05#############################################6 7// What to consume to recover bottles from8@setvar! redRefresh 19@setvar! whiteStrength 110@setvar! blueDexterity 111@setvar! blackMagicResist 112@setvar! orangeCure 013@setvar! yellowHeal 014@setvar! greenPoison 015 16// Timeouts and wait times - May need to adjust for latency17@setvar! globalTimeout 20018@setvar! shelfWait 25019@setvar! potionWait 20020 21if not dead22    if hp < 5023        while poisoned24            if findtype "Orange Potion" self25                overhead 'Drinking cure!' 5026                potion "cure"27                wait globalTimeout28            elseif findtype "storage shelf" ground -1 -1 2 as myShelf29                menu myShelf 130                wait shelfWait31            endif32            if not findtype "Orange Potion" self33                overhead "Can't cure poison!!" 3434                overhead "Probly gonna die!!" 3435                stop36            endif37        endwhile38 39        if findtype 3852 self40        elseif findtype "storage shelf" ground -1 -1 2 as myShelf41            menu myShelf 142            wait shelfWait43        endif44        if findtype 3852 self as healingPotion45            getlabel healingPotion healingPotionLabel46            if 'next usable' in healingPotionLabel47                sysmsg "Can't Use Healing Yet" 3448            else49                overhead 'Drinking heal!' 5050                dclick healingPotion51                wait globalTimeout52            endif53        else54            overhead "Can't find healing potions" 3455        endif56    endif57 58    if yellowHeal = 159        if findtype 3852 self as healingPotion60            getlabel healingPotion healingPotionLabel61            if 'next usable' in healingPotionLabel62                sysmsg 'Unable to use Heal Potion Yet!' 34     63            else64                overhead 'Drinking heal!' 5065                dclick healingPotion66                wait potionWait67            endif68        endif 69    endif70 71    if redRefresh = 172        if findtype "Red Potion" backpack as redPotion73            dclick redPotion74            wait potionWait75        else76            overhead "No Refresh Pots" 3477        endif78    endif79 80    if whiteStrength = 181        if findtype "White Potion" backpack as whitePotion82            dclick whitePotion83            wait potionWait84        else85            overhead "No Strength Pots" 3486        endif87    endif88 89    if blueDexterity = 190        if findtype "Blue Potion" backpack as bluePotion91            dclick bluePotion92            wait potionWait93        else94            overhead "No Dex Pots" 3495        endif96    endif97 98    if blackMagicResist = 199        if findtype "Black Potion" backpack as blackPotion100            dclick blackPotion101            wait potionWait102        else103            overhead "No Resist Pots" 34104        endif105    endif106 107    if greenPoison = 1108        if findtype "Green Potion" backpack as greenPotion109            dclick greenPotion110            wait potionWait111        else112            overhead "No Poison Pots" 34113        endif114    endif115endif116loop