QuaintShantyESO / AutoQueue

Allows you to automatically accept queues.
1 stars 1 forks source link

Auto working 2023-12-28 #2

Open robertlabrie opened 10 months ago

robertlabrie commented 10 months ago

Seems to have stopped working again. I tried bumping the API version in my local AutoQueue.txt but it didn't make a difference. This was meant to work for PVP as well as dungeon finder right?

robertlabrie commented 10 months ago

....maybe not. Digging through the code for KillCounter I don't see it registering for ACTIVITY_FINDER_STATUS_READY_CHECK

robertlabrie commented 10 months ago

Ok yeah it's different for Cyro I dug this out of TelVar Saver

-- Auto queue stuff
function TVS.AutoQueueControl()
    if (TVS.SV.AutoAcceptQueue == false) then
        EVENT_MANAGER:UnregisterForEvent(TVS.name, EVENT_CAMPAIGN_QUEUE_STATE_CHANGED)
        return
    end
    EVENT_MANAGER:RegisterForEvent(TVS.name, EVENT_CAMPAIGN_QUEUE_STATE_CHANGED,TVS.AutoAccept)
end

function TVS.AutoAccept(eventCode, id, isGroup, state)
    local groupQueue = TVS.GetGroupQueue()

    if (state == CAMPAIGN_QUEUE_REQUEST_STATE_CONFIRMING) then
        TVS.dtvs("Entering campaign")
        ConfirmCampaignEntry(id, groupQueue, true)
    end
end

Sorry for the spam, lets keep this issue open I'm going to submit a PR

robertlabrie commented 10 months ago

https://github.com/QuaintShantyESO/AutoQueue/pull/3