Grab items off shelf for boating by Jaseowns
# Grab items off shelf for boating by Jaseowns
# UO Outlands
# Easy way to get items off shelf with no loadout (boat edition)
gumpclose 3232825965
@setvar! jaseowns_MaxCannonBallCountWeWantToGrab 150
@setvar! jaseowns_MaxShipRepairKitCountWeWantToGrab 20
@setvar! jaseowns_MaxBoardingRopesCountWeWantToGrab 20
@setvar! jaseowns_MaxBigBombCountWeWantToGrab 5
@setvar! jaseowns_HelperTextTimerCD 2000
settimer jaseowns_HelperTextTimer jaseowns_HelperTextTimerCD
if findtype "storage shelf" ground -1 -1 2 as jhelf
clearsysmsg
dclick jhelf
waitforgump 3232825965 5000
# is going to next page
gumpresponse 21 3232825965
waitforgump 3232825965 5000
# is going to ships
gumpresponse 54 3232825965
waitforgump 3232825965 5000
# Check for Retrieve One
if ingump "Retrieve One" 3232825965
// do nothing
else
gumpresponse 23 3232825965
endif
settimer jaseowns_HelperTextTimer jaseowns_HelperTextTimerCD
# cannon balls
while counttype 3699 backpack 2492 < jaseowns_MaxCannonBallCountWeWantToGrab
gumpresponse 130 3232825965
waitforgump 3232825965 5000
if timer jaseowns_HelperTextTimer >= jaseowns_HelperTextTimerCD
overhead "Grabbing Cannon balls" 88
sysmsg "Grabbing Cannon balls" 88
settimer jaseowns_HelperTextTimer 0
endif
if insysmsg "That item is unavailable."
overhead "Out of Cannon balls" 34
sysmsg "Out of Cannon balls" 34
break
endif
endwhile
# ship repair kit
while counttype 25758 backpack 0 < jaseowns_MaxShipRepairKitCountWeWantToGrab
gumpresponse 131 3232825965
waitforgump 3232825965 5000
if timer jaseowns_HelperTextTimer >= jaseowns_HelperTextTimerCD
overhead "Grabbing repair kits" 88
sysmsg "Grabbing repair kits" 88
settimer jaseowns_HelperTextTimer 0
endif
if insysmsg "That item is unavailable."
overhead "Out of repair kits" 34
sysmsg "Out of repair kits" 34
break
endif
endwhile
settimer jaseowns_HelperTextTimer jaseowns_HelperTextTimerCD
# boarding rope
while counttype 5370 backpack 0 < jaseowns_MaxBoardingRopesCountWeWantToGrab
gumpresponse 132 3232825965
waitforgump 3232825965 5000
if timer jaseowns_HelperTextTimer >= jaseowns_HelperTextTimerCD
overhead "Grabbing boarding ropes" 88
sysmsg "Grabbing boarding ropes" 88
settimer jaseowns_HelperTextTimer 0
endif
if insysmsg "That item is unavailable."
overhead "Out of boarding ropes" 34
sysmsg "Out of boarding ropes" 34
break
endif
endwhile
settimer jaseowns_HelperTextTimer jaseowns_HelperTextTimerCD
# big bombs
while counttype 5188 backpack 2825 < jaseowns_MaxBigBombCountWeWantToGrab
gumpresponse 132 3232825965
waitforgump 3232825965 5000
if timer jaseowns_HelperTextTimer >= jaseowns_HelperTextTimerCD
overhead "Grabbing big bombs" 88
sysmsg "Grabbing big bombs" 88
settimer jaseowns_HelperTextTimer 0
endif
if insysmsg "That item is unavailable."
overhead "Out of big bombs" 34
sysmsg "Out of big bombs" 34
break
endif
endwhile
endif