創作內容

3 GP

[WOW]標記巨集

作者:。愔。│2017-01-22 21:48:54│巴幣:6│人氣:6157
icon 參數值(0-8)對應如下:
0= 沒記號 1= {星星}★ 2= {圈圈}● 3= {鑽石}◆ 4= {三角}▼
5= {月亮}☽ 6= {方形}■ 7= {十字}╳ 8= {頭顱}☠

◎標記應用
SetRaidTarget("unit", index) - 會清除標記
SetRaidTargetIcon("unit",index) - 不會清除標記

/目標標記 8

◎隨機標記
/跑 SetRaidTarget("target",random(8))

◎清除標記
/跑 for i=1,9 do SetRaidTarget("player",i)end marky=nil
◎清除目標身上的標記
/跑 for i=1,9 do SetRaidTarget("player",i)end;y=0

◎一鍵開關人物定位標記(ICON_LIST[3]的3可以改成其他數字)
/跑 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)


◎計算怪數:追蹤當前目標在場上的數量(要開血條)
/跑 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")


◎左鍵循環標記;右鍵&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循環標記,目標有標記則顯示"已有標記";右鍵清除全部標記
/跑 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


◎友方NPC上標
/目標友方
/跑 local t="target"n={["阿米菈·炎織者"]=1,["薇莎·炎織者"]=2,["戰鬥牧師伊莉莎"]=3,["戰鬥牧師吉娜"]=4,["卡爾·灰雲"]=5,["拓爾·灰雲"]=6,["靈行者塔菈"]=7,["靈行者悠娜"]=8}if n[UnitName(t)]then SetRaidTarget(t,n[UnitName(t)])end


引用網址:https://home.gamer.com.tw/TrackBack.php?sn=3455909
All rights reserved. 版權所有,保留一切權利

相關創作

同標籤作品搜尋:WOW|魔獸世界|巨集|標記

留言共 0 篇留言

我要留言提醒:您尚未登入,請先登入再留言

3喜歡★diana0622tw 可決定是否刪除您的留言,請勿發表違反站規文字。

前一篇:[WOW]7.2.5 C... 後一篇:[WOW]戰士 7.3 ...

追蹤私訊切換新版閱覽

作品資料夾

d88931122所有巴友
歡迎諸君來參觀老僧的小屋,內含Steam與Google Play遊戲、3D角色模組、Line貼圖看更多我要大聲說昨天20:54


face基於日前微軟官方表示 Internet Explorer 不再支援新的網路標準,可能無法使用新的應用程式來呈現網站內容,在瀏覽器支援度及網站安全性的雙重考量下,為了讓巴友們有更好的使用體驗,巴哈姆特即將於 2019年9月2日 停止支援 Internet Explorer 瀏覽器的頁面呈現和功能。
屆時建議您使用下述瀏覽器來瀏覽巴哈姆特:
。Google Chrome(推薦)
。Mozilla Firefox
。Microsoft Edge(Windows10以上的作業系統版本才可使用)

face我們了解您不想看到廣告的心情⋯ 若您願意支持巴哈姆特永續經營,請將 gamer.com.tw 加入廣告阻擋工具的白名單中,謝謝 !【教學】