偶是纠结了好几天了。每次错在最后一部。气个半死~竟然有宏尼玛太轻松了。。。一次搞定有木有~
使用方法,设置好这个宏,在你和喵王对话之后,按ESC,点宏设置,然后,狂点这个宏的图标
/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
使用方法,设置好这个宏,在你和喵王对话之后,按ESC,点宏设置,然后,狂点这个宏的图标
/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