Skip to content
Outlands Hub

Razor script

Dab's Fishing Spot Background Script

by dabiri · 189 lines
Download

This one expects cooldowns named 'Spyglass' , 'Holy Light' , "Snacking' , "Mariners' , and 'Change Target' My greater cooldown is three minutes so I just loop mariner's fortune continually, you'd perhaps need to modify for your setup

GatheringCombatFishing
Dabs Fishing Spot Background Script.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/36574358-7182-4544-9148-818de0de8967 for latest2# Automation by Jaseowns3## Script: Dab's Fishing Spot Background Script4## Created by: dabiri#05#############################################6 7//This one expects cooldowns named 'Spyglass' , 'Holy Light' , "Snacking' , "Mariners' , and 'Change Target'8//My greater cooldown is three minutes so I just loop mariner's fortune continually, you'd perhaps need to modify for your setup9overhead 'Fishing spot script'10 11while not dead12 13    if lhandempty14        overhead 'Left hand empty'15        if findtype 31169 backpack as jarpoon16            overhead 'Equipping harpoon'17            dclick jarpoon18            getlabel backpack pingCheck19        endif20    endif21 22 23    //Eat food if we need it24    if not findbuff "food" and findtype "tray" backpack as jood25        dclick jood26        wait 20027    endif28 29    //Heals & Cures30    //Bandage Self31    if not bandaging and hp < maxhp and skill healing > 5032        hotkey "Bandage Self"33        wait 10034    endif35 36    //Potion heal37    if diffhits >= 30 38        if findtype "Yellow Potion" backpack as pot 39            getlabel pot desc40            if "next usable" in desc41                // do nothing42            else43                dclick pot44                overhead 'Heal Potion' 4845                wait 50046 47            endif48        endif49    endif50 51    //Chivalry heal52    if diffhits >= 50 and skill "Chivalry" > 95 and not cooldown 'Holy Light'53        say '[Holylight'54        wait 25055        if insysmsg "Holy symbols remaining:"56            cooldown 'Holy Light' 3100057        endif58    endif59 60    if diffhits >= 70 and not cooldown 'Snacking'61        if findtype 28865 backpack as 'snackfood'62            dclick snackfood63            getlabel backpack pingCheck64            cooldown 'Snacking' 6000065        else66            overhead 'Out of Snackfood' 2867            cooldown 'Snacking' 1000068        endif69    endif70 71    if poisoned72        // Potion cure73        if diffhits >= 30 and findtype "Orange Potion" backpack as pot 74            dclick pot75            overhead 'Cure Potion' 4876            wait 50077        endif78    endif79 80    //Fishing Spot Net Routine81    if not timerexists 'throwNet'82        createtimer 'throwNet'83        settimer 'throwNet' 999984    endif85 86    //Occasionally this will bork the timing and think someone is already fishing a spot87    //If you identify why please reach out to @dabiri and let me know88    if timer 'throwNet' > 3500 and findtype rowboat|barrel|horn|25769|rock|foliage|rowboat|mushroom|basket|18824|28933|swordfish|rocks|bedroll ground as fishingSpot89 90        //My greater cooldown is 3 minutes so I can just leave this always on91        if not cooldown 'Mariners'92            say '[GreaterAbility'93            getlabel backpack pingCheck94            cooldown 'mariners' 180000         95        endif96 97        overhead "Throwing Net" 1598        settimer 'throwNet' 099        dclick 'fishingSpot'100        getlabel backpack pingCheck101    endif102 103    //Change target routine104    if not cooldown 'Change Target'105        @hotkey 'Target Closest Non-Friendly Monster'106        getlabel backpack pingCheck107 108        if insysmsg 'No one matching that was found'109            // overhead 'No target found'110            cooldown 'Change Target' 2000111        else112            @setvar! killTarget lasttarget113            getlabel backpack pingCheck114        endif115 116        if find killTarget -1 -1 20117            attack killTarget118            //overhead '� �� HERE �� �' 38 killTarget119            getlabel backpack pingCheck120            //say '[WeaponAbility3'121        endif122        unsetvar killTarget123        cooldown 'Change Target' 5500124    endif125 126    //Spyglass Routine127    if not findtype 5365 backpack128        overhead 'No spyglass'129        script 'LandHarpooner'130    endif131 132    if not cooldown 'Spyglass' and not queued133        if targetexists134            overhead 'Skipping spyglass' 15135            cooldown 'Spyglass' 2000136        else137            gumpclose 2890020940138            dclicktype 5365139            wft 500140            if targetexists neutral141                target 'self'142                waitforgump 2890020940143                gumpresponse 4 2890020940144                waitforgump 2890020940145                cooldown 'Spyglass' 6300146            endif147        endif148    endif149    150    // Drink str pot151    if not findbuff 'Strength Potion Usage Cooldown'152        if findtype 'White Potion' backpack as jPot153            overhead 'Drinking strength potion'154            dclick jPot155            wait 500156        endif157    endif158 159    // Drink resist pot160    if not findbuff 'Magic Resist Potion'161        if findtype 'Black Potion' backpack as jPot162            overhead 'Drinking resist potion'163            dclick jPot164            wait 500165        endif166    endif167 168    // Drink agility pot169    if not findbuff 'Agility Potion Usage Cooldown'170        if findtype 'Blue Potion' backpack as jPot171            overhead 'Drinking agility potion'172            dclick jPot173            wait 500174        endif175     endif176 177 178    // Drink Red Pot179    if diffstam >= 5180        overhead 'drink a red pot'181        if findtype 'Red Potion' backpack as redPot182            overhead ' Drinking refresh potion'183            dclick redPot184            wait 500185        else186            overhead 'Out of refresh pots' 34187        endif188    endif189endwhile