Thanks for submitting it.
I have checked it, the problem is that
the npc uses a special function for say/say2
to parse the image codes (#i) and such stuff
and that function is npc-independed,
so no npc variables can be accessed.
I will fix that in the next version.