View Single Post
07-14-20, 02:37 PM   #2
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 320
Are you sure this code is running at all? It has some obvious syntax errors...

Have you enabled your error messages?
Code:
/console scriptErrors 1

I think your
Code:
local Pet()
print("function)
end
should really be
Code:
local function Pet()
  print("This is Pet()... or something.")
end

Furthermore, you are creating your frame as f, but use the variable name frame afterwards. This should throw an error, too.

Then you are using frame:SetScript() for "OnEvent" twice.
The second script assignment will override the first.
__________________
~ Be the change you want to see in the world... of warcraft interface! ~

Last edited by LudiusMaximus : 07-14-20 at 03:26 PM.
  Reply With Quote