Quantcast

Trainer scan now checks to see if trainer flag set, and prints out the spell ID.

ackis [04-21-09 - 16:59]
Trainer scan now checks to see if trainer flag set, and prints out the spell ID.
Filename
ARLDatamine.lua
Locals/testdeDE.lua
Locals/testenUS.lua
Locals/testesMX.lua
diff --git a/ARLDatamine.lua b/ARLDatamine.lua
index 587e0fa..cc99e67 100644
--- a/ARLDatamine.lua
+++ b/ARLDatamine.lua
@@ -111,10 +111,13 @@ function addon:ScanTrainerData()
 			-- Get internal database
 			local recipelist = addon:GetRecipeTable()
 			for i in pairs(recipelist) do
+
 				local i_name = recipelist[i]["Name"]
 				local acquire = recipelist[i]["Acquire"]
+				local flags = recipelist[i]["Flags"]
+
 				-- If the trainer teaches this recipe
-				if t[i_name] then
+				if (t[i_name]) then
 					local found = false
 					-- Parse acquire info
 					for i in pairs(acquire) do
@@ -125,7 +128,10 @@ function addon:ScanTrainerData()
 						end
 					end
 					if (not found) then
-						self:Print(L["DATAMINER_TRAINER_TEACH"]:format(i_name))
+						self:Print(L["DATAMINER_TRAINER_TEACH"]:format(i_name,i))
+						if (not flags[3]) then
+							self:Print("Trainer flag needs to be set.")
+						end
 					end
 				-- Trainer does not teach this recipe
 				else
@@ -139,7 +145,7 @@ function addon:ScanTrainerData()
 						end
 					end
 					if (found) then
-						self:Print(L["DATAMINER_TRAINER_NOTTEACH"]:format(i_name))
+						self:Print(L["DATAMINER_TRAINER_NOTTEACH"]:format(i_name,i))
 					end
 				end
 			end
diff --git a/Locals/testdeDE.lua b/Locals/testdeDE.lua
index a6b08ac..9d8606a 100644
--- a/Locals/testdeDE.lua
+++ b/Locals/testdeDE.lua
@@ -1598,7 +1598,6 @@ L["Zula Slagfury"] = "Zula Schmelzzorn"
 L["Zulian Tiger"] = "Zulianischer Tiger"
 L["Zurai"] = "Zurai"
 L["Northern Cooking"] = true
-
 L["Custom40"] = "Discovered randomly by reading the Book of Glyph Mastery."
 L["Clamlette Surprise"] = true
 L["DATAMINER_SKILLELVEL"] = [[Recipe level different!
@@ -1607,7 +1606,29 @@ L["DATAMINER_SKILLELVEL"] = [[Recipe level different!
 	Trainer Level: %s]]
 L["DATAMINER_SKILLLEVEL_ERROR"] = "This can only be used for a trade skill trainer.  Please open up the trainer and try again."
 L["DATAMINER_TRAINER_NOTTARGETTED"] = "You must target the trainer when you run this command."
+L["DATAMINER_VENDOR_NOTTARGETTED"] = "You must target the vendor when you run this command."
 L["DATAMINER_TRAINER_INFO"] = [[Trainer Name: %s
 Trainer ID: %s]]
-L["DATAMINER_TRAINER_TEACH"] = "Missing entry for %s"
-L["DATAMINER_TRAINER_NOTTEACH"] = "Extra entry for %s"
+L["DATAMINER_TRAINER_TEACH"] = "%s (%s) - Missing"
+L["DATAMINER_TRAINER_NOTTEACH"] = "%s (%s) - Extra"
+L["Auto Scan Trainers"] = true
+L["Datamine Settings"] = true
+L["DATAMINE_SETTINGS_DESC"] = "Allows you to customize in-game ARL datamining."
+L["AUTOSCAN_TRAINERS_DESC"] = "Turns on scanning at trainers to compare skill levels, and recipe acquire methods."
+L["Generate Tradeskill Links"] = true
+L["GENERATE_LINKS_DESC"] = "Generate complete profession links."
+L["Compare Trainer Skills"] = true
+L["COMPARE_TRAINER_SKILL_DESC"] = "Compare skill levels of selected trainer with those in ARL database."
+L["Compare Trainer Acquire"] = true
+L["COMPARE_TRAINER_ACQUIRE_DESC"] = "Compare selected trainer acquire methods with those in the ARL database."
+L["DATAMINER_NODB_ERROR"] = "Recipe database not loaded.  Please scan the tradeskill first then try the datamining."
+L["Dustin Vail"] = true
+L["Kul'de"] = true
+L["Fael Morningsong"] = true
+L["Binkie Brightgear"] = true
+L["Bethany Cromwell"] = true
+L["Crystal Brightspark"] = true
+L["Joseph Wilson"] = true
+L["Oluros"] = true
+L["Rekka the Hammer"] = true
+L["Arthur Denny"] = true
diff --git a/Locals/testenUS.lua b/Locals/testenUS.lua
index cfff7f1..6a6170c 100644
--- a/Locals/testenUS.lua
+++ b/Locals/testenUS.lua
@@ -1719,8 +1719,8 @@ L["DATAMINER_TRAINER_NOTTARGETTED"] = "You must target the trainer when you run
 L["DATAMINER_VENDOR_NOTTARGETTED"] = "You must target the vendor when you run this command."
 L["DATAMINER_TRAINER_INFO"] = [[Trainer Name: %s
 Trainer ID: %s]]
-L["DATAMINER_TRAINER_TEACH"] = "Missing entry for %s"
-L["DATAMINER_TRAINER_NOTTEACH"] = "Extra entry for %s"
+L["DATAMINER_TRAINER_TEACH"] = "%s (%s) - Missing"
+L["DATAMINER_TRAINER_NOTTEACH"] = "%s (%s) - Extra"
 L["Auto Scan Trainers"] = true
 L["Datamine Settings"] = true
 L["DATAMINE_SETTINGS_DESC"] = "Allows you to customize in-game ARL datamining."
diff --git a/Locals/testesMX.lua b/Locals/testesMX.lua
index 098ec9b..3a6c17f 100644
--- a/Locals/testesMX.lua
+++ b/Locals/testesMX.lua
@@ -1579,16 +1579,38 @@ L["Zula Slagfury"] = "Zula Furiascoria"
 L["Zulian Tiger"] = "Tigre Zulian"
 L["Zurai"] = "Zurai"
 L["Northern Cooking"] = true
-
 L["Custom40"] = "Discovered randomly by reading the Book of Glyph Mastery."
 L["Clamlette Surprise"] = true
+
 L["DATAMINER_SKILLELVEL"] = [[Recipe level different!
     Name: %s
 	ARL Level: %s
 	Trainer Level: %s]]
 L["DATAMINER_SKILLLEVEL_ERROR"] = "This can only be used for a trade skill trainer.  Please open up the trainer and try again."
 L["DATAMINER_TRAINER_NOTTARGETTED"] = "You must target the trainer when you run this command."
+L["DATAMINER_VENDOR_NOTTARGETTED"] = "You must target the vendor when you run this command."
 L["DATAMINER_TRAINER_INFO"] = [[Trainer Name: %s
 Trainer ID: %s]]
-L["DATAMINER_TRAINER_TEACH"] = "Missing entry for %s"
-L["DATAMINER_TRAINER_NOTTEACH"] = "Extra entry for %s"
+L["DATAMINER_TRAINER_TEACH"] = "%s (%s) - Missing"
+L["DATAMINER_TRAINER_NOTTEACH"] = "%s (%s) - Extra"
+L["Auto Scan Trainers"] = true
+L["Datamine Settings"] = true
+L["DATAMINE_SETTINGS_DESC"] = "Allows you to customize in-game ARL datamining."
+L["AUTOSCAN_TRAINERS_DESC"] = "Turns on scanning at trainers to compare skill levels, and recipe acquire methods."
+L["Generate Tradeskill Links"] = true
+L["GENERATE_LINKS_DESC"] = "Generate complete profession links."
+L["Compare Trainer Skills"] = true
+L["COMPARE_TRAINER_SKILL_DESC"] = "Compare skill levels of selected trainer with those in ARL database."
+L["Compare Trainer Acquire"] = true
+L["COMPARE_TRAINER_ACQUIRE_DESC"] = "Compare selected trainer acquire methods with those in the ARL database."
+L["DATAMINER_NODB_ERROR"] = "Recipe database not loaded.  Please scan the tradeskill first then try the datamining."
+L["Dustin Vail"] = true
+L["Kul'de"] = true
+L["Fael Morningsong"] = true
+L["Binkie Brightgear"] = true
+L["Bethany Cromwell"] = true
+L["Crystal Brightspark"] = true
+L["Joseph Wilson"] = true
+L["Oluros"] = true
+L["Rekka the Hammer"] = true
+L["Arthur Denny"] = true