Gracious TM ! That was QUICK. I had missed the complete_looting_interface22.txt File somehow which is what I was missing. I'd also forgotten that Automagic looting was an option. I've just always checked it instantly heh.
Hmm...
Sub LootChest
set %container %Chest
gosub OpenContainerID %container
wait 5
gosub TM_EvaluateContainer %container #Backpackid
set #LPC 2
repeat
gosub TM_LootInProgress
until #RESULT = #FALSE
set #LPC 1000
Return
;------------------------------------------------------------
; sub TM_EvaluateContainer
; %1 - source container to evaluate
; %2 - destination container ID to place items passing evaluation
; return:
; none
sub TM_EvaluateContainer
namespace push
namespace global TM_loot
set !TM_loot_artifact_success #FALSE
set !TM_loot_success #FALSE
set !TM_eval_source %1
set !TM_eval_destination %2
set !TM_eval_request #TRUE
set !TM_loot_in_progress #TRUE ; needed??? probably, due to time taken to start looter.
namespace pop
return
;------------------------------------------------------------
; sub TM_LootInProgress
; return:
; #TRUE if Looting is in progress, wait until #FALSE
; #FALSE looting is idle.
sub TM_LootInProgress
namespace push
namespace global TM_loot
set #RESULT !TM_loot_in_progress
namespace pop
return #RESULT
OK.. I get it now. The only thing that comes to mind with the example you linked me above is how the ignore of looted corpes would be handled. That part is buried in the mass that is the CLAw, but I can just test & see how it works. Thx! Up until this point I've been cheating just telling my Farming Script to Hard wait 10 seconds after each new body appears which with automagic looting had allowed CLAw enough time to do it's job, but it's time to do it right.