%getLanguage()

Aliases%getLanguage( )
Parametersmixed @target

    Returns the language name for the given @target. If @target is a mobile
then the return value will be the name of the language currently used by
the mobile. Alternatively, if the @target is a number then the name of the
language associated with the given numerical ID will be returned.

The following language names are currently possible:

common goblin
centaur halfling
dwarven orcish
elven reptilian
fairy trollish
gnomish


Example:
--------------------------------------------------------------------------

if( %getLanguage( @n ) != "trollish" )
{
speak common

talk @n You would be wise to speak the language of the trolls when
\ you are about these parts.

speak trollish
}
endif