/EnemyScanner2
-- ChatFrame3 is used to print all the actions hostile players do. |
-- ChatFrame4 is used to print tooltipscan results and mouseover results. |
local function debugprint(chatframe,text,r,g,b) |
if debug.EnemyScanner2 then |
if debug and debug.EnemyScanner2 then |
_G["ChatFrame"..chatframe]:AddMessage(text,r,g,b) |
end |
end |
local uid = ES2temptable[guidsource] |
EnemyScanner2:EditMessage(uid,db[guidsource],time()+EnemyScanner2DB.expire) |
end |
-- Scanned, now update. |
ES2timer:SetScript("OnUpdate",onUpdate) |
end |
end |
end |
-- If we are not running onUpdate and there are messages in the queue, start it. |
local updating = ES2timer:GetScript("OnUpdate") |
updating = ES2timer:GetScript("OnUpdate") |
if not updating and next(ES2messages) then |
ES2timer:SetScript("OnUpdate",onUpdate) |
end |
## Title: EnemyScanner 2 |
## Notes: Enemy detected and level estimated |
## SavedVariables: EnemyScanner2DB |
## Version: 1 |
## Version: 2 |
EnemyScanner2.lua |