If you want to make it better, you could change the button activation to:
Code:
case 70094: // turmoil
c.getCombat().activatePrayer(25);
break;
Then open combatassistant, search "case 25:" (Asuming you're changing Piety into Turmoil if not find the case and replace the code with this:
Code:
if (c.prayerActive[i] == false) {
c.gfx100(1224);
c.startAnimation(3926);
for (int j = 0; j < atkPray.length; j++) {
if (atkPray[j] != i) {
c.prayerActive[atkPray[j]] = false;
c.getPA().sendFrame36(c.PRAYER_GLOW[atkPray[j]], 0);
}
}
for (int j = 0; j < strPray.length; j++) {
if (strPray[j] != i) {
c.prayerActive[strPray[j]] = false;
c.getPA().sendFrame36(c.PRAYER_GLOW[strPray[j]], 0);
}
}
for (int j = 0; j < rangePray.length; j++) {
if (rangePray[j] != i) {
c.prayerActive[rangePray[j]] = false;
c.getPA().sendFrame36(c.PRAYER_GLOW[rangePray[j]], 0);
}
}
for (int j = 0; j < magePray.length; j++) {
if (magePray[j] != i) {
c.prayerActive[magePray[j]] = false;
c.getPA().sendFrame36(c.PRAYER_GLOW[magePray[j]], 0);
}
}
for (int j = 0; j < defPray.length; j++) {
if (defPray[j] != i) {
c.prayerActive[defPray[j]] = false;
c.getPA().sendFrame36(c.PRAYER_GLOW[defPray[j]], 0);
}
}
}
break;
This makes it so if you activate the prayer and the player can use it, then it will do the animation and gfx. If not, it wont do it. The method posted above, it will do the emote everytime you click the prayer even if you aren't 95 prayer or are activating/deactivating it.