Hi ther eeveryone. My first post here... I'll apologize in advance for any nubbiness... I'm new to lua and wow ui.... but have experience in other scripting languages
Anyhow... my current problem is I am trying to display a message
for and only for the event that you get the error. "You are too far away!"
Code:
local frame2 = CreateFrame("Frame");
frame2:RegisterEvent("UI_ERROR_MESSAGE");
local function eventHandler(self, event, ...)
print("Test " .. event);
end
frame2:SetScript("OnEvent", eventHandler);
so where i have print("Test " .. event); would i put something like if msg=="You are too far away" then blah blah blah?
thanks for any help !