Go to Page... |
Compatibility: | Dragonflight (10.0.2) |
Updated: | 11-16-22 03:54 AM |
Created: | unknown |
Downloads: | 16,817 |
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 |
Djidam |
View Public Profile |
Send a private message to Djidam |
Find More Posts by Djidam |
Add Djidam to Your Buddy List |
Djidam |
View Public Profile |
Send a private message to Djidam |
Find More Posts by Djidam |
Add Djidam to Your Buddy List |
wolfi |
View Public Profile |
Send a private message to wolfi |
Find More Posts by wolfi |
Add wolfi to Your Buddy List |
09-17-12, 04:53 PM | |
|
Re: fix for the group-command
Yeah sorry, like I said, I dont use all of the options.
I updated a quick fixe follwing a comment on curse, but I dont like it. Watch for another update later. PS - Thanks for the comment, I hade the same function to change in another addon, but like I said, I dont know evrey functions of this one, since I took "over" this project. Continue the follow up of bugs, it helps me |
|
Djidam |
View Public Profile |
Send a private message to Djidam |
Find More Posts by Djidam |
Add Djidam to Your Buddy List |
09-16-12, 07:47 PM | |
A Kobold Labourer
Forum posts: 1
File comments: 13
Uploads: 0
|
fix for the group-command
blizz removed the functions GetNumRaidMembers and GetNumPartyMembers
so in MacroTalkCommands.lua row 10 and 11 change: GetNumRaidMembers() > 0 and "RAID" or to IsInRaid() and "RAID" or and GetNumPartyMembers() > 0 and "PARTY" to GetNumGroupMembers() > 0 and "PARTY" |
|
wolfi |
View Public Profile |
Send a private message to wolfi |
Find More Posts by wolfi |
Add wolfi to Your Buddy List |
09-16-12, 04:06 PM | ||
A Kobold Labourer
Forum posts: 1
File comments: 13
Uploads: 0
|
2x MacroTalk-2.0.4\MacroTalkCommands.lua:10: attempt to call global "GetNumRaidMembers" (a nil value) MacroTalk-2.0.4\MacroTalkCommands.lua:10: in function "?" FrameXML\ChatFrame.lua:4358: in function "ChatEdit_ParseText" FrameXML\ChatFrame.lua:4052: in function "ChatEdit_SendText" MacroTalk\MacroTalk-2.0.4.lua:25: in function "MacroTalk_DoCommand" MacroTalk-2.0.4\MacroTalkCommands.lua:60: in function "?" FrameXML\ChatFrame.lua:4358: in function "ChatEdit_ParseText" FrameXML\ChatFrame.lua:4052: in function "ChatEdit_SendText" FrameXML\ChatFrame.lua:2727: in function <FrameXML\ChatFrame.lua:2720> <in C code> FrameXML\SecureTemplates.lua:379: in function "handler" FrameXML\SecureTemplates.lua:560: in function <FrameXML\SecureTemplates.lua:508> Locals: editBox = ChatFrame1EditBox { 0 = <userdata> tabCompleteTableIndex = 1 focusLeft = ChatFrame1EditBoxFocusLeft {} focusRight = ChatFrame1EditBoxFocusRight {} chatFrame = ChatFrame1 {} addSpaceToAutoComplete = true language = "Orcisch" focusMid = ChatFrame1EditBoxFocusMid {} backdropTexture = <unnamed> {} template = "Default" text = "" setText = 0 header = ChatFrame1EditBoxHeader {} AddHistoryLine = <func> =[C]:-1 headerSuffix = ChatFrame1EditBoxHeaderSuffix {} languageID = 1 glossTex = true } send = 1 parseIfNoSpaces = nil text = "/group Seid gegrüßt!" command = "/GROUP" msg = "Seid gegrüßt!" hash_SecureCmdList = <table> { /GLYPHEEINSETZEN = <func> @FrameXML\ChatFrame.lua:1161 /VORHERIGERFEIND = <func> @FrameXML\ChatFrame.lua:1306 /GESTALTABBRECHEN = <func> @FrameXML\ChatFrame.lua:1140 /AUSRÜSTUNGSSET = <func> @FrameXML\ChatFrame.lua:1526 /MAINASSISTOFF = <func> @FrameXML\ChatFrame.lua:1405 /EQ = <func> @FrameXML\ChatFrame.lua:1175 /HAUPTASSISTAUS = <func> @FrameXML\ChatFrame.lua:1405 /PETMOVETO = <func> @FrameXML\ChatFrame.lua:1442 /TARGET = <func> @FrameXML\ChatFrame.lua:1232 /CLEARMAINTANK = <func> @FrameXML\ChatFrame.lua:1354 /CLEARTARGET = <func> @FrameXML\ChatFrame.lua:1294 /BAUTOZAUBERAUS = <func> @FrameXML\ChatFrame.lua:1486 /DUELL = <func> @FrameXML\ChatFrame.lua:1418 /MT = <func> @FrameXML\ChatFrame.lua:1360 /EQUIP = <func> @FrameXML\ChatFrame.lua:1175 /TARGETRAID = <func> @FrameXML\ChatFrame.lua:1287 /HAUPTTANKAUFHEBEN = <func> @FrameXML\ChatFrame.lua:1354 /BDEFENSIV = <func> @FrameXML\ChatFrame.lua:1461 /BPASSIV = <func> @FrameXML\ChatFrame.lua:1455 /PETAUTOCASTTOGGLE = <func> @FrameXML\ChatFrame.lua:1493 /SPEZIFISCHANVISIEREN = <func> @FrameXML\ChatFrame.lua:1242 /EQUIPSLOT = <func> @FrameXML\ChatFrame.lua:1182 /USE = <func> @FrameXML\ChatFrame.lua:1089 /CLEARMA = <func> @FrameXML\ChatFrame.lua:1386 /TARGETENEMY = <func> @FrameXML\ChatFrame.lua:1252 /TARGETLASTENEMY = <func> @FrameXML\ChatFrame.lua:1306 /STARTATTACK = <func> @FrameXML\ChatFrame.lua:1073 /TARGETFRIENDPLAYER = <func> @FrameXML\ChatFrame.lua:1273 /ZIELEN = <func> @FrameXML\ChatFrame.lua:1232 /UNTERSTÜTZEN = <func> @FrameXML\ChatFrame.lua:1320 /AKTIONSLEISTEUMSCHALTEN = <func> @FrameXML\ChatFrame.lua:1212 /SCHLACHTZUGANVISIEREN = <func> @FrameXML\ChatFrame.lua:1287 /ASSIST = <func> @FrameXML\ChatFrame.lua:1320 /AURAABBRUCH = <func> @FrameXML\ChatFrame.lua:1129 /STOPMACRO = <func> @FrameXML\ChatFrame.lua:1500 /FOKUS = <func> @FrameXML\ChatFrame.lua:1334 /PETFOLLOW = <func> @FrameXML\ChatFrame.lua:1436 /PETAGGRESSIVE = <func> @FrameXML\ChatFrame.lua:1467 /TARGETLASTTARGET = <func> @FrameXML\ChatFrame.lua:1300 /HA = <func> @FrameXML\ChatFrame.lua:1392 /FREUNDLICHENSPIELERWÄHLEN = <func> @FrameXML\ChatFrame.lua:1273 /TARGETFRIEND = <func> @FrameXML\ChatFrame.lua:1266 /PLATZANLEGEN = <func> @FrameXML\ChatFrame.lua:1182 /AKTIONSLEISTEWECHSEL = <func> @FrameXML\ChatFrame.lua:1200 /CLEARMT = <func> @FrameXML\ChatFrame.lua:1354 /MAOFF = <func> @FrameXML\ChatFrame.lua: |
|
|
wolfi |
View Public Profile |
Send a private message to wolfi |
Find More Posts by wolfi |
Add wolfi to Your Buddy List |
08-29-12, 07:16 AM | |
|
Works fine with 5.0.4. Juste updated the TOC file.
If you are having bug with 5.0.4, do not hesitate to open a ticket. |
|
Djidam |
View Public Profile |
Send a private message to Djidam |
Find More Posts by Djidam |
Add Djidam 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 |
Find More Posts by Djidam |
Add Djidam 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 |
Find More Posts by wolfi |
Add wolfi 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 |
Find More Posts by Edik |
Add Edik 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 |
Find More Posts by Xambrian |
Add Xambrian 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 |
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 |
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 |
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 |