QQ_CAFE57 发表于 2024-5-2 12:28:08

自动指定战场

本帖最后由 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)

打的就是精锐 发表于 2024-5-3 09:43:12

掉帧问题可能和elvui之类插件有冲突,你应该单开魔蜂在测试

feixia5693 发表于 2024-5-2 15:55:47

这个最好自己测试,一段一段注释掉测试

lk47354813 发表于 2024-5-3 13:03:13

每个技能施放条件准确无误后return返回

bornkiller 发表于 2024-5-4 00:23:02

为什么都是 ' 而不是" ??

notveryimba 发表于 2024-5-6 09:58:50

有些服DK一出手就卡,也可能跟魔蜂没关系

7858321 发表于 2024-5-30 20:24:05

没有return一运行不是所有技能抢着放吗?
因为有gcd的存在你同一时间只能放一个技能,要么 elseif 要么加return
页: [1]
查看完整版本: 自动指定战场