Quantcast
Channel: WoWInterface - Latest Updated list
Viewing all articles
Browse latest Browse all 58846

Lightwell Buddy (40200-v0.06)

$
0
0
Change Log:
--------------------
--v0.06--
Fixed several bugs that prevented the addon from sending messages:

1. The GetMessage function was not recognizing the whichTable variable as a text string. As a consequence, the "If" conditions that attempted to determine which message table was being used in the GetMessage function were not working. These "if" conditions were removed.

2. The destName variable was not being passed from the COMBAT_LOG_EVENT_UNFILTERED to the GetMessage function, causing the %u token to not be changed. destName was added as an argument to the GetMessage function.

3. SAP_message and SUMMON_message were not being given a value by the GetMessage function. The SendChatMessage commands were giving nil messages, resulting in an error. The SAP_message and SUMMON_message variables were replaced with the message variable.

4. In the SendChatMessage commands, conditions such as SAP_CHANNEL_TYPE == WHISPER were not determining properly. Quotes were added to recognize WHISPER and CHANNEL as a text string, i.e. SAP_CHANNEL_TYPE == "WHISPER".

--v0.05--
Split many of the existing configuration constants into two separate constants, one for SPELL_AURA_APPLIED events and the other for SPELL_SUMMON events.

Added the SAP_CHANCE and SUMMON_CHANCE constants to adjust the frequency that messages are sent at.

Changed the SUMMON_MESSAGE string constant into the SUMMON_PHRASES table constant. Summon messages are now randomised like SPELL_AURA_APPLIED messages.

Moved the message randomisation code to a new local function GetMessage. The first argument is the variable that the message gets assigned to, the second is the table that the message is chosen from.

Changed some of the existing single line explanation comments to more detailed multi-line comments for easier reading.

--v0.04 (Hershe's Edit)--
-Summary-
Added a summon message and the ability to put the number of used/remaining charges in messages.

-Details-
Added the MESSAGE_CHANNEL, MESSAGE_LANGUAGE, SUMMO...

Description:
--------------------
This AddOn says a random phrase when you summon your Lightwell and a random phrase to thank people for using your Lightwell.

There is no in-game configuration, you need to edit the core.lua file (in any text editor) to add/remove messages or change how the message is sent. Full editing instructions are found in the core.lua file.

I recommend backing up your core.lua file somewhere outside of your WoW folder so you can easily reconfigure the AddOn after an update. This is because updates will wipe any changes made to your files.

Thanks to Hershe for the concept and for testing/fixing my initial version of this.

Viewing all articles
Browse latest Browse all 58846

Trending Articles