Quantcast

Updated to scanning at level 90

Kevin Lyles [10-07-12 - 19:17]
Updated to scanning at level 90
Filename
ItemScanner.lua
diff --git a/ItemScanner.lua b/ItemScanner.lua
index 12f08b9..383282a 100644
--- a/ItemScanner.lua
+++ b/ItemScanner.lua
@@ -3,6 +3,7 @@ local CONSECUTIVE_INVALID_TO_IGNORE = 5
 local VALID_DELAY = 0.025
 local INVALID_DELAY = 10
 local NUM_THREADS = 4
+local SCAN_LEVEL = 90

 local patterns = {
 	"^Design:",
@@ -398,7 +399,7 @@ local function commandHandler(msg)
 			end

 			local function scanItem(i, threadNumber)
-				return scanItemLink(string.format("item:%d:0:0:0:0:0:0:0:85", i), tooltip, threadNumber)
+				return scanItemLink(string.format("item:%d:0:0:0:0:0:0:0:" .. SCAN_LEVEL, i), tooltip, threadNumber)
 			end

 			frame.itemco[i] = coroutine.wrap(genericCoroutine)
@@ -440,7 +441,7 @@ local function commandHandler(msg)
 		end

 		local function scanSuffix(i)
-			return scanItemLink(string.format("item:11993:0:0:0:0:0:%d:100:85", i), tooltip)
+			return scanItemLink(string.format("item:11993:0:0:0:0:0:%d:100:" .. SCAN_LEVEL, i), tooltip)
 		end

 		frame.suffco = coroutine.wrap(genericCoroutine)