O'Reilly logo

Beginning Lua with World of Warcraft Addons by Paul Emmerich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C H A P T E R  9

image

Using the Combat Log to Build a Cooldown Monitor

We have already used many events. But there are two particularly interesting events we haven't discussed yet: COMBAT_LOG_EVENT and COMBAT_LOG_EVENT_UNFILTERED. Both events are related to the combat log and can receive numerous arguments (up to 20). We will see the meaning of these arguments in this chapter. The combat log events are fired for all combat-related occurrences; for example, when anyone in your vicinity attacks a mob or anyone gets hit. The event arguments tell you exactly what happened.

The example mod we will write in this chapter will be called Cooldown Monitor, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required