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.

https://wowwiki-archive.fandom.com/w...attlefieldPortPHP код:local frame = CreateFrame("Frame")
frame:RegisterEvent("UPDATE_BATTLEFIELD_STATUS")
frame:SetScript("OnEvent", function(self, event, ...)
for i=1, MAX_BATTLEFIELD_QUEUES do
local status, mapName, instanceID = GetBattlefieldStatus(i)
if status == "confirm" then
AcceptBattlefieldPort(i,1)
StaticPopup_Hide("CONFIRM_BATTLEFIELD_ENTRY")
end
end
end)
При этом на офе, данная функция вызывалась без проблем.
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.




Ответить с цитированием