Back to "snoop" tags

Search lastobject for un-trapped pouch by Jaseowns

1# Search bags for un-trapped pouch by Jaseowns
2# UO Outlands 
3# Requirements: 
4#   Defaults to lastobject, so first double click the bag you want to search 
5#   If you want to auto search the bags, leave it as autoOpenUntrapped 1, if you don't like that set it to 0
6clearignore 
7
8@setvar! tbag lastobject
9@setvar! autoOpenUntrapped 1
10
11if counttype "pouch" tbag 38 as foundPouches
12    overhead "{{foundPouches}} trapped pouches found!" 38
13endif
14if counttype "pouch" tbag 0 as foundPouches
15    overhead "{{foundPouches}} un-trapped pouches found!" 77
16    if autoOpenUntrapped = 1
17        while findtype "pouch" tbag 0 as found
18            dclick found
19            ignore found
20            wait 1200
21        endwhile
22        clearignore 
23    endif
24endif
25