Advertisement
Lanona

Untitled

Jun 26th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. PLATER QUEST COLOR FIX
  2. Replace lines 7977 through 7996
  3. Change code from
  4. for i = 1, 8 do
  5. ScanQuestTextCache [i] = _G ["PlaterScanQuestTooltipTextLeft" .. i]
  6. end
  7.  
  8. function Plater.IsQuestObjective (plateFrame)
  9. if (not plateFrame [MEMBER_GUID]) then --platerFrame.actorType == "friendlynpc"
  10. return
  11. end
  12.  
  13. -- reset quest amount
  14. plateFrame.QuestAmountCurrent = nil
  15. plateFrame.QuestAmountTotal = nil
  16. plateFrame.unitFrame.QuestAmountCurrent = nil
  17. plateFrame.unitFrame.QuestAmountTotal = nil
  18.  
  19. GameTooltipScanQuest:SetOwner (WorldFrame, "ANCHOR_NONE")
  20. GameTooltipScanQuest:SetHyperlink ("unit:" .. plateFrame [MEMBER_GUID])
  21.  
  22. local isQuestUnit = false
  23. for i = 1, 8 do
  24. to
  25. function Plater.IsQuestObjective (plateFrame)
  26. if (not plateFrame [MEMBER_GUID]) then --platerFrame.actorType == "friendlynpc"
  27. return
  28. end
  29.  
  30. -- reset quest amount
  31. plateFrame.QuestAmountCurrent = nil
  32. plateFrame.QuestAmountTotal = nil
  33. plateFrame.unitFrame.QuestAmountCurrent = nil
  34. plateFrame.unitFrame.QuestAmountTotal = nil
  35.  
  36. GameTooltipScanQuest:SetOwner (WorldFrame, "ANCHOR_NONE")
  37. GameTooltipScanQuest:SetHyperlink ("unit:" .. plateFrame [MEMBER_GUID])
  38.  
  39. for i = 1, GameTooltipScanQuest:NumLines() do
  40. ScanQuestTextCache [i] = _G ["PlaterScanQuestTooltipTextLeft" .. i]
  41. end
  42.  
  43. local isQuestUnit = false
  44. for i = 1, #ScanQuestTextCache do
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement