I'm not sure when PLAYER_DIFFICULTY_CHANGED is triggered...
AFAIK you can not change dungeon difficulty while inside a heroic/instance, so logic-wise one would use CHAT_MSG_SYSTEM event to scan the message for DUNGEON_DIFFICULTY or RAID_DIFFICULTY.
The correct message is formatted with ERR_DUNGEON_DIFFICULTY_CHANGED_S. I can't give a code example as I forgot how to do sscanf-like(php) function call in lua.
Another event which might be helpful is PLAYER_ENTERING_WORLD. This triggers if the player is entering an instance.
Last edited by ravagernl : 01-30-13 at 11:22 AM.
|