Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 08-29-2001, 10:08 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool Stefan you should add support for

you should add support for

keydown server side...

I say that because I am making something that uses key down but everyone on the level has to see you move the object...

I know I can use trigger action but that glitchs up sometimes (like it freezes or something and is kind of lagged)
__________________
Thanks,
-KJL
  #2  
Old 08-29-2001, 10:19 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
yeah, he really should
  #3  
Old 09-03-2001, 02:15 AM
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
Don't know, then all key action would need to
be sent to the server
  #4  
Old 09-03-2001, 02:23 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Quote:
Originally posted by Stefan
Don't know, then all key action would need to
be sent to the server
true but it would be better then using trigger auction like 10000 times for this game I am making...
__________________
Thanks,
-KJL
  #5  
Old 09-03-2001, 10:36 PM
oscarjf1 oscarjf1 is offline
Registered User
Join Date: Aug 2001
Location: I live in the US
Posts: 107
oscarjf1 is on a distinguished road
Send a message via AIM to oscarjf1
.....

Couldnt you make something like Keydown2() that is server side? Kinda like onwall2 or something. It would make things a lot easier,
__________________
I speek on behalf of my staff.
~laterz

Lagoonia Staff
-Tiki God Of Power
  #6  
Old 09-03-2001, 10:46 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Re: .....

Quote:
Originally posted by oscarjf1
Couldnt you make something like Keydown2() that is server side? Kinda like onwall2 or something. It would make things a lot easier,
see stefan doesn't want to make it server side because then when someone hits a key any key it would have to send data to the server what key it sends...

and it would be usless on most levels for that to happen


mabie you can do something like

if(created)
getkeys;

and it sends the keys for that level only...

then on that level and only that level you say that on you can say like

if(keydown(blah))
__________________
Thanks,
-KJL
  #7  
Old 09-04-2001, 12:04 AM
oscarjf1 oscarjf1 is offline
Registered User
Join Date: Aug 2001
Location: I live in the US
Posts: 107
oscarjf1 is on a distinguished road
Send a message via AIM to oscarjf1
Re: Re: .....

Quote:
Originally posted by KJS


see stefan doesn't want to make it server side because then when someone hits a key any key it would have to send data to the server what key it sends...

and it would be usless on most levels for that to happen


mabie you can do something like

if(created)
getkeys;

and it sends the keys for that level only...

then on that level and only that level you say that on you can say like

if(keydown(blah))
Good idea... Adding something like cangetkeys to an NPC that would then send it to the server would be really great. kinda like canwarp for an NPC.
__________________
I speek on behalf of my staff.
~laterz

Lagoonia Staff
-Tiki God Of Power
  #8  
Old 09-04-2001, 04:18 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
triggeraction is made for this kind of stuff
  #9  
Old 09-04-2001, 07:10 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Quote:
Originally posted by Kaimetsu
Guys, this would be stupid. Too much lag, and the NPC would never have an up-to-date version of the player's keys. Learn to use triggeraction for it.
I know I can use triggeraction but then I would have to do that everytime someone moves (it is for a game I want to make)
__________________
Thanks,
-KJL
  #10  
Old 09-04-2001, 07:15 PM
Yakuna2001 Yakuna2001 is offline
Registered User
Yakuna2001's Avatar
Join Date: Jun 2001
Location: England U.K
Posts: 940
Yakuna2001 is on a distinguished road
Send a message via AIM to Yakuna2001
Quote:
Originally posted by KJS


I know I can use triggeraction but then I would have to do that everytime someone moves (it is for a game I want to make)
live with it.
__________________

-Manager of the UnholyNation PlayerWorld-
UnholyNation Forums
  #11  
Old 09-04-2001, 08:00 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
Do some stuff on client-side and only
send informations when it is necessary
  #12  
Old 09-05-2001, 03:11 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
For some NPCs that contain bot CLient and Server codes i make the client one check for keys ythen set a setstring client.keydown,#v(var); and then the server checks the clinet for that. Triggeraction i dont believe works if the client Script is triggering the serverside script if its the same NPC. that might be nice if it could though. Aparently triggeraciton wont work between 2 weapons the clinet has either.
__________________

subliminal message: 1+1=3
 


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:27 PM.


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