View Single Post
  #5  
Old 12-28-2012, 07:33 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
Also to my original problem. I still need to trigger from the weapon showing the dialog to the level npc, so on a waitfor it knows when to continue. I'm still basically using the same thing, send a trigger to server in weapon, send a trigger serverside in weapon to serverside on level npc.

On the level npc now though it's just this for waiting for the trigger from the wnpc:

PHP Code:
function onPlayerTouchsMe()
{
  
npc_stop();
  
this.dir = (player.dir 2) % 4;
  
waitfor(this"onDialogDone"3600);
  
npc_continue();

I've also tried just "DialogDone" in waitfor as well... it's not doing anything until the waitfor times out.

The weapon npc:
PHP Code:
function onActionServerside()
{
  if (
params[0] == "finishedDialog")
  {
    
level.npc.(@params[1]).trigger("DialogDone");
  }
}
//#CLIENTSIDE 
function doesntReallyMatter() 

  
triggerserver("gui"this.name"finishedDialog"this.speaker);

__________________
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 07:48 AM..
Reply With Quote