Automule trigger D2BS

I am kinda new to botting, and have never used automule. I want to run a key farmer and trigger them to mule when they have 3 of any key. Is this possible? How would the trigger script look if so?

by default, you cannot filter the automuling items, let’s say only keys.

maybe you should check the options for https://github.com/blizzhackers/kolbot/blob/master/d2bs/kolbot/libs/TorchSystem.js

Well I wasn’t wanting to only mule keys, just to trigger the automule when farmer had 3 of any key. But I just set no max quantity for each key so they would keep picking keys up. I didn’t have my smiter set up yet so I just wanted to stockpile keys. Thanks for the link!