# This is an automated backup - check out https://outlands.uorazorscripts.com/script/52af1bc1-b488-400c-9a06-095c9f37b5c5 for latest # Automation by Jaseowns ## Script: Refill Runebooks ## Created by: jfrostp#0 ############################################# # Refills runebooks/tomes in backpack, nearby, and in chests # Modified version of the Jaseowns script @setvar! globalTimeout 650 # Set this to the serial of a chest if you don't carry recall scrolls in your backpack setvar! recallScrollsChest 0 @clearsysmsg @cleardragdrop @clearignore setvar! recallScrolls 0 if recallScrollsChest != 0 if findtype 8012 recallScrollsChest as item setvar! recallScrolls item endif endif if recallScrolls = 0 if findtype 8012 backpack as item setvar! recallScrolls item endif endif if recallScrolls = 0 overhead "Out of scrolls!" 34 stop endif # Backpack while findtype "runetome|runebook" backpack as tome getlabel recallScrolls desc overhead desc 88 lift recallScrolls 60000 if insysmsg 'not found or out of range' overhead "Out of scrolls!" 34 stop endif drop tome @ignore tome endwhile # Nearby tomes while findtype "runetome|runebook" ground -1 -1 2 as tome getlabel recallScrolls desc overhead desc 88 lift recallScrolls 60000 if insysmsg 'not found or out of range' overhead "Out of scrolls!" 34 stop endif drop tome @ignore tome endwhile # Nearby chests while findtype 2473|3710|41451|41452|3646|3647|3644|3645|41449|41450|29832|29833|2472|29077|29078|2475|3648|3649|3708|3650|3651|41453|41454|2474|3709|3650|3651|41455|41456|29086|29087 true as chest while findtype "runetome|runebook" chest as tome getlabel recallScrolls desc overhead desc 88 lift recallScrolls 60000 if insysmsg 'not found or out of range' overhead "Out of scrolls!" 34 stop endif drop tome @ignore tome endwhile @ignore chest endwhile @clearsysmsg @cleardragdrop @clearignore