Junk Scroll Sorter by steveholt_
Description: If you are poor like me and don't have a tome to hold your scrolls, finding them in a container can be time consuming. Also sorting them based on the value can be difficult as well, but ultimately i wanted a way to sort these scrolls so i could find the "good" ones and sort them from the "junk" ones.
1//you'll need 3 bags / containers to sort your scrolls.
2
3// this bag will contain all scrolls you are wanting to sort.
4sysmsg 'select bag to find junk scrolls'
5overhead 'select bag to find junk scrolls'
6setvar findJunk
7
8
9//this will contain tall scrolls you want to keep as "junk"
10sysmsg 'select bag to place junk scrolls'
11overhead 'select bag to place junk scrolls'
12setvar dropJunk
13
14
15//this will contain all scrolls you wish to keep
16sysmsg 'select bag to place good scrolls'
17overhead 'select bag to place good scrolls'
18setvar dropGood
19
20
21clearsysmsg
22clearignore
23
24
25createlist junkScrolls
26clearlist junkScrolls
27
28
29// I looked on the market and found prices for scrolls and the ones listed are "cheap" so, the fit the definition of junk. while this could be different for you, update the list below accordingly.
30
31@pushlist 'junkScrolls' 'begging'
32@pushlist 'junkScrolls' 'blacksmithy'
33@pushlist 'junkScrolls' 'camping'
34@pushlist 'junkScrolls' 'carperntry'
35@pushlist 'junkScrolls' 'cartography'
36@pushlist 'junkScrolls' 'cooking'
37@pushlist 'junkScrolls' 'iscordance'
38@pushlist 'junkScrolls' 'fishing'
39@pushlist 'junkScrolls' 'forensic evaluation'
40@pushlist 'junkScrolls' 'item id'
41@pushlist 'junkScrolls' 'lumberjacking'
42@pushlist 'junkScrolls' 'mining'
43@pushlist 'junkScrolls' 'musicianship'
44@pushlist 'junkScrolls' 'peacemaking'
45@pushlist 'junkScrolls' 'poisoning'
46@pushlist 'junkScrolls' 'provocation'
47@pushlist 'junkScrolls' 'spirit speak'
48@pushlist 'junkScrolls' 'taste id'
49@pushlist 'junkScrolls' 'tracking'
50
51
52
53
54while findtype 8826 findJunk as scroll
55 getlabel scroll x
56 @setvar! found 0
57 foreach z in junkScrolls
58 if z in x
59 overhead "junk found {{x}}"
60 //move junk
61 lift scroll 99
62 drop dropJunk -1 -1 0
63 @setvar! found 1
64 endif
65 endfor
66 if found = 0
67 overhead 'skipping {{x}}'
68 lift scroll 99
69 drop dropGood -1 -1 0
70 endif
71endwhile
72