WoW:API GetQuestLogPushable: Difference between revisions

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

Revision as of 15:08, 27 August 2005

GetQuestLogPushable -Documentation by Myrathi-

Returns true if the currently loaded quest in the quest window is able to be shared with other players.

GetQuestLogPushable();

Arguments
none

Returns
Boolean

Example
 -- Determine whether the selected quest is pushable or not
 if ( GetQuestLogPushable() and GetNumPartyMembers() > 0 ) then
   QuestFramePushQuestButton:Enable();
 else
   QuestFramePushQuestButton:Disable();
 end
Result
true | false

Description
Returns true if the currently loaded quest in the quest window is able to be shared with other players ("pushable" simply meaning "sharable").
To initiate pushing of a quest, see QuestLogPushQuest().


Code sample taken from \Interface\FrameXML\QuestLogFrame.lua:42 (#4150)

Template:WoW API