Swapping Lanterns by Jaseowns
# Swapping Lanterns by Jaseowns
# UO Outlands
# Legenis request
@clearignore
if not listexists jase_lanterns_options
createlist jase_lanterns_options
while findtype 31163|31164|31143|31144 self as item
pushlist jase_lanterns_options item
@ignore item
endwhile
@clearignore
endif
if not listexists jase_lanterns_worn
createlist jase_lanterns_worn
endif
if list jase_lanterns_worn = list jase_lanterns_options
//overhead "clearing the list"
clearlist jase_lanterns_worn
endif
while findtype 31163|31164|31143|31144 backpack as jaseBackpackItems
getlabel jaseBackpackItems jaseTimer
//overhead "we are stuck here {{jaseTimer}}" 34
@ignore jaseBackpackItems
endwhile
//overhead "we are gonna replay"
// 31163 -- restyle off
// 31164 -- restyle on
// 31143 -- regular off
// 31144 -- regular on
if findtype 31163|31164|31143|31144 self as jaseWornItem
//overhead "we are holding a lantern"
pushlist jase_lanterns_worn jaseWornItem
while not find jaseWornItem backpack
hotkey "Grab item"
wft 500
target jaseWornItem
wait 200
endwhile
endif
@clearignore
while findtype 31163|31164|31143|31144 backpack as newLantern
//overhead "we are in this loop"
if inlist jase_lanterns_worn newLantern
//overhead "This is in the list"
@ignore newLantern
else
dclick newLantern
break
endif
endwhile
wait 650
loop