What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

MrMeow

Member
Joined
Apr 29, 2014
Messages
32
Reaction score
0
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:
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:
nice for sure. should you maybe also check for if the skill is on cooldown before trying to use thwart?
 
There is small error on the plugin. In case u are level 55 and want to use Stealth need to change:

// Change the stealth rank if lower than level 50
if (base.getBuff("Stealth (Rank 3)") == null)

to:

// Change the stealth rank if lower than level 55
if (base.getBuff("Stealth (Rank 4)") == null)

as max Stealth rank is 4 at level 55. Otherwise Thartw will be cast when stealth.
 
Last edited:
There is small error on the plugin. In case u are level 55 and want to use Stealth need to change:

// Change the stealth rank if lower than level 50
if (base.getBuff("Stealth (Rank 3)") == null)

to:

// Change the stealth rank if lower than level 55
if (base.getBuff("Stealth (Rank 4)") == null)

as max Stealth rank is 4 at level 55. Otherwise Thartw will be cast when stealth.

Oops. Didn't know that. I was rank 54 when I used this then I quit the game so I thought of taking advantage and writing an anti debuff plugin. I'll change it to Stealth rank 4.
 
do you need the rank in there? i mean won't it work at lower ranks or is that needed for some reason in the getbuff ?
if not why have it then anyone can use it that has it without it being lvl based? just a thought and no idea if you can or you could use
if (base.getBuff("Stealth (Rank 4)") == null || base.getBuff("Stealth (Rank 3)") == null || base.getBuff("Stealth (Rank 2)") == null || base.getBuff("Stealth (Rank 1)") == null)
then it will check all lvls of it? no idea if the rank matters for rest of the code or not etc either so I am probably talking out my ??? :)
 
do you need the rank in there? i mean won't it work at lower ranks or is that needed for some reason in the getbuff ?
if not why have it then anyone can use it that has it without it being lvl based? just a thought and no idea if you can or you could use
if (base.getBuff("Stealth (Rank 4)") == null || base.getBuff("Stealth (Rank 3)") == null || base.getBuff("Stealth (Rank 2)") == null || base.getBuff("Stealth (Rank 1)") == null)
then it will check all lvls of it? no idea if the rank matters for rest of the code or not etc either so I am probably talking out my ??? :)
last time I tried without the rank and just did if (base.getBuff("Stealth") == null) it still tried to thwart when stealthed. But yea, I like your idea better. I just didn't think of it lol. I'll change it.
 
last time I tried without the rank and just did if (base.getBuff("Stealth") == null) it still tried to thwart when stealthed. But yea, I like your idea better. I just didn't think of it lol. I'll change it.

Use skill ID's instead of names, it won't work for lower levels as well not for RU/GER/FR clients :)
 
Is it posible to add when detect Shackle effect use Snare skill?

Thanks
 
Gaarax your talking about on the mob or person right? this plugin is for self checks not checking and casting things on person your pvping against
 
Is it posible to add when detect Shackle effect use Snare skill?

Thanks

Almost every skill is blocked when shackled. no skill such as liberation is allowed to be active during the duration of shackle. Liberation allows you to use your skills when (shadowsmite -Shackle Debuff) is used, but has to be activated before shackle is in place.

EDIT:
Is it posible to add when detect Shackle effect use Snare skill?

Thanks

I see what you mean never mind. Will update for archery :)
 
Last edited:
Updated 12/10/15:
  1. Added a toggle to turn on or off auto thwart. Press [Insert] Ingame to toggle on or off. (can modify the keypress in code)
  2. Modified stealth to use isStealthed() instead :/
  3. Added Time in the logs

Updated 12/11/15:
  • Added Auto Nui's Nova toggle by pressing [LCTRL] Left Control. (can modify the keypress in code)
 
Last edited:
meow, ur plugin's amazing but can u add Stillness to the plugin? sometimes i want to play with executioner, that's a good class for gank and cancel fear.
 
dude can u explain to me how that in game time work?
To be honest, I have no idea. I tested it out and some reason it goes ape shit in arena. I thought that it would actually show the ingame time. I realize it doesn't. Then I also realized that I left it in the code without deleting it. Laziness FTW?

meow, ur plugin's amazing but can u add Stillness to the plugin? sometimes i want to play with executioner, that's a good class for gank and cancel fear.
I'll add it later on. I've just been on and off in Archeage.

Thanks Mrmeow. U are a great mod maker :)
Thank you :D
 
Last edited:
I may be dumbed or something, the auto twarth/auto pots works perfectly but not the anti cc, i m enigmatist n my shrugh it off doesnt auto use on CC.
 
Back
Top