View Single Post
07/04/14, 03:27 AM   #6
zgrssd
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 280
Originally Posted by simosf View Post
I'm gratefull for your help (:

I'll change the code to post to chat and then if the problem still exists i'll post the full addon so you can see (is not that not big).

What do i need to add to show at chat ?
d(sourceName..":"..abilityName) ??
If you want to learn everything there is about an event, just feed all it's parameters to d():
Lua Code:
  1. local function MyEventOnHit(...)
  2.     d("MyEventOnHit: ", ...)
  3. end
  4.  
  5. EVENT_MANAGER:RegisterForEvent( "tlw" , EVENT_COMBAT_EVENT , MyEventOnHit )

... is a placeholdeer for "everything that you get as pararameter". If you put ... in your parameter list, any amount and any types of parameters can be given to your function. You can then handle the ... parameter via select statements. Or just relay it too anotehr function directly.
d itself uses ... too, to take any amount of parameters.

If you have BugEater isntalled I would disable it for now. It can sometimes cause issues with the output of d()
  Reply With Quote