Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
mNo edit summary
 
 
Line 1: Line 1:
  +
{{Removedfromgame|patch=4.0.3a}}
−
{{UIHowTo}}
 
  +
{{questbox
−
The idea of picking up any programming language can be daunting, and when you have to tie your program into someone else's APIs it can be nearly overwhelming. Creating your own addon will be a difficult process for novice coders, but the end satisfaction is worth it.
 
  +
| name = Crimson Templar
  +
| faction = Neutral
  +
| level = 60
  +
| levelreq = 60
  +
| type =
  +
| category = Silithus
  +
| start = [[Tactical Task Briefing II]]
  +
| end = [[Bor Wildmane]]
  +
| experience = 650
  +
| rewards = [[Cenarion Tactical Badge]]<br>[[Tactical Assignment]]
  +
| reputation = [[Cenarion Circle]] +150
  +
| id = 8537
  +
|doc=
  +
}}
  +
== Objectives ==
  +
Summon and slay a [[Crimson Templar]] and report back to [[Bor Wildmane]] in [[Cenarion Hold]]. You must also bring [[Tactical Task Briefing II]] in order to complete this quest.
   
−
== First Steps ==
+
== Description ==
  +
The [[Twilight's Hammer]] and the elemental nobles they worship present a formidable threat to our operations in [[Silithus]]. With the new enemies we're facing inside [[Ahn'Qiraj]], we cannot afford to lower our guard to our enemies outside.<br><br>Find a way to summon and destroy a Crimson Templar and report to Bor Wildmane.
−
Figure out what you want your addon to do. Don't try and get into the details too much, just decide what you want the overall goal to be. I usually start by asking myself these questions:
 
−
:*What's my end goal?
 
−
:*What information will I need from WoW for my addon to work?
 
−
:*Will I need to make custom frames?
 
−
:*Will I need to interact with Blizzard's frames?
 
−
:*Do I know the functions needed to do everything I want to do?
 
   
  +
== Rewards ==
−
=== Get Your Information: The WoW API ===
 
  +
{{lootbox|You will receive:
−
Getting information from WoW is critical to making your addon function. The [[World of Warcraft API]] has a list of functions that will give you that information. These are your building blocks, and if you don't have a block you need (or thought you needed) then you'll have to find another way to get information for your addon. Don't be discouraged, as with any programming language there are many different ways to accomplish your goal, so keep looking until you find a way.
 
  +
|Cenarion Tactical Badge
  +
|Tactical Assignment
  +
}}
   
  +
== Progress ==
−
You should also download the World of Warcraft Interface AddOn Kit from Blizzard's site. This will allow you to view all of the XML and Lua files that make the game's default UI work, as well as provide you with two introductory tutorials. You can download the AddOn Kit here:
 
  +
Is your task done yet, <name>?
−
* http://us.blizzard.com/support/article.xml?articleId=21466
 
   
−
== Editing Tools ==
+
== Completion ==
  +
Good job, <name>. Here's your next assignment.
−
Before you can write any sort of code, you'll want to have a tool that lets you edit you addon files. All addon files are plain text files, meaning even Notepad will do. You can also get LUA and XML specific text editors, which will highlight syntax for you, in turn making your coding a lot easier.
 
−
To review the list of tools and get one you'd like, head to the [[Lua editors]] page.
 
   
−
== File Types ==
+
== Notes ==
  +
You need a set of [[Twilight Trappings]] to summon a Templar at a Lesser Wind Stone.
−
There are three primary types of files that you'll need to worry about with addon editing:
 
−
* TOC File - This file is required for any addon. This is the file that supplies WoW with information about your addon and which files are required for your addon to work.
 
−
* LUA Files - This contains all the programing for your addon.
 
−
* XML Files - This holds the layout of frames you have created for your addon.
 
   
−
===TOC File===
+
==Patch changes==
  +
*{{Patch 4.0.3a|note=Removed.}}
−
This is the file that instructs WoW in some basics about your addon and what other files you want loaded. Here's a short example of one:
 
  +
*{{Patch 1.9.0|note=Added.}}
   
  +
==External links==
−
## Interface: 30000
 
  +
<!-- Read http://www.wowpedia.org/Wowpedia:External_links before posting your links here.
−
## Title : My AddOn
 
  +
Links that do not conform to the rules will be DELETED.
−
## Notes: This AddOn does nothing but display a frame with a button
 
  +
Repeat violations may result in a BAN.
−
## Author: My Name
 
  +
Have a nice day. :) -->
−
myAddOn.xml
 
  +
{{Elinks-quest|8537}}
−  
−
You can read more about what you need or can put in a TOC over at [[The TOC Format]]
 
−  
−
=== LUA Files ===
 
−
[[Lua]] files contain functional pieces of code. You may choose to only have one of these or break up your code into multiple files for a specific purpose. Here's a short example of one:
 
−  
−
function MyAddon_OnLoad()
 
−
SlashCmdList["MyAddon"] = MyAddon_SlashCommand;
 
−
SLASH_MYADDON1= "/myaddon";
 
−
this:RegisterEvent("VARIABLES_LOADED")
 
−
end
 
−  
−
=== XML Files ===
 
−
XML files are used to specify the visual style of your frames. More importantly though a frame allows you to easily pass events to your Lua files. Check out [[XML User Interface]] for details. Here's a short example of an XML file:
 
−  
−
<Script file="MyAddon.lua"/>
 
−
<Frame name="MyAddon">
 
−
<Scripts>
 
−
<OnLoad>
 
−
MyAddon_OnLoad();
 
−
</OnLoad>
 
−
</Scripts>
 
−
</Frame>
 
−  
−
== Start Coding! ==
 
−
Start with the tutorials WoW supplies (through the custom UI editor). The [[HOWTOs]] here has a ton of great examples to help you learn. Don't be shy to dig through someone else's addon for help, just be sure not steal code and give credit where credit is due.
 
−
== Slash Commands ==
 
−
A slash command is one way for the user to interact with your addon. These will be the easiest way for a beginner to let the user supply command and change options.
 
−
The [[HOWTO: Create a Slash Command]] page covers this pretty well.
 
−  
−
== A Basic UI Frame ==
 
−
The [[XML User Interface]] page covers a lot of a great basics.
 
−  
−
== SavedVariables ==
 
−
The [[HOWTO: Save Variables Between Game Sessions]] covers the key points. For folks new to Addons but not other programming languages, just bear in mind that:
 
−
* The SavedVariables is only read from on UI loading, not real time, and only saved to on UI unloading. This will generally be from a user logging in or logging out.
 
−
* Basically, WoW makes a SavedVariables file for you named after your addon. You only get to specify in your TOC *which* variables get saved into that file.
 
−  
−
== Localization ==
 
−
It's a good idea to plan from as early as possible to have your addon be localizable, even if you yourself only speak one language. Review this great article for some things to think about: [[HOWTO: Localize an AddOn]].
 
−
[[Category:HOWTOs|Get Started]]
 

Revision as of 00:30, 22 April 2011

NeutralCrimson Templar
Start Inv scroll 03 [Tactical Task Briefing II]
End Bor Wildmane
Level 60 (Requires 60)
Category Silithus
Experience 650
Reputation Cenarion Circle +150
Rewards Inv jewelry amulet 02 [Cenarion Tactical Badge]
Inv letter 04 [Tactical Assignment]

Objectives

Summon and slay a Crimson Templar and report back to Bor Wildmane in Cenarion Hold. You must also bring Inv scroll 03 [Tactical Task Briefing II] in order to complete this quest.

Description

The Twilight's Hammer and the elemental nobles they worship present a formidable threat to our operations in Silithus. With the new enemies we're facing inside Ahn'Qiraj, we cannot afford to lower our guard to our enemies outside.

Find a way to summon and destroy a Crimson Templar and report to Bor Wildmane.

Rewards

You will receive:

Progress

Is your task done yet, <name>?

Completion

Good job, <name>. Here's your next assignment.

Notes

You need a set of Twilight Trappings to summon a Templar at a Lesser Wind Stone.

Patch changes

External links