View Single Post
06/18/14, 08:36 AM   #4
Harven
 
Harven's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 135
Hey,
remember that first parameter to all events functions is the event code:

Lua Code:
  1. local function UsePotion( eventCode, itemSoundCategory )
  2.     if itemSoundCategory == ITEM_SOUND_CATEGORY_POTION then
  3.         d("Potions!")
  4.     end
  5. end
  Reply With Quote