LUACN论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
热搜: YJWOW MagicStone BoL
查看: 103|回复: 1

[wowbee] 魔蜂报错

[复制链接]
发表于 2024-3-24 21:15:22 | 显示全部楼层 |阅读模式
脚本原来是可以用的,现在启动不了,会报错。有大神能看看吗?
报错信息:
Interface\AddOns\WBE\Class\zhCN\SHAMAN\SHAMAN.lua:163: Usage: UnitAura("unit", [index] or ["name", "rank"][, "filter"])

脚本:
local Tbl = BeeUnitBuffList("target")
local buff = BeeUnitBuffList("player")
local Zdzt = BeeUnitAffectingCombat() or BeeUnitAffectingCombat("focus")
local grouptype=""
if GetNumRaidMembers()>0 then
    grouptype="raid"
else
    grouptype="party"
end

local Jl = BeeGroupMinScript('BeeRange(unit)<=40  and BeeUnitHealth(unit,"%")<95 and BeeUnitBuff("激流",unit)<=0 and UnitCanAssist("player",unit) and not UnitIsDeadOrGhost(unit)',"BeeUnitHealth(unit,'%')",grouptype)
if Jl and BeeSpellCD("激流")==0 and BeeIsRun("激流",Jl) then
    BeeRun("激流",Jl) end

local Sl,JJZll = BeeGroupCountScript('BeeRange(unit)<=40 and BeeIsRun("治疗链",unit)',"BeeUnitHealth(unit,'%')<65 and not UnitIsDeadOrGhost(unit)",grouptype)
if Sl>0 then
    if Sl>=4 and Zdzt then
        if BeeSpellCD("潮汐之力")==0  then BeeRun("潮汐之力") end
        if BeeIsRun("治疗链",JJZll) then
            BeeRun("治疗链",JJZll)  
        end
    end
    if Sl<=2 and BeeStringFind("波涛汹涌",buff) then
        if BeeIsRun("治疗波",JJZll) then
            BeeRun("治疗波",JJZll) end
    end
return end
local rs,PTZll = BeeGroupCountScript('BeeRange(unit)<=40 and BeeIsRun("治疗链",unit)',"BeeUnitHealth(unit,'%')<85 and not UnitIsDeadOrGhost(unit)",grouptype)
if rs>0 then
    if rs>=4 then
        if GetItemSpell(GetItemInfo(GetInventoryItemLink('player',10))) and GetInventoryItemCooldown("Player",10)==0 then BeeRun("/use 10")
        end
        if BeeIsRun("治疗链",PTZll) then
            BeeRun("治疗链",PTZll)  
        end
    end
    if rs<=2 and BeeStringFind("波涛汹涌",buff) then
        if BeeIsRun("次级治疗波",PTZll) then
            BeeRun("次级治疗波",PTZll)  
        end
    end
return end
回复

使用道具 举报

发表于 2024-3-24 21:23:22 | 显示全部楼层
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

小黑屋|手机版|Archiver|LUACN论坛

GMT+8, 2024-4-28 06:46 PM , Processed in 0.033860 second(s), 14 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表