PDA

View Full Version : Lag-O-Meter


complexity
12-27-2004, 12:11 PM
You will need the 6 lag-o-leter pictures for this. Make a door and add the 6 pictures, then add this script in the same door. Then you are all set.


ON INCHAT { {
{ ltmr GLOBAL "" CHATSTR =
TICKS ltmr - n = n 60 / s = n 60 % x =
x 14 * 10 / x =
"Your lag time: " s ITOA + "." + x ITOA + " secs" + LOCALMSG
s 1 + n = { 5 n = } n 5 > IF
n ME SETSPOTSTATELOCAL 60 s 1 + * ME SETALARM
EXIT } ";lc" CHATSTR == IF } 0 ME GETSPOTSTATE == IF
}
ON OUTCHAT {
{ ME SELECT } CHATSTR "^[Ll][Aa]*[Gg]*[Cc][Hh]*[Ee]*[Cc]*[Kk]*$" GREPSTR IF
}
ON SELECT { ltmr GLOBAL TICKS ltmr =
";lc" WHOME PRIVATEMSG EXIT }
ON ALARM { 0 ME SETSPOTSTATELOCAL }