Update
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
--INSPECT_READY CHAT_MSG_SYSTEM
|
||||
function(e, msg)
|
||||
if e == "INSPECT_READY" then
|
||||
if GetTime() - aura_env.time >= 1 then
|
||||
local name = UnitName("target")
|
||||
SendChatMessage(".ilevel " .. name, "SAY")
|
||||
aura_env.time = GetTime()
|
||||
end
|
||||
elseif e == "CHAT_MSG_SYSTEM" then
|
||||
aura_env.ilvl = msg:match("Equipped ilvl for .+: (%d+)")
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
--DISPLAY
|
||||
function()
|
||||
return format("%d", aura_env.ilvl)
|
||||
end
|
||||
|
||||
--INIT
|
||||
--INSPECT_READY CHAT_MSG_SYSTEM
|
||||
function(e, msg)
|
||||
if e == "INSPECT_READY" then
|
||||
if GetTime() - aura_env.time >= 1 then
|
||||
local name = UnitName("target")
|
||||
SendChatMessage(".ilevel " .. name, "SAY")
|
||||
aura_env.time = GetTime()
|
||||
end
|
||||
elseif e == "CHAT_MSG_SYSTEM" then
|
||||
aura_env.ilvl = msg:match("Equipped ilvl for .+: (%d+)")
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
--DISPLAY
|
||||
function()
|
||||
return format("%d", aura_env.ilvl)
|
||||
end
|
||||
|
||||
--INIT
|
||||
aura_env.time = 0
|
||||
Reference in New Issue
Block a user