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!