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

自己写的335DK魔蜂脚本,掉帧严重

本帖最后由 QQ_CAFE57 于 2024-5-2 12:29 PM 编辑

开启魔蜂前
https://picabstract-preview-ftn.weiyun.com/ftn_pic_abs_v3/51632264a5800011b8fd6d10a5534f6179f785b732835f86658e866b2c493f637477ca02a5ce0d77a07920667c935399?pictype=scale&from=30113&version=3.3.3.3&fname=1.png&size=750
开启魔蜂后

https://picabstract-preview-ftn.weiyun.com/ftn_pic_abs_v3/bce905ef69cde288a42f02758479ea101b06b943f5d5214d14134796444023b527488daa77949e7f1ee57dec6c0408ac?pictype=scale&from=30113&version=3.3.3.3&fname=2.png&size=750



if not UnitIsDead('player') and not BeeUnitCastSpellName('player') then
    ---------------------------------------------------------------------局部变量
    local JL = BeeRange('target')--目标距离
    local PL = BeeUnitBuffList('player')--玩家BUFF
    local TL = BeeUnitBuffList('target')--目标BUFF
    local PNL = BeeUnitMana('player','%')--玩家能量
    local PXL = BeeUnitHealth('player','%')--玩家血量
    local TXL = BeeUnitHealth('target','%')--目标血量
    local CW = BeeUnitHealth('pet')>0
    local XX = BeeRune('鲜血符文')
    local BS = BeeRune('冰霜符文')
    local XE = BeeRune('邪恶符文')
    local SW = BeeRune('死亡符文')
    local XY = BeeTargetDeBuffTime('血之疫病')
    local BY = BeeTargetDeBuffTime('冰霜疫病')
    ---------------------------------------------------------------------释放法术(死亡凋零)
    if SpellIsTargeting() then CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop() end
    ---------------------------------------------------------------------
    if not IsMounted() then
      ---------------------------------------------------------------------
      if not BeeUnitAffectingCombat() then
            ---------------------------------------------------------------------战斗外增益
            if not UnitBuff('player','寒冬号角') and BeeSpellCD('寒冬号角')==0 then BeeRun('寒冬号角')end
            if not UnitBuff('player','星骓') and GetItemCooldown('item:410010')==0 thenBeeRun('item:410010') end
            ---------------------------------------------------------------------
      elseif BeeUnitAffectingCombat() then CloseGossip()
            ---------------------------------------------------------------------战斗内增益
            if BeeSpellCD('狂乱')==0 then BeeRun('狂乱') end
            if BeeSpellCD('白骨之盾')==0 then BeeRun('白骨之盾') end
            if BeeSpellCD('铜墙铁壁')==0 then BeeRun('铜墙铁壁') end
            if BeeSpellCD('符文刃舞')==0 then BeeRun('符文刃舞') end
            if BeeSpellCD('黑锋冰寒')==0 then BeeRun('黑锋冰寒') end
            if BeeSpellCD('召唤石像鬼')==0 then BeeRun('召唤石像鬼') end
            if BeeSpellCD('食尸鬼狂乱')==0 and pet then BeeRun('食尸鬼狂乱') end
            ---------------------------------------------------------------------战斗内减伤
            if BeeStringFind('利刃屏障',PL) and (XX>0 or SW>0) then BeeRun('血液沸腾') end
            if not BeeStringFind('鲜血灵气',PL) then BeeRun('鲜血灵气') end
            if BeeUnitAffectingCombat() and PXL<=50 and BeeSpellCD('冰封之韧')==0 then
                BeeRun('冰封之韧')end
            if BeeUnitAffectingCombat() and PXL<=50 and BeeSpellCD('吸血鬼之血')==0 then
                BeeRun('吸血鬼之血')end
            if BeeUnitAffectingCombat() and PXL<=50 and BeeSpellCD('鲜血印记')==0 then
                BeeRun('鲜血印记','target')end
            ---------------------------------------------------------------------
      end
            ---------------------------------------------------------------------特色增益
            if not UnitBuff('player','※雷之领域※增伤') and GetItemCooldown('item:410220')==0 then BeeRun('item:410220') end
            if not UnitBuff('player','※风之领域※移速') and GetItemCooldown('item:410820')==0 then BeeRun('item:410820') end
            if not UnitBuff('player','※空之领域※急速') and GetItemCooldown('item:410720')==0 then BeeRun('item:410720') end
            if not UnitBuff('player','※水之领域※减伤') and GetItemCooldown('item:410320')==0 then BeeRun('item:410320') end
            if not UnitBuff('player','※火之领域※智力') and GetItemCooldown('item:410620')==0 then BeeRun('item:410620') end
            if not UnitBuff('player','※木之领域※敏捷') and GetItemCooldown('item:410520')==0 then BeeRun('item:410520') end
            if not UnitBuff('player','※石之领域※力量') and GetItemCooldown('item:410420')==0 then BeeRun('item:410420') end
            ---------------------------------------------------------------------
    end
    ---------------------------------------------------------------------目标选择
    BeeRun('/targetenemy ')
    if JL>9 then BeeRun('/targetenemy')end
    ---------------------------------------------------------------------输出循环
    if BeeUnitHealth('target')>0 and UnitCanAttack('player','target')==1 and JL<31 then
      BeeRun('/startattack')BeeRun('凛风冲击')
      if JL<9 then
            --if not BeeStringFind('虚弱对手',TL) then BeeRun('item:666067') end   
            --if (BS>0 or SW>0) and BY<1.5 then BeeRun('冰冷触摸')end
            if (XE>0 or SW>0) and XY<1.5 then BeeRun('暗影打击')end
            --if XY>=19 and XX>0 then BeeRun('传染')end
            if ((BY>0 and XY>0 and BS>0 and XE>0) or (BY>10 and XY>10 and SW>1) or (((BS>0 or XE>0) and SW>0 and BY>5 and XY>5) and (XX>0 or BeeRuneCD('鲜血符文')<=5))) and BeeUnitHealth('player','%')<=75 then BeeRun('灵界打击')end
            --if BY>0 and XY>0 and (XX>0 or SW>0) then BeeRun('鲜血打击')end   
            --if BY>0 and XY>0 and (XX>0 or SW>0) then BeeRun('血液沸腾')end      
            --if PNL>=99 and BeeIsRun('凋零缠绕') then BeeRun('凋零缠绕')end
            --if PNL>=80 and BeeIsRun('符文打击') then BeeRun('符文打击')end
            BeeRun('冰霜打击')BeeRun('天灾打击')BeeRun('鲜血打击')BeeRun('/cast !符文打击')
      end
    end
    ---------------------------------------------------------------------释放灵魂
elseif UnitIsDead('player') then
    RepopMe()
    ---------------------------------------------------------------------虚弱复活
elseif UnitIsGhost('player') then
    BeeRun('/click GhostFrame')BeeRun('/目标 灵魂医者')AcceptResurrect()AcceptXPLoss()
end
BeeRun('/console Sound_EnableSFX 1')BeeRun('/script UIErrorsFrame:Clear()')
都搞到个位数的帧数,脑壳疼


打的就是精锐 发表于 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一出手就卡,也可能跟魔蜂没关系
页: [1]
查看完整版本: 自己写的335DK魔蜂脚本,掉帧严重