Category: Outdated Mods
Addon Information
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Cogwheel's Portal Bug Reports Feature Requests
Author:
Version:
1.8.1
Date:
06-27-2008 10:29 AM
Size:
9.63 Kb
Downloads:
6,408
Favorites:
47
MD5:
Pictures
MacroTalk - RIP   Popular! (More than 5000 hits)
I'm giving up on most of my mods. If anyone wants to take over this project, send me a PM and I'll have the admins transfer it to your account.

MacroTalk - v1.8.1
By Cogwheel

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
%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)
h - Health (XX/XX) - Acts like hp for players not in your party/raid/bg
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.
  Change Log - MacroTalk - RIP
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...

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
  Comments - MacroTalk - RIP
Post A Reply Comment Options
Old 03-04-2009, 06:40 AM  
Edik
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
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
I did add to original MacroTalkSubstitutions.lua sanity check for passed parameter "text"
Edik is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 02-16-2009, 06:38 PM  
Xambrian
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 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-15-2008, 10:11 PM  
Cogwheel
Sans Poisson
 
Cogwheel's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 212
File comments: 131
Uploads: 22
Re: Re: Re: Small tweak needed for 3.0

Quote:
Originally posted by encoded
Ouch I got zapped on that one. But I wasn't aware that worked across the 2.4 <=> 3.0 barrier..? I could swear I had that box unchecked, yet macrotalk wasn't working... Oh well, my bad.

e.
Yeah, last time (2.0) the changes were drastic enough that it justified the hassle of forcing authors to update/abandon/re-imagine.
Cogwheel is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-15-2008, 08:44 PM  
encoded
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Re: Re: Small tweak needed for 3.0

Quote:
Originally posted by Cogwheel
Or just check off Load out of date addons on your addons screen... Sort of an "if it aint broke" situation if you know what I mean

See also: The first great virtue of a programmer

Ouch I got zapped on that one. But I wasn't aware that worked across the 2.4 <=> 3.0 barrier..? I could swear I had that box unchecked, yet macrotalk wasn't working... Oh well, my bad.

e.
encoded is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-05-2008, 12:38 AM  
Cogwheel
Sans Poisson
 
Cogwheel's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 212
File comments: 131
Uploads: 22
Re: Small tweak needed for 3.0

Quote:
Originally posted by encoded
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.
Or just check off Load out of date addons on your addons screen... Sort of an "if it aint broke" situation if you know what I mean

See also: The first great virtue of a programmer


Last edited by Cogwheel : 11-05-2008 at 12:40 AM.
Cogwheel is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-04-2008, 09:31 PM  
encoded
A Kobold Labourer

Forum posts: 0
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 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-15-2008, 08:05 PM  
Nibuca
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 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 01-07-2008, 04:05 PM  
Cogwheel
Sans Poisson
 
Cogwheel's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 212
File comments: 131
Uploads: 22
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 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-18-2007, 01:54 PM  
finnist
A Kobold Labourer
 
finnist's Avatar

Forum posts: 0
File comments: 1
Uploads: 0
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 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-14-2007, 12:24 PM  
Cogwheel
Sans Poisson
 
Cogwheel's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 212
File comments: 131
Uploads: 22
Re: Name error?

Quote:
Originally posted by blueshift
I think this is a bug..
It's a bug. I'll have a fix out shortly.
Cogwheel is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-14-2007, 12:21 PM  
blueshift
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-2007 at 12:22 PM.
blueshift is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-10-2007, 09:06 PM  
Cogwheel
Sans Poisson
 
Cogwheel's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 212
File comments: 131
Uploads: 22
Re: great job cogs!

Quote:
Originally posted by wendol
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!
Glad I could help!

Quote:
Originally posted by Sylaria
I found a new error, reported in the bugs...
Found the problem. Will update soon. Thanks!

Last edited by Cogwheel : 07-10-2007 at 09:06 PM.
Cogwheel is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-10-2007, 01:30 PM  
wendol
A Murloc Raider
Interface Author - Click to view interfaces

Forum posts: 4
File comments: 12
Uploads: 2
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 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-09-2007, 10:40 AM  
Sylaria
A Kobold Labourer

Forum posts: 0
File comments: 17
Uploads: 0
I found a new error, reported in the bugs...
Sylaria is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-29-2007, 05:42 PM  
Sylaria
A Kobold Labourer

Forum posts: 0
File comments: 17
Uploads: 0
woot!.. updated! ^_^
Sylaria is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.