Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-30-2005, 12:28 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
So how do I send a message from the serverside to the clientside for the clientside to execute some clientside commands?
__________________
Reply With Quote
  #2  
Old 09-30-2005, 08:46 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Googi
So how do I send a message from the serverside to the clientside for the clientside to execute some clientside commands?
NPC Code:
function onCreated()
{
triggeraction(0, 0, "clientside", "weaponname", "lol");
}
//#CLIENTSIDE
function onActionclientside()
{
player.chat = "THIS IS CLIENTSIDE!";
}

__________________
Skyld
Reply With Quote
  #3  
Old 09-30-2005, 08:07 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by Skyld
NPC Code:
function onCreated()
{
triggeraction(0, 0, "clientside", "weaponname", "lol");
}
//#CLIENTSIDE
function onActionclientside()
{
player.chat = "THIS IS CLIENTSIDE!";
}

Serverside created is not called in weapons.
__________________
Liek omigosh.

Reply With Quote
  #4  
Old 09-30-2005, 08:10 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by Ajira
Serverside created is not called in weapons.
I think it is, but not for when the weapon is created for the player, but when it is updated (created).

PHP Code:
function onCreated() {
  echo(
"Test.");

That works on a weapon script when it's updated.

But yes... triggering clientside from a serverside onCreated() in a weapon will not work.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #5  
Old 09-30-2005, 08:12 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by napo_p2p
I think it is, but not for when the weapon is created for the player, but when it is updated (created).
That does not count. =P
__________________
Liek omigosh.

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:54 PM.


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