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-11-2006, 12:42 AM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
Transfering Data...

Hi,

so i have a problem now
i need to send the client the position of all other players(or at least all that the client can see on the screen) and a few strings for every player
how would i do that?(well its easy but how would i do that without lagging the whole server, since it will happen like every .2 secs and will be done for every player)
Reply With Quote
  #2  
Old 09-11-2006, 12:48 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
check out my map script I recently posted in the Code Gallery. It solves this exact problem.

http://forums.graalonline.com/forums...ewpost&t=68644
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #3  
Old 09-11-2006, 01:40 AM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
well i dont know if like 40+ triggeractions every .2 seconds are good for the server Oo
Reply With Quote
  #4  
Old 09-11-2006, 02:11 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
what do you need so much data to be constantly transferred for? There might be a better way to do it.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #5  
Old 09-11-2006, 04:11 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
The player's attr[1-30] variables are global, meaning they're shared between server and all clients, and can hold up to 255 characters.
attr[1] is the hat image by default. Also, you can set ganis to the attr[] attributes to attach them to the player.
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 08:20 PM.


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