◎一鍵開關人物定位標記(ICON_LIST[3]的3可以改成其他數(shù)字)
/跑 if not TuInd then UIParent:CreateTexture("TuInd");TuInd:SetSize(24,24);TuInd:SetPoint("CENTER",0, 0);TuInd:SetTexture(ICON_LIST[3]:sub(3,-2));TuInd:Hide()end;if TuInd:IsShown()then TuInd:Hide()else TuInd:Show()end
◎標記怪第二下不會取消標記
/目標 叉叉怪名字
/跑 xt="target"if UnitName(xt)=="叉叉怪名字"and GetRaidTargetIndex(xt)~=7 then SetRaidTarget(xt,7)end
/目標 骷髏怪名字
/跑 kt="target"if UnitName(kt)=="骷髏怪名字"and GetRaidTargetIndex(kt)~=8 then SetRaidTarget(kt,8)end
/清除目標
◎直接Click = ?Alt+Click = ★ Ctrl+Click = ● Shift+Click = ■
/script if IsAltKeyDown()then g=1 elseif IsControlKeyDown()then g=2 elseif IsShiftKeyDown()then g=6 else g=8 end;SetRaidTarget("target",g)
◎計算怪數(shù):追蹤當前目標在場上的數(shù)量(要開血條)
/跑 local t,c,p=(UnitName("target")),0 for i=1,10000 do p=_G["NamePlate"..i]if p and p:IsVisible()then c=c+(select(2,p:GetChildren()):GetRegions():GetText()==t and 1 or 0)end end SendChatMessage((t.." : "..c),"SAY")
◎左鍵循環(huán)標記;右鍵&10秒後沒點巨集,則重置標記
/跑 RIT=RIT or GetTime()if(not RIcon or RIcon==8 or GetMouseButtonClicked()=="RightButton"or GetTime()-RIT>10)then RIcon=1 print"重設標記順序"else RIcon=RIcon+1 end SetRaidTarget("mouseover",RIcon)RIT=GetTime()
◎依序上標記,若目標有標記則在聊天視窗中顯示"已有標記"
/跑 t="target";z=GetRaidTargetIndex(t)if z~=null then DEFAULT_CHAT_FRAME:AddMessage("目標已有標記",.8,.8,1)else if(y~=null and y>=1 and y<8)then y=y+1 SetRaidTarget(t,y)else y=1 SetRaidTarget(t,y)end;end
◎左鍵從8往前到1循環(huán)標記,目標有標記則顯示"已有標記";右鍵清除全部標記
/跑 t="target";if not GetRaidTargetIndex(t)then if not marky or marky==1 then marky=8 SetRaidTarget(t,marky)else marky=marky-1 SetRaidTarget(t,marky)end else print"已有標記"end
/關閉巨集 [btn:1]
/跑 for i=1,9 do SetRaidTarget("player",i)end marky=nil
◎左鍵依序上標記 x={8,7,1,2,6,5,4,7,3},目標有標記則顯示"已有標記";右鍵清除
/跑 t="target";x={8,7,1,2,6,5,4,7,3}z=GetRaidTargetIndex(t);if z~=null then print"已有標記"else if(y~=null and y>=1 and y<8)then y=y+1 SetRaidTarget(t,x[y])else y=1 SetRaidTarget(t,x[y])end;end
/關閉巨集 [btn:1]
/跑 for i=1,9 do SetRaidTarget("player",i)end;y=0
◎對坦克標記圈圈,治療標記月亮
/跑 local s,g,h,t,p,r=SetRaidTarget,UnitGroupRolesAssigned,"HEALER","TANK","player"if g(p)==h then s(p,5)elseif g(p)==t then s(p,2)end for i=1,4 do r="party"..i if g(r)==h then s(r,5)elseif g(r)==t then s(r,2)end end