Add riochecker
This commit is contained in:
11
FreshShit/RIOChecker/event2.lua
Normal file
11
FreshShit/RIOChecker/event2.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
-- UNIT_TARGET
|
||||
function(e, source)
|
||||
if not source then return end
|
||||
if not source == "player" then return end
|
||||
if not UnitExists("target") then return end
|
||||
if not UnitIsPlayer("target") then return end
|
||||
local name = UnitName("target")
|
||||
if not name then return end
|
||||
if not aura_env.me then aura_env.me = UnitName("player") end
|
||||
SendChatMessage(".ch " .. name, "WHISPER", nil, aura_env.me)
|
||||
end
|
||||
Reference in New Issue
Block a user