PHP Code:
function onPM() {
if (params[1] == "testmsg") {
sendpm("woot, you got a message back!");
}
}
just have
setpm(NULL); in the onCreated() part of Control-NPC,
then it should work
params[0] is something
params[1] is the text being sent to the npcserver
also, try this when you have
setpm(NULL);
PHP Code:
function onRC()
echo(params);