Move Runes from Rune Tome to another rune Tome by Jaseowns

1# Move Runes from Rune Tome to another rune Tome by Jaseowns
2# UO Outlands
3# Requirements:
4#   Make sure that secondTome has enough spots for runes
5
6if findtype "recall rune" backpack
7    overhead "I do not know what to do"
8    overhead "Clear all runes!" 34
9    wait 1000
10    replay
11endif
12
13// select a tome
14overhead "Select first tome" 77
15@setvar! firstTome
16// select another tome
17
18overhead "Select destination tome" 88
19@setvar! secondTome
20
21// move runes from first tome to second
22// keep them in order
23
24dclick firstTome
25waitforgump 167090027 5000
26gumpresponse 200 167090027
27waitforgump 167090027 5000
28
29// loop here
30while ingump "Drop rune" 167090027
31    gumpresponse 15 167090027
32    waitforgump 167090027 5000
33    while not findtype "recall rune" backpack
34        wait 200
35    endwhile
36    // take the rune and drop it on secondtome
37    while findtype "recall rune" backpack as item
38        lift item
39        drop secondTome
40        wait 650
41    endwhile
42endwhile
43
44if findtype "recall rune" backpack as item
45    lift item
46    drop secondTome
47    wait 650
48endif
49
50overhead "All done bro" 88