I remember a script doing something like this, then today i found it, on a Nvso Global map 8.6... didn't know the tfs used, here is the script
function onKill(cid, target, lastHit)
local items = {{8300,10},{8305,5},{8306,5}} -- Item ID / Chance to loot
local exmonster = {"Rat","Bug"} --...