This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Someone plz help a poor newb :(
Post Reply
Return to board index
Post by
467179
This post was from a user who has deleted their account.
Post by
467179
This post was from a user who has deleted their account.
Post by
467179
This post was from a user who has deleted their account.
Post by
224056
This post was from a user who has deleted their account.
Post by
Wildhorn
Would
/petattack
/stopmacro
/run if IsAltKeyDown() then t="Minion! Attack " SendChatMessage(t..UnitName("target").."! Now!",SAY,nil) end
do it?
no but
/petattack
/stopmacro
/script local t="Minion! Attack " SendChatMessage(t..UnitName("target").."!",SAY,nil)
would
Post by
467179
This post was from a user who has deleted their account.
Post by
327381
This post was from a user who has deleted their account.
Post by
467179
This post was from a user who has deleted their account.
Post by
327381
This post was from a user who has deleted their account.
Post by
467179
This post was from a user who has deleted their account.
Post by
RedwoodElf
Use two macros. In the first one, do this:
/run RSayX={UnitName("pet").." Attack! ","Slay for me, "..UnitName("pet").." that vile ",UnitName("pet").."KILL! KILL! KILL THE ",UnitName("pet")..", you stupid fool! Get that ","Murder him,"..UnitName("pet").."! Kill ","Flay the skin from his bones, "..UnitName("pet").."! You must kill "} and then use this:
#showtooltip
/cast Corruption
/petattack
/cast Torment
/stopmacro
/click <slot you put the first macro in, to set the global RSayX>
/run if(math.random(10)==1) then local t=RSayX SendChatMessage(t..UnitName("target").."!",SAY,nil) endThere is no spell called "end", so not sure what you're trying to do with that castsequence. You definitely DON'T want to use a global variable t. RSayX is unlikely to be used by any addons or WOW itself.
Post by
pelf
/run if(math.random(10)==1) then t="Minion! Attack " SendChatMessage(t..UnitName("target").."! Now!",SAY,nil) end
You could also shorten the original by concatenating the string literal directly instead of storing it in a variable, like:
/run if(math.random(10)==1) then SendChatMessage("Minion! Attack "..UnitName("target").."! Now!",SAY,nil) end
Post by
467179
This post was from a user who has deleted their account.
Post by
pelf
oo that's very helpful! now i can do this instead
/run if(math.random(10)==1) then SendChatMessage(""..UnitName("pet").."! Attack "..UnitName("target").."! Now!",SAY,nil) end
that makes it say the name of whichever minion i have summoned :D
And if you want to do that, there's no reason to concatenate the empty string onto the front. Just do this:
/run if(math.random(10)==1) then SendChatMessage(UnitName("pet").."! Attack "..UnitName("target").."! Now!",SAY,nil) end
Post by
RedwoodElf
oo that's very helpful! now i can do this instead
/run if(math.random(10)==1) then SendChatMessage(""..UnitName("pet").."! Attack "..UnitName("target").."! Now!",SAY,nil) end
that makes it say the name of whichever minion i have summoned :D
And if you want to do that, there's no reason to concatenate the empty string onto the front. Just do this:
/run if(math.random(10)==1) then SendChatMessage(UnitName("pet").."! Attack "..UnitName("target").."! Now!",SAY,nil) end
Incorporated that into my "two macro" version, above.
Post by
467179
This post was from a user who has deleted their account.
Post by
467179
This post was from a user who has deleted their account.
Post by
pelf
See my post here:
http://www.wowhead.com/?forums&topic=129616&p=1568290#p1566171
You're still concatenating an empty string onto the front unnecessarily.
Post by
467179
This post was from a user who has deleted their account.
Post by
RedwoodElf
"Concatenating" means "Stringing together" for example:
"I".."'m a pro".."gramm".."er"
Concatenates to
"I'm a programmer"
Putting an empty string ("") at the start basically does nothing.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.