Code: Select all
//[UOSteam] Alamiester's Runic Toolhouse Filler v0.1
//16APR2018
@removelist 'runictoolhouse'
@clearlist 'runictoolhouse'
@clearjournal
if not listexists 'runictoolhouse'
createlist 'runictoolhouse'
endif
@pushlist 'runictoolhouse' '0xf9d' //sewing kit
@pushlist 'runictoolhouse' '0x1034' //carpentry saw
@pushlist 'runictoolhouse' '0x1022' //arrow fletching
@pushlist 'runictoolhouse' '0x1eb8' //tinker tool kit
@pushlist 'runictoolhouse' '0x13e3' //blacksmith hammer
for 0 to runictoolhouse
while @findtype 'runictoolhouse[]'
@setalias 'runictools' 'found'
if not @injournal 'cannot hold' 'system'
pause 300
@usetype '0x22c4' '88' 'backpack' '2'
waitforgump 810195827 500
@replygump 0x304a9b73 999
waitforgump 810195827 500
waitfortarget 500
@target! 'found'
else
sysmsg 'That type of tool is full!' 24
stop
endif
endwhile
pause 300
@replygump 0x304a9b73 0
endfor
@canceltarget
@removelist 'runictoolhouse'
@clearlist 'runictoolhouse'
@unsetalias 'runictools'
@unsetalias 'found'
@clearjournal
sysmsg 'Done with Runic Tool House.'