BuffChecks an Anti Crowd Control/Stun Plugin (PVP Purposes Only)
Hi guys this is a very simple program that I've made to break out of any crowd control combos. Works in PVP mostly. 2 Important skills needed is Battlerage and Auramancy. Classes that can be used are Darkrunners, Ardents, abolishers etc. I will add more checks later on. Just recently added archery to auto remove shackle. The plugin also auto thwarts. Detects Guards and sentry's and will not auto thwart within 40 meters of range. This plugin has helped me plenty of times in pvp. Hope you enjoy it. Although it was really simple to set up.
if there's other debuffs that stun or root you can add an extra if (base.getBuff(" Enter Debuff Here") != null) in either the bondbreak nest or the shrug it off nest.
Press [Insert] ingame to toggle Auto Thwart on/off
Press [LCTRL] Left Control to toggle Auto Nui's Nova on/off
Press [F2] To toggle perma stealth
Optional:
Code Updated: 7/13/2016
Hi guys this is a very simple program that I've made to break out of any crowd control combos. Works in PVP mostly. 2 Important skills needed is Battlerage and Auramancy. Classes that can be used are Darkrunners, Ardents, abolishers etc. I will add more checks later on. Just recently added archery to auto remove shackle. The plugin also auto thwarts. Detects Guards and sentry's and will not auto thwart within 40 meters of range. This plugin has helped me plenty of times in pvp. Hope you enjoy it. Although it was really simple to set up.
if there's other debuffs that stun or root you can add an extra if (base.getBuff(" Enter Debuff Here") != null) in either the bondbreak nest or the shrug it off nest.
Press [Insert] ingame to toggle Auto Thwart on/off
Press [LCTRL] Left Control to toggle Auto Nui's Nova on/off
Press [F2] To toggle perma stealth
Optional:
Code:
Best build for DR when using this plugin (Duel wield needed)
http://archeagedatabase.net/us/calc/314988
Two Handed DR Build
http://archeagedatabase.net/us/calc/364502
Pros: Using this allows you for easy getaway during any situation with the plugin enabled no one should be able to get a hold of you.
Cons: Witchcraft fear is a bitch in general :/
Code Updated: 7/13/2016
Code:
using ArcheBuddy.Bot.Classes;
using System;
using System.Windows.Forms;
using System.Threading;
/** Buffs Found here http:/pastebin.com/i8AZWxMv **/
namespace BuffChecks {
public class BuffCheckAdd : Core {
// Keypress Flags
bool _keyPressed1;
bool _keyPressed2;
bool _keyPressed3;
public void PluginRun() {
onKeyDown += BuffCheckAdd_onKeyDown1;
onKeyDown += BuffCheckAdd_onKeyDown2;
onKeyDown += BuffCheckAdd_OnKeyDown3;
while (true) {
if (_keyPressed1 == true)
ThwartGuardDetection();
if (_keyPressed2 == true) {
if (hpp() < 30)
UsePotsNova();
}
if (_keyPressed3 == true) {
if (isSkillLearned(10082) && skillCooldown(10082) == 0) {
UseSkill(10082);
}
}
// Archery Skill tree to remove Shackle
if (isSkillLearned(12133) && skillCooldown(12133) == 0) {
if (getBuff("Shackled") != null) {
UseSkill(12133);
Log("Shackle Detected. Snare Active " + DateTime.Now.ToString());
Thread.Sleep(30);
}
}
// Shrug it off: On use
if (isSkillLearned(11429) && skillCooldown(11429) == 0) {
// Counter Scorcery "Frozen Tracks"
if (getBuff("Ice Wall") != null) {
UseSkill(11429);
Log("Ice Wall Detected. Shrug it Off: Active: " + DateTime.Now.ToString());
Thread.Sleep(30);
}
//Shadowplay Overwhelm + Other Classes: Stun
if (getBuff("Stun") != null) {
UseSkill(11429);
Log("Stun Detected. Shrug it Off: Active: " + DateTime.Now.ToString());
Thread.Sleep(30);
}
//Occultism Hellspear + Vitalism Skewer: Impale or Impaled
if (getBuff("Impaled") != null) {
UseSkill(11429);
Log("Impaled Detected. Shrug it Off: Active: " + DateTime.Now.ToString());
Thread.Sleep(30);
}
if (getBuff("Impale") != null) {
UseSkill(11429);
Log("Impale Detected. Shrug it Off: Active: " + DateTime.Now.ToString());
Thread.Sleep(30);
}
if (getBuff("Skewer") != null) {
UseSkill(11429);
Log("Skewer Detected. Shrug it Off: Active: " + DateTime.Now.ToString());
Thread.Sleep(30);
}
if (getBuff("Hell Spear") != null) {
UseSkill(11429);
Log("Hellspear Detected. Shrug it Off: Active: " + DateTime.Now.ToString());
Thread.Sleep(30);
}
//Poison Stun: Mainly used for hasla farming from the poison stun.
if (getBuff("Poison Stun") != null) {
UseSkill(11429);
Log("Poison Stun Detected. Shrug it Off: Active: " + DateTime.Now.ToString());
Thread.Sleep(30);
}
// Witchcraft Focal Concussion Debuff
if (getBuff("Focal Concussion") != null) {
UseSkill(11429);
Log("Focal Concussion Detected. Shrug it Off: Active: " + DateTime.Now.ToString());
Thread.Sleep(30);
}
}
// Use Bondbreaker
if (isSkillLearned(12034) && skillCooldown(12034) == 0) {
if (getBuff("Ice Shard") != null) {
UseSkill(12034);
Thread.Sleep(30);
}
// Counter Scorcery Frigid Tracks
if (getBuff("Ice Wall") != null) {
UseSkill(12034);
Log("Ice Wall Detected. Bondbreaker: Active: " + DateTime.Now.ToString());
Thread.Sleep(30);
}
//slow
if (getBuff("Freeze") != null) {
UseSkill(12034);
Log("Freeze Detected. Bondbreaker: Active: " + DateTime.Now.ToString());
Thread.Sleep(30);
}
//Witchcraft Earthin Grip: Root
if (getBuff("Earthen Grip") != null) {
UseSkill(12034);
Log("Earthen Grip Detected. Bondbreaker: Active: " + DateTime.Now.ToString());
Thread.Sleep(30);
}
//Occultism Telekinesis: Root + Cannot Attack
if (getBuff("Telekinesis") != null) {
UseSkill(12034);
Log("Telekinesis Detected. Bondbreaker: Active: " + DateTime.Now.ToString());
Thread.Sleep(30);
}
//Witchcraft Bubble Trap: Root + Cannot Attack
if (getBuff("Bubble Trap") != null) {
UseSkill(12034);
Log("Bubble Trap Detected. Bondbreaker: Active: " + DateTime.Now.ToString());
Thread.Sleep(30);
}
//Witchcraft Lassitude: Slow into Sleep
if (getBuff("Lassitude") != null) {
UseSkill(12034);
Log("Lassitude Detected. Bondbreaker: Active: " + DateTime.Now.ToString());
Thread.Sleep(30);
}
//Archery Snare + other classes: Root
if (getBuff("Snare") != null) {
UseSkill(12034);
Log("Snare Detected. Bondbreaker: Active: " + DateTime.Now.ToString());
Thread.Sleep(30);
}
//Archery Charge Bolt + Other Classes: Slow
if (getBuff("Slow") != null) {
UseSkill(12034);
Log("Slow Detected. Bondbreaker: Active: " + DateTime.Now.ToString());
Thread.Sleep(30);
}
//Occultism Crippling Mire: Slow
if (getBuff("Crippling Mire") != null) {
UseSkill(12034);
Log("Crippling Mire Detected. Bondbreaker: Active: " + DateTime.Now.ToString());
Thread.Sleep(30);
}
//Battlerage Lasso: Pull
if (getBuff("Lassoed") != null) {
UseSkill(12034);
Log("Lasso Detected. Bondbreaker: Active: " + DateTime.Now.ToString());
Thread.Sleep(30);
}
}
Thread.Sleep(125);
}
}
// Call on plugin stop
public void PluginStop() {
ClearLogs();
}
// Use Nui's Nova Press [LCTRL] left control to toggle
private void UsePotsNova() {
var nova = itemCount("Nui's Nova");
if (nova == 0) {
Log("You don't have any Nui's Nova: " + DateTime.Now.ToString());
Thread.Sleep(500);
} else {
Log("You have " + nova + " Nui's Nova left in inventory: " + DateTime.Now.ToString());
UseItem("Nui's Nova");
Thread.Sleep(500);
}
}
//Press Insert ingame to toggle AutoThwart.
private void BuffCheckAdd_onKeyDown1(Keys key, bool isCtrlPressed, bool isShiftPressed, bool isAltPressed) {
//modify the key if needed
if (key == Keys.Insert) {
_keyPressed1 = !_keyPressed1;
Log("Toggled Thwart status: " + _keyPressed1);
}
}
private void BuffCheckAdd_onKeyDown2(Keys key, bool isCtrlPressed, bool isShiftPressed, bool isAltPressed) {
//modify the key if needed
if (key == Keys.LControlKey) {
_keyPressed2 = !_keyPressed2;
Log("Toggled Use Nui's Nova: " + _keyPressed2);
}
}
private void BuffCheckAdd_OnKeyDown3(Keys key, bool isCtrlPressed, bool isShiftPressed, bool isAltPressed) {
if (key == Keys.F2) {
_keyPressed3 = !_keyPressed3;
Log("Toggled Perma Stealth: " + _keyPressed3);
}
}
// To not auto thwart when neutral guards are in 40 meters of the area.
private void ThwartGuardDetection() {
double bestDistance = 99999.0D;
Creature closestGuard = null;
// Guard Detection method to detect the closest guard/sentry in the game.
foreach (Creature creature in getCreatures())
if (creature.name.ToLower() == "sentry" || creature.name.ToLower() == "guard")
if (dist(creature) < bestDistance || bestDistance == 99999.0D) {
bestDistance = dist(creature);
closestGuard = creature;
}
// if distance to npc (guard/sentry) is greater than <insert any value here> then use thwart.
if (bestDistance > 40) {
Thwart(bestDistance);
}
}
private void Thwart(double distance) {
// To not thwart when stealthed
if (isStealth() == false) {
if (isSkillLearned(16486) && skillCooldown(16486) == 0) {
UseSkill(16486);
Log("Thwart: Active: " + DateTime.Now.ToString() + " | Guard Distance: " + distance);
Thread.Sleep(30);
}
}
}
}
}
Attachments
Last edited: