Copy Runetome by Jaseowns
Description: This script will copy one rune tome to another - it works best if you have one full rune tome and one empty rune tome.
1# Copy Runetome Script by Jaseowns
2# UO Outlands - video coming soon...
3# Requirements: two runetomes, one filled one blank - enough blank runes and regs to mark/recall
4# By default the runelist is 26 long (full runetome)
5# You can remove the list elements from runes_to_copy_list
6# Additional Info:
7# This script removes a rune from your "from" runetome, recalls to that location
8# and use the description of that rune. Once it recalls, it will attempt to Mark
9# a blank rune and rename based on that description
10# Assuming all goes well, it puts both runes back
11# WARNING: if your runes are unsafe locations, this may fail.
12# References:
13# // marked rune
14# // recall rune 7956 0
15# // unmarked rune
16# // recall rune 7956 2882
17
18removelist runes_to_copy_list
19createlist runes_to_copy_list
20# The entire runebook is 26 runes you can comment these out to prevent running all runes
21pushlist runes_to_copy_list 1
22pushlist runes_to_copy_list 2
23pushlist runes_to_copy_list 3
24pushlist runes_to_copy_list 4
25pushlist runes_to_copy_list 5
26pushlist runes_to_copy_list 6
27pushlist runes_to_copy_list 7
28pushlist runes_to_copy_list 8
29pushlist runes_to_copy_list 9
30pushlist runes_to_copy_list 10
31pushlist runes_to_copy_list 11
32pushlist runes_to_copy_list 12
33pushlist runes_to_copy_list 13
34pushlist runes_to_copy_list 14
35pushlist runes_to_copy_list 15
36pushlist runes_to_copy_list 16
37pushlist runes_to_copy_list 17
38pushlist runes_to_copy_list 18
39pushlist runes_to_copy_list 19
40pushlist runes_to_copy_list 20
41pushlist runes_to_copy_list 21
42pushlist runes_to_copy_list 22
43pushlist runes_to_copy_list 23
44pushlist runes_to_copy_list 24
45pushlist runes_to_copy_list 25
46pushlist runes_to_copy_list 26
47
48if list runes_to_copy_list = 26 and counttype "recall rune" backpack 2882 < 26
49 overhead "Cannot continue" 34
50 overhead "You need at least 26 unmarked recall runes in your backpack" 88
51 stop
52elseif list runes_to_copy_list = 25 and counttype "recall rune" backpack 2882 < 25
53 overhead "Cannot continue" 34
54 overhead "You need at least 25 unmarked recall runes in your backpack" 88
55 stop
56elseif list runes_to_copy_list = 24 and counttype "recall rune" backpack 2882 < 24
57 overhead "Cannot continue" 34
58 overhead "You need at least 24 unmarked recall runes in your backpack" 88
59 stop
60elseif list runes_to_copy_list = 23 and counttype "recall rune" backpack 2882 < 23
61 overhead "Cannot continue" 34
62 overhead "You need at least 23 unmarked recall runes in your backpack" 88
63 stop
64elseif list runes_to_copy_list = 22 and counttype "recall rune" backpack 2882 < 22
65 overhead "Cannot continue" 34
66 overhead "You need at least 22 unmarked recall runes in your backpack" 88
67 stop
68elseif list runes_to_copy_list = 21 and counttype "recall rune" backpack 2882 < 21
69 overhead "Cannot continue" 34
70 overhead "You need at least 21 unmarked recall runes in your backpack" 88
71 stop
72elseif list runes_to_copy_list = 20 and counttype "recall rune" backpack 2882 < 20
73 overhead "Cannot continue" 34
74 overhead "You need at least 20 unmarked recall runes in your backpack" 88
75 stop
76elseif list runes_to_copy_list = 19 and counttype "recall rune" backpack 2882 < 19
77 overhead "Cannot continue" 34
78 overhead "You need at least 19 unmarked recall runes in your backpack" 88
79 stop
80elseif list runes_to_copy_list = 18 and counttype "recall rune" backpack 2882 < 18
81 overhead "Cannot continue" 34
82 overhead "You need at least 18 unmarked recall runes in your backpack" 88
83 stop
84elseif list runes_to_copy_list = 17 and counttype "recall rune" backpack 2882 < 17
85 overhead "Cannot continue" 34
86 overhead "You need at least 17 unmarked recall runes in your backpack" 88
87 stop
88elseif list runes_to_copy_list = 16 and counttype "recall rune" backpack 2882 < 16
89 overhead "Cannot continue" 34
90 overhead "You need at least 16 unmarked recall runes in your backpack" 88
91 stop
92elseif list runes_to_copy_list = 15 and counttype "recall rune" backpack 2882 < 15
93 overhead "Cannot continue" 34
94 overhead "You need at least 15 unmarked recall runes in your backpack" 88
95 stop
96elseif list runes_to_copy_list = 14 and counttype "recall rune" backpack 2882 < 14
97 overhead "Cannot continue" 34
98 overhead "You need at least 14 unmarked recall runes in your backpack" 88
99 stop
100elseif list runes_to_copy_list = 13 and counttype "recall rune" backpack 2882 < 13
101 overhead "Cannot continue" 34
102 overhead "You need at least 13 unmarked recall runes in your backpack" 88
103 stop
104elseif list runes_to_copy_list = 12 and counttype "recall rune" backpack 2882 < 12
105 overhead "Cannot continue" 34
106 overhead "You need at least 12 unmarked recall runes in your backpack" 88
107 stop
108elseif list runes_to_copy_list = 11 and counttype "recall rune" backpack 2882 < 11
109 overhead "Cannot continue" 34
110 overhead "You need at least 11 unmarked recall runes in your backpack" 88
111 stop
112elseif list runes_to_copy_list = 10 and counttype "recall rune" backpack 2882 < 10
113 overhead "Cannot continue" 34
114 overhead "You need at least 10 unmarked recall runes in your backpack" 88
115 stop
116elseif list runes_to_copy_list = 9 and counttype "recall rune" backpack 2882 < 9
117 overhead "Cannot continue" 34
118 overhead "You need at least 9 unmarked recall runes in your backpack" 88
119 stop
120elseif list runes_to_copy_list = 8 and counttype "recall rune" backpack 2882 < 8
121 overhead "Cannot continue" 34
122 overhead "You need at least 8 unmarked recall runes in your backpack" 88
123 stop
124elseif list runes_to_copy_list = 7 and counttype "recall rune" backpack 2882 < 7
125 overhead "Cannot continue" 34
126 overhead "You need at least 7 unmarked recall runes in your backpack" 88
127 stop
128elseif list runes_to_copy_list = 6 and counttype "recall rune" backpack 2882 < 6
129 overhead "Cannot continue" 34
130 overhead "You need at least 6 unmarked recall runes in your backpack" 88
131 stop
132elseif list runes_to_copy_list = 5 and counttype "recall rune" backpack 2882 < 5
133 overhead "Cannot continue" 34
134 overhead "You need at least 5 unmarked recall runes in your backpack" 88
135 stop
136elseif list runes_to_copy_list = 4 and counttype "recall rune" backpack 2882 < 4
137 overhead "Cannot continue" 34
138 overhead "You need at least 4 unmarked recall runes in your backpack" 88
139 stop
140elseif list runes_to_copy_list = 3 and counttype "recall rune" backpack 2882 < 3
141 overhead "Cannot continue" 34
142 overhead "You need at least 3 unmarked recall runes in your backpack" 88
143 stop
144elseif list runes_to_copy_list = 2 and counttype "recall rune" backpack 2882 < 2
145 overhead "Cannot continue" 34
146 overhead "You need at least 2 unmarked recall runes in your backpack" 88
147 stop
148elseif list runes_to_copy_list = 1 and counttype "recall rune" backpack 2882 < 1
149 overhead "Cannot continue" 34
150 overhead "You need at least 1 unmarked recall rune in your backpack" 88
151 stop
152endif
153
154if counttype "recall rune" backpack 0 > 0
155 overhead "Cannot continue" 34
156 overhead "Please remove any marked runes from your bag" 88
157 stop
158endif
159
160overhead "Select a runetome to copy FROM"
161setvar runetome_copy_from
162wait 500
163overhead "Select a runetome to copy TO"
164setvar runetome_copy_to
165
166
167overhead "Beginning Copy..." 88
168
169if not timerexists runes_to_copy_skill_check
170 createtimer runes_to_copy_skill_check
171 settimer runes_to_copy_skill_check 11000
172endif
173
174foreach rune_to_copy in runes_to_copy_list
175 clearsysmsg
176 if mana < 30
177 while mana < 31
178 overhead "Waiting for at least 30 mana..." 22
179 if timer runes_to_copy_skill_check >= 11000
180 useskill 'meditation'
181 settimer runes_to_copy_skill_check 0
182 endif
183 wait 1000
184 endwhile
185 endif
186
187 overhead "Pulling rune..." 88
188 overhead rune_to_copy 144
189
190 # Drop rune
191 dclick runetome_copy_from
192 waitforgump 167090027 1000
193 gumpresponse 200
194 waitforgump 167090027 1000
195 gumpresponse 15
196 wait 500
197
198 if findtype "recall rune" backpack 0 as currentRune
199 gumpclose 167090027
200 getlabel currentRune runeDescription
201 overhead runeDescription 88
202 while not targetexists
203 cast Recall
204 wait 200
205 endwhile
206 target currentRune
207 wait 1500
208 if followers > 0
209 say 'All guard me'
210 endif
211 while not targetexists
212 cast Mark
213 wait 200
214 endwhile
215 targettype "recall rune" backpack 2882
216 lift currentRune
217 drop runetome_copy_from 0 0 0
218 wait 500
219
220 if findtype "recall rune" backpack 0 as newRune
221 overhead "Rename and move to new book" 88
222 dclick newRune
223 wait 500
224 promptresponse runeDescription
225 wait 500
226 lift newRune
227 drop runetome_copy_to 0 0 0
228 else
229 overhead "Warning!" 34
230 overhead "Unable to find copied rune" 88
231 endif
232 else
233 overhead "Might be done..." 88
234 endif
235endfor
236
237overhead "Enjoy your copy!" 104
238stop