File GreenWall_Core.lua

Functions

GwChannelRoles (chan, 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.
GwGetGuildInfoConfig (chan) Parse the guild information page to gather configuration information.
GwGetOfficerNoteConfig (chan) Parse the officer note of the guild leader to gather configuration information.
GwInitializeConfig () Reset all confederation configuration.
GwIsConnected (chan) 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 (chan) Join the shared confederation channel.
GwLeaveChannel (chan) Leave a shared confederation channel.
GwNewChannelTable (name, password) Create a new channel control data structure.
GwPrepComms () Clear confederation configuration and request updated guild roster information from the server.
GwRefreshComms () Parse confederation configuration and connect to the common channel.
GwSendConfederationMsg (chan, 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 (chan, name)
Finds channel roles for a player.

Parameters

  • chan: Control table for the channel.
  • 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.
GwGetGuildInfoConfig (chan)
Parse the guild information page to gather configuration information.

Parameters

  • chan: Channel control table to update.

Return value:

True if successful, false otherwise.
GwGetOfficerNoteConfig (chan)
Parse the officer note of the guild leader to gather configuration information.

Parameters

  • chan: Channel control table to update.

Return value:

True if successful, false otherwise.
GwInitializeConfig ()
Reset all confederation configuration.
GwIsConnected (chan)
Check if a connection exists to the common chat.

Parameters

  • chan: A channel control table.

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 (chan)
Join the shared confederation channel.

Parameters

  • chan: the channel control block.

Return value:

Integer channel number, 0 on failure.
GwLeaveChannel (chan)
Leave a shared confederation channel.

Parameters

  • chan: The channel control table.
GwNewChannelTable (name, password)
Create a new channel control data structure.

Parameters

  • name: The channel name.
  • password: The channel password.

Return value:

Channel control table.
GwPrepComms ()
Clear confederation configuration and request updated guild roster information from the server.
GwRefreshComms ()
Parse confederation configuration and connect to the common channel.
GwSendConfederationMsg (chan, type, message)
Sends an encoded message to the rest of the confederation on the shared channel.

Parameters

  • chan: The channel control table.
  • 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!