Jump to content

Special Attack Snippet


Recommended Posts

Posted


if (Settings.specName == "Dragon Scimitar") { //if u have settings where u select spec weapon

if (getCombat().getSpecialPercentage() >= 55) { //change for different weapons or use some sort of map

if (getEquipment().isWieldingWeapon(Settings.specName)) {

if (!getCombat().isSpecialActivated()) {

int startSpec = getCombat().getSpecialPercentage();

getCombat().toggleSpecialAttack(true);

new ConditionalSleep(3000, 3500){

@Override

public boolean condition(){

return getCombat().getSpecialPercentage() < startSpec;

}

}.sleep();

}

} else {

slot = getInventory().getSlot(Settings.specName);

getInventory().getItem(Settings.specName).interact("Wield");

sleep(800);

if (!getCombat().isSpecialActivated()) {

int startSpec = getCombat().getSpecialPercentage();

getCombat().toggleSpecialAttack(true);

new ConditionalSleep(3000, 3500){

@Override

public boolean condition(){

return getCombat().getSpecialPercentage() < startSpec;

}

}.sleep();

}

}

} else if (getEquipment().isWieldingWeapon(Settings.specName)) {

getInventory().getItemInSlot(slot).interact("Wield");

sleep(800);

}

  • Like 4
  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...