OCD your items into a bag by Jaseowns

1# OCD your items into a "bag" by Jaseowns
2# UO Outlands 
3# Live stream: https://youtu.be/P4jbgpvM_8c
4# If you want to adjust for other bags use -info
5@setvar! globalTimeout 650
6
7if not varexist jootbag or not find jootbag backpack
8    if counttype "bag" backpack = 1 and findtype "bag" backpack as lootbag
9        overhead "Automatically setting to bag"
10        @setvar! jootbag lootbag
11    else
12        overhead "Select your loot bag"
13        @setvar! jootbag 
14    endif    
15endif
16
17clearsysmsg 
18
19if findtype "reagent satchel" self as jatchel
20    overhead "Organize Satchel" 88
21    menu jatchel 0
22endif
23
24lift jootbag
25drop backpack 0 0 0
26wait globalTimeout
27if jootbag = self
28    // do nothing
29else
30    dclick jootbag
31    wait 200
32endif
33
34@clearignore
35while findtype "pouch" backpack 0 as item
36    overhead "Organize Open Pouches" 77
37    lift item
38    drop jootbag 0 0 0
39    wait globalTimeout
40    if insysmsg "you may pick up an item from here"
41        // do nothing
42    else
43        @ignore item
44    endif
45endwhile
46
47while findtype "pouch" backpack 38 as item
48    overhead "Organize Trapped Pouches" 38
49    lift item
50    drop jootbag 0 0 0
51    wait globalTimeout
52    if insysmsg "you may pick up an item from here"
53        // do nothing
54    else
55        @ignore item
56    endif
57endwhile
58
59while findtype "Purple Potion" backpack as item
60    overhead "Organize Purple Potions" 118
61    lift item 60000
62    drop jootbag 53 68 0
63    wait globalTimeout
64    if insysmsg "you may pick up an item from here"
65        // do nothing
66    else
67        @ignore item
68    endif
69endwhile
70
71
72while findtype "Orange Potion" backpack as item
73    overhead "Organize Orange Potions" 48
74    lift item 60000
75    drop jootbag 58 68 0
76    wait globalTimeout
77    if insysmsg "you may pick up an item from here"
78        // do nothing
79    else
80        @ignore item
81    endif
82endwhile
83
84while findtype "Red Potion" backpack as item
85    overhead "Organize Red Potions" 33
86    lift item 60000
87    drop jootbag 63 68 0
88    wait globalTimeout
89    if insysmsg "you may pick up an item from here"
90        // do nothing
91    else
92        @ignore item
93    endif
94endwhile
95
96while findtype "Yellow Potion" backpack as item
97    overhead "Organize Yellow Potions" 53
98    lift item 60000
99    drop jootbag 68 68 0
100    wait globalTimeout
101    if insysmsg "you may pick up an item from here"
102        // do nothing
103    else
104        @ignore item
105    endif
106endwhile
107
108while findtype "White Potion" backpack as item
109    overhead "Organize White Potions" 0
110    lift item 60000
111    drop jootbag 73 68 0
112    wait globalTimeout
113    if insysmsg "you may pick up an item from here"
114        // do nothing
115    else
116        @ignore item
117    endif
118endwhile
119
120while findtype "Black Potion" backpack as item
121    overhead "Organize Black Potions" 1
122    lift item 60000
123    drop jootbag 78 68 0
124    wait globalTimeout
125    if insysmsg "you may pick up an item from here"
126        // do nothing
127    else
128        @ignore item
129    endif
130endwhile
131
132while findtype "tray" backpack as item
133    overhead "Organize Food Tray" 66
134    lift item 60000
135    drop jootbag 93 68 0
136    wait globalTimeout
137    if insysmsg "you may pick up an item from here"
138        // do nothing
139    else
140        @ignore item
141    endif
142endwhile
143
144// crook
145while findtype 3713 backpack as item
146    overhead "Organize Crook" 77
147    lift item 60000
148    drop jootbag 37 66 0
149    wait globalTimeout
150    if insysmsg "you may pick up an item from here"
151        // do nothing
152    else
153        @ignore item
154    endif
155endwhile
156
157// aids
158while findtype "clean bandage%s%" backpack as item
159    overhead "Organize Aids" 88
160    lift item 60000
161    drop jootbag 45 70 0
162    wait globalTimeout
163    if insysmsg "you may pick up an item from here"
164        // do nothing
165    else
166        @ignore item
167    endif
168endwhile
169
170@clearignore