Skip to content
Outlands Hub

Razor script

Deposit gold, repair, dump loot, restock, and resupply

by icebearfpv · 130 lines
Download
CombatOrganizing
Deposit gold repair dump loot restock and resupply.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/5227b0cf-8db6-433c-8664-f584f34ca333 for latest2# Automation by Jaseowns3## Script: Deposit gold, repair, dump loot, restock, and resupply4## Created by: icebearfpv#05#############################################6 7@setvar! globalTimeout 6508 9@setvar! recycler 0x4346EC2A10@setvar! storageShelf 0x4139C06111@setvar! stockpile 0x4346D41C12@setvar! satchel 0x74C832DC13@setvar! lootBag 0x74C932DE14 15 16#17# Deposit gold or dabloons18#19if findtype "bank deposit safe" ground -1 -1 2 as safe20    while findtype "gold coin" backpack as gold21        lift gold 6000022        drop safe -1 -1 -123        wait 250024    endwhile25    while findtype 2539 backpack 2125 as joubloons26        lift joubloons 6000027        drop safe -1 -1 -128        wait 250029    endwhile30endif31 32wait globalTimeout33 34#35# Repair Bench - Repair all items36#37if findtype "repair bench" ground -1 -1 2 as bench38    clearsysmsg 39    dclick bench40    getlabel backpack jaseowns_PingCheck41    if insysmsg "You do not have any items equipped or in your backpack in need of repairs."42        // continue43    else44        settimer lilJaseTimer 045        while timer lilJaseTimer <= 5000 46            if insysmsg "Repair"47                break48            endif49        endwhile50        overhead "Repair took: {{lilJaseTimer}}"51        removetimer lilJaseTimer52    endif53endif54 55wait globalTimeout56 57#58# Check into Inn Room59#60@setvar rentalGumpID 239383241161 62if gumpexists rentalGumpID63    gumpclose64    wait 10065endif66 67say 'room'68waitforgump rentalGumpID 300069 70if not gumpexists rentalGumpID71    overhead 'Failed to enter room!' 3872    overhead 'Are you even near the inn?' 5373elseif ingump 'Enter Your Room'74    wait 25075 76    while not insysmsg 'You enter the rental room'77        overhead 'Entering room...' 90378        gumpresponse 479        wait 25080        81        if insysmsg 'That vendor is too far away'82            overhead 'Innkeeper is too far away!' 3883            overhead 'Move closer!' 5384            stop85        endif86    endwhile87    88    overhead 'Welcome home.'89else 90    sysmsg 'Character does not have a room or access to one!' 3891    overhead 'No room access!' 3892endif93 94wait globalTimeout95 96clearsysmsg 97clearignore 98 99#100# Magic Item Recycler - Add all unidentified magic items101#102if find recycler ground -1 -1 2 as container103    menu container 1104endif105 106wait globalTimeout107 108#109# Stockpile - Restock110#111if find stockpile ground -1 -1 2 as container112    menu container 0113    wft 500114    target lootBag115endif116 117wait globalTimeout118 119#120# Storage Shelf - Resupply121#122if find storageShelf ground -1 -1 2 as container123    menu container 0 # Dump reagents from satchel back into the storage shelf124    wft 500125    target satchel126    127    wait 1000128    129    menu container 1 # resupply reagents with exact amount from desired loadout130endif