Difference between revisions of "API GetGuildTag"

From Vendetta Lua
Jump to: navigation, search
(split)
 
(No difference)

Latest revision as of 21:59, 25 January 2009

GetGuildTag

Definition: GetGuildTag(int charid) -> string tag
Description:
get guild tag of self or another character.
Arguments:
charid character id or nil to get self's guild tag.
Returns:
tag string containing guild tag or empty string if character not known or not in a guild.
Example:
local guildtag = GetGuildTag() if guildtag ~= "" then

 print('['..guildtag..'] You are a member of the guild '..(GetGuildName() or guildtag)..'\n')

else

 print('Not a member of a guild.\n')

end</source>