Please is possible create a action

Server Log
if Loot of a demon:

/\ if loot is only gold set looting no and if looted any others itens in demons set looting yes?

Please help and thx all