<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.herc.ws/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Getguildmaster</id>
		<title>Getguildmaster - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Getguildmaster"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Getguildmaster&amp;action=history"/>
		<updated>2026-05-03T15:24:06Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.11</generator>

	<entry>
		<id>https://wiki.herc.ws/w/index.php?title=Getguildmaster&amp;diff=530&amp;oldid=prev</id>
		<title>Neqste: Created page with &quot;==Syntax== *'''getguildmaster'''(&lt;guild id&gt;);  ==Description== This function return the name of the master of the guild which has the  specified ID number. If there is no such...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Getguildmaster&amp;diff=530&amp;oldid=prev"/>
				<updated>2013-06-28T08:04:42Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Syntax== *&amp;#039;&amp;#039;&amp;#039;getguildmaster&amp;#039;&amp;#039;&amp;#039;(&amp;lt;guild id&amp;gt;);  ==Description== This function return the name of the master of the guild which has the  specified ID number. If there is no such...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Syntax==&lt;br /&gt;
*'''getguildmaster'''(&amp;lt;guild id&amp;gt;);&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This function return the name of the master of the guild which has the &lt;br /&gt;
specified ID number. If there is no such guild, &amp;quot;null&amp;quot; will be returned.&lt;br /&gt;
&lt;br /&gt;
// Would return the guild master of guild 10007, whatever that might be.&lt;br /&gt;
    mes getguildmaster(10007)+&amp;quot; runs &amp;quot;+getguildname(10007);&lt;br /&gt;
&lt;br /&gt;
Can be used to check if the character is the guild master of the specified &lt;br /&gt;
guild.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Maybe you want to make a room only guild masters can enter:&lt;br /&gt;
    &lt;br /&gt;
    	set @GID,getcharid(2);&lt;br /&gt;
    	if(@GID==0) goto L_NoGuild;&lt;br /&gt;
    	if(strcharinfo(0)==getguildmaster(@GID)) goto L_GuildMaster;&lt;br /&gt;
    	mes &amp;quot;Sorry you don't own the guild you are in&amp;quot;;&lt;br /&gt;
    	close;&lt;br /&gt;
    L_NoGuild:&lt;br /&gt;
    	mes &amp;quot;Sorry you are not in a guild&amp;quot;;&lt;br /&gt;
    	close;&lt;br /&gt;
    L_GuildMaster:&lt;br /&gt;
    	mes &amp;quot;Welcome guild master of &amp;quot;+GetGuildName(@GID);&lt;br /&gt;
    	close;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[getguildmasterid]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Neqste</name></author>	</entry>

	</feed>