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

[Plugin] Suspected User buff detector

LordManzana

New Member
Joined
May 2, 2015
Messages
207
Reaction score
0
Hello!

I created one simple plugin wich allow you log out your account when get suspected user buff.

Updated:
Added new buff's according to https://www.thebuddyforum.com/archebuddy-forum/222056-debuff-botting.html

Compile that code:
Code:
using System;
using System.Drawing;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;
using System.Media;

namespace BadBuff4Free
{
    /*
     * That Plugin is being under the Creative Commons BY-NC-SA v4.0
     * More information about licence here: https://creativecommons.org/licenses/by-nc-sa/4.0/
     */
    public class BadBuff4Free : Core
    {
        //Start edit zone, you can edit values.

        //Interval (in seconds) used to check if you have or not the bot debuff.
        int checkDebuff = 1;

        //End edit zone, don't touch nothing more if you don't know what are you doing

        bool imPlaying = true;

        public static string GetPluginAuthor()
        {
            return "LordManzana";
        }

        public static string GetPluginVersion()
        {
            return "1.0.1.1";
        }

        public static string GetPluginDescription()
        {
            return "Awesome BadBuff checker";
        }

        public void PluginStop()
        {
            Log("Awesome BadBuff checker closed");
        }

        public void PluginRun()
        {
            onFoundGameMaster += GameMasterFound;
            while (imPlaying)
            {
                if (me.isAlive())
                {
                    foreach (Buff buff in me.getBuffs())
                    {
                        //Get buff's id from
                        //https://www.thebuddyforum.com/archebuddy-forum/community-developer-forum/220208-updated-weekend-buff-name-id-list.html
                        if (!me.inFight && (buff.id == 4861 || buff.id == 4862 || buff.id == 631 || buff.id == 4876 || buff.id == 14713))
                        {
                            Log("Suspected buff detected, you will be disconnected");
                            LeaveWorldToCharacterSelect();
                            imPlaying = false;
                        }
                    }
                    Thread.Sleep(checkDebuff * 1000);
                }
            }
        }

        private void GameMasterFound(Creature ob)
        {
            Log("Game Master was detected. Logging off");
            //LeaveWorldToCharacterSelect();
            CloseGame();
        }
    }
}

Hope will help you :)

Buy me a coffe if you want apreciate my work with any donation :)
 
Last edited:
Since it just closes game how to deal with scheduler? It will just restart account.
 
Since it just closes game how to deal with scheduler? It will just restart account.

That plugin don't close the game, just put your account on character selection. You are free to add one line which allows you to re-conect your desireed char (using one thread sleep before reenter, of course).

But... Are you sure want to enter on server when GM are detected near you? ^^
 
That plugin don't close the game, just put your account on character selection. You are free to add one line which allows you to re-conect your desireed char (using one thread sleep before reenter, of course).

But... Are you sure want to enter on server when GM are detected near you? ^^
Thats why I askd bout scheduler and how it works. I definitely dont want to reconnect near GM)))
 
Thats why I askd bout scheduler and how it works. I definitely dont want to reconnect near GM)))

Code:
            Thread.Sleep(60*1000); //Example of one minute. Change 60 for desireed seconds before reenter.

            var world = getWorlds().Find(w => w.name == "name of your world, example: Aier");
            var chararcters = world.getCharacters();
            if (chararcters.Count == 0 || (chararcters.Count > 0 && !chararcters[charSlot].EnterGame()))
            {
                Log("No characters on this world or error while we try to enter game!");
                return;
            }else{
                Log("Entering...");
            }

Hope I help.
 
Last edited:
After some time (approx 20-30 mins) script just give
D:\buddy\Plugins\antiGM\antiGM.dllUnknown executing error, or plugin was forcibly unloaded.
in main log
Awesome BadBuff checker closed
in local log and stops. Can u help?
 
After some time (approx 20-30 mins) script just give
D:\buddy\Plugins\antiGM\antiGM.dllUnknown executing error, or plugin was forcibly unloaded.
in main log
Awesome BadBuff checker closed
in local log and stops. Can u help?

I'm using 8h/day and not get errors... Always got this error?
 
Question, I am not sure reporting works the same. I reported a teleport bot the other day and they no longer get a debuff from what i see. Has anyone else seen? I don't think debuffs show anymore.
 
You can't report players in some conditions (like other player factions, when player are in combat, fishing, etc).

You sure reported it?
 
What about a plugin that just takes you to the Arena to remove the debuff, then goes to the character screen and back into the game whenever you get the debuff?
 
Back
Top