change:
if target:getName():lower() == getTaskInfos(player).nome then
to:
if isInArray(getTaskInfos(player).nome, target:getName():lower()) then
if 1 name only, use:
{nome = {"troll"}, storage = 30000, amount = 20, exp = 5000, pointsTask = {1, 1}, items = {{id = 2157, count = 1}, {id = 2160...