whenever triggerserver is used, it always passed to the event
PHP Code:
onActionServerside(params)
to write the triggerserver, you would use
PHP Code:
triggerserver("npc", "TestNPC", "test", "foo");
after doing this, onActionServerside would be invoked in that NPC, with params[0] being "test", and params[1] being "foo".
If all this is already happening on the serverside instead of the clientside, as Seich said, you can directly access the function in the NPC itself as long as the function is defined as a public function