明教猫咪宏
云端ID 33600 作  者 最近更新20140713 代码类型官方宏 本周热度13 作者专栏
<一定要点这复制宏代码>
  1. /script
  2. local p = GetClientPlayer()
  3. local bufflist = p.GetBuffList() or {}
  4. lastt = lastt or {}
  5. for i, v in pairs(bufflist) do
  6. if Table_GetBuffName(v.dwID,v.nLevel) == "乾" and (not lastt["乾"] or GetLogicFrameCount() - lastt["乾"] >=16) then
  7. OnAddOnUseSkill(4147,1)
  8. lastt["乾"] = GetLogicFrameCount()
  9. end
  10. if Table_GetBuffName(v.dwID,v.nLevel) == "坤" and (not lastt["坤"] or GetLogicFrameCount() - lastt["坤"] >=16) then
  11. OnAddOnUseSkill(4148,1)
  12. lastt["坤"] = GetLogicFrameCount()
  13. end
  14. if Table_GetBuffName(v.dwID,v.nLevel) == "挪" and (not lastt["挪"] or GetLogicFrameCount() - lastt["挪"] >=16) then
  15. OnAddOnUseSkill(4149,1)
  16. lastt["挪"] = GetLogicFrameCount()
  17. end
  18. if Table_GetBuffName(v.dwID,v.nLevel) == "移" and (not lastt["移"] or GetLogicFrameCount() - lastt["移"] >=16) then
  19. OnAddOnUseSkill(4150,1)
  20. lastt["移"] = GetLogicFrameCount()
  21. end
分类:通用宏
标签:
标识:/cloud/33600