Tir NPC scripts

Continuation of pull request #26.