Firstly, there's some things you could improve with your code. There's not really any consitancy with your styling, and instead of using a timeout you can use scheduleEvent()
Secondly, you just have to set the text of the NPC to what you want it to say using this.chat;
PHP Code:
function onCreated() {
this.chat = player.clientr.hp;
scheduleEvent(2, "onDestroy");
}
function onDestroy() {
this.destroy();
}
If that's what you mean.