自动指定战场
本帖最后由 QQ_CAFE57 于 2024-8-31 05:27 PM 编辑local Name = "阿拉希"
if not MiniMapBattlefieldFrame:IsVisible() then
BeeRun('/console Sound_EnableSFX 0')PVPParentFrame:Show()PVPParentFrameTab2:Click()
if string.find(BattlegroundType1:GetText(),Name) then
BattlegroundType1:Click()
PVPBattlegroundFrameJoinButton:Click()
end
if string.find(BattlegroundType2:GetText(),Name) then
BattlegroundType2:Click()
PVPBattlegroundFrameJoinButton:Click()
end
PVPParentFrame:Hide()BeeRun('/console Sound_EnableSFX 1')
end
local PVPP_F = PVPP_F or CreateFrame("Frame")
PVPP_F:RegisterEvent("UPDATE_BATTLEFIELD_STATUS")
PVPP_F:RegisterEvent("CHAT_MSG_BG_SYSTEM_NEUTRAL")
PVPP_F:SetScript("OnEvent",function(self,event,...)
if ... and string.find(...,"胜利") and event == "CHAT_MSG_BG_SYSTEM_NEUTRAL" then
LeaveBattlefield()
end
if ... and event == "UPDATE_BATTLEFIELD_STATUS" then
AcceptBattlefieldPort(...,true)
end
end) 掉帧问题可能和elvui之类插件有冲突,你应该单开魔蜂在测试 这个最好自己测试,一段一段注释掉测试 每个技能施放条件准确无误后return返回 为什么都是 ' 而不是" ?? 有些服DK一出手就卡,也可能跟魔蜂没关系 没有return一运行不是所有技能抢着放吗?
因为有gcd的存在你同一时间只能放一个技能,要么 elseif 要么加return
页:
[1]