Back to "b" tags

Ultimate Skill Scroll Tome exploder and counter (find your junk scroll count) by Jaseowns

1# Ultimate Skill Scroll Tome exploder and counter by Jaseowns
2# UO Outlands - https://youtu.be/gSymYQ_D01A?t=18520
3# Brought to you by: thereallboowip
4overhead "Select your tome or bag of scrolls to get a count" 88
5@setvar! mySkillScrollTomeOrBag
6
7if gumpexists 2125225775
8    gumpclose 2125225775
9    wait 200
10endif
11dclick mySkillScrollTomeOrBag
12wait 200
13if gumpexists 2125225775
14    gumpresponse 3 2125225775    
15    waitforgump 2125225775 5000
16    for 2
17        gumpresponse 10 2125225775
18        waitforgump 2125225775 5000
19        gumpresponse 11 2125225775
20        waitforgump 2125225775 5000
21        gumpresponse 12 2125225775
22        waitforgump 2125225775 5000
23        gumpresponse 13 2125225775
24        waitforgump 2125225775 5000
25        gumpresponse 14 2125225775
26        waitforgump 2125225775 5000
27        gumpresponse 15 2125225775
28        waitforgump 2125225775 5000
29        gumpresponse 16 2125225775
30        waitforgump 2125225775 5000
31        gumpresponse 17 2125225775
32        waitforgump 2125225775 5000
33        gumpresponse 18 2125225775
34        waitforgump 2125225775 5000
35        gumpresponse 19 2125225775
36        waitforgump 2125225775 5000
37        gumpresponse 20 2125225775
38        waitforgump 2125225775 5000
39        gumpresponse 21 2125225775
40        waitforgump 2125225775 5000
41        gumpresponse 22 2125225775
42        waitforgump 2125225775 5000
43        gumpresponse 23 2125225775
44        waitforgump 2125225775 5000
45        gumpresponse 24 2125225775
46        waitforgump 2125225775 5000
47        gumpresponse 25 2125225775
48        waitforgump 2125225775 5000
49        gumpresponse 26 2125225775
50        waitforgump 2125225775 5000
51        gumpresponse 27 2125225775
52        waitforgump 2125225775 5000
53        gumpresponse 28 2125225775
54        waitforgump 2125225775 5000
55        gumpresponse 29 2125225775
56        waitforgump 2125225775 5000
57        gumpresponse 30 2125225775
58        waitforgump 2125225775 5000
59        gumpresponse 5 2125225775
60        waitforgump 2125225775 5000
61    endfor
62else
63    while findtype "scroll of calling" mySkillScrollTomeOrBag as item
64        lift item 60000
65        drop backpack -1 -1 -1
66        wait 650
67    endwhile
68endif
69
70if counttype "scroll of calling" backpack as total
71    overhead "Total scrolls: {{total}}" 88
72endif
73
74while findtype "scroll of calling" backpack as item
75    getlabel item desc
76    if "tailoring" in desc or "poison" in desc or "taste" in desc or "alchemy" in desc or "inscription" in desc or "necro" in desc or "chiv" in desc or "lockpick" in desc or "music" in desc or "taming" in desc
77        lift item 60000
78        drop mySkillScrollTomeOrBag -1 -1 -1
79        wait 650
80    else
81        @ignore item
82    endif
83endwhile
84@clearignore 
85
86if counttype "scroll of calling" backpack as total
87    overhead "Total junk scrolls: {{total}}" 88
88endif
89
90overhead "If you want to return your junk to your trunk, double click your dagger" 88
91while not targetexists
92    // wait here
93    wait 50
94endwhile
95
96if targetexists 
97    hotkey 'cancel current target'
98endif
99
100if gumpexists 2125225775
101    gumpresponse 2 2125225775
102    wait 200
103endif
104
105while findtype "scroll of calling" backpack as item
106    lift item 60000
107    drop mySkillScrollTomeOrBag -1 -1 -1
108    wait 650
109endwhile