Results 1 to 9 of 9
  1. #1
    linabutterfly's Avatar
    Join Date
    Sep 2014
    Gender
    female
    Posts
    2
    Reputation
    10
    Thanks
    1

    Question Random disconnects when using Footwork ability

    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

  2. #2
    Oliboli8769's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Location
    Boliworlds
    Posts
    2,197
    Reputation
    455
    Thanks
    3,815
    If your cool-down calculations are correct, then it may be the alternate 1 second cool-down between skills are cast? This shouldn't really cause disconnects though.

    Hard to say really, could be multiple things. Do you have any other functions running simultaneously?
    Double check that you have your timer set correctly to tick only when the cool-down is over, could be a simple proofreading mistake.

    If you want a second pair of eyes to look over your project, feel free to PM me. If you're worried about me stealing your stuff - I don't release stuff anymore, and if I did then AE would have my ass, so no need to worry

  3. #3
    linabutterfly's Avatar
    Join Date
    Sep 2014
    Gender
    female
    Posts
    2
    Reputation
    10
    Thanks
    1
    Thanks for the reply.

    I can't message you until I've posted 10 times, so we can just talk here. I have no problems with sharing code, I'm just doing this for fun, and to learn AS3. It's just that the code has grown considerably and might be too much to post in a forum and I cannot paste a link. So .... ummmm what to do?

  4. #4
    Oliboli8769's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Location
    Boliworlds
    Posts
    2,197
    Reputation
    455
    Thanks
    3,815
    Quote Originally Posted by linabutterfly View Post
    Thanks for the reply.

    I can't message you until I've posted 10 times, so we can just talk here. I have no problems with sharing code, I'm just doing this for fun, and to learn AS3. It's just that the code has grown considerably and might be too much to post in a forum and I cannot paste a link. So .... ummmm what to do?
    Eh...
    oliboliaqwhack@hotmail.com

    I know... email... but I can't think of any other way right now

  5. #5
    cuckold cancer 8=D's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Location
    Forever Ville.
    Posts
    9,867
    Reputation
    1699
    Thanks
    4,925
    So is this solved....

  6. #6
    Oliboli8769's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Location
    Boliworlds
    Posts
    2,197
    Reputation
    455
    Thanks
    3,815
    Quote Originally Posted by Forever Young View Post
    So is this solved....
    Whether it is or it isn't... how does it concern you?

  7. #7
    cuckold cancer 8=D's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Location
    Forever Ville.
    Posts
    9,867
    Reputation
    1699
    Thanks
    4,925
    Quote Originally Posted by Venerable View Post
    Whether it is or it isn't... how does it concern you?
    Well if it was solved I wanted a minion to close it
    sorry tho

  8. #8
    linabutterfly's Avatar
    Join Date
    Sep 2014
    Gender
    female
    Posts
    2
    Reputation
    10
    Thanks
    1
    I'm not sure I can say it's solved.
    Our best guess so far is:
    1-Footwork reduces its own cooldown to 15 seconds, which is exactly how long Footwork lasts.
    2-You can use that to reactivate Footwork immediately before its Cooldown is restored to normal.
    3-If the reactivation request is delayed, it might reach the server AFTER it has restored the Cooldown to normal which will cause it to see the request as spam.

    I added a check to prevent Footwork from reactivating immediately and this seems to have solved the problem. But since the disconnects were random I can't be 100% sure. Also this check significantly reduces Rogue's effectiveness.

    So , yeah, maybe, kinda solved.

  9. #9
    NormenJaydenFBI's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Canterlot, Equestria
    Posts
    12,212
    Reputation
    1021
    Thanks
    3,215
    No response after two days, assuming solved.
    /Closed


    MPGH Staff History:
    Minion: 02-12-2013 - 6-28-2013
    Former Staff: 6-28-2013 - 7-14-2014
    Minion: 7-14-2014 - 1-3-2015
    Minion+: 1-3-2015 - 6-1-2015
    Moderator: 6-1-2015 - 10-2-2016
    Global Moderator: 10-2-2016 - Current

    Current Sections:
    DayZ Mod & Standalone Hacks & Cheats
    BattleOn Games Hacks, Cheats & Trainers
    Minecraft Hacks
    Other Semi-Popular First Person Shooter Hacks
    Blackshot Hacks & Cheats
    Need For Speed World Hacks
    Other First Person Shooter Hacks
    CounterStrike: Global Offensive Hacks
    Garry's Mod Hacks & Cheats


    Donating:
    If you want to donate money to me I take Bitcoin & Paypal, PM me for either of these if you're interested and thanks.
    Top Donators: (Awesome People)
    FanticSteal $75.00
    smurf_master $58.00 <- Best DayZ Gear Seller
    Fujiyama $25.00
    [MPGH]Black $10.00
    [MPGH]Hova $10.00
    xJudgez $4.54
    [MPGH]Normen's Sheep $3.50
    eminemlover $1.50


    Brony?
    http://www.mpgh.net/forum/groups/1728-mpgh-bronies.html

Similar Threads

  1. Replies: 1
    Last Post: 12-15-2013, 01:22 AM
  2. [Solved] Visual Timer when using abillity !
    By Scellow in forum Realm of the Mad God Help & Requests
    Replies: 7
    Last Post: 08-11-2013, 05:47 AM
  3. [Solved] I KEEP DISCONNECTING EVERY 5MINUTES WHEN USING HACKS
    By Dogg- in forum Combat Arms Help
    Replies: 1
    Last Post: 02-15-2012, 04:56 AM
  4. Why my C.A disconnect when I use hacks
    By schnits in forum Combat Arms Hacks & Cheats
    Replies: 14
    Last Post: 07-26-2009, 01:04 PM
  5. Warrock crashes when using this code in my D3D hack...
    By k2hacker in forum C++/C Programming
    Replies: 0
    Last Post: 07-21-2008, 06:04 PM