View Single Post
05-05-20, 05:49 AM   #3
zZeroFJ
A Defias Bandit
Join Date: May 2020
Posts: 2
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:
  1. function(trigger)
  2.    
  3.     if QuestFrameRewardPanel and QuestFrameRewardPanel:IsShown() then        
  4.        
  5.         local index = 1;
  6.         local highestPrice, newPrice = 0;
  7.        
  8.         for i = 1, GetNumQuestChoices() do
  9.             newPrice = select(11, GetItemInfo(GetQuestItemLink('choice', i)))
  10.             if newPrice > highestPrice then
  11.                 index = i;
  12.                 highestPrice = newPrice;
  13.             end
  14.         end
  15.        
  16.         if index == 1 then    
  17.             return trigger;
  18.         end
  19.     end
  20. end
  Reply With Quote