I suggest you rename the '['PHP] tag to [NPC] because the current NPC code tag is ugly and who honestly post's php codes on here.
Which is better:
NPC Code:
function onCreated(){
//
}
or
PHP Code:
function onCreated(){
//
}
Not that it really matters, but just a suggestion =P