Remove Advertisements

text macro

All things /script related

Moderators: Fridmarr, Worldie, Aergis, _Chloe

text macro

Postby Ata » Wed Oct 07, 2009 12:45 am

How can I write a macro so I'll say something but it won't spam chatlog's if I click the macro a million times?


Examples would be when you see a Death Knight spamming "Get over here!" a billion times because the spammed their Death Grip.
Image
Ata
 
Posts: 45
Joined: Mon Oct 20, 2008 11:49 am

Re: text macro

Postby Magnilda » Wed Oct 07, 2009 3:48 am

Use TJH instead and set up a rule for when that spell/aura is applied.
User avatar
Magnilda
 
Posts: 101
Joined: Sat Feb 02, 2008 5:02 pm

Re: text macro

Postby fuzzygeek » Wed Oct 07, 2009 10:35 am

Magnilda wrote:Use TJH instead and set up a rule for when that spell/aura is applied.


This is probably the best solution unless you want to do some scripting in your macro.

By far my favourite TJH rule is

"SPELL_AURA_APPLIED;;;Ardent Defender;self;SAY;eep.", --
Image
User avatar
fuzzygeek
Maintankadonor
 
Posts: 5084
Joined: Wed Aug 01, 2007 1:58 pm

Re: text macro

Postby Ata » Thu Oct 08, 2009 9:51 pm

is that the only way?


I have a few characters I wouldn't mind putting text into macro's for... my DK being one, pally being another.


Mage, priest and lock also have amusing macro's I could write, unfortunately if I hit the button 20 times, the party or raid would get spammed with the text portions even if the spell is on CD.
Image
Ata
 
Posts: 45
Joined: Mon Oct 20, 2008 11:49 am

Re: text macro

Postby fafhrd » Fri Oct 09, 2009 11:21 am

As far as I know there's no other way - something needs to detect whether the spell went off or not, and decide whether to say something or not in response. The only way I can think of doing that is catching an event, for which you'll need a mod (not necessarily TJH, if you just want it for one ability there are smaller mods to do it with, or you could write your own for the smallest possible).

Or you could just not spam your button.
ImageImage
1/1 Lore pre-nerf.
User avatar
fafhrd
 
Posts: 5432
Joined: Fri Aug 31, 2007 2:31 pm

Re: text macro

Postby isiz » Fri Oct 09, 2009 6:20 pm

The Macro API will not allow you to add conditionals for cast success due to it allowing you to bot to some degree.
ImageImage
Tuesday maintenance is merely a setback!
User avatar
isiz
 
Posts: 407
Joined: Sat Aug 02, 2008 7:51 am


Return to Add-ons, UI, and Macros

Who is online

Users browsing this forum: No registered users and 1 guest


Remove Advertisements

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 380 on Tue Oct 14, 2008 6:28 pm

Users browsing this forum: No registered users and 1 guest