Originally Posted by suicidalkatt
You want to check that the event passed is equal to the name of the event:
|
You're initialising the oEvents table as an array of strings (i.e. strings are values), but you're using it as if it were a hashset (i.e. strings are keys).
You should be initialising it like this:
lua Code:
local oEvents = { -- These are events that we can check for
GOSSIP_SHOW = true,
BANKFRAME_OPENED = true,
GUILDBANKFRAME_OPENED = true
}