Hi,
My bot randomly disconnects when it uses rogue's FootWork ability. I get kicked out into the "High Latency or Spam" Screen and have to wait for a minute to reconnect.
The timer is set to 1000 ms. I tried raising it, but that seemed to result in more frequent disconnects. I check every ability I use for cooldown using the code below which is pretty much copy pasted from the game files:
Code:
protected function is_in_cooldown(Skill:Object):Boolean
{
Player = Game.world.myAvatar;
effective_haste = (1 - Math.min(Math.max(Player.dataLeaf.sta.$tha, -1), 0.5));
var _local4:int;
if ((now - Game.world.GCDTS) < Game.world.GCD)
return true;
if (Skill.OldCD != null)
_local4 = Math****und((Skill.OldCD * effective_haste));
else
_local4 = Math****und((Skill.cd * effective_haste));
if ((now - Skill.ts) >= _local4)
return false;
return true;
}
Does anyone have any idea what might be going wrong?
Thanks