Цитата Сообщение от Penny Посмотреть сообщение
PHP код:
local frame CreateFrame("Frame")
frame:RegisterEvent("UPDATE_BATTLEFIELD_STATUS")
frame:SetScript("OnEvent", function(selfevent, ...)
    for 
i=1MAX_BATTLEFIELD_QUEUES do
        
local statusmapNameinstanceID GetBattlefieldStatus(i)
        if 
status == "confirm" then
            AcceptBattlefieldPort
(i,1)
            
StaticPopup_Hide("CONFIRM_BATTLEFIELD_ENTRY")
        
end
    end
end



При этом на офе, данная функция вызывалась без проблем.
https://wowwiki-archive.fandom.com/w...attlefieldPort

12:34, 4 August 2010
Requires a hardware event if the second parameter is true or 1 to enter a battlefield. For leaving the battlefield no hardware event is required.