You need to set a shape to the npc so that an object is set, and you need to specify an x and y when triggering in a level/class npc.
PHP Code:
function onCreated() {
setshape(1,32,32);
}
function onActionTrigger() {
switch(params[0]) {
case "init":
message("Active..."); break;
}
}
//#CLIENTSIDE
function onCreated() {
triggeraction(x+1.5,y+1.5,"Trigger","init");
}