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
  #16  
Old 05-13-2008, 08:59 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by xXziroXx View Post
I did say MOST of the time.
Oh, when I was reading the thread, it seemed to have skipped about 4 posts when I hit page down, haha.
__________________
Do it with a DON!
Reply With Quote
  #17  
Old 05-13-2008, 10:05 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Not to flame Ziro, but just wanted to point out that you also need to join classes to the player on serverside for serverside functions, and in a system weapon on clientside as well for client functions to work.
__________________
Reply With Quote
  #18  
Old 05-14-2008, 12:35 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by xXziroXx View Post
All classes SHOULD be joined serverside whenever possible, period.
PHP Code:
//#CLIENTSIDE
function onPlayerEnters() {
  if (
player.ismalethis.join("stuff_for_guys");
  else 
this.join("stuff_for_girls");

Here is my simple local NPC which could join classes serverside, but would make my work much more tedious.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
  #19  
Old 05-14-2008, 09:33 AM
Dan Dan is offline
Daniel
Join Date: Oct 2007
Posts: 383
Dan is an unknown quantity at this point
Send a message via MSN to Dan
Quote:
Originally Posted by zokemon View Post
That's not true Ziro. Here's a perfect case:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
this.myobj = new TStaticVar();
  
this.myobj.join("myclass");

You wouldn't be able to do that serverside as your object doesn't exist over there .
I did this serverside and it works fine?

PHP Code:
case "accessClass": {
  
temp.access = new TStaticVar();
  
temp.access.join(params[1]);
  
temp.access.(@ params[2])(@ params[3]);
  
temp.access.destroy();
  return 
true;

Or isn't that what you ment?
__________________
Reply With Quote
  #20  
Old 05-14-2008, 09:57 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Dan View Post
I did this serverside and it works fine?

PHP Code:
case "accessClass": {
  
temp.access = new TStaticVar();
  
temp.access.join(params[1]);
  
temp.access.(@ params[2])(@ params[3]);
  
temp.access.destroy();
  return 
true;

Or isn't that what you ment?
He meant that if he had a TStaticVar() on Clientside you couldn't join that on Serverside. Or it would make no sense and wouldn't do anything at least.
__________________
Reply With Quote
  #21  
Old 05-14-2008, 10:41 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Dan View Post
I did this serverside and it works fine?
Of course it would WORK serverside, but not in the intended purpose as the object created on the serverside wouldn't be accessible clientside which is what we are talking about here.
__________________
Do it with a DON!
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 11:05 PM.


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