This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
"INC to XYZ" macro, troubleshooting
Post Reply
Return to board index
Post by
mecheye
I've been using a macro that, when pressed, tells a certain channel "INC to " so I don't have to type it out and just focus of defending wherever I am.
Problem is that with 5.1 the macro no longer works.
I managed to "fix" it and it works fine when its sending the message to Guild or Say, but not to Instance or Battleground.
/run text = GetSubZoneText();
/run SendChatMessage("INC TO "..text,"INSTANCE",nil,nil);
/s !
Anyone know how to get this to work properly?
Post by
Neffi
You might want to just try:
http://www.curse.com/addons/wow/bg-defender
Updated for 5.1. If you really just want a macro, pick apart its code to see what it uses instead of GetSubZoneText();
Post by
Jglenn61091
EDIT: I did some looking around, battleground chat is in the new instance chat channel, give this a go:
/run SendChatMessage(string.format("INC TO %s!",GetSubZoneText()), "INSTANCE_CHAT")
I shortened the macro up, and removed the need for a separate variable just to pass the GetSubZoneText() information.
Dry coded, let me know how it works.
Post by
22686
This post was from a user who has deleted their account.
Post by
Jglenn61091
Yeah, it isn't well documented at the moment, but the chatTypeID is "INSTANCE_CHAT", not "INSTANCE".
Post by
mecheye
Alright cool, I'll give that a go! Thanks!
Post by
mecheye
Yeah Jglenn61091's script works!
Thanks!
Post by
Jglenn61091
I am glad that I was able to help ^^.
Just for reference, if you want to modify the text output, the first set of quotes is the message to be added to chat, and "%s" references the function "GetSubZoneText()", which can be substituted with anything you'd like.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.