GetGuildName

From Hercules Wiki
Revision as of 09:34, 9 June 2013 by Via (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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;

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.";


// This will do the same as above:
set @var,10007;
mes "We have some friends in "+GetGuildName(@var)+", you know.";


npc/guild/agit_main.txt

announce "The [" + GetCastleName(strnpcinfo(2)) + "] castle has been conquered by the [" + GetGuildName(.@GID) + "] guild.",bc_all|bc_woe;