Add new code snippets

This commit is contained in:
2024-03-03 13:50:12 +01:00
commit 01b612a50b
409 changed files with 65292 additions and 0 deletions

View File

@@ -0,0 +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
aura_env.time = 0