劍網3明教貓王考驗求個宏
/script
local p = GetClientPlayer()
local bufflist = p.GetBuffList() or {}
lastt = lastt or {}
for i, v in pairs(bufflist) do
if Table_GetBuffName(v.dwID,v.nLevel) == "乾" and (not lastt["乾"] or GetLogicFrameCount() - lastt["乾"] >=16) then
OnAddOnUseSkill(4147,1)
lastt["乾"] = GetLogicFrameCount()
end
if Table_GetBuffName(v.dwID,v.nLevel) == "坤" and (not lastt["坤"] or GetLogicFrameCount() - lastt["坤"] >=16) then
OnAddOnUseSkill(4148,1)
lastt["坤"] = GetLogicFrameCount()
end
if Table_GetBuffName(v.dwID,v.nLevel) == "挪" and (not lastt["挪"] or GetLogicFrameCount() - lastt["挪"] >=16) then
OnAddOnUseSkill(4149,1)
lastt["挪"] = GetLogicFrameCount()
end
if Table_GetBuffName(v.dwID,v.nLevel) == "移" and (not lastt["移"] or GetLogicFrameCount() - lastt["移"] >=16) then
OnAddOnUseSkill(4150,1)
lastt["移"] = GetLogicFrameCount()
end
end
新建壹個宏,快捷鍵放在副快捷欄