Page 1 of 1

Tame beast macro help/question.

PostPosted: Sun Jan 17, 2016 12:25 am
by Butterstheking
Hey lads!

Im currently trying to camp Broken Tooth along with almost every other hunter on the server. For this purpose i made the following simple macro:

/tar broken tooth
/cast Tame Beast

When im constantly pressing my macro button i always end up recasting tame beast at least once when its still channeling.

Is it possible to create a macro that doesn't recast tame beast if the ability is already channeling? From my googling it seems your able to do this in later versions of WoW but I'm not sure if it is possible in vanilla?

Re: Tame beast macro help/question.

PostPosted: Sun Jan 17, 2016 1:44 am
by Roadblock
There might be a way but it won't be 100% reliable and it definitely won't fit in a macro.
You'd need a supporting addon + a macro.

Something along the lines of:
Addon part
Create a frame
Register SPELLCAST_CHANNEL_START, SPELLCAST_CHANNEL_UPDATE, SPELLCAST_CHANNEL_STOP events.
When SPELLCAST_CHANNEL_START event fires set a global variable Channeling_A_Spell=true.
When SPELLCAST_CHANNEL_STOP or SPELLCAST_CHANNEL_UPDATE with arg1 = 0 fires set the Channeling_A_Spell=false.

Macro part
/tar Broken Tooth
/script if (UnitName("target"))=="Broken Tooth" and not Channeling_A_Spell then CastSpellByName("Tame Beast") end

Re: Tame beast macro help/question.

PostPosted: Sun Jan 17, 2016 7:46 am
by Butterstheking
Just tried this on a random mob where i edited the name in the macro. It doesn't seem to work. I'm still able to recast Tame Beast. But i might be using it wrong since "super macro" gave me error messages.

Re: Tame beast macro help/question.

PostPosted: Sun Jan 17, 2016 8:30 am
by schaka
Did you create the addon and register the events to the same, as suggested above?
The Channeling_A_Spell boolean needs to be global (so no modifier).

Re: Tame beast macro help/question.

PostPosted: Sun Jan 17, 2016 3:19 pm
by Butterstheking
This is how the macro looks when i put it inside super macro.

http://imgur.com/hNWXUwo

Did you create the addon and register the events to the same, as suggested above?
The Channeling_A_Spell boolean needs to be global (so no modifier).


I probably made a mistake here since i got no idea what it means.

Re: Tame beast macro help/question.

PostPosted: Sun Jan 17, 2016 8:54 pm
by Roadblock
Ok I made a proof of concept addon.
I don't intend to put it up on Github in its current state or pursue it further tbh :P
Virustotal: https://www.virustotal.com/en/url/596fa ... 453063539/
You can get link to download from top of virustotal report.

Install it like any normal addon, then make a macro like this:
Code: Select all
/tar Broken Tooth
/script if (UnitName("target"))=="Broken Tooth" and not PlayerState.Channeling then CastSpellByName("Tame Beast") end

Re: Tame beast macro help/question.

PostPosted: Sun Jan 17, 2016 10:56 pm
by Butterstheking
Hey Roadblock!

Just tested it on a random mob and it worked perfectly! :D

Really appreciate you helping me AND probably a lot of other hunters too!

Re: Tame beast macro help/question.

PostPosted: Mon Jan 18, 2016 8:12 pm
by Roadblock
Did a small update to the addon (had a typo for one of the monitored events)
New link: https://github.com/Dridzt/PlayerStates/ ... -11200.zip