Quantcast

Add some debug text for Pompy to help me out wtih figuring out why BoP isn't being scanned.

ackis [09-02-09 - 18:25]
Add some debug text for Pompy to help me out wtih figuring out why BoP isn't being scanned.
Filename
ARLDatamine.lua
diff --git a/ARLDatamine.lua b/ARLDatamine.lua
index 84a3471..1d2e0a8 100644
--- a/ARLDatamine.lua
+++ b/ARLDatamine.lua
@@ -1393,20 +1393,23 @@ do
 			local text_r = _G["ARLDatamineTTTextRight" .. i]:GetText()
 			local text

-			if text_r then
+			if (text_r) then
 				text = text_l .. " " .. text_r
 			else
 				text = text_l
 			end

 			local text = strlower(text)
-
+self:Print(text)
 			-- Check for recipe/item binding
 			-- The recipe binding is within the first few lines of the tooltip always
 			if strmatch(text, "binds when picked up") then
+self:Print("BoP Match")
 				if (i < 3) then
+self:Print("BoP Recipe")
 					scan_data.boprecipe = true
 				else
+self:Print("BoP Item")
 					scan_data.bopitem = true
 				end
 			end