12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

14 Part I ■ Learning to ProgramDownloading <strong>and</strong> Installing LuaYou have three easy ways to obtain a Lua interpreter:1. Download WowLua, an addon the authors have written that gives youan interactive Lua interpreter within <strong>World</strong> <strong>of</strong> <strong>Warcraft</strong>.2. Visit the book’s website at http://wowprogramming.com/utils/webluato use an interactive Lua interpreter in your web browser.3. Download a Lua interpreter to your computer, so it can be run locallywithout access to the Internet or <strong>WoW</strong>.The first option enables you to run a Lua interpreter directly within <strong>World</strong> <strong>of</strong><strong>Warcraft</strong>. This is useful if you want to spend your time in the game watchingthings. The second allows you to run Lua without needing to downloadanything, so it will work even on computers where you can’t install s<strong>of</strong>tware.The third option allows you to work with Lua when you’re not connected tothe Internet, which also can be useful.Any <strong>of</strong> these options will work <strong>for</strong> the examples in the first part <strong>of</strong> this book,so feel free to choose the ones that work best <strong>for</strong> you.Downloading <strong>and</strong> Installing WowLuaWe have created a version <strong>of</strong> the Lua interpreter that runs as an addon within<strong>World</strong> <strong>of</strong> <strong>Warcraft</strong>. This is the simplest way to install a Lua interpreter <strong>for</strong>anyone with experience using addons. It also has the advantage <strong>of</strong> letting youwork within the game, allowing you to test your work on-the-fly, experimentwith the default UI <strong>and</strong> other addons, <strong>and</strong> still be able to chat with your friends<strong>and</strong> guild.Navigate to http://wowprogramming.com/utils/wowlua-addon <strong>and</strong> clickthe download link to get the latest version <strong>of</strong> the WowLua addon. Thisdownloads a .zip file to your computer. Once you save the file, you canextract it using your favorite compression utility or by double-clicking it ona st<strong>and</strong>ard Windows XP or Mac OS X machine. A single folder called WowLuawill be extracted. Place the folder in the Interface\AddOns folder underneathyour <strong>World</strong> <strong>of</strong> <strong>Warcraft</strong> installation.You can verify that the addon is installed properly by clicking the <strong>Addons</strong>button in the bottom-left corner <strong>of</strong> your character selection screen. You shouldsee the addon listed in a fashion similar to that shown in Figure 2-1.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!