Page 1 of 1

MQ2AutoGroup

Posted: Sun Mar 24, 2013 4:52 pm
by dabs
For some reason my alts used to auto accept any invite to a group when invited. It might just be a mq2 option or another plugin I can't find. Anyways here is my version of this.

Code: Select all

#include "../MQ2Plugin.h"


PreSetup("MQ2Autogroup");

PLUGIN_API DWORD OnIncomingChat(PCHAR Line, DWORD Color)
{
   PSPAWNINFO pMe = GetCharInfo()->pSpawn;
   if(strstr(Line,"invites you to join a group."))
   {
      WriteChatColor("Invite detected",CONCOLOR_YELLOW);
      DoCommand(pMe, "/invite");
   }
   
   return 0;
}

Re: MQ2AutoGroup

Posted: Sun Mar 24, 2013 6:57 pm
by Noren
I had mine stop working once - it turned out to be the MQ2AutoGroup.ini file needed editing.

I'd open yours up and correct the numbering of people to accept invites from. I think if there are duplicates or if it skips a number, the plugin breaks.