djfeiji 发表于 2025-1-29 16:53:35

WBE版高级刷新宏(指定怪物+自动回收)



新建WBE脚本,调整好运行时间间隔,可以找个怪先调试下
if UnitHealth("target")>0 then ta=GetTime() else tb=GetTime()end
if tb==nil then return end
--↓这个0.5是怪死后0.5秒刷新--↓自己血大于80%刷新↓4,20是4号包裹快满了回收掉再刷新
if(ta==nil or tb-ta>0.5) and BeeUnitHealth("player","%",0)>80 then
    if GetContainerItemLink(4,20)==nil then
      BeeRun('/targetlastenemy');
      --BeeRun("/目标 屠龙者格鲁尔") --怪物名字
      UseItemByName("10000124"); --使用物品ID
      BeeRun("/s .respawn"); --刷新命令
      print("刷新");
      ta=tb
    else
      for i=1,8 do SendAddonMessage("GC_C_RECOVERY" ,"1 "..i, "GUILD") end --此处为回收选项1-8(部分服没有回收功能可去掉)
    end
end

页: [1]
查看完整版本: WBE版高级刷新宏(指定怪物+自动回收)