help whith auto ability 059 client

Posts 16 of 6 · Page 1 of 1
help whith auto ability 059 client
my aout ability doesant make sense on paladin and knigth
like if i have mana the auto ability spam seals
and on knigth spamm to like 3 secs of stun but dont wait the stun time and stun again wasting all mana !!
help help help
Quote Originally Posted by joaopedrobsb View Post
my aout ability doesant make sense on paladin and knigth
like if i have mana the auto ability spam seals
and on knigth spamm to like 3 secs of stun but dont wait the stun time and stun again wasting all mana !!
help help help
Ask 059 to change how it works or do it yourself.
something like

Code:
public static function sleep(ms:int):void {
    var init:int = getTimer();
    while(true) {
        if(getTimer() - init >= ms) {
            break;
        }
    }
}

locate ability code and initialize
Code:
sleep(5000);
use Grep tool for locating strings.
Quote Originally Posted by ProfessionalSeller View Post
something like

Code:
public static function sleep(ms:int):void {
    var init:int = getTimer();
    while(true) {
        if(getTimer() - init >= ms) {
            break;
        }
    }
}

locate ability code and initialize
Code:
sleep(5000);
use Grep tool for locating strings.
Maybe I don't understand how RotMG's game loop works, but that looks like a fantastic way to freeze it for 5 seconds.
Quote Originally Posted by AllYourX View Post
Maybe I don't understand how RotMG's game loop works, but that looks like a fantastic way to freeze it for 5 seconds.
5 seconds? 2 seconds?. For all I care you can make it 20 minutes?

It's a VERY simple concept. At least a starting point for beginners.
Quote Originally Posted by ProfessionalSeller View Post
something like

Code:
public static function sleep(ms:int):void {
    var init:int = getTimer();
    while(true) {
        if(getTimer() - init >= ms) {
            break;
        }
    }
}

locate ability code and initialize
Code:
sleep(5000);
use Grep tool for locating strings.
Sorry that isn't gonna work bud. That'll just freeze flash on a 5000/1000 second loop.

Best solution is to setup a local timer for your abilities to be "spamed" on.

Note: Haven't coded anything in as3 for a couple months now so dont mind the syntax.
Code:
private _abilityTimer:Timer = new Timer(ms);

public function startAbilityLoop() : void 
{
     _abilityTimer.Start();
     //timer should have a event in which u can invoke a function each iteration i dont quite remember been  a while
}
Posts 16 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?