作者jyuny1 (凱文藍)
看板WOW
標題Re: [巨集][問題] 要怎麼抓頻道裡面怪物動作的字串?
時間Mon Feb 15 02:30:59 2010
※ 引述《Xavy (Gururu)》之銘言:
: API有辦法嗎..?
: 還是被鎖住只能用lua (UI)來寫?
: 原本要寫個巫妖王丟黑水警告
: 大致長的像
: /run tar=UnitName("focustarget") if tar~="(MT ID)"
: then SendChatMessage("黑水要丟 < "..tar.." > 身上摟");end;
: 結果該死的巫妖王他竟然會丟坦阿!
: 放黑水的時候會有一段NPC表情動作
: 如果能抓到這個字串就好了..
http://www.wowwiki.com/Events/Communication
如同上篇推文所說,抓下面這個 event
"CHAT_MSG_MONSTER_EMOTE" Category: Communication
Fired for emotes from a monster,
such as 'Murloc Forager attempts to run away in fear!'
arg1 The body of the emote: '%s attempts to run away in fear!'
arg2 The name of the monster: 'Murloc Forager'
(Note: As of 1.12 arg1 now contains a %s string variable for where
the mob name should be placed)
或
"CHAT_MSG_MONSTER_SAY" Category: Communication
Fired when a NPC says something.
arg1 Message
arg2 NPC name
arg3 Language used
怎麼抓 event?
請參考
http://github.com/jyuny1/TauntWarning/blob/master/TauntWarning.lua
TauntWarning_OnLoad() 跟 TauntWarning_OnEvent()
不過與其你要自己寫,倒不如生個 patch feedback 給 DBM/BigWigs 的 dev-team...
--
『Wow! so you are really beating the Grim Reaper』
And what I said even think about is
- Randy Pausch
『We don't beat the Reaper by living longer.』 Addressed CMU Graduates
『We beat the Reaper by living well and living fully.』 2008/5
For the Reaper will come for all of us. The question is
http://0rz.tw/9f4te
『What do we do between the time we born and the time he shows up?』
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 125.224.121.19
※ 編輯: jyuny1 來自: 125.224.121.19 (02/15 02:31)
推 guithawk:專業推 02/15 02:35
推 Fenikso:推 去戳dbm開發team比較快XD 02/15 03:13
推 guithawk:feedback? 02/15 03:14
歐對我少打一個 b XD
※ 編輯: jyuny1 來自: 125.224.121.19 (02/15 03:18)
→ Xavy:thx,所以只能從lua著手? 沒辦法在macro裡面用api擷取嗎? 02/15 10:43