WoW API: OfferPetition

Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API OfferPetition to API OfferPetition without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < OfferPetition


Offer the target to sign your petition (only if the petition frame is visible)

OfferPetition()


ArgumentsEdit

None

ReturnsEdit

nil

MacroEdit

You can efficiently ask for peition signatures with a macro like this one:

#showtooltip
/use item:5863
/run local s,t={},UnitName("target")for i=1,GetNumPetitionNames()do s[GetPetitionNameInfo(i)]=1 end if GetPetitionInfo()and t and not s[t]then OfferPetition()end