Skip to content
Outlands Hub

Razor script

Swapping Lanterns

by Jaseowns · 77 lines
Download

by Jaseowns UO Outlands Legenis request

Swapping Lanterns.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/0438033a-a910-492b-abca-f5abf0d226c0 for latest2# Automation by Jaseowns3## Script: Swapping Lanterns 4## Created by: Jaseowns#66945#############################################6 7# Swapping Lanterns by Jaseowns8# UO Outlands9# Legenis request10 11@clearignore 12 13if not listexists jase_lanterns_options14    createlist jase_lanterns_options15    while findtype 31163|31164|31143|31144 self as item16        pushlist jase_lanterns_options item17        @ignore item18    endwhile 19    @clearignore 20endif21 22if not listexists jase_lanterns_worn23    createlist jase_lanterns_worn24endif25 26if list jase_lanterns_worn = list jase_lanterns_options27    //overhead "clearing the list"28    clearlist jase_lanterns_worn29endif30 31while findtype 31163|31164|31143|31144 backpack as jaseBackpackItems32    getlabel jaseBackpackItems jaseTimer33    //overhead "we are stuck here {{jaseTimer}}" 3434    @ignore jaseBackpackItems35endwhile 36 37//overhead "we are gonna replay"38 39 40// 31163 -- restyle off41// 31164 -- restyle on42// 31143 -- regular off43// 31144 -- regular on44 45 46 47if findtype 31163|31164|31143|31144 self as jaseWornItem48    //overhead "we are holding a lantern"49    pushlist jase_lanterns_worn jaseWornItem50 51    while not find jaseWornItem backpack52        hotkey "Grab item"53        wft 50054        target jaseWornItem55        wait 20056    endwhile57endif58 59@clearignore60 61while findtype 31163|31164|31143|31144 backpack as newLantern62    //overhead "we are in this loop"63    if inlist jase_lanterns_worn newLantern64        //overhead "This is in the list"65        @ignore newLantern66    else67        dclick newLantern    68        break69    endif70endwhile 71 72wait 65073loop74 75 76 77