First of all, I'd like to thank TM for this script, I've been using it extensively the last few days, and the possibilities are endless...
When I started testing this with my crafter, sometimes I found that it the script continued right past the until #result = #false line, even if lootinprogress should be #true...
I have no idea as to why this would happen, but I fixed this putting a wait in there... So the code I use looks something like this:
gosub TM_EvaluateContainer %recyclebag %armorbag ;
set %temp_LPC #LPC
set #LPC 2
wait 20
repeat
gosub TM_LootInProgress
until #RESULT = #FALSE
set #LPC %temp_LPC
Hope this is useful
neo
EDIT: This was mainly ripped from the heartwood quester...