From c16f4fa2e642abad88ac3579044369cb9ce7f4ff Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sun, 13 Mar 2011 21:10:56 -0500 Subject: [PATCH] Revert "Deleted Trainer.lua and removed some trainer entries" This reverts commit 9800574400640852a164b767fa27703e3c9f1a39. --- Database/Trainer.lua | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ Locales/devel-enUS.lua | 3 +++ database.xml | 1 + 3 files changed, 53 insertions(+) create mode 100644 Database/Trainer.lua diff --git a/Database/Trainer.lua b/Database/Trainer.lua new file mode 100644 index 0000000..644bd20 --- /dev/null +++ b/Database/Trainer.lua @@ -0,0 +1,49 @@ +--[[ +************************************************************************ +Trainer.lua +************************************************************************ +File date: @file-date-iso@ +File hash: @file-abbreviated-hash@ +Project hash: @project-abbreviated-hash@ +Project version: @project-version@ +************************************************************************ +Please see http://www.wowace.com/addons/arl/ for more information. +************************************************************************ +This source code is released under All Rights Reserved. +************************************************************************ +]] -- + +----------------------------------------------------------------------- +-- Upvalued Lua API. +----------------------------------------------------------------------- +local _G = getfenv(0) + +----------------------------------------------------------------------- +-- AddOn namespace. +----------------------------------------------------------------------- +local FOLDER_NAME, private = ... + +local LibStub = _G.LibStub + +local addon = LibStub("AceAddon-3.0"):GetAddon(private.addon_name) +local L = LibStub("AceLocale-3.0"):GetLocale(private.addon_name) +local BZ = LibStub("LibBabble-Zone-3.0"):GetLookupTable() + +----------------------------------------------------------------------- +-- Constants. +----------------------------------------------------------------------- +local NEUTRAL = 0 +local ALLIANCE = 1 +local HORDE = 2 + +function addon:InitTrainer(DB) + local function AddTrainer(id_num, name, location, coord_x, coord_y, faction) + private:AddListEntry(DB, id_num, name, location, coord_x, coord_y, faction) + end + + AddTrainer(3373, L["Arnok"], BZ["Orgrimmar"], 34.1, 84.4, HORDE) + AddTrainer(12920, L["Doctor Gregory Victor"], BZ["Arathi Highlands"], 73.4, 36.8, HORDE) + AddTrainer(12939, L["Doctor Gustaf VanHowzen"], BZ["Dustwallow Marsh"], 68.18, 47.94, ALLIANCE) + + self.InitTrainer = nil +end diff --git a/Locales/devel-enUS.lua b/Locales/devel-enUS.lua index 40863fc..90ab1f1 100644 --- a/Locales/devel-enUS.lua +++ b/Locales/devel-enUS.lua @@ -112,6 +112,7 @@ L["Argent Quartermaster Lightspark"] = "Argent Quartermaster Lightspark" L["Argo Strongstout"] = "Argo Strongstout" L["Aristaleon Sunweaver"] = "Aristaleon Sunweaver" L["Arkkoran Oracle"] = "Arkkoran Oracle" +L["Arnok"] = "Arnok" L["Arras"] = "Arras" L["Arred"] = "Arred" L["Arrond"] = "Arrond" @@ -378,6 +379,8 @@ L["Disembodied Vindicator"] = "Disembodied Vindicator" L["Display Exclusions"] = "Display Exclusions" L["Doba"] = "Doba" L["Doc Zapnozzle"] = "Doc Zapnozzle" +L["Doctor Gregory Victor"] = "Doctor Gregory Victor" +L["Doctor Gustaf VanHowzen"] = "Doctor Gustaf VanHowzen" L["Doctor Herbert Halsey"] = "Doctor Herbert Halsey" L["Documentation"] = "Documentation" L["Don Carlos"] = "Don Carlos" diff --git a/database.xml b/database.xml index ec4ec51..1ded2d5 100644 --- a/database.xml +++ b/database.xml @@ -20,6 +20,7 @@ + -- 1.7.9.5