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

Add on to log off when GM detected?

Status
Not open for further replies.

Orlok

Member
Joined
Mar 3, 2013
Messages
184
Reaction score
4
Is there such a thing yet? I would love to see this add-on. Maybe it would prevent GM bans?
 
i cant say if the event works, but if it does, then adding

Code:
private void onGmFound(Creature ob)
{
  Log(" A gm was detected. Logging off");
  CloseGame();
}
to your core plugin class and
Code:
onFoundGameMaster += onGmFound;
to your pluginrun. Would do the trick (altho its a bit dirty, some proper cleanup code should also be added. it would close the game client whenever a gm is detected)

Now as for if the onFoundGameMaster is reliable / work, i have no idea, i never tested it. But its here
 
Last edited:
+1

A friend of mine was banned during one of those "I am GM etc, please PM me bot locations".
 
Hmm awesome, it would be awesome to do more research and work into such a plugin. I'd definitely pay for it.
 
The code i written should just work as a plugin. But i cant release it as a dll since it would cause exceptions error in AB if you close the client without first stopping the plugins you are using. So write your own plugin to include the stopplugins calls needed to properly shut down your bot and tadam
 
The code i written should just work as a plugin. But i cant release it as a dll since it would cause exceptions error in AB if you close the client without first stopping the plugins you are using. So write your own plugin to include the stopplugins calls needed to properly shut down your bot and tadam

Wow really? Do other forum users know about this code? My friend you could be saving so many headaches!!!
 
well, its a 3 line thing. Check my first reply to this topic >_>

I did not invent it or anything. That would be whoever wrote the event itself (i suppose thats Out). All the code i posted do is use the feature AB provide.
 
They basically advertise when the GMs are active in game. We just need a plugin that detects the green text that appears when they make the server wide announcement and it should work quite well.
 
Can somebody make this into a plugin.. would be greatly appreciated.
 
grab that code, combine it with the plugin example and an infinite loop in pluginstart(), and tadam, Plugin.

Just that as i warned, it will cause errors in AB if you dont first shutdown your running plugins in the ongm event.

We dont have any way that i know off in AB to "read" the announcement messages (so unless thats what the onFoundGameMaster do, then no luck here).

But i do know the onFoundGameMaster got fired yesterday when i saw a gm online so it appear to at least partially works. Just add a few stopplugin("path/path.dll") where you change the path to be your running plugins in the onGmFound block and your set. When a gm is detected, it would stop all your running plugins, then stop itself
 
Status
Not open for further replies.
Back
Top