%getGuildId()

Aliases%guild( ), %getGuildId( )
Parameterscharacter @entity

    Returns the ID of a guild for which the character is a member. If the
character is not a member of any guild then returns 0. Character entity
may be a character pointer or keyword. The ID returned will correspond to
one of the following guilds:

1 - The Order of the Silver Banner
2 - The Order of the Black Circle
3 - The Legion of Doom
4 - Raw Power
5 - The Scarlet Underground
126 - The Walking Targets

Example:

if( %getGuildId( @n ) != 4 )
{
talk @n You do not belong here!!
yell HELP!! We are under attack by @N
kill @n
}
endif