I just finished this, so its not fully tested, but everything seems to be working so far. When you open the corpse it grabs what's in your autoloot list. Grabbed the code from here https://otland.net/threads/autoloot.91385/ and converted stuff to tables Example of command usage !autoloot...
otland.net