Skip to content
Outlands Hub

Razor script

Vendor Cataloguing Script (updated, fixed for NPCs that interrupt the cataloguing)

by .divined · 145 lines
Download

Compatibility unverified

This community Razor script has not been tested in game by the Hub. Read its setup and client requirements before use.

HousingHiding
Vendor Cataloguing Script updated fixed for NPCs that interrupt the cataloguing.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/bed1b1e9-26a9-40ad-b7f8-1ab05decf85a for latest2# Automation by Jaseowns3## Script: Vendor Cataloguing Script (updated, fixed for NPCs that interrupt the cataloguing)4## Created by: .divined#05#############################################6 7if not listexists "tomerunes"8    createlist "tomerunes"9endif10 11if list 'tomerunes' = 012 13pushlist 'tomerunes' 20014pushlist 'tomerunes' 20115pushlist 'tomerunes' 20216pushlist 'tomerunes' 20317pushlist 'tomerunes' 20418pushlist 'tomerunes' 20519pushlist 'tomerunes' 20620pushlist 'tomerunes' 20721pushlist 'tomerunes' 20822pushlist 'tomerunes' 20923pushlist 'tomerunes' 21024pushlist 'tomerunes' 21125pushlist 'tomerunes' 21226pushlist 'tomerunes' 21327pushlist 'tomerunes' 21428pushlist 'tomerunes' 21529pushlist 'tomerunes' 21630pushlist 'tomerunes' 21731pushlist 'tomerunes' 21832pushlist 'tomerunes' 21933pushlist 'tomerunes' 22034pushlist 'tomerunes' 22135pushlist 'tomerunes' 22236pushlist 'tomerunes' 22337pushlist 'tomerunes' 22438pushlist 'tomerunes' 22539 40endif41 42dclick 0x49D07AEE43    waitforgump 167090027 500044    foreach "recallHomeGumpResponse" in "tomerunes"45 46        if recallHomeGumpResponse = 201 or recallHomeGumpResponse = 203 or recallHomeGumpResponse = 205 or recallHomeGumpResponse = 207 or recallHomeGumpResponse = 209 or recallHomeGumpResponse = 211 or recallHomeGumpResponse = 213 or recallHomeGumpResponse = 215 or recallHomeGumpResponse = 217 or recallHomeGumpResponse = 219 or recallHomeGumpResponse = 221 or recallHomeGumpResponse = 223 or recallHomeGumpResponse = 223 or recallHomeGumpResponse = 22547            @setvar! secondaryGumpResponse 2048        else 49            @setvar! secondaryGumpResponse 1050        endif51 52        gumpresponse recallHomeGumpResponse 16709002753        waitforgump 167090027 500054       gumpresponse secondaryGumpResponse 16709002755      break56    endfor57poplist "tomerunes" "front"58 59clearignore60clearsysmsg61wait 500062say '[coord'63sysmsg "START CATALOGUE" 64clearignore65while not dead66    67    if not hidden 68    useskill 'Hiding'69    endif  70 71    @hotkey 'Next Monster Target'72    wait 25073    @setvar! 'lastserial' lasttarget74    getlabel lastserial vlabel75    if noto 'lastserial' = invulnerable76         if 'dockmaster' in vlabel77                overhead 'dockmaster found'78                elseif 'stablemaster' in vlabel79                overhead 'stablemaster found'80                elseif 'barkeeper' in vlabel81                overhead 'barkeeper found'82                elseif 'battle trainer' in vlabel83                overhead 'battle trainer found'84                elseif 'salvage foreman' in vlabel85                overhead 'salvage foreman' found86                elseif 'fisherman' in vlabel87                overhead 'fisherman found'88                else89        if findtype 3701 'lastserial' as foundBackpack90                sysmsg 'New Vendor'91                dclick 'foundBackpack'92                @ignore 'foundBackpack'93                wait 25094                #Now we dig95                #List items in top layer96                    #Search through list97                        while findtype 'portrait painting|ph furniture|large painting|hieroglyph|cathedral tapestry|wall display|rune|tray|bottle|fulljars|deed|wallshelf|crate|robe|statue|figurine|2597|3530|3568|3657|3713|3718|3721|3736|3737|3738|3762|3827|3834|3836|3842|3843|3856|3859|3861|3862|3865|3873|3877|3878|3885|3897|3908|3911|3920|3985|5042|5049|5078|5117|5127|5187|5356|5359|5362|5363|5445|5901|5903|5981|6264|7107|7109|7127|8012|8029|8031|8032|8033|8034|8035|8037|8038|8039|8041|8042|8455|8786|8787|8788|8826|8901|11552|11761|11881|11882|11883|11884|11885|11886|11887|11888|11889|11890|11891|12215|12686|15178|16898|17087|17686|18283|19227|19232|19234|19235|19236|19239|20495|22187|22326|22336|23034|24434|27611|27612|28236|28879|28883|28885|28888|29025|29030|29036|29040|29048|29103|29348|29447|29773|29774|29863|39860|42519|42692|42694|43167|43206|45085|45285|45315|48407|49113|49711|51094|51100|52610|54006' "foundBackpack" as foundItem98                        #found an item, display it to log99                        @getlabel 'foundItem' foundItemLabel100                        sysmsg foundItemLabel 33101                        @ignore foundItem102                    endwhile103                    wait 250104                105                #Start container part106 107                        while findtype 'ph chest|bone chest|armoire|chest|wooden chest|metal chest|trunk|wooden shelf|51998|3649|3648|29833|3705|2448|5402|2472|2473|2474|2475|2476|2477|2480|2481|2482|3701|3702|3704|3712|23034|18283|3644|11761|41449' foundBackpack as foundContainer108                        @getlabel 'foundContainer' foundContainerLabel109                        #output container label for bulk sells110                        sysmsg foundContainerLabel 33111                        getlabel foundContainer desc112                        if "Price: Not for sale" in desc113                        dclick foundContainer114                        wait 250115                                116                        #container is open, now search it117                        while findtype 'portrait painting|ph furniture|large painting|hieroglyph|cathedral tapestry|wall display|rune|tray|bottle|fulljars|deed|wallshelf|crate|robe|statue|figurine|2597|3530|3568|3657|3713|3718|3721|3736|3737|3738|3762|3827|3834|3836|3842|3843|3856|3859|3861|3862|3865|3873|3877|3878|3885|3897|3908|3911|3920|3985|5042|5049|5078|5117|5127|5187|5356|5359|5362|5363|5445|5901|5903|5981|6264|6464|7107|7109|7127|8012|8029|8031|8032|8033|8034|8035|8037|8038|8039|8041|8042|8455|8786|8787|8788|8826|8901|11552|11761|11881|11882|11883|11884|11885|11886|11887|11888|11889|11890|11891|12215|12686|15178|16898|17087|17686|18283|19227|19232|19234|19235|19236|19239|20495|22187|22326|22336|23034|24434|27611|27612|28236|28879|28883|28885|28888|29025|29030|29036|29040|29048|29103|29348|29447|29773|29774|29863|39860|42519|42692|42694|43167|43206|45085|45285|45315|48407|49113|49711|51094|51100|52610|54006' "foundContainer" as foundItem118                        @getlabel 'foundItem' foundItemLabel119                        sysmsg foundItemLabel 33120                        @ignore foundItem121                            endwhile122                        endif123                        @ignore foundContainer124                    endwhile125            else 126                overhead 'DONE CATALOGUE'127                break128            endif129        endif130    endif131endwhile132 133if insysmsg 'saving'134  if not insysmsg 'save complete'135    settimer isSAVING  0136    settimer isTICKING 0137    while not insysmsg 'save complete' and timer isSAVING < 8000138      if timer isTICKING > 500139        overhead '[ ... ]' 56140        settimer isTICKING 0141      endif142    endwhile143  endif144endif145loop