WoW:API QuestLogPushQuest: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 41: Line 41:
----
----
{{Template:WoW API}}
{{Template:WoW API}}
[[Category:API Functions|QuestLogPushQuest]]
[[Category:API Quest Functions|QuestLogPushQuest]]

Revision as of 12:38, 30 August 2005

QuestLogPushQuest -Documentation by Myrathi-

Initiates the sharing of the currently viewed quest in the quest log with other players.

QuestLogPushQuest();

Arguments
none

Returns
<unknown>

Example
 <Button name="QuestFramePushQuestButton" inherits="UIPanelButtonTemplate" text="SHARE_QUEST">
   ...
   <Scripts>
     <OnClick>
       QuestLogPushQuest();
     </OnClick>
     ...
   </Scripts>
 </Button>
Result
<unknown>

Description
Attempt to share (push) the currently loaded quest in the quest window with other players.
The system only attempts to push the quest to grouped players and will fail if a recipient is out of range (typically trading range), does not qualify for the quest (too low level or hasn't completed prior chain-quests) or has already completed it.


Code sample taken from \Interface\FrameXML\QuestLogFrame.xml:433 (#4150)

Template:WoW API