Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Bug Actionbar methods always returning false

Joined
Jun 20, 2015
Messages
183
Code:
for(Slot m : ActionBar.getFilledSlots()){
                if(adrenPercent<100){
                      
                     if(Globals.stringInArray(m.getName(), Threshholds)){
                            System.out.println("Found thresh");
                            if(!m.isCoolingDown() || m.isReady()){
                                Keyboard.typeKey(m.getKeyBind());
                                System.out.println("Activating thresh");
                                //m.activate(true);
                                return;
                            }
                     }
               } else {
                        if(Globals.stringInArray(m.getName(), Ultimates)){
                            System.out.println("Found ult");
                            if(!m.isCoolingDown() || m.isReady()){
                                Keyboard.typeKey(m.getKeyBind());
                                System.out.println("Activating ult");
                                //m.activate(true);
                                return;
                            }
                        }
                }
                }

The slot.activate() method doesn't work either, but getKeyBind() works. But it will find the ability and never activate. @Vaped
 
Joined
Dec 10, 2014
Messages
3,332
Code:
for(Slot m : ActionBar.getFilledSlots()){
                if(adrenPercent<100){
                     
                     if(Globals.stringInArray(m.getName(), Threshholds)){
                            System.out.println("Found thresh");
                            if(!m.isCoolingDown() || m.isReady()){
                                Keyboard.typeKey(m.getKeyBind());
                                System.out.println("Activating thresh");
                                //m.activate(true);
                                return;
                            }
                     }
               } else {
                        if(Globals.stringInArray(m.getName(), Ultimates)){
                            System.out.println("Found ult");
                            if(!m.isCoolingDown() || m.isReady()){
                                Keyboard.typeKey(m.getKeyBind());
                                System.out.println("Activating ult");
                                //m.activate(true);
                                return;
                            }
                        }
                }
                }

The slot.activate() method doesn't work either, but getKeyBind() works. But it will find the ability and never activate. @Vaped
Could be due to the global cooldown. I'll see if I can replicate this issue (never activating) with Alpha Fighter later today.
 
Joined
Dec 10, 2014
Messages
3,332
It was activating, but it looks like activate() uses isCoolingDown(), which includes the global 3s cooldown after each skill is cast, including the ones automatically activated when in Revolution mode, meaning that there is a very small window that the bot will activate skills.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
It was activating, but it looks like activate() uses isCoolingDown(), which includes the global 3s cooldown after each skill is cast, including the ones automatically activated when in Revolution mode, meaning that there is a very small window that the bot will activate skills.
It uses isReady() which means isActivatable() && !isCoolingDown(). Are you suggesting it should be changed? If so how?
 
Top