[UOSteam] Treasure chest

If you make a Client-side script you can publish it here for other players to use
Post Reply
ben.wade
Passer by
Posts: 4
Joined: Tue Feb 16, 2016 4:02 pm

[UOSteam] Treasure chest

Post by ben.wade »

i'm really hate picking up small itens but i still want then, so i made this script to pick up all reagents and gems from treasure chests. it will also store reagents in spell casters key and gems to gem pouch

Keep in mind that it may bring up some monsters from chest quickly so its a good ideia to have pets guarding you.

Code: Select all

@unsetalias 'chest'
if not @findobject 'chest'
  headmsg 'Select treasure chest:'
  promptalias 'chest'
endif
if not @findobject 'bag'
  headmsg 'Select bag:'
  promptalias 'bag'
endif
if not @findobject 'gempouch'
  headmsg 'Select Gem Pouch:'
  promptalias 'gempouch'
endif
if not @findobject 'spellcasterkey'
  headmsg 'Select Spell casters key:'
  promptalias 'spellcasterkey'
endif
@removelist 'reagents'
if not listexists 'reagents'
  createlist 'reagents'
  pushlist 'reagents' '0xf8e' // nox
  pushlist 'reagents' '0xf85' // ginseng
  pushlist 'reagents' '0xf78' // batwings
  pushlist 'reagents' '0xf88'// nightshade
  pushlist 'reagents' '0xf8a' // pigiron
  pushlist 'reagents' '0xf8c' // sulf ash
  pushlist 'reagents' '0xf8d' // spiders silk
  pushlist 'reagents' '0xf7d' // daemon blood
  pushlist 'reagents' '0xf7b' // blood moss
  pushlist 'reagents' '0xf8f' // grave dust
  pushlist 'reagents' '0xf7a' // black pearl
  pushlist 'reagents' '0xf84' // garlic
  pushlist 'reagents' '0xf86' // mandrake
endif
@removelist 'gems'
if not listexists 'gems'
  createlist 'gems'
  pushlist 'gems' '0xf25' //amber
  pushlist 'gems' '0x3197' // fireruby
  pushlist 'gems' '0xf21' // starsapphire
  pushlist 'gems' '0x3199' // brilliant amber
  pushlist 'gems' '0x3195' // ecru citrine
  pushlist 'gems' '0xf10' // emerald
  pushlist 'gems' '0xf19' // sapphire
  pushlist 'gems' '0x3193' // turquiose
  pushlist 'gems' '0x3198' // blue diamond
  pushlist 'gems' '0xf26' // diamond
  pushlist 'gems' '0x3194' // perfect emerald
  pushlist 'gems' '0xf16' // amethyst
  pushlist 'gems' '0xf13' // ruby
  pushlist 'gems' '0x3192' // dark sapphire
  pushlist 'gems' '0xf2d' // tourmaline
  pushlist 'gems' '0xf15' // citrine
  pushlist 'gems' '0x1ea7' // arcane
endif
for 0 to 'gems'
  while @findtype 'gems[]' 'any' 'chest'
    @moveitem 'found' 'gempouch'
    pause 600
  endwhile
endfor
for 0 to 'reagents'
  while @findtype 'reagents[]' 'any' 'chest'
    @moveitem 'found' 'bag'
    pause 600
  endwhile
endfor
for 0 to 'reagents'
  if @findtype 'reagents[]' 'any' 'backpack'
    @useobject 'spellcasterkey'
    waitforgump 247257139 15000
    replygump 0xebcd833 60030
    waitforgump 247257139 15000
    waitfortarget 15000
    target! 'found'
    waitforgump 247257139 15000
    waitfortarget 15000
    replygump 0xebcd833 0
  endif
endfor
canceltarget!
User avatar
Alamiester
Legendary Scribe
Posts: 279
Joined: Wed Jan 04, 2017 8:49 pm

Re: [UOSteam] Treasure chest

Post by Alamiester »

i like this, it looks so familiar, i think this could be used in a better way. maybe to sort them into keys, gem pouch, tool bag, and maybe hboh for overflow?....after the uosteam autolooter picks them all up?
Post Reply