WoW:API BuyGuildCharter: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API BuyGuildCharter to API BuyGuildCharter without leaving a redirect)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<p>Purchases a Guild Charter from the Guild Master.</p>
{{wowapi}} __NOTOC__
<hr />
Purchase a Guild Charter.
<dl><dt><em>Preconditions</em></dt></dl>
BuyGuildCharter("guildName")
<dl><dd>Must be talking to a ''Guild Master'' NPC.</dd></dl>
 
<dl><dd>Must be on the ''Purchase a Guild Charter'' screen.</dd></dl>
==Arguments==
<hr />
;guildName : String - Name of the guild you wish to purchase a guild charter for.
<dl><dt><em>Arguments</em></dt></dl>
 
<dl><dd>guildName: Name of the guild you wish to purchase a charter for.</dd></dl>
==Example==
<hr />
The following purchases a guild charter for "MC Raiders":
<dl><dt><em>Returns</em></dt></dl>
BuyGuildCharter("MC Raiders");
<dl><dd>Nil on invalid name, 1 otherwise.</dd></dl>
 
<hr />
==Notes==
<dl><dt><em>Example</em></dt></dl>
There are two preconditions to using BuyGuildCharter:
<pre>local result = BuyGuildCharter("Example Guild");</pre>
# Must be talking to a ''Guild Master'' NPC.
<hr />
# Must be on the ''Purchase a Guild Charter'' screen.
 
==See also==
* {{api|OfferPetition}}
* {{api|TurnInGuildCharter}}

Latest revision as of 04:45, 15 August 2023

WoW API < BuyGuildCharter

Purchase a Guild Charter.

BuyGuildCharter("guildName")

Arguments[edit]

guildName
String - Name of the guild you wish to purchase a guild charter for.

Example[edit]

The following purchases a guild charter for "MC Raiders":

BuyGuildCharter("MC Raiders");

Notes[edit]

There are two preconditions to using BuyGuildCharter:

  1. Must be talking to a Guild Master NPC.
  2. Must be on the Purchase a Guild Charter screen.

See also[edit]