Pulls 2 of each rune from a tome and organizes them into a bag by rynos.

1@setvar! globalTimeout 150
2
3removelist buttons
4createlist buttons
5
6//Set buttons
7pushlist buttons '10'
8pushlist buttons '11'
9pushlist buttons '12'
10pushlist buttons '13'
11pushlist buttons '14'
12pushlist buttons '15'
13pushlist buttons '16'
14pushlist buttons '17'
15pushlist buttons '18'
16pushlist buttons '19'
17pushlist buttons '20'
18pushlist buttons '21'
19pushlist buttons '22'
20
21// select a tome
22overhead "Select Arcane rune tome" 77
23@setvar! arcaneRuneTome
24// select another tome
25
26overhead "Select destination location" 88
27@setvar! destinationLocation
28
29dclick arcaneRuneTome
30wait globalTimeout
31
32foreach button in buttons
33gumpresponse button
34pause globalTimeout
35gumpresponse button
36pause globalTimeout
37overhead button 38
38
39while findtype "rune" backpack as item
40    lift item 2
41    if button == '10'
42        drop destinationLocation 0 0 0
43    elseif button == '11'
44        drop destinationLocation 55 0 0
45    elseif button == '12'
46        drop destinationLocation 80 0 0
47    elseif button == '13'
48        drop destinationLocation 120 0 0
49    elseif button == '14'
50        drop destinationLocation 0 55 0
51    elseif button == '15'
52        drop destinationLocation 55 55 0
53    elseif button == '16'
54        drop destinationLocation 80 55 0
55    elseif button == '17'
56        drop destinationLocation 120 55 0
57    elseif button == '18'
58        drop destinationLocation 0 75 0
59    elseif button == '19'
60        drop destinationLocation 55 75 0
61    elseif button == '20'
62        drop destinationLocation 80 75 0
63    elseif button == '21'
64        drop destinationLocation 120 75 0
65    elseif button == '22'
66        drop destinationLocation 70 120 0
67    endif
68    wait globalTimeout
69    if insysmsg "you may pick up an item from here"
70        // do nothing
71    else
72        @ignore item
73    endif
74endwhile
75endfor