Tame beast macro help/question.

Tame beast macro help/question.

by Butterstheking » Sun Jan 17, 2016 12:25 am

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?
Butterstheking
Tester
 

Re: Tame beast macro help/question.

by Roadblock » Sun Jan 17, 2016 1:44 am

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
Astaldo @ Nostalrius PvE (Alliance)
Addons I've posted on Forum
User avatar
Roadblock
Senior Sergeant
Senior Sergeant
 

Re: Tame beast macro help/question.

by Butterstheking » Sun Jan 17, 2016 7:46 am

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.
Butterstheking
Tester
 

Re: Tame beast macro help/question.

by schaka » Sun Jan 17, 2016 8:30 am

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).
schaka
Senior Sergeant
Senior Sergeant
 

Re: Tame beast macro help/question.

by Butterstheking » Sun Jan 17, 2016 3:19 pm

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.
Butterstheking
Tester
 

Re: Tame beast macro help/question.

by Roadblock » Sun Jan 17, 2016 8:54 pm

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
Astaldo @ Nostalrius PvE (Alliance)
Addons I've posted on Forum
User avatar
Roadblock
Senior Sergeant
Senior Sergeant
 

Re: Tame beast macro help/question.

by Butterstheking » Sun Jan 17, 2016 10:56 pm

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!
Butterstheking
Tester
 

Re: Tame beast macro help/question.

by Roadblock » Mon Jan 18, 2016 8:12 pm

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
Astaldo @ Nostalrius PvE (Alliance)
Addons I've posted on Forum
User avatar
Roadblock
Senior Sergeant
Senior Sergeant
 


Return to Addons & macros