Jump to content

Special Attack Snippet


LoudPacks

Recommended Posts


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
Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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