WoW API: GetPetitionInfo

From AddOn Studio
Revision as of 18:13, 6 June 2007 by WoWWiki>Ravas (Added GetPetitionInfo based on the FrameXML usage.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetPetitionInfo


Gets the information for a petition being viewed.

local petitionType, title, bodyText, maxSigs, originator, isOriginator, minSigs = GetPetitionInfo()


Arguments

None


Returns

petitionType, title, bodyText, maxSignatures, originatorName, isOriginator, minSignatures
petitionType
String - The type of petition (ex. "guild" or "arena")
title
String - The title of the group being created
bodyText
String - The body text of the petition
maxSigs
Number - The maximum number of signatures allowed on the petition
originator
String - The name of the person who started the petition
isOriginator
(Boolean?) - Whether the player is the originator of the petition
minSigs
Number - The minimum number of signatures required for the petition


Details

Petition information is available after the event PETITION_SHOW.