提交問題刪除
提交問題
遊戲下載 創建公會 劍3獵手 經脈模擬器 遊戲論壇
專區首頁 新手專題 職業專欄 聲望專題 套裝獲取 副本專題 任務大全 插件下載
當前位置:劍俠情緣3遊戲專區 >> 插件 >> 正文
再也不用挨個點了:一鍵檢測團隊buff宏
再也不用挨個點了:一鍵檢測團隊buff宏
發佈時間:2012年02月24日 11:03:21    作者:yoeotan    人氣:19785    進入討論區

  很多時候開拍團有人混水摸魚一個藥也不吃很鬱悶

  好吧,做了個檢測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」

  友情提示:由於宏接口頻繁被和諧以及官方對副本和職業的調整,我們無法保證在大家看到這篇文章時宏一定可用。遇到問題,可以嘗試別的宏,或者到論壇和大家交流哦!

0
0
0
0
1
0

有料

淚奔

無聊

XD

掀桌

KUSO
0