WoW:Events/Skill: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Robot: converting/fixing HTML)
m (automated upload)
Line 13: Line 13:


Fired when some chat messages about skills are displayed.
Fired when some chat messages about skills are displayed.
 
; arg1: The content of the chat message.
; arg1 : The content of the chat message.


'''arg1''' formats are found in Blizzard's <tt>GlobalStrings.lua</tt>.  Some possibilities:
'''arg1''' formats are found in Blizzard's <tt>GlobalStrings.lua</tt>.  Some possibilities:
Line 20: Line 19:
* <tt>ERR_SKILL_GAINED_S</tt> (eg. "You have gained the Blacksmithing skill.")
* <tt>ERR_SKILL_GAINED_S</tt> (eg. "You have gained the Blacksmithing skill.")
* <tt>ERR_SKILL_UP_SI</tt> (eg. "Your skill in Cooking has increased to 221.")
* <tt>ERR_SKILL_UP_SI</tt> (eg. "Your skill in Cooking has increased to 221.")
{{evt|CHAT_MSG_SPELL_TRADESKILLS|Skill}}
{{evt|CRAFT_UPDATE|Skill}}
Fired when a crafting event is updating.




{{evt|SKILL_LINES_CHANGED|Skill}}
{{evt|SKILL_LINES_CHANGED|Skill}}


Fired when:
* Spellbook initially loads on client initialization.  (Attempting to use GetSpellName before this is complete will result in a UI error.  Note:  This event happens after ADDON_LOADED and VARIABLES_LOADED.)
* Learning new stuff that goes in the spellbook.
* Opening the spellbook.
* Equipping/Removing/Swapping primary weapon. (Changes the Attack icon)
* UpdateSpells() function is called, which is used throughout the spellbook.


 
;arg1
 
:nil when the char learns stuff. Also when changing weapons and shapeshifting. In addition it seems to be called on regular intervals for no apparent reason.
{{evt|UPDATE_TRADESKILL_RECAST|Skill}}
:# when the user opens the spellbook.
:'LeftButton' when using the mouse to open the spellbook or to browse through the pages and tabs of the open spellbook.

Revision as of 20:50, 6 October 2010

Event API


"I" iconNote that this page is automatically generated; editing it is pointless. To edit event descriptions, edit the entries in the alphabetical pages, e.g. Events/A, Events/B, etc. Changes there will be copied over to here within a few hours.


Skill related events

"CHAT_MSG_SKILL"
Category: Player,Skill
 

Fired when some chat messages about skills are displayed.

arg1
The content of the chat message.

arg1 formats are found in Blizzard's GlobalStrings.lua. Some possibilities:

  • ERR_SKILL_GAINED_S (eg. "You have gained the Blacksmithing skill.")
  • ERR_SKILL_UP_SI (eg. "Your skill in Cooking has increased to 221.")


"SKILL_LINES_CHANGED"
Category: Skill
 

Fired when:

  • Spellbook initially loads on client initialization. (Attempting to use GetSpellName before this is complete will result in a UI error. Note: This event happens after ADDON_LOADED and VARIABLES_LOADED.)
  • Learning new stuff that goes in the spellbook.
  • Opening the spellbook.
  • Equipping/Removing/Swapping primary weapon. (Changes the Attack icon)
  • UpdateSpells() function is called, which is used throughout the spellbook.
arg1
nil when the char learns stuff. Also when changing weapons and shapeshifting. In addition it seems to be called on regular intervals for no apparent reason.
  1. when the user opens the spellbook.
'LeftButton' when using the mouse to open the spellbook or to browse through the pages and tabs of the open spellbook.