Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Transfering Data... (https://forums.graalonline.com/forums/showthread.php?t=68662)

projectigi 09-11-2006 12:42 AM

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)

JkWhoSaysNi 09-11-2006 12:48 AM

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

projectigi 09-11-2006 01:40 AM

well i dont know if like 40+ triggeractions every .2 seconds are good for the server Oo

JkWhoSaysNi 09-11-2006 02:11 AM

what do you need so much data to be constantly transferred for? There might be a better way to do it.

Yen 09-11-2006 04:11 AM

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.


All times are GMT +2. The time now is 05:40 PM.

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