LUACN论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
热搜: YJWOW MagicStone BoL
查看: 5662|回复: 2

[wowbee] 使用版主的双持传染冰脚本出现问题,哪位大神来帮忙看看怎么解决。@大好大

[复制链接]
发表于 2019-3-15 21:03:59 | 显示全部楼层 |阅读模式
本帖最后由 joyliu 于 2019-3-15 09:03 PM 编辑


具体报错如图,其他脚本未出现这样的问题。



脚本代码如下:
  1. local Tbl = BeeUnitBuffList("target")
  2. local buff = BeeUnitBuffList("player")
  3. local bingsi = (BeeRune("冰霜符文")>0 or BeeRune("死亡符文")>0)
  4. local xuesi = (BeeRune("鲜血符文")>0 or BeeRune("死亡符文")>0)
  5. local xiesi = (BeeRune("邪恶符文")>0 or BeeRune("死亡符文")>0)
  6. --准备
  7. if not UnitIsDeadOrGhost("player") and not BeeStringFind("鲜血灵气",buff) then
  8.     BeeRun("鲜血灵气")
  9. end
  10. if BeePlayerBuffTime("寒冬号角")<0 then
  11.     BeeRun("寒冬号角")
  12. end
  13. --按键传染
  14. if IsShiftKeyDown() then
  15.     if BeeTargetDeBuffTime("冰霜疫病")>1 and BeeTargetDeBuffTime("血之疫病")>1 and (BeeRune("鲜血符文")>0 or BeeRune("死亡符文")>0) then
  16.         BeeRun("传染")      
  17.     end
  18. end
  19. --输出
  20. if BeeUnitHealth("target",nil,0)>250000 then
  21.     if BeeRune("鲜血符文")<1 and BeeRune("邪恶符文")<1 and BeeRune("冰霜符文")<1 and BeeSpellCoolDown("符文武器增效")==0 and BeePlayerBuffTime("活力分流")<=0 and BeeSpellCD("活力分流")>0 then
  22.         BeeRun("符文武器增效")        
  23.     end
  24.     if BeeSpellCoolDown("亡者复生")==0 then
  25.         BeeRun("亡者复生")        
  26.     end
  27.     if (BeePlayerBuffTime("铜墙铁壁")>0 or BeePlayerBuffTime("杀戮机器")>0) and GetItemCooldown("门牙碎片")==0 then
  28.         BeeRun("/cast 门牙碎片");   
  29.     end
  30. end
  31. if not IsShiftKeyDown() and UnitExists("target")==1 and not UnitIsDeadOrGhost("target") and IsSpellInRange("冰冷触摸")==1 then
  32.     if (BeeRune("冰霜符文")>0 or BeeRune("死亡符文")>0) and BeeTargetDeBuffTime("冰霜疫病")<2 then
  33.         BeeRun("冰冷触摸")        
  34.     end
  35.     if (BeeRune("邪恶符文")>0 or BeeRune("死亡符文")>0) and BeeTargetDeBuffTime("血之疫病")<2 then
  36.         BeeRun("暗影打击")        
  37.     end
  38.     if (BeeTargetDeBuffTime("冰霜疫病")>0 and BeeTargetDeBuffTime("血之疫病")>0) and (BeeTargetDeBuffTime("冰霜疫病")<5 or BeeTargetDeBuffTime("血之疫病")<5) then
  39.         BeeRun("传染")        
  40.     end
  41.     if BeeUnitMana("player")>70 and BeeIsRun("冰霜打击") then
  42.         BeeRun("冰霜打击")        
  43.     end
  44.     if BeePlayerBuffTime("冰冻之雾")>0 and BeePlayerBuffTime("冰冻之雾")<8 then
  45.         BeeRun("凛风冲击")        
  46.     end
  47.     if ((BeeRune("冰霜符文")>0 and BeeRune("邪恶符文")>0) or (BeeRune("死亡符文")>0 and (BeeRune("邪恶符文")>0 or BeeRune("冰霜符文")>0)) or BeeRune("死亡符文")>1) and BeeTargetDeBuffTime("冰霜疫病")>1 and BeeTargetDeBuffTime("血之疫病")>1 then
  48.         BeeRun("湮没")
  49.     end
  50.     if BeeUnitMana("player")>20 and BeeIsRun("符文打击") then
  51.         BeeRun("符文打击")        
  52.     end
  53.     if BeePlayerBuffTime("冰冻之雾")>0 then
  54.         BeeRun("凛风冲击")        
  55.     end
  56.     if BeeUnitMana("player")>40 then
  57.         if IsSpellInRange("凋零缠绕")==1 and BeeRange("target")>15 then
  58.             BeeRun("凋零缠绕")            
  59.         end
  60.         if BeeIsRun("冰霜打击") then
  61.             BeeRun("冰霜打击")            
  62.         end
  63.     end
  64.     if BeeRune("鲜血符文")<1 and BeeRune("邪恶符文")<1 and BeeRune("冰霜符文")<1 and BeeSpellCoolDown("活力分流")==0 then
  65.         BeeRun("活力分流")        
  66.     end
  67.     if BeeUnitHealth("target",nil,0)>30000 then
  68.         if BeeSpellCoolDown("奥术洪流")==0 then
  69.             BeeRun("奥术洪流")            
  70.         end
  71.         if BeeTargetDeBuffTime("冰霜疫病")>1 and BeeTargetDeBuffTime("血之疫病")>1 and BeeSpellCoolDown("铜墙铁壁")==0 and bingsi then
  72.             BeeRun("铜墙铁壁")            
  73.         end
  74.     end
  75.     if BeeTargetDeBuffTime("冰霜疫病")>1 and BeeTargetDeBuffTime("血之疫病")>1 and BeeRune("死亡符文")<1 and BeeRune("鲜血符文")>0 then
  76.         BeeRun("鲜血打击")        
  77.     end
  78.     if BeeRune("鲜血符文")>0 then
  79.         BeeRun("鲜血打击")
  80.     end
  81. end
  82. --当前目标打断
  83. BeeRun("/startattack");
  84. local Unit="target"
  85. local time , Castingtime= BeeUnitCastSpellTime(Unit);
  86. if BeeUnitCastSpellName(Unit) and Castingtime - time >0.5 and time >0.5 and BeeIsRun("心灵冰冻",Unit) then
  87.     BeeRun("心灵冰冻",Unit);
  88. end
复制代码


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?加入我们

x
回复

使用道具 举报

发表于 2019-7-7 19:17:44 | 显示全部楼层
确实是个很严重的问题!
回复 支持 反对

使用道具 举报

发表于 2023-2-23 23:28:09 | 显示全部楼层
个人认为DK上手难度较大,围观下大神的脚本吧
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-26 03:37 PM , Processed in 0.042998 second(s), 17 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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