精華區beta pighead 關於我們 聯絡資訊
※ 引述《waterrr (無聊阿!!)》之銘言: : ※ 引述《Ohmy (喔賣)》之銘言: : : 就是已上過恢復的目標,就不會再上恢復 : : 並在訊息欄內提示"Your target have renew !!" : : (當然顯示訊息跟訊息顏色可以自己改) : : UnitBuff("target", i) then if string.find(UnitBuff("target", i), "Renew") : : then fred = 1, DEFAULT_CHAT_FRAME:AddMessage("Your target have renew !!", : : 0.2,0.2,0.4)end end end if fred == 0 then CastSpellByName("恢復") end : : 請接成一行 : : (上面的0.2,0.2,0.4)就是訊息的顏色 : : 省魔滿好用的,很久以前在巴哈學的 : : 不過以後巨集更改,大概會有另一種寫法 : 這個巨集還可以用嗎?? : 我把上面的複製進去 : 但是就只是說話而不是放技能耶 : 有人知道嗎? 抱歉,是我眼殘沒檢查好,少了幾段字 在第一句 "UnitBuff("target", i) then if string." 的前面 要加上 /script fred = 0 for i=1,16 do if 所以整句變成 /script fred = 0 for i=1,16 do if UnitBuff("target", i) then if string. find(UnitBuff("target", i), "Renew") then fred = 1, DEFAULT_CHAT_FRAME: AddMessage("Your target have renew !!",0.2,0.2,0.4)end end end if fred == 0 then CastSpellByName("恢復") end 也是請接成一行 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.135.132.101
waterrr:那記得跟版主說一下 精華區的是舊的 02/15 00:33
aqns13:跟我說就好了嘿 我會改 02/15 00:46