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  11

image

Working with Secure Templates

Did you ever wonder what keeps you from developing an addon that completely automates your game? Well, such an addon would break the EULA, and you don't want to do that because you don't want to lose your World of Warcraft account. But what keeps you technically from developing such an addon?

The whole UI is written in Lua and XML, so there are functions that allow you to move your character and to cast spells. For example, there is the function CastSpellByName("name"), which allows you to cast a spell. But try to do this with a simple spell like Attack:

/script CastSpellByName("Attack")

You will ...

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