Skip to content
Outlands Hub

Razor script

Tinkering Crafting Queue and Sell Jewelry

by Jaseowns · 164 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.

by Jaseowns UO Outlands Updated 9/28/2024 to re-handle item count change Updated 7/10/2023 to handle Camping (let me know if it breaks) Requirements: Magery and a desire to use the crafting queue…

CraftingMagicMageryTinkeringCamping
Tinkering Crafting Queue and Sell Jewelry.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/0b24669a-cdbb-4fb5-bdb2-a36cfa772e3b for latest2# Automation by Jaseowns3## Script: Tinkering Crafting Queue and Sell Jewelry4## Created by: Jaseowns#66945#############################################6 7# Tinkering Crafting Queue and Sell Jewelry by Jaseowns8# UO Outlands9# Updated 9/28/2024 to re-handle item count change10# Updated 7/10/2023 to handle Camping (let me know if it breaks)11# Requirements:12#    Magery and a desire to use the crafting queue13#    Two runes or rune books 14#       - one default location to your house (must be in backpack)15#       - other to tinker vendor (must be accessible while at home)16#    Sell Agent Enabled with Beads/Necklace17#    A bunch of recall Regs (i am not checking to restock)18# Description:19#    Setup the crafting queue https://uooutlands.com/wiki/Tinkering#Training20#    As you finish making beads, make sure those are on your SELL agent.21#    Make sure the SELL agent is enabled, you should only need to target one bead22#    Make sure to select one necklace when you get that far as well23#   24#    This script assumes you are recalling to a spot where you can run the25#    Crafting Queue without needing to move your character (Courtyard anyone?)26#    If you need to move your character, you can manually do that or add 27#    walk movements to the area it says "I am lost"28#29#    The script checks for your house X/Y position that you set on line 30/3130#    It also needs to know your Vendor rune X/Y position on line 33/3431#32#    Once you recall to your vendor rune, it will ask for the vendor to sell too33#    After all these steps are setup, the script will continue to loop between34#    Running the crafting queue and then selling when 120 items is met35#    36#    I try to handle being out of regs or not knowing where you are.. but goodluck!37 38@setvar! myHomeX 182539@setvar! myHomeY 99740 41@setvar! tinkerVendorX 155642@setvar! tinkerVendorY 154543 44@setvar! globalTimeout 65045 46if not varexist myHomeRuneOrBook or not find myHomeRuneOrBook self47    overhead "Select your home rune or runebook (default location)"48    @setvar! myHomeRuneOrBook49    replay50endif51 52if position myHomeX myHomeY53 54    if not varexist tinkerVendorRuneOrBook or not find tinkerVendorRuneOrBook backpack and not find tinkerVendorRuneOrBook ground -1 -1 2 55        overhead "Select your tinker vendor rune or runebook (default location)"56        @setvar! tinkerVendorRuneOrBook57        replay58    endif59    60    if findtype "gold coin" backpack as gold61        if findtype "bank deposit safe" ground -1 -1 2 as safe62            lift gold 6000063            drop safe -1 -1 -164            wait globalTimeout65        elseif not varexist dropOffGoldContainer or not find dropOffGoldContainer ground -1 -1 2 66            @setvar! dropOffGoldContainer67            replay68        elseif find dropOffGoldContainer ground -1 -1 2 69            lift gold 6000070            drop dropOffGoldContainer -1 -1 -171            wait globalTimeout72        else73            overhead "You have gold and I do not know where to put it!" 3474            wait 500075            replay76        endif77 78    endif79 80    @setvar! needToSell 081 82    while not gumpexists 45355406283        say '[cq'84        wait globalTimeout85    endwhile86    87    if ingump "Begin Crafting" 45355406288        overhead "Starting Queue..." 8889        gumpresponse 7 45355406290        wait globalTimeout91    endif92    93    while ingump "Stop Crafting" 45355406294        sysmsg "Working Crafting Queue..." 8895        getlabel backpack itemCount96        if "(120/" in itemCount or "(121/" in itemCount or "(122/" in itemCount or "(123/" in itemCount or "(124/" in itemCount or "(125/" in itemCount97            overhead "Too many items, lets sell" 8898            gumpresponse 7 45355406299            @setvar! needToSell 1100            break101        endif102        wait globalTimeout103    endwhile104 105    106    if needToSell = 1107        overhead "Recalling to Tinker..."108        if targetexists 109            hotkey 'Cancel Current Target'110        endif111        while not targetexists 112            cast "Recall"113            wait 500114        endwhile115        target tinkerVendorRuneOrBook116        wait 2000117        if position myHomeX myHomeY118            overhead "Might be out of regs.. you never left home" 34119            wait 5000120            replay121        endif122    else123        overhead "Might be all done..." 88124        overhead "crafting queue stopped but bag not at max limit" 34125        wait 5000126        replay127    endif128    129 130elseif position tinkerVendorX tinkerVendorY131    132    if not varexist tinkerVendorNPC or not find tinkerVendorNPC ground -1 -1 12 133        overhead "Select the tinker vendor to sell to"134        @setvar! tinkerVendorNPC135        replay136    endif137 138    overhead "Attempting to sell..." 88139    menu tinkerVendorNPC 2140    wait globalTimeout141    menu tinkerVendorNPC 2142    wait globalTimeout143    menu tinkerVendorNPC 2144    wait globalTimeout145    146    overhead "Returning home..." 88147    if targetexists 148        hotkey 'Cancel Current Target'149    endif150    while not targetexists 151        cast "Recall"152        wait 500153    endwhile154    target myHomeRuneOrBook155else156    overhead "Help I am lost.. make sure you set the X,Y of your house and vendor" 34157    sysmsg "Read the description and follow the setup" 34158    // If you need to move (maybe you live in a wagon)159    // add a few walk commands here to get into position160    // This would let me walk back into my wagon by just walking west161    // walk 'West'162endif163wait 1000164loop