Put together a quick plugin that will send you a email, and then log you out on GM detection.
Make sure you enable Generate FoundGameMaster event, under general settings tab on Archebuddy.
Don't forget to change "[email protected]" to your emai address (has to be a gmail email).
You can also disable client termination, by setting TerminateClient to false.
If you have any questions feel free to ask, I didn't have a chance to really test it. (Every time I tried no GM was ever detected on my server :/)
Code:
using System;
using System.Drawing;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;
using System.Net.Mail;
using System.Text;
namespace DefaultNameSpace
{
public class DefaultClass : Core
{
// If you don't want the client to be terminated on GM Detection set this to false.
bool TerminateClient = true;
//Set your email inside of the " ", has to be gmail
string yourEmail = "[email protected]";
public void sendEmail()
{
string DateTime = System.DateTime.Now.ToString("dd-MM-yyyy HH:mm:ss");
SmtpClient client = new SmtpClient();
client.Port = 25;
//restricted stmp, you can only send emails from this relay to Gmail accounts.
client.Host = "aspmx.l.google.com";
client.Timeout = 10000;
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.UseDefaultCredentials = false;
//sender, your email, Subject, body
MailMessage message = new MailMessage("[email protected]", yourEmail, "GM Detection", "Detected GM at: " + DateTime);
message.BodyEncoding = UTF8Encoding.UTF8;
client.Send(message);
}
public void termClient()
{
if (TerminateClient == true)
{
TerminateGameClient();
}
}
public static string GetPluginAuthor()
{
return "Veviya";
}
public static string GetPluginVersion()
{
return "1.0.0.0";
}
public static string GetPluginDescription()
{
return "Logs you out on GM Detection";
}
bool GMDetected;
//Call on plugin start
public void PluginRun()
{
onFoundGameMaster += FoundGameMaster;
while (true)
{
Thread.Sleep(500);
if(GMDetected == true)
{
break;
}
}
}
//Call on plugin stop
public void PluginStop()
{
}
public void FoundGameMaster(Creature obj)
{
sendEmail();
termClient();
GMDetected = true;
}
}
}
Make sure you enable Generate FoundGameMaster event, under general settings tab on Archebuddy.
Don't forget to change "[email protected]" to your emai address (has to be a gmail email).
You can also disable client termination, by setting TerminateClient to false.
If you have any questions feel free to ask, I didn't have a chance to really test it. (Every time I tried no GM was ever detected on my server :/)
Last edited: