loot is easy, seems that you're talking about prey system haha, well, the loot can be handled by c++ or lua
in lua will be something like:
local BONUS_RATE = 2 -- 1 normal loot, 2 double loot etc
function onKill(player, target, lastHit)
if target:isMonster() then...