Difference between revisions of "Getguildmasterid"

From Hercules Wiki
Jump to: navigation, search
(Created page with "==Syntax== *'''getguildmasterid'''(<guild id>); ==Description== This function will return the character ID number of the guild master of the guild specified by the ID. 0 if ...")
 
m (Minor formatting update.)
 
Line 9: Line 9:
 
==Examples==
 
==Examples==
 
     prontera,155,180,5 script guildmasterID 89,{
 
     prontera,155,180,5 script guildmasterID 89,{
     if (getcharid(2)!=0) {
+
     if ([[getcharid]](2)!=0) {
     mes getguildmasterid(getcharid(2))+" it's  your guildmaster id";
+
     [[mes]] '''getguildmasterid'''(getcharid(2))+" it's  your guildmaster id";
     close;
+
     [[close]];
 
     }
 
     }
 
     }
 
     }

Latest revision as of 17:06, 6 November 2013

Contents

Syntax

  • getguildmasterid(<guild id>);

Description

This function will return the character ID number of the guild master of the guild specified by the ID. 0 if the character is not a guild master of any guild.

Examples

   prontera,155,180,5	script	guildmasterID	89,{
   	if (getcharid(2)!=0) {
   		mes getguildmasterid(getcharid(2))+" it's  your guildmaster id";
   		close;
   	}
   }

See Also