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 11-29-2003, 05:53 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
Serverside npc questions

On making very simple actions work such as say, say2, noplayerkilling, and sparringzone :
serverside, I find that they do not work on a map level.

I have tried them with loadmap and a gmap file, also with the old setmap command, with and without the //#CLIENTSIDE declaration.

They work offline but not on my server. Anyone know why and how to make those very simple things work on a mapped level?
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #2  
Old 11-29-2003, 06:01 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
noplayerkilling & sparringzone are clientside-only commands.
Reply With Quote
  #3  
Old 11-29-2003, 06:12 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
okay...

so why does the npc
NPC Code:

//#CLIENTSIDE
noplayerkilling


not work on the server?
What is the correct format?
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #4  
Old 11-29-2003, 06:29 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
You're probably better off putting that inside an event block, e.g.:

NPC Code:

//#CLIENTSIDE
if (playerenters) {
noplayerkilling;
}



Beyond that, dunno what your problem might be.
Reply With Quote
  #5  
Old 11-29-2003, 06:54 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
thank you, that worked for the noplayerkilling event.

But wouldn't you know it, that does not work for sparring zones?

Anyone know how to make a sparringzone on a map level in a server?

in non-map level I have this one line npc
NPC Code:

sparringzone


and that room works fine.

put that npc on a mapped level, does not work. Cliendtside line, nope. Event block with or without clientside, nope.

anyone know how to make it work?
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #6  
Old 11-29-2003, 07:08 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
NPC Code:

//#CLIENTSIDE
if (playerenters) {
sparringzone;
}



Should do it...
Reply With Quote
  #7  
Old 11-29-2003, 07:15 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
nope

you would think that would work, but it does not.

I thnk sparringzone has to do with the server becasue you can press R to see your and other's ratings?

Anyone else want to take a guess before I pm stefan on this apparent error?
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #8  
Old 11-29-2003, 07:16 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Nah, sparring zones are handled clientside - the server's got no idea whether or not you're in a sparring zone - only the client knows this.
Reply With Quote
  #9  
Old 11-29-2003, 08:24 AM
DIABLO2099 DIABLO2099 is offline
Registered User
Join Date: Sep 2002
Location: New York
Posts: 290
DIABLO2099 is on a distinguished road
Did you try...
NPC Code:
//#CLIENTSIDE
sparringzone



This command sort of confused me before because it was required that it did not have semi-colon or any spaces when I used it.
__________________
-Former UnholyNation Server Manager.

Call me Xecutor.
Reply With Quote
  #10  
Old 11-29-2003, 09:11 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by DIABLO2099
Did you try...
NPC Code:
//#CLIENTSIDE
sparringzone



This command sort of confused me before because it was required that it did not have semi-colon or any spaces when I used it.
Come to think of it, that rings a bell. I remember having similar difficulties with it when I was but a newbie.
Reply With Quote
  #11  
Old 11-29-2003, 10:03 AM
Alexander Alexander is offline
Registered User
Join Date: Apr 2003
Location: California
Posts: 246
Alexander is on a distinguished road
Send a message via AIM to Alexander
Make sure theres no spaces after sparringzone or it won't work.
Reply With Quote
  #12  
Old 11-29-2003, 01:40 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by Lance
Nah, sparring zones are handled clientside - the server's got no idea whether or not you're in a sparring zone - only the client knows this.
Actually the server should - AP and rating calculations better not be done clientside.

Other than that, sparringzone is not a script command and thus has to be in an npc by itself. Stefan probably got lazy implementing proper parsing
Reply With Quote
  #13  
Old 11-29-2003, 03:54 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
I have tred every suggestion in this thread, and none of them work on a mapped level on a server. Thank you all for your time in trying to help, I will pm Stefan about this now.
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #14  
Old 11-29-2003, 05:50 PM
Luigi1 Luigi1 is offline
The OtherOther Shaded Leg
Join Date: Jul 2003
Location: In front of a monitor
Posts: 333
Luigi1 is on a distinguished road
On SL, I've had to make 2 seperate NPC's containing these codes respectively to get the sparring zone to fully work:

NPC Code:
sparringzone


NPC Code:
//#CLIENTSIDE
sparringzone



Err. Or maybe the first one isn't needed. Either way, I'm still the biggest idiot to ever exist
__________________
Quote:
Originally Posted by mystic2k
that post did really makes me think how much braincells you have.
*waits for nifty Graal admin person to tell me what happened to vip.graal.net*
Reply With Quote
  #15  
Old 11-29-2003, 08:15 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by Luigi1
On SL, I've had to make 2 seperate NPC's containing these codes respectively to get the sparring zone to fully work:
NPC Code:
sparringzone


NPC Code:
//#CLIENTSIDE
sparringzone


Err. Or maybe the first one isn't needed. Either way, I'm still the biggest idiot to ever exist
As Lance said, you're probably better off putting that inside an event block.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #16  
Old 11-29-2003, 09:20 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by osrs
As Lance said, you're probably better off putting that inside an event block.
asjkdhaksdjasdk NO, as I just said.


NPC Code:
sparringzone
//#CLIENTSIDE
sparringzone

should work.
Reply With Quote
  #17  
Old 11-29-2003, 09:44 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
aha!

Stefan replied to my pm; I was right, it's a programming oversight, he said:

Quote:
Re: Sparringzone server error
Yes the sparring zone thing is not working for levels in a gmap. I should probably add the sparring calculation as scripting command.
so I guess we can look for a fix in the next graal version?
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
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 06:57 PM.


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