Hello,
I am trying to get my arena cap but i have to drop MMR alot because playing at 1k8 in 2v2 with no gear is just destined to lose.
Now I got in contact with the dev of the Arena Cap plugin, he used to have a drop MMR plugin that would make the char join and leave queu.
But because off blizzards latest deserter system he stopped developping the plugin.
I was wondering if anybody could help me how to put in a check that would check if you are in combat before leaving the arena so that I don't have the deserter debuff.
Code:
public void ArenaCheck(object sender, LuaEventArgs args) {
MsgCnt++;
if (MsgCnt == 1)
{
ArenaBehavior();
}
else if (MsgCnt == 2)
{
ArenaMovement();
}
else if (MsgCnt == 3)
{
Random r = new Random();
Log("The arena has started. Waiting for combat.");
while(!Me.Combat) {
Thread.Sleep(r.Next(5000, 12000));
if(Me.Combat) {
Log("Combat detected! Leaving the arena...");
break;
}
Log("Couldn't detect combat, assuming we won the arena. Leaving now..");
break;
}
ArenaPlayed++;
Log("Played " + ArenaPlayed.ToString() + " games.");
InArena = false;
MsgCnt = 0;
QueueTries = 0;
Lua.DoString("RunMacroText(\"/script LeaveBattlefield()\");");
Thread.Sleep(r.Next(4000, 7000));
}
}
Thanks in advance for the help I can post the whole package if it works!