Bapeth's Ocean Dock and Drop by barryroser
Description: This script will auto crate your hull and dock your ship safely.
1# Bapeths Dock and Drop
2#
3# Sometimes its necessary to disembark and embark when razor fails to detect the dockmaster
4#
5# This script will search for a dockmaster NPC, and when ready, will crate and dock your ship
6#
7# Script Starts Here
8for 50
9 hotkey "Next Monster Target"
10 @setvar bdockmaster lasttarget
11 if noto bdockmaster = "invulnerable"
12 getlabel bdockmaster desc
13 if "dockmaster" in desc
14 menu bdockmaster 1
15 getlabel backpack ping
16 if gumpexists 3287496917
17 gumpresponse 8
18 getlabel backpack ping
19 if insysmsg "You pay"
20 overhead "Shipping crate sent" 74
21 elseif insysmsg "not been stationary"
22 overhead "Stationary cooldown..." 45
23 gumpclose 3287496917
24 replay
25 elseif insysmsg "capable of being"
26 overhead "Nothing to ship..." 45
27 elseif insysmsg "you are not onboard"
28 gumpclose 3287496917
29 overhead "Not on a ship..." 45
30 stop
31 endif
32 waitforgump 3287496917
33 gumpresponse 7
34 getlabel backpack ping
35 if insysmsg "You dock the ship"
36 overhead "Ship Docked Safley" 88
37 gumpclose 3287496917
38 hotkey "Cancel Current Target"
39 stop
40 elseif insysmsg "not been stationary"
41 overhead "Stationary cooldown..." 45
42 gumpclose 3287496917
43 replay
44 endif
45 else
46 replay
47 endif
48 break
49 endif
50 endif
51endfor
52overhead "Disembark / Embark to resync if dockmaster can not be found" 45
53loop