QuestLogPushQuest

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

Shares the current quest in the quest log with other players.

QuestLogPushQuest()

Example

local i = 0;
while (GetQuestLogTitle(i+1) ~= nil) do
 i = i + 1;
 local title, level, tag, header = GetQuestLogTitle(i);
 if (not header) then
  SelectQuestLogEntry(i);
  if (GetQuestLogPushable()) then
   QuestLogPushQuest();
   DEFAULT_CHAT_FRAME:AddMessage(string.format("Attempting to share %s [%d] with your group...", title, level));
   return;
  end
 end
end

Result

Finds and shares the first sharable quest in your quest log.

Details

The system only attempts to push the quest to grouped players and will fail if a recipient does not qualify for the quest (too low level or hasn't completed prior chain-quests), currently is on the quest or has already completed it.