NPC spawner device completely bugged.

I already replied to you in this thread and provided code: