Skip to content
Outlands Hub

Razor script

Bapeths Ocean Dock and Drop

by barryroser · 137 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.

Bapeths Dock and Drop May 4th 2026 - Fixed gump menu conflict with spyglass bug cousing the script to stall "Peace Mode" This script will search for a valid dockmaster NPC, and when ready, will crate and dock your ship "War Mode" The…

BardSailing
Bapeths Ocean Dock and Drop.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/5365291a-8d9f-4bb9-aeb9-f8bb190a07e3 for latest2# Automation by Jaseowns3## Script: Bapeths Ocean Dock and Drop4## Created by: barryroser#05#############################################6 7# Bapeths Dock and Drop8# May 4th 2026 - Fixed gump menu conflict with spyglass bug cousing the script to stall9#10# "Peace Mode"11# This script will search for a valid dockmaster NPC, and when ready, will crate and dock your ship12#13# "War Mode"14# The script will attempt to Free Dock your ship - User must manually select docking location (click nearby land)15# 16# Script Starts Here17if not warmode18    if not timerexists lookingfordockspam19        createtimer lookingfordockspam20        settimer lookingfordockspam 300021    endif22    if timer lookingfordockspam >= 300023        overhead "Looking for Valid Dockmaster" 6824        settimer lookingfordockspam 025    endif26    hotkey "Next Monster Target"27    @setvar! bdockmaster lasttarget28    if noto bdockmaster = "invulnerable"29        clearsysmsg 30        getlabel bdockmaster desc31        if "dockmaster" in desc32            menu bdockmaster 133            getlabel backpack ping34            while gumpexists 328749691735                if not timerexists dockmasterfoundspam36                    createtimer dockmasterfoundspam37                    settimer dockmasterfoundspam 300038                endif39                if timer dockmasterfoundspam >= 300040                    overhead "Dockmaster Found!" 8841                    settimer dockmasterfoundspam 042                    menu bdockmaster 143                    getlabel backpack ping44                endif45                if not find "bdockmaster" ground46                    gumpclose 328749691747                    break48                endif49                if warmode 50                    gumpclose 328749691751                    break52                endif53                clearsysmsg54                gumpresponse 8 328749691755                getlabel backpack ping56                if insysmsg "You pay"57                    overhead "Shipping crate sent" 8858                elseif insysmsg "not been stationary long enough to use this feature"59                    if not timerexists movetimerspam60                        createtimer movetimerspam61                        settimer movetimerspam 150062                    endif63                    if timer movetimerspam >= 150064                        overhead "Boat Movement Cooldown..." 3865                        settimer movetimerspam 066                    endif67                elseif insysmsg "capable of being"68                    waitforgump 3287496917 50069                    gumpresponse 7 328749691770                    getlabel backpack ping71                    if insysmsg "You dock the ship"72                        overhead "Ship Docked Safely" 8873                        gumpclose 328749691774                        hotkey "Cancel Current Target"75                        stop76                    elseif insysmsg "not been stationary long enough to dock."77                        if not timerexists movetimerspam78                            createtimer movetimerspam79                            settimer movetimerspam 150080                        endif81                        if timer movetimerspam >= 150082                            overhead "Boat Movement Cooldown..." 3883                            settimer movetimerspam 084                        endif85                    endif86                elseif insysmsg "you are not onboard"87                    gumpclose 328749691788                    overhead "Not on a ship..." 4589                    stop90                endif91            endwhile92        endif93    endif94elseif warmode 95    clearsysmsg 96    say "[dock" 8897    if not timerexists freedockspam98        createtimer freedockspam99        settimer freedockspam 3000100    endif101    if timer freedockspam >= 3000102        overhead "Attempting Free-Dock" 88103        settimer freedockspam 0104    endif105    getlabel backpack ping106    if insysmsg "not been stationary"107        if not timerexists movetimerspam108            createtimer movetimerspam109            settimer movetimerspam 1500110        endif111        if timer movetimerspam >= 1500112            overhead "Boat Movement Cooldown..." 38113            settimer movetimerspam 0114        endif115    elseif insysmsg "Which location do you wish to dock at?"116        wft 500117        overhead "Select location to Free-Dock" 68118        while targetexists 119            //donothing120        endwhile121        getlabel backpack ping122        if insysmsg "not been stationary long enough to free-dock"123            if not timerexists movetimerspam124                createtimer movetimerspam125                settimer movetimerspam 1500126            endif127            if timer movetimerspam >= 1500128                overhead "Boat Movement Cooldown..." 38129                settimer movetimerspam 0130            endif131        elseif insysmsg "You free-dock the ship"132            overhead "Free Docked!" 88133            stop134        endif135    endif136endif137loop