Skip to content
Outlands Hub

Razor script

Dabiri's Harpooner Background Script

by dabiri · 233 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.

There are probably more elegant scripts out there, but this one works for me

Dabiris Harpooner Background Script.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/bd53e1c6-4960-469a-9ff5-7d1aa96d5b19 for latest2# Automation by Jaseowns3## Script: Dabiri's Harpooner Background Script4## Created by: dabiri#05#############################################6 7//There are probably more elegant scripts out there, but this one works for me8overhead 'Harpooner Background Script'9if not findtype 'Orange Potion' backpack10    overhead 'Out of cure pots' 2811endif12 13if not findtype 'White Potion' backpack14    overhead 'Out of strength pots' 2815endif16 17if not findtype 'Black Potion' backpack18    overhead 'Out of resist pots' 2819endif20 21if not findtype 'Blue Potion' backpack22    overhead 'Out of agility pots' 2823endif24 25if not findtype 'Yellow Potion' backpack26    overhead 'Out of heal pots' 2827endif28 29// Check for Boat Chain30//Chains31#Arcane chain 0x4586D19432#Boat chain 0x4A0D5F9433#Land melee 0x4B819E5F34@setvar! equipThisChain 0x4A0D5F9435getlabel equipThisChain chainlabel36if 'active' in chainlabel37    overhead 'Mastery chain - good'38else 39    overhead 'Wrong mastery chain - switching' 4840    menu equipThisChain 041endif42 43overhead 'Main pooner loop'44 45if not timerexists 'bombsticking'46 createtimer 'bombsticking'47endif48 49while not dead50    if lhandempty51        overhead 'Left hand empty'52        if findtype 31169 backpack as jarpoon53            overhead 'Equipping harpoon'54            dclick jarpoon55            getlabel backpack pingCheck56        endif57    endif58 59    # Eat food if we need it60    if not findbuff 'food' and findtype 'tray' backpack as jood61        dclick jood62        getlabel backpack pingCheck63    endif64 65    if diffweight < 3066        overhead 'Warning: weight getting high!' 3467    endif68 69    if timer 'bombsticking' > 150070        if findtype '5188' ground -1 -1 18 as bomb71            overhead 'BOMBS TICKING' '1360' 72            overhead 'BOMBS TICKING' '1360' 73            settimer 'bombsticking' 074        endif75    endif76 77    if weight >= maxweight and not findbuff 'strength' and findtype 'white potion' backpack as pot78        dclick pot79        wait 20080    endif81 82 83    //Heals & Cures84    //Bandage Self85    if not bandaging and hp < maxhp86        overhead 'Bandaging self'87        hotkey 'Bandage Self'88        wait 20089    endif90 91    //Potion heal92    if diffhits >= 30 93        if findtype 'Yellow Potion' backpack as pot 94            getlabel pot desc95            if 'next usable' in desc96                // do nothing97            else98                overhead 'Drinking heal'99                dclick pot100                overhead 'Heal Potion' 48101                wait 250102            endif103        endif104    endif105 106    //Chivalry heal107    if diffhits >= 50 and skill 'Chivalry' > 95 and not cooldown 'Holy Light'108        overhead 'Using holy light!'109        say '[Holylight'110        getlabel backpack pingCheck111        if insysmsg 'Holy symbols remaining:'112            cooldown 'Holy Light' 31000113        endif114    endif115 116    if diffhits >= 70 and not cooldown 'Snacking'117        if findtype 28865 backpack as 'snackfood'118            dclick snackfood119            getlabel backpack pingCheck120            cooldown 'Snacking' 60000121        else122            overhead 'Out of Snackfood' 28123            cooldown 'Snacking' 10000124        endif125    endif126 127    if poisoned128        // Potion cure129        if findtype 'Orange Potion' backpack as pot 130            overhead 'Drinking cure potion' 48131            dclick pot132            wait 250133        endif134    endif135 136    // Auto Pouch137    if paralyzed 138        if findtype 'pouch' backpack 38 139            say '[pouch'140            getlabel backpack pingCheck141        else142            overhead 'Out of Pouches!' 34143        endif144    endif145 146    // Drink Red Pot147    if diffstam >= 5148        overhead 'drink a red pot'149        if findtype 'Red Potion' backpack as redPot150            overhead ' Drinking refresh potion'151            dclick redPot152            wait 250153        else154            overhead 'Out of refresh pots' 34155        endif156    endif157 158    //Change target routine159    if not cooldown 'Change Target'160        @hotkey 'Target Closest Non-Friendly Monster'161        getlabel backpack pingCheck162 163        if insysmsg 'No one matching that was found'164            // overhead 'No target found'165        else166            @setvar! killTarget lasttarget167            getlabel backpack pingCheck168        endif169 170        if find killTarget -1 -1 20171            attack killTarget172            //overhead '� �� HERE �� �' 38 killTarget173            getlabel backpack pingCheck174            //say '[WeaponAbility3'175        endif176        unsetvar killTarget177        cooldown 'Change Target' 4700178    endif179    180    // Drink str pot181    if not findbuff 'Strength'182        if findtype 'White Potion' backpack as jPot183            overhead 'Drinking strength potion'184            dclick jPot185            wait 200186        endif187    endif188 189    // Drink resist pot190    if not findbuff 'Magic Resist Potion'191        if findtype 'Black Potion' backpack as jPot192            overhead 'Drinking resist potion'193            dclick jPot194            wait 200195        endif196    endif197 198    // Drink agility pot199    if not findbuff 'Agility'200        if findtype 'Blue Potion' backpack as jPot201            overhead 'Drinking agility potion'202            dclick jPot203            wait 200204        endif205     endif206 207 208    //Spyglass Routine209    if not findtype 5365 backpack210        overhead 'No spyglass'211        script 'LandHarpooner'212    endif213 214    if not cooldown 'Spyglass' and not queued215        if targetexists216            overhead 'Skipping spyglass' 15217            cooldown 'Spyglass' 2000218        else219            gumpclose 2890020940220            dclicktype 5365221            wft 500222            if targetexists neutral223                target 'self'224                waitforgump 2890020940225                gumpresponse 4 2890020940226                waitforgump 2890020940227                cooldown 'Spyglass' 6300228            endif229        endif230    endif231 232 233endwhile