Skip to content
Outlands Hub

Razor script

PK Getaway Script for Mages (2)

by Jaseowns · 324 lines
Download

PK Getaway Script by Jaseowns UO Outlands Watch it in action here: https://clips.twitch.tv/ElegantFineDogeBCouch-b-TZsJdd-2Vf9u2E

PvPMagic
PK Getaway Script for Mages 2.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/8a260dc7-a4eb-4894-9ae0-98570da30451 for latest2# Automation by Jaseowns3## Script: PK Getaway Script for Mages (2)4## Created by: Jaseowns#66945#############################################6 7# PK Getaway Script by Jaseowns8# UO Outlands9# Watch it in action here:10# https://clips.twitch.tv/ElegantFineDogeBCouch-b-TZsJdd-2Vf9u2E11    12# Updated 8/11/2025 - to look for potion satchel as well13 14// Thank you Gyvulor15// farming with 1 (autobot mage)16// activate this "stayalive" hotkey 17// find a gate nearby and take it18// check buffs (magic reflect, reactivae armor)19// chiv heal if available20// bandaids (for dexxers)21// must have one hand free to drink pots22 23@setvar! globalTimeoutMini 65024@setvar! globalTimeout 40025@setvar! showSystemMessageScriptEngaged 126 27if showSystemMessageScriptEngaged = 128    sysmsg "PK Getaway Script engaged" 8829endif30 31# Using Bandaids32if skill "Healing" > 033    if findtype "clean bandage%s%" backpack as aids34        if not bandaging and hp < maxhp35            dclick aids36            wft 50037            hotkey 'Target Self'38        elseif not bandaging and poisoned39            dclick aids40            wft 50041            hotkey 'Target Self'42        elseif not bandaging and findbuff "bleed"43            dclick aids44            wft 50045            hotkey 'Target Self'46        elseif not bandaging and findbuff "disease"47            dclick aids48            wft 50049            hotkey 'Target Self'50        endif51    else52        overhead "No bandages" 3453    endif54endif55 56// Trapped57if paralyzed 58    if findtype "pouch" backpack 38 59        yell "[pouch"60        wait globalTimeoutMini61    else62        overhead "Out of Pouches!" 3463    endif64endif65 66// poison67if poisoned 68    if findtype "Orange Potion" self as jPot69        dclick jPot70        wait globalTimeoutMini71    else72        overhead "Out of cure pots" 3473    endif74endif75 76 77// Drink red pot78if diffstam >= 579    overhead "drink a red pot"80    if findtype "Red Potion" self as jPot81        dclick jPot82        wait globalTimeoutMini83    else84        overhead "Out of refresh pots" 3485    endif86endif87 88// Drink str pot89if str < 10090    if not findbuff "Strength"91        if findtype "White Potion" self as jPot92            dclick jPot93            wait globalTimeoutMini94        else95            overhead "Out of str pots" 3496        endif97    endif98endif99 100if weight > maxweight101    #############102    # Player gates, chiv gate103    #############104    while not gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as jGate105        dclick jGate106    endwhile107 108    if gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as jGate109        gumpresponse 2 3899019871110        replay111    endif112 113    #############114    # Town/Dungeon Moongates - yellow, red, death, blue115    #############116    while not gumpexists 3773199800 and findtype "blue moongate" ground -1 1 2 as jGate117        dclick jGate118    endwhile119 120    if gumpexists 3773199800 and findtype "blue moongate" ground -1 1 2 as jGate121        gumpresponse 2 3773199800122        wait 200123        replay124    endif125 126    if findtype "gold coin" backpack as item127        lift item 2000128        droprelloc 0 0129        wait 200130        if insysmsg "cannot drop anything"131            drop backpack -1 -1 -1132        endif133        wait globalTimeout134        replay135    else136        overhead "We are overweight and cannot drop anything" 34137    endif138endif139 140 141if skill "Magery" >= 60142 143    if diffhits >= 30144        // figure out when we want to drink a pot, vs just heal145        if findtype "Yellow Potion" self as jPot146            dclick jPot147            wait globalTimeout148        else149            overhead "Out of heals pots" 34150        endif151    endif152    153    if diffhits >= 30 and mana >= 12154        while not targetexists155            #############156            # Player gates, chiv gate157            #############158            while not gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as jGate159                dclick jGate160            endwhile161 162            if gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as jGate163                gumpresponse 2 3899019871164                replay165            endif166 167            #############168            # Town/Dungeon Moongates - yellow, red, death, blue169            #############170            while not gumpexists 3773199800 and findtype "blue moongate" ground -1 1 2 as jGate171                dclick jGate172            endwhile173 174            if gumpexists 3773199800 and findtype "blue moongate" ground -1 1 2 as jGate175                gumpresponse 2 3773199800176                wait 200177                replay178            endif179 180            if diffhits >= 60181                cast 'Heal'182            else183                cast 'Greater Heal'                184            endif185            wait 50186            if hp = maxhp187                hotkey '> Interrupt'188                break189            endif190        endwhile191        if targetexists192            hotkey 'Target Self'193        endif194    elseif diffhits >= 15 and mana >= 12195        while not targetexists196            #############197            # Player gates, chiv gate198            #############199            while not gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as jGate200                dclick jGate201            endwhile202 203            if gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as jGate204                gumpresponse 2 3899019871205                replay206            endif207 208            #############209            # Town/Dungeon Moongates - yellow, red, death, blue210            #############211            while not gumpexists 3773199800 and findtype "blue moongate" ground -1 1 2 as jGate212                dclick jGate213            endwhile214 215            if gumpexists 3773199800 and findtype "blue moongate" ground -1 1 2 as jGate216                gumpresponse 2 3773199800217                wait 200218                replay219            endif220 221            cast 'Heal'222            wait 50223            if hp = maxhp224                hotkey '> Interrupt'225                break226            endif227        endwhile228        if targetexists229            hotkey 'Target Self'230        endif231    endif232    233    if poisoned234        while not targetexists235            cast 'Cure'236            wait 50237            #############238            # Player gates, chiv gate239            #############240            while not gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as jGate241                dclick jGate242            endwhile243 244            if gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as jGate245                gumpresponse 2 3899019871246                replay247            endif248 249            #############250            # Town/Dungeon Moongates - yellow, red, death, blue251            #############252            while not gumpexists 3773199800 and findtype "blue moongate" ground -1 1 2 as jGate253                dclick jGate254            endwhile255 256            if gumpexists 3773199800 and findtype "blue moongate" ground -1 1 2 as jGate257                gumpresponse 2 3773199800258                wait 200259                replay260            endif261 262            if not poisoned263                hotkey '> Interrupt'264                break265            endif266        endwhile267        if targetexists268            hotkey 'Target Self'269        endif270    endif271 272else273 274    // We are hurt275    if hp < maxhp276        277        // check for paralyzed  during heal278 279        // figure out when we want to drink a pot, vs just heal280        if findtype "Yellow Potion" self as jPot281            dclick jPot282            wait globalTimeOutMini283        else284            overhead "Out of heals pots" 34285        endif286        287 288    endif        289    290endif291 292#############293# Player gates, chiv gate294#############295while not gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as jGate296    dclick jGate297endwhile298 299if gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as jGate300    gumpresponse 2 3899019871301    replay302endif303 304#############305# Town/Dungeon Moongates - yellow, red, death, blue306#############307while not gumpexists 3773199800 and findtype "blue moongate" ground -1 1 2 as jGate308    dclick jGate309endwhile310 311if gumpexists 3773199800 and findtype "blue moongate" ground -1 1 2 as jGate312    gumpresponse 2 3773199800313    wait 200314    replay315endif316 317if findtype "blue moongate" ground -1 1 12 as jGate318    overhead "Move closer!" 34319    wait 50320    replay 321endif322 323wait 50324loop