Back to "b" tags

MIB Organizer by dabiri

Description: This script helps me organize my salvage crate and monster loot into my pack, and hold; and dumps seashells/vases on the deck of my boat.

1// This helps me organize after an SOS spot. 
2// It moves rares from the salvage crates into my main pack.
3// It dumps unidentified items into a bag in my hold
4// It dumps stackables like gold, doubloons, gems, booty, and reagents into the hold. 
5// It dumps shells and vases at my feet on the boat
6// I recommend always confirming the salvage crate has 0 items before dumping, so that you don't miss a dark colored cloth shoe or something unaccounted for here.
7
8// This script expects you to have a cooldown named exactly:
9# Spyglass
10
11// It also expects you to have the hold and the bag in your hold targeted. I do this at the beginning of every voyage with my startup script so I'm not certain how well lines 41-49 will (should) replicate that functionality.
12
13//Spyglass Routine
14if not findtype 5365 backpack
15    overhead "No spyglass"
16    stop
17endif
18
19if not cooldown 'Spyglass'
20    if targetexists
21        overhead 'Holding spyglass' 15
22        wait 500
23        loop
24    endif
25    gumpclose 2890020940
26    dclicktype 5365
27    wft 1000
28    if targetexists neutral
29        overhead 'Glassing'
30        target 'self'
31        waitforgump 2890020940
32        gumpresponse 4 2890020940
33        waitforgump 2890020940
34        cooldown 'Spyglass' 6300
35    endif
36endif
37
38@setvar globalTimeout 650
39overhead 'Organizing'
40
41if not varexist myShipHold
42    overhead 'Target the ship hold' 28
43    @setvar! myShipHold
44endif
45
46if not varexist holdLootBag
47    overhead 'Target a bag to hold unidenfitied items' 28
48    @setvar! holdLootBag
49endif
50
51overhead myShipHold
52dclick myShipHold
53
54overhead holdLootBag
55dclick holdLootBag
56
57overhead 'Moving currency'
58//Move gold
59while findtype "gold coin" backpack as gold
60overhead 'Moving gold'
61    lift gold 60000
62    drop myShipHold -1 -1 0
63    pause globalTimeout
64endwhile
65
66//Move dubs
67while findtype "doubloon" backpack as dubs
68    overhead 'Moving dubs'
69    lift dubs 60000
70    drop myShipHold -1 -1 0
71    pause globalTimeout
72endwhile
73
74//Move leather
75while findtype "cut up leather" backpack as leathers
76    overhead 'Moving leather'
77    lift leathers 500
78    drop myShipHold -1 -1 0
79    pause globalTimeout
80endwhile
81
82clearignore 
83
84overhead "Dumping unidentified items"
85while findtype 5056|5059|5060|5061|5063|5070|5074|5075|5076|5078|5085|5089|5090|5101|5103|5105|5106|5129|5131|5132|5135|5138|5139|5142|5143|5144|5146|5201|5203|5204|5205|5207|7169|7170|7173|7175|7177|7179|7181|7610|7947|31003|31004|31005|31006|31007|31008|31009|31010|31011|31012|31015|31191|3834|9917|31169|3568|3570|3571|3572|3573|3713|3719|3721|3740|3742|3762|3763|3834|3909|3911|3913|3915|3917|3920|3922|3932|3934|3937|3938|5040|5042|5044|5046|5049|5112|5115|5117|5119|5121|5123|5125|5127|5177|5179|5181|5182|5185|5187|7026|7027|7029|7031|7033|7034|7035|7107|7109|10245|20006|20008|20010|20012|20014|20016|22187|30988|30989|30990|30991|30992|30993|30994|30995|30996|30997|30998|30999|31000|31001|31002|31014|31017|31019|31021|31023|31025|31027|31029|31031|31033|31035|31037|31038|31041|31043|31045|31047|31049|31051|31053|31055|31128|31130|31141|31142|31176|31178|31180|31182|31184|31186|31188|31190 backpack as item
86    getlabel item checkForUnidentified
87        if "unidentified" in checkForUnidentified
88            lift item 5000
89            drop holdLootBag -1 -1 0
90        endif 
91        @ignore item
92endwhile
93
94//Spyglass Routine
95if not findtype 5365 backpack
96    overhead "No spyglass"
97    stop
98endif
99
100if not cooldown 'Spyglass'
101    if targetexists
102        overhead 'Holding spyglass' 15
103        wait 500
104        loop
105    endif
106    gumpclose 2890020940
107    dclicktype 5365
108    wft 1000
109    if targetexists neutral
110        overhead 'Glassing'
111        target 'self'
112        waitforgump 2890020940
113        gumpresponse 4 2890020940
114        waitforgump 2890020940
115        cooldown 'Spyglass' 6300
116    endif
117endif
118
119overhead 'Dumping stackables'
120while findtype 45315|3856|3859|3861|3862|3865|3873|3877|3878|3885|7981|7982|7983|7984|7985|7986|7987|7988|7989|7990|7991|7992|7993|7994|7995|7996|7997|7998|7999|8000|8001|8002|8003|8004|8005|8006|8007|8008|8009|8010|8011|8012|8013|8014|8015|8016|8017|8018|8019|8020|8021|8022|8023|8024|8025|8026|8027|8028|8029|8031|8032|8033|8034|8035|8036|8037|8038|8039|8041|8042|8043|8044|22326|3962|3963|3972|3973|3974|3976|3980|3981|39889|39891|39892|39896|39897|39898|39905|39909|39911|39912|39916|39917|39918|7163|3903|7708|17617|17619|2426 backpack as item
121    lift item 5000
122    drop myShipHold -1 -1 0
123    @ignore item
124endwhile
125
126while findtype 2473|3710|3646|3647|3644|3645 backpack 2915 as salvagecrate
127
128    while findtype 3985|17686|2744|2750|2760|2771|2778|2799|4248|19717|22244|43166|43179|48405|48407|3843|3838|3839|3842|15297|29025|29036|2594|2597|5356|5356|5356|5356|5356|17087|576|5981|24434|22336|8826|5359|4025|4026|3827|29030|37181 salvagecrate as lewt
129        lift lewt 5000
130        drop backpack -1 -1 0
131        ignore lewt
132    endwhile
133    @ignore salvagecrate
134endwhile
135
136//Spyglass Routine
137if not findtype 5365 backpack
138    overhead "No spyglass"
139    stop
140endif
141
142if not cooldown 'Spyglass'
143    if targetexists
144        overhead 'Holding spyglass' 15
145        wait 500
146        loop
147    endif
148    gumpclose 2890020940
149    dclicktype 5365
150    wft 1000
151    if targetexists neutral
152        overhead 'Glassing'
153        target 'self'
154        waitforgump 2890020940
155        gumpresponse 4 2890020940
156        waitforgump 2890020940
157        cooldown 'Spyglass' 6300
158    endif
159endif
160
161overhead 'shells'
162while findtype 'shells' backpack as thething
163    lift thething 5000
164    drop ground 
165    pause globalTimeout
166endwhile
167
168while findtype 'shell' backpack as thething
169    lift thething 5000
170    drop ground 
171    pause globalTimeout
172endwhile
173
174while findtype 'conch shell' backpack as thething
175    lift thething 5000
176    drop ground 
177    pause globalTimeout
178endwhile
179
180while findtype 'nautilus' backpack as thething
181    lift thething 5000
182    drop ground 
183    pause globalTimeout
184endwhile
185
186while findtype 'broken vase' backpack as thething
187    lift thething 5000
188    drop ground 
189    pause globalTimeout
190endwhile
191
192while findtype 'urchin' backpack as thething
193    lift thething 5000
194    drop ground 
195    pause globalTimeout
196endwhile
197
198overhead '~~ Done dumping ~~' 48
199
200wait 250
201
202// You could uncomment and specify your normal boating background script by name below
203//overhead 'Launching background script'
204//script "SpyAndHeal"