Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-04-2005, 06:33 PM
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
Question Gscript2 and level NPCs clientside

I have found a curious problem with Gscript2 on Rudora.
Gscript2 works clientside and serverside in weapons, and it works on the serverside in DB NPCs (I have not tried to use it on the clientside with DB NPCs yet).
But my main concern is level NPCs. If a Gscript2 NPC is in a level, then the serverside part of the script will run but the clientside part will not. Simple things like this will not run:
NPC Code:
//#CLIENTSIDE
function onPlayerChats() {
player.chat="Hello";
}


Any ideas?
Reply With Quote
  #2  
Old 04-04-2005, 07:05 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Quote:
Originally Posted by Skyld
I have found a curious problem with Gscript2 on Rudora.
Gscript2 works clientside and serverside in weapons, and it works on the serverside in DB NPCs (I have not tried to use it on the clientside with DB NPCs yet).
But my main concern is level NPCs. If a Gscript2 NPC is in a level, then the serverside part of the script will run but the clientside part will not. Simple things like this will not run:
NPC Code:
//#CLIENTSIDE
function onPlayerChats() {
player.chat="Hello";
}


Any ideas?
New scripting works in normal npcs too, but there might be problems if you do update level. For staying compatible with old clients it eventually sends the old scripting on "update level". If you relogin it should use new scripting if you have new client.
Reply With Quote
  #3  
Old 04-04-2005, 07:08 PM
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
Okay, will take another look at that later
Thanks Stefan
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 12:44 AM.


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