WoW API: OfferPetition

From AddOn Studio
Revision as of 14:56, 6 October 2009 by WoWWiki>Vladinator (Created page with '{{wowapi}} __NOTOC__ Offer the target to sign your petition (only if the petition frame is visible) OfferPetition() == Arguments == :None == Returns == :nil == Macro == Yo…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < OfferPetition


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

OfferPetition()


Arguments

None

Returns

nil

Macro

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