View Single Post
  #8  
Old 12-28-2012, 07:49 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
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...
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...



Last edited by sssssssssss; 12-28-2012 at 04:09 PM..
Reply With Quote