- 代码:
---------------------------------------------
-- 自定义函数 --
---------------------------------------------
local eric_base_zd =BeeUnitAffectingCombat()
local eric_player_buff_zmpj = BeeStringFind("致命平静",BeeUnitBuffList("player"))--接下来的3次英勇打击或顺劈斩攻击消耗的怒气值减少10点。
local eric_player_buff_zhtd = BeeStringFind("最后通牒",BeeUnitBuffList("player"))--下一个英勇打击或顺劈斩不消耗怒气值。
local eric_player_base_nq = BeeUnitMana()--获取玩家当前怒气
local eric_player_base_hp = BeeUnitHealth("player","%")--获取玩家当前HP
local eric_unit_base_hp = BeeUnitHealth("target","%")--获取当前目标HP百分比
local eric_player_buff_jrdj = BeeStringFind("巨人打击",BeeUnitBuffList("player"))--允许你的攻击无视100%的护甲,持续6秒。
local eric_player_buff_jn = BeeStringFind("激怒",BeeUnitBuffList("player"))--产生(10)点怒气值,所造成的物理伤害提高10%,持续6秒
local eric_player_buff_xzqx = BeeStringFind("血之气息",BeeUnitBuffList("player"))--每层为你的下一次英勇打击或顺劈斩将额外造成100%的伤害。
local eric_player_buff_cs = BeeStringFind("猝死",BeeUnitBuffList("player"))--重置巨人打击CD
local eric_player_buff_hsgj = BeeStringFind("横扫攻击",BeeUnitBuffList("player"))
local eric_unit_debuff_xrdj = BeeStringFind("虚弱打击",BeeUnitBuffList("target"))--使其造成的物理伤害降低10%,持续30秒
local eric_unit_debuff_wlys = BeeStringFind("物理易伤",BeeUnitBuffList("target"))--使其受到的物理伤害提高4%,持续30秒
local eric_unit_debuff_dj = BeeStringFind("断筋",BeeUnitBuffList("target"))--使敌人残废,移动速度降低50%,持续15秒。
local eric_player_buff_jzrz = BeeStringFind("剑在人在",BeeUnitBuffList("player"))--使你的招架几率提高100%,并使你受到的伤害降低20%,持续8秒。
local eric_player_buff_time_xzqx = BeePlayerBuffTime("血之气息")--获得自己身上血之气息剩余时间
local eric_player_buff_count_xzqx = BeePlayerBuffCount("血之气息")--获得自身血之气息层数
local eric_unit_debuff_time_jrdj = BeeTargetDeBuffTime("巨人打击")--获取目标的巨人debuff时间
local eric_unit_debuff_zs = BeeStringFind("重伤",BeeUnitBuffList("target"))
local eric_spell_cd_jrdj = BeeSpellCD("巨人打击")
local eric_spell_cd_ltyj = BeeSpellCD("雷霆一击")
local eric_spell_cd_zsdj = BeeSpellCD("致死打击")
---------------------------------------------
-- 人要活着才有DPS --
---------------------------------------------
if eric_player_base_hp <0.15 and BeeIsRun("破釜沉舟","nogoal") then
BeeRun("破釜沉舟")
return
end
if eric_player_base_hp <0.25 and BeeIsRun("盾墙","nogoal") then
BeeRun("盾墙")
return
end
if eric_player_base_hp <0.3 and BeeIsRun("狂怒回复","nogoal") then
BeeRun("狂怒回复")
return
end
if eric_player_base_hp <0.3 and BeeIsRun("狂暴之怒","nogoal") then
BeeRun("狂暴之怒")
return
end
if eric_player_base_hp <0.55 and BeeIsRun("集结呐喊","nogoal") then
BeeRun("集结呐喊")
return
end
if eric_player_base_hp <0.85 and BeeSpellCD("胜利在望") == 0 and eric_player_base_nq >=10 and BeeRange("target")<=5 then
BeeRun("胜利在望")
return
end
---------------------------------------------
-- 群体攻击 --
---------------------------------------------
if eric_base_zd then
if not (eric_player_buff_count_xzqx >=3 or eric_spell_cd_jrdj<4) and eric_player_base_nq > 85 or (eric_unit_debuff_time_jrdj>0 and eric_unit_debuff_time_jrdj<1.5) or (eric_player_buff_xzqx and eric_player_buff_time_xzqx<1) or eric_player_buff_zmpj or ( eric_spell_cd_jrdj<6 and eric_player_buff_count_xzqx ==5) and BeeIsRun("顺劈斩") then
BeeRun("顺劈斩")
return
end
if BeeIsRun("致死打击") then
BeeRun("致死打击")
return
end
if BeeIsRun("巨龙怒吼","nogoal") then
BeeRun("巨龙怒吼")
return
end
if BeeIsRun("横扫攻击","nogoal") then
BeeRun("横扫攻击")
return
end
if eric_player_base_nq <30 and BeeIsRun("压制") then
BeeRun("压制")
return
end
if eric_player_buff_jrdj and eric_player_buff_hsgj and BeeIsRun("猛击") then
BeeRun("猛击")
return
end
if eric_spell_cd_ltyj and eric_spell_cd_zsdj and BeeIsRun("旋风斩","nogoal") then
BeeRun("旋风斩")
return
end
if not eric_unit_debuff_zs and BeeIsRun("雷霆一击","nogoal") then
BeeRun("雷霆一击")
return
end
else
end
---------------------------------------------
-- 单体攻击-常规阶段 --
---------------------------------------------
if eric_base_zd and eric_unit_base_hp >20 then
if eric_player_base_nq > 30 and BeeIsRun("致命平静","nogoal") then
BeeRun("致命平静")
return
end
if not (eric_player_buff_count_xzqx >=3 or eric_spell_cd_jrdj<4) and eric_player_base_nq > 85 or (eric_unit_debuff_time_jrdj>0 and eric_unit_debuff_time_jrdj<1.5) or (eric_player_buff_xzqx and eric_player_buff_time_xzqx<1) or eric_player_buff_zmpj or ( eric_spell_cd_jrdj<6 and eric_player_buff_count_xzqx ==5) and BeeIsRun("英勇打击") then
BeeRun("英勇打击")
return
end
if BeeIsRun("致死打击") then
BeeRun("致死打击")
return
end
if (not eric_player_buff_jrdj or eric_unit_debuff_time_jrdj<0.5) and BeeIsRun("巨人打击") then
BeeRun("巨人打击")
return
end
if not eric_player_buff_jrdj and not eric_player_buff_xzqx and BeeIsRun("巨龙怒吼","nogoal") then
BeeRun("巨龙怒吼")
return
end
if BeeIsRun("压制") then
BeeRun("压制")
return
end
if BeeIsRun("狂暴之怒","nogoal") then
BeeRun("狂暴之怒")
return
end
if BeeIsRun("血性狂怒","nogoal") then
BeeRun("血性狂怒")
return
end
if BeeIsRun("猛击") then
BeeRun("猛击")
return
end
if not eric_player_buff_jrdj and BeeIsRun("战斗怒吼","nogoal") then
BeeRun("战斗怒吼")
return
end
if BeeSpellCD("胜利在望") == 0 and eric_player_base_nq >=10 and BeeRange("target")<=5 then
BeeRun("胜利在望")
return
end
--[[
if BeeIsRun("胜利追击") then
BeeRun("胜利追击")
return
end
]]--
if BeeIsRun("英勇投掷") then
BeeRun("英勇投掷")
return
end
else
end
---------------------------------------------
-- 单体攻击-斩杀阶段 --
---------------------------------------------
if eric_base_zd and eric_unit_base_hp <=20 then
if BeeIsRun("狂暴之怒","nogoal") then
BeeIsRun("狂暴之怒")
return
end
if BeeIsRun("血性狂怒","nogoal") then
BeeIsRun("血性狂怒")
return
end
if BeeIsRun("致死打击") then
BeeRun("致死打击")
return
end
if (not eric_player_buff_jrdj or eric_unit_debuff_time_jrdj<0.5) and BeeIsRun("巨人打击") then
BeeRun("巨人打击")
return
end
if eric_player_buff_jrdj and BeeIsRun("巨龙怒吼","nogoal") then
BeeRun("巨龙怒吼")
return
end
if eric_player_buff_jrdj and BeeIsRun("压制") then
BeeRun("压制")
return
end
if eric_player_buff_count_xzqx>=4 or eric_player_base_nq>85 and BeeIsRun("英勇打击") then
BeeRun("英勇打击")
return
end
if BeeIsRun("斩杀") then
BeeRun("斩杀")
return
end
if BeeIsRun("战斗怒吼","nogoal") then
BeeRun("战斗怒吼")
return
end
if BeeIsRun("英勇投掷") then
BeeRun("英勇投掷")
return
end
else
end
低调的AutoMacro研究院(论坛已经搬至bbs.luacn.net)