Hi belier140,
Not sure if this will work or not but try replacing this line:
local TYPE_MONSTER, TYPE_NPC, TYPE_ACTION, TYPE_UNIQUE = 1, 2, 3, 4
With:
local TYPE_MONSTER, TYPE_NPC, TYPE_ACTION, TYPE_UNIQUE = 2, 3, 5, 6
Hope that helps.
Cheers,
Yodot.