/script
local player = GetClientPlayer()
local listBuff = player.GetBuffList() or {}
mem = mem or {}
for _, v in pairs(listBuff) do
if v.dwID==5046 and (not mem["5046"] or GetLogicFrameCount() - mem["5046"]
>=16) then
OnAddOnUseSkill(7819,1)
mem["5046"] = GetLogicFrameCount()
end
if v.dwID==5047 and (not mem["5047"] or GetLogicFrameCount() - mem["5047"]
>=16) then
OnAddOnUseSkill(7820,1)
mem["5047"] = GetLogicFrameCount()
end
if v.dwID==5048 and (not mem["5048"] or GetLogicFrameCount() - mem["5048"]
>=16) then
OnAddOnUseSkill(7821,1)
mem["5048"] = GetLogicFrameCount()
end
end
PS:宏快捷键设置成功能键(F1-F12) 不要设置数字键

local player = GetClientPlayer()
local listBuff = player.GetBuffList() or {}
mem = mem or {}
for _, v in pairs(listBuff) do
if v.dwID==5046 and (not mem["5046"] or GetLogicFrameCount() - mem["5046"]
>=16) then
OnAddOnUseSkill(7819,1)
mem["5046"] = GetLogicFrameCount()
end
if v.dwID==5047 and (not mem["5047"] or GetLogicFrameCount() - mem["5047"]
>=16) then
OnAddOnUseSkill(7820,1)
mem["5047"] = GetLogicFrameCount()
end
if v.dwID==5048 and (not mem["5048"] or GetLogicFrameCount() - mem["5048"]
>=16) then
OnAddOnUseSkill(7821,1)
mem["5048"] = GetLogicFrameCount()
end
end
PS:宏快捷键设置成功能键(F1-F12) 不要设置数字键

