Skip to content
Outlands Hub

Razor script

Fishing on Boat

by tarouca · 352 lines
Download

IT IS TAILORED TO USE WITH A DEXXER HARPOONER TEMPLATE THE GREATER ABILITY IS MARINERs FORTUNE AND ITS TIMER MUST BE ADJUSTED TO YOUR OWN BOAT WHEN DOING MIBs IT WONT TRIGGER MARINERs

GatheringCraftingCombatSailingFishing
Fishing on Boat.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/947a61d6-067e-436d-9472-b81d3a6eca46 for latest2# Automation by Jaseowns3## Script: Fishing on Boat4## Created by: tarouca#05#############################################6 7# IT IS TAILORED TO USE WITH A DEXXER HARPOONER TEMPLATE8# THE GREATER ABILITY IS MARINERs FORTUNE AND ITS TIMER MUST BE ADJUSTED TO YOUR OWN BOAT9# WHEN DOING MIBs IT WONT TRIGGER MARINERs10 11if not timerexists "curePotTimer_"12    createtimer "curePotTimer_"13    settimer "curePotTimer_" 9999914endif15if not timerexists "stillPoisonedTimer_"16    createtimer "stillPoisonedTimer_"17    settimer "stillPoisonedTimer_" 9999918endif19if not timerexists "fishingTimer_"20    createtimer "fishingTimer_"21    settimer "fishingTimer_" 9999922endif23if not timerexists "checkForNetsTimer_"24    createtimer "checkForNetsTimer_"25    settimer "checkForNetsTimer_" 9999926endif27if not timerexists "skinningTimer_"28    createtimer "skinningTimer_"29    settimer "skinningTimer_" 9999930endif31if not timerexists "netCastTimer_"32    createtimer "netCastTimer_"33    settimer "netCastTimer_" 9999934endif35if not timerexists "checkMyHatchTimer"36    createtimer "checkMyHatchTimer"37    settimer "checkMyHatchTimer" 9999938endif39if not timerexists "checkSOSLocationTimer"40    createtimer "checkSOSLocationTimer"41    settimer "checkSOSLocationTimer" 9999942endif 43if not timerexists "enemyScanTimer_"44    createtimer "enemyScanTimer_"45    settimer "enemyScanTimer_" 9999946endif47if findtype 3702 backpack as fishBag__48    @setvar fishBag_ fishBag__49    overhead "FISH BAG FOUND"50endif51if findtype 3999 backpack as scissors__52    @setvar scissors_ scissors__53    overhead "FOUND SCISSORS"54endif55if findtype 11552 backpack 1763 as knife_56    @setvar myKnife_ knife_57elseif findtype 11552 backpack 2207 as knife_58    @setvar myKnife_ knife_59elseif findtype 11552 backpack 0 as knife_60    @setvar myKnife_ knife_61endif62 63 64@setvar myWeaponFound_ 065while myWeaponFound_ = 0 and findtype 31172|31169 backpack66    if findtype 31172|31169 backpack as myWeapon__67        getlabel myWeapon__ myWeaponLabel__68        if "exceptional" in myWeaponLabel__69            @setvar myWeapon_ myWeapon__70            @setvar myWeaponFound_ 171            overhead "FOUND HARPON"72        else 73            @ignore myWeapon__74        endif75    endif76endwhile77 78@clearignore79@setvar lagTimer_ 60080@setvar spyglassChoice_ 081@setvar fishingWithNet_ 082@setvar minHpAllowed_ 5083@setvar healthPotTimer_ 1100084 85# 0 - FISHING SPOTS, 1 - SPECIAL NETS, 2 - SOSs, 3 - ONLY FISHING86@setvar justSpecialFishing_ 087 88@setvar greaterTimerValue_ 18800089while not dead90    if findtype "spyglass" backpack as spyglass_ and not cooldown "Spyglass"91        gumpclose 289002094092        dclick spyglass_93        waitfortarget94        target self95        waitforgump 289002094096        if spyglassChoice_ = 097            gumpresponse 10 289002094098            waitforgump 2890020940 99            gumpresponse 4 2890020940100            if justSpecialFishing_ = 0101                @setvar spyglassChoice_ 1102            endif103            if justSpecialFishing_ = 3104                cooldown "Spyglass" 15000105            else106                cooldown "Spyglass" 5000107            endif108        else109            gumpresponse 11 2890020940110            waitforgump 2890020940111            gumpresponse 4 2890020940112            @setvar spyglassChoice_ 0113            wait 250114            if ingump "a fishing spot"115                cooldown "Spyglass" 15000116            else117                cooldown "Spyglass" 5000118            endif119        endif120    endif121 122    if poisoned123        if timer "curePotTimer_" > 5100124            if findtype "Orange Potion" backpack as pot_125                dclick pot_126                wait lagTimer_127                settimer "curePotTimer_" 0128            else129                overhead "MISSING POTS" 38 130            endif131        else 132            overhead "Wait for it..."133        endif134    endif135 136    if hp < maxhp137        if not bandaging138            if  findtype "clean bandage%s%" backpack139                hotkey "Bandage Self"140                cooldown "Bandage" 7100141            else 142                overhead "MISSING: BANDAGES" 38143            endif144        endif    145        if hp < 60146            if not cooldown "Health Potion" and findtype "Yellow Potion" backpack as pot_147                dclick pot_148                cooldown "Health Potion" healthPotTimer_149            endif150            wait 500151            if hp < 30 and not cooldown "Holy Light" and not cooldown "Chiv Timer" and skill "chivalry" >= 95152                say "[HolyLight"153                wait lagTimer_154                if insysmsg "Holy symbols remaining"155                    cooldown "Holy Light" 30000156                    cooldown "Chiv Timer" 500157                endif158            endif159        endif160    endif161 162    if justSpecialFishing_ != 3163        if not findbuff "Food Satisfaction" and findtype "Tray" backpack164            dclicktype "Tray"165        endif    166    endif167    168    if justSpecialFishing_ = 0 or justSpecialFishing_ = 3169        if timer "fishingTimer_" > 8100 and fishingWithNet_ = 0 and not warmode170            if findtype 3520 backpack as pole_171                dress Fishing172                while queued173                endwhile        174            endif175            hotkey "Use Item in Hand"176            settimer "fishingTimer_" 0177        endif178    endif    179 180    if warmode or timer "netCastTimer_" < 5000181        if warmode and find myWeapon_ backpack182            dclick myWeapon_183            wait 500184        endif185        if not varexist currentTarget_ and timer "enemyScanTimer_" > 3000186            hotkey 'Next Enemy Monster Target'187            if not insysmsg "No one matching" 188                @setvar currentTarget_ lasttarget189            endif190            hotkey 'Next Grey Monster Target'191            if not insysmsg "No one matching" 192                @setvar currentTarget_ lasttarget193            endif194            hotkey 'Next Murderer Monster Target'195            if not insysmsg "No one matching" 196                @setvar currentTarget_ lasttarget197            endif198            settimer "enemyScanTimer_" 0199            if not varexist currentTarget_200                warmode "off"201            endif202        endif203        if varexist currentTarget_204            if not warmode205                warmode "on"206                wait 500207            endif208            if warmode and find myWeapon_ backpack209                dclick myWeapon_210                wait 500211            endif212            if not dead currentTarget_213                if not cooldown "Weapon Ability"214                    say "[WeaponAbility3"215                    wait 500216                    if insysmsg "You cannot perform that ability yet."217                        cooldown "Weapon Ability" 2500218                    endif219                endif220                attack currentTarget_221            else 222                @unsetvar currentTarget_223            endif224        endif225    endif226 227    #if justSpecialFishing_ = 0 or justSpecialFishing_ = 3228        #if not cooldown "Main Greater"229            #say "[GreaterAbility"230            #wait lagTimer_231            #cooldown "Main Greater" greaterTimerValue_232        #endif233    #endif234    235    # FISHING SPOTS236    if justSpecialFishing_ = 0 and findtype 1286|18824|3530|26683|39345|29410|29230|2646|18824|441|25769|39434|27641|3707|29230|25769 ground -1 -1 12 as fishingSpot_237        #if cooldown "Main Greater" < 9000238            #overhead "WAITING ON MARINERs" 48239            #wait 500240        #else241        @setvar fishingWithNet_ 1242        if warmode243            if find myWeapon_ backpack244                dclick myWeapon_ 245            endif246        endif247        if not cooldown "Fishing Net"248            dclick fishingSpot_249            cooldown "Fishing Net" 3500250            settimer "netCastTimer_" 0251        endif252        #endif253    else254        if fishingWithNet_ = 1255            @setvar fishingWithNet_ 0256        endif257    endif258    259    # SPECIAL FISHING NETS260    if justSpecialFishing_ = 1261        if not cooldown "Main Greater"262            say "[GreaterAbility"263            wait lagTimer_264            cooldown "Main Greater" greaterTimerValue_265        endif    266        @setvar fishingWithNet_ 1267        if find myWeapon_ backpack268            dclick myWeapon_ 269        endif270        if cooldown "Main Greater" < 8000271            overhead "WAITING ON MARINERs"272        else273            if not warmode and timer "netCastTimer_" > 9000274                if findtype 3530 fishBag_ as net_275                    getlabel net_ net__276                    if "special" in net__277                        overhead "CASTING SPECIAL"278                        dclick net_279                        while not targetexists 280                        endwhile281                        while targetexists 282                            overhead "CAST NET" 48283                            wait 500284                        endwhile285                        settimer "netCastTimer_" 0286                     endif287                else 288                    @setvar fishingWithNet_ 0289                    overhead "MISSING NETS" 38290                endif291            endif292        endif293    endif294 295    # MIBS296    if justSpecialFishing_ = 2297        @setvar fishingWithNet_ 1298        if find myWeapon_ backpack299            dclick myWeapon_ 300        endif        301         if timer "netCastTimer_" > 4000302            if findtype 3530 backpack as net_303                getlabel net_ net__304                if "special" in net__305                    @ignore net_306                else307                    dclick net_308                    waitfortarget 309                    target self310                    settimer "netCastTimer_" 0311                endif312            else 313                overhead "MISSING NETS" 38314            endif315        endif316    endif317 318    if not warmode319        @clearignore320        while not cooldown "Fishing Net" and not cooldown "Spyglass" and findtype "fish" backpack as fish_ 321            getlabel fish_ fishLabel_322            if "arbiter" in fishLabel_ or "puffer" in fishLabel_323                @ignore fish_324            else325                dclick scissors_326                waitfortarget 327                target fish_328                wait lagTimer_329            endif330        endwhile331        while not cooldown "Fishing Net" and not cooldown "Spyglass" and findtype 15124|28819|17606|28828|28825|28820|28823|17157|28821|28829|28845|28822 backpack as fish_332            getlabel fish_ fishLabel_333            if "arbiter" in fishLabel_ or "puffer" in fishLabel_334                @ignore fish_335            else336                dclick scissors_337                waitfortarget 338                target fish_339                wait lagTimer_340            endif341        endwhile342    endif343 344    if findtype "corpse" ground -1 -1 2 as corpse_ and timer "skinningTimer_" > 3000345        dclick myKnife_346        waitfortarget347        target self348        settimer "skinningTimer_" 0349        @ignore corpse_350    endif    351    352endwhile