本人手实在是太残,所以到了那个123的时候老掉下来,不得已想用宏,但是为什么用不了啊!!!!!!!!!
下面是具体宏的内容
/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
下面是具体宏的内容
/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