Pulls 2 of each rune from a tome and organizes them into a bag by rynos.
@setvar! globalTimeout 150
removelist buttons
createlist buttons
//Set buttons
pushlist buttons '10'
pushlist buttons '11'
pushlist buttons '12'
pushlist buttons '13'
pushlist buttons '14'
pushlist buttons '15'
pushlist buttons '16'
pushlist buttons '17'
pushlist buttons '18'
pushlist buttons '19'
pushlist buttons '20'
pushlist buttons '21'
pushlist buttons '22'
// select a tome
overhead "Select Arcane rune tome" 77
@setvar! arcaneRuneTome
// select another tome
overhead "Select destination location" 88
@setvar! destinationLocation
dclick arcaneRuneTome
wait globalTimeout
foreach button in buttons
gumpresponse button
pause globalTimeout
gumpresponse button
pause globalTimeout
overhead button 38
while findtype "rune" backpack as item
lift item 2
if button == '10'
drop destinationLocation 0 0 0
elseif button == '11'
drop destinationLocation 55 0 0
elseif button == '12'
drop destinationLocation 80 0 0
elseif button == '13'
drop destinationLocation 120 0 0
elseif button == '14'
drop destinationLocation 0 55 0
elseif button == '15'
drop destinationLocation 55 55 0
elseif button == '16'
drop destinationLocation 80 55 0
elseif button == '17'
drop destinationLocation 120 55 0
elseif button == '18'
drop destinationLocation 0 75 0
elseif button == '19'
drop destinationLocation 55 75 0
elseif button == '20'
drop destinationLocation 80 75 0
elseif button == '21'
drop destinationLocation 120 75 0
elseif button == '22'
drop destinationLocation 70 120 0
endif
wait globalTimeout
if insysmsg "you may pick up an item from here"
// do nothing
else
@ignore item
endif
endwhile
endfor