Skip to content
Outlands Hub

Razor script

Restock Quick

by AreYouKidden=2 · 184 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.

Scroll Container & Restock Agent if not 1 - change Set Restock HotBag-01 below to match.

Organizing
Restock Quick.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/d8d74c43-a0d1-4fd1-b224-3b8f785a4148 for latest2# Automation by Jaseowns3## Script: Restock Quick4## Created by: AreYouKidden=2#04035#############################################6 7//Scroll Container & Restock Agent8# if not 1 - change9# Set Restock HotBag-01 below to match.10@setvar 'RestockAgent' 1  11@setvar 'ScrollContainer' 0x40680C8A12 13//create list of containers to open for organizers to use14removelist 'Containers'15createlist 'Containers'16pushlist 'Containers' 0x40E56A5517pushlist 'Containers' 0x43C3870D18pushlist 'Containers' 0x4117D4DE19pushlist 'Containers' 0x40A46C8920 21//create list of organizer agents22removelist 'OrgAgents'23createlist 'OrgAgents'24pushlist 'OrgAgents' 625pushlist 'OrgAgents' 726pushlist 'OrgAgents' 827 28//create list of Tome Colors29removelist 'TomeColors'30createlist 'TomeColors'31pushlist 'TomeColors' 261832pushlist 'TomeColors' 296333pushlist 'TomeColors' 299034pushlist 'TomeColors' 149535pushlist 'TomeColors' 149436pushlist 'TomeColors' 208537pushlist 'TomeColors' 279638pushlist 'TomeColors' 265139pushlist 'TomeColors' 272240pushlist 'TomeColors' 279941pushlist 'TomeColors' 209142 43removelist 'StorageTomes'44createlist 'StorageTomes'45 46if skill 'Musicianship' > 2547    if not find 'MyInstrument' 'backpack'48        overhead 'Choose your current instrument' 48        49        setvar 'MyInstrument'50        dclick 'MyInstrument'51    endif52endif53 54overhead 'Finding Shelf, Container, Recycler...' 4855if findtype '44997' ground any any 2 as SShelf56    setvar 'Storage Shelf' SShelf57endif    58if findtype '23035' ground any any 2 as RContainer59    setvar 'Resource Container' RContainer60endif61if findtype '11761' ground any any 2 as IRecycler62    setvar 'Item Recycler' IRecycler63endif64 65if not hidden 'self'66    skill 'Hiding'67    pause 50068endif69 70overhead 'Finding Tomes on ground...' 4871foreach x in 'TomeColors'72    if findtype '29104' ground x any 2 as Book73        overhead 'x'74        pushlist 'StorageTomes' Book75    endif   76endfor77 78overhead 'Finding Tomes in containers...' 4879foreach x in 'Containers'80    if find 'x' 'ground'81        dclick x82        pause 75083        foreach y in 'TomeColors'84        if findtype '29104' x y any 2 as STome85                overhead 'y'86                pushlist 'StorageTomes' STome87            endif   88        endfor 89    endif90endfor91 92overhead 'Using Storage Tomes...' 4893foreach x in 'StorageTomes'94    menu x 095    pause 25096endfor97 98overhead 'Using Shelf, Container, Recyler...' 4899if find 'Storage Shelf' 'ground' 'any' 'any' 2100    menu 'Storage Shelf' 0101    wft 5000102    target 'self'103    pause 500104    gumpclose 'Storage Shelf'105endif106    107if find 'Resource Container' 'ground' 'any' 'any' 2108    menu 'Resource Container' 0109    wft 5000110    target 'self'111    pause 500112    gumpclose 'Resource Container'113endif114if find 'Item Recycler' 'ground' 'any' 'any' 2115    dclick 'Item Recycler'116    pause 500117    gumpresponse 3118    waitfortarget 5000119    target 'self'120    pause 500121    gumpclose 'Item Recycler'    122endif123if find 'Storage Shelf' 'ground' 'any' 'any' 2124    menu 'Storage Shelf' 1125    pause 500126endif127 128overhead 'Using Organizers...' 48129foreach x in 'OrgAgents'130    organizer x131    pause 100132    while queued133    endwhile134endfor135 136overhead 'Finishing UP...' 48137if findlayer 'self' 'outerbody' as 'found' or findtype 30765 'self' as 'found'138    overhead 'Satchel Found' 33  139    setvar 'satchel' 'found'140    hotkey 'Grab Item'141    wft 200142    target 'satchel'143    pause 200144endif145 146if skill 'Inscription' > 50147    hotkey 'Set Restock HotBag-01'148    wft 200149    target 'satchel'150    pause 500151    restock 'RestockAgent' 152    waitfortarget 5000153    target 'ScrollContainer'154    pause 500155endif156 157if not findbuff 'Food Satisfaction'158    overhead 'Eat some Food!!' 32159    overhead 'Eat some Food!!' 32160endif161 162if skill 'Camping' > 0163    if not findbuff 'Campfire Visit'164        dclicktype 'kindling'165    endif166endif167 168if skill 'Musicianship' > 25169    hotkey 'Grab Item'170    wft 200171    target 'MyInstrument'172endif173 174if find 'satchel' 'self'175    pause 1000176    while queued177    endwhile178    pause 500179    lift 'satchel'180    pause 500181    drop 'self' 'FirstValid'182    pause 500183    dclick 'satchel'184endif