精華區beta WOW 關於我們 聯絡資訊
同樣要使用 super duper macro 新增 script 類別的 macro 新增一個名稱為 taunt 的 script macro: targetOfTargetName=UnitName("targettarget") playerName=UnitName("player") targetName=UnitName("target") threatSituation=UnitThreatSituation("targettarget") local channel if (UnitInRaid("player")) then if (UnitIsRaidOfficer("player")) then channel="raid_warning" else channel="raid" end elseif (UnitInParty("player")) then if (UnitIsPartyLeader("player")) then channel="raid_warning" else channel="party" end else return end if (not threatSituation) then SendChatMessage(format("目標 >>%s<<,開怪摟開怪摟請補職注意我", targetName), channel) elseif ((threatSituation==0 or threatSituation==1) and (targetName ~= playerName)) then SendChatMessage(format("%s → >>%s<<,請補職注意我", targetName, playerName), channel) else if (targetName ~= playerName) then SendChatMessage(format("%s → >>%s<< (%s),請補職注意我", targetName, playerName, targetOfTargetName), channel) end end 然後你原本的嘲諷 macro 加上 /console Sound_EnableSFX 0 #showtooltips /stopmacro [noharm] /sdm run taunt /cast 黑暗敕令 /cast !符文打擊 /script UIErrorsFrame:Clear() /console Sound_EnableSFX 1 如果有更方便的方法可以偵測嘲諷成功歡迎通知我 <0> reference http://www.wowwiki.com/API_UnitName http://www.wowwiki.com/API_UnitThreatSituation -- 這就是科學了 發現某些有價值的結果後 用新的、直接的經驗來與之相互印證 ∮Gamekid 抱持懷疑的態度 打從一開始就要嘗試找出到底情形如何 ╴ ╴ 一再與自己的經驗相印證 ˙ ˙ 而不是上面流傳下來什麼就照單全收 ▃▃ \◥ 美國物理大師 ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ > Richard Feynman -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.73.225.30
Xavy:嗚,這種要另外用東西輔助的不知道該收還是不該收 06/30 12:31
Jpswd:看合不合乎bz的規範吧 06/30 12:32
為何不符合規範? 我只是懶得把它寫成 addon 發佈而已... super duper macro 不違法阿,不然怎麼會出現一堆存 macro 的 addon LOL
nuka0954310:if....(抖 06/30 12:34
j094097:"小壞蛋~~~" 系統: 所有怪物的優先目標重新設定為你 06/30 12:35
※ 編輯: jyuny1 來自: 203.73.225.30 (06/30 12:38)
Xavy:我是覺得這樣跟寫ui然後裝ui沒兩樣了阿 XD 06/30 12:36
zeSil:不合乎規範只是不能執行而已XD 06/30 12:41