Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » User Interface and AddOns

Reply
 
LinkBack Thread Tools
Old 05/21/11, 5:37 PM   #51
Yolan2207
Glass Joe
 
Yolan2207's Avatar
 
Undead Priest
 
Onyxia (EU)
Hello,

after a long long break I again started playing WoW.
I need your help for following makros:

Judging with my heal-paladin
When I target my tank, the macro should cast the judgement on the tanks target
When I target the boss in an instance, the macro should cast judgement on the boss

Casting Shadowfiend with my priest
Probably the same macro like above, i just need to replace "judgement" with "shadowfiend"

Casting Shackle Undead and i don`t want to switch my actual target when I have to re-shackle
In the past I used the following macro. When casting Shackle Undead on a mop, the macro set the target as a focus target and when it was time to reshackle, I just had click on the macro again. There was no need to leave my actual target.

#showtooltip Shackle Undead
/clearfocus [target=focus,dead]
/clearfocus [target=focus,help]
/focus [target=focus,noexists]
/clearfocus [target=focus,help
/cast [target=focus,exists] Shackle Undead

But somehow it doesn`t work anymore


Crowd Control with my warlock using Fear
The same macro like with Shackle Undead?
Or does it matter that I cannot fear undead units and macro must be adjusted a bit?


Your help qould be really great
Thanks in advance

Offline
Reply With Quote
Old 05/22/11, 4:20 AM   #52
Larwood
Glass Joe
 
Human Mage
 
Frostmourne
You can't check if your target is a tank in a macro, but otherwise your first 2 macros are possible:
#showtooltip
/cast [@targettarget,harm,nodead][]Judgement

#showtooltip
/cast [@targettarget,harm,nodead][]Shadowfiend

The shackle macro you have makes it very difficult to change shackle target, this is the macro I use. It will shackle your focus if you have one and hold ctrl, otherwise shackle your target and set it as your focus. It also clears your focus if you right click it.
#showtooltip
/clearfocus [button:2]
/stopmacro [button:2]
/cast [mod:ctrl,@focus,harm][]Shackle Undead
/focus [nomod:ctrl]

This is the same macro for lock fear, but with the pet line in to make your your pet doesn't attack your fear target.
#showtooltip
/clearfocus [button:2]
/stopmacro [button:2]
/petpassive
/cast [mod:ctrl,@focus,harm][]Fear
/focus [nomod:ctrl]

Australia Offline
Reply With Quote
Old 05/23/11, 2:56 PM   #53
Elsdragon
Glass Joe
 
Elsdragon's Avatar
 
Blood Elf Warlock
 
Misha
Originally Posted by Yolan2207 View Post
Crowd Control with my warlock using Fear
The same macro like with Shackle Undead?
Or does it matter that I cannot fear undead units and macro must be adjusted a bit?

for this case ive been using


/stopcast
/cast [target=focus,exist] fear OR Banish


for undead you could use the same system.


/stopcast
/cast [target=focus,exist] shackle undead


i liked the simple set up for these macro's they're interchangeable to any class and skill.
simply set the target to focus even with a macro. then spam it away to set the CC.

here's a focus macro.


/clear focus
/focus

Last edited by Elsdragon : 05/23/11 at 3:02 PM.

Offline
Reply With Quote
Old 05/23/11, 5:00 PM   #54
Yolan2207
Glass Joe
 
Yolan2207's Avatar
 
Undead Priest
 
Onyxia (EU)
Hi,

thx for your answers
I will check them.

Offline
Reply With Quote
Old 05/24/11, 5:49 PM   #55
Tufft
Suspiciously Confusing
 
Tufft's Avatar
 
Gnome Warlock
 
Bronzebeard
Hi I need some help with a shift mod macro that casts shadowbolt at my focus target whilst it's pressed and at my main target while it's not please

....Clicker since 2005....

United States Offline
Reply With Quote
Old 05/25/11, 3:29 AM   #56
Elsdragon
Glass Joe
 
Elsdragon's Avatar
 
Blood Elf Warlock
 
Misha
Originally Posted by Tufft View Post
Hi I need some help with a shift mod macro that casts shadowbolt at my focus target whilst it's pressed and at my main target while it's not please
ok after an hour of debunking it i got one working. (first time doing one also)
was great fun figuring it out also, but here it is.

/cast [nomod] shadow Bolt; [mod:shift,@focus] Shadow Bolt

Offline
Reply With Quote
Old 05/25/11, 6:11 AM   #57
Larwood
Glass Joe
 
Human Mage
 
Frostmourne
Better version:
#showtooltip
/cast [@focus,mod:shift,harm,nodead][]Shadow Bolt

Australia Offline
Reply With Quote
Old 06/15/11, 4:25 AM   #58
Xav
Bald Bull
 
Xav's Avatar
 
Worgen Warrior
 
Sen'jin
Hello and long time, UI forum.

My question is simple, I think.
There is an API command to create a macro, which I am quite fond of lately. An example is as follows:

CreateMacro("roar", 50, "/cancelaura Dash\n/cancelaura Darkflight\n/cast Stampeding Roar(Cat Form)")
PickupMacro("roar")
PlaceAction(73)


So, for anyone that's familiar with the functionality, you'd know the "50" there is an icon of a spell. I actually randomly chose one for that, so I don't know what it actually is, but isn't important.

We can use some scripts and commands to find the internal names of any icon we see in wow; can be explored at API GetMacroIconInfo - Wowpedia - Your wiki guide to the World of Warcraft

What I want to know, though, is if it's possible to create a macro using the actual internal name of the spell, and NOT the icon. The internal names of things are viewable if you actually load up your macros-cache files, you see a macro is labelled as something like this:
MACRO 3 "Inspect" Ability_CheapShot
/inspect
END
I would like to be able to do something like [this doesn't actually work]:

CreateMacro("roar", spell_shadow_blackplague, "/cancelaura Dash\n/cancelaura Darkflight\n/cast Stampeding Roar(Cat Form)")

The point is so that I can use different icons for abilities that I may not necessarily actually have in my spellbook, but are valid macro icons, all the while being made through the API function, and not manually added in

Any help would be greatly appreciated.

Last edited by Xav : 06/15/11 at 4:39 AM.

United States Offline
Reply With Quote
Old 06/15/11, 5:52 AM   #59
Larwood
Glass Joe
 
Human Mage
 
Frostmourne
I'm not sure where you're using that command, so I'll give 3 options. You only need to change the bolded part in each case.

To exactly answer your question, you would do this:
local iconnum
	for i=1,GetNumMacroIcons() do
	if "Internal_Name" == strsub(GetMacroIconInfo(i),17) then
		iconnum = i
	end
end
CreateMacro("macroname", m, "macrotext")
The better option, I think, would be to use the actual name of the spell:
local spell, iconnum, texture = "Spell Name"
for i=1,2000000 do
	local name, _, spelltex = GetSpellInfo(i)
	if spell == name then
		texture = spelltex
	end
end
for i=1,GetNumMacroIcons() do
	if texture == GetMacroIconInfo(i) then
		iconnum = i
	end
end
CreateMacro("macroname", iconnum, "macrotext")
However, that method is quite laggy because it does a lot of work, so if you just want a way to find the icon number to use in the CreateMacro command when you want to, you can simply use this macro, which does the same thing but will print the number in your chat:
/run local s,m,t="Spell Name" for i=1,2000000 do local n,_,p=GetSpellInfo(i) if s==n then t=p end end for i=1,GetNumMacroIcons() do if t==GetMacroIconInfo(i) then m=i end end print(m)

Last edited by Larwood : 06/15/11 at 7:40 AM.

Australia Offline
Reply With Quote
Old 06/15/11, 11:58 AM   #60
Xav
Bald Bull
 
Xav's Avatar
 
Worgen Warrior
 
Sen'jin
The reason I want to use the name of the spell/texture rather than the number is because whenever new patches add icons, all of the numbers change (well, most, depending on where the new icons were inserted.) Icon texture # like 450 in patch 3.0 is different from what it is right now in 4.1, so I'd have to keep updating the #'s to keep them accurate!

United States Offline
Reply With Quote
Old 06/20/11, 9:40 PM   #61
Lugg
Glass Joe
 
Night Elf Warrior
 
Scilla
Hi all, back after 2 years. I have come across a bunch of macros that start with <action+=stance> etc, but as far as I can see, that's not valid macro syntax. Any one know whats up with that?

Thanks

Offline
Reply With Quote
Old 06/21/11, 12:20 AM   #62
Larwood
Glass Joe
 
Human Mage
 
Frostmourne
Originally Posted by Lugg View Post
Hi all, back after 2 years. I have come across a bunch of macros that start with <action+=stance> etc, but as far as I can see, that's not valid macro syntax. Any one know whats up with that?

Thanks
Not sure what you mean, do you have an example of one of these macros?

ps. all valid macro syntax can be found here: Making a macro - Wowpedia

Australia Offline
Reply With Quote
Old 06/21/11, 12:26 PM   #63
Fetzie
Glass Joe
 
Blood Elf Paladin
 
Anub'arak (EU)
Originally Posted by Lugg View Post
Hi all, back after 2 years. I have come across a bunch of macros that start with <action+=stance> etc, but as far as I can see, that's not valid macro syntax. Any one know whats up with that?

Thanks

It is fairly simple. You specify which stances should enable the macro, then add the ability afterwards.

The following macro will put you into Defensive Stance if you are in either Berserker or Battle Stance, and equip a one hand weapon in the main-hand slot and a shield in the off-hand slot (you will need to specify the names of the items).

/cast [stance:1/3] Defensive Stance
/equipslot 16 Name of one hander
/equipslot 17 Name of shield

Did that help?

Germany Offline
Reply With Quote
Old 06/21/11, 10:09 PM   #64
Lugg
Glass Joe
 
Night Elf Warrior
 
Scilla
Thanks for the replies - my question really isn't about the function of the macro, I just want to know if there is a new macro syntax, or if this might be script from an add-on or something that supports macros. If I just copy paste the following into a macro, it pukes - so I'm thinking this must be something else

Here is an example:


actions+=/stance,choose=berserker,if=cooldown.recklessness.remains=0&rage<=50&((target.health_p ct>20&target.time_to_die>320)|target.health_pct<=20)
actions+=/stance,choose=battle,if=(cooldown.recklessness.remains>0&rage<=50)

Apologies - this is likely well known but I can't find anything on the google machine that explains what it is. Appreciate the help!

Offline
Reply With Quote
Old 06/22/11, 12:48 AM   #65
Jaybird
Von Kaiser
 
Night Elf Priest
 
Bronzebeard (EU)
Originally Posted by Lugg View Post
Thanks for the replies - my question really isn't about the function of the macro, I just want to know if there is a new macro syntax, or if this might be script from an add-on or something that supports macros. If I just copy paste the following into a macro, it pukes - so I'm thinking this must be something else

Here is an example:


actions+=/stance,choose=berserker,if=cooldown.recklessness.remains=0&rage<=50&((target.health_p ct>20&target.time_to_die>320)|target.health_pct<=20)
actions+=/stance,choose=battle,if=(cooldown.recklessness.remains>0&rage<=50)

Apologies - this is likely well known but I can't find anything on the google machine that explains what it is. Appreciate the help!
That looks like SimCraft code to me .. not Macro code.

Offline
Reply With Quote
Old 07/19/11, 7:56 PM   #66
daenarshin
Glass Joe
 
Night Elf Druid
 
Sargeras (EU)
hi,

I have some trouble with a macro, basically I'm using vuhdo addon for my raid displaying, as a resto druid you can use some combination like shift+right click to cast a spell or a macro on the target your are mousing over.
thus i try to creat a macro to swiftmend the target I mouse over then target the Mt target and cast an insect swarm on this foe.
This is the best scenario, as I could only use "focus" to make it easier, because except with directly writing "/assist MT's name" in the macro i don't know how to manage this ( furthermore I need to add "target lasttarget" at the end witch makes the macro a little odd when swiftmend is not up ..)

I tryed this:

/castsequence swiftmend

/cast [target=focustarget] insect swarm


this one only works from time to time ... Can anyone help me ?


Ps : I recently acquired the trinket •[Necromantic Focus], witch requires DoT ticking to stack the mastery buff .. ^^
PSS : excuse the poor english, it's not my native language

Offline
Reply With Quote
Old 01/23/12, 2:10 PM   #67
wilehunter
Glass Joe
 
wilehunter's Avatar
 
Troll Hunter
 
Blade's Edge (EU)
Change target macro

I'm working on a macro that will assist a hunter in the madness fight. The macro should reduce damage but will allow the hunter to continue the DPS. The objective is to reduce the damage using raptor strike while still shooting the Mutated Corruptions. The way I do it without the macro is standing near the wing/arm and shoot at the Mutated Corruptions, once I would like to reduce the damage I'm taking, I am targeting the arm/wing, click raptor strike, than targeting the Mutated Corruptions and continue with my pew pew routine.
All this target switching takes too much time, so I am looking for a macro that will do it all. I know that raptor strike consume the GCD, so I thought it cannot be done, but it seems that some activates in a macro can happen after GCD. I've started with the following macro
#showtooltip Raptor Strike
/targetenemy [nodead, harm]
/cast Raptor Strike
/targetlasttarget
/cleartarget
So the macro target the nearest enemy (wing/arm), cast raptor strike, and cancel the target. I assume I can hard coded "/target Mutated Corruptions" as the last line, but I prefer something more generic. Is there an option that the last line will target me back to the target I was aiming at before I clicked this macro?

Offline
Reply With Quote
Old 01/29/12, 10:44 PM   #68
Lokrick
Von Kaiser
 
Orc Hunter
 
Steamwheedle Cartel
Originally Posted by wilehunter View Post
I'm working on a macro that will assist a hunter in the madness fight. ...
#showtooltip Raptor Strike
/targetenemy [nodead, harm]
/cast Raptor Strike
/targetlasttarget
/cleartarget
So the macro target the nearest enemy (wing/arm), cast raptor strike, and cancel the target. I assume I can hard coded "/target Mutated Corruptions" as the last line, but I prefer something more generic. Is there an option that the last line will target me back to the target I was aiming at before I clicked this macro?
The enemy chosen by "/targetenemy" can be complicated. For example, it will primarily target an enemy in a cone in front of you. However if your camera is coming from behind the arm, for example, it may target the arm even if your toon is not facing it. In any case, the macro should almost work. The "/targetlasttarget" retargets to the corruption (assuming it was your last target), but then you clear the target. Just delete that last "/cleartarget" line. Other techniques might be more reliable though: make the arm/wing your focus as you land on the platform and then just using "/cast [@focus]Raptor Strike"; keep your pet on the arm/wing and use "/cast [@pet-target]Raptor Strike"; or replace "/targetenemy" with explicitly targeting the arm, etc.
/cleartarget
/tar arm tentacle
/tar [noexists]wing tentacle
/use [exists]Raptor Strike
/targetlasttarget
The above clears the target so that the macro can detect whether it successfully targeted your desired target (using no/exists). It then tries to target the arm; if that doesn't work it tries to target the wing. Only if it managed to target one of the two, it casts raptor strike. Finally, it sets the target back to your original target (since we targeted at most one other creature, lasttarget is what you had before cleartarget).

United States Offline
Reply With Quote
Reply

Go Back   Elitist Jerks » User Interface and AddOns

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for a Magtheridon mod/macro Biggdogg User Interface and AddOns 24 06/22/07 5:35 AM
Huhu Macro Darksaber Public Discussion 24 06/09/06 5:26 AM
Macro Fun KGBAgent185 Public Discussion 16 11/05/05 1:24 PM