This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Looking For A Certain Macro
Post Reply
Return to board index
Post by
Pyrano
I'm looking for a Macro that, when I get a killing blow on some (in BG's or world PvP) it'll say something (Like, a taunt or whatever in /y.).
Anyone know how I could make one of these?
Post by
Artinz
I'm pretty sure that with Blizzard's system of gameplay that doesn't allow the computer to make descisions for you, this is impossible.
Shoggy should know, he's good with macros.
Post by
91244
This post was from a user who has deleted their account.
Post by
Pyrano
That seems a little complicated, but thanks.
I'll sticky with my regular macro. (I just click it on a KB, and it /y's what I wanted to say.
Post by
Artinz
I'm pretty sure that with Blizzard's system of gameplay that doesn't allow the computer to make descisions for you, this is impossible.
Shoggy should know, he's good with macros.
This is making a decision? He wants to announce something on a KB...
Pyrano, it cannot be made in a macro, because macros can't execute themselves. You need an addon to do this. And yes, it can be coded.
local f = CreateFrame"Frame"
f:RegisterEvent"CHAT_MSG_COMBAT_HOSTILE_DEATH"
f:SetScript("OnEvent", function(this, msg)
local unit = msg:match"You have slain (.*)!"
if unit then SendChatMessage("I have slain "..unit.."!", "SAY") end
end)
Package that into an addon if you know how. Replace the first part of SendChatMessage (before the comma) with the text you want. You can add the name of the unit killed by closing the quotes and linking it with ".." as you can see there.
Nef, you're you. I'm me. You wrote 8 addons that I have seen. You help me with macros. That's why I said, "I'm pretty sure."
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.