Skip to content
Outlands Hub

Razor script

Bard Organization by saving current Instrument

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

Set an Instrument by Jaseowns UO Outlands

Bard
Bard Organization by saving current Instrument.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/581bda52-41cd-4feb-83ff-2ade227139b4 for latest2# Automation by Jaseowns3## Script: Bard Organization by saving current Instrument 4## Created by: Jaseowns#66945#############################################6 7# Set an Instrument by Jaseowns8# UO Outlands9if not varexist inny10 11    @setvar! innySelectionRequired 012 13    removelist innnies14    createlist innnies15    16    if counttype "bamboo flute" backpack as innyCount17        pushlist innnies "bamboo flute"18        if innyCount > 119            @setvar! innySelectionRequired 120        endif21    endif    22    23    if counttype "tambourine" backpack as innyCount24        pushlist innnies "tambourine"25        if innyCount > 126            @setvar! innySelectionRequired 127        endif28    endif  29  30    if counttype "drum" backpack as innyCount31        pushlist innnies "drum"32        if innyCount > 133            @setvar! innySelectionRequired 134        endif35    endif    36    37    if counttype "lute" backpack as innyCount38        pushlist innnies "lute"39        if innyCount > 140            @setvar! innySelectionRequired 141        endif42    endif    43    44    if counttype "flute" backpack as innyCount45        pushlist innnies "flute"46        if innyCount > 147            @setvar! innySelectionRequired 148        endif49    endif  50  51    if counttype "lap harp" backpack as innyCount52        pushlist innnies "lap harp"53        if innyCount > 154            @setvar! innySelectionRequired 155        endif56    endif    57    58    if list innnies <= 059        overhead "No instrunements found!" 3460        stop61    endif62    63    if innySelectionRequired = 164        overhead "Please select your instrunment"65        setvar inny66    elseif list innnies = 167        foreach goodies in innnies68            if findtype goodies backpack as setInny69                setvar inny setInny70            endif71        endfor72    elseif list innnies > 173        overhead "You got a bunch bro" 3474        overhead "Please select your instrunment"75        setvar inny76    endif77    78    overhead "innySelectionRequired: {{innySelectionRequired}}" 8879    foreach goodies in innnies80        overhead goodies81    endfor82endif83 84if find inny backpack85    getlabel inny desc86    overhead desc87    88    lift inny89    droprelloc 0 090    wait 40091    92    overhead "Do the inventory stuff"93    94    if findtype "ornate elven chest" ground -1 -1 2 as recycler95        dclick recycler96        waitforgump 4045111101 100097        if gumpexists 404511110198            gumpresponse 3 404511110199            wft 500100            target self101        endif102    endif103    104    105    wait 800106    lift inny107    drop backpack108    109else110    unsetvar inny111    replay112endif