Fandom

WoWWiki

API OfferPetition

105,021pages on
this wiki
Add New Page
Talk0 Share
WoW API < OfferPetition


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

OfferPetition()


Arguments Edit

None

Returns Edit

nil

Macro Edit

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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.