Download
(10 Kb)
Download
Updated: 05-22-13 12:24 PM
Compatibility:
Escalation (5.3)
Thunder Isle (5.2)
Landfall (5.1)
Updated:05-22-13 12:24 PM
Created:unknown
Downloads:8,893
Favorites:48
MD5:
MacroTalk  Popular! (More than 5000 hits)
Version: 2.1.1
by: Djidam [More]
MacroTalk provides extended chat command support especially useful for macros.
For comments, bug reports, etc., please visit http://cogwheel.wowinterface.com.

Table of Contents

Disabling modules
Slash commands
/tellunit
/group
/opt
/rndcmd
Conditional chat commands
Random chat commands
Text substitutions
Straight substitutions
Unit information
Disabling Modules:
If you would prefer only to have certain functionality from MacroTalk (for
instance, if you have another addon that provides similar functionality),
you can disable various modules by renaming or deleting the corresponding
.lua files. You can safely remove MacroTalkChatOptions, MacroTalkCommands,
and MacroTalkSubstitutions which correspond to Conditional/Random chat
commands, Slash commands, and Text substitutions, respectively.
Slash commands:
/tellunit (/tu, /whisperunit, /wu) <unit> <message>
Sends a whisper to the specified unit. See
http://www.wowwiki.com/API_TYPE_UnitId for a list of units

Example:
/cast Innervate
/tellunit target Incoming innervate
/group (/gr) <message>
Picks battleground, raid, or party chat depending on which type of group
you are in.
/opt [options] <slash command>; [options] <slash command>; ...
Picks from multiple slash commands given the options. You can only use
slash commands that don't trigger secure functions. Chat commands,
emotes, scripts, etc. are OK. /cast, /use, etc. are off limits.

Note: the sub-commands cannot use macro options since the semicolons
would cause ambiguity.

Example:
/opt [button:2] /bye; /wave
/rndcmd [options] <command 1>\<command 2>; [options] <command 3>\<command 4>...
Picks a random slash command out of the group chosen based on the
given options. Each group is a list of slash commands separated by the
backslash (\) character (this is in contrast to commas used for the
built-in random commands--commas are just too common in chat messages).

Note: like the /opt command, the sub-commands cannot use macro options
and you can't use any secure commands.

Example:
/rndcmd [swimming] /y Help! I'm Drowning! \ /s The water's great!;
/s Time for a swim... \ /dance
Conditional chat commands:
All chat commands (/say, /tell, /guild, etc.) can now accept macro options.
To use this functionality, simply start the command with /opt. Note:
[target=] has no effect on the output of the chat commands; it only affects
the other conditionals in the clause.

Example:
/optsay [swimming] gurgle; [mounted] The cavalry has arrived!
Example:
/cast [target=focus] Polymorph
/optgroup [target=focus, exists] Sheeping %f
Random chat commands:
Similar to the macro options, you can now add /rnd to the beginning of any
chat command to pick a random saying. The /rnd___ commands also take options
to pick a different list of sayings. The lists themselves are separated by
the backslash symbol (\).

Example:
/rndyell ZOMG! \ WTF?! \ You there! Check out that noise!
Example:
/rndsay [outdoors] Ahhh, the Great Outdoors! \ What a lovely day!;
I wish I could go outside right now \ Must... Leave... Building...
Text substitutions:
MacroTalk offers a variety of substitutions in addition to %t of the default
UI. Substitutions are prioritized by the length of the code; longer codes
are processed first. This means that %tl will be processed before %t. The
codes are case-insensitive so %Tl is equivalent to %tL.

Straight substitutions:
%n - Your name
%z - Your current zone
%sz - Your current sub-zone (or zone if no sub-zone)
%loc - Your map coordinates
Unit information:
%t - Name of your target (built in, but listed for consistency)
%f - Name of your focus
%m - Name of mouseover unit
%p - Name of your pet
%tt - Name of your target's target

You can suffix those with one of the following to return other pieces of
data about the unit:

l - Level
c - Class
g - Gender
gb - Gender (blank if no gender)
r - Race
rb - Race (blank if no race)
gu - Guild
gu - Guild (blank if no guild)
rm - Realm (works with other realms than yours like in a dungeon)
h - Health (XX/XX)
hp - Health percentage (XX%)
ma - Mana - Not just 'm' because it conflicts with mouseover
mab - Mana (blank if no mana)
mp - Mana percentage
mpb - Mana percentage (blank if no mana)
ic - Raid icon
icb - Raid icon (blank if no icon)

Example:
/p Sheeping %f (level %fl %fg %fr %fc)
/cast [target=focus] Polymorph

Sample result: Sheeping Cogwheel (level 64 male Gnome Warrior)
You can also use the suffixes without a unit code to return information
about yourself.

Example:
/s I'm a level %l, %g, %r %c.

Sample result: I'm a level 68, male, gnome warrior.
All thanks to CogWheel for his really nice work on this addon, I am here only to maintain it alive
v2.1.1
- TOC updated

v2.1
- With 5.2 patch, I figured MacroTalk should be 2.1, since a lot of changes happened before, and this version would be a basic one now.
- TOC updated

v2.0.8
- Changes with new chan Instance
- Fixed BATTLEGROUNDS issues
- Fixed /group issues

v2.0.7
- TOC updated
- substitutions with h (for health) will always give you currentHP/maxHP. use hp for health

percentage.
v2.0.6
- Function GetNumGroupMember replaced with IsInRaid, to make sure you're really in a party or a raid.

v2.0.5
- Function GetNumPartyMember and GetNumRaidMember replaced with new GetNumGroupMember.

v2.0.4
- TOC updated

v2.0.3
- Fixed an issue with the subzone substitution. Now if you are in a zone with no subzones, %sz will show you the name of the zone instead of nothing.

v2.0.2
- Fixed an issue I did not see with /opt or /rnd commands and a secure command like /equipset.
- Constant MAX_BATTLEFIELD_QUEUES replaced by the function GetMaxBattlefieldID()

v2.0.1
- Correcte 3 changes done with versions posted on wowinterface and not in wowcurse (1.72 max in wow curse and 1.8.1 max in wowinterface)
See below for the changes.

v2.0
- Works now with 4.2
- Added realm and guild commands

v1.8.1
- Fixed a stray global in MacroTalk.lua

v1.8
- The ic and icb suffixes now insert the appropriate codes to send texture links
instead of just the name of the icons.

v1.7.2
- %gb correctly eliminates the "no gender" message
- % without a code no longer substitutes as the player's name

v1.7.1
- Fixed suffixes to work without a unit
- Fixed error when using /gr outside of a group

v1.7
- /rnd___ commands should actually work now
- Changed /rnd to /rndcmd because of a conflict with the built-in /rnd command
- Added architecture for straight text substitutions (no interface yet--see
MacroTalkSubstitutions.lua for more information)

v1.6
- Added raid icon and "blank" suffixes

v1.5.1
- Fixed a bug that caused all SendChatMessages to fail... :eek:

v1.5
- The race suffix will use UnitRace for players and UnitCreatureType for NPCs
- Added %tt, %loc
- Added health and mana suffixes

v1.4
- /opt & /rnd will now print an error message if you attempt to use a secure
command
- Added %n, %z, %sz
- Added ability to use suffixes alone to get info about the player
- Changed unit prefixes to suffixes - INCOMPATIBLE WITH PREVIOUS VERSION
- Substitutions are no longer case-sensitive
- Restructured substitutions and localizations to be more generic

v1.3
- Added /rnd and /rnd___ commands
- Fixed a bug where the /opt prefix was only being applied to the first command
of a given type (e.g. only /opts would work but not /optsay)

v1.2
- Added generic /opt command

v1.1
- Improved localizability of substitutions

v1.0
- Name substitutions have been simplified a bit to match the functionality of %t
- Added pet unit substitution
- Added info type prefixes: level, class, gender, race

v0.9
- Added /opt___ commands
- Fixed a bug where %m behaved like %f
- No longer uses Satellite
- Added localization lua for future localization

v0.5
- Initial release
Archived Files (10)
File Name
Version
Size
Author
Date
2.1
10kB
Djidam
03-06-13 05:14 AM
2.0.8
10kB
Djidam
01-24-13 05:31 PM
2.0.7
9kB
Djidam
11-29-12 03:43 AM
2.0.6
10kB
Djidam
09-18-12 02:26 AM
2.0.5
10kB
Djidam
09-17-12 04:55 PM
2.0.4
9kB
Djidam
08-29-12 07:15 AM
2.0.3
9kB
Djidam
02-29-12 02:43 AM
2.0.2
9kB
Djidam
12-01-11 12:54 PM
2.0.1
9kB
Djidam
08-11-11 11:26 AM
1.8.1
10kB
Djidam
06-27-08 08:29 AM


Post A Reply Comment Options
Unread 06-20-07, 05:51 PM  
Cogwheel
Sans Poisson
 
Cogwheel's Avatar
AddOn Author - Click to view AddOns

Forum posts: 237
File comments: 137
Uploads: 24
Originally posted by Sylaria
I actually don't mind at all if it doesn't go to /say... as long as it doesn't pop up an error message. You're right, by its nature, it should be in group and those messages shouldn't go to /say when you're not in a group.
Just so we're clear, when you say it "pops up" an error message, do you mean an actual lua error that gives a window in the middle of the screen that you have to click Okay? Because that shouldn't be happening...

It's designed to simply print a "You're not in a group" to the chat window.
Cogwheel is offline Report comment to moderator  
Reply With Quote
Unread 06-20-07, 05:47 PM  
Sylaria
A Kobold Labourer

Forum posts: 1
File comments: 26
Uploads: 0
I actually don't mind at all if it doesn't go to /say... as long as it doesn't pop up an error message. You're right, by its nature, it should be in group and those messages shouldn't go to /say when you're not in a group.
Sylaria is offline Report comment to moderator  
Reply With Quote
Unread 06-20-07, 05:12 PM  
Cogwheel
Sans Poisson
 
Cogwheel's Avatar
AddOn Author - Click to view AddOns

Forum posts: 237
File comments: 137
Uploads: 24
Originally posted by Sylaria
When I use Macrotalk's /gr function while not in a group, it produces an error. Is there a way for Macrotalk to have the /gr funtion send to /say if you're not in a group?
I had it working like that when I was first developing it... TBH, I don't exactly remember my exact reason for changing it ><.

Thinking about it now, though, it *is* a group-specific functionality and I'm not sure it's exactly appropriate to default to /say. You could do something like this for now:

/optgr [group] Message goes here

Or perhaps:

/opt [group] /gr Message1; /s Message2

As far as the built in functionality, I'll have to meditate on it a bit. Maybe I'll just remove the error message, or add another command that has "say" as a fallback...
Last edited by Cogwheel : 06-20-07 at 05:13 PM.
Cogwheel is offline Report comment to moderator  
Reply With Quote
Unread 06-20-07, 04:57 PM  
Sylaria
A Kobold Labourer

Forum posts: 1
File comments: 26
Uploads: 0
When I use Macrotalk's /gr function while not in a group, it produces an error. Is there a way for Macrotalk to have the /gr funtion send to /say if you're not in a group?
Sylaria is offline Report comment to moderator  
Reply With Quote
Unread 05-07-07, 09:32 AM  
Cogwheel
Sans Poisson
 
Cogwheel's Avatar
AddOn Author - Click to view AddOns

Forum posts: 237
File comments: 137
Uploads: 24
See my response to your bug report
Cogwheel is offline Report comment to moderator  
Reply With Quote
Unread 05-05-07, 07:59 AM  
rberry88
Premium Member

Forum posts: 42
File comments: 37
Uploads: 0
Is there anyway to add coordinates that display in XX.XX,YY.YY (23.45,45.67) instead of %loc that gives me subzone like %sz does?

**edit: Using %pos gives coordinates and %loc returns the same info as %sz (subzone), didn't see this in the readme unless I missed it.
Last edited by rberry88 : 05-06-07 at 07:42 AM.
rberry88 is offline Report comment to moderator  
Reply With Quote
Unread 04-05-07, 09:30 AM  
Cogwheel
Sans Poisson
 
Cogwheel's Avatar
AddOn Author - Click to view AddOns

Forum posts: 237
File comments: 137
Uploads: 24
Re: Help with Macrotalk

All this addon does is add new commands you can use in macros. The readme file (the full text of which is reproduced above) explains and gives examples of all its features. If you don't know how to write macros in the first place, you should see my sticky over on the UI & Macros forum (US).
Cogwheel is offline Report comment to moderator  
Reply With Quote
Unread 03-30-07, 03:12 AM  
Guldukhat
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Help with Macrotalk

Hey. Call me a n00b, but I'm not a programmer at all. lol. I DL'd this addon, but how do I make it work? I looked for some kind of help cmd but I found none.

Basically, what I am wanting to do is simply make a macro that does random sayings for different actions. For example, "Healing %t. [Told you to duck!] , [This one is gonna cost you!], [Did that hurt?]" /cast heal rank 10, and so on.

But I don't understand how to get the macro to choose from the different random sayings.
Can you help me with this? Is this in your addon?

Thx.

Guldukhat
Guldukhat is offline Report comment to moderator  
Reply With Quote
Unread 03-11-07, 08:35 PM  
Elk
A Kobold Labourer

Forum posts: 1
File comments: 2
Uploads: 0
Hello,
When I attempt to use /p Sheeping %f (level %fl %fg %fr %fc)
/cast [target=focus] Polymorph I get this

Sheeping <no focus> (level <no focus>, <no focus>, <no focus>, <no focus>)

What am I doing wrong?
Elk is offline Report comment to moderator  
Reply With Quote
Unread 02-16-07, 11:27 PM  
Ziana
A Kobold Labourer

Forum posts: 1
File comments: 1
Uploads: 0
%z - minimap zone?

Hi Cogwheel, fantastic addon.

Wondering if you might add something like %z for the minimap subzone. I would use it in a macro like:
/group Incoming to %z!
for battlegrounds. Thanks!
Ziana is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: