ok, was looking at this more, and I recommend writing your gem sub without the #findkind return thing, though that
IS a very interesting and inventive way to write that. This is not technically any better, but will reduce the *cringe* factor for inspectors of your script.
sub gems
finditem %loot C_ , %oreContainer
for #findindex 1 #findcnt
{
exevent drag #findid #findstack
wait 20
exevent DropC #backpackid
wait 27
}
return
all in all, not a bad job. That first fix will probably work fine without this, but this is much better scripting practice.

[/quote]
Quick question to understand, the "for #findindex 1 #findcnt" repeats 1 thru #findcnt correct? So if #findcnt was 3, it would loop 3 times, then return?