很多時候開拍團有人混水摸魚一個藥也不吃很鬱悶
好吧,做了個檢測BUFF的宏,把不吃BUFF的傢伙發出來讓他無處遁形
檢測食品、藥品和復活BUFF
/script local f=false
local p=GetClientPlayer()
if p.IsInParty() then
local h=GetClientTeam()
for i=0,h.nGroupNum-1 do
local hInfo=h.GetGroupInfo(i)
if hInfo and hInfo.MemberList then
for _,dwID in pairs(hInfo.MemberList) do
local hp=GetPlayer(dwID)
if hp then
local bList=hp.GetBuffList() or {}
local b1=false;b2=false;b4=false;szText=""
for _,tBuff in pairs(bList) do
local bType=GetBuffInfo(tBuff.dwID,tBuff.nLevel,{}).nDetachType
if bType==17 or bType==18 then b1=true end
if bType==19 or bType==20 then b2=true end
if f and (tBuff.dwID==316 or tBuff.dwID==2313) and tBuff.nLevel==1 then
b4=true
end
end
if not b1 then szText=szText.."1食品無" end
if not b2 then szText=szText.."2藥品無" end
if f and not b4 then szText=szText.."3復活無" end
if not b1 or not b2 or (f and not b4) then
p.Talk(PLAYER_TALK_CHANNEL.NEARBY,"",{{type="text",text="["..hp.szName.."]:"..szText.." \n"}})
end
end
end
end
end
end
PS:要檢測否有可復活BUFF時,修改第一行「local f=false」為「local f=true」
友情提示:由於宏接口頻繁被和諧以及官方對副本和職業的調整,我們無法保證在大家看到這篇文章時宏一定可用。遇到問題,可以嘗試別的宏,或者到論壇和大家交流哦!
有料
淚奔
無聊
XD
掀桌
KUSO