File GreenWall_Core.lua

Functions

GwChannelRoles (name) Finds channel roles for a player.
GwDebug (level, msg) Write a debugging message to the default chat frame with a detail level.
GwError (msg) Write an error message to the default chat frame.
GwForceReload () Send a configuration reload request to the rest of the confederation.
GwInitializeConfig () Reset all confederation configuration.
GwIsConnected () Check if a connection exists to the common chat.
GwIsContainer (guild) Check a guild for membership within the confederation.
GwIsOfficer (target) Check a target player for officer status in the same container guild.
GwIsPeer (guild) Check a guild for peer status.
GwJoinChannel () Join the shared confederation channel.
GwLeaveChannel () Leave the shared confederation channel.
GwPrepComms () Clear confederation configuration and request updated guild roster information from the server.
GwRefreshComms () Parse confederation configuration and connect to the common channel.
GwSendConfederationMsg (type, message) Sends an encoded message to the rest of the confederation on the shared channel.
GwSendContainerMsg (type, message) Sends an encoded message to the rest of the same container on the add-on channel.
GwWrite (msg) Write a message to the default chat frame.


Functions

GwChannelRoles (name)
Finds channel roles for a player.

Parameters

  • name: Name of the player to check.

Return values:

  1. True if target is the channel owner, false otherwise.
  2. True if target is a channel moderator, false otherwise.
GwDebug (level, msg)
Write a debugging message to the default chat frame with a detail level. Messages will be filtered with the "/greenwall debug " command.

Parameters

  • level: A positive integer specifying the debug level to display this under.
  • msg: The message to send.
GwError (msg)
Write an error message to the default chat frame.

Parameters

  • msg: The error message to send.
GwForceReload ()
Send a configuration reload request to the rest of the confederation.
GwInitializeConfig ()
Reset all confederation configuration.
GwIsConnected ()
Check if a connection exists to the common chat.

Return value:

True if connected, otherwise false.
GwIsContainer (guild)
Check a guild for membership within the confederation.

Parameters

  • guild: The name of the guild to check.

Return value:

True if the target guild is in the confederation, false otherwise.
GwIsOfficer (target)
Check a target player for officer status in the same container guild.

Parameters

  • target: The name of the player to check.

Return value:

True is the target has access to officer chat, false otherwise.
GwIsPeer (guild)
Check a guild for peer status.

Parameters

  • guild: The name of the guild to check.

Return value:

True if the target guild is a peer co-guild, false otherwise.
GwJoinChannel ()
Join the shared confederation channel. Configuration globals must be populated before this is called.

Return value:

Integer channel number, 0 on failure.
GwLeaveChannel ()
Leave the shared confederation channel.
GwPrepComms ()
Clear confederation configuration and request updated guild roster information from the server.
GwRefreshComms ()
Parse confederation configuration and connect to the common channel.
GwSendConfederationMsg (type, message)
Sends an encoded message to the rest of the confederation on the shared channel.

Parameters

  • type: The message type.
  • message: Text of the message.
GwSendContainerMsg (type, message)
Sends an encoded message to the rest of the same container on the add-on channel.

Parameters

  • type: The message type.
  • message: Text of the message.
GwWrite (msg)
Write a message to the default chat frame.

Parameters

  • msg: The message to send.

Valid XHTML 1.0!