Advertisement
aegius1r

搜尋

Apr 15th, 2016
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. (1)
  2. /run tar,cnt="奧格瑪蠻兵",0 for i=1,10000 do p=_G["NamePlate"..i]if p and p:IsVisible()then cnt=cnt+(select(2,p:GetChildren()):GetRegions():GetText()==tar and 1 or 0)end end
  3.  
  4. (2)
  5. /run T,F=T or 0,F or CreateFrame("frame")if X then print("關閉搜尋:"..tar)X=nil else print("開始搜尋:"..tar) X=function() local m=GetTime() if m-T>10 and cnt>0 then PlaySoundKitID(42083) T=m end end end F:SetScript("OnUpdate",X)
  6.  
  7. 1,2分別建一個巨集
  8. 1的「奧格瑪蠻兵」改成要搜尋的怪物名稱
  9. 要開始搜尋時1,2輪流按一次
  10. 要關閉搜尋時按2一次
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement