WoW:API BuyGuildCharter: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API BuyGuildCharter to API BuyGuildCharter without leaving a redirect)
 
(5 intermediate revisions by 4 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>
<hr />
<dl><dt><em>Arguments</em></dt></dl>
<dl><dd>guildName: Name of the guild you wish to purchase a charter for.</dd></dl>
<hr />
<dl><dt><em>Returns</em></dt></dl>
<dl><dd>Nil on invalid name, 1 otherwise.</dd></dl>
<hr />
<dl><dt><em>Example</em></dt></dl>
<pre>local result = BuyGuildCharter("Example Guild");</pre>
<hr />


[[Category:API Functions|BuyGuildCharter]]
==Arguments==
[[Category:API Guild Functions|BuyGuildCharter]]
;guildName : String - Name of the guild you wish to purchase a guild charter for.
 
==Example==
The following purchases a guild charter for "MC Raiders":
BuyGuildCharter("MC Raiders");
 
==Notes==
There are two preconditions to using BuyGuildCharter:
# Must be talking to a ''Guild Master'' NPC.
# 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]