Poor Man's Butler

drinn

Grandmaster
Poor Man's Butler

Had this idea to make a "Poor Man's Butler", where it gives you automatically x amount of reagents into your backpack.

Eppy gave me a hint that there is one already made by Experience, so credit goes to him on http://uosteam.28394.n7.nabble.com/Butler-Script-Restocking-Assistant-td362.html

Just made it bit more simple only for reagents. Its yet using the new in-game command [organizeme

Code:
// Clear journal & use once agent
clearjournal
clearuseonce
// Set aliases
// Set reagent list
// List of reagents
if not listexists 'regs'
createlist 'regs'
pushlist 'regs' 0xf7a // Black Pearl
pushlist 'regs' 0xf7b // Blood Moss
pushlist 'regs' 0xf86 // Mandrake Root
pushlist 'regs' 0xf84 // Garlic
pushlist 'regs' 0xf85 // Ginseng
pushlist 'regs' 0xf88 // Nightshade
pushlist 'regs' 0xf8d // Spider's Silk
pushlist 'regs' 0xf8c // Sulphurous Ash
endif
// Targets the reg container
while not @findobject 'container_regs'
headmsg 'Reagents container?'
promptalias 'container_regs'
endwhile
// Get 100 each reagents
@useobject 'container_regs'
pause 1000
for 0 to 'regs'
if @findtype 'regs[]' 'any' 'container_regs' 100 2
@movetype 'regs[]' 'container_regs' 'backpack' 0 0 0 'any' 100 2
pause 800
else
sysmsg 'Could not find enough reagents!'
endif
endfor
// Organize reagents
pause 1500
msg '[organizeme'


How to use

1) Target the container including reagents. It will REMEMBER it after.

2) Change x amount of reagents at each line, where "100" is being written at.

if @findtype 'regs[]' 'any' 'container_regs' 100 2
@movetype 'regs[]' 'container_regs' 'backpack' 0 0 0 'any' 100 2
 
Last edited by a moderator:

Weland

Grandmaster
From the looks of it if want to keep a set number of regs in your bag lets say 100. With this macro it would only move the amount needed to hit that number vs a restock hotkey you would need to setup an organizer to pull all the regs back into the box and then run another organizer to pull the desired amount out which typically would require about 3000 to 4000 pause to both organizers.

So I would say the difference between Drinni's macro would be speed.
 

Gosh

Neophyte
From the looks of it if want to keep a set number of regs in your bag lets say 100. With this macro it would only move the amount needed to hit that number vs a restock hotkey you would need to setup an organizer to pull all the regs back into the box and then run another organizer to pull the desired amount out which typically would require about 3000 to 4000 pause to both organizers.

So I would say the difference between Drinni's macro would be speed.
there is a "Complete" checkbox option on Organizer tab would behave like that..
 

Weland

Grandmaster
there is a "Complete" checkbox option on Organizer tab would behave like that..
Ah I've been meaning to play around with that to see what it did. I learned to always check stacked but wasn't sure exactly what that one did. Good to know so now I can get rid of one of my restock organizers.
 
Top