Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Low latency spar (https://forums.graalonline.com/forums/showthread.php?t=48761)

HoudiniMan 10-22-2003 04:53 AM

Low latency spar
 
How would one go about scripting a spar room that pinged the player when they entered the spar room once, and then left them alone?

I can do it myself, im not asking for a script, just a game plan. Not sure how i could do this reliably and i can't measure miliseconds with it only processing every 0.1 seconds.

zs0 10-22-2003 05:06 AM

Holy crap, people are amazing with scripting.. x_x..

Kaimetsu 10-22-2003 05:14 AM

Quote:

Originally posted by zs0
Holy crap, people are amazing with scripting.. x_x..
And seeing somebody ask for help with a simple problem makes you more confident in this opinion?

HoudiniMan 10-23-2003 07:43 AM

*bump*

Nobody?

Python523 10-23-2003 07:54 AM

use timevar2 serverside, save the time in which it gets the player, then compare it with the time after it gets the player

HoudiniMan 10-23-2003 10:07 AM

that updates once every 5 sec... if you are 5 sec between actions you wouldn't be able to connect.

Kaimetsu 10-23-2003 01:10 PM

timevar2 is precise to milliseconds, I believe. Possibly lower.

Idrox0 11-02-2003 04:18 AM

Lower than milliseconds? Wow...:megaeek:

ForgottenLegacy 11-02-2003 06:53 PM

Is it possoble to get the exact value of timevar and timevar2? In a #v(), all I get is somthing like 4.2562E341, in scientific notation.

Kaimetsu 11-02-2003 07:04 PM

Quote:

Originally posted by ForgottenLegacy
Is it possoble to get the exact value of timevar and timevar2? In a #v(), all I get is somthing like 4.2562E341, in scientific notation.
It's just truncated when it's converted into a string.


All times are GMT +2. The time now is 06:38 AM.

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