Move Runebook to different runebook by liveonce
Description from the author:
# Move rune BOOK to OTHER runebook - HellzEDIT
# Requirements: two rune books, one filled one blank
# By default the runelist is 16 long (full runebook)
# You can remove the list elements from runes_to_copy_list
# References:
# // marked rune
# // recall rune 7956 0
# // unmarked rune
# // recall rune 7956 2882
removelist runes_to_copy_list
createlist runes_to_copy_list
# The entire runebook is 16 runes you can comment these out to prevent running all runes
pushlist runes_to_copy_list 1
pushlist runes_to_copy_list 2
pushlist runes_to_copy_list 3
pushlist runes_to_copy_list 4
pushlist runes_to_copy_list 5
pushlist runes_to_copy_list 6
pushlist runes_to_copy_list 7
pushlist runes_to_copy_list 8
pushlist runes_to_copy_list 9
pushlist runes_to_copy_list 10
pushlist runes_to_copy_list 11
pushlist runes_to_copy_list 12
pushlist runes_to_copy_list 13
pushlist runes_to_copy_list 14
pushlist runes_to_copy_list 15
pushlist runes_to_copy_list 16
#initial check to make sure not to overwrite an incorrect run
if counttype "recall rune" backpack 0 > 0
overhead "Cannot continue" 34
overhead "Please remove any marked runes from your bag" 88
stop
endif
#pick the original tome
overhead "Select a runetome to copy FROM"
setvar runetome_blessed
wait 1000
#pick the new tome
overhead "Select a runetome to copy TO"
setvar runetome_unblessed
#hell adding another wait
wait 1000
overhead "Beginning Copy... with an 11 second timer" 88
if not timerexists runes_to_copy_skill_check
createtimer runes_to_copy_skill_check
settimer runes_to_copy_skill_check 11000
endif
foreach rune_to_copy in runes_to_copy_list
clearsysmsg
if timer runes_to_copy_skill_check >= 11000
settimer runes_to_copy_skill_check 0
endif
wait 1000
overhead "Pulling rune..." 88
overhead rune_to_copy 144
while not insysmsg "You have removed the rune" and not findtype "recall rune" backpack 0
# Drop rune
dclick runetome_blessed
waitforgump 1551740969 1500
gumpresponse 3
wait 500
overhead "waiting for rune to be removed"
wait 200
endwhile
if findtype "recall rune" backpack 0 as currentRune
getlabel currentRune runeDescription
wait 100
overhead runeDescription 88
wait 100
while find currentRune backpack 0 and not insysmsg runeDescription
lift currentRune
wait 200
drop runetome_unblessed 0 0 0
if not insysmsg runeDescription
overhead "waiting for rune to drop in book"
wait 500
endif
if find currentRune backpack 0
overhead "ERR: Still have a recall rune in backpack after drop FROM... this shouldn't happen"
endif
endwhile
endif
endfor
overhead "Enjoy your copy!" 104
stopMOVE NOT COPY RUNEBOOK: Select a runebook (possibly unblessed) and move all runes to another runebook