View Single Post
06/05/14, 01:31 AM   #2
Tar000un
 
Tar000un's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 47
A good practice is to prefix your public function with the addon name. You will avoid few kinds of conflict. As example :
PileOMobs.lootReceived
I also saw with a :, instead the dot.


And i think you missed a name on the second, and got a wrong controller.
PileOMobs:RegisterForEvent(EVENT_LOOT_RECEIVED, lootReceived)

Try to type it like the first, what will be like :
EVENT_MANAGER:RegisterForEvent("PileOMobs", EVENT_LOOT_RECEIVED, lootReceived)

Last edited by Tar000un : 06/05/14 at 01:33 AM.
  Reply With Quote