AddonTemplate

  Download the Curse Client

Last Update: April 28, 2008 (2 weeks ago)
Category: Development & Debugging
Tags: lua, misc, programming, and tutorial
Project Manager: belleboom
Current Version: AddonTemplate 1.0
(for World of Warcraft 2.4.0)
Downloads Today: 9
Downloads Total: 5,903
Favorites: 30
Comments: 9
  • About AddonTemplate
  •  

The Basics


This addon does absolutely nothing *except* provide a starting point for those interested in building their own addons. I made this for guild members who wanted to start experimenting with their own addons but needed a place to start. I have also included several sample functions that have been commented out. Reinstate at will; see AddonTemplate.lua for details. (Note: The files should work with non-English clients, but I have not listed this addon as globally compatible because the sample code has only been tested with the English client.)


Installation & Use


First unpack the .zip file. (If you are on a Mac I suggest using StuffIt Expander, a free download: http://www.apple.com/downloads/macosx/system_disk_utilities/stuffitexpander.html)

The .zip file contains a folder 'AddonTemplate' containing the three basic addon files: AddonTemplate.toc AddonTemplate.lua AddonTemplate.xml

Put the AddonTemplate folder into your Warcraft>Interface>Addons folder. These files give aspiring addon creators a place to start. I've also included some sample code to get you started, including code to help you build an addon to say random things when you cast a spell, and the in-game macro code needed to use it.

Use NotePad, TextEdit, Smultron, or a similar text editor to open the AddonTemplate.lua file. Take a look at the file code and descriptions, add your own code or reinstate mine; if you make any changes just make sure to save it as AddonTemplate.lua.

Have fun:)


Tutorials & Other Resources


=>For those interested in understanding and building addons, there are a number of useful tutorials out there; take a look at the links below for basics and ideas:

Installing/Removing UIs and Mods

  • http://ui.worldofwar.net/tutorials.php?id=4

Writing Your First AddOn

  • http://forums.worldofwar.net/showthread.php?t=375691
  • http://www.wowwiki.com/AddOns

Mod Author Resources

  • http://forums.worldofwarcraft.com/thread.html?topicId=11381244&sid=1

WoWWiki AddOns Page

  • http://www.wowwiki.com/AddOns
  • XML Frame tutorial: http://fara.webeddie.com/frames/ (may have some issues with 2.0, but loads with TOC update to 20000)
  • http://www.wowwiki.com/Category:HOWTOs
  • http://www.wowwiki.com/World_of_Warcraft_API#Global_Function_Groups
  • http://www.wowace.com

Possible program for UI design (not Mac compatible, as far as I can tell)

  • http://www.wowinterface.com/downloads/fileinfo.php?s=26c1b6429e3ace332eae6277ab548689&id=4222

For people looking to familiarize themselves with the 2.4 combat log. I've put together a little mod to learn the basics, it has some examples, etc. It's an event notifier called ThatJustHappened and you can find it here:

  • http://belleboom.googlepages.com/bellemaison
  • Downloads (11)
  •  

You need to login or register to post comments.

Benefits of Registration

  • Interact with hundreds of thousands of other gamers on an open social network.
  • Post your stories, news, images, videos, and other content to share.
  • Create a network with your fellow gamers or join an existing one.
  • Gain reputation for everything you do.
 
 
  • Similar Tools
  •  
  1. 585 Ace2 / Ace Development & Debugging
  2. 336 BugSack Development & Debugging
  3. 120 Cosmos feat. Khaos Development & Debugging
  4. 65 myReloadUI Development & Debugging
  5. 51 Baud Error Frame Development & Debugging