World of Warcraft Programming: A Guide and Reference for Creating WoW Addons

World of Warcraft Programming: A Guide and Reference for Creating WoW Addons
by James Whitehead II, Bryan McLemore, Matthew Orlando

World of Warcraft Programming: A Guide and Reference for Creating WoW Addons
List Price: $39.99
Category: Book
See more book details and other editions

Buy World of Warcraft Programming: A Guide and Reference for Creating WoW Addons at Amazon.com
(Click here)
Buy this book at online book store in your country
Canada | UK | Germany | France

Book Summary Information

Author: Bryan McLemore, James Whitehead II, Matthew Orlando
Edition: Paperback
Audio: English (Original Language); English (Unknown); English (Published)
Published: 2008-05-05
ISBN: 0470229810
Number of pages: 1056
Publisher: Wiley
Product features:

Book Reviews of World of Warcraft Programming: A Guide and Reference for Creating WoW Addons

Book Review: A great primer, AND a very useful reference
Summary: 5 Stars

I've written code in a lot of different languages, but had never really touched Lua (the language used to write WoW addons).

I picked up this book hoping that it would give me a good foundation on WoW addon creation, and it did. What I didn't expect was just how much I'd be going back to the book over and over as an API reference.

Although Blizzard keeps updating the WoW API, this books extensive reference section covers enough of the fundamentals, that I always start there.

I can't say that this book would be the best starting point for anyone who has never programmed before, but then again, creating addons for WoW isn't really an endeavour for anyone who hasn't programmed before.

However, that's what made this book so great for me. The Lua language and WoWs API are full of eccentricities and "gotchya"s. This book provided a really good "get up to speed quickly", and functions as an ongoing reference.

The authors also maintain a website that updates as the WoW API updates.

Summary of World of Warcraft Programming: A Guide and Reference for Creating WoW Addons

"WoW" is what you'll say when you see how many ways you can tweak the World of Warcraft interface after you read this book! If you're new to programming, we'll teach you the basics of Lua and XML and walk you through writing your first addon. If you already have some original addons in your arsenal, jump right into Parts III and IV and work with templates, function hooking, custom graphics, state headers, and more. We'll even help you distribute your addons, making WoW better for everybody.
  • Respond to events, creates frames, and use the WoW API to interact with the game
  • Learn the Lua programming language through interactive examples, from values and variables to custom functions and control structures
  • Write well-formed XML and validate using schemas
  • Find specific functions easily in the comprehensive references of APIs, API categories, events, and widgets
  • Create custom graphics, scroll frames, dropdown menus, and much more

A Note from the Publisher:

In the first printing, we mistakenly omitted the Authors' Acknowledgements, which included the names of many World of Warcraft community members who helped bring this book to market. I want to publicly thank them for their efforts, and apologize for the omission, which will be corrected in the second printing.

It is the members of the WoW community that make Blizzard's amazing game an even greater experience for millions of players around the world, and their efforts on this book are greatly appreciated.

Chris Webb
Executive Editor

From the Authors:

James and Lee Whitehead, thank you for standing behind me on everything that I've done throughout my wacky life. None of this would have been possible without the guidance and support that you've provided me. Michelle Hastings, thank you for finding a way to bridge a 5300 mile gap and still make me feel like I'm in your living room. Robert and Gregory Whitehead, thank you for sticking by me wherever I am and whatever I do without ever passing judgment. Tom Harper, thank you for letting me be a part of your life. Every single day with you is an adventure I can't wait to begin, and you have changed my life forever.

Jamie Anderson and Edward Wilman, thank you for letting us invade your sanctuary and for being such good friends. Charlie Radcliffe, Bj?rn Alfthan, Anne Christianson, and Chris McCabe, thank you for being great flatmates. Worcester College MCR, thank you for giving me a community of friends in a very foreign land.

Karen Hobson, thank you for being so helpful and supportive throughout the last two projects; you've helped keep me afloat. Sam Lantinga, thank you for all the time and effort you put into helping the World of Warcraft community. Kevin M. Kelly, thank you for your odd sleep patterns and availability; exploration of the unknown is always easier when you have a friend with a map. Daniel Stephens, thank you for your help digging through various parts of the API and for giving me a good jumping-off point for my data exploration.

Chris Webb, thank you for bringing this book and Hacking World of Warcraft into existence. Both books serve as great resources for the WoW UI community. Maryann Steinhart, thank you for your guidance through the entire process. Your feedback, as always, has proved instrumental to the process. Matthew and Bryan, for working with me on this extremely ambitious project, it's definitely been a rollercoaster.

Thanks to everyone who kept me moving when I needed a push, and those who slowed me down when I needed a break. Thank you to all of my users for putting up with bugs and lack of updates while the book was still being written; your patience and support is what keeps me writing addons. Finally, thank you to all the members of the WoW UI community for everything you do.--Jim

First, I would like to thank all those involved with the book: Jim for inviting me to take part; Bryan for sticking with it through all his work pressures; Chris, Maryann, and the rest of the folks at Wiley for allowing this project to materialize. Thanks to Rick and Stephen for picking apart our work. Supreme thanks go to Iriel, AnduinLothar, Cladhaire, MentalPower, Esamynn, Beladona, Krka, Legorol, Shirik, Cidan, Kevin, Sam, and all the members of #wow-lounge for putting up with our incessant questions. Thank you to all the folks who helped us churn out the API docs at the 11th hour.

Thank you to PepsiCo and Rockstar, Inc., without whose caffeinated beverages I never would have completed my chapters. I'd also like to thank whoever made the massage pad I keep on my computer chair. The best go out to the folks behind "Brisco County Jr.," "Firefly," and every other television series that should've gone on for years. For entertaining me in my few breaks, xkcd.org, bash.org, Portal, World of Warcraft, "Bones," "Nip/Tuck," and "Mythbusters" have my undying gratitude. What thanks for a book of this nature would be complete without recognition of Blizzard for its wonderful product and incredible passion?

Special thanks go out to my de facto colleagues from the UI & Macros forum for their hard work, dedication, and flaming of people who didn't read the stickies while I devoted my time to this project: Troodi, the nicest troll I've ever met; Jelly, enthusiastic ForumToCPoster user; Kamdis, female Draenei-@@'nuff said; Lunessa, my no. 1 supporter for my presidential bid; Lopeppeppy, whose name I can finally type from memory; Kaydeethree, with the best diagram of how to find stickies ever; Kelfarr, under people's skin before he even posts; Alestane, unnervingly patient; Valaron, never met a better Orc; Lealla, yay drood!; Aella, whom I always confuse with Lealla; everybody else whom I forgot to name; and our Administratrix Extraordinaire, Cairenn, for holding everything together!

My deepest thanks go to my family for making me who I am, and, most important, to my wife, Juliella, thank you for supporting me in this endeavor even when it meant I had to put you on /ignore from time to time.--Matthew

Wanda and Joe Newman, for the hours you put up with me not being willing to get off the computer. Thanks for all the support over the years, and for buying me my first copy of VB when I was 15, and sorry for all the arguments. Willis McLemore, thanks for supporting me without ever expecting anything from me.

Brent Miller, for helping me really start out on this awesome journey. You helped guide me when I first got started doing WoW addons, and many of the things we talked about helped shape me as a professional coder. Thanks for the first versions of Ace and for shrugging off all that responsibility onto me when you left. Oh, and thanks for listening to me rant.

Jim Whitehead and Matthew Orlando, you have been better co-authors than anyone else can ask for. Thanks for putting up with me while I learned how to do this, and for handling the content that I had no clue about. Sorry again for the times when I got overwhelmed. Thanks to all the editors and support from Wiley for helping me get through this, and for putting up with me when I gave you problems.

PProvost, Ammo, Cladhaire, hyperChipmunk, kergoth, Mikk, Nargiddley, pastamancer, nevcairiel, Tekkub, Tem, vhaar, Wobin and the members of #wowace. Thanks for the ideas, inspiration, strife, and hard work. Thanks for helping WowAce grow to more than a million users and for all the great mods!

Shirik, Tekkub, Wobin, Mentalpower, Esamynn, Cide, Ammo, Nevcairiel, and Iriel (and any I have accidentally forgotten). Thank you for helping so much on the reference. We would never have been done in time without you.

Karen Hobson. You've been a friend to me during some of the darkest times in my life, and I'll always treasure your company and support. I don't think it'd be possible for me to thank you enough.

Aidan McLemore, who still thinks Daddy can do anything. Last, but by no means least, Kristina McLemore. Thanks for believing in me and following me across the country, for always loving me, and for helping me but, most important, for not divorcing me during the production of this book.--Bryan

A special thanks is owed to a group of hard-working members of the user interface community, without whom the reference section of this book would not have been completed. Each of you truly stepped up when we needed your help, and we're extremely grateful for everything you've done for us. Thank you [Ammo], Beladona, Cide, Gazmik, JoshBorke, MentalPower, Nevcairiel, Shirik, Tem, and Wobin for giving us your time, and a little bit of your sanity.

Dan Fernandez, thank you for your work on the World of Warcraft AddOn Studio and your help in writing Chapter 14. We're hopeful that the software will continue to develop and mature as another tool in the addon author's toolbox.

Games & Strategy Guides Books

Book Subjects
Most talked about in Thats the World of Warcraft that we live in
World of Warcraft?  Penny Arcade Binder ImageWorld of Warcraft? Penny Arcade Binder
by BradyGames
BRADY GAMES; Published: 2006-03-01; Hardcover; Book
Price in other shops: $9.99
Unofficial World of Warcraft Gold Guide ImageUnofficial World of Warcraft Gold Guide
by Elph Daniels
Global Publishing services; Published: 2007; Paperback; Book
Best price: $9.99
World of Warcraft Programming: A Guide and Reference for Creating WoW Addons ImageWorld of Warcraft Programming: A Guide and Reference for Creating WoW Addons
by James Whitehead II, Bryan McLemore, Matthew Orlando
Wiley; Published: 2008-05-05; Paperback; Book
Best price: $15.41
Price in other shops: $39.99
The Art of World of Warcraft ImageThe Art of World of Warcraft
BRADY GAMES; Published: 2005-12-21; Hardcover; Book
Best price: $84.99
The Art Of World Of Warcraft Burning Crusade Art Book (The Burning Crusade) ImageThe Art Of World Of Warcraft Burning Crusade Art Book (The Burning Crusade)
by Blizzard
Blizzard; Published: 2007; Hardcover; Book
Best price: $49.99
World of Warcraft 2008 Wall Calendar ImageWorld of Warcraft 2008 Wall Calendar
by World of Warcraft
Sellers Publishing; Published: 2007-08-01; Calendar; Book
Price in other shops: $13.99
World of WarCraft  Atlas (Bradygames Official Strategy Guide) ImageWorld of WarCraft Atlas (Bradygames Official Strategy Guide)
by BradyGames
Brady Games; Published: 2005-09-20; Hardcover; Book
Best price: $4.95
Price in other shops: $29.99
World of Warcraft  Dungeon Companion ImageWorld of Warcraft Dungeon Companion
by BradyGames
BRADY GAMES; Published: 2006-07-11; Paperback; Book
Best price: $23.73
Price in other shops: $24.99
Hacking World of Warcraft (ExtremeTech) ImageHacking World of Warcraft (ExtremeTech)
by Daniel Gilbert, James Whitehead II
Wiley; Published: 2007-06-05; Paperback; Book
Best price: $5.18
Price in other shops: $29.99
World of Warcraft Master Guide, Second Edition ImageWorld of Warcraft Master Guide, Second Edition
by BradyGames
Brady Games; Published: 2006-10-06; Paperback; Book
Best price: $12.50
Price in other shops: $24.99
Similar Books and other products
World of Warcraft: Wrath of the Lich King Expansion Pack ImageWorld of Warcraft: Wrath of the Lich King Expansion Pack
Blizzard Entertainment; Blizzard Entertainment; Release date: 2008-11-13; Windows Vista; Video Games
Best price: $31.99
Price in other shops: $39.99
World of Warcraft Atlas: The Burning Crusade (Brady Games - World of Warcraft) ImageWorld of Warcraft Atlas: The Burning Crusade (Brady Games - World of Warcraft)
by BradyGames
BRADY GAMES; Published: 2008-10-01; Hardcover; Book
Best price: $11.87
Price in other shops: $19.99
World of WarCraft Dungeon Companion, Volume 2 (Official Strategy Guides (Bradygames)) ImageWorld of WarCraft Dungeon Companion, Volume 2 (Official Strategy Guides (Bradygames))
by BradyGames
BRADY GAMES; Published: 2007-09-06; Paperback; Book
Best price: $6.90
Price in other shops: $24.99
World of the Warcraft Atlas: Wrath of the Lich King (Brady Games - World of Warcraft) ImageWorld of the Warcraft Atlas: Wrath of the Lich King (Brady Games - World of Warcraft)
by BradyGames
Brady Games; BRADY GAMES; Published: 2009-07-21; Hardcover; Book
Best price: $11.11
Price in other shops: $19.99
World of Warcraft: Wrath of the Lich King Official StrategyGuide (Bradygames Official Stragey Guide) ImageWorld of Warcraft: Wrath of the Lich King Official StrategyGuide (Bradygames Official Stragey Guide)
by BradyGames
BRADY GAMES; Published: 2008-11-13; Paperback; Book
Best price: $13.88
Price in other shops: $24.99
Beginning Lua Programming (Programmer to Programmer) ImageBeginning Lua Programming (Programmer to Programmer)
by Kurt Jung, Aaron Brown
Wrox; Published: 2007-02-12; Paperback; Book
Best price: $21.52
Price in other shops: $39.99
Lua 5.1 Reference Manual ImageLua 5.1 Reference Manual
by Roberto Ierusalimschy, Luiz Henrique de Figueiredo, Waldemar Celes
Lua.org; Published: 2006-08-30; Paperback; Book
Best price: $12.36
Price in other shops: $19.98
Programming in Lua, Second Edition ImageProgramming in Lua, Second Edition
by Roberto Ierusalimschy
Lua.org; Published: 2006-03-05; Paperback; Book
Best price: $25.97
Price in other shops: $39.95
Beginning Lua with World of Warcraft Add-ons ImageBeginning Lua with World of Warcraft Add-ons
by Paul Emmerich
Apress; Published: 2009-07-29; Paperback; Book
Best price: $12.47
Price in other shops: $34.99
Hacking World of Warcraft (ExtremeTech) ImageHacking World of Warcraft (ExtremeTech)
by Daniel Gilbert, James Whitehead II
Wiley; Published: 2007-06-05; Paperback; Book
Best price: $5.22
Price in other shops: $29.99
Book store. Illustrated catalog of books on different categories