大神们求解答 用你的宏我没效果 用NPC消失记时条的也没效果
不过龙门飞剑用这个宏就可以 我太小白了看不出区别请大神们留意下吧
/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
感谢了