Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   global_motionblur.gani Crash (https://forums.graalonline.com/forums/showthread.php?t=134267121)

ffcmike 09-15-2012 12:55 AM

global_motionblur.gani Crash
 
I believe there is a possibility global_motionblur.gani is being used by hacker(s) as a method to crash players clients, simply by setting it to their characters gani as opposed to its normal usage as a gani attribute.

While there are ways this could be detected by script, could this possibly be prevented in a more reliable way?
Maybe the gani's script could be modified to ensure it is not set to the players actual ani, like as follows:

PHP Code:

function onTimeout() {
  if(
player.ani.name == "global_motionblur"){
    return;
  }
  
//stuff



fowlplay4 09-15-2012 01:08 AM

Judging by script, lolcursion occurs which looks quite easy to fix.

PHP Code:

SCRIPT
const TIMEGAP 0.05;
const 
MOTIONSTEPS 5;

function 
onPlayerEnters() {
  
onTimeout();
}

function 
onTimeout() {
  
this.counter = (this.counter 1) % MOTIONSTEPS;
  if (
player.ani.name != "global_motionblur") { // dat fix
    
showTrail();
  } else {
    
hideimgs(200,201+MOTIONSTEPS);
  } 
  
setTimer(TIMEGAP);
}

function 
showTrail() {
  
with (findimg(200 this.counter)) {
    
layer 0;
    
player.x;
    
player.y;
    
player.z;
    
ani player.ani.name "[" player.anistep "]";
    
dir player.dir;
    
playerlook true;
    
actor.mode 1;
  }

  for (
temp.i=0temp.i<MOTIONSTEPStemp.i++)
    
findimg(200 + (this.counter+1+temp.i)%MOTIONSTEPS).actor.alpha 0.1 0.8*temp.i/MOTIONSTEPS;
}
SCRIPTEND 


cbk1994 09-15-2012 01:19 AM

Quote:

Originally Posted by fowlplay4 (Post 1703840)
Judging by script, lolcursion occurs which looks quite easy to fix.

Nice. All Stefan needs to do now is change one line in one file on one server. Maybe by Christmas?

callimuc 09-15-2012 01:38 AM

I already realized this on iEra, but thought its just me. But than some days later it worked fine for me on another server so I didnt bother reporting this.
Well maybe I had a fixed one, not sure

Admins 09-15-2012 02:04 AM

I've updated and reloaded the file.

ffcmike 09-15-2012 02:11 AM

Quote:

Originally Posted by Stefan (Post 1703845)
I've updated and reloaded the file.

It's fixed, thanks.

cbk1994 09-15-2012 01:25 PM

Quote:

Originally Posted by Stefan (Post 1703845)
I've updated and reloaded the file.

Merry Christmas!

Emera 09-15-2012 02:55 PM

I actually emailed Stefan about this 3 or 4 months ago, but I never received a reply and I didn't notice any change in the bug's behaviour. Thanks for bringing this up Thor.


All times are GMT +2. The time now is 12:08 AM.

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