Skip to content
Outlands Hub

Razor script

Lore Page Organizer

by FewUnderstandThis · 174 lines
Download

by @FewUnderstandThis Requires containers for lore books, lore page source, lore page overflow

Organizing
Lore Page Organizer.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/1fe4383f-b148-4d74-9e3e-889888c76deb for latest2# Automation by Jaseowns3## Script: Lore Page Organizer4## Created by: FewUnderstandThis#70895#############################################6 7# Lore Page Organizer by @FewUnderstandThis8# Requires containers for lore books, lore page source, lore page overflow9 10clearsysmsg11clearignore12 13# Create lists14overhead 'Compiling lists...'15## Dungeons16removelist 'dungeons'17createlist 'dungeons'18pushlist 'dungeons' 'aegis keep'19pushlist 'dungeons' 'cavernam'20pushlist 'dungeons' 'darkmire temple'21pushlist 'dungeons' 'inferno'22pushlist 'dungeons' 'the mausoleum'23pushlist 'dungeons' 'mount petram'24pushlist 'dungeons' 'nusero'25pushlist 'dungeons' 'ossuary'26pushlist 'dungeons' 'pulma'27pushlist 'dungeons' 'shadowspire cathedral'28## Towns29removelist 'towns'30createlist 'towns'31pushlist 'towns' 'anchor'32pushlist 'towns' 'andaria'33pushlist 'towns' 'cambria'34pushlist 'towns' 'corpse creek'35pushlist 'towns' 'horseshoe bay'36pushlist 'towns' 'outpost'37pushlist 'towns' 'prevalia'38pushlist 'towns' 'shelter island'39pushlist 'towns' 'terran'40## Volumes, must check 10 before 141removelist 'volumes'42createlist 'volumes'43pushlist 'volumes' 'vol 10'44pushlist 'volumes' 'vol 1'45pushlist 'volumes' 'vol 2'46pushlist 'volumes' 'vol 3'47pushlist 'volumes' 'vol 4'48pushlist 'volumes' 'vol 5'49pushlist 'volumes' 'vol 6'50pushlist 'volumes' 'vol 7'51pushlist 'volumes' 'vol 8'52pushlist 'volumes' 'vol 9'53 54# Set containers55overhead 'Set book container:' 115056setvar books57wait 25058overhead 'Set page source container:' 115059setvar source60wait 25061overhead 'Set page overflow container:' 115062setvar overflow63wait 25064 65# Organizer66overhead 'Organizing...' 115067while findtype 'parchment' 'source' as page68    getlabel page pageLabel69    overhead '---' 115070    overhead pageLabel71    if 'creatures of' in pageLabel72        while find page 'source' and findtype 29107 'books' as book73            getlabel book bookLabel74            foreach d in 'dungeons'75                if d in pageLabel and d in bookLabel76                    overhead 'Match!' 115077                    lift page78                    wait 50079                    drop book80                    wait 50081                    if insysmsg 'already contains that page'82                        overhead 'Already in book...' 115083                    elseif insysmsg 'add the lore page'84                        overhead 'Success!' 115085                    else86                        overhead 'CHECK SCRIPT!' 3887                    endif88                    clearsysmsg89                endif90            endfor91            ignore book92        endwhile93    elseif 'tales of' in pageLabel94        while find page 'source' and findtype 29106 'books' 2236 as book95            getlabel book bookLabel96            foreach d in 'dungeons'97                if d in pageLabel and d in bookLabel98                    overhead 'Match!' 115099                    lift page100                    wait 500101                    drop book102                    wait 500103                    if insysmsg 'already contains that page'104                        overhead 'Already in book...' 1150105                    elseif insysmsg 'add the lore page'106                        overhead 'Success!' 1150107                    else108                        overhead 'CHECK SCRIPT!' 38109                    endif110                    clearsysmsg111                endif112            endfor113            ignore book114        endwhile115    elseif 'history of' in pageLabel116        while find page 'source' and findtype 29108 'books' as book117            getlabel book bookLabel118            foreach t in 'towns'119                if t in pageLabel and t in bookLabel120                    overhead 'Match!' 1150121                    lift page122                    wait 500123                    drop book124                    wait 500125                    if insysmsg 'already contains that page'126                        overhead 'Already in book...' 1150127                    elseif insysmsg 'add the lore page'128                        overhead 'Success!' 1150129                    else130                        overhead 'CHECK SCRIPT!' 38131                    endif132                    clearsysmsg133                endif134            endfor135            ignore book136        endwhile137    elseif 'outlands mythology' in pageLabel138        while find page 'source' and findtype 29106 'books' 2261 as book139            getlabel book bookLabel140            foreach v in 'volumes'141                if v in pageLabel and v in bookLabel142                    overhead 'Match!' 1150143                    lift page144                    wait 500145                    drop book146                    wait 500147                    if insysmsg 'already contains that page'148                        overhead 'Already in book...' 1150149                    elseif insysmsg 'add the lore page'150                        overhead 'Success!' 1150151                    else152                        overhead 'CHECK SCRIPT!' 38153                    endif154                    clearsysmsg155                endif156            endfor157            ignore book158        endwhile159    endif160    # Move to overflow if no room in books161    if find page 'source'162        overhead 'To overflow...' 1150163        lift page164        wait 500165        drop 'overflow' -1 -1 -1166        wait 500167    endif168    clearignore169endwhile170 171overhead '---' 1150172overhead 'Organizer complete!' 1150173overhead 'Organizer complete!' 1150174overhead 'Organizer complete!' 1150