View Single Post
  #90  
Old 12-09-2007, 08:26 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Code for Weapon/Gui-Script -System/Lag:
PHP Code:
//#CLIENTSIDE
function onCreated()
{
  
setTimer0.1 ); // Start the timeout
}
function 
onTimeOut()
{
  
client.serverLast serverr.real_time// Set the time we think it is
  
setTimer0.1 ); // Repeat the timeout

Code for wNPC LagSystem:
PHP Code:
function onCreated()
{
  
setTimer.1 ); // Start the timeout
}
function 
onTimeOut()
{
  
serverr.real_time timevar2// Set the real time
  
setTimer.1 ); // Repeat the timeout

Code for script class_lag:
PHP Code:
public function isPlayerLaggingacc// acc = account, a = margin for lagging; default is 1
{
  
temp.findPlayeracc ); // Find the player
  
if ( temp.== NULL // Player not online
  
{
    return 
true// No player, must be lagging!
  
}
  if ( 
|| == NULL // If a is less than zero, or not set
  
{
    
1// Set it to 1, which is the default
  
}
  
// Is it in the correct margin?
  
return ! ( temp.i.client.serverLast in serverr.real_time aserverr.real_time  | );
}
public function 
isLagginglag// lag = client.serverLast, a = margin for lagging; default is 1
{
  if ( 
|| == NULL // If a is less than zero, or not set
  
{
    
1// Set it to 1, which is the default
  
}
  
// Is it in the correct margin?
  
return ! ( lag in serverr.real_time aserverr.real_time | );

This could be used to simply kick people out if they're 1 second behind, which, really, if you're doing it in under a second, you really don't have enough time to abuse the glitch (I'm assuming the monster would attack you while you just stood there, and party members would kill them while you were on escape?).

I did test this, and it did work. Also worked with stopping modem taping.
__________________