Script to leave Queue after X extentions
Hello, I tried to write in my own addon a script to auto remove que after X extentions, but it doesn't work.
local frame = CreateFrame("FRAME", nil, UIParent)
frame:RegisterEvent("CHAT_MSG_SYSTEM")
frame:SetScript("OnEvent",
function(self, event, arg1)
if arg1 == "Your matchmaking search radius has been extended 3/10 times"
then
AcceptBattlefieldPort(1,0) -- Removes Queue
print("MMR extention reached 3/10, queue removed.")
end
end)
I believe the synthax is correct in fact when I reach 3/10 I get the print message, though the queue doesn't get removed, I believe because it's an hardware function and may require click/button so it may be protected. Can someone confirm this, or have any other suggestion? I like to que for soloq but without having too much mmr extention.
Thanks, greetings!