Difference between revisions of "GetGuildName"

From Hercules Wiki
Redirect page
Jump to: navigation, search
(Created page with "==Syntax== * '''getguildname'''(<guild id>) ==Description== This function returns a guild's name given an ID number. If there is no such guild, "null" will be returned;<br /...")
 
(Moved to getguildname)
 
Line 1: Line 1:
==Syntax==
+
#REDIRECT [[getguildname]]
* '''getguildname'''(<guild id>)
+
 
+
 
+
==Description==
+
This function returns a guild's name given an ID number. If there is no such guild, "null" will be returned;<br />
+
 
+
This is used all over the WoE controlling scripts. You could also use it for a guild-based event.
+
 
+
 
+
==Examples==
+
// Would print what ever guild 10007 is, in my case this would return "AlcoROhics"
+
[[mes]] "The guild "+'''GetGuildName'''(10007)+" are all nice people.";
+
<br />
+
 
+
// This will do the same as above:
+
[[set]] @var,10007;
+
[[mes]] "We have some friends in "+'''GetGuildName'''(@var)+", you know.";
+
 
+
 
+
{{git|npc/guild/agit_main.txt}}<br />
+
[[announce]] "The [" + [[GetCastleName]]([[strnpcinfo]](2)) + "] castle has been conquered by the [" + '''GetGuildName'''(.@GID) + "] guild.",bc_all|bc_woe;
+
 
+
 
+
[[Category:Script_Command]]
+

Latest revision as of 23:27, 20 January 2014