Thank you very much. I was able to get it to work now. I'll paste the custom code I'm using to trigger and display the different icons on top of the items, if anyone is interested.
Lua Code:
function(trigger)
if QuestFrameRewardPanel and QuestFrameRewardPanel:IsShown() then
local index = 1;
local highestPrice, newPrice = 0;
for i = 1, GetNumQuestChoices() do
newPrice = select(11, GetItemInfo(GetQuestItemLink('choice', i)))
if newPrice > highestPrice then
index = i;
highestPrice = newPrice;
end
end
if index == 1 then
return trigger;
end
end
end