Go to Page... |
Compatibility: | Dragonflight (10.0.2) |
Updated: | 11-16-22 03:54 AM |
Created: | unknown |
Downloads: | 16,835 |
Favorites: | 56 |
MD5: |
MacroTalk provides extended chat command support especially useful for macros. (/macrotalk or /mtk with help for IG info)
Table of Contents
Disabling modules
Slash commands
/tellunitConditional chat commands
/group
/opt
/rndcmd
Straight substitutionsDisabling Modules:
Unit information
If you would prefer only to have certain functionality from MacroTalk (forSlash commands:
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.
/tellunit (/tu, /whisperunit, /wu) <unit> <message>Sends a whisper to the specified unit. See/group (/gr) <message>
http://www.wowwiki.com/API_TYPE_UnitId for a list of units
Example:/cast Innervate
/tellunit target Incoming innervatePicks battleground, raid, or party chat depending on which type of group/opt [options] <slash command>; [options] <slash command>; ...
you are in.Picks from multiple slash commands given the options. You can only use/rndcmd [options] <command 1>\<command 2>; [options] <command 3>\<command 4>...
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; /wavePicks 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
/clearwaypoint or /cwp : Clear any waypoint/pin from your map.Conditional chat commands:
All chat commands (/say, /tell, /guild, etc.) can now accept macro options.Random chat commands:
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
Similar to the macro options, you can now add /rnd to the beginning of anyText substitutions:
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...
MacroTalk offers a variety of substitutions in addition to %t of the defaultAll thanks to CogWheel for his really nice work on this addon, I am here only to maintain it alive
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 nameUnit information:
%z - Your current zone
%sz - Your current sub-zone (or zone if no sub-zone)
%loc - Your map coordinates
%wp - Link a pin to your current location and then remove it
%pin - Link a pin you've manually added to the map
%cov - Your covenant name
%covb - Your covenant name (blank if no covenant)
%rnl - Your renown level
%rnlb - Your renown level (blank if no renown)
%lt - Local time
%rt - Realm time%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
cl - Unit classification (not localized)
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%)
pw - Power - Depending on the unit power, can be mana, focus, energy and so on
pwb - Power (blank if no power)
pwp - Power percentage
pwpb - Power percentage (blank if no mana)
ic - Raid icon
icb - Raid icon (blank if no icon)
gn - Raid group number - Only if target is in the same raid as you, or you are in a raid
gnb - Raid group number (blank if no raid group)
nt - Name with title
ut - Title
utb - Title (blank if no title)
Example:/p Sheeping %f (level %fl %fg %fr %fc)You can also use the suffixes without a unit code to return information
/cast [target=focus] Polymorph
Sample result: Sheeping Cogwheel (level 64 male Gnome Warrior)
about yourself.
Example:/s I'm a level %l, %g, %r %c.
Sample result: I'm a level 68, male, gnome warrior.
Comment Options |
07-10-07, 11:30 AM | |
|
great job cogs!
id just like to publicly say thanks for helping me with my setup ! i appreciate it and your quick response to my questions. keep up the good work bro!
|
|
wendol |
View Public Profile |
Send a private message to wendol |
Find More Posts by wendol |
Add wendol to Your Buddy List |
Cogwheel |
View Public Profile |
Send a private message to Cogwheel |
Visit Cogwheel's homepage! |
Find More Posts by Cogwheel |
Add Cogwheel to Your Buddy List |
07-14-07, 10:21 AM | |
A Kobold Labourer
Forum posts: 0
File comments: 1
Uploads: 0
|
Name error?
I think this is a bug.. if not how do I get around it?
Any time the % symbol is in chat with nothing following it then my name replaces the % symbol. What I mean by this is % is acting the way I *think* %n is supposed to act. If I try to say, "My buff adds 3% to party damage." In chat everyone sees "My buff adds 3Blueshift to party damage." Same thing happens if I post damage meters. Thanks and this is a great mod. Blue BTW: I am using 1.7.1
Last edited by blueshift : 07-14-07 at 10:22 AM.
|
|
blueshift |
View Public Profile |
Send a private message to blueshift |
Visit blueshift's homepage! |
Find More Posts by blueshift |
Add blueshift to Your Buddy List |
07-14-07, 10:24 AM | ||
|
Re: Name error?
|
|
|
Cogwheel |
View Public Profile |
Send a private message to Cogwheel |
Visit Cogwheel's homepage! |
Find More Posts by Cogwheel |
Add Cogwheel to Your Buddy List |
11-18-07, 12:54 PM | |
|
macrotalk elseif
I downloaded macrotalk , I have used some of the examples I found here and there , and they work fine. The %r , %g , etc. are just what I was looking for, thanks. What I want to do is somthing like
if %tr = human /s hello elseif %tr = dwarf /s hoy elseif %tr = orc /spit /end I used to know a bit of basic , it has been awhile. I would appreciate a macro that would do this. Maybe I can change it to do other things as well. |
|
finnist |
View Public Profile |
Send a private message to finnist |
Visit finnist's homepage! |
Find More Posts by finnist |
Add finnist to Your Buddy List |
01-07-08, 03:05 PM | |
|
Re: macrotalk elseif
MacroTalk won't help you with that because there are no macro options for the race of your target. You would need to write the script yourself either as your own addon or in a /run command.
|
|
Cogwheel |
View Public Profile |
Send a private message to Cogwheel |
Visit Cogwheel's homepage! |
Find More Posts by Cogwheel |
Add Cogwheel to Your Buddy List |
04-15-08, 06:05 PM | |
A Kobold Labourer
Forum posts: 0
File comments: 6
Uploads: 0
|
raid icons in chat
Now that 2.4 allows you to use raid icons in chat, any chance this can be added?
I'm currently using something like: /cast [target=focus] Polymorph /say Sheeping %f {%ficb} Which works fine if the target has a raid marking.. but if they don't it says: Sheeping Kobold Warrior {} I'd like to be able to eliminate the {} (which just looks messy). |
|
Nibuca |
View Public Profile |
Send a private message to Nibuca |
Visit Nibuca's homepage! |
Find More Posts by Nibuca |
Add Nibuca to Your Buddy List |
11-04-08, 08:31 PM | |
A Defias Bandit
Forum posts: 2
File comments: 2
Uploads: 0
|
Small tweak needed for 3.0
Just for what it's worth, MacroTalk works fine with 3.0, if you just open the MacroTalk.toc file, and change the interface number (should be the first line in the file) to 30000.
Thanks for a great addon. e. |
|
encoded |
View Public Profile |
Send a private message to encoded |
Visit encoded's homepage! |
Find More Posts by encoded |
Add encoded to Your Buddy List |
11-04-08, 11:38 PM | ||
|
Re: Small tweak needed for 3.0
See also: The first great virtue of a programmer
Last edited by Cogwheel : 11-04-08 at 11:40 PM.
|
|
|
Cogwheel |
View Public Profile |
Send a private message to Cogwheel |
Visit Cogwheel's homepage! |
Find More Posts by Cogwheel |
Add Cogwheel to Your Buddy List |
12-15-08, 07:44 PM | ||
A Defias Bandit
Forum posts: 2
File comments: 2
Uploads: 0
|
Re: Re: Small tweak needed for 3.0
e. |
|
|
encoded |
View Public Profile |
Send a private message to encoded |
Visit encoded's homepage! |
Find More Posts by encoded |
Add encoded to Your Buddy List |
12-15-08, 09:11 PM | ||
|
Re: Re: Re: Small tweak needed for 3.0
__________________
[SIGPIC][/SIGPIC] |
|
|
Cogwheel |
View Public Profile |
Send a private message to Cogwheel |
Visit Cogwheel's homepage! |
Find More Posts by Cogwheel |
Add Cogwheel to Your Buddy List |
02-16-09, 05:38 PM | |
A Kobold Labourer
Forum posts: 0
File comments: 23
Uploads: 0
|
Error message when using loothog
Hi there!
I have no idea whether this error is caused by Macrotalk or Loothog, but it occurs Date: 2009-02-16 22:10:47 ID: 1 Error occured in: Global Count: 47 Message: ...nterface\AddOns\MacroTalk\MacroTalkSubstitutions.lua line 172: attempt to index local 'text' (a number value) Debug: (tail call): ? [C]: ? ...nterface\AddOns\MacroTalk\MacroTalkSubstitutions.lua:172: SendChatMessage() LootHog\LootHog.lua:824: loothog_chat() LootHog\LootHog.lua:806: loothog_countdown() LootHog\LootHog.lua:607: loothog_onupdate() [string "*:OnUpdate"]:1: [string "*:OnUpdate"]:1 AddOns: [...] I'm running the german client, using loothog 3.1.3 and macrotalk 1.8.1 Have a nice day! |
|
Xambrian |
View Public Profile |
Send a private message to Xambrian |
Visit Xambrian's homepage! |
Find More Posts by Xambrian |
Add Xambrian to Your Buddy List |
03-04-09, 05:40 AM | |
|
Error is produced by bogus Addon not MacroTalk. In MacroTalk only missing sanity check for passed argument "text". I did mod .lua to look like this and it clean all errors produced:
Code:
function SendChatMessage(text, ...) if (type(text) == "nil" or type(text) ~= "string") then return OrigSendChatMessage(text, ...) end for _, substitution in ipairs(substitutions) do local func = substitution.func text = text:gsub(substitution.code, type(func) == "function" and func() or func) end return OrigSendChatMessage(text, ...) end |
|
Edik |
View Public Profile |
Send a private message to Edik |
Visit Edik's homepage! |
Find More Posts by Edik |
Add Edik to Your Buddy List |
07-01-10, 01:04 PM | |
A Kobold Labourer
Forum posts: 1
File comments: 13
Uploads: 0
|
patch 3.3.5
since patch 3.3.5 macrotalk doesn't work anymore.
but if you chance in MacroTalk.lua "ChatFrameEditBox" to "ChatFrame1EditBox" everything is ok again. row 22-25 --------------------------------------------------------- local origText = ChatFrame1EditBox:GetText() ChatFrame1EditBox:SetText(text) ChatEdit_SendText(ChatFrame1EditBox) ChatFrame1EditBox:SetText(origText) --------------------------------------------------------- |
|
wolfi |
View Public Profile |
Send a private message to wolfi |
Visit wolfi's homepage! |
Find More Posts by wolfi |
Add wolfi to Your Buddy List |
02-29-12, 02:46 AM | |
|
Following a request on curse :
%sz should now show zone when no subzones. If you don't like the change, stay with version 2.0.2. (I figure some may like having nothing with %sz when no subzones) Next updates will stay with one version only (%sz will always show something). If you don't like this feature, let me know so i can make something for erveryone |
|
Djidam |
View Public Profile |
Send a private message to Djidam |
Visit Djidam's homepage! |
Find More Posts by Djidam |
Add Djidam to Your Buddy List |