Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Triggers to the clientside (https://forums.graalonline.com/forums/showthread.php?t=59572)

ChibiChibiLuc 06-22-2005 08:06 PM

Triggers to the clientside
 
Do triggers to the clientside work with the new engine?

I have an NPC weapon.
It sends a trigger to a DB.
The DB extracts the data requested.
The DB returns the data to the player.

The problem is, once it returns to the player I need it to send an action to the clientside, telling the weapon that it got the data. It doesn't receive the trigger to the client.

NPC Code:
function onReturnData(category,list) {
triggeraction(0,0,"clientside",#N,category,list);
}
//#CLIENTSIDE
function onActionClientside() {
player.chat = "Received.";
}




onReturnData is being called properly.
onActionClientside isn't being called at all.

And I don't have v4, so triggerclient isn't an option. :(

Velox Cruentus 06-22-2005 09:53 PM

Try onactionclientside

I do believe that triggeractions are Case Sensitive.

EDIT:
I do believe there is a triggerclient function as well. Might want to check into it.

CheeToS2 06-22-2005 10:04 PM

If Velox's suggestions don't work, try changing #N to the weapon's name. Maybe mixing old GScript with new is causing problems.

Ajira 06-22-2005 11:23 PM

Quote:

Originally Posted by Velox Cruentus
I do believe that triggeractions are Case Sensitive.

Nope.

ChibiChibiLuc 06-23-2005 04:13 PM

Nope, I've already tried both. :/

Rick 06-23-2005 04:37 PM

If you are using the new engine, why are you using old engine constructs?

HTML Code:

function onReturnData(category, list)
{
  player.triggerclient(player.weapon.name, temp.category, temp.list);
}

//#CLIENTSIDE
function onActionClientside()
{
  player.chat = "Received.";
}


Kaimetsu 06-23-2005 04:40 PM

Quote:

Originally Posted by Rick
If you are using the new engine, why are you using old engine constructs?

"And I don't have v4, so triggerclient isn't an option. :("

Rick 06-23-2005 05:30 PM

Quote:

Originally Posted by Kaimetsu
"And I don't have v4, so triggerclient isn't an option. :("

triggerclient is serverside. So it works fine.

Kaimetsu 06-23-2005 05:34 PM

Quote:

Originally Posted by Rick
triggerclient is serverside. So it works fine.

I'm not saying that I agree with his reason. I'm just pointing out that he did post one.

Rick 06-23-2005 05:37 PM

Quote:

Originally Posted by Kaimetsu
I'm not saying that I agree with his reason. I'm just pointing out that he did post one.

Oh, whoops. I missed that bit at the end of his post.

Inverness 06-24-2005 06:23 AM

Would be nice if save[index] could save strings/arrays aswell.


All times are GMT +2. The time now is 01:37 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.