Back to "b" tags

Bapeth's Hold Looter and Dumper by barryroser

Description: This script will automatically loot enemy ships as well as automatically dump the loot into your own ship hold. Simply stand near the holds and play the script. This script is NOT part of Bapeth's Ship Script set.

1# Bapeths Ship Hold Looter and Dumper
2#
3# "REQUIRED"
4# You must set your ships every hold every time you launch for the Dumper to work
5# Use a "Set last target" hotkey to select your ships hold then play the script
6# This is only required once per journey
7#
8# This script will automaticaly loot enemy ships as well as automantically dump the loot into your own ship hold
9# Simply stand near the holds and play the script
10#
11# "Auto Loot Control"
12# This script uses razor "Auto-Queue Object Delay" setting
13# Make sure this setting is turned ON in the razor Options tab > Targeting & Queues sub-tab
14# And set "object delay to 503"
15
16if not varexist "looterdumperfirsttime"
17    @setvar "looterdumperfirsttime" backpack
18    overhead "Welcome..." 88
19    pause 2000
20    overhead "This is an Automated ship hold looter and dumper..." 88
21    pause 5500
22    overhead "While on your ship use a Set Last Target Hotkey to select your ship hold, then play the script..." 39
23    pause 7500 
24    overhead "You must do this every time you launch your ship..." 88
25    pause 5500
26    overhead "Play the script while standing on an enemy hold to auto loot..." 39
27    pause 6500
28    overhead "Play the script while standing on your hold to auto dump..." 39
29    pause 6500
30    overhead "If the script fails to dump items, rotate your ship and try again..." 88
31    pause 6500
32    overhead "Now, get out there and collect some booty!" 88
33    pause 2000
34endif
35    
36
37if findtype 3834 backpack 0 as bbook
38    @ignore bbook
39endif
40
41getlabel lasttarget desc
42if "hold" in desc
43    overhead "Ship Hold Set" 88
44    @setvar "shiphold" lasttarget 
45endif
46
47if find "shiphold" ground -1 -1 1
48    clearsysmsg 
49    while findtype "cathedral tapestry|Darkscale tapestry|large painting|landscape painting|portrait painting|hieroglyph|figurine|statue|44987|49730|47107|18653|45127|20103|47103|29363|47105|29361|43453|5899|47109|45250|41509|43447|18657|4025|51308|45156|51304|45214|28769|28799|28803|28765|45211|45248|51259|45220|51328|45218|3842|51327|45222|45241|51336|11858|51375|45282|54722|45255|45246|28795|44983|45235|45251|45238|51258|51314|28761|45236|51260|54718|18400|45252|18656|47111|3839|45239|45242|45254|45281|45247|42241|45216|28775|2594|51321|3838|51318|5901|5905|45259|5903|48407|51302|4248|27611|15296|43166|5359|5981|4026|3985|25359|17686|3836|17087|5356|29030|24434|22336|29036|3843|29025|51098|29034|8826|51094|576|3827|22326|45315|3891|2539|39898|39896|39892|39918|39911|39916|39897|39905|39891|39917|39912|39909|39889|31047|31017|31049|31019|31055|31051|31053|31025|31027|31031|31041|54717|31021|31011|31023|31029|31043|31003|31035|31033|31045|31037|31002|20006|31169|31006|30999|31012|31009|30996|7109|7107|31128|31188|20014|31014|31004|31142|31001|31000|37181|31010|30998|31172|30988|30997|31038|31141|7947|20008|31005|31191|31008|31007|30994|30993|31182|30989|20012|31186|31178|31015|30991|20010|20016|31184|31190|30990|30995|31176|31180|30992|31130|5207|7031|7026|7034|7033|7027|7035|7029|5078|5063|5059|5105|5060|5138|5129|5201|5142|5143|5076|5106|7610|5139|5090|5103|5132|7177|5061|7181|7179|3920|5042|5127|5117|5185|5125|3938|5177|3937|5044|5121|3915|3909|3568|3932|5123|5144|5119|5056|5135|5187|5074|5089|3934|3913|3917|3721|5075|5046|5049|7170|5146|5205|5203|5115|5204|5040|5179|5070|5182|5085|5181|3719|7173|5131|3911|5101|7175|7169|3713|5112|22187|9917|3859|3862|3878|3865|3856|3873|3877|3834|3742|3762|3740|3763|10245|3572|3573|3571|3885|7127|4225|12686|19985|19981|19984|19982|19983|19991|19989|19986|19987|19988|19994|19995|19992|19993|19990|19980|19977|19976|19978|7154|19979|3861|3821" backpack as bitem
50        lift bitem 60000
51        drop shiphold
52        while queued
53            //donothing
54        endwhile
55    endwhile
56endif
57    
58if timerexists openhull
59    removetimer openhull
60endif
61if find "shiphold" ground -1 -1 1
62    //donothing
63elseif not queued and findtype "hatch" ground -1 -1 1 as mobship
64    dclick mobship
65    getlabel backpack ping
66    while findtype "cathedral tapestry|Darkscale tapestry|large painting|landscape painting|portrait painting|hieroglyph|figurine|statue|44987|49730|47107|18653|45127|20103|47103|29363|47105|29361|43453|5899|47109|45250|41509|43447|18657|4025|51308|45156|51304|45214|28769|28799|28803|28765|45211|45248|51259|45220|51328|45218|3842|51327|45222|45241|51336|11858|51375|45282|54722|45255|45246|28795|44983|45235|45251|45238|51258|51314|28761|45236|51260|54718|18400|45252|18656|47111|3839|45239|45242|45254|45281|45247|42241|45216|28775|2594|51321|3838|51318|5901|5905|45259|5903|48407|51302|4248|27611|15296|43166|5359|5981|4026|3985|25359|17686|3836|17087|5356|29030|24434|22336|29036|3843|29025|51098|29034|8826|51094|576|3827|22326|45315|3891|2539|39898|39896|39892|39918|39911|39916|39897|39905|39891|39917|39912|39909|39889|31047|31017|31049|31019|31055|31051|31053|31025|31027|31031|31041|54717|31021|31011|31023|31029|31043|31003|31035|31033|31045|31037|31002|20006|31169|31006|30999|31012|31009|30996|7109|7107|31128|31188|20014|31014|31004|31142|31001|31000|37181|31010|30998|31172|30988|30997|31038|31141|7947|20008|31005|31191|31008|31007|30994|30993|31182|30989|20012|31186|31178|31015|30991|20010|20016|31184|31190|30990|30995|31176|31180|30992|31130|5207|7031|7026|7034|7033|7027|7035|7029|5078|5063|5059|5105|5060|5138|5129|5201|5142|5143|5076|5106|7610|5139|5090|5103|5132|7177|5061|7181|7179|3920|5042|5127|5117|5185|5125|3938|5177|3937|5044|5121|3915|3909|3568|3932|5123|5144|5119|5056|5135|5187|5074|5089|3934|3913|3917|3721|5075|5046|5049|7170|5146|5205|5203|5115|5204|5040|5179|5070|5182|5085|5181|3719|7173|5131|3911|5101|7175|7169|3713|5112|22187|9917|3859|3862|3878|3865|3856|3873|3877|3834|3742|3762|3740|3763|10245|3572|3573|3571|3885|7127|4225|12686|19985|19981|19984|19982|19983|19991|19989|19986|19987|19988|19994|19995|19992|19993|19990|19980|19977|19976|19978|7154|19979|3861|3821" mobship as bitem
67        if not timerexists openhull
68            createtimer openhull
69            overhead "Yarr the booty be mine!" 2091
70        endif
71        hotkey 'Grab Item' 
72        target bitem
73        while queued
74            //donothing
75        endwhile
76    endwhile
77endif