Changed above post to match what I have. Sorry about that.
It's still mostly the same. I might just have the wrong idea of how this is supposed to work, but from my understanding you call the trigger to the level npc from the serverside of the wnpc. The level npc sits with a waitfor, waiting for that trigger name to pull up, from the trigger sent from the wnpc.
Like I said I've tried onDialogDone and DialogDone as well in the waitfor.
Ill just post what I got so we're up to date with each other xD
Still not working unfortunately...
wnpc:
PHP Code:
function onActionServerside()
{
if (params[0] == "finishedDialog")
{
("Control-NPC").npc.(@params[1]).trigger("DialogDone");
}
}
level npc:
PHP Code:
function onCreated()
{
("Control-NPC").npc.jaqor = this;
this.join("npc_movement");
// stuff
}
function onPlayerTouchsMe()
{
npc_stop();
this.dir = (player.dir + 2) % 4;
waitfor(this, "onDialogDone", 3600);
npc_continue();
}
Did just DialogDone on waitfor too...