Skip to content
Outlands Hub

Razor script

Krasnog's Restock Resupply Script

by krasnog · 493 lines
Download

Krasnogs Restock and Resupply Script for UO Outlands ## release v1.3 on 5/29/24 ## This script is what I run before heading out of my home. Great # for inbetween your farming runs. It drops off gold onto your # safe, adds magic items to…

Organizing
Krasnogs Restock Resupply Script.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/a247f183-2e4f-40df-b528-668ff2f0e567 for latest2# Automation by Jaseowns3## Script: Krasnog's Restock Resupply Script4## Created by: krasnog#05#############################################6 7################################################################## 8##     Krasnogs Restock and Resupply Script for UO Outlands     ##9##                   release v1.3 on 5/29/24                    ##10################################################################## 11# This script is what I run before heading out of my home. Great #12# for inbetween your farming runs. It drops off gold onto your   #13# safe, adds magic items to recycler & vault, adds items to your #14# stockpile, adds items to your shelf - it then resupplies       #15# everything in an organized pouch. Last, arms yourself and      #16# sets aspect in the case you are recovering from being a        #17# ghost o0o0 o0o0 o0o0o. I hope its useful for you. Enjoy, Kras  #18################################################################## 19 20##################################################################21#                 --- SCRIPT CREDITS ---                         #22# Shout out to Jaseowns and yagermeistertv for their scripts     # 23# I have repurposed or learned from them to make this script.    #24# Dump, Restock and Organize: https://outlands.uorazorscripts.com/script/0ac01dd4-81c4-462b-81d9-b968ca4302bb25# Move Pouches: https://outlands.uorazorscripts.com/script/90c7e8b0-1b40-4df6-9ccb-dc5d83ddcf837726# Lock or Unlock Loot Box: https://outlands.uorazorscripts.com/script/08a2e31f-f8b8-430a-9772-5a934167d5f427##################################################################28 29##################################################################30#                --- SCRIPT VARIABLES ---                        #31# 1. Youll need to change a couple of variables with your own    #32#    IDs so that the script will work for you.                   #33# 2. To get the ID of your items in game, type >info and then    #34#    select the item                                             #35# 3. Replace red variables below using your IDs and preferences  #36##################################################################37// Safe38@setvar! mySafe 0x770EA72039 40// Reagent Satchel41@setvar! mySatchel 'mySatchel'42 43// Recycler44@setvar! myRecycler 0x770D5CE245 46// Stockpile47@setvar! myStockpile 0x76F69D8048 49// Shelf50@setvar! myShelf 0x7804F1D851 52// Magic Vault53@setvar! myVault 0x4149B7D354 55// Repair Bench56@setvar! myBench 0x450A909D57 58// Primary Right-Hand Weapon59@setvar! myBaby 0x423DF0D760 61// If you use a LockBox & Key for security from Thieves62@setvar! myLockBox 'Lootbox'63@setvar! myLockBoxKey 'LootboxKey'64 65// Use a lower number to speed up, higher to slow down66@setvar! globalPause 100067 68// color of message https://outlands.uorazorscripts.com/hues69@setvar! myColor 55  70 71// Global Timeout - you shouldnt need to change this72@setvar! globalTimeout 40073 74##################################################################75#                    --- The Script ---                          #76##################################################################77sysmsg 'Runnning Restock Script'78# ------------------------------------------ #79# Drop Off, Restock, Resupply80# ------------------------------------------ #81 82# Move any gold and dobloons to safe83overhead "Depositing gold in safe..." myColor84while findtype 'gold coin' backpack as gold85    lift gold 6000086    drop mySafe -1 -1 087    wait globalTimeout88endwhile89overhead "Depositing doubloons in safe..." myColor90while findtype 2539 backpack 2125 as doubloons91        lift doubloons 6000092        drop safe -1 -1 -193        wait globalTimeout94endwhile95pause globalPause96 97# select recycler and add items from backpack98overhead "Adding magic items to recycler..." myColor99menu myRecycler 1100pause globalPause101 102# select magic vault and add items from backpack103overhead "Adding known magic items to vault..." myColor104menu myVault 0105waitfortarget106target 'self'107pause globalPause108 109# select shelf and restock from self110overhead "Restocking items to shelf..." myColor111menu myShelf 0112waitfortarget113target 'self'114pause globalPause115 116# select stockpile and restock from self117overhead "Restocking items to stockpile..." myColor118menu myStockpile 0119waitfortarget120target 'self'121pause globalPause122 123# select shelf and resupply 124overhead "Resupplying from shelf..." myColor125waitforgump 3232825965126gumpclose 127menu myShelf 1128pause globalPause129 130# Repair armor if its needed 131overhead "Repairing armor..." myColor132dclick myBench133pause globalPause134 135 136# ------------------------------------------ #137# Ogranize Your Reagent Satchel138# ------------------------------------------ #139 140overhead "Organizing reagent satchel..." myColor141 142if findtype "Blood Moss" mySatchel as myitem143    lift myitem 999144    drop mySatchel 45 65145    wait globalTimeout146endif147 148if findtype "Nightshade" mySatchel as myitem149    lift myitem 999150    drop mySatchel 60 75151    wait globalTimeout152endif153 154if findtype "Garlic" mySatchel as myitem155    lift myitem 999156    drop mySatchel 75 65157    wait globalTimeout158endif159 160if findtype "Ginseng" mySatchel as myitem161    lift myitem 999162    drop mySatchel 90 75163    wait globalTimeout164endif165 166if findtype "Sulfurous Ash" mySatchel as myitem167    lift myitem 999168    drop mySatchel 105 65169    wait globalTimeout170endif171 172if findtype "Black Pearl%s%" mySatchel as myitem173    lift myitem 999174    drop mySatchel 120 75175    wait globalTimeout176endif177 178if findtype "Spiders Silk" mySatchel as myitem179    lift myitem 999180    drop mySatchel 135 65181    wait globalTimeout182endif183 184if findtype "Mandrake Root%s%" mySatchel as myitem185    lift myitem 999186    drop mySatchel 150 75187    wait globalTimeout188endif189 190if findtype "Summon Fire Elemen" mySatchel as myitem191    lift myitem 999192    drop mySatchel 40 120193    wait globalTimeout194endif195 196if findtype "Flamestrike Scroll" mySatchel as myitem197    lift myitem 999198    drop mySatchel 80 120199    wait globalTimeout200endif201 202if findtype "Summon Earth Eleme" mySatchel as myitem203    lift myitem 999204    drop mySatchel 120 120205    wait globalTimeout206endif207 208 209# ------------------------------------------ #210# Ogranize Your Supply Pouch211# ------------------------------------------ #212 213overhead "Organizing supply pouch..." myColor214if findtype "pouch" backpack 0 any any as mybag215    setvar SupplyBag mybag216    // put supply pouch at top left of backpack217    lift mybag218    drop backpack 0 0 0219endif220 221#222# Organize the first Row223#224# Healing Pot225if findtype "yellow potion" backpack as myitem226    lift myitem 999227    drop SupplyBag 45 65228    wait globalTimeout229endif230 231# Cure Pot232if findtype "orange potion" backpack as myitem233    lift myitem 999234    drop SupplyBag 55 65235    wait globalTimeout236endif237 238# Refresh Pot239if findtype "red potion" backpack as myitem240    lift myitem 999241    drop SupplyBag 65 65242    wait globalTimeout243endif244 245# Strength Pot246if findtype "white potion" backpack as myitem247    lift myitem 999248    drop SupplyBag 75 65249    wait globalTimeout250endif251 252# Dexterity Pot253if findtype "blue potion" backpack as myitem254    lift myitem 999255    drop SupplyBag 85 65256    wait globalTimeout257endif258 259# Poison Pot260if findtype "green potion" backpack as myitem261    lift myitem 999262    drop SupplyBag 95 65263    wait globalTimeout264endif265 266# Explosion Pot267if findtype "purple potion" backpack as myitem268    lift myitem 999269    drop SupplyBag 105 65270    wait globalTimeout271endif272 273# Magic Resist274if findtype "black potion" backpack as myitem275    lift myitem 999276    drop SupplyBag 115 65277    wait globalTimeout278endif    279 280# Bandages281if findtype "clean bandage%s%" backpack as myitem282   lift myitem 999283   drop SupplyBag 125 65284   wait globalTimeout285endif286 287# Vet Supplies288if findtype "veterinary supplies" backpack as myitem289   lift myitem 999290   drop SupplyBag 135 65291   wait globalTimeout292endif  293 294# Recall Scrolls295if findtype "recall" backpack as myitem296   lift myitem 999297   drop SupplyBag 145 65298   wait globalTimeout299endif  300#301# Organize the second Row (Run Supplies)302#303# Loot Box Key - Put at same cordinate as Rope, so rope hides it.304if find myLockBoxKey backpack as myitem305   lift myitem 999306   drop SupplyBag 50 87307   wait globalTimeout308endif  309 310# Rope - goes on top of or Loot Box key311if findtype "rope" backpack as myitem312   lift myitem 999313   drop SupplyBag 45 85314   wait globalTimeout315endif  316 317# magic mushroom318if findtype "mushroom" backpack as myitem319   lift myitem 999320   drop SupplyBag 75 85321   wait globalTimeout322endif    323 324# smoke bombs325if findtype "bombs" backpack as myitem326   lift myitem 999327   drop SupplyBag 95 85 0328   wait globalTimeout329endif  330 331# food tray332if findtype "tray" backpack as myitem333   lift myitem 999334   drop SupplyBag 115 85 0335   wait globalTimeout336endif 337 338# sewing kit339if findtype "sewing kit" backpack as myitem340   lift myitem 999341   drop SupplyBag 125 85 0342   wait globalTimeout343endif 344 345# id wand346if findtype "wand" backpack as myitem347   lift myitem 999348   drop SupplyBag 135 85 0349   wait globalTimeout350endif 351 352 353#354# Organize the third Row (Ship Items)355#356if findtype "barrel" backpack as myitem357   lift myitem 999358   drop SupplyBag 45 105 0359   wait globalTimeout360endif  361# repair kits362if findtype "ship repair kit" backpack as myitem363   lift myitem 999364   drop SupplyBag 85 100 0365   wait globalTimeout366endif  367# boarding rope368if findtype "rope" backpack as myitem369   lift myitem 999370   drop SupplyBag 45 85371   wait globalTimeout372endif373# cannon balls374if findtype "cannon ball" backpack as myitem375   lift myitem 999376   drop SupplyBag 105 110 0377   wait globalTimeout378endif379 380 381# ------------------------------------------ #382# Ogranize Pouches383# ------------------------------------------ #384 385@clearignore 386# Shuffle Trapped Pouches in Main Backpack387while findtype "pouch" backpack 38 as item388    overhead "Shuffling Trapped Pouches..." myColor389    lift item 60000390    drop backpack -1 -1 -1391    wait 650392   # lift item393   # drop backpack 0 0 0394   # wait globalTimeout395    if insysmsg "you may pick up an item from here"396        // do nothing397    else398        @ignore item399    endif400endwhile401 402# pouches 403if findtype "pouch" backpack as myPouch404   lift myPouch 999405   drop backpack 0 0 0406   wait globalTimeout407   endif    408 409   410# ------------------------------------------ #411# Open Pouches412# ------------------------------------------ #413 414# Open non trapped pouches415dclick backpack416while findtype "pouch" backpack 0 as item417    overhead "Opening Pouches..." myColor 418    dclick item419    wait globalTimeout420    @ignore item421endwhile422pause globalPause423@clearignore 424 425 426# ------------------------------------------ #427# Lock Box 428# ------------------------------------------ #429 430dclick myLockBoxKey431wft 500432target myLockBox433getlabel myLockBox desc434if "stones" in desc435    overhead "Loot Box is Unlocked..." myColor436    // move loot box to bottom row (visual indicator of unlocked)437    lift myLockBox438    drop backpack 165 100 0439    // open440    dclick myLockBox441else442    // move loot box to top row (visual indicator of locked)443    lift myLockBox444    drop backpack 125 45 0445    overhead "Loot Box is Locked..." 34446endif447 448 449 450# ------------------------------------------ #451# Arm452# ------------------------------------------ #453 454# Arm yourself455overhead "Arming yourself..." myColor 456dclick myBaby457pause globalPause458 459 460# ------------------------------------------ #461# Set Aspect462# ------------------------------------------ #463 464# Set Aspect for Wep, Spellbook, Armor465overhead "Setting Aspect..." myColor 466say '[aspect'467# weapon468waitforgump 2424293173469gumpresponse 8470waitforgump 2424293173471gumpresponse 8472# spellbook473waitforgump 2424293173474gumpresponse 13475waitforgump 2424293173476gumpresponse 13477# armor478waitforgump 2424293173479gumpresponse 17480waitforgump 2424293173481gumpresponse 17482# Close aspect menu483waitforgump 2424293173484gumpclose485pause globalPause486 487 488# ------------------------------------------ #489# Closing Message - self affirmation goes a long way490# ------------------------------------------ #-491overhead "You are good to go, Legend!" myColor492 493sysmsg 'Completed Restock Resupply Script'