Decode maps from one container and deposit in another by Pickleback
Description: A combination and enhancement from multiple online scripts. Choose the source and destination containers for maps at the start of the process.
1#¸¸,øNKBø,¸¸
2#decode maps from a chosen container
3#deposit maps into a chosen container
4#uses spyglass in backpack
5
6clearignore
7
8overhead 'Select the source container'
9setvar 'mapsource'
10overhead 'Select the destination container'
11setvar 'mapdest'
12
13while findtype 5356 'mapsource' as 'check_map'
14 clearsysmsg
15 getlabel 'check_map' 'map_label'
16 lift 'check_map'
17 wait 500
18 if undeciphered in 'map_label'
19 drop backpack -1 -1 0
20 overhead 'Decoding map' 55
21 wait 500
22 usetype 'spyglass'
23 waitfortarget
24 target 'check_map'
25 waitforgump 'any'
26 gumpresponse 4
27 wait 1500
28 while not insysmsg "maximum accuracy"
29 overhead '[enhance]' 34
30 gumpresponse 4
31 wait 1500
32 endwhile
33 overhead 'Map decoded' 44
34 lift 'check_map'
35 wait 500
36 endif
37 ignore 'check_map'
38 drop 'mapdest' -1 -1 0
39 wait 500
40endwhile
41overhead "All maps decoded!" 55
42clearignore